Skip to main content
Home
for DLMS smart meters

Main navigation

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

Breadcrumb

  1. Home
  2. Forums
  3. ESP32 Communication With EDMI Meter MK32 Over Optical Channel

ESP32 communication with EDMI meter MK32 over optical channel

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.

Profile picture for user Muhammad Adeel
By Muhammad Adeel, 14 May, 2022
Forums
Known problems

Hy,

i am working on a project in which i want to communicate with the smart energy meter of EDMI brand model number MK32. My idea is to use optical port to fetch out the parameter of energy meter i.e. voltage, current and power, and then transfer it to the cloud. I need your help to establish the communication between MK32 energy meter and optical port. For this purpose i need binary code to fetch out the required data from optical port of the meter.

Or let me know is there a way to fetch out the data from energy meter using optical port. Please guide me.

So far i tried RF transceiver NRF24L01,433MHz CC1101 Wireless RF Transceiver and RF transmitter and receiver module to communicate with MK32, but failed. Someone guide me to use optical port to communicate with the meter, i am new to work on EDMI meters, i need your help to guide me to proceed with my project.

Thank you.

Profile picture for user Kurumi

Kurumi

3 years 6 months ago

Hi,

Hi,

I believe that the best way to get started is to read your meter with GXDLMSDirector. It will help you to get an idea of what kind of data you can read from the meter. You don't want to read all the data.
It will help you to know the correct settings. If one of your settings is wrong, it might be that you don't get any reply from the meter.

Then you can download client example an modify it for your needs.
https://github.com/Gurux/GuruxDLMS.c/tree/master/Arduino_IDE

BR,
Mikko

Profile picture for user Muhammad Adeel

Muhammad Adeel

3 years 6 months ago

Thanks for your reply I

Thanks for your reply I downloaded and install the GXDLMSDirector, however i am little confused how to integrate it with esp32. My idea is to use optical cable and get the meter data i.e. voltage, current and power via optical cable serial port in esp32. Can you guide me how to use GXDLMSDirector to get meter data over optical cable, (I think if somehow i get the hex code for optical communication between esp32 and meter, to send command signal from optical cable over serial port RX,TX of esp32 i.e. Hex code for voltage data , Hex code for current data and hex code for power data.)

Profile picture for user Kurumi

Kurumi

3 years 6 months ago

Hi,

Hi,

You don't need to integrate GXDLMSDirector with esp32. The main idea to start with GXDLMSDirector is that you will know what settings to use to communicate with MK32. DLMS meters doesn't reply, if one of your settings is wrong and using GXDLMSDirector you will save a lot of time. After you have establish the connection with GXDLMSDirector it's easier to implement it with ANSI C. Also you can get an idea from DLMS meters. They are much more than just counters.

BR,
Mikko

Profile picture for user Muhammad Adeel

Muhammad Adeel

3 years 6 months ago

is there any video tutorial

is there any video tutorial in which operator is using optical cable to communicate with the meter using GXDLMSDirector. ?

Profile picture for user Kurumi

Kurumi

3 years 6 months ago

Hi,

Hi,

Optical probe and serial port settings vary with different meter manufacturers. Try to change Media from Net to Serial. Then select correct serial port and change HDLC interface to HdlcWithModeE.

Accept changes and try to connect. If the connection fails and you don't receive any reply from the meter, you need to find the correct serial port settings and client address. Check this video. I hope it will help you to get started.

https://youtu.be/BeaWKmyMwuE

BR,
Mikko

Profile picture for user Muhammad Adeel

Muhammad Adeel

3 years 6 months ago

Thanks for your response, i

Thanks for your response, i will check it and if i needed further assistance i will ask you. I really appreciate your quick response.

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 12/02/2025 - 10:21
    gurux.dlms.c 9.0.2512.0201
  • Mon, 12/01/2025 - 13:55
    Gurux.DLMS.Python 1.0.193
  • Thu, 11/13/2025 - 15:23
    Gurux.DLMS.Python 1.0.192
  • Thu, 11/13/2025 - 14:55
    gurux.dlms.java 4.0.84
  • Wed, 10/29/2025 - 08:51
    gurux.dlms.c 9.0.2510.2901

New forum topics

  • Incomplete Firmware Upgrade Process
  • SNRM byte mening
  • P384 Client Certificate incorrect issuer CN
  • Confirmed push service support
  • DLMS Stack hang during Firmware Upgrade
More

Who's new

  • diroccon
  • amelara
  • stasxol
  • Shaheer Tariq
  • Jagi_prg
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin