Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Development
  3. IEC 62056-21 Energy meter

IEC 62056-21 Energy meter

Scheduled Pinned Locked Moved Development
19 Posts 10 Posters 7.5k Views 9 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    diogoc
    wrote on last edited by
    #6

    Yes I have it working.
    Just send the commands "/?!<CR><LF>" and "<ACK>050<CR><LF>" and read the response back.
    I used the left part of schematic and connected the RX and TX directly to the atmega328.

    @electrik my meter don't have a physical communication port, so I have to use the optic interface

    1 Reply Last reply
    1
    • jogantJ Offline
      jogantJ Offline
      jogant
      wrote on last edited by
      #7

      @diogoc do you have a working sketch? I worked on the same topic for a landys & gyr uh50 heat counter. It's not a real 62056-21 protocol, initialization is different.
      Best regards

      1 Reply Last reply
      0
      • B Offline
        B Offline
        BNS
        wrote on last edited by
        #8

        @jogant hi, i am working on this project and made a probe according with schematic only left part,i test on actaris ace5000 and send that command unfortunately i dont recieve respond , can you help me?

        jogantJ 1 Reply Last reply
        0
        • B BNS

          @jogant hi, i am working on this project and made a probe according with schematic only left part,i test on actaris ace5000 and send that command unfortunately i dont recieve respond , can you help me?

          jogantJ Offline
          jogantJ Offline
          jogant
          wrote on last edited by
          #9

          @bns unfortunately not really. What I learned from reading alot on different internet pages is that there are many proprietary implementations of the standard IEC 62056-21 protocol.
          The Landis & Gyr UH550 expects 40 NUL chars before the initial sequence "/?!<CR><LF>". This seems to be a kind of wake up of the IR interface and has to be sent with 7 bit and 300 baud. After that the meter answers with its model number and than switches to 2400 baud with 7 bits and parity and then sends the rest of its current values. But unfortunately not common used OBIS datagrams but only the correct form with own OBIS number format.
          Hope this is of any help.

          1 Reply Last reply
          0
          • V Offline
            V Offline
            Volkan's Space
            wrote on last edited by
            #10

            Hi , i made my own optic probe , i can read all data with an arduino. Also i prepared a video about how it works. Here is the description video :
            https://www.youtube.com/watch?v=24CTD9i1O2s

            B K 2 Replies Last reply
            0
            • V Volkan's Space

              Hi , i made my own optic probe , i can read all data with an arduino. Also i prepared a video about how it works. Here is the description video :
              https://www.youtube.com/watch?v=24CTD9i1O2s

              B Offline
              B Offline
              BNS
              wrote on last edited by BNS
              #11

              @volkan-s-space
              hi , last week i could do it and read a meter; but for set clock and date i dont know what commend is for it
              i can read act5000 and jam200
              thanks

              V 1 Reply Last reply
              0
              • B BNS

                @volkan-s-space
                hi , last week i could do it and read a meter; but for set clock and date i dont know what commend is for it
                i can read act5000 and jam200
                thanks

                V Offline
                V Offline
                Volkan's Space
                wrote on last edited by
                #12

                @bns
                Hi , which circuit you use in order to read data from meter ? my circuit or anohter , just i wonder.
                Do u use any mcu to send data or usb-ttl?

                B 1 Reply Last reply
                0
                • V Volkan's Space

                  @bns
                  Hi , which circuit you use in order to read data from meter ? my circuit or anohter , just i wonder.
                  Do u use any mcu to send data or usb-ttl?

                  B Offline
                  B Offline
                  BNS
                  wrote on last edited by
                  #13

                  @volkan-s-space
                  at the first , i only used two led tx , rx and when i get answer i made circuit above that diogoc put it,i only used left part and connected to usb to ttl , and so get obis codes and now i m analyzing obis codes , im trying to set clock the meter but i have not done yet. could you do it?

                  1 Reply Last reply
                  0
                  • V Offline
                    V Offline
                    Volkan's Space
                    wrote on last edited by
                    #14

                    Sorry , i have not try yet.

                    1 Reply Last reply
                    0
                    • W Offline
                      W Offline
                      woocashewski
                      wrote on last edited by
                      #15

                      hi, i'm working on optical probe too.

                      as far as i know, to change anything in power meter - date and time too - you must enter a password, which isn't easy to get - almost impossible ;) there are different levels of access to power meters - without password we can ony read some values - if your power supplier grant you to read them - some power meters has optical interface disabled.

                      1 Reply Last reply
                      0
                      • B Offline
                        B Offline
                        Bojkas
                        wrote on last edited by
                        #16

                        @diogoc
                        Hi, have you placed the sensor over the arduino? I try to do the same, but I'm not. Could he send the code?

                        Thank you

                        1 Reply Last reply
                        0
                        • D diogoc

                          I have almost working this communication.

                          Comercial optical probes like this are expensive:
                          Optical probe

                          So I build a optical probe based on this schematic
                          DIY 62056-21 optical probe

                          Communication protocol tested on my meter:

                          Baudrate: 300 bps, 7 bits, parity even, 1 stop bit
                          Send:     /?!<CR><LF>         (wake-up and sign-on)
                          Receive:  /XXX5YYYYY<CR><LF>  (XXX is the manufacturer ID; YYYYY is the meter ID; 5 is the new baudrate = 9600 bps)
                          Send:     <ACK>050<CR><LF>    (send ack; reading mode)
                          Baudrate: 9600 bps, 7 bits, parity even, 1 stop bit
                          Received: C.1(201236731.0(01:39 25-08-18)
                                    1.8.1(0004398506*Wh)
                                    1.8.2(0000000000*Wh)
                                    1.8.3(0008198809*Wh)
                                    1.8.4(0000000000*Wh)
                                    1.8.5(0000000000*Wh)
                                    1.8(0012597315*Wh)
                                    2.8(0000000000*Wh)
                                    !
                                    D
                          

                          Now I only have to parse the values of tarif 1 (1.8.1), tarif 3 (1.8.3), and total (1.8)

                          K Offline
                          K Offline
                          kes
                          wrote on last edited by
                          #17

                          @diogoc any chance you can re-post your schematic. There is nothing there when I click on it.

                          D 1 Reply Last reply
                          0
                          • V Volkan's Space

                            Hi , i made my own optic probe , i can read all data with an arduino. Also i prepared a video about how it works. Here is the description video :
                            https://www.youtube.com/watch?v=24CTD9i1O2s

                            K Offline
                            K Offline
                            kes
                            wrote on last edited by
                            #18

                            @Volkan-s-Space any chance you can post another link to your video so I can take a look, thanks.

                            1 Reply Last reply
                            0
                            • K kes

                              @diogoc any chance you can re-post your schematic. There is nothing there when I click on it.

                              D Offline
                              D Offline
                              diogoc
                              wrote on last edited by
                              #19

                              @kes Here is the schematic
                              Probe schematic

                              1 Reply Last reply
                              0
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              21

                              Online

                              11.7k

                              Users

                              11.2k

                              Topics

                              113.1k

                              Posts


                              Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • MySensors
                              • OpenHardware.io
                              • Categories
                              • Recent
                              • Tags
                              • Popular