Hi.
This log files GX and Monitor COM port.
No work two bytes server address.
The reason for the method "client.GetData(rd, reply, notify)", line 327 GXDLMSCommunicator.cs
Reply frame rd[]={7E A0 21 21 02 19 73 F9 65 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 80 8A 7E }
You can correct this error?
Thanks.
Hi, Mikko.
Thank you for your tip.
Indeed, you are right.
How could you not see with such proximity. Here are two logs:
1.Serial port monitor
30.01.2020 13:21:45 D -> M 7E A0 08 02 19 21 93 69 91 7E
30.01.2020 13:21:45 D <- M 7E A0 21 21 02 19 73 F9 65 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 80 8A 7E
30.01.2020 13:21:50 D -> M 7E A0 08 02 19 21 93 69 91 7E
30.01.2020 13:21:50 D <- M 7E A0 21 21 02 19 73 31 5F 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 8F 42 7E
30.01.2020 13:21:55 D -> M 7E A0 08 02 19 21 93 69 91 7E
30.01.2020 13:21:55 D <- M 7E A0 21 21 02 19 73 82 C5 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 03 8B 7E
30.01.2020 13:22:00 D -> M 7E A0 08 02 19 21 53 65 57 7E
30.01.2020 13:22:00 D <- M 7E A0 08 21 02 19 73 A8 08 7E
30.01.2020 13:22:00 D -> M 7E A0 08 02 19 21 93 69 91 7E
30.01.2020 13:22:00 D <- M 7E A0 21 21 02 19 73 FD 2D 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 18 31 7E
30.01.2020 13:22:05 D -> M 7E A0 08 02 19 21 93 69 91 7E
30.01.2020 13:22:05 D <- M 7E A0 21 21 02 19 73 1D F6 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 4A 9E 7E
30.01.2020 13:22:10 D -> M 7E A0 08 02 19 21 93 69 91 7E
30.01.2020 13:22:10 D <- M 7E A0 21 21 02 19 73 DA 77 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 F0 23 7E
2. Log "GXDirector"
13:21:44 Initializing serial connection.
13:21:45 Send SNRM request.
7E A0 08 02 19 21 93 69 91 7E
Data send failed. Try to resend 1/3
13:21:50 Data send failed. Try to resend 1/3
7E A0 08 02 19 21 93 69 91 7E
Data send failed. Try to resend 2/3
13:21:55 Data send failed. Try to resend 2/3
7E A0 08 02 19 21 93 69 91 7E
13:22:00 Failed to receive reply from the device in given time.
7E A0 21 21 02 19 73 F9 65 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 80 8A 7E 7E A0 21 21 02 19 73 31 5F 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 8F 42 7E 7E A0 21 21 02 19 73 82 C5 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 03 8B 7E
13:22:00
7E A0 21 21 02 19 73 F9 65 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 80 8A 7E 7E A0 21 21 02 19 73 31 5F 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 8F 42 7E 7E A0 21 21 02 19 73 82 C5 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 03 8B 7E
13:22:00 Disconnect request
13:22:00 Send Disconnect request.
7E A0 08 02 19 21 53 65 57 7E
13:22:00
7E A0 08 21 02 19 73 A8 08 7E
13:22:00 Send SNRM request.
7E A0 08 02 19 21 93 69 91 7E
Data send failed. Try to resend 1/3
13:22:05 Data send failed. Try to resend 1/3
7E A0 08 02 19 21 93 69 91 7E
Data send failed. Try to resend 2/3
13:22:10 Data send failed. Try to resend 2/3
7E A0 08 02 19 21 93 69 91 7E
13:22:15 Failed to receive reply from the device in given time.
7E A0 21 21 02 19 73 FD 2D 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 18 31 7E 7E A0 21 21 02 19 73 1D F6 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 4A 9E 7E 7E A0 21 21 02 19 73 DA 77 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 F0 23 7E
13:22:15
7E A0 21 21 02 19 73 FD 2D 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 18 31 7E 7E A0 21 21 02 19 73 1D F6 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 4A 9E 7E 7E A0 21 21 02 19 73 DA 77 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 F0 23 7E
System.TimeoutException: Failed to receive reply from the device in given time.
в GXDLMSDirector.GXDLMSDevice.InitializeConnection() в D:\Projects\VS_2017\GXDLMSDirector-master\Development\GXDLMSDevice.cs:строка 183
в GXDLMSDirector.MainForm.Connect(Object sender, GXAsyncWork work, Object[] parameters) в D:\Projects\VS_2017\GXDLMSDirector-master\Development\MainForm.cs:строка 1444
I’m a soft&hard developer of measuring devices, I write and test myself using your application "GXDLMSDirector".
Here is the error line of my program:
crc = CalcFcs(buff,8);
The number of bytes in header should be variable, not fixed.
Thanks again. Next I will be attentive.
Regards, Albert.
Hi,
Hi,
I can't read pic that you have posted. Please, send data as plain text in the future.
The actual reason why reply fails is that header CRC is wrong in the reply packet.
7E A0 21 21 02 19 73 F9 65 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 80 8A 7E
Ask your meter manufacturer to fix it.
BR,
Mikko
Hi, Mikko.
Hi, Mikko.
Thank you for your tip.
Indeed, you are right.
How could you not see with such proximity. Here are two logs:
1.Serial port monitor
30.01.2020 13:21:45 D -> M 7E A0 08 02 19 21 93 69 91 7E
30.01.2020 13:21:45 D <- M 7E A0 21 21 02 19 73 F9 65 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 80 8A 7E
30.01.2020 13:21:50 D -> M 7E A0 08 02 19 21 93 69 91 7E
30.01.2020 13:21:50 D <- M 7E A0 21 21 02 19 73 31 5F 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 8F 42 7E
30.01.2020 13:21:55 D -> M 7E A0 08 02 19 21 93 69 91 7E
30.01.2020 13:21:55 D <- M 7E A0 21 21 02 19 73 82 C5 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 03 8B 7E
30.01.2020 13:22:00 D -> M 7E A0 08 02 19 21 53 65 57 7E
30.01.2020 13:22:00 D <- M 7E A0 08 21 02 19 73 A8 08 7E
30.01.2020 13:22:00 D -> M 7E A0 08 02 19 21 93 69 91 7E
30.01.2020 13:22:00 D <- M 7E A0 21 21 02 19 73 FD 2D 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 18 31 7E
30.01.2020 13:22:05 D -> M 7E A0 08 02 19 21 93 69 91 7E
30.01.2020 13:22:05 D <- M 7E A0 21 21 02 19 73 1D F6 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 4A 9E 7E
30.01.2020 13:22:10 D -> M 7E A0 08 02 19 21 93 69 91 7E
30.01.2020 13:22:10 D <- M 7E A0 21 21 02 19 73 DA 77 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 F0 23 7E
2. Log "GXDirector"
13:21:44 Initializing serial connection.
13:21:45 Send SNRM request.
7E A0 08 02 19 21 93 69 91 7E
Data send failed. Try to resend 1/3
13:21:50 Data send failed. Try to resend 1/3
7E A0 08 02 19 21 93 69 91 7E
Data send failed. Try to resend 2/3
13:21:55 Data send failed. Try to resend 2/3
7E A0 08 02 19 21 93 69 91 7E
13:22:00 Failed to receive reply from the device in given time.
7E A0 21 21 02 19 73 F9 65 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 80 8A 7E 7E A0 21 21 02 19 73 31 5F 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 8F 42 7E 7E A0 21 21 02 19 73 82 C5 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 03 8B 7E
13:22:00
7E A0 21 21 02 19 73 F9 65 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 80 8A 7E 7E A0 21 21 02 19 73 31 5F 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 8F 42 7E 7E A0 21 21 02 19 73 82 C5 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 03 8B 7E
13:22:00 Disconnect request
13:22:00 Send Disconnect request.
7E A0 08 02 19 21 53 65 57 7E
13:22:00
7E A0 08 21 02 19 73 A8 08 7E
13:22:00 Send SNRM request.
7E A0 08 02 19 21 93 69 91 7E
Data send failed. Try to resend 1/3
13:22:05 Data send failed. Try to resend 1/3
7E A0 08 02 19 21 93 69 91 7E
Data send failed. Try to resend 2/3
13:22:10 Data send failed. Try to resend 2/3
7E A0 08 02 19 21 93 69 91 7E
13:22:15 Failed to receive reply from the device in given time.
7E A0 21 21 02 19 73 FD 2D 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 18 31 7E 7E A0 21 21 02 19 73 1D F6 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 4A 9E 7E 7E A0 21 21 02 19 73 DA 77 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 F0 23 7E
13:22:15
7E A0 21 21 02 19 73 FD 2D 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 18 31 7E 7E A0 21 21 02 19 73 1D F6 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 4A 9E 7E 7E A0 21 21 02 19 73 DA 77 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 F0 23 7E
System.TimeoutException: Failed to receive reply from the device in given time.
в GXDLMSDirector.GXDLMSDevice.InitializeConnection() в D:\Projects\VS_2017\GXDLMSDirector-master\Development\GXDLMSDevice.cs:строка 183
в GXDLMSDirector.MainForm.Connect(Object sender, GXAsyncWork work, Object[] parameters) в D:\Projects\VS_2017\GXDLMSDirector-master\Development\MainForm.cs:строка 1444
I’m a soft&hard developer of measuring devices, I write and test myself using your application "GXDLMSDirector".
Here is the error line of my program:
crc = CalcFcs(buff,8);
The number of bytes in header should be variable, not fixed.
Thanks again. Next I will be attentive.
Regards, Albert.
Hi Albert,
Hi Albert,
I'm glad that this is solved. Thank you for the information.
BR,
Mikko