I am writing C code on the raspberry pi 3 to communication at a 115200 baud 8-n-1 with a USB adaptor to the XBee s2c. The XCTU is running on my laptop and I am sending the correct frame. I am checking them with the Frames Generator in the XCTU. The frames are saves as a unsigned char in c and are sent directly to the xbee.
The rpi3 is sometimes able to read and write to the xbee but the majority of the time it does not work.
How would I be able to fix this.
Additional information
XCTU tells me that every thing is on the network and I can send a frame and received a success obtained response.
I have also check and sometimes the xbee does receive the data but it does not transmit it over the serial port /dev/ttyUSB0 which is the one that the xbee is connected to.
I don’t believe this issue to be XBee related. More likely the RPi3 flavor and version of Linux you are using, FTDI driver and the FT231X chip on the Sparkfun USB dongle.
Try to lower the baud rate to 9600 and move up to 57600. Does this solve the issues for you?