You already asked this in another thread. I suggested to send your data as numerical digits. Basically as "text", ASCII encoded as suggested by scotty101.I’m having a hard time figuring out how to send this decimal numerical data, as a set of lists, over the GPIO serial UART pins.
The sending processor literally prints a string to the serial port. The receiving processor knows what the data looks like and parses it as it arrives.
You could send it exactly as shown in your post, or you could make it look like JSON like the cool kids do, then you have a lot of ready-made tools to pick it apart again. Plus it's super-easy to test.
Just curious - you are collecting data with the Pi, processing it to get robot positions and ball positions, sending this data to four Picos which decide what to do, then each Pico controls one robot by sending data over an RF link. Correct?
Why are the Picos there? Why not collect the data with the Pi, then figure out the action for each robot on the Pi, then send commands to each robot from the Pi via an RF link?
Or use Pico W. Put the Picos on the robots and connect them all to the same network via WiFi? No RS232, no nRF chips, no intermediate processors.
Or carry on as you are, because you probably have a good reason to.
Statistics: Posted by ame — Thu Mar 27, 2025 7:15 pm