Netmodule - NMEA Parsing through T55

cguenther3 years ago

Hi, i want to connect a Netmodule NB2700 Router/Gateway to report its Position to a Traccar-Instance. The Device is somewhat similar to Teltronika RUT850/955 or RUTX11. It runs a busybox-Linux and allows scripting though a SDK.

However, i have a script which connects to the gpsd and forward the NMEA-Messages to Traccar on Port 5005. Unfortunately i am somewhat stuck.

By looking into the sources of the T55Decoder, i would expect to have the decoder being able to parse my data, but something seems missing.

Here is the Hex / Log:

2021-12-17 16:00:33  INFO: [05ea4343: t55 < 80.187.118.13] HEX: 2444455649442c3030313132423030383942420d0a24474c4753562c322c312c30372c37342c34322c3035362c32312c37362c2c2c32362c38342c32332c3038312c31382c38332c31372c3031382c31362a35460d0a24474c4753562c322c322c30372c38352c30302c3133332c32302c37322c32302c3138382c33322c36362c33302c3332332c2a35410d0a
2021-12-17 16:00:33  WARN: Unknown device - 00112B0089BB
$GLGSV,2,1,07,74,42,056,21,76,,,26,84,23,081,18,83,17,018,16*5F
$GLGSV,2,2,07,85,00,133,20,72,20,188,32,66,30,323, (80.187.118.13)
2021-12-17 16:00:33  INFO: [05ea4343: t55 < 80.187.118.13] HEX: 2444455649442c3030313132423030383942420d0a2447504753562c342c312c31332c30312c30342c3032312c32302c31302c32312c3239362c33302c31322c33352c3232322c33362c31332c32342c3135302c33312a37360d0a2447504753562c342c322c31332c31342c31322c3035342c32392c31352c34322c3138312c33352c31372c33332c3036312c32372c31392c33382c3039352c33362a37330d0a2447504753562c342c332c31332c32332c32302c3236302c32332c32342c37332c3238392c32342c32312c2c2c2c32352c30332c3233322c2a34390d0a2447504753562c342c342c31332c33322c30312c3331392c2a34300d0a2447504747412c3135303033332e302c353035372e3738303139332c4e2c30303731312e3235363138392c452c312c30392c302e372c3139312e382c4d2c34372e302c4d2c2c2a35310d0a24474e474e532c3135303033332e302c353035372e3738303139332c4e2c30303731312e3235363138392c452c4141412c31322c302e372c3139312e382c34372e302c2c2a32450d0a2447505654472c3231392e312c542c3232302e302c4d2c302e302c4e2c302e302c4b2c412a32380d0a244750524d432c3135303033332e302c412c353035372e3738303139332c4e2c30303731312e3235363138392c452c302e302c3231392e312c3137313232312c302e392c572c412a31320d0a2447504753412c412c322c31302c31322c31332c31342c31352c31372c31392c32332c32342c2c2c2c312e302c302e372c302e372a33410d0a24474e4753412c412c322c31302c31322c31332c31342c31352c31372c31392c32332c32342c2c2c2c312e302c302e372c302e372c312a33390d0a24474e4753412c412c322c37322c2c2c2c2c2c2c2c2c2c2c2c312e302c302e372c302e372c322a33370d0a24474e4753412c412c322c3231312c3231322c3232332c3232342c3232352c2c2c2c2c2c2c2c312e302c302e372c302e372a31440d0a24474e4753412c412c322c30372c32312c2c2c2c2c2c2c2c2c2c2c312e302c302e372c302e372c332a33370d0a
2021-12-17 16:00:33  WARN: Unknown device - 00112B0089BB
$GPGSV,4,1,13,01,04,021,20,10,21,296,30,12,35,222,36,13,24,150,31*76
$GPGSV,4,2,13,14,12,054,29,15,42,181,35,17,33,061,27,19,38,095,36*73
$GPGSV,4,3,13,23,20,260,23,24,73,289,24,21,,,,25,03,232,*49
$GPGSV,4,4,13,32,01,319,*40
$GPGGA,150033.0,5057.780193,N,00711.256189,E,1,09,0.7,191.8,M,47.0,M,,*51
$GNGNS,150033.0,5057.780193,N,00711.256189,E,AAA,12,0.7,191.8,47.0,,*2E
$GPVTG,219.1,T,220.0,M,0.0,N,0.0,K,A*28
$GPRMC,150033.0,A,5057.780193,N,00711.256189,E,0.0,219.1,171221,0.9,W,A*12
$GPGSA,A,2,10,12,13,14,15,17,19,23,24,,,,1.0,0.7,0.7*3A
$GNGSA,A,2,10,12,13,14,15,17,19,23,24,,,,1.0,0.7,0.7,1*39
$GNGSA,A,2,72,,,,,,,,,,,,1.0,0.7,0.7,2*37
$GNGSA,A,2,211,212,223,224,225,,,,,,,,1.0,0.7,0.7*1D
$GNGSA,A,2,07,21,,,,,,,,,,,1.0,0.7,0.7,3 (80.187.118.13)
2021-12-17 16:00:33  INFO: [fd79954b] disconnected
2021-12-17 16:00:34  INFO: [05ea4343: t55 < 80.187.118.13] HEX: 2444455649442c3030313132423030383942420d0a24474c4753562c322c312c30372c37342c34322c3035362c31382c37362c2c2c32362c38342c32332c3038312c31382c38332c31372c3031382c31362a35350d0a
2021-12-17 16:00:34  WARN: Unknown device - 00112B0089BB
$GLGSV,2,1,07,74,42,056,18,76,,,26,84,23,081,18,83,17,018,16 (80.187.118.13)
2021-12-17 16:00:34  INFO: [05ea4343: t55 < 80.187.118.13] HEX: 2444455649442c3030313132423030383942420d0a24474c4753562c322c322c30372c38352c30302c3133332c31372c37322c32302c3138382c33312c36362c33302c3332332c2a35440d0a2447504753562c342c312c31332c30312c30342c3032312c32302c31302c32312c3239362c33312c31322c33352c3232322c33372c31332c32342c3135302c33312a37360d0a2447504753562c342c322c31332c31342c31322c3035342c32392c31352c34322c3138312c33352c31372c33332c3036312c32372c31392c33382c3039352c33362a37330d0a2447504753562c342c332c31332c32332c32302c3236302c32332c32342c37332c3238392c32342c32312c2c2c2c32352c30332c3233322c2a34390d0a2447504753562c342c342c31332c33322c30312c3331392c2a34300d0a2447504747412c3135303033342e302c353035372e3738303139312c4e2c30303731312e3235363138362c452c312c30392c302e372c3139312e382c4d2c34372e302c4d2c2c2a35420d0a24474e474e532c3135303033342e302c353035372e3738303139312c4e2c30303731312e3235363138362c452c4141412c31322c302e372c3139312e382c34372e302c2c2a32340d0a2447505654472c3231392e312c542c3232302e302c4d2c302e302c4e2c302e302c4b2c412a32380d0a244750524d432c3135303033342e302c412c353035372e3738303139312c4e2c30303731312e3235363138362c452c302e302c3231392e312c3137313232312c302e392c572c412a31380d0a2447504753412c412c322c31302c31322c31332c31342c31352c31372c31392c32332c32342c2c2c2c312e312c302e372c302e382a33340d0a24474e4753412c412c322c31302c31322c31332c31342c31352c31372c31392c32332c32342c2c2c2c312e312c302e372c302e382c312a33370d0a24474e4753412c412c322c37322c2c2c2c2c2c2c2c2c2c2c2c312e312c302e372c302e382c322a33390d0a24474e4753412c412c322c3231312c3231322c3232332c3232342c2c2c2c2c2c2c2c2c312e312c302e372c302e382a32360d0a24474e4753412c412c322c30372c32312c2c2c2c2c2c2c2c2c2c2c312e312c302e372c302e382c332a33390d0a
2021-12-17 16:00:34  WARN: Unknown device - 00112B0089BB
$GLGSV,2,2,07,85,00,133,17,72,20,188,31,66,30,323,*5D
$GPGSV,4,1,13,01,04,021,20,10,21,296,31,12,35,222,37,13,24,150,31*76
$GPGSV,4,2,13,14,12,054,29,15,42,181,35,17,33,061,27,19,38,095,36*73
$GPGSV,4,3,13,23,20,260,23,24,73,289,24,21,,,,25,03,232,*49
$GPGSV,4,4,13,32,01,319,*40
$GPGGA,150034.0,5057.780191,N,00711.256186,E,1,09,0.7,191.8,M,47.0,M,,*5B
$GNGNS,150034.0,5057.780191,N,00711.256186,E,AAA,12,0.7,191.8,47.0,,*24
$GPVTG,219.1,T,220.0,M,0.0,N,0.0,K,A*28
$GPRMC,150034.0,A,5057.780191,N,00711.256186,E,0.0,219.1,171221,0.9,W,A*18
$GPGSA,A,2,10,12,13,14,15,17,19,23,24,,,,1.1,0.7,0.8*34
$GNGSA,A,2,10,12,13,14,15,17,19,23,24,,,,1.1,0.7,0.8,1*37
$GNGSA,A,2,72,,,,,,,,,,,,1.1,0.7,0.8,2*39
$GNGSA,A,2,211,212,223,224,,,,,,,,,1.1,0.7,0.8*26
$GNGSA,A,2,07,21,,,,,,,,,,,1.1,0.7,0.8,3 (80.187.118.13)

I have the Device with the ID in Traccar, but it is not updated.... can someone have a helping hand and give me some advise?

thank you & best regards
Carsten

cguenther3 years ago

...update: When calculating a checksum for the DEVID, the device is recognised in Traccar, but no further data seem to be parsed/populated.

2021-12-17 16:07:43  INFO: [05ea4343: t55 < 80.187.118.13] HEX: 2444455649442c3030313132423030383942422a30370d0a24474c4753562c322c312c30362c38352c30342c3133322c32342c37322c31362c3138382c33322c37342c33392c3035372c2c36362c33332c3332302c2a36370d0a
2021-12-17 16:07:43  WARN: Unknown device - 00112B0089BB*07
Anton Tananaev3 years ago

Unknown device means that you haven't registered device on the server.

cguenther3 years ago

Ok - i somehow had managed to got it green in the server - but anyhow. actually i've incorporated a fake-id labelled $IMEI to have the full string taken as the device-id. The log shows the Id as unknown:

2021-12-17 20:15:41  INFO: [5f908e9e: t55 < 80.187.118.13] HEX: 24494d45492c33353132333435363738390d0a24474c4753562c332c312c30392c37362c33392c3132332c32352c36392c31332c3334332c32332c38382c31342c3139382c32342c38372c35362c3138312c32342a36420d0a
2021-12-17 20:15:41  WARN: Unknown device - 35123456789
$GLGSV,3,1,09,76,39,123,25,69,13,343,23,88,14,198,24,87,56,181,24*6B
 (80.187.118.13)
2021-12-17 20:15:41  INFO: [5f908e9e: t55 < 80.187.118.13] HEX: 24494d45492c33353132333435363738390d0a24474c4753562c332c322c30392c38352c30332c3032382c31362c37382c32352c3331322c2c38362c34382c3034322c2c37372c38322c3335342c2a36410d0a24474c4753562c332c332c30392c36382c31302c3239352c2a35440d0a2447504753562c332c312c31312c30322c33312c3035332c32392c31322c32372c3039372c32352c31382c30382c3137352c33362c32302c30382c3037372c33342a37330d0a2447504753562c332c322c31312c32352c36332c3039352c31372c32362c31392c3238362c32392c32392c38312c3138342c32322c33312c35342c3238342c32332a37380d0a2447504753562c332c332c31312c30342c30312c3334342c2c30362c2c2c2c33322c30382c3233302c2a37310d0a2447504747412c3139313534312e302c353035372e3737383137362c4e2c30303731312e3235353733342c452c312c30372c302e392c3230342e382c4d2c34372e302c4d2c2c2a35430d0a24474e474e532c3139313534312e302c353035372e3737383137362c4e2c30303731312e3235353733342c452c41414e2c31302c302e392c3230342e382c34372e302c2c2a32300d0a2447505654472c3136322e382c542c3136332e372c4d2c302e302c4e2c302e302c4b2c412a32440d0a244750524d432c3139313534312e302c412c353035372e3737383137362c4e2c30303731312e3235353733342c452c302e302c3136322e382c3137313232312c302e392c572c412a31360d0a2447504753412c412c322c30322c31322c31382c32302c32362c32392c33312c2c2c2c2c2c312e312c302e392c302e382a33350d0a24474e4753412c412c322c30322c31322c31382c32302c32362c32392c33312c2c2c2c2c2c312e312c302e392c302e382c312a33360d0a24474e4753412c412c322c37362c38382c38372c2c2c2c2c2c2c2c2c2c312e312c302e392c302e382c322a33430d0a24474e4753412c412c322c3231332c3232332c3232382c2c2c2c2c2c2c2c2c2c312e312c302e392c302e382a31370d0a24474e4753412c412c322c2c2c2c2c2c2c2c2c2c2c2c2c312e312c302e392c302e382c332a33330d0a
2021-12-17 20:15:41  WARN: Unknown device - 35123456789
$GLGSV,3,2,09,85,03,028,16,78,25,312,,86,48,042,,77,82,354,*6A
$GLGSV,3,3,09,68,10,295,*5D
$GPGSV,3,1,11,02,31,053,29,12,27,097,25,18,08,175,36,20,08,077,34*73
$GPGSV,3,2,11,25,63,095,17,26,19,286,29,29,81,184,22,31,54,284,23*78
$GPGSV,3,3,11,04,01,344,,06,,,,32,08,230,*71
$GPGGA,191541.0,5057.778176,N,00711.255734,E,1,07,0.9,204.8,M,47.0,M,,*5C
$GNGNS,191541.0,5057.778176,N,00711.255734,E,AAN,10,0.9,204.8,47.0,,*20
$GPVTG,162.8,T,163.7,M,0.0,N,0.0,K,A*2D
$GPRMC,191541.0,A,5057.778176,N,00711.255734,E,0.0,162.8,171221,0.9,W,A*16
$GPGSA,A,2,02,12,18,20,26,29,31,,,,,,1.1,0.9,0.8*35
$GNGSA,A,2,02,12,18,20,26,29,31,,,,,,1.1,0.9,0.8,1*36
$GNGSA,A,2,76,88,87,,,,,,,,,,1.1,0.9,0.8,2*3C
$GNGSA,A,2,213,223,228,,,,,,,,,,1.1,0.9,0.8*17
$GNGSA,A,2,,,,,,,,,,,,,1.1,0.9,0.8,3*33
 (80.187.118.13)

... but i am pulling my hair - adding a device with this id in traccar changes nothing. it stays offline and the log does not show anything else than before. WHY? All other devices (actually around 10) are working flawlessly - but with this one i am not able to add the device to have it recognised by traccar. what am i doing wrong?

Anton Tananaev3 years ago

Are you using standard Traccar? Or you changed something?

cguenther3 years ago

Fully stock, only changed to mysql and google-maps.

cguenther3 years ago

... just checked with demo3 - same behaviour :-(

Anton Tananaev3 years ago

If it's unchanged, how do you get those decoded messages in the logs, along with IP addresses?

cguenther3 years ago

... i dont know. ive "touched" nothing. did install according docs, no self-compile. do you want me to send the data to another server for testing?

Anton Tananaev3 years ago

In that case it probably means that your device is sending over UDP. Is there an option to switch to TCP?

cguenther3 years ago

Good hint! Rewrote the script to send via TCP - et voila :-)

Thank you very much for pointing me into the right direction!

cguenther3 years ago

For the books: I've got to have my Netmodule-Router/Gateway successfully reporting its position via SDK-Script.

For the Hardware see https://www.netmodule.com/en/ - my device is a NB2700: https://www.netmodule.com/uploads/files/produkte/router/NB2700/datasheet/NB2700_product_information.pdf

Highlights are ability to send position to several Traccar-Servers if required, upload via TCP ;-) and In-Script-Filtering to have only GPRMC reported (from a larger set of NMEA-Sentences) together with a Device-ID derived from the Serial-Number of the Router.

Thanks to Anton for the support.