Skip to content

Any chance to implement software serial? and several more. #29

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

Open
ijash opened this issue Mar 22, 2020 · 2 comments
Open

Any chance to implement software serial? and several more. #29

ijash opened this issue Mar 22, 2020 · 2 comments
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement

Comments

@ijash
Copy link

ijash commented Mar 22, 2020

I've been reading this good article. He's been testing some libraries across the web and make some good comparison points.
Let me quote some for this particular library:

https://github.com/arduino-libraries/ArduinoModbus

  • Official library from Arduino.
  • Master and slave.
  • Uses the RS485 library to communicate, but does not offer any way to pass a custom RS485 instance, so it is effectively hardcoded to a specific serial port.
  • Offers only single value reads and writes.
  • Slave stores value internally and reads/writes directly from those, without any callback or way to detect that communication has happened.

More on the page, and I hope this reference makes a good study for further improvement.
So, for my personal request, Any chance to implement to softwareSerial? So many other boards can use this library later.

Because I want the official library can cover it all.

Thanks in advance.

@matthijskooijman
Copy link

What would be needed on this library is to allow passing a custom RS485 instance, rather than hardcoding to the predefined global RS485 instance.

Additionally, the RS485 library should also be modified to accept a Stream instead of a HardwareSerial instance, so you can also pass SoftwareSerial (or other streams) instead of just HardwareSerial.

@per1234 per1234 added the type: enhancement Proposed improvement label Mar 22, 2020
@larsvankleef
Copy link

larsvankleef commented Jun 22, 2021

Would be pretty nice if this would be an option. Or is there another workaround to get this library working on an Arduino UNO?

@per1234 per1234 added the topic: code Related to content of the project itself label May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

4 participants