mruettgers / SMLReader

ESP8266 based smart meter (SML) to MQTT gateway
GNU General Public License v3.0
292 stars 68 forks source link

Hardware question, USB-IR-Head #2

Closed Hoelli4C closed 4 years ago

Hoelli4C commented 4 years ago

Hello,

I previously had a Raspbi with the volkszaehler.org solution installed. I used an USB-IR-Head (https://wiki.volkszaehler.org/hardware/controllers/ir-schreib-lesekopf-usb-ausgang) for this.

I would like to use your solution on a Wemos D1 Mini.

My question: Do you think it would be possible that I just create a small adapter to connect 5V and Data and then use my old IR-Head OR would you recomment to just buy a BPW 40 and build a new one?

Thanks for your help.

mruettgers commented 4 years ago

Hey,

connecting the USB-IR-Head won't work because it is based on a USB-to-UART bridge that does not provide direct access to the underlying phototransistor.

Of course you could disassemble the read head and use the built-in phototransistor, but given the low price I would buy a BPW 40.

tunip commented 4 years ago

BPW 40 with Wemos D1 Mini runs fine in my environment. I also used a USB-IR-Head from volkszaehler.org before.

Sometimes (~2 per week) I have some extreme spikes from the power_current reads, but i filter this in Home Assistant (value could not be negative or higher then e.g. 20000 watt).

mruettgers commented 4 years ago

@tunip Hmm, that sounds weird. I could not detect any spikes in my records so far. If the problem persists, can you please create a new issue so that we can try to figure out what's going on there?

mruettgers commented 4 years ago

@tunip If you are still encountering spikes you may want to test the current version. Instead of using my own implementation for decoding the SML data I switched over to use libSML from Volkszähler. That should give us more reliable results. Beside this it is now possible to attach multiple reading heads.

tunip commented 4 years ago

@mruettgers thx for the feedback. Yes I will try the new libSML version later this week and let you know the result.