-
Notifications
You must be signed in to change notification settings - Fork 7.3k
RS-485 support #32733
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
Comments
Hi there. Zephyr doesn't have an equivalent devicetree binding or support as far as I can tell. |
AFAIK we do not have explicit support for this, even though some controllers have RS-485 mode. For MODBUS RTU support I have added optional GPIOs to control RS-485 transceiver. |
Guys what is the thought if I contribute a generic-rs_485 binding for zephyr. |
I do not see how that could help currently. What do you want to describe with a generic-rx_485 binding, non-existing RS-485 support for optional feature of an UART controller? |
May need to set the registers for the SOC to generate the DE signal automatically as an alternative to IO toggling in the code MODBUS RTU is exclusive to Modbus, and I suspect many users may need a custom one to support non-Modbus compliant devices that use RS-485 bus. I can think we could have a generic sample as well in this case. |
This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time. |
@manoj153 I would certainly be interested in that. My product uses a proprietary protocol over RS485 and so I am in the market for a generic driver that I can build on top of. @jfischer-no I guess it could be an extension to the UART controller since all it would require is an addition to the existing flow control logic. Any contribution made should be coupled with a refactor of the Modbus RTU implementation to use the new functionality. |
I would also be interested in such a solution (via UART + GPIO's). I use Nordic nRF52832/nRF52840. |
is there a special binding exclusive for RS-485?
I see Linux has support for it.
https://www.kernel.org/doc/html/latest/driver-api/serial/serial-rs485.html
How is this interface being or suppose to handle in zephyr from device tree, read-write API and binding perspective?
The text was updated successfully, but these errors were encountered: