-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update and improve serial protocol #823
Update and improve serial protocol #823
Conversation
PR missing one of the required labels: {'internal', 'breaking-change', 'new feature', 'documentation', 'bug', 'enhancement', 'dependencies'} |
107d30c
to
8b9a9fb
Compare
912084b
to
5bd9b96
Compare
0cd15d8
to
db8702a
Compare
db8702a
to
6207fdf
Compare
Hi! Tried today's main branches of zenoh and zenoh-pico on the RPI Pico2:
Desynchronized versions? :-( zenoh-pico:
zenoh:
Run:
|
Are you sure ttyACM0 is connected to pins 8.9? |
Absolutely, pins 8.9. I tried 115200 and 38400 at the rpi pico2 side, in both cases I get the following sequence on the serial terminal's screen when the microprocessor is restarted:
When both zenoh and zenoh-pico were configured for the 115200 baud, there was an error message ("Unexpected init flag"). With both configured to 38400, they were able to connect!
Back to 115200, error. Same 9 bytes in the serial terminal, although zenoh reports an error. Very strange! I will check with another hardware tomorrow. Guys, thank you so much for making the serial channel work reliably! I really hope this will attract more people to using zenoh and zenoh-pico. |
Example file for the z-serial-0.3.1, rpi pico2 is at 115200.
A serial terminal program still shows
|
Forget it. There must be a problem in my serial-to-USB converter based on the RP2040 debug probe. |
Hello! Another microprocessor: RP2350B. Another serial connection: 0.1. Another USB-to-serial: CH340. Only the serial port name has changed in the system to /dev/ttyUSB0. Same bad behavior at 115200 baud with both zenoh and serial-echo example. Still works at 38400. :-)
I will give up for now. |
Hello, Just ported the latest version of the zenoh-pico library to the STM32/ThreadX platform. 115200 is OK, works with zenohd like a champ! The cases when the zenoh router is not available during the call of the _z_connect_serial, or the router goes down during the serial session, still need some polishing on the zenoh-pico side, but at least the router itself behaves quite reliably. Thank you for your great work! |
Zenoh Pico side serial protocol changes for serial reopening
ZettaScaleLabs/z-serial#9
eclipse-zenoh/zenoh#1624
Additionally, common code has been moved to a common module