Replies: 4 comments 3 replies
-
Moved to Discussions because this is not a Micropython bug report. |
Beta Was this translation helpful? Give feedback.
-
The code that follows is to read data from a power meter via RS485. I guess you can easily adapt it to your needs. And yes, it is "over commented"... The CRC functions are not included as you may need to use the appropriate for your needs. If you remove the CRC checking you can read any RS485. Also, I limited the readings to 1 per second to comply with the meter limitations.
|
Beta Was this translation helpful? Give feedback.
-
And sorry... It is proper to work for MODBUS. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your answer, but I find that this is not the solution I need. My actual requirement is that after the detection of UART sending data, RS485 can switch to the receiving data state at the fastest speed.
…---- Replied Message ----
| From | ***@***.***> |
| Date | 11/10/2024 00:05 |
| To | micropython/micropython ***@***.***> |
| Cc | 悦妃云 ***@***.***>,
Author ***@***.***> |
| Subject | Re: [micropython/micropython] How to handle fast flipping of RE/DE pins when using ESP32 and RP2040 UART as RS485 (Discussion #16193) |
And sorry... It is proper to work for MODBUS.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
When using ESP32 and RP2040's UART for RS485 communication, how to handle the fast flipping of RE/DE pins, the different transmission speeds at different baud rates, how to know whether all data on UART has been sent, and how to switch to receiving data as quickly as possible after sending.
Code Size
No response
Implementation
I hope the MicroPython maintainers or community will implement this feature
Code of Conduct
Yes, I agree
Beta Was this translation helpful? Give feedback.
All reactions