Hello, I have a few meters on a single rs485 line and I'm trying to read them via dlms protocol. I know that I have to provide something called lower physical address somewhere but I do not know where to excatly and how can I obtain it from the meter. I have three Landys Gyr meters, /LGZ5\2ZMD4104459.B30, which I know can be read both by IEC and DLMS.
There are two functions in java gurux library which I presume are the key to the communication in this use case:
public final void setServerAddress(final int value) {
settings.setServerAddress(value);
}
and
public final void setClientAddress(final int value) {
settings.setClientAddress(value);
}
So, after spending good portion of the day trying to find the answer I'm still clueless about how to calculate server address. I've encountered many formulas and different ideas yet neither of them worked.
My meter's physical device is 96832214, first formula I found is physical address % 10000 + 1000 which gives me 3124. By default client.getPhysicalAddress() gives decimal 16 and client.getServerAddress() gives 1. Setting GXDlmsClient client.setServerAddress(3124) does me no good. Since this particular meter is the only one on the wire it responds when left with default server address.
Hello,
I m new for dlms protocol and dlms meter also.i dont no more than basics.
I have to interface APEX 100 secure meter using port Ethernet (Modbus and DLMS over TCP/IP) for on line monitoring.
I dont even how to start.
Please guide me..Thanks
So, after spending good
So, after spending good portion of the day trying to find the answer I'm still clueless about how to calculate server address. I've encountered many formulas and different ideas yet neither of them worked.
My meter's physical device is 96832214, first formula I found is physical address % 10000 + 1000 which gives me 3124. By default client.getPhysicalAddress() gives decimal 16 and client.getServerAddress() gives 1. Setting GXDlmsClient client.setServerAddress(3124) does me no good. Since this particular meter is the only one on the wire it responds when left with default server address.
Any further ideas in this case?
Thanks
How to communication dlms meter over rs485interface
Hello,
I m new for dlms protocol and dlms meter also.i dont no more than basics.
I have to interface APEX 100 secure meter using port Ethernet (Modbus and DLMS over TCP/IP) for on line monitoring.
I dont even how to start.
Please guide me..Thanks
How to communication dlms meter over rs485interface
Hi,
If you have new question create a new topic. I have answered for your question here:
http://www.gurux.fi/node/13146
BR,
Mikko
Communicating with multiple dlms meters via a single line rs485
Hi Mateusz,
You don't need to change the client address. Only server address matters. First, try to connect using server address 1. Is any of the meters replying?
Then Try to set server address like this:
cl.setSerVerAddress(GXDLMSClient.GetServerAddress(96832214));
BR,
Mikko
Thank you Sir and sorry for
Thank you Sir and sorry for wasting your time, I should have find it myself.
Everything works well now.
Mateusz
Communicating with multiple dlms meters via a single line rs485
Hi Mateusz,
Don't worry, but thank you for letting me know that this is solved.
BR,
Mikko