JN5168 MAC RETRIES PROBLEM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

JN5168 MAC RETRIES PROBLEM

864 Views
mesut_yilmaz
Contributor I

Hello to everyone

I am working on the jn5168 microcontroller platform. I have a problem. 

I am sending package with rf. Mac layer tries 4 times when I do not receive ACK from the package I send.

Guess the default value is 4.

I want to send 1 times when no ACK.

I am analyzing the signal. The package is send 4 times as show in the picture.

How can I fix this.

signal grapfic.png

The code I wrote in the picture below looks.  I am trying to set with this function but not working.

When I debug, I see that I can't set. (u8Retsies = 1). 

This function not working. Do you think there is an error in this function.

retries set function.png

Labels (1)
  • RF

0 Kudos
5 Replies

718 Views
mesut_yilmaz
Contributor I

Hi Sebastian

I print the value but the function still does not work.

Best Regards.

scope2.png

0 Kudos

718 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi Mesut,

 

Could you please try performing a project cleanup and trying again?

 

Also, could you please try printing the value itself, instead of a message? Just to be sure of what value is being set in the MAC's configuration.

 

If that doesn't work, could you please try the MAC_MAX_FRAME_RETRIES macro In your corresponding MAC header file?

 

Please let me know of your findings.

 

Best regards,

Sebastian

0 Kudos

718 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi Mesut, I hope you're doing well!

 

Per 802.15.4 specification, the value for macMaxFrameRetries has to be an integer between 0 and 7, with a default of 3 (this is why the ACK is being sent 4 times).

 pastedImage_1.png

When sending an MLME Request, you should also be setting the u8ParamLength value with the size of the MAC_MlmeReqStart_s structure, like so:

 

sMlmeReqRsp.u8ParamLength = sizeof(MAC_MlmeReqStart_s);

 

Along with the attribute, and value.

 

Could you please try adding that?

 

Please let me know if you still have issues.

 

Best regards,

Sebastian

0 Kudos

718 Views
mesut_yilmaz
Contributor I

Hi Sebastian

Thank you for answer

I did what you sait. Unfortunately , İt is the same

0 Kudos

718 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi Mesut,

 

Could you please try printing the value to see if it's changing accordingly?

 

Also, could you please try doing a cleanup of your project and rebuilding it?

 

Please let me know of your findings.

 

Best regards,

Sebastian

0 Kudos