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. Invalid HDLC Frame While Reading Profile Generic Object

invalid HDLC frame while reading profile generic object

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.

Profile picture for user abdulhakam
By abdulhakam , 21 April, 2020
Forums
Gurux DLMS for Java

Hello everyone...
I hope you guys are still fine in the middle of this pandemic.

I have a problem when trying to read profile generic object.
this is the code that I have been written

GXDLMSProfileGeneric profileGeneric = new GXDLMSProfileGeneric("0.0.99.1.0.255");
profileGeneric.setDescription("Load Profile");
profileGeneric.setObjectType(ObjectType.PROFILE_GENERIC);
read(profileGeneric, 3);
read(profileGeneric, 2);

I was getting the error message
"Invalid HDLC Frame: 64 Expected: 74
Invalid HDLC Frame: 64 Expected: 74
Invalid HDLC Frame: 64 Expected: 74
Invalid HDLC Frame: 94 Expected: 74"

so I force CheckFrame method in GXDLMSSetting to returned true, and then I got "Tag mismatch!" as an error message.

here are logs:
16:25:47.960;[SENT]: 7E A0 2D 02 23 03 FE 18 8A E6 E6 00 C8 1E 30 00 00 00 1F 11 2B DF 76 A8 95 65 9C 83 8B 11 33 68 27 25 38 E4 6A 21 E1 4E 9A D5 B4 A3 C2 AD 7E

16:25:48.703;[RECV]: 7E A1 90 03 02 23 1E A2 2D E6 E7 00 CC 82 01 7F 30 00 00 06 D0 AD 2A 53 3D F2 65 74 BA AC 97 E3 6F 04 86 6A 9B 53 FF 07 44 D1 F7 66 C6 52 9A EF 1F F1 F8 40 E2 23 69 A9 69 D9 81 E9 3C CF 8B C2 66 77 D4 3B AC D5 15 E6 6F A2 92 87 1F BA 0F 14 E5 7F 45 34 5A 87 0E 08 02 26 C9 19 EE 47 35 C7 B7 30 FA E0 83 73 33 EB 75 98 78 B1 CA 76 AF 1A 28 23 B3 5F 9F 4C 41 66 77 77 CB 74 20 CD 2D 4A 85 BF 08 2A 78 56 D2 3E 48 83 AE A4 05 9B 83 D3 50 71 93 41 3B 17 83 36 94 26 68 4D 9D E6 A2 7A A4 3F 25 C2 B0 38 72 5B 83 82 39 88 CF 7A 67 7F B8 71 1D C0 74 00 3B 5A 04 79 CC D1 D7 49 63 B3 4B D4 67 67 8A C2 11 DF AD 01 07 A5 2F 41 00 80 C7 8F EE E6 48 3B 4F 51 FB 22 60 21 B1 ED 2A A3 7E AF B1 CF 16 77 7F 68 D9 B3 7E 5F B3 02 AF C5 08 F1 44 2C 5B 56 88 D6 86 99 E7 9A 6B 07 8D 63 A0 5E 3A A6 65 14 68 E8 FB ED 52 D9 3C 5D 36 80 1D 2F CD 28 4C 23 B0 FB 17 02 14 9F BE 9E BC E8 A7 38 F1 41 5F D1 F2 0D FA 20 E9 96 F3 30 CB 25 9C A8 67 46 A7 C3 73 16 EB CE F5 C9 B1 26 13 53 04 BC 78 F0 4D 96 C9 10 EE 7C C9 5D E3 D0 05 99 53 59 F7 8E A2 EA CC C2 59 E8 A1 6B EE 46 A1 B9 36 CB 7A 9F 6B DA 92 3A 55 7C 83 4D 37 B7 E0 4E EA F7 B2 B9 DD 1F DF C9 B3 F3 AD 4D 45 55 47 60 A5 74 58 69 CE E5 EC 9D 54 21 FE AB 90 FF D0 29 C4 7E

16:25:49.248;[SENT]: 7E A0 2D 02 23 03 54 48 80 E6 E6 00 C8 1E 30 00 00 00 22 34 2A 91 1A 55 09 13 FA CF EC 87 3D CA F0 44 35 24 4B 7C 2B 31 67 71 4C 3F B7 24 7E

Invalid HDLC Frame: 64 Expected: 74
Invalid HDLC Frame: 64 Expected: 74
Invalid HDLC Frame: 64 Expected: 74
Invalid HDLC Frame: 94 Expected: 74
Data send failed. Try to resend 1/3
Data send failed. Try to resend 2/3

16:26:35.765;[RECV]: 7E A2 FC 03 02 23 64 81 2B E6 E7 00 CC 82 03 1D 30 00 00 06 D3 6C 17 A3 A4 10 9E AA 67 D2 CF 4A E3 8A 82 12 C1 70 E7 42 A5 DB CC 54 2E 80 34 8B 62 FB CC 80 F8 90 FB 18 24 80 69 F3 67 1A 51 9A 5E A4 C2 7D 88 9C FB 71 60 21 7A 6E F5 1D 57 E9 E6 D0 5A DE FD FB BA D6 F9 51 B5 2D 8C EE 4A 39 BD A3 9E 1F D4 26 0E B1 74 C1 17 98 A6 69 FC 68 2A CD DD 02 C5 20 6B 00 AE 78 4D 9A 10 32 13 90 CD 26 D2 89 D4 D4 3B B9 02 BE 01 35 83 0A 11 CB AC C1 03 B5 9C 0A FE D2 10 5B 5D 3D 28 B1 12 0B 80 55 CC F3 5A F3 74 7F 85 22 5B D9 D6 3E 65 53 9D 02 C3 77 FD 9E 1B 37 57 AC 25 BC C8 A7 E2 81 91 47 DE 68 EF 66 36 E5 25 A4 6B A6 60 AB 55 3B 5B F9 27 09 F1 47 48 86 6A 5D CC ED 7C D1 6A 99 64 91 72 80 EE 2F D3 FF 0D 6B C1 CC 67 F5 25 1F 6D 56 2B 4B DC D8 1C F4 AC 68 30 6D 19 8C 4D 12 9D D7 2C EA 14 F8 65 7D C5 94 63 B5 D5 DF B7 83 9A 95 97 DA C3 E0 11 F3 51 31 4E 53 F0 D2 EF 9D 8D 22 F1 14 14 F9 02 73 A8 EE CB E8 7C 00 3D 89 7B B9 10 B0 FC 05 D6 9E D8 75 F4 89 88 98 B8 1B 28 63 A8 87 A8 19 5A FF 9C 17 67 07 EF F6 1B B9 9E EA CB 01 AD BB 6E 4E 1F 14 94 CC 5A 09 96 2F 32 E0 88 3D A0 4C 9B 29 1F 3A 79 E1 11 AC E3 6E 5A 9B 1B 71 0F B3 C8 4A E0 D8 D0 5A 20 6F 67 AD 3F 87 D2 EE 1B D0 46 75 04 82 6F DD 71 9C 22 C0 9F 8A 3A D9 77 57 4E 50 EF D6 F0 51 97 E5 A5 7C 0E 26 F0 5F 1E D5 52 EE 6A F2 6D 25 CE 4C 4D CD 03 56 DB A3 95 FB 07 7F A2 47 C6 50 C2 6E 1C E5 4F CE 91 3B 75 1F DD 6D 08 26 C7 96 35 0C 67 1F 22 FA 0F 0E 11 93 56 54 AE 82 CD 4B 89 84 C1 5E A1 B4 92 A5 BE D7 27 0E 38 2C AA 5D 40 DC 38 9B E3 53 41 4F D5 5B AC 60 00 C0 B3 F6 9A B5 7D 94 57 CE FC 4D C1 3A 0C 9A 1D 73 72 F9 17 5C 8E CD F0 47 47 D7 21 D0 98 2E 2E E8 5D DB 9F 83 AB 5E 59 FB BF 2D 1F E7 1F 01 5F A8 3A 86 69 BB 64 3A E0 9D 42 D9 69 C3 0B 2D FF BF C6 E2 10 67 AF 12 98 E0 75 7C 42 F8 76 9E 1F 9D 6C A0 74 F1 22 F9 8B 36 19 FF D3 64 3B 3D 67 48 DF 7E 6A A0 33 6D 09 72 BE C6 2E 3E B1 76 B5 1F BE AD 61 8A 29 BA 35 DC F3 57 F0 E8 1A 57 94 CD 08 76 20 B4 15 BE 23 79 D2 63 D9 65 BA 4F 51 7D 13 12 2D AC 67 3B D7 55 FB 72 F0 C1 7B 55 D2 5E 75 A2 2D AC 75 30 61 70 95 B5 F9 3D 6F 86 27 7F EF 23 94 8D 6A 28 C8 E1 6B 79 BA 59 A8 4B 69 88 A7 92 CA 2D 26 DD 20 FB B0 83 9B 4C E3 44 D4 31 BF 6B FB 94 B3 C9 92 53 67 E4 D3 B3 34 95 A6 FD 2B 98 E4 DE AE F1 39 32 0A 5A EC 23 A6 8A F3 92 2C 16 D4 89 BE 89 A7 76 35 55 86 5C 4E C4 E5 AF B7 89 0D 7E 7E A0 3C 03 02 23 94 2F 9F 44 F5 EB 67 1E 37 74 74 07 8F B7 5B 8D 19 D8 05 56 F8 20 A7 7D 6C 99 DD 9B 35 24 2D 27 CA 6E FE 89 BE 3E EE 49 2A BD D2 2E 62 9B DE 73 A2 91 12 93 D3 0C 18 7E

Please help to solve my problem.

Thanks,
regards,
Abdul Hakam

Profile picture for user Kurumi

Kurumi

6 years 1 month ago

Hello Abdul Hakam,

Hello Abdul Hakam,

Your meter is returning the wrong HDLC frame.
"Tag mismatch" error is thrown because your meter returns wrong tag. Because your messages are ciphered, I can't say what tag it is.

Can you ask the meter manufacturer to fix those?

BR,

Mikko

Profile picture for user abdulhakam

abdulhakam

6 years 1 month ago

thanks for your attention...

thanks for your attention...

meter manufacture has own meter reading application and work. my application has always compared to that. so I think I can't say the meter firmware return the wrong HDLC frame. but I would try to discuss this with them.

Thank you very much for your help
regards
Abdul Hakam

Profile picture for user Kurumi

Kurumi

6 years 1 month ago

Hi,

Hi,

It's common that my own app works. They can do the same mistakes on the client and server-side.
You can also ask if the meter has DLMS certificate or can they read other meters from different meter manufacturers using meter reading application.

BR,
Mikko

Profile picture for user abdulhakam

abdulhakam

6 years 1 month ago

Hi Mikko,

Hi Mikko,

I knew that exactly that specific meter manufacturer application can't read different meter manufacture that involved in my case. I can't ask also if the meter has a DLMS certificate or not.

thanks for helping me. perhaps this problem not solved or even can't be solved without changing the return message according to right HDLC frame, but you helping me to make what decision I suppose to take.

I am very grateful to you for making an amazing library freely. I truly appreciate that.

Gurux is the best open source library for DLMS meter reading.

Best Regards,
Abdul Hakam

Profile picture for user Kurumi

Kurumi

6 years 1 month ago

Hi,

Hi,

DLMS is a standard and you should be able to read different meters from different manufacturers if everything is implemented correctly. There are several parameters that may vary between the manufacturers and that might cause problems sometimes.

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