I'm working on driver software as client for Wasion electric meter. But meter's logical server address is 1, but I can't find logical server address setting in dlms.c file. is it not implemented yet? how to add logical server address part in hdlc address?
Hi,
Logical server address 1 is the default value, but you can change it with cl_init method.
cl_init(&settings,
// Is used Logican Name or Short Name referencing.
1,
//Client ID
16,
//Server ID
1,
//Authentication Level.
DLMS_AUTHENTICATION_NONE,
//Password
NULL,
// Is used HDLC or COSEM transport layers for IPv4 networks (IEC 62056-47)
DLMS_INTERFACE_TYPE_HDLC);
The meter's physical server address is 129 and logical server address is 1. But I can only set physical server address in cl_init. In GX dlms director, I can set logical server address as attached picture.
When I set logical server address to 1, the SNRM request is like 7E A0 0A 00 02 02 03 03 93 D6 5B 7E and meter responds.
When i set logical server address to 0, the SNRM request is: 7E A0 08 02 03 03 93 05 77 7E and meter is not responding because Meter's logical server address is 1.
Hi,
how did you arrive at that number (0x4081)?
I am using meter ACE6000 and my phisical adress server is 7F. The logic is 1. Using the example, what number should I put?
Best regards,
Rui Costa
Hi,
Hi,
Logical server address 1 is the default value, but you can change it with cl_init method.
cl_init(&settings,
// Is used Logican Name or Short Name referencing.
1,
//Client ID
16,
//Server ID
1,
//Authentication Level.
DLMS_AUTHENTICATION_NONE,
//Password
NULL,
// Is used HDLC or COSEM transport layers for IPv4 networks (IEC 62056-47)
DLMS_INTERFACE_TYPE_HDLC);
You can get more information from here:
http://www.gurux.fi/Gurux.DLMS.Client
BR,
Mikko
The meter's physical server
The meter's physical server address is 129 and logical server address is 1. But I can only set physical server address in cl_init. In GX dlms director, I can set logical server address as attached picture.
When I set logical server address to 1, the SNRM request is like 7E A0 0A 00 02 02 03 03 93 D6 5B 7E and meter responds.
When i set logical server address to 0, the SNRM request is: 7E A0 08 02 03 03 93 05 77 7E and meter is not responding because Meter's logical server address is 1.
Hi,
Hi,
There is no GetServerAddress for ANSI C. I'll add that to the worklist. In the meantime, you can use value: 0x4081. It will do the trick.
BR,
Mikko
i've tried and it's working.
i've tried and it's working.
Thanks a lot
Hi,
Hi,
cl_getServerAddress method is added. You can use it to get the server address from the physical and logical address.
BR,
Mikko
Hi, how did you arrive at…
Hi,
how did you arrive at that number (0x4081)?
I am using meter ACE6000 and my phisical adress server is 7F. The logic is 1. Using the example, what number should I put?
Best regards,
Rui Costa