Dear Mikko,
Hi, I faced a strange issue.
I used Director and was able to connect with the meter (itron SL7000).
I can even read the profile generic of the Load Profile 1.
All good.
The params are as follows:
-h xxx.xxx.xxx.xxx -p 7623 -c 1 -s 145 -a Low -P XXXXXXXX -w 1 -f 128
However, when I use the API library via .net coding, I am unable to read the profile generic with the following error:
"Gurux.DLMS.GXDLMSException: Access Error : Device reports scope of access violated."
Kindly note that I can access the meter, and can even read the datetime.
The password, Auth level, Client address, logical address, physical address, are all checked to be the same as in the code.
Server Address size has been set to 4 for both Director and code.
Server Address is using the calculated method function from the API, and I even tested with by fixing 145 as displayed from Director.
What was I missing?
Please advise.
Thank you. Best Regards.
The trace is as follows:
TX: 21:32:01 7E A0 0A 00 02 00 23 0F 93 3B C8 7E
RX: 21:32:01 7E A0 23 0F 00 02 00 23 73 34 79 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 CE 6A 7E
TX: 21:32:02 7E A0 47 00 02 00 23 0F 10 E1 97 E6 E6 00 60 36 A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 0A 80 08 41 42 43 44 45 46 47 48 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 62 1E 5D FF FF 54 B3 7E
RX: 21:32:02 7E A0 4D 0F 00 02 00 23 30 0F 2B E6 E7 00 61 82 00 3A 80 02 07 80 A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 00 88 02 07 80 89 07 60 85 74 05 08 02 01 BE 10 04 0E 08 00 06 5F 1F 04 00 00 30 1D 21 34 00 07 50 43 7E
TX: 21:32:02 7E A0 1C 00 02 00 23 0F 32 BC 91 E6 E6 00 C0 01 C1 00 08 00 00 01 00 00 FF 02 00 60 1A 7E
RX: 21:32:02 7E A0 21 0F 00 02 00 23 52 04 7E E6 E7 00 C4 01 C1 00 09 0C 07 E9 05 1A 01 16 04 09 FF 80 00 00 62 35 7E
TX: 21:32:04 7E A0 1C 00 02 00 23 0F 54 8C 97 E6 E6 00 C0 01 C1 00 07 00 00 63 01 00 FF 03 00 33 11 7E
RX: 21:32:04 7E A0 6F 0F 00 02 00 23 74 17 7B E6 E7 00 C4 01 C1 00 01 05 02 04 12 00 01 09 06 00 00 60 37 01 FF 0F 02 12 00 00 02 04 12 00 01 09 06 00 00 60 37 02 FF 0F 02 12 00 00 02 04 12 00 01 09 06 00 00 60 37 03 FF 0F 02 12 00 00 02 04 12 00 01 09 06 00 00 60 37 04 FF 0F 02 12 00 00 02 04 12 00 03 09 06 01 01 01 1D 00 FF 0F 02 12 00 00 A4 68 7E
TX: 21:32:11 7E A0 1C 00 02 00 23 0F 76 9C 95 E6 E6 00 C0 01 C1 00 07 00 00 63 01 00 FF 02 00 EB 08 7E
RX: 21:32:11 7E A8 8C 0F 00 02 00 23 96 41 18 E6 E7 00 C4 02 C1 00 00 00 00 01 00 82 03 59 01 82 0C 10 02 05 02 02 09 0C 07 E6 04 0E FF 0B 11 28 FF 80 00 FF 04 06 80 02 02 09 0C FF FF FF FF FF 0B 1D 20 FF 80 00 FF 04 06 40 00 00 05 00 00 00 00 02 05 02 02 09 0C 07 E7 09 1B FF 0B 2A 02 FF 80 00 FF 04 06 40 00 00 00 05 00 00 00 00 02 05 00 00 02 02 09 0C FF FF FF FF FF 0B 2E 11 FF 80 00 FF 04 06 40 02 02 09 0C FF FF FF FF FF 0B 89 CA 7E
TX: 21:32:14 7E A0 4F 00 02 00 23 0F 98 4D 41 E6 E6 00 C0 01 C1 00 07 00 00 63 01 00 FF 02 01 01 02 04 02 04 12 00 08 09 06 00 00 01 00 00 FF 0F 02 12 00 00 09 0C 07 E9 06 0F FF 00 00 00 FF FE 20 00 09 0C 07 E9 05 1A FF 15 20 0E FF FE 20 00 01 00 03 E0 7E
RX: 21:32:15 7E A0 14 0F 00 02 00 23 B8 B9 10 E6 E7 00 C4 01 C1 01 0D 0D 6B 7E
Gurux.DLMS.GXDLMSException: Access Error : Device reports scope of access violated.
Hi, You have read the buffer…
Hi,
You have read the buffer, but after the meter returns the first frame, you try to read the buffer again using read by range. Check that.
BR,
Mikko
Dear Mikko, It was a…
Dear Mikko,
It was a combination of several issues, which very much thanks to you for pointing out that first issue which allowed me to uncover more other issues to solve.
Only one more problem remained, I can connect using the default phy address, but couldn't via the serial number. Was there another issue? Is this related to the previous issues?
Thanks!
Hi, The meter address from…
Hi,
The meter address from the serial number formula is not defined in DLMS standards, and meter manufacturers use different formulas to calculate it. Some meters don't support it at all. If meter manufacturer supports it, the formula should be on the meter documentation.
BR,
Mikko
Dear Mikko, Noted, will find…
Dear Mikko,
Noted, will find out. There is an inaccuracy issue (I hope not a bug), which I shall post in another thread.
Thanks.