TCP reply to Teltonika RUTX11 Modem

Hi i m a beginer in node red i have begin a project with worldmap everything is fine.
i would like to add function like make an AVL parser with my modem Teltonika RUTX11 ( https://wiki.teltonika-gps.com/view/Teltonika_AVL_Protocols )
i can receive TCP header message (imei) and the modem wait for an 0x01 to continue
I try with tcp reply msg.payload String.fromCharCode(0x01) but no way
This modem can send http message with a position but for me tcp (raw) sending/receiving is better less data.

Thanks

How much data are we talking, a few hundred bytes in the response?

How often are you reading (how fast do you NEED to poll the data)?

Do you have a function prepared to calculate the 32bit CRC?

TCP is likely doable but I am doubtful about the effort vs benefit.

@Steve-Mcl - I thought this would be a great use for your new buffer parser node....

Possibly Dave. But without knowing more, difficult to tell.

My thoughts were, if the http response is relatively small, only required infrequently & the data is already nicely formated - I'm not certain the benefits of are worth the work needed to calculate that CRC.

If the OP insists on using TCP, I can certainly help out with a demo.

it may be streaming tcp so no need to poll ... but yes

Hi here difference between http and tcp (modem send data every 20seconds )
Http send all protocol

HTTP Version
POST /?imei=&serial_num=110362xxxx HTTP/1.1
Host: data.xxxxx.fr:8501
Accept: /
Content-Type: application/vnd.teltonika.nmea
Content-Length: 1261
Expect: 100-continue

$GNGNS,095505.00,4750.131834,N,00155.092043,E,AAN,11,0.9,119.5,48.0,,14
$GPVTG,270.2,T,272.3,M,0.0,N,0.0,K,A
20
$GPRMC,095505.00,A,4750.131834,N,00155.092043,E,0.0,270.2,190420,2.1,W,A26
$GPGSA,A,2,02,06,10,12,14,15,24,25,32,,,,1.1,0.9,0.7
3A
$GNGSA,A,2,02,06,10,12,14,15,24,25,32,,,,1.1,0.9,0.7,139
$GNGSA,A,2,66,75,,,,,,,,,,,1.1,0.9,0.7,2
3F
$GNGSA,A,2,,,,,,,,,,,,,1.1,0.9,0.7,33C
$PQGSA,A,2,20,23,,,,,,,,,,,1.1,0.9,0.7,4
30
$PQGSA,A,2,,,,,,,,,,,,,1.1,0.9,0.7,532
$GLGSV,3,1,10,66,26,323,27,76,11,277,15,75,56,306,27,65,36,247,21
67
$GLGSV,3,2,10,72,13,206,16,74,47,060,,73,11,080,,84,39,080,65
$GLGSV,3,3,10,83,14,019,,85,18,143,60
$GPGSV,4,1,13,02,07,113,25,06,10,085,24,10,09,260,34,12,80,262,34
72
$GPGSV,4,2,13,14,14,319,38,15,09,170,28,19,30,049,20,24,66,112,30
7F
$GPGSV,4,3,13,25,45,248,35,32,33,305,36,17,13,035,,29,02,191,72
$GPGSV,4,4,13,49,,,35
70
$PQGSV,3,1,09,11,42,106,23,13,16,077,25,20,20,305,38,23,75,312,41,0,469
$PQGSV,3,2,09,25,45,088,28,28,02,178,32,05,12,115,,08,17,050,,0,4
60
$PQGSV,3,3,09,12,24,045,,0,4*56
$GAGSV,2,1,08,07,45,270,40,02,59,059,,08,30,202,,11,16,040,*6E
$GAGSV,2,2,08,25,09,074,,27,09,260,,30,61,274,,36,25,092,*69
$GPGGA,095506.00,4750.131086,N,00155.094138,E,1,10,0.7,116.0,M,48.0,M,,62
$PTLTGSM,LTE,0
28

vs TCP 000000000000003608010000016B40D8EA30010000000000000000000000000000000105021503010101425E0F01F10000601A014E0000000000000000010000C7CF

So it's nothing earth shattering. In fact it's pretty small.

Reading that long version every 20s is probably equivalent to 100bytes/sec. Its didily squat.

However if you insist, let me know what values you want & what format (int 16, float 32, uint32 etc) I have a nice easy way of converting all that raw TCP data on the fly (in node-red obviously)

Yes it s small the real problem is that the http protocol is only on the new rutx11 firmware
The tcp protocol is on all teltonika modem/tracker model
I try to make an universal connector and learn how to use this tcp function :smiley:

Understand. Good luck.

1 Like

Seems you have many options https://wiki.teltonika-networks.com/view/RUTX11_Remote_Monitoring_and_Administration

Yes it s a powerfull hardware tracking is a possibilities
i m waiting they implement tracking over mqtt (will be more easy to dispatch) and also they will implement wireguard vpn :smiley: n may this year ...)

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.