I would like to send two bytes of data at 5.8kHz. Without overhead I calculate this would be 93kbps. Unfortunately I’m getting significant package dropping at much lower frequencies and as I increase the frequency of the data transfer it gets worse.
Currently I have two XBEE Wifi S6B modules chatting to each other over an AdHoc Network. One is connected to XCTU and the other is connected over UART to a Teensy 3.1 (which is similar to an Arduino, uses the same IDE but has a Cortex M4 processor which runs at 72MHz). The current test I’m doing is getting the Teensy processor to write 10 bytes of data at 10ms to the XBEE module (~8000bps). Its currently connected via the UART pins which I believe should be able to cope with 1Mbps. The two XBEEs are set-up in Transparent Mode. The baud rate has been tested at both 115200 and 921600. I believe the XBEE Wifi S6 units are capable of communicating at between 1 and 72Mbps.
Both units have the latest firmware (2026) and I’m using the latest version of XCTU (downloaded on Friday). The XBEE units are communicating over less than 10cm. The environment is not electrically noisy and I’m measuring somewhere between -20dBm and -30dBm signal strength. Nothing else is communicating on channel A in the local area. I’m receiving fewer than 94% of the packages at the XCTU terminal. I’ve also conducted a similar tests with similar results with both XBEE units connected to XCTU but I removed one onto the Arduino to reduce the serial bus demand on my computer. However it didn’t make a difference.
How could I improve the data transmission rates with a higher success rate?