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. Multiple Associations - Object Lists

Multiple Associations - object lists

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 enemy235 , 7 September, 2020
Forums
Gurux DLMS for Java

Hi,
I'm trying to make server with multiple association objects and specify different set of objects to each association. It is possible to create it in that way? My first test ended up with Hardware fault and now I'm getting all the objects.

From my understanding, when you connect to different association, this should get "transferred" to Current association object, is that right? Or meter should just response to 0.0.40.0.0.255:2 with actual association, that is used?
For example: Request for association 0.0.40.0.0.255:2 gets response with content of 0.0.40.0.5.255:2?

Profile picture for user Kurumi

Kurumi

5 years 9 months ago

Hi,

Hi,

You are right. Create associations and attach them to the association view as below.

static gxObject* NONE_OBJECTS[] = { BASE(associationNone), BASE(ldn), BASE(sapAssignment) };

static gxObject* ALL_OBJECTS[] = { BASE(associationNone), BASE(associationLow), BASE(associationHigh), BASE(associationHighGMac), BASE(securitySetupHigh), BASE(securitySetupHighGMac),
...

Attach object to the the association view.

OA_ATTACH(associationNone.objectList, NONE_OBJECTS);
OA_ATTACH(associationLow.objectList, ALL_OBJECTS);

BR,
Mikko

enemy235

5 years 9 months ago

Thank you.

Thank you.
I just found out, that I never did association.setObjectList(myList). So that's why I was getting all the objects.
And in my first attempt I didn't fill all the association objects and because of that I was getting Hardware fault and error: SEVER: null...

Profile picture for user Kurumi

Kurumi

5 years 9 months ago

Hi,

Hi,

Thanks for this info. I have thought about how to improve if all the objects are not set because it might cause problems as you have.

BR,
Mikko

enemy235

5 years 8 months ago

Hi, I maybe just found

Hi, I maybe just found something else regarding associations.
Using simulator, I added meter with 4 associations (None, Low and 2xHigh), each has different client address and password.

I don't know, if using multiple association with the same level is common. But when I try to use it, it only checks the first object of the same level. I saw meter with +- 12 associations so I guess it is normal.

eg: Meter with associations: (Ln | Authentication | Client/Server address | password)
0.0.40.0.1.255 | None | 16/1 | ""
0.0.40.0.2.255 | Low | 17/1 | "GuruxLow"
0.0.40.0.3.255 | High | 18/1 | "GuruxHigh33"
0.0.40.0.4.255 | High | 19/1 | "GuruxHigh44"
When you try to connect with first 3 associations, it is ok. But when I try to connect to the last, I got invalid password. I think it should check not only level, but also client address.
(GXDLMSMeter) - in isTarget it works with client address, but in onValidateAuthentication it does not.

Or maybe it should remember which association was selected in isTarget, and then it should work only with that, instead of searching for it all over again.

I also tried that with diffrent associations. Even when you have multiple NONE association, you get back wrong objects.

Profile picture for user Kurumi

Kurumi

5 years 8 months ago

Hi,

Hi,

I believe that you are right. We haven't used several same authentications.
The server example is updated AFTER the next release.

BR,
Mikko

  • 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