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.
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