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.
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.
Hi,
I have some problems when reading Profile Generic data via Bluetooth Probe with an Android app.
In some point of the trace, the method client.getdata(buffer, reply), where buffer is the byte array received from meter, ignores a package, and keepo asking for next packages and some data is lost. I've checked the packages and I don't see anything wrong, but for no reason this method ignores the package.
I copy a part of my trace, where you can see the evolution of the reply data size and in some point this data don't increase because the method ignored a correct package. The problem is that the method reply.isComplete retunrs false and I dont know why is not complete and how to solve that.
After finish the communication, I can count that I received less packages than I expected for the hours I requested. For example, a month have 745h, but i always receive less than 700h of info.
If I read that same meter with GXDLMSDIrector, I can see all thehours expected.
RX: 6DBB8BAF29FFDBF3FF92FC82C3806878FFFFFFDF7EA0D8030221525309E6E700C402C100000000270081C00208090C07E6080707080000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080707090000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E60807070A0000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E60807070B0000FF8000801100060000000006000000000600000000060000000006000000000600000000FD547E
Frame is complete: true
Actual reply size: 7492
There is more data to receive from meter...
TX: 7EA0140221035445B0E6E600C002C10000002765FA7E
RX: FFB573E464AE79BFF7ABC802F772E37DD5E9FE7EA0D803022174674DE6E700C402C100000000280081C00208090C07E60807070C0000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E60807070D0000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E60807070E0000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E60807070F0000FF800080110006000000000600000000060000000006000000000600000000060000000074667E
Frame is complete: true
Actual reply size: 7684
There is more data to receive from meter...
TX: 7EA0140221037655B2E6E600C002C10000002892027E
RX: 5F6F8BA39ABFEFBF9E68DEC3BE50B572CA37F2FF7EA0D8030221967B89E6E700C402C100000000290081C00208090C07E6080707100000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080707110000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080707120000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080707130000FF8000801100060000000006000000000600000000060000000006000000000600000000328B7E
Frame is complete: true
Actual reply size: 7876
There is more data to receive from meter...
TX: 7EA0140221039825BCE6E600C002C1000000291B137E
RX: 7EA39ED7E927EC37FDF3F78AE80AE9DC21DF7B93BF7EA0D8030221B80741E6E700C402C1000000002A0081C00208090C07E6080707140000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080707150000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080707160000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080707170000FF8000801100060000000006000000000600000000060000000006000000000600000000C13F7E
Frame is complete: false
Actual reply size: 7876
There is more data to receive from meter...
TX: 7EA014022103BA35BEE6E600C002C10000002A80217E
BFBCCDDF33BB5DFFFF42C9537DD390D5B02CFF7EA0D8030221DA1301E6E700C402C1000000002B0081C00208090C07E6080801000000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080801010000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080801020000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080801030000FF8000801100060000000006000000000600000000060000000006000000000600000000423C7E
I/gurux.dlms.GXDLMS: Invalid HDLC Frame: da Expected: b8
Frame is complete: false
Actual reply size: 7876
There is more data to receive from meter...
TX: 7EA014022103DC05B8E6E600C002C10000002B09307E
RX: 7EF172549FF682DCF7FFC26B715523A55F1AD9FF7EA0D8030221FC2745E6E700C402C1000000002C0081C00208090C07E6080801040000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080801050000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080801060000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080801070000FF800080110006000000000600000000060000000006000000000600000000060000000067F57E
I/gurux.dlms.GXDLMS: Invalid HDLC Frame: fc Expected: b8
Frame is complete: false
Actual reply size: 7876
There is more data to receive from meter...
TX: 7EA014022103FE15BAE6E600C002C10000002CB6447E
RX: FEEC93F075FFCF9BBF1F399DA41FBEC8AEBF78FF7EA0D80302211E3B81E6E700C402C1000000002D0081C00208090C07E6080801080000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080801090000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E60808010A0000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E60808010B0000FF8000801100060000000006000000000600000000060000000006000000000600000000B55D7E
I/gurux.dlms.GXDLMS: Invalid HDLC Frame: 1e Expected: b8
Frame is complete: false
ctual reply size: 7876
There is more data to receive from meter...
TX: 7EA0140221031065B4E6E600C002C10000002D3F557E
RX: FF68CDE5BD95531E33EF94E79DE193F29BDBD5FE7EA0D8030221304749E6E700C402C1000000002E0081C00208090C07E60808010C0000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E60808010D0000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E60808010E0000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E60808010F0000FF800080110006000000000600000000060000000006000000000600000000060000000046E97E
I/gurux.dlms.GXDLMS: Invalid HDLC Frame: 30 Expected: b8
Frame is complete: false
Actual reply size: 7876
There is more data to receive from meter...
TX: 7EA0140221033275B6E6E600C002C10000002EA4677E
RX: FFA0AA83932B3EBF9BFF64FCE4B8AD117FDDDBFF7EA0D8030221525309E6E700C402C1000000002F0081C00208090C07E6080801100000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080801110000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080801120000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080801130000FF800080110006000000000600000000060000000006000000000600000000060000000000047E
I/gurux.dlms.GXDLMS: Invalid HDLC Frame: 52 Expected: b8
Frame is complete: false
Actual reply size: 7876
There is more data to receive from meter...
TX: 7EA0140221035445B0E6E600C002C10000002F2D767E
RX: FFE29EA5A3525D5C73F6AFE003A777CCFDFCCFDBFF7EA0D803022174674DE6E700C402C100000000300081C00208090C07E6080801140000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080801150000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080801160000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080801170000FF8000801100060000000006000000000600000000060000000006000000000600000000C0C97E
I/gurux.dlms.GXDLMS: Invalid HDLC Frame: 74 Expected: b8
Frame is complete: false
Actual reply size: 7876
There is more data to receive from meter...
TX: 7EA0140221037655B2E6E600C002C1000000305B9E7E
RX: BFFAFAB96D985FFEBB65E591F1418DDF97FFFF7EA0D8030221967B89E6E700C402C100000000310081C00208090C07E6080902000000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080902010000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080902020000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080902030000FF80008011000600000000060000000006000000000600000000060000000006000000008AD17E
I/gurux.dlms.GXDLMS: Invalid HDLC Frame: 96 Expected: b8
Frame is complete: false
Actual reply size: 7876
There is more data to receive from meter...
TX: 7EA0140221039825BCE6E600C002C100000031D28F7E
RX: BFB495F8EDE3B7B3F394F58338AAC8F9FDE67EA0D8030221B80741E6E700C402C100000000320081C00208090C07E6080902040000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080902050000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080902060000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080902070000FF800080110006000000000600000000060000000006000000000600000000060000000079657E
Frame is complete: true
Actual reply size: 8068
There is more data to receive from meter...
TX: 7EA014022103BA35BEE6E600C002C10000003249BD7E
RX: 7EE4DB99B4989FFEFBFF5574F0FA91B09DAB37FF7EA0D8030221DA1301E6E700C402C100000000330081C00208090C07E6080902080000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E6080902090000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E60809020A0000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E60809020B0000FF8000801100060000000006000000000600000000060000000006000000000600000000ABCD7E
Frame is complete: true
Actual reply size: 8260
There is more data to receive from meter...
TX: 7EA014022103DC05B8E6E600C002C100000033C0AC7E
RX: FF78BABFF1A1BF6B37DE5FD38B9F706B9DE4EF7EA0D8030221FC2745E6E700C402C100000000340081C00208090C07E60809020C0000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E60809020D0000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E60809020E0000FF80008011000600000000060000000006000000000600000000060000000006000000000208090C07E60809020F0000FF80008011000600000000060000000006000000000600000000060000000006000000008E047E
Frame is complete: true
Actual reply size: 8452
As you can see at some point, gurux is trying to find the frame 'B8' but that frame was previously ignored for an unknown reason
Hi,
Hi,
I need the block cipher key and authentication key to check the data. Also, there is only part of the frame and it makes it harder.
I can check this, if you can give block cipher and authentication keys and if you can read the meter with GXDLMSDirector and add log file to https://textbin.net and share the log with me.
BR,
Mikko
Hi,
Hi,
I don't use any block cipher nor authentication key.
I send the Log from GXDLMSDirector and the log from my app, so you can see the difference:
GXDLMSDirector: https://textbin.net/g7iy0qeebx
Android app: https://textbin.net/osrhzgdylc
As you can see in the android Log, at some point the client.getData(buffer, reply) ignores a HDLC frame and then ignore the next frames that arrive until it finds a new package with the same HDLC frame number, so all the packages data are lost because it's not stored in the reply object.
BR,
Mark
Hi Mikko,
Hi Mikko,
Have you took a look at both logs?
I still cannot make it work and I don't know what else check.
BR,
Marc Ruiz
Hi Marc,
Hi Marc,
I don't use those log files, because you have removed rows from the log data. HDLC sequence number is wrong.
BR,
Mikko