pwitab / iec62056-21

A Python library for IEC62056-21, Local Data Readout of Energy Meters. Former IEC1107
BSD 3-Clause "New" or "Revised" License
67 stars 21 forks source link

Not able to send address in init request over serial transport #9

Closed Krolken closed 4 years ago

Krolken commented 4 years ago

Usually there is no need for an address when initiating communication over the Optical port of a meter, since it is the only meter available.

But the serial transport can also be used för RS485 which allows for multiple meters to be connected to the loop.

So we need support for sending the address over serial transport too. Some manufactures might also enforce and address on the optical port.

Issue raised from discussion in #4