I need to warn that DLMS is not an easy protocol. You will save a lot of time if you use our open source library. The reason, why the meter is not replying, might be anything. Your client or server address is wrong or your check sum is not correct, etc.
Without the authentication, you can only see the clock, Association, SAP Assignment, COSEM Logical device name, and Device ID. You need to change the authentication level higher to read more data.
Try to read your meter with GXDLMSDirector first. Using GXDLMSDirector you can get an idea from your meter and how to operate with it.
Check your client address. When you change the authentication level you also need to change your client address. You should get this information from the meter documentation.
Without authentication, you can't read anything else.
Hi,
Hi,
I need to warn that DLMS is not an easy protocol. You will save a lot of time if you use our open source library. The reason, why the meter is not replying, might be anything. Your client or server address is wrong or your check sum is not correct, etc.
BR,
Mikko
Python client example
Python client example
I am trying to read avon india DLMS energy meter using Python client example but Read is partially only Name plate detail receiving as bellow txt
TX: 12:00:52 7E A0 07 03 21 93 0F 01 7E
RX: 12:00:52 7E A0 20 21 03 73 73 98 81 80 14 05 02 00 82 06 02 00 82 07 04 00 00 00 01 08 04 00 00 00 01 8A 41 7E
TX: 12:00:52 7E A0 2B 03 21 10 FB AF E6 E6 00 60 1D A1 09 06 07 60 85 74 05 08 01 01 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF C5 E4 7E
RX: 12:00:52 7E A0 37 21 03 30 6C 7C E6 E7 00 61 29 A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 00 BE 10 04 0E 08 00 06 5F 1F 04 00 00 00 10 00 70 00 07 B2 53 7E
TX: 12:00:52 7E A0 19 03 21 32 6F D8 E6 E6 00 C0 01 C1 00 0F 00 00 28 00 00 FF 02 00 91 53 7E
RX: 12:00:52 7E A8 80 21 03 52 E5 50 E6 E7 00 C4 01 C1 00 01 05 02 04 12 00 08 11 00 09 06 00 00 01 00 00 FF 02 02 01 09 02 03 0F 01 16 01 00 02 03 0F 02 16 01 00 02 03 0F 03 16 01 00 02 03 0F 04 16 01 00 02 03 0F 05 16 01 00 02 03 0F 06 16 01 00 02 03 0F 07 16 01 00 02 03 0F 08 16 01 00 02 03 0F 09 16 01 00 01 06 02 02 0F 01 03 00 02 02 0F 02 03 00 02 02 0F 03 03 00 02 02 0F 04 03 00 02 02 F3 6F 7E
TX: 12:00:52 7E A0 07 03 21 51 11 E4 7E
RX: 12:00:53 7E A8 82 21 03 54 A5 0C 0F 05 03 00 02 02 0F 06 03 00 02 04 12 00 0F 11 00 09 06 00 00 28 00 01 FF 02 02 01 08 02 03 0F 01 16 01 00 02 03 0F 02 16 01 00 02 03 0F 03 16 01 00 02 03 0F 04 16 01 00 02 03 0F 05 16 01 00 02 03 0F 06 16 01 00 02 03 0F 07 16 01 00 02 03 0F 08 16 01 00 01 04 02 02 0F 01 03 00 02 02 0F 02 03 00 02 02 0F 03 03 00 02 02 0F 04 03 00 02 04 12 00 11 11 00 09 06 00 44 76 7E
TX: 12:00:53 7E A0 07 03 21 71 13 C5 7E
RX: 12:00:53 7E A0 68 21 03 56 B3 1D 00 29 00 00 FF 02 02 01 02 02 03 0F 01 16 01 00 02 03 0F 02 16 01 00 01 00 02 04 12 00 01 11 00 09 06 00 00 2A 00 00 FF 02 02 01 02 02 03 0F 01 16 01 00 02 03 0F 02 16 01 00 01 00 02 04 12 00 01 11 00 09 06 00 00 60 01 00 FF 02 02 01 02 02 03 0F 01 16 01 00 02 03 0F 02 16 01 00 01 00 D0 F1 7E
-------- Reading 8 0.0.1.0.0.255 Ch. 0 Clock object #1
TX: 12:00:53 7E A0 19 03 21 94 53 18 E6 E6 00 C0 01 C1 00 08 00 00 01 00 00 FF 01 00 08 30 7E
RX: 12:00:53 7E A0 18 21 03 78 8A 8F E6 E7 00 C4 01 C1 00 09 06 00 00 01 00 00 FF 86 18 7E
Index: 1 Value: 0.0.1.0.0.255
TX: 12:00:53 7E A0 19 03 21 B6 43 1A E6 E6 00 C0 01 C1 00 08 00 00 01 00 00 FF 02 00 60 1A 7E
RX: 12:00:53 7E A0 1E 21 03 9A 0C 00 E6 E7 00 C4 01 C1 00 09 0C 07 E4 0C 11 FF 0C 05 13 FF 80 00 00 04 BD 7E
Index: 2 Value: 12/17/20 12:05:19
TX: 12:00:53 7E A0 19 03 21 D8 3B 90 E6 E6 00 C0 01 C1 00 08 00 00 01 00 00 FF 03 00 B8 03 7E
RX: 12:00:53 7E A0 13 21 03 BC B7 CF E6 E7 00 C4 01 C1 00 10 01 4A 3D F0 7E
Index: 3 Value: 330
TX: 12:00:53 7E A0 19 03 21 FA 2B 92 E6 E6 00 C0 01 C1 00 08 00 00 01 00 00 FF 04 00 B0 4E 7E
RX: 12:00:53 7E A0 12 21 03 DE 18 93 E6 E7 00 C4 01 C1 00 11 00 1B 4D 7E
Index: 4 Value: 0
TX: 12:00:53 7E A0 19 03 21 1C 13 10 E6 E6 00 C0 01 C1 00 08 00 00 01 00 00 FF 05 00 68 57 7E
RX: 12:00:54 7E A0 1E 21 03 F0 50 CC E6 E7 00 C4 01 C1 00 09 0C 07 E4 0C 11 FF 0C 05 13 FF 80 00 00 04 BD 7E
Index: 5 Value: 12/17/20 12:05:19
TX: 12:00:54 7E A0 19 03 21 3E 03 12 E6 E6 00 C0 01 C1 00 08 00 00 01 00 00 FF 06 00 00 7D 7E
RX: 12:00:54 7E A0 1E 21 03 12 4C 08 E6 E7 00 C4 01 C1 00 09 0C 07 E4 0C 11 FF 0C 05 13 FF 80 00 00 04 BD 7E
Index: 6 Value: 12/17/20 12:05:19
TX: 12:00:54 7E A0 19 03 21 50 7B 98 E6 E6 00 C0 01 C1 00 08 00 00 01 00 00 FF 07 00 D8 64 7E
RX: 12:00:54 7E A0 12 21 03 34 4C DB E6 E7 00 C4 01 C1 00 0F 3C 75 B9 7E
Index: 7 Value: 60
TX: 12:00:54 7E A0 19 03 21 72 6B 9A E6 E6 00 C0 01 C1 00 08 00 00 01 00 00 FF 08 00 10 E7 7E
RX: 12:00:54 7E A0 12 21 03 56 58 9B E6 E7 00 C4 01 C1 00 03 01 B3 FA 7E
Index: 8 Value: True
TX: 12:00:54 7E A0 19 03 21 94 53 18 E6 E6 00 C0 01 C1 00 08 00 00 01 00 00 FF 09 00 C8 FE 7E
RX: 12:00:54 7E A0 12 21 03 78 24 53 E6 E7 00 C4 01 C1 00 16 01 9A 11 7E
Index: 9 Value: 1
-------- Reading 15 0.0.40.0.1.255 Ch. 0 Association #1
TX: 12:00:54 7E A0 19 03 21 B6 43 1A E6 E6 00 C0 01 C1 00 0F 00 00 28 00 01 FF 01 00 42 65 7E
RX: 12:00:54 7E A0 18 21 03 9A 96 4B E6 E7 00 C4 01 C1 00 09 06 00 00 28 00 01 FF 6E 77 7E
Index: 1 Value: 0.0.40.0.1.255
TX: 12:00:54 7E A0 19 03 21 D8 3B 90 E6 E6 00 C0 01 C1 00 0F 00 00 28 00 01 FF 02 00 2A 4F 7E
RX: 12:00:54 7E A8 80 21 03 BC 95 5E E6 E7 00 C4 01 C1 00 01 05 02 04 12 00 08 11 00 09 06 00 00 01 00 00 FF 02 02 01 09 02 03 0F 01 16 01 00 02 03 0F 02 16 01 00 02 03 0F 03 16 01 00 02 03 0F 04 16 01 00 02 03 0F 05 16 01 00 02 03 0F 06 16 01 00 02 03 0F 07 16 01 00 02 03 0F 08 16 01 00 02 03 0F 09 16 01 00 01 06 02 02 0F 01 03 00 02 02 0F 02 03 00 02 02 0F 03 03 00 02 02 0F 04 03 00 02 02 F3 6F 7E
TX: 12:00:54 7E A0 07 03 21 F1 1B 41 7E
RX: 12:00:55 7E A8 82 21 03 BE F1 44 0F 05 03 00 02 02 0F 06 03 00 02 04 12 00 0F 11 00 09 06 00 00 28 00 01 FF 02 02 01 08 02 03 0F 01 16 01 00 02 03 0F 02 16 01 00 02 03 0F 03 16 01 00 02 03 0F 04 16 01 00 02 03 0F 05 16 01 00 02 03 0F 06 16 01 00 02 03 0F 07 16 01 00 02 03 0F 08 16 01 00 01 04 02 02 0F 01 03 00 02 02 0F 02 03 00 02 02 0F 03 03 00 02 02 0F 04 03 00 02 04 12 00 11 11 00 09 06 00 44 76 7E
TX: 12:00:55 7E A0 07 03 21 11 15 A6 7E
RX: 12:00:55 7E A0 68 21 03 B0 8B 9F 00 29 00 00 FF 02 02 01 02 02 03 0F 01 16 01 00 02 03 0F 02 16 01 00 01 00 02 04 12 00 01 11 00 09 06 00 00 2A 00 00 FF 02 02 01 02 02 03 0F 01 16 01 00 02 03 0F 02 16 01 00 01 00 02 04 12 00 01 11 00 09 06 00 00 60 01 00 FF 02 02 01 02 02 03 0F 01 16 01 00 02 03 0F 02 16 01 00 01 00 D0 F1 7E
Index: 2 Value:
TX: 12:00:55 7E A0 19 03 21 3A 27 54 E6 E6 00 C0 01 C1 00 0F 00 00 28 00 01 FF 03 00 F2 56 7E
RX: 12:00:55 7E A0 17 21 03 D2 23 37 E6 E7 00 C4 01 C1 00 02 02 0F 10 12 00 01 EB 3C 7E
Index: 3 Value: 16, 1
TX: 12:00:55 7E A0 19 03 21 5C 17 52 E6 E6 00 C0 01 C1 00 0F 00 00 28 00 01 FF 04 00 FA 1B 7E
RX: 12:00:55 7E A0 21 21 03 F4 7F 74 E6 E7 00 C4 01 C1 00 02 07 11 02 11 10 12 02 F4 11 05 11 08 11 01 11 01 3A 58 7E
Index: 4 Value: 2 16 756 5 8 1 1
TX: 12:00:55 7E A0 19 03 21 7E 07 50 E6 E6 00 C0 01 C1 00 0F 00 00 28 00 01 FF 05 00 22 02 7E
RX: 12:00:55 7E A0 23 21 03 16 15 89 E6 E7 00 C4 01 C1 00 02 06 04 18 00 00 18 12 01 FF 12 01 FF 11 06 0F 00 09 00 89 04 7E
Index: 5 Value: Conformance.SET|GET 511 511 6 0
TX: 12:00:55 7E A0 19 03 21 90 77 5E E6 E6 00 C0 01 C1 00 0F 00 00 28 00 01 FF 06 00 4A 28 7E
RX: 12:00:55 7E A0 21 21 03 38 1F 78 E6 E7 00 C4 01 C1 00 02 07 11 02 11 10 12 02 F4 11 05 11 08 11 02 11 00 D7 A6 7E
Index: 6 Value: 2 16 756 5 8 2 0
TX: 12:00:55 7E A0 19 03 21 B2 67 5C E6 E6 00 C0 01 C1 00 0F 00 00 28 00 01 FF 07 00 92 31 7E
RX: 12:00:55 7E A0 12 21 03 5A 34 51 E6 E7 00 C4 01 C1 00 09 00 4A 16 7E
Index: 7 Value:
TX: 12:00:55 7E A0 19 03 21 D4 57 5A E6 E6 00 C0 01 C1 00 0F 00 00 28 00 01 FF 08 00 5A B2 7E
RX: 12:00:55 7E A0 12 21 03 7C 00 15 E6 E7 00 C4 01 C1 00 16 02 01 23 7E
Index: 8 Value: 2
-------- Reading 17 0.0.41.0.0.255 Ch. 0 SAP Assignment
TX: 12:00:55 7E A0 19 03 21 F6 47 58 E6 E6 00 C0 01 C1 00 11 00 00 29 00 00 FF 01 00 93 59 7E
RX: 12:00:55 7E A0 18 21 03 9E B2 0D E6 E7 00 C4 01 C1 00 09 06 00 00 29 00 00 FF 0D 72 7E
Index: 1 Value: 0.0.41.0.0.255
TX: 12:00:55 7E A0 19 03 21 18 37 56 E6 E6 00 C0 01 C1 00 11 00 00 29 00 00 FF 02 00 FB 73 7E
RX: 12:00:56 7E A0 4E 21 03 B0 42 5B E6 E7 00 C4 01 C1 00 01 03 02 02 12 00 01 09 0D 41 4D 45 54 52 49 54 4F 4E 5F 34 32 30 02 02 12 00 02 09 0D 41 4D 45 54 52 49 54 4F 4E 5F 34 32 31 02 02 12 00 03 09 0D 41 4D 45 54 52 49 54 4F 4E 5F 34 32 32 40 79 7E
Index: 2 Value: (1, 'AMETRITON_420'), (2, 'AMETRITON_421'), (3, 'AMETRITON_422')
-------- Reading 1 0.0.42.0.0.255 Ch. 0 COSEM Logical device name
TX: 12:00:56 7E A0 19 03 21 3A 27 54 E6 E6 00 C0 01 C1 00 01 00 00 2A 00 00 FF 01 00 7A AA 7E
RX: 12:00:56 7E A0 18 21 03 D2 DA 85 E6 E7 00 C4 01 C1 00 09 06 00 00 2A 00 00 FF C0 57 7E
Index: 1 Value: 0.0.42.0.0.255
TX: 12:00:56 7E A0 19 03 21 5C 17 52 E6 E6 00 C0 01 C1 00 01 00 00 2A 00 00 FF 02 00 12 80 7E
RX: 12:00:56 7E A0 1F 21 03 F4 CF 96 E6 E7 00 C4 01 C1 00 09 0D 41 4D 45 54 52 49 54 4F 4E 5F 34 32 30 BF 4B 7E
Index: 2 Value: AMETRITON_420
-------- Reading 1 0.0.96.1.0.255 Ch. 0 Device ID 1, manufacturing number
TX: 12:00:56 7E A0 19 03 21 7E 07 50 E6 E6 00 C0 01 C1 00 01 00 00 60 01 00 FF 01 00 E1 8A 7E
RX: 12:00:56 7E A0 18 21 03 16 F2 05 E6 E7 00 C4 01 C1 00 09 06 00 00 60 01 00 FF 05 C7 7E
Hi,
Hi,
Without the authentication, you can only see the clock, Association, SAP Assignment, COSEM Logical device name, and Device ID. You need to change the authentication level higher to read more data.
Try to read your meter with GXDLMSDirector first. Using GXDLMSDirector you can get an idea from your meter and how to operate with it.
BR,
Mikko
Hi Mikko;
Hi Mikko;
Thank you for your reply.
Yes I did use earlier but it only prompt for error timeout. I have increased the timeout to bigger ones but to no avail.
Hi,
Hi,
Check your client address. When you change the authentication level you also need to change your client address. You should get this information from the meter documentation.
Without authentication, you can't read anything else.
BR,
Mikko