[QUESTION] Galileosky incomplete string message

Andres Ramos5 years ago

Hello,

I'm using Galileo Protocol with Irma, and receive the following message:

Observed behavior

2019-07-02 16:48:48  INFO: [a59daf6e: 5034 < x.x.x.x] HEX: 0180000333353830303430393034343533323110e34320e48a1b5d300ce6b6ecff819150fb33a400720b34560a3506400178418f6e420810ea010a0333353830303430393034343533323110e44320e68a1b5d300c10b7ecff1d9150fb33f600790b34560a350640017841ba6e420810ea110a02000000000003000100000000
2019-07-02 16:48:48  INFO: [a59daf6e: 5034 < x.x.x.x] HEX: 0000002cfd
2019-07-02 16:48:49  INFO: [a59daf6e: 5034 > x.x.x.x] HEX: 022cfd

Here are three messages from the same device. The first line is only one part of the complete message, and the second line is the remaining part of the message.

I want to know if this is normal in traccar that the message comes splitted, because we are getting this data string to record passenger counting but it is not completed (as you can see), so we can't save data.

Expected behavior

We espected the following message:

2019-07-02 16:48:48  INFO: [a59daf6e: 5034 < x.x.x.x] HEX: 0180000333353830303430393034343533323110e34320e48a1b5d300ce6b6ecff819150fb33a400720b34560a3506400178418f6e420810ea010a0333353830303430393034343533323110e44320e68a1b5d300c10b7ecff1d9150fb33f600790b34560a350640017841ba6e420810ea110a020000000000030001000000000000002cfd
2019-07-02 16:48:49  INFO: [a59daf6e: 5034 > x.x.x.x] HEX: 022cfd

Thank so much.

Anton Tananaev5 years ago

It is normal TCP protocol behavior.

Andres Ramos5 years ago

Is there any way to concatenate these messages, for example by the channel?

Anton Tananaev5 years ago

That's the whole point of frame decoder. I would recommend you to read netty documentation before asking any further questions.

Andres Ramos5 years ago

Ok, thank you so much. I will read it