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.
By diptesh, 4 March, 2015
Dear All,
I am having a requirement in my .net application, where I am already getting the dlms command (ECS70 Clock) in raw byte format. Now I want to parse that command to get objects and data.
Could anyone please let me know whether this is possible using Gurux Library where I can pass my raw byte DLMS command to some parsing function and it gives me back parsed data.
Also is the parsing that Gurux library is doing, always expects HDLC Frame only ?
As the data I am receiving in my application is not containing HDLC start/end packets, so will I be able to parse it using the library.
Need to parse DLMS data (raw byte array)
Hi,
Can you post your raw data here so I can verify it and answer for your question?
BR,
Mikko
Need to parse DLMS data (raw byte array)
Dear Mikko,
Please find the raw data below. I have added comments to identify the sequence.
unsigned char ecs70[]={
0xd9, // Tag for Access Request
0x20, // APDU config
0x00,0x00,0x00, // Invoke ID
0x00, // Length = 0 (There is no value so length field is zero )
0x05, // Number of Entries
0x02, // Set Request
0x00,0x08,0x00,0x00,0x01,0x00,0x00,0xff, // 00,08 Clock Object, 00,00,01,00,00,ff OBIS Code
0x09, // attribute identifier (Clock base)
0x03, // Action Request
0x00,0x08,0x00,0x00,0x01,0x00,0x00,0xff, // 00,08 Clock Object, 00,00,01,00,00,ff OBIS Code
0x05, // attribute identifier (Preset_Adjust_Time)
0x03, // Action Request
0x00,0x08,0x00,0x00,0x01,0x00,0x00,0xff, // 00,08 Clock Object, 00,00,01,00,00,ff OBIS Code
0x04, // attribute (Adjust_to_preset_time)
0x01, // Get Request
0x00,0x08,0x00,0x00,0x01,0x00,0x00,0xff, // 00,08 Clock Object, 00,00,01,00,00,ff OBIS Code
0x02, // attribute
0x01, // Get Request
0x00,0x08,0x00,0x00,0x01,0x00,0x00,0xff, // 00,08 Clock Object, 00,00,01,00,00,ff OBIS Code
0x04, // attribute (Adjust_to_preset_time) // After this all bytes are for Value
0x05,0x16,0x05,0x02,0x02,0x03,0x09,0x0c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x1F,0x40,0x09,0x0c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x09,0x0c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0f,0x00,0x09,0x0c,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x16,0x00};
Waiting for your reply.
Thanks & Regards,
Diptesh Patel
Need to parse DLMS data (raw byte array)
Hi,
Your data seems interesting.
Can you send whole DLMS frame so we can check it.
Please, do not comment it.
What meter you are using (manufacturer and model)?
BR,
Mikko
I need to parse the below
I need to parse the below data
OBIS CODE: .\OBIS\test\99.98.12.xml
3:51:54 PM CB_S: 7EA01A028905FE6846E6E600C001C30007010063620CFF02003D097E
3:51:55 PM 0.797 CB_R: 7EA22D0502891E3A1AE6E700C402C30000000001008202140182001102820006090C07E40A1A010A1439FFFF4C0004084012000012000112000012000002820006090C07E40A1A010A172BFFFF4C0004080012000012000112000012000002820006090C07E40A1A010A172CFFFF4C0004084012000012000212000012000002820006090C07E40A1A010A172EFFFF4C0004080012000012000212000012000002820006090C07E40A1A010A1731FFFF4C0004084012000012000312000012000002820006090C07E40A1A010A1732FFFF4C0004080012000012000312000012000002820006090C07E40A1C030B2623FFFF4C0004084012000012000412000012000002820006090C07E40A1C030B2800FFFF4C0004080012000012000412000012000002820006090C07E40A1C030B2800FFFF4C0004084012000012000512000012000002820006090C07E40A1C030B2802FFFF4C0004080012000012000512000012000002820006090C07E40A1C030B3211FFFF4C0004084012000012000612000012000002820006090C07E40A1C030B392BFFFF4C0004080012000012000612000012000002820006090C07E40A1C030B392DFFFF4C0004084012000012000712000012000002820006090C07E40A1C030B3933FFFF4C0004080012000012000712000012000002820006090C07E40A1D04102308FFFF4C0004084012000012000812000012000002820006090C07E40A1D0410230FFFFF4C000408001200001200081200001200007ECC7E
<GetResponse>
<GetResponsewithDataBlock>
<InvokeIdAndPriority Value="C3" />
<Result>
<LastBlock Value="00" />
<BlockNumber Value="00000001" />
<Result>
<RawData Value="0182001102820006090C07E40A1A010A1439FFFF4C0004084012000012000112000012000002820006090C07E40A1A010A172BFFFF4C0004080012000012000112000012000002820006090C07E40A1A010A172CFFFF4C0004084012000012000212000012000002820006090C07E40A1A010A172EFFFF4C0004080012000012000212000012000002820006090C07E40A1A010A1731FFFF4C0004084012000012000312000012000002820006090C07E40A1A010A1732FFFF4C0004080012000012000312000012000002820006090C07E40A1C030B2623FFFF4C0004084012000012000412000012000002820006090C07E40A1C030B2800FFFF4C0004080012000012000412000012000002820006090C07E40A1C030B2800FFFF4C0004084012000012000512000012000002820006090C07E40A1C030B2802FFFF4C0004080012000012000512000012000002820006090C07E40A1C030B3211FFFF4C0004084012000012000612000012000002820006090C07E40A1C030B392BFFFF4C0004080012000012000612000012000002820006090C07E40A1C030B392DFFFF4C0004084012000012000712000012000002820006090C07E40A1C030B3933FFFF4C0004080012000012000712000012000002820006090C07E40A1D04102308FFFF4C0004084012000012000812000012000002820006090C07E40A1D0410230FFFFF4C00040800120000120008120000120000" />
</Result>
</Result>
</GetResponsewithDataBlock>
</GetResponse>
Dear Muhammad,
Dear Muhammad,
Please, create a new topic if you have a new question.
I'll answer your question when you have created a new topic.
BR,
Mikko