Replies: 2 comments
|
On the Arduino side, serial communication typically works over UART using the Serial library (Serial.begin(), Serial.write(), Serial.read()), which is how most microcontrollers exchange data with a computer. If Pybricks exposes a serial or USB interface on the EV3, the general approach with PySerial would be the same: open the correct port, match the baud rate on both ends, and read/write bytes. The main things to confirm are the port name Pybricks uses (may show up differently than a standard Arduino COM port) and whether it expects raw serial data or wraps messages in its own format. I don't have specifics on Messaging.AppData itself, but if it's a Pybricks messaging API, it's likely designed as their own structured way of exchanging data (rather than raw serial), which could replace the need for PySerial entirely if you're just moving data to/from a PC. It's worth checking Pybricks' official documentation or examples specifically for "Messaging.AppData" or "PC communication" to see the intended usage pattern, since that part is specific to their firmware rather than general Arduino-style serial. |
|
Pybricks does have something similar to a serial interface in UARTDevice. I don't know how to use AppData so I can't answer about that. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Does Pybricks firmware support serial communication like Arduino? Can I use Pyserial on a computer to exchange data with an EV3 running Pybricks firmware?
[Update]
I just found Messaging.AppData, how to use it?
All reactions