decode of meter reading data

4 posts / 0 new
Last post
TodPu
decode of meter reading data

First of all, thank Gurux for his help
I'm developing a HHU platform
Bluetooth communication is used
So a lot of code needs to be rewritten
Excuse me,How to use gurux to parse uplink data is as follows,(I looked for the documentation and didn't find the code to convert byte data into structural data)
TX: 10:25:38.911 7E A0 19 03 21 32 6F D8 E6 E6 00 C0 01 C1 00 0F 00 00 28 00 00 FF 02 00 91 53 7E
RX: 10:25:38.933 7E A8 86 21 03 52 7F 1B E6 E7 00 C4 02 C1 00 00 00 00 01 00 82 03 F4 01 1C 02 04 12 00 0F 11 02 09 06 00 00 28 00 00 FF 02 02 01 0B 02 03 0F 01 16 01 00 02 03 0F 02 16 01 00 02 03 0F 03 16 01 00 02 03 0F 04 16 01 00 02 03 0F 05 16 01 00 02 03 0F 06 16 01 00 02 03 0F 07 16 01 00 02 03 0F 08 16 01 00 02 03 0F 09 16 01 00 02 03 0F 0A 16 01 00 02 03 0F 0B 16 01 00 01 06 02 02 0F 01 16 00 02 02 0F 02 C8 43 7E
TX: 10:25:38.935 7E A0 07 03 21 51 11 E4 7E
RX: 10:25:38.937 7E A0 86 21 03 54 49 7E 16 00 02 02 0F 03 16 00 02 02 0F 04 16 00 02 02 0F 05 16 00 02 02 0F 06 16 00 02 04 12 00 17 11 01 09 06 00 00 16 00 00 FF 02 02 01 09 02 03 0F 01 16 01 00 02 03 0F 02 16 01 00 02 03 0F 03 16 01 00 02 03 0F 04 16 01 00 02 03 0F 05 16 01 00 02 03 0F 06 16 01 00 02 03 0F 07 16 01 00 02 03 0F 08 16 01 00 02 03 0F 09 16 01 00 01 00 02 04 12 00 40 11 00 09 06 00 00 2B 00 00 FF 0F 08 7E

Thank you sir!

Kurumi
Kurumi's picture

Hi,

Download the client example. It'll read all the data from the meter. What you need to do is just send and receive bytes using the Bluetooth communication channel. If your Bluetooth is when as a serial port, you can use it directly.

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi

TodPu

Thank you sir,But
I looked at gurux's example,
However, it does not support Bluetooth communication. The current project development uses Bluetooth direct connection mode,
Not in the form of serial port
My question now is,
I want to know how to set "GXDLMSObject" with query time range or other parameters,
And how to parse the uplink message

Thanks!

Kurumi
Kurumi's picture

Hi,

DLMS is a complicated protocol. You can use our open source version. Find readDLMSPacket and send your generated bytes using Bluetooth. Then you need to read received bytes in Media.receive.

We can add support to Bluetooth at some point, but I believe that it's end of this year when we have time for that.

BR,
Mikko

________________________________________
Mikko Kurunsaari
Gurux Ltd
http://www.gurux.fi