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.

SimpliciTi + CC2530 + Uart Bridge application + Data Loss

Other Parts Discussed in Thread: SIMPLICITI, CC2530

Hi all,

    I am facing an issue of data loss while using the SimpliciTi stack's UART bridge example with the CC2530 chip.

    In my processor application, I am sending 20 packets each of 40 bytes (50 bytes I think is the chip TX_MAX kinda limitation). However I have modified the example a bit so that when the chip receives data on UART it will send the packet back on UART (for a kind of checking whether chip gets all data) and OTA. I noticed that some bytes were missing in the data sent back to me on UART by the chip, so I reduced my baud rate from 115200 to 9600. Now the bytes are not getting lost on UART atleast.

   But from the 20 packets I send I receive only between 13-17 packets at receiver side (which is again CC2530). I used packet sniffer to check and saw that the problem is on the TX side where all the packets are not being transmitted.

  Anybody any thoughts on this ?

-Charvi.

  • Does SIZE_INFRAME_Q (=4 in my case) affect in anyway. My MAX_APP_PAYLOAD I set to 40 since I read in developer's note that it should not be more than 50. But the number of packets I receive successfully on the receiver side contain the data intact as I sent. The problem is withe the frames lost completely, which are not being sent I guess as they dont show up in sniffer as well.

    [EDIT: ] Okay here is the latest update. When I keep my transmitter and receiver very close enough like only a distance of 20 cms, i do not get a single packet loss. As soon as I try and increase the distance beyond this I get packet loss. Also I have kept a delay of 100 ms between sending packets from my application. My hardware is CC2530 which gaurantees 400m of range in open air and LOS conditions. Sadly this range is very less :(. Any thoughts on this ? Please help.

  • Hi,

    just a quick thought, have you tried to increase the transmit power by using SMPL_Ioctl() and IOCTL_ACT_RADIO_SETPWR?

  • Hi Leo,

    thanks for your reply.

    I havent tried increasing the Tx power. Will try it and get back with results.

    Charvi.