Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Landis Gyr Optical Readout

Landis Gyr optical readout

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By Partha , 27 September, 2017
Forums
Gurux.DLMS

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.

Profile picture for user Kurumi

Kurumi

8 years 8 months ago

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

Partha

8 years 8 months ago

In reply to Landis Gyr optical readout by Kurumi

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.

Partha

8 years 8 months ago

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.

Profile picture for user Kurumi

Kurumi

8 years 8 months ago

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

Partha

8 years 8 months ago

In reply to Landis Gyr optical readout by Kurumi

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.

Profile picture for user Kurumi

Kurumi

8 years 8 months ago

Landis Gyr optical readout

Hi,

I believe that you need to power your meter.

BR,

Mikko

Partha

8 years 8 months ago

In reply to Landis Gyr optical readout by Kurumi

Hi,

Hi,
Thank you. I think this could be the reason. I will power up the meter and check.

Partha

8 years 8 months ago

In reply to Landis Gyr optical readout by Kurumi

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.

Profile picture for user Kurumi

Kurumi

8 years 8 months ago

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

Partha

8 years 8 months ago

In reply to Landis Gyr optical readout by Kurumi

Hi kurumi,

Hi kurumi,
The link gave some details on the modulation. I will give it a try and update. Thank you.

Partha

8 years 8 months ago

In reply to Landis Gyr optical readout by Kurumi

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.

Profile picture for user Kurumi

Kurumi

8 years 8 months ago

In reply to Hi kurumi, by Partha

Readout

Hi,
Are you receiving that echo from the meter? Do you receive any other data?
BR,

Mikko

Partha

8 years 8 months ago

In reply to Readout by Kurumi

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.

Profile picture for user Kurumi

Kurumi

8 years 8 months ago

Readout

Hi,
In my mind you should change modulation to 38 kHz. I believe that is the problem.

BR,

Mikko

Partha

8 years 8 months ago

In reply to Readout by Kurumi

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.

Profile picture for user Kurumi

Kurumi

8 years 8 months ago

Readout

Hi,

Check this:

https://printplaat.nl/USB-optocoupler-kit
There is schema also.

BR,

Mikko

ademiti

6 years 10 months ago

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

Profile picture for user Kurumi

Kurumi

6 years 10 months ago

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

ademiti

6 years 10 months ago

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.

Profile picture for user Kurumi

Kurumi

6 years 10 months ago

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

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin