rscada / libmbus

Meter-bus library and utility programs
http://www.rscada.se/libmbus
BSD 3-Clause "New" or "Revised" License
217 stars 137 forks source link

Just help, how to start? #139

Closed nardev closed 5 years ago

nardev commented 6 years ago

Sorry for opening an issue for this.

I just found out about m-bus and if somebody is happy to help, i have following concerns:

  1. What hardware do i need? The bare minimum? Preferably ESP8266 as a reading platform + what else?

  2. In my building, just next to my doors, in a locker, is main water meter. I realized it's M-Bus Cyble v2.0 (https://www1.itron.com/local/Poland%20Product%20Portolio/GA-CYBLEMBUSSTD-01-EN-10-14.pdf) It's one of 4 in the locker and all 4 are connected to main line with two wires.

My concern is, is it safe to hook RPI/ESP8266 directly to the main line? (i don't want to damage anything) Would i be able to identify my meter and practically, how to do that?

  1. Did anyone try to rebuild this lib for Arduino and use it on ESP8266?

  2. Since i have no idea about the protocol and the device, does the "reading" device have to be on always in order to catch all impulses or the given value is the last value on the device, so occasional reading is just enough for status update?

  3. Since it's quite impractical for me to stay on the lobby and play with the devices, what would the easiest way to test if i can read data and what i get once i read it.

Thank you all

lategoodbye commented 6 years ago
  1. Please look at media converters at https://github.com/rscada/libmbus/wiki/Supported-devices
  2. & 3. Please read http://www.m-bus.com/files/MBDOC48.PDF
  3. Take a look at https://github.com/rscada/libmbus/issues/27
  4. I recommend to use your own devices for tests.
nardev commented 6 years ago

Good thing, Itron is there on the list, but my device is cyble 2.0. I hope that would be ok? @lategoodbye

meter

Regarding arduino, i found this project, however, very little hardware tips:

MBusMqttLogger

and the derived one: wifi-mbus

lategoodbye commented 6 years ago

I think you misunderstand me. You will need a M-Bus master, too (please refer to media converter as mentioned in the link above). The cyble 2.0 should work, but i never test it,

nardev commented 6 years ago

Can there be two masters on the line?

I assume, they already have some master there on the line, i just want to get data from my meter.

Actually, it would be great to get simplified explanation how the m-bus network works, what is where...