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
UART: support sending of break signal #1494
Comments
Probably the idf function |
Thanks for the answer and adding this possibility. Unfortunately, according to the docs, it doesn't work without sending data. For DMX, the break has to be sent first. I think that I'll still be able to come up with a portable solution, though:
|
Thank you for starting to dig into this. Adding this functionality seems a lot cleaner for the dmx-512 implementation. |
can you write an example of use in the esphpme component? |
Check https://github.com/andyboeh/esphome-dmx512, there are separate files for ESP32, ESP8266 and ESP32IDF. Or directly: https://github.com/andyboeh/esphome-dmx512/blob/49541b1e6bb9e897339fd8640298e9b1cc622923/components/dmx512/dmx512esp32.cpp#L11 |
Describe the problem you have/What new integration you would like
I am working on a DMX-512 implementation based around the MAX485 IC. The UART can be used for sending data, but a break signal of a specific length needs to be sent before starting the transmission. Unfortunately, this is not supported by the UART component.
Please describe your use case for this integration and alternatives you've tried:
I suggest a new
sendBreak(usecs)
method that allows sending of the break signal.Additional context
There are a few workaround options that I could find for different controllers that involve either changing the baud rate on-the-fly and sending a 0 byte or detaching the Tx pin and driving it manually for the break generation. However, that is hardware-specific and can't be done in the DMX component.
The text was updated successfully, but these errors were encountered: