Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. 2 Bytes Server Address

2 bytes server address

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

By iMeter , 30 January, 2020
Forums
DLMSDirector

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.

Image
Profile picture for user Kurumi

Kurumi

6 years 4 months ago

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

iMeter

6 years 4 months ago

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.

Profile picture for user Kurumi

Kurumi

6 years 4 months ago

Hi Albert,

Hi Albert,

I'm glad that this is solved. Thank you for the information.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin