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. Unable To Communicate Using MQTT Media Source W/o Gurux Bridge

Unable to communicate using MQTT media source w/o Gurux Bridge

By vladSavenia, 21 November, 2023
Forums
Gurux.MQTT

Hello!

I have the same environment as described here: https://www.gurux.fi/forum/16596 but there no solution to the problem.
My meter natively supports MQTT protocol and I want to communicate directly using DLMS Director without using Gurux Bridge software. But when I try to do so the only messages that come to my topic are:

{
"id": 28,
"sender": "f06d16cd-e86c-48fb-8592-aad2955cc4da"
}

and then without receiving a response, the following message arrives

{
"id": 29,
"sender": "f06d16cd-e86c-48fb-8592-aad2955cc4da",
"type": 3
}

I would like to clarify a few questions:
1. Is it possible to communicate using DLMS Director software directly with meter using MQTT protocol without Bridge?
2. If so, what do I need to do?
3. Where can I find all the message types that you use for MQTT protocol to simulate Gurux Bridge responses on the meter side?

Regards,

Vladislav Savenia

Profile picture for user Kurumi

Kurumi

2 years 4 months ago

Hi Vladislav, MQTT is not…

Hi Vladislav,

MQTT is not defined by DLMS standards. This means that the MQTT data structure can be anything.
Can you share the structure of the message so I can check if it's possible to add support for your meter?

BR,
Mikko

vladSavenia

2 years 4 months ago

Hi Mikko, Thanks to Gurux…

Hi Mikko,

Thanks to Gurux.Broker, I managed to add support for all types of json messages that Gurux GXDLMSDirector sends/receives by viewing all incoming and outgoing traffic, now my device responds via mqtt without an Gurux.Bridge, so the previous questions are no longer relevant.

But after successful authorization, when trying to update the list of objects, Gurux GXDLMSDirector freezes after processing a certain message (when reading fields stored in profiles, when I disable them in the meter everything is fine), while when I try to close the program, the Gurux GXDLMSDirector starts working again: processes the incoming response, sends a new request and freezes again. Having done this trick several times, it is possible to completely update the list of objects, but I would like to know the possible reason for this behavior in order to avoid this.

I will try to share the screen recording later because in log everything seems fine.

15:49:14 --- Reading scalers and units end. ---
3:49:14 PM Reading object 1.0.99.1.0.255, interface ProfileGeneric
00 01 00 01 16 66 00 0D C0 01 C1 00 07 01 00 63 01 00 FF 03 00
3:49:14 PM Get profile generic columns...
00 01 00 01 16 66 00 0D C0 01 C1 00 07 01 00 63 01 00 FF 03 00

--------THEN WE STUCK HERE UNTIL "CLOSE THE PROGRAM" TRICK--------

15:49:14 03:49:14.949 Received 00 01 16 66 00 01 00 60 C4 01 C1 00 01 05 02 04 12 00 08 09 06 00 00 01 00 00 FF 0F 02 12 00 00 02 04 12 00 03 09 06 01 00 01 1D 00 FF 0F 02 12 00 00 02 04 12 00 03 09 06 01 00 02 1D 00 FF 0F 02 12 00 00 02 04 12 00 03 09 06 01 00 03 1D 00 FF 0F 02 12 00 00 02 04 12 00 03 09 06 01 00 04 1D 00 FF 0F 02 12 00 00
3:49:46 PM

Have you had a similar experience?

Regards,

Vladislav

Profile picture for user Kurumi

Kurumi

2 years 4 months ago

Hi Vladislav, It looks like…

Hi Vladislav,

It looks like the reply message is not received from the meter for some reason. I haven't heard of this before.

Can you save the association view so you don't need to read it with MQTT. Can you read e.g. the clock?

BR,
Mikko

vladSavenia

2 years 4 months ago

Hi Mikko Yes, I can save the…

Hi Mikko

Yes, I can save the association view and when it's done all commands work as expected including clock etc.

But even if we take into account that no response was received, then why does the Gurux stucks instead of sending a second request, because the retries num in my case is equal to 3 and in other cases it works properly.

Regards

Vladislav

Profile picture for user Kurumi

Kurumi

2 years 4 months ago

Hi Vladislav, Yes, my idea…

Hi Vladislav,

Yes, my idea was to check that the communication was working after the connection was established.

I'm wondering what might be the reason for this because I haven't heard any problems from our customers.

I need to think about how we can repeat your problem.

BR,
Mikko

vladSavenia

2 years 4 months ago

My meter is currently…

My meter is currently connected to MQTT broker, so I can share the .gxc file with you and you can connect to it and try it by yourself.
Can you please email me so that I can share the .gxc file with you?
My address: [Email address removed.]

Regards,
Vladislav

Profile picture for user Kurumi

Kurumi

2 years 4 months ago

Hi Vladislav, What kind of…

Hi Vladislav,

What kind of changes need to be done for the MQTT messages? I believe that there are changes in the MQTT structure.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 04/07/2026 - 17:17
    Gurux.DLMS.Python 1.0.197
  • Tue, 04/07/2026 - 15:03
    gurux.dlms.c 9.0.2604.0701
  • Tue, 04/07/2026 - 14:50
    gurux.dlms.java 4.0.91
  • Tue, 04/07/2026 - 14:00
    Gurux.DLMS.Net 9.0.2604.0701
  • Mon, 03/30/2026 - 15:39
    gurux.dlms.c 9.0.2603.3001

New forum topics

  • Issue when reading Itron Type620 meter
  • Handling Unexpected Disconnects
  • DLMS Communication Issue – No Response (L&T Meter via USB Probe)
  • Unable to cast object of type Gurux.DLMS.GXStructure to type Gurux.DLMS.GXArray
  • How to properly invoke KeyAgreement
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin