Different behavior than standard Platform IO 'pico' when running simple Modbus RTU Server example using ArduinoModbus #2379
Closed
pomplesiegel
started this conversation in
General
Replies: 2 comments 1 reply
-
I know nothing about ModBus or that library, but you may want to grab a logic analyzer recording for working and non-working for the library authors. Also, it looks like this is an Arduino.cc library so they may have special mbedOS-only options configured (we're bare metal, no OS). If there are other OSS ModBus libs you may want to look at them. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hello! FYI, I switched to this library instead (below) and for me it is working much more reliably for the RP2040 on this platform. Thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I realize this is crossing streams slightly, but I'm wondering if what's going on here may be on a lower embedded level.
I am building a device using an Adafruit Feather RP2040 + a RS485 interface for Modbus RTU communication. Everything was working well when using the standard Raspberry Pi Pico platform on Platform IO. However, I really prefer the arduino-pico platform so I changed over. Everything was working great, but for some strange reason only 1 modbus server/slave running
arduino-pico
can be reached on a RS485 bus without waiting multiple seconds - a totally new and very strange issue.I'm wondering if some strange timing / pin behavior is happening here under the hood?
This is the issue I created for the ArduinoModbus library, including a very short 20-ish-line generic MVP example of the issue.
Anyone have any ideas on what could be going on here? I've been beating my head against a wall trying experiments to uncover what could be the underlying issue.
Thank you!
Michael
Beta Was this translation helpful? Give feedback.
All reactions