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. Server Example

Server example

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 kristupas , 15 February, 2022
Forums
Gurux.DLMS

Hello,

Is it possible to run multiple server examples (on different devices) and read them via single RS485 port? For example: laptop 1 and 2 are running server examples and laptop 3 reads from both of them (using different serial numbers). All devices are connected via rs485 to USB adapters to each other.

I get something like this when I try to connect. If only one server is running, then it connects and works normally.

Read failed. Timeout occurred.
Read failed.
7E A0 0A 23 00 06 BF F7 FFData send failed. Try to resend 1/3
Read failed. Timeout occurred.
Read failed.
7E A0 0A 23 00 06 BF F7 FF 7E A0 3A 23 00 02 44 D1 30 60 63 E6 E7 00 61 29 A1 09 06 07 60 85 74 05 08 01 01
A2 03 02 01 00 A3 05 A0 00 00 34 44 04 00 00 06 5F 1F 04 00 00 1E 1D 02 00 00 07 7A ED 7EData send failed. T
ry to resend 2/3
Read failed. Timeout occurred.
Read failed.
7E A0 0A 23 00 06 BF F7 FF 7E A0 3A 23 00 02 44 D1 30 60 63 E6 E7 00 61 29 A1 09 06 07 60 85 74 05 08 01 01
A2 03 02 01 00 A3 05 A0 00 00 34 44 04 00 00 06 5F 1F 04 00 00 1E 1D 02 00 00 07 7A ED 7EData send failed. T
ry to resend 3/3
Read failed. Timeout occurred.
Read failed.
7E A0 0A 23 00 06 BF F7 FF 7E A0 3A 23 00 02 44 D1 30 60 63 E6 E7 00 61 29 A1 09 06 07 60 85 74 05 08 01 01
A2 03 02 01 00 A3 05 A0 00 00 34 44 04 00 00 06 5F 1F 04 00 00 1E 1D 02 00 00 07 7A ED 7E FF BE 2E 7D EF 7F
DF FF F5 FFAARQRequest failed (253) Data receive failed.
Failed to make connection

Profile picture for user Kurumi

Kurumi

4 years 3 months ago

Hi,

Hi,

Yes, it's possible and you can do it on the same PC if you have enough serial ports. You need to give a unique server address for each meter and then check is received data for this meter in IsTarget function.
http://www.gurux.fi/Gurux.DLMS.Server

BR,
Mikko

kristupas

4 years 3 months ago

In reply to Hi, by Kurumi

Thank you for the answer. But

Thank you for the answer. But if I create a daemon which constantly reads both devices I cannot contain single connection for both devices, right? Each read, new connection and disconnection has to be made?

Profile picture for user Kurumi

Kurumi

4 years 3 months ago

Hi,

Hi,

You need to create multiple instances from GXDLMSClient. One instance per meter.
Then you can read meters simultaneously.

The SImulated meter will check is frame sent to it and if it's not it will skip it. The client does the same thing.

BR,
Mikko

kristupas

4 years 3 months ago

In reply to Hi, by Kurumi

I got it running, but seems

I got it running, but seems like example client and multiple servers does not work with GMAC authentication. It's fine if I'm running single client and single server, but If I run multiple servers and reading via same serial port with different serial numbers, I get "Read failed":

7E A0 7A 03 00 02 32 43 30 EA 5D E6 E7 00 61 69 A1 09 06 07 60 85 74 05 08 01 03
A2 03 02 01 00 A3 05 A1 03 02 01 0E A4 0A 04 08 41 42 43 44 45 46 47 48 88 02 07 80 89 07 60 85 74 05 08
02 05 A8 00 00 01 82 F0 F8 7C 3E 9F 4F 27 13 09 84 42 A1 BE 23 04 21 28 1F 30 00 00 03 C9 31 5D 67 BF 09
1E 89 DB FA 6D 06 D4 1E 28 B9 D6 FB 0B 2A 62 06 74 EC CF 7F 91 5A 1A 7E FD 5F AF 6F 9D FF FB FF D1 D9 81
97 AE D1 FF

  • 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