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?
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...
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.
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
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...
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
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.
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