Skip to main content
Home
for DLMS smart meters

Main navigation

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

Breadcrumb

  1. Home
  2. TCP Wrapper Is Not Working DLMS Client Example -ANSI C

TCP Wrapper is not working DLMS client example -ANSI C

By Mohanraj, 3 January, 2024
Forums
General discussion

DLMS connection is success in DLMS Gurux Explorer with US mode on TCP Wrapper and below is the TX and RX log.

Log from Gurux DLMS Explorer - Connection on US and TCP wrapper

TX: 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
RX: 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 58 00 07

TX: 00 01 00 10 00 01 00 0D C0 01 C1 00 01 00 00 2B 01 03 FF 02 00
RX: 00 01 00 01 00 10 00 09 C4 01 C1 00 06 00 00 00 F4

TX: 00 01 00 10 00 01 00 05 62 03 80 01 00
RX: 00 01 00 01 00 10 00 05 63 03 80 01 00

TX: 00 01 00 30 00 01 00 5F 60 5D A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08 4C 54 43 4C 49 45 4E 54 8A 02 07 80 8B 07 60 85 74 05 08 02 02 AC 12 80 10 30 21 43 4A 5A 29 4B 48 5D 0E 1F 27 24 15 0E 55 BE 23 04 21 21 1F 30 00 00 00 F5 09 B7 82 44 4E 6D 10 A5 E6 1C 5F 8D D9 C0 9B DC 9C 30 A6 70 28 85 A0 97 42 2A
RX: 00 01 00 01 00 30 00 6B 61 69 A1 09 06 07 60 85 74 05 08 01 03 A2 03 02 01 00 A3 05 A1 03 02 01 0E A4 0A 04 08 4C 4E 54 33 00 23 1E A1 88 02 07 80 89 07 60 85 74 05 08 02 02 AA 12 80 10 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 BE 23 04 21 28 1F 30 00 00 00 D7 02 F6 61 1D E2 A1 64 B2 28 53 6E 80 9D BE C0 41 32 0A BE BC 99 53 F8 12 1D 31

TX: 00 01 00 30 00 01 00 32 CB 30 30 00 00 00 F6 89 82 0C 1E 69 09 9C 77 6E 36 C0 93 D8 8D 12 CD C6 7A 18 BF B7 C5 80 28 FB 16 16 BF 3A 7C 77 D9 DE 29 C3 7C 7E A0 17 29 D0 4D 6C
RX: 00 01 00 01 00 30 00 2B CF 29 30 00 00 00 D8 45 1E 7E 73 42 82 62 5A 5D 37 92 6E EB 59 A7 B6 C8 2C B6 36 D5 85 23 AF 3F A2 5E B2 39 9A 59 71 D7 7C 3C C0

Where as with the DLMS Client Example in linux Tx and Rx logs are different and it is not moving to next level and below is the log and it is struck everytime at the same place.

Running the command as below

bin/gurux.dlms.client.bin -S /dev/ttyUSB0 -i WRAPPER -c 48 -a High -P ABCDEFGH12345678 -C AuthenticationEncryption -T 4C54434C49454E54 -A 31323334353637383930313233343536 -B 31323334353637383930313233343536 -v 0.0.43.1.3.255 -V Suite0 -s 1 -r ln -t Verbose

TX: 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 40 1E 1D FF FF
RX: 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 58 00 07

TX: 00 01 00 10 00 01 00 0D C0 01 C1 00 01 00 00 2B 01 03 FF 02 00

RX: 00 01 00 01 00 10 00 09 C4 01 C1 00 06 00 00 00 FB
Invocation counter: 252 (0xFC)
InitializeConnection

TX: 00 01 00 30 00 01 00 5F 60 5D A1 09 06 07 60 85 74 05 08 01 03 A6 0A 04 08 4C 54 43 4C 49 45 4E 54 8A 02 07 80 8B 07 60 85 74 05 08 02 02 AC 12 80 10 70 38 9C CE 67 B3 59 AC 56 AB 55 2A 15 8A 45 22 BE 23 04 21 21 1F 30 00 00 00 FC C5 B6 F9 14 64 F8 59 0E 61 75 E0 20 C1 C6 55 56 05 73 2C C7 7A 56 4C 55 67 70

Data send failed. Try to resend 1/3

Data send failed. Try to resend 2/3

Data send failed. Try to resend 3/3

AARQRequest failed Data receive failed.
Data receive failed.

What is an issue with DLMS TCP wrapper stack?

Note :
1.using latest stack
2.With the same credentials DLMS explorer is working

Profile picture for user Kurumi

Kurumi

1 year 10 months ago

Hi, You have removed Action…

Hi,

You have removed Action from conformance flags. You need to add DLMS_CONFORMANCE_ACCESS back to the proposed conformance.

BR,
Mikko

Mohanraj

1 year 10 months ago

Hi Mikko, How to add DLMS…

Hi Mikko,

How to add DLMS_CONFORMANCE_ACCESS ? because we are using Client example linux code.

Thanks
Mohanraj

Profile picture for user Kurumi

Kurumi

1 year 10 months ago

Hi Mohanraj, You have made…

Hi Mohanraj,

You have made some changes to the source code because DLMS_CONFORMANCE_ACCESS is set as default. Remove your changes.

BR,
Mikko

Mohanraj

1 year 10 months ago

Hi Mikko, We haven't…

Hi Mikko,

We haven't modified any code. We have downloaded latest source from github and just have compiled Client example program and running it.
So where do you think is the problem?

The way we are running the program is via the command is below

bin/gurux.dlms.client.bin -S /dev/ttyUSB0 -i WRAPPER -c 48 -a High -P ABCDEFGH12345678 -C AuthenticationEncryption -T 4C54434C49454E54 -A 31323334353637383930313233343536 -B 31323334353637383930313233343536 -v 0.0.43.1.3.255 -V Suite0 -s 1 -r ln -t Verbose

Thanks
Mohanraj

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Wed, 10/29/2025 - 08:51
    gurux.dlms.c 9.0.2510.2901
  • Thu, 10/16/2025 - 09:59
    gurux.dlms.java 4.0.83
  • Wed, 10/08/2025 - 10:21
    gurux.dlms.c 9.0.2510.0801
  • Fri, 09/26/2025 - 10:02
    gurux.dlms.cpp 9.0.2509.2601
  • Fri, 09/26/2025 - 09:45
    gurux.dlms.c 9.0.2509.2601

New forum topics

  • Guidance on using the source codes
  • How to get/convert user readable format data from readRowsByRange
  • Insufficient memory to continue the execution of the program.
  • The client instance code failed to connect to the electricity meter for authentication
  • Unable to Release Request when closing connection with meter.
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin