I have a CEWE Prometer 100 meter which I am trying to read data from using GXDLMSDirector. I can access the meter successfully using level 1 access (LLS). However, I am unable to access the meter at level 2 (HLS).
I know the level 2 password is correct as it works on the M-Cubed software.
The level 2 password for the meter is 22222222, so I am putting 30303030303030303030323232323232 as the password when using GXDLMSDirector.
I was told by the manufacturer that the random number sent by the meter should be encrypted with the AES-128 algorithm. Do I need to configure GXDLMSDirector to do this?
This is the comms stream with level 2 access:
GXDLMSDirector 0.0.0.0
Log created 11:21:15
11:21:17 Initializing serial connection.
11:21:18 IEC Sending:/?!<CR><LF>
11:21:19 HDLC received: /CWI5\2<CR><LF>
11:21:19 BaudRate is : 9600
11:21:19 Moving to mode E.
06 32 35 32 0D 0A
11:21:22 Send SNRM request.
7E A0 07 03 61 93 69 47 7E
11:21:22
7E A0 20 61 03 73 05 9E 81 80 14 05 02 01 00 06 02 01 00 07 04 00 00 00 01 08 04 00 00 00 01 69 6D 7E
11:21:22 Parsing UA reply succeeded.
11:21:22 Send AARQ request.
7E A0 4C 03 61 10 58 27 E6 E6 00 60 3E A1 09 06 07 60 85 74 05 08 01 01 8A 02 07 80 8B 07 60 85 74 05 08 02 02 AC 12 80 10 46 68 00 62 6D 27 29 3F 71 30 26 65 36 03 17 21 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1E 1D FF FF 3D 98 7E
11:21:22
7E A0 58 61 03 30 07 51 E6 E7 00 61 4A 88 02 07 80 89 07 60 85 74 05 08 02 02 AA 12 80 10 5B 30 01 94 45 28 76 13 48 EF 40 C8 B7 03 2B D7 A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 0E BE 10 04 0E 08 00 06 5F 1F 04 00 00 18 1D 01 00 00 07 EA D9 7E
11:21:22 Parsing AARE reply succeeded.
11:21:22 Authenticating.
7E A0 2B 03 61 32 8D EB E6 E6 00 C3 01 C1 00 0F 00 00 28 00 00 FF 01 01 09 10 7B 41 65 72 59 58 9E D7 2E 4C 44 4E 13 5A FD 3D F5 F2 7E
11:21:22
7E A0 11 61 03 52 C7 FE E6 E7 00 C7 01 C1 FA 00 84 35 7E
11:21:22 Disconnect request
11:21:27 Failed to receive reply from the device in given time.
System.TimeoutException: Failed to receive reply from the device in given time.
at GXDLMSDirector.GXDLMSCommunicator.ReadDLMSPacket(Byte[] data, Int32 tryCount, GXReplyData reply) in C:\Code\Progs\GuruxDirector\GXDLMSDirector-master\Development\GXDLMSCommunicator.cs:line 441
at GXDLMSDirector.GXDLMSCommunicator.InitializeConnection(Boolean force) in C:\Code\Progs\GuruxDirector\GXDLMSDirector-master\Development\GXDLMSCommunicator.cs:line 1386
at GXDLMSDirector.GXDLMSDevice.InitializeConnection() in C:\Code\Progs\GuruxDirector\GXDLMSDirector-master\Development\GXDLMSDevice.cs:line 326
at GXDLMSDirector.MainForm.Connect(Object sender, GXAsyncWork work, Object[] parameters) in C:\Code\Progs\GuruxDirector\GXDLMSDirector-master\Development\MainForm.cs:line 1769
Hi Andrew, Try to set the…
Hi Andrew,
You can give the password as it is. Try to set the password (22222222) as plain text.
Now you are using password 0000000000222222.
I believe that this is the problem.
BR,
Mikko
Hi Mikko, I have literally…
Hi Mikko,
I have literally been looking at this for an hour and the problem all along was the padded password only had 6 '2's instead of 8 :).
Thanks for your prompt response which highlighted the problem perfectly. It doesn't work with 22222222 but it does with 0000000022222222.
Thanks,
Andrew