Hi all,
I have a Landis+Gyr 3 phase meter with optical readout. DLMS is mentioned near the optical port. I tried sending SNRM data to this port (I created the optical reader/writer with IR Leds and it seems to work OK). My optical reader/writer is connected to a serial port of a micro-controller. I tried different baud rates 2400 to 9600 but no response from the meter. Any suggestions please? Thank you.
I sent this "7E,A0,07,03,21,93,0f,01,7e" data to the meter through my optical link and I received
"7E,A0,87,03,21,93,0F,81,7E". I am not sure what this is. The last checksum byte looks OK though. Any comments on this data please? All the while I was sending binary as DLMS is mentioned on the meter, but an old photostat copy of a few pages of the meter manual says "the communication of the meter is based on dlms protocol i.e. IEC 62056 protocol". As I understand dlms is binary and IEC is ASCII. I will try connecting using IEC today. Thank you.
You need to start communicating with IEC. Try to send /?!\r\n
You should receive meter model as reply. When you receive that your serial port settings are correct.
Thank you. I tried connecting through serial port and terminal software. Tried all possible baud rates starting from 300 to 9600 also tried with N and E parity. There is no response from the meter. The meter is actually not connected to any power supply. It is working off its batteries. Could this be the problem? Is the meter required to be connected to AC? The meter is normally in off state and if we press one of the buttons on the panel then the display shows ... etc. On pressing the switch further, I see STD_DATA. I am leaving the meter in this position and trying. Hope what I am doing is right. Any comments please? Thank you once again for your valuable time.
As suggested by you I applied power to the meter and RS232 started working. However the optical readout has not yet responded (300 baud and also sent /?!<cr-lf>) but nothing. I can see two LEDs in the port on the meter, but not sure
1. If the port is enabled in the meter (though on the meter there is a clear indication)
2. Whether the port is working (I don't see any reason for the port to fail)
Any suggestions? Thank you very much for your advice and time.
Hi kurumi,
I got the modulation implemented in my micro-controller. The baud rate is set to 300. Modulation frequency is about 40.23KHz. I am sending /?!<cr-lf>, but no reply from the meter. Is 38KHz very critical? When I don't disable the receiver, I am able to read what I am sending (/?!) so I guess the transmission and reception seem to be working OK. I tried sending SNRM too, but there is no reply. Any suggestions please? Thank you.
Hi kurumi,
No not echo. To make sure my receiver is working, I enabled the receiver while the transmission is ON. In this case I am receiving what is sent (/?!<cr-lf>). This is happening even if meter is not in range. I therefore confirmed my transmission and reception are OK. Next I disabled the receive during transmission and enabling it soon after sending the message. Here in most cases I am receiving a NULL <0> character (just one character). I am changing the code to change the baud rate from 300 to 9600 if I don't get a reply. Could it be possible that the meter communication baud rate is not 300?
Currently my settings are 300, 7, E and one stop bit. I checked the bit stream on an oscilloscope and it looks OK (unless I am making a mistake in seeing the pulses). Thank you for your time and guiding me to my goal.
Hi kurumi,
Will change frequency and check. Normally IR receiver LEDs with demodulation look dark in color (I could have attached a picture but I don't see the option here). I am using the TV IR reception diode (with three pins) which has a d-modulator builtin. However on the meter both the leds are plain transparent looking, which is making me suspect whether modulation is needed. Though you have mentioned that modulation is required, request you to kindly reconfirm the same. Thank you.
Dear Mikko, thanks for your web and for share the DLMS code.
I read a lot about the optical probes and I made my own based on a simple circuit without 38 khz modulation, I probed the communication with a various brands (Landys, Itron , Hexing) and works Ok.
But I still worry beacouse , I read in your web that the 62056-21 use 38 Khz modulation, but I read the IEC62056-21 document and this not say anythings about modulation only say:
The following limiting values apply:
ON-condition (ON = SPACE = Binary 0): 500 ≤ Ee/T ≤ 5 000 μW/cm2 OFF-condition (OFF = MARK (quiescent state) = Binary 1): Ee/T ≤ 10 μW/cm2
Are you sure that we need to modulate at 38 hz?
The baudrates definitions are:
a) Protocol mode A (without baud rate changeover)
Any desired printable characters except "/", "!" and as long as they are not specified for protocol mode B or protocol mode C.
b) Protocol mode B (with baud rate changeover, without acknowledgement/option select message)
A- 600Bd
B- 1200Bd
C- 2400Bd
D- 4800Bd
E- 9600Bd
F- 19 200 Bd
........
How is possible to Modulate at 38khz when the baudrate is 19200 in some cases?
It has been while when we struggle with modulation, but I'm sure that is 38 kHz. If you can communicate with the meter using IEC62056-2, it's great. I propose that you also try to communicate using DLMS. IEC62056-21 is ASCII based protocol and DLMS is binary-based and that might cause problems. It might be good to check this because companies are changing IEC62056-21 to DLMS.
Thanks for your answer Mikko :). I am trying to develop a reader multi brand an protocol (ASCII and DLMS) with arduino . The first step was be able to communicate we my own optical probe trough 62056-21 (I now that is ASCII protocol). Now I am working with your GXDLMSDirector and SL7000 trough RS232 to understand the protocol. I can connnect with the meter but I can't (or I couldn't figure out yet) obtain the OBIS registers with DLMS ( I can read the OBIS trough optical interface and ASCII). Thanks for your code and to share with the people your know-how.
You can get a list from OBIS codes by reading association view. GXDLMSDirector will ask do you want to read the list of objects after you can make a connection to the meter.
Landis Gyr optical readout
Hi,
If you are communicating with optical head you must start 300 7Even1.
Also, it might good to buy optical head and test with that first.
BR,
Mikko
Hi kurumi,
Hi kurumi,
Thank you very much for your input. I shall test with the above mentioned parameters. Will update. Have a great day.
Hi kurumi,
I sent this "7E,A0,07,03,21,93,0f,01,7e" data to the meter through my optical link and I received
"7E,A0,87,03,21,93,0F,81,7E". I am not sure what this is. The last checksum byte looks OK though. Any comments on this data please? All the while I was sending binary as DLMS is mentioned on the meter, but an old photostat copy of a few pages of the meter manual says "the communication of the meter is based on dlms protocol i.e. IEC 62056 protocol". As I understand dlms is binary and IEC is ASCII. I will try connecting using IEC today. Thank you.
Landis Gyr optical readout
Hi,
You need to start communicating with IEC. Try to send /?!\r\n
You should receive meter model as reply. When you receive that your serial port settings are correct.
BR,
Mikko
Hi kurumi
Thank you. I tried connecting through serial port and terminal software. Tried all possible baud rates starting from 300 to 9600 also tried with N and E parity. There is no response from the meter. The meter is actually not connected to any power supply. It is working off its batteries. Could this be the problem? Is the meter required to be connected to AC? The meter is normally in off state and if we press one of the buttons on the panel then the display shows ... etc. On pressing the switch further, I see STD_DATA. I am leaving the meter in this position and trying. Hope what I am doing is right. Any comments please? Thank you once again for your valuable time.
Landis Gyr optical readout
Hi,
I believe that you need to power your meter.
BR,
Mikko
Hi,
Hi,
Thank you. I think this could be the reason. I will power up the meter and check.
Hi kurumi
As suggested by you I applied power to the meter and RS232 started working. However the optical readout has not yet responded (300 baud and also sent /?!<cr-lf>) but nothing. I can see two LEDs in the port on the meter, but not sure
1. If the port is enabled in the meter (though on the meter there is a clear indication)
2. Whether the port is working (I don't see any reason for the port to fail)
Any suggestions? Thank you very much for your advice and time.
Landis Gyr optical readout
Hi Nayani,
I suggest that you buy optical probe and try with that.
You can also read this:
http://www.gurux.fi/node/4183
BR,
Mikko
Hi kurumi,
Hi kurumi,
The link gave some details on the modulation. I will give it a try and update. Thank you.
Hi kurumi,
Hi kurumi,
I got the modulation implemented in my micro-controller. The baud rate is set to 300. Modulation frequency is about 40.23KHz. I am sending /?!<cr-lf>, but no reply from the meter. Is 38KHz very critical? When I don't disable the receiver, I am able to read what I am sending (/?!) so I guess the transmission and reception seem to be working OK. I tried sending SNRM too, but there is no reply. Any suggestions please? Thank you.
Readout
Hi,
Are you receiving that echo from the meter? Do you receive any other data?
BR,
Mikko
Readout
Hi kurumi,
No not echo. To make sure my receiver is working, I enabled the receiver while the transmission is ON. In this case I am receiving what is sent (/?!<cr-lf>). This is happening even if meter is not in range. I therefore confirmed my transmission and reception are OK. Next I disabled the receive during transmission and enabling it soon after sending the message. Here in most cases I am receiving a NULL <0> character (just one character). I am changing the code to change the baud rate from 300 to 9600 if I don't get a reply. Could it be possible that the meter communication baud rate is not 300?
Currently my settings are 300, 7, E and one stop bit. I checked the bit stream on an oscilloscope and it looks OK (unless I am making a mistake in seeing the pulses). Thank you for your time and guiding me to my goal.
Readout
Hi,
In my mind you should change modulation to 38 kHz. I believe that is the problem.
BR,
Mikko
Readout
Hi kurumi,
Will change frequency and check. Normally IR receiver LEDs with demodulation look dark in color (I could have attached a picture but I don't see the option here). I am using the TV IR reception diode (with three pins) which has a d-modulator builtin. However on the meter both the leds are plain transparent looking, which is making me suspect whether modulation is needed. Though you have mentioned that modulation is required, request you to kindly reconfirm the same. Thank you.
Readout
Hi,
Check this:
https://printplaat.nl/USB-optocoupler-kit
There is schema also.
BR,
Mikko
Dear Mikko, thanks for your
Dear Mikko, thanks for your web and for share the DLMS code.
I read a lot about the optical probes and I made my own based on a simple circuit without 38 khz modulation, I probed the communication with a various brands (Landys, Itron , Hexing) and works Ok.
But I still worry beacouse , I read in your web that the 62056-21 use 38 Khz modulation, but I read the IEC62056-21 document and this not say anythings about modulation only say:
The following limiting values apply:
ON-condition (ON = SPACE = Binary 0): 500 ≤ Ee/T ≤ 5 000 μW/cm2 OFF-condition (OFF = MARK (quiescent state) = Binary 1): Ee/T ≤ 10 μW/cm2
Are you sure that we need to modulate at 38 hz?
The baudrates definitions are:
a) Protocol mode A (without baud rate changeover)
Any desired printable characters except "/", "!" and as long as they are not specified for protocol mode B or protocol mode C.
b) Protocol mode B (with baud rate changeover, without acknowledgement/option select message)
A- 600Bd
B- 1200Bd
C- 2400Bd
D- 4800Bd
E- 9600Bd
F- 19 200 Bd
........
How is possible to Modulate at 38khz when the baudrate is 19200 in some cases?
Thanks for your answer in advance
Dear Ademiti,
Dear Ademiti,
It has been while when we struggle with modulation, but I'm sure that is 38 kHz. If you can communicate with the meter using IEC62056-2, it's great. I propose that you also try to communicate using DLMS. IEC62056-21 is ASCII based protocol and DLMS is binary-based and that might cause problems. It might be good to check this because companies are changing IEC62056-21 to DLMS.
BR,
Mikko
Thanks for your answer Mikko
Thanks for your answer Mikko :). I am trying to develop a reader multi brand an protocol (ASCII and DLMS) with arduino . The first step was be able to communicate we my own optical probe trough 62056-21 (I now that is ASCII protocol). Now I am working with your GXDLMSDirector and SL7000 trough RS232 to understand the protocol. I can connnect with the meter but I can't (or I couldn't figure out yet) obtain the OBIS registers with DLMS ( I can read the OBIS trough optical interface and ASCII). Thanks for your code and to share with the people your know-how.
Hi,
Hi,
You can get a list from OBIS codes by reading association view. GXDLMSDirector will ask do you want to read the list of objects after you can make a connection to the meter.
BR,
Mikko