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. Failed To Connect In HLS With Kaifa AM206D

failed to connect in HLS with kaifa AM206D

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 zeus8497st , 2 February, 2023
Forums
DLMSDirector

hi Kurumi, i hope you are doing well.
it's been a while that i get from the vendor all securities parameters in order to connect in HLS GMAC to the meter and trying to get data from the meter. but i keep struggling to establish this connection by using GXDLMS with the suitable application context that i get from the communication between the meter vendor software and the meter.
i want to understand why the connection keep faikling, and your help to set the right application context for this.

log from GXDLMSDirector 9.0.2210.0401
Log created 12:19:03
12:19:09 Initializing serial connection.
12:19:10 IEC Sending:/?!<CR><LF>
12:19:12 HDLC received: /KFM6\2Kaifa Technology<CR><LF>
12:19:12 Maximum BaudRate is set to : 9600
12:19:12 BaudRate is : 9600
12:19:12 Moving to mode E.
06 32 35 32 0D 0A
12:19:15 Send SNRM request.
7E A0 08 02 01 61 93 58 94 7E
12:19:15
7E A0 21 61 02 01 73 BB 74 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 CE 6A 7E
12:19:15 Parsing UA reply succeeded.
12:19:15 Send AARQ request.
7E A0 4D 02 01 61 10 BD C5 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 38 5C 2C 66 51 5F 09 74 68 0C 6C 4D 76 15 5D 09 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 62 1E 5D FF FF 20 56 7E
12:19:20 Data send failed. Try to resend 1/3
12:19:25 Data send failed. Try to resend 2/3
12:19:30 Failed to receive reply from the device in given time.
12:19:30 Disconnect request
12:19:35 Failed to receive reply from the device in given time.
System.TimeoutException: Failed to receive reply from the device in given time.
à GXDLMSDirector.GXDLMSCommunicator.ReadDLMSPacket(Byte[] data, Int32 tryCount, GXReplyData reply)
à GXDLMSDirector.GXDLMSCommunicator.InitializeConnection(Boolean force)
à GXDLMSDirector.GXDLMSDevice.InitializeConnection()
à GXDLMSDirector.MainForm.Connect(Object sender, GXAsyncWork work, Object[] parameters)

log betwen the vendor software and the meter
C:\Program Files (x86)\SmartSet\SmartSet_All\CT\LogFiles\2023-02-02 11-58-38.log;

Send:11:59:29]/?!

Recv:11:59:30]2F 4B 46 4D 36 5C 32 4B 61 69 66 61 20 54 65 63 68 6E 6F 6C 6F 67 79 0D 0A

Send:11:59:30]252

Recv:11:59:33]--- baud changeover ---

Send:11:59:33]7E A0 21 02 01 21 93 CB E3 81 80 14 05 02 07 EE 06 02 07 EE 07 04 00 00 00 01 08 04 00 00 00 01 B5 D4 7E

Recv:11:59:33]7E A0 21 21 02 01 73 0C 62 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 CE 6A 7E

Send:11:59:33]7E A0 2C 02 01 21 10 2C 29 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 1F 1F FF FD D4 6E 7E

Recv:11:59:33]7E A0 38 21 02 01 30 B7 F7 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 10 10 02 00 00 07 AC A8 7E

Send:11:59:33]7E A0 1A 02 01 21 32 75 C4 E6 E6 00 C0 01 C1 00 01 00 00 60 01 00 FF 02 00 89 A0 7E

Recv:11:59:34]7E A0 17 21 02 01 52 CE BD E6 E7 00 C4 01 C1 00 09 04 30 10 52 53 A5 01 7E

Send:11:59:34]7E A0 08 02 01 21 53 32 14 7E

Recv:11:59:34]7E A0 21 21 02 01 73 0C 62 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 CE 6A 7E

Send:11:59:37]/?!

Recv:11:59:39]2F 4B 46 4D 36 5C 32 4B 61 69 66 61 20 54 65 63 68 6E 6F 6C 6F 67 79 0D 0A

Send:11:59:39]252

Recv:11:59:41]--- baud changeover ---

Send:11:59:41]7E A0 21 02 01 61 93 AD A5 81 80 14 05 02 07 EE 06 02 07 EE 07 04 00 00 00 01 08 04 00 00 00 01 B5 D4 7E

Recv:11:59:41]7E A0 21 61 02 01 73 BB 74 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 CE 6A 7E

Send:11:59:41]7E A0 4D 02 01 61 10 BD C5 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 DF 75 CA 51 A3 1D 31 37 57 1E 23 FB 66 5A 8B D7 BE 10 04 0E 01 00 00 00 06 5F 1F 04 00 00 1F 1F FF FD A4 88 7E

Recv:11:59:42]7E A0 59 61 02 01 30 F7 4B E6 E7 00 61 4A A1 09 06 07 60 85 74 05 08 01 01 A2 03 02 01 00 A3 05 A1 03 02 01 0E 89 07 60 85 74 05 08 02 02 88 02 07 80 AA 12 80 10 85 2F 88 55 BB D0 4A 34 F2 71 0D 13 28 13 D0 71 BE 10 04 0E 08 00 06 5F 1F 04 00 00 1A 1F 02 00 00 07 7B 92 7E

Send:11:59:42]7E A0 2C 02 01 61 32 5A 6D E6 E6 00 C3 01 C1 00 0F 00 00 28 00 00 FF 01 01 09 10 C7 E7 A1 4A 19 EC FC 56 C3 BC 96 36 BF 95 0A C1 4B 10 7E

Recv:11:59:42]7E A0 25 61 02 01 52 20 69 E6 E7 00 C7 01 C1 00 01 00 09 10 D3 95 41 BB 77 24 51 86 16 93 93 A4 79 7D 46 CB 8F 92 7E

Send:12:00:08]7E A0 1A 02 01 61 54 23 84 E6 E6 00 C0 01 C1 00 03 01 00 1F 07 00 FF 02 00 DC 79 7E

Recv:12:00:08]7E A0 16 61 02 01 74 09 E4 E6 E7 00 C4 01 C1 00 06 00 00 00 00 7D 18 7E

Send:12:00:08]7E A0 1A 02 01 61 76 33 86 E6 E6 00 C0 01 C1 00 03 01 00 1F 07 00 FF 03 00 04 60 7E

Recv:12:00:08]7E A0 17 61 02 01 96 51 2B E6 E7 00 C4 01 C1 00 02 02 0F FD 16 21 5E 6E 7E

Send:12:00:08]7E A0 1A 02 01 61 98 43 88 E6 E6 00 C0 01 C1 00 03 01 00 33 07 00 FF 02 00 48 CD 7E

Recv:12:00:08]7E A0 16 61 02 01 B8 69 E8 E6 E7 00 C4 01 C1 00 06 00 00 00 00 7D 18 7E

Send:12:00:08]7E A0 1A 02 01 61 BA 53 8A E6 E6 00 C0 01 C1 00 03 01 00 33 07 00 FF 03 00 90 D4 7E

Recv:12:00:09]7E A0 17 61 02 01 DA 39 A3 E6 E7 00 C4 01 C1 00 02 02 0F FD 16 21 5E 6E 7E

Send:12:00:09]7E A0 1A 02 01 61 DC 63 8C E6 E6 00 C0 01 C1 00 03 01 00 47 07 00 FF 02 00 E5 18 7E

Recv:12:00:09]7E A0 16 61 02 01 FC 49 EC E6 E7 00 C4 01 C1 00 06 00 00 00 00 7D 18 7E

Send:12:00:09]7E A0 1A 02 01 61 FE 73 8E E6 E6 00 C0 01 C1 00 03 01 00 47 07 00 FF 03 00 3D 01 7E

Recv:12:00:09]7E A0 17 61 02 01 1E 11 23 E6 E7 00 C4 01 C1 00 02 02 0F FD 16 21 5E 6E 7E

Send:12:00:09]7E A0 1A 02 01 61 10 03 80 E6 E6 00 C0 01 C1 00 03 01 00 5B 07 00 FF 02 00 A1 6B 7E

Recv:12:00:09]7E A0 16 61 02 01 30 29 E0 E6 E7 00 C4 01 C1 00 06 00 00 00 00 7D 18 7E

Send:12:00:09]7E A0 1A 02 01 61 32 13 82 E6 E6 00 C0 01 C1 00 03 01 00 5B 07 00 FF 03 00 79 72 7E

Recv:12:00:10]7E A0 17 61 02 01 52 79 AB E6 E7 00 C4 01 C1 00 02 02 0F FD 16 21 5E 6E 7E

Send:12:00:10]7E A0 1A 02 01 61 54 23 84 E6 E6 00 C0 01 C1 00 03 01 00 20 07 00 FF 02 00 85 83 7E

Recv:12:00:10]7E A0 14 61 02 01 74 81 F2 E6 E7 00 C4 01 C1 00 12 09 5C F2 FE 7E

Send:12:00:10]7E A0 1A 02 01 61 76 33 86 E6 E6 00 C0 01 C1 00 03 01 00 20 07 00 FF 03 00 5D 9A 7E

Recv:12:00:10]7E A0 17 61 02 01 96 51 2B E6 E7 00 C4 01 C1 00 02 02 0F FF 16 23 F4 F8 7E

Send:12:00:10]7E A0 1A 02 01 61 98 43 88 E6 E6 00 C0 01 C1 00 03 01 00 34 07 00 FF 02 00 99 D1 7E

Recv:12:00:10]7E A0 14 61 02 01 B8 E1 FE E6 E7 00 C4 01 C1 00 12 00 00 03 B1 7E

Send:12:00:10]7E A0 1A 02 01 61 BA 53 8A E6 E6 00 C0 01 C1 00 03 01 00 34 07 00 FF 03 00 41 C8 7E

Recv:12:00:11]7E A0 17 61 02 01 DA 39 A3 E6 E7 00 C4 01 C1 00 02 02 0F FF 16 23 F4 F8 7E

Send:12:00:11]7E A0 1A 02 01 61 DC 63 8C E6 E6 00 C0 01 C1 00 03 01 00 48 07 00 FF 02 00 6C 25 7E

Recv:12:00:11]7E A0 14 61 02 01 FC C1 FA E6 E7 00 C4 01 C1 00 12 00 00 03 B1 7E

Send:12:00:11]7E A0 1A 02 01 61 FE 73 8E E6 E6 00 C0 01 C1 00 03 01 00 48 07 00 FF 03 00 B4 3C 7E

Recv:12:00:11]7E A0 17 61 02 01 1E 11 23 E6 E7 00 C4 01 C1 00 02 02 0F FF 16 23 F4 F8 7E

Send:12:09:14]7E A0 08 02 01 61 53 54 52 7E

Recv:12:09:14]7E A0 21 61 02 01 73 BB 74 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 CE 6A 7E

securities parameters from the vendor( kaifa)

· Upper Address ? 1
·       Lower Address ? 0
·       Serial Number ? 30105253
·       Authentication mode: HighGMAC? HLS-GMAC
·       Security: AuthenticationEncryption? Yes
·       Source Address (or Client Address) ? 0x30
·       Password ? NO password
·       System title ? 4D4D4D0000BC614E
·       Block cipher key (encryption key) ? C662BE5A8E68B25715B5C33E062A7B74
·       Authentication key ? E3199F66B265FC473EC1F32C1315126D

Image

zeus8497st

3 years 4 months ago

security setting

security setting

Image
Profile picture for user Kurumi

Kurumi

3 years 4 months ago

Hi, Vendor software is not…

Hi,

Vendor software is not using GMAC or ciphered connection. It's using High authentication. Try to remove GeneralProtection, GeneralBlockTransfer, and DeltaValueEncoding from the supported services tab.

BR,
Mikko

zeus8497st

3 years 4 months ago

Hi, obviously i followed the…

Hi, obviously i followed the same setting as did the vendor and also i did follow your advise for GeneralProtection, GeneralBlockTransfer, and DeltaValueEncoding but the outcome still the same . the server stop replying after the AARQ.

GXDLMSDirector 9.0.2210.0401
Log created 09:35:13
09:35:15 Initializing serial connection.
09:35:16 IEC Sending:/?!<CR><LF>
09:35:17 HDLC received: /KFM6\2Kaifa Technology<CR><LF>
09:35:17 Maximum BaudRate is set to : 9600
09:35:17 BaudRate is : 9600
09:35:17 Moving to mode E.
06 32 35 32 0D 0A
09:35:20 Send SNRM request.
7E A0 08 02 01 61 93 58 94 7E
09:35:20
7E A0 21 61 02 01 73 BB 74 81 80 14 05 02 00 80 06 02 00 80 07 04 00 00 00 01 08 04 00 00 00 01 CE 6A 7E
09:35:20 Parsing UA reply succeeded.
09:35:20 Send AARQ request.
7E A0 7D 02 01 61 10 6C 11 E6 E6 00 60 6E A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08 4D 4D 4D 00 00 BC 61 4E 8A 02 07 80 8B 07 60 85 74 05 08 02 05 AC 12 80 10 30 18 75 33 25 03 05 33 5A 3D 2B 79 54 09 3B 1A BE 34 04 32 21 30 12 00 00 00 00 01 01 10 07 93 92 53 11 56 A1 07 AF 94 4F 95 70 D3 21 80 00 00 06 5F 1F 04 00 00 02 5F FF FF 11 F0 94 86 02 70 EB 78 E5 E5 C1 55 C1 25 7E
09:35:30 Data send failed. Try to resend 1/3
09:35:40 Data send failed. Try to resend 2/3
09:35:50 Failed to receive reply from the device in given time.
09:35:50 Disconnect request
09:36:00 Failed to receive reply from the device in given time.
System.TimeoutException: Failed to receive reply from the device in given time.
à GXDLMSDirector.GXDLMSCommunicator.ReadDLMSPacket(Byte[] data, Int32 tryCount, GXReplyData reply)
à GXDLMSDirector.GXDLMSCommunicator.InitializeConnection(Boolean force)
à GXDLMSDirector.GXDLMSDevice.InitializeConnection()
à GXDLMSDirector.MainForm.Connect(Object sender, GXAsyncWork work, Object[] parameters)

Profile picture for user Kurumi

Kurumi

3 years 4 months ago

In reply to Hi, obviously i followed the… by zeus8497st

Hi, You have selected…

Hi,

You have selected HighGMac when another application is using High. Change HighGMac to High and try again.

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