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

ESP-link to connect a Smart Meter #564

Open
ScanxTaz opened this issue Feb 28, 2023 · 3 comments
Open

ESP-link to connect a Smart Meter #564

ScanxTaz opened this issue Feb 28, 2023 · 3 comments

Comments

@ScanxTaz
Copy link

Hey Dear, hope there's still life here :)

I'm wondering... I succeeded in flashing a NodeMCU with and ESP32 on it with ESP-Link.
The beast is running and I can see the logs of the smart metter rolling on ESP-Link.
Now, I'd like to get the content of the log and parse it to publish on MQTT.
I'm not totally sure ESP-Link can do that... Is it ?

I'm currently trying to bind a socket in Python from an external machine on the port 23 of ESP-Link.
This works, but well... I'm sure it can do it more properly, especially because the socket falls down after a while, seems to have sync issues...

so, is there any more proper way of doing this ?

Thanks for the (alive) people here :)
Thierry

@uzi18
Copy link
Contributor

uzi18 commented Feb 28, 2023

esp-link does not support esp32.
NodeMCU is esp8266 thats why it works :)

I'm using telnetlib for communication with esp-link as serial bridge on 23 port

https://github.com/uzi18/sterownik/blob/e53e18d75375e0db319ab2d5652ee19794328e5d/arduino/Domoticz/test.py#L109

@ScanxTaz
Copy link
Author

ScanxTaz commented Mar 1, 2023

Yeah, thanks usi18, but either with Telenetlib or direct Socket implementation, the listener falls at some point. The DSMR is "publishing" the logs of the energy consumption infinitely, and, I don't know why, this implementation fails after a while... (I also started with Telenetlib)

@uzi18
Copy link
Contributor

uzi18 commented Mar 1, 2023

Please show more info about your project, maybe we can simulate this behabior?

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

No branches or pull requests

2 participants