Hi!
I'm trying to change the MAX_APP_PAYLOAD constant value but it's always set to 14.
smpl_nwk_config.dat definition:
# Maximum size of application payload--define=MAX_APP_PAYLOAD=20
In my program, I print the MAX_APP_PAYLOAD to serial port and shows the value 14.
i = MAX_APP_PAYLOAD; tx_byte(i); tx_send_wait("\n\r",2);
I tried to change to many values and always the printed value is 14.
In my end device, I send the message like this:
msgTX[0] = 0x00; msgTX[1] = MSG_CAMBIO_ENTRADA; msgTX[2] = RTCYEARH; msgTX[3] = RTCYEARL; msgTX[4] = RTCMON; msgTX[5] = RTCDAY; msgTX[6] = RTCHOUR; msgTX[7] = RTCMIN; msgTX[8] = RTCSEC; msgTX[9] = MSG_P1_7; if (!BSP_LED1_IS_ON()) msgTX[10] = 1; else msgTX[10] = 0; if (SMPL_SUCCESS == SMPL_SendOpt(AP_lID,msgTX,11,SMPL_TXOPTION_ACKREQ)) BSP_TOGGLE_LED1();
If I use "11" as length, the message is not received by the AP. But if I change it to 10, it works (with 10 bytes message instead of 11, of course).
I dont know what I'm doing wrong. Do I need to change the MAX_APP_PAYLOAD in some other place?
thanks!!
Hi Jorge,
which radio are you using in this case? Are you using an example code (e.g. the Simple Peer to Peer) as the basis of your code?
Any specific change you made on the SimpliciTI setting?
Regards,
Leo Hendrawan
I'm using the CC430F6137 dev boards, 3 as End Device and one as AP + uart. The basis of my code is the example. I found the problem, when I modify the configuration file, I have to do a "make clean" and then a "make all".
Now it works :D
What's the difference between MAX_APP_PAYLOAD and MAX_NWK_PAYLOAD? are they related?
thanks!!!
Hi,
please refer here:
http://processors.wiki.ti.com/index.php/SimpliciTI_FAQ#How_to_increase_the_application_payload.3F
A little late on the reply I know, but I am trying to change MAX_APP_PAYLOAD as well and this is what I discovered.
All those previous answers are fine, but not directly to the point!!!!
Simpliciti uses smpl_nwk_config.dat to define various network parameters, MAX_APP_PAYLOAD included. So if you want to change it, go to that file, edit it and recompile.
If you try and change it by defining in your code, unless you undefine it in smpl_nwk_config.dat then you will get compile errors with MAX_APP_PAYLOAD multiply defined.
Cheers
Simon Buchwald