Hello,
I´m using an Raspi 2 with openhab 1.8.1. I just got the IR USB Dongle from volkszaehler.org and now trying to read the data from my energy meter ISKRA MT 174.
I can read the data from within a terminal session. I set up the serial port with
stty -F /dev/ttyUSB0 1:0:9a7:0:3:1c:7f:15:4:5:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0
after that, I send the following signal to the meter
echo -n -e ‘\x2F\x3F\x21\x0D\x0A’ > /dev/ttyUSB0
and watch with
cat /dev/ttyUSB0
in a second session all the data coming from the meter. This is working perfectly. When I now try to use the IEC 62056 - 21 Meter Binding with the following parameters:
######################### IEC 620562-21 Meter Binding ####################
# the serial port to use for connecting to the metering device e.g. COM1 for Windows and /dev/ttyS0 or
# /dev/ttyUSB0 for Linux
iec6205621meter:meter1.serialPort=/dev/ttyUSB0
# Delay of baud rate change in ms. Default is 0. USB to serial converters often require a delay of up to 250ms
# default is 0ms
iec6205621meter:meter1.baudRateChangeDelay=0
# Enable handling of echos caused by some optical tranceivers
# default is true
iec6205621meter:meter1.echoHandling=false
# Perform a module status query every x seconds (optional, defaults to 600 (10 minutes)).
iec6205621meter:refresh=120
I´m getting just errors in the openhab log, saying the following:
2016-03-26 14:06:07.270 [ERROR] [iec6205621meter.internal.Meter] - IOException while trying to read: Timeout while listening for Identification Message
2016-03-26 14:06:08.213 [ERROR] [iec6205621meter.internal.Meter] - IOException while trying to read: Serial Port does not support -1bd 7E1
It actually doesnt matter what I configure in openhab.cfg, I tried with echo handling true and false, with different timeouts. But never got it to work.
I also tried different versions of this binding, starting from 1.8.1, 1.8.2 and now using the version from the latest 1.9.0 nightly build.
Has someone an idea what to do? Am I doing something wrong or did I missed something?
Thanks for help!!!
regards
Daniel