Hi,
Currently I am using GuruxDLMS.c for my dvelopment.
I have initialized MR Association with password, BLOCK_CIPHER_KEY, AUTHENTICATION_KEY. Here connection is successful but read request gets failed. Can you please help to indetify the root cause?
Below are the logs attached. I have attached Screenshot for your reference.
------------------------------------------------ MR Association---------------------------------------------------------
Initialize Connection
Send AARQ request
DLMS Tx Data = 00 01 00 20 00 01 00 5F 60 5D A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08 48 50 4C 32 37 30 31 32 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 12 80 10 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 BE 23 04 21 21 1F 30 59 6B 21 54 1A FE B4 50 8C F4 F8 6B CD 4C 50 70 8D 27 87 72 25 31 77 08 96 4C 9D F4 01 E0
Successfully usart_tx length=103
DLMS Rx Data = 00 01 00 01 00 20 00 4A 61 48 A1 09 06 07 60 85 74 05 08 01 03 A2 03 02 01 00 A3 05 A1 03 02 01 00 A4 0A 04 08 48 50 4C 00 00 00 69 84 BE 23 04 21 28 1F 30 00 00 00 00 BA 7D C9 05 9D 18 F7 3F 1A A0 2B B9 41 0B 28 E0 04 69 82 1D C9 E5 79 73 9C DA
Connection success
Read Attribute Time of Object Clock
DLMS Tx Data = 00 01 00 20 00 01 00 20 C8 1E 30 59 6B 21 55 4D 1B 34 64 63 2F F4 85 57 C4 71 CF 65 EC 66 E1 40 7B F5 92 CE A0 DF 37 0A
Successfully usart_tx length=40
DLMS Rx Data = 00 01 00 01 00 20 00 17 2E 15 30 00 00 00 01 C1 F9 AD E5 29 73 16 42 8F 4F 8C B7 CF A3 B3 CEReadObject failed Clock 0.0.1.0.0.255:2 Invalid parameter.
Thanks,
Jigar
Hi Jigar, It looks like you…
Hi Jigar,
It looks like you can establish the connection for the meter, but the meter returns a ServiceUnsupported exception when you try to read the clock object.
Check that you can see the clock object in the association view e.g. with GXDLMSDirector and try to read it. There is no reason why you can't read it.
BR,
Mikko
Hi Mikko, Yes I am able to…
Hi Mikko,
Yes I am able to see and get the clock object using GXDLMSDirector Tool from meter using MR Association.
Below are the scenario
With Director Tool
1. GXDLMSDirector ----- PC-Association ----- Meter : Working
2. GXDLMSDirector ----- MR-Association ----- Meter : Working
With Library GuruxDLMS.c
1. GuruxDLMS.c ----- PC-Association ----- Meter : Working
Read Clock Object : Success
2. GuruxDLMS.c ----- MR-Association ----- Meter : NOT WORKING
Read Clock Object : Shows previous given error
Can you help to find if i am missing something?
Thanks,
Jigar
Hi, Please, don't add…
Hi,
Please, don't add pictures. Reading bytes is hard to read and plain text is better.
You haven't read the invocation counter. I believe that is the problem.
Try to read the invocation counter before you establish the ciphered connection.
BR,
Mikko
Hi, I have read invocation…
Hi,
I have read invocation counter for MR-Association. Steps to get data in MR from meter are followed as below
1. PC-Connection - working
2. PC-Read Invocation Counter of MR - working
3. PC-Disconnect - working
4. MR-Connection - working
5. MR-Read Time - NOT WORKING
Below is the data sent/received from meter for step 4 and step 5.
Initialize MR-Connection
Send AARQ request
DLMS Tx Data = 00 01 00 20 00 01 00 5F 60 5D A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08 48 50 4C 32 37 30 31 32 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 12 80 10 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 BE 23 04 21 21 1F 30 59 6B 21 54 1A FE B4 50 8C F4 F8 6B CD 4C 50 70 8D 27 87 72 25 31 77 08 96 4C 9D F4 01 E0
Successfully usart_tx length=103
DLMS Rx Data = 00 01 00 01 00 20 00 4A 61 48 A1 09 06 07 60 85 74 05 08 01 03 A2 03 02 01 00 A3 05 A1 03 02 01 00 A4 0A 04 08 48 50 4C 00 00 00 69 84 BE 23 04 21 28 1F 30 00 00 00 00 BA 7D C9 05 9D 18 F7 3F 1A A0 2B B9 41 0B 28 E0 04 69 82 1D C9 E5 79 73 9C DA
Connection success
Read Attribute Time of Object Clock
DLMS Tx Data = 00 01 00 20 00 01 00 20 C8 1E 30 59 6B 21 55 4D 1B 34 64 63 2F F4 85 57 C4 71 CF 65 EC 66 E1 40 7B F5 92 CE A0 DF 37 0A
Successfully usart_tx length=40
DLMS Rx Data = 00 01 00 01 00 20 00 17 2E 15 30 00 00 00 01 C1 F9 AD E5 29 73 16 42 8F 4F 8C B7 CF A3 B3 CEReadObject failed Clock 0.0.1.0.0.255:2 Invalid parameter.
Thanks,
Jigar
Hi, The connection succeeds,…
Hi,
The connection succeeds, but the read fails. Actually, the ciphering fails and that means that the block cipher key is different or then there is an issue on the meter.
Some meters are dedicated keys. That should be optional, but some meters require it. You need to check the meter documentation if that is required. Check also if there are firmware updates for the meter.
BR,
Mikko
Hi, The meter is working…
Hi,
The meter is working Proprely as it provides data when connected with GuruxDirector. So no issue with meter, cipher or keys used.
Same block ciphering and keys are used in GuruxDLMS.c as used in GuruxDirector but still in GuruxDLMS.c It shows the above error.
Thanks,
Jigar
Hi, If you can connect with…
Hi,
If you can connect with GXDLMSDirector, can you share the hex log?
Select "View", "Log" and "View Log".
One of the settings must be different and I can check what that is fro the hex log.
Add only the four first rows.
BR,
Mikko
Hi, The logs from…
Hi,
The logs from GXDLMSDirector are as below
GXDLMSDirector 9.0.2311.1001
Log created 12:49:08
12:51:50 Initializing serial connection.
12:51:50 12:51:50.156 Info Opening
12:51:50 12:51:50.157 Info Serial Port Settings: Port Name: COM9 Baud Rate: 9600 Data Bits: 8 Parity: None Stop Bits: One Flow Control: None Eop: None
12:51:50 12:51:50.198 Info Open
12:51:51 Send AARQ request.
00 01 00 10 00 01 00 1F 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 62 1E 5D FF FF
12:51:51 12:51:51.215 Sent 00 01 00 10 00 01 00 1F 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 62 1E 5D FF FF
12:51:52 12:51:52.030 Received 00 01 00 01 00 10 00
12:51:52 12:51:52.045 Received 00 2B 61 29 A1 09 06 07 60 85
12:51:52 12:51:52.061 Received 02 01 00 BE 10 04 0E 08 69 AC 9E 38 B1 30 F5
12:51:52 12:51:52.077 Received 08 00 06 5F 1F 04 00 00 00 10 02 26 00
12:51:52
00 01 00 01 00 10 00 2B 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 02 26 00 07
12:51:52 Parsing AARE reply succeeded.
12:51:52 Reading object 0.0.43.1.2.255, interface Data
00 01 00 10 00 01 00 0D C0 01 C1 00 01 00 00 2B 01 02 FF 02 00
12:51:52 12:51:52.079 Sent 00 01 00 10 00 01 00 0D C0 01 C1 00 01 00 00 2B 01 02 FF 02 00
12:51:53 12:51:53.038 Received 00 01 00 01 00 10 00 09
12:51:53 12:51:53.054 Received 06 93
12:51:53
00 01 00 01 00 10 00 09 C4 01 C1 00 06 00 00 06 93
12:51:53 Disconnect request
12:51:53 Disconnect request
00 01 00 10 00 01 00 05 62 03 80 01 00
12:51:53 12:51:53.056 Sent 00 01 00 10 00 01 00 05 62 03 80 01 00
12:51:54 12:51:54.047 Received 00 01 00 01 00 10 00 05 63
12:51:54 12:51:54.063 Received 03 80 01 00
12:51:54
00 01 00 01 00 10 00 05 63 03 80 01 00
12:51:54 Send AARQ request.
00 01 00 20 00 01 00 70 60 6E A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08 48 50 4C 32 30 32 31 37 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 12 80 10 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 BE 34 04 32 21 30 30 00 00 06 94 D5 20 72 11 2A 29 E9 34 6F E4 2B 3C 54 DA 12 BB 51 92 29 0B 08 E0 6A 9A E8 F5 79 DF 2D 21 95 00 AC 1B ED EF F5 F6 F5 37 56 90 7B
12:51:54 12:51:54.067 Sent 00 01 00 20 00 01 00 70 60 6E A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08 48 50 4C 32 30 32 31 37 8A 02 07 80 8B 07 60 85 74 05 08 02 01 AC 12 80 10 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 BE 34 04 32 21 30 30 00 00 06 94 D5 20 72 11 2A 29 E9 34 6F E4 2B 3C 54 DA 12 BB 51 92 29 0B 08 E0 6A 9A E8 F5 79 DF 2D 21 95 00 AC 1B ED EF F5 F6 F5 37 56 90 7B
12:51:55 12:51:55.055 Received 00 01 00 01 00 20 00 4A 61 48
12:51:55 12:51:55.072 Received 05 08 01 03 A2 03
12:51:55 12:51:55.088 Received 01 00 A3 05 A1 03 02 01 00 A4 0A 04 08 48 50
12:51:55 12:51:55.104 Received 4C 00 00 3D 57 F9 BE 23 04 21 28 1F 30 00 00 00
12:51:55 12:51:55.121 Received 02 D1 87 7B A9 05 62 0F 5B 84 B6 C0 F3 DB 65
12:51:55 12:51:55.137 Received 7B 24 BF 0B B0 40 AB 05 59 28 A1
12:51:55
00 01 00 01 00 20 00 4A 61 48 A1 09 06 07 60 85 74 05 08 01 03 A2 03 02 01 00 A3 05 A1 03 02 01 00 A4 0A 04 08 48 50 4C 00 00 3D 57 F9 BE 23 04 21 28 1F 30 00 00 00 02 D1 87 7B A9 05 62 0F 5B 84 B6 C0 F3 DB 65 7B 24 BF 0B B0 40 AB 05 59 28 A1 8E
12:51:55 Parsing AARE reply succeeded.
12:52:01 Read object type Clock index: 2
00 01 00 20 00 01 00 20 D0 1E 30 00 00 06 95 CA B7 7F 51 87 98 28 41 39 7A 5E 72 F6 83 73 15 D9 AF 15 6A 03 5F BF 54 DF
12:52:01 12:52:01.046 Sent 00 01 00 20 00 01 00 20 D0 1E 30 00 00 06 95 CA B7 7F 51 87 98 28 41 39 7A 5E 72 F6 83 73 15 D9 AF 15 6A 03 5F BF 54 DF
12:52:01 12:52:01.109 Received 00 01 00 01
12:52:01 12:52:01.125 Received 01 00 20 00 25 D4 23 30 00 00 00 00
12:52:01 12:52:01.141 Received A5 26 F2 8E FB 0F F9 4A E4 04 08 48 50 4C 00 00
12:52:01 12:52:01.157 Received E4 EA 29 FA F6 F1 42 A5 0A D4
12:52:01
00 01 00 01 00 20 00 25 D4 23 30 00 00 00 00 B0 7D BE 89 42 50 DF 6E 1B 55 99 A5 26 F2 8E FB 0F F9 4A E4 EA 29 FA F6 F1 42 A5 0A D4 8E
Thanks,
Jigar