Periodic Serial Bridge Connect on Aero2Core to Duovero
I am trying to get the serial bridge to work properly from Aero2Core to Duovero direction.
I first started out emulating the Mavlink socket program. At a packet a second everything works fine.
I then did my own packet program using the same settings as the Mavlink (with Mavlink disable) and a small packet size.
It works at 1 second but when I try to communicate a smaller period say 16ms, I get many failed packets like 1 out of every 3 or more. The serial transmission for this packet size at the baud rate should take less than 1ms. It appears that kernel on Nuttx on the AeroCore and or kernel on Linux (with the yocto Linux preempt RT recipe installed) is taken a long time between sending or receiving individual bytes.
I have no problem sending the same size packet with the same serial settings and baud from the Duovero to the Aero2Core. That way works fine. It is just from the Aero2Core to Duovero that is flaky.