I'm trying to change the MAX_APP_PAYLOAD constant value but it's always set to 14.
# 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 = 0x00; msgTX = MSG_CAMBIO_ENTRADA; msgTX = RTCYEARH; msgTX = RTCYEARL; msgTX = RTCMON; msgTX = RTCDAY; msgTX = RTCHOUR; msgTX = RTCMIN; msgTX = RTCSEC; msgTX = MSG_P1_7; if (!BSP_LED1_IS_ON()) msgTX = 1; else msgTX = 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?
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?
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?
please refer here:
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.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.