Hello, I have been having issues in communication between xbees and arduino.
What I am doing is using the program XCTU to send a packet of 32 bytes multiple times (For example 1000
times) to an Xbee, which then transmits to another Xbee (Both are specifically the Xbee Pro S3B) by an antenna. This XBee is then connected to the RX3 and TX3 line of an Arduino Due. This Arduino Due is connected to my laptop by USB and I am reading from Serial3 (From the Xbee) and writing to Serial Monitor. When I send each packet at a transmit interval (gap between packets) of 100 ms or more, all the bytes send successfully. However, when I use a smaller transmission interval (Ex. 20 and 50 ms) I end up missing bytes (For example, if I send a 32 byte packet 1000 times, I get 3100 bytes in Serial monitor instead of 3200).
I am wondering why this happening and what I am doing wrong? I am currently using a Baud rate of 115200, but I have tried slower baud rates, and I have additionally tried packets of different sizes (including 1 byte) and the same issues arise. I thank you for your help.
