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. Troubleshooting UA Parsing Failures In DLMS/COSEM Over Custom USB Serial On Android (No GXMedia)

Troubleshooting UA Parsing Failures in DLMS/COSEM over Custom USB Serial on Android (No GXMedia)

By vadiraj Revankar, 30 July, 2025
Forums
Gurux DLMS for Android

I'm building a DLMS/COSEM client on Android using custom USB serial communication (no GXSerial/GXMedia). I send an SNRM request and receive a UA response that starts and ends with 0x7E, but the Gurux Java parser treats it as malformed.

Works:
Genus and Landis+Gyr meters: UA parsed correctly.

Fails:
HPL and L&T meters: UA response appears malformed.

The same configuration (client address, baud rate, etc.) works fine in the Gurux DLMS demo app.

Question:
Why would UA parsing fail only for HPL and L&T meters when using custom USB, but work in the Gurux demo?

Could it be:

HDLC framing/escape characters?

USB read buffer issue?

Flow control (DTR/RTS)?

Meter-specific quirks?

What does GXMedia handle that I may be missing?

Any advice is appreciated.

Profile picture for user Kurumi

Kurumi

4 months ago

Hi, Check are the UA…

Hi,

Check are the UA messages are the same. The UART buffer is small with some chipsets, and you need to read it from the thread. All bytes don't simply fit into the buffer

What is the reason why you don't use GXSerial?

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 12/02/2025 - 10:21
    gurux.dlms.c 9.0.2512.0201
  • Mon, 12/01/2025 - 13:55
    Gurux.DLMS.Python 1.0.193
  • Thu, 11/13/2025 - 15:23
    Gurux.DLMS.Python 1.0.192
  • Thu, 11/13/2025 - 14:55
    gurux.dlms.java 4.0.84
  • Wed, 10/29/2025 - 08:51
    gurux.dlms.c 9.0.2510.2901

New forum topics

  • Incomplete Firmware Upgrade Process
  • SNRM byte mening
  • P384 Client Certificate incorrect issuer CN
  • Confirmed push service support
  • DLMS Stack hang during Firmware Upgrade
More
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin