Greetings all,
I have successfully transferred centroid data from my OpenMV H7 using the RPC Library to my Arduino MEGA 2560 UART(2). It seems no centroid data is received when I apply the same code to my Teensy 4.0 micro-controller. Does anyone know what’s going on? Thank you for your time.
Hi, I’ve never qualified the RPC library on the Teensy.
You’ll need to figure out what’s happening with the UART. I don’t have a Teensy to test with so I can’t really help debug this.
openmv-arduino-rpc/src/openmvrpc.cpp at master · openmv/openmv-arduino-rpc
The most likely reason is that the timeouts and the UART API is implemented differently on the Teensy. There are 3 methods the library uses. flush(), get_bytes(), and put_bytes().
Flush()/put_bytes() typically work. So, I guess the get_bytes() method acts differently because of the different HALs on the Arduino and Teensy. Probably the timeout is triggering too early.
…
If you are able to figure out the issue and fix it a PR would be appreciated for others to use.