This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-CC1350: How can send/receive custom value using rfWsnConcentrator/node example

Part Number: LAUNCHXL-CC1350
Other Parts Discussed in Thread: CC1350

Hi Experts,

Now i am trying to send/receive string between two cc1350 launch pads, so i decided to convert string to ASCII value then i add to the ascii value to the rf packets i have a some doubts to do that above string transmissions

1. I am working with rfWsnConcentratorOadServer_CC1350_LAUNCHXL_tirtos_ccs and rfWsnNodeIntFlashOadClient_CC1350_LAUNCHXL_tirtos_ccs, this example transmit ADC value only but the node have a another one function 

static void sendDmPacket(struct DualModeSensorPacket sensorPacket, uint8_t maxNumberOfRetries, uint32_t ackTimeoutMs)

i don't know how to enable this function and how to transmit ADC,Batt Volt,and time in milli sec

2. What is the RF packet max length and where can change the length,

3. For a example the RF packet max length is 255, so how much length string can transmit/receive 255 or 127 if 255(ascii max val is 127 so 8bit is enough) how can i do that on node and concentrator ends.

4.  how can i add serial read function to node because i am trying to transmit the string which is received from serial.

i hope you understand my doubts 

regards 

surya

  • Hi Surya,

    It's a national holiday today in Norway (Constitution Day), so the sub-1 SW apps team will reply tomorrow. 

    Apologies for any delays.

    Best regards,   

       Richard

  • Hi

    Thanks for the reply and i hope they will respond my doubts as soon as possible

    regards

    surya

  • The different packets used by the example is defined in RadioProtocol.h

    If you want to change the format of any of the packets, you need to change the struct defined in this file

    EasyLink does not support packets longer than 128 bytes

    (#define EASYLINK_MAX_DATA_LENGTH 128)

    The length of an easylink packet is set by EasyLink_TxPacket.len

    I strongly recommend that you start by a simpler example to be able to get familiar with EasyLink. You can use the rfEasyLinkTX and RX examples to play around with different payloads to send. These examples are also easy to add UART functionality to, if you want to receive data over UART and pass it on via RF.

    You can also use the rfPacketRX and rfPacketTX examples for this.

    Siri

  • Hi Siri,

    Thanks for the reply, i have start my project from smart RF studio i have shared the packet format as a text and packet length is 128, then i have export the code that shows only two files like below smartrf_settings.c, smartrf_settings.h, then how can i import to CCS previous examples, 

    2. i can't find to add UART code for rfPacketTX example,

    regards

    surya

  • Please go through the following SLA to learn how to change settings in an existing code project.

    dev.ti.com/.../node

    There are no UART code in the rfPacketRX example. You can use one of the UART examples codes and use them as a reference, and then add similar code to your own example.

    Siri