Skip to content
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

Support for RS485 on ESP32 #673

Closed
schotime opened this issue Dec 22, 2020 · 1 comment · Fixed by nanoframework/nf-interpreter#1826 or nanoframework/Windows.Devices.SerialCommunication#193

Comments

@schotime
Copy link

schotime commented Dec 22, 2020

nanoFramework area: (Hardware/target board | Community contributions)

Is your feature request related to a problem? Please describe.

RS485 is not fully supported on ESP32 hardware

Describe the solution you'd like

Implement the ability to handle different uart modes to support rs485 where the RTS pin needs to be set and hardware ctrl flow would also be disabled as per the spec: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/uart.html#communication-mode-selection

Describe alternatives you've considered

None

Additional context

Comments from @AdrianSoundy on Discord

For managed code i can't see an existing property to switch it to RS485 mode so a new one would need to be introduced, say "Mode" : Normal or RS485. If in RS485 mode all handshaking is disabled.
You would need to first update the Windows.Devices.SerialCommunication assembly which will create stubs to be used in the native code. Then using new stubs update native serial device to check mode property and set it in RS485 mode if required.

Submit a PR with the implementation

None yet.

@nfbot
Copy link
Member

nfbot commented Dec 22, 2020

Hi @schotime,
😞 I couldn't figure out what type of issue you're trying to open...
Make sure you're used one of the templates and have include all the required information. After doing that feel free to reopen the issue.

If you have a question, need clarification on something, need help on a particular situation or want to start a discussion, do not open an issue here. It is best to ask the question on Stack Overflow using the nanoframework tag or to start a conversation on one of our Discord channels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment