daniel-jong / esp8266_p1meter

DSMR5 P1 meter to mqtt using esp8266
GNU General Public License v3.0
152 stars 54 forks source link

question on the RTS pullup #34

Closed patience4711 closed 11 months ago

patience4711 commented 1 year ago

Hi Daniel, first of all thanks for your good work. I am trying to write the lines to a file because i have no wifi at the location of my meter. This is the only way i can test. In the hardware i connected RTS and the resistor to pin D5 of the nodeMCU. Before reading i make this pin high. I expected that this would work but i have a strange behaviour. Using your method i always get about the second half of the telegram. No matter what i tried, with delays and a "wait_until_serial_available" method, it is always this. It seems that the meter starts the telegram with that.

So i adapted the software such that at bootup the meter is polled and the resulting telegram is saved in spiffs. This way i have a testTelegram that i can use to test the other functions. And this works very well. please look here