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. Syntax For Adding Multiple Readers

Syntax for Adding Multiple Readers

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 abu3bdullah , 22 October, 2020
Forums
Gurux.DLMS.AMI

Can you help how can I modify the appsettings.json file to handle the current situation:

Media: Serial over Ethernet
Each group of meters is connected to one Serial (RS485) Port that is mapped to one IP Address & Port.

Required one DLSM.AMI "Reader" for each IP/Port, with only 1 thread so that one meter is read at a time for each IP/Port.

I tried the following, but not working:

"Reader": {
"Disabled": "False",
"Id": "603C1F03-6EDE-4F4F-B108-3451383F0B01",
"Name": "IP2Reader",
"Threads": 1,
"TaskWaitTime": 60
},

"Reader": {
"Disabled": "False",
"Id": "603C1F03-6EDE-4F4F-B108-3451383F0B02",
"Name": "IP1Reader",
"Threads": 1,
"TaskWaitTime": 60
},

Profile picture for user Kurumi

Kurumi

5 years 7 months ago

Hi,

Hi,

I believe that the reason is the device is not mapped to the reader. When you try to read the meter first available reader tries to read it and this causes the problem. UI doesn't support this at the moment, but we can add support it the next week and release a new version at the beginning of November.

Is this the problem?

This should work if you have only one thread.

BR,
Mikko

Profile picture for user Kurumi

Kurumi

5 years 7 months ago

Hi,

Hi,

This functionality is added to the new version. Get the latest versions from the Gurux.DLMS.AMI and GXDLMSDirector.

abu3bdullah

5 years 7 months ago

Assigning attributes to

Assigning attributes to different readers in DLMS.AMI UI is OK.

But, how to add multiple readers through the JSON file? When added as described above before, I have error: "Unhandled exception. System.FormatException: A duplicate key 'Reader:Disabled' was found."

Profile picture for user Kurumi

Kurumi

5 years 7 months ago

Hi,

Hi,

There is only one reader per instance, but you can define how many threads there are in one reader settings Threads in appsettings.json.

Read the instructions here if you want to use multiple readers.
https://www.gurux.fi/node/17172

Get the latest version from Gurux.DLMS.AMI. Database type was earlier set to empty, but now database disabled is set True.

BR,
Mikko

ajaywazir

5 years 2 months ago

Hi Mikko

Hi Mikko
The addtional instance of DLMS.AMI.dll reader does not work as it does not take the new port 64883; it still used 64881 and hence clashes with existing instance and therefore crashes
Am I missing something?
Ajay

  • 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