Inverted RX serial in Berry #20706
-
I want to read an inverted serial signal from a Dutch smartmeter with Tasmota using this device: https://smart-stuff.nl/product/p1-dongel-slimme-meter-esp32/ The serial data is inverted by using the espressif function uartSetRxInvert. How can I set Tasmota to receive the inverted serial data in Berry without additional hardware? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 2 replies
-
I guess this would need a change in Berry |
Beta Was this translation helpful? Give feedback.
-
Let me add this option, it's simple enough. |
Beta Was this translation helpful? Give feedback.
-
Please use the latest development version, there is now an optional argument to set to inverted: # gpio_rx:4 gpio_tx:5
# normal mode
ser = serial(4, 5, 9600, serial.SERIAL_7E1)
# inverted mode
ser = serial(4, 5, 9600, serial.SERIAL_7E1, true) |
Beta Was this translation helpful? Give feedback.
-
Thank you very much! I'm going to test it this week. |
Beta Was this translation helpful? Give feedback.
-
hey man, I have the same dongle but I am not getting it to work, did you figure it out? so yes are you able to help me with mine? |
Beta Was this translation helpful? Give feedback.
-
Not yet, I want to pick up the development of the smartmeter script in the next few weeks |
Beta Was this translation helpful? Give feedback.
Please use the latest development version, there is now an optional argument to set to inverted: