-
Notifications
You must be signed in to change notification settings - Fork 123
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
Change Serial port? #99
Comments
Hi @RobWPink. There is a description of the work that will be required on the library in order to add this capability here: Even though this issue overlaps with #29, it is somewhat different in that the software serial support requested in #29 will also require a change in the ArduinoRS485 library (arduino-libraries/ArduinoRS485#9), so I think we can consider your request to be distinct from #29 rather than a duplicate. |
You can change to another serial port with: #include <ArduinoModbus.h>
RS485Class _RS485(Serial1, RS485_DEFAULT_TX_PIN, RS485_DEFAULT_DE_PIN, RS485_DEFAULT_RE_PIN);
ModbusRTUServer.begin(_RS485, 42, 9600); In my case i wasted 1 day to check that the Arduino Nano Every is using Serial1. |
With STM32Duino not working, I'm using BlackPill with STM32F4CCU6
|
Did not work for me using ESP32 devkitC.
Tried declaring below in my code but it made no difference, probably something deeper down needs to be rewritten or defined for this to work with ESP32? |
Is there a way to change serial port for RTU comms to Serial1 so that I can do two simultaneous rtu loops (one slave one master) on half duplex?
The text was updated successfully, but these errors were encountered: