# TCP reply to Teltonika RUTX11 Modem

**URL:** https://discourse.nodered.org/t/tcp-reply-to-teltonika-rutx11-modem/26499
**Category:** General
**Created:** [11 May 2020 17:38 UTC](https://discourse.nodered.org/t/tcp-reply-to-teltonika-rutx11-modem/26499 "2020-05-11T17:38:40Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![smallf00t](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smallf00t/32/56574_2.png) [@smallf00t](https://discourse.nodered.org/u/smallf00t)
#### Post date: [11 May 2020 17:38 UTC](https://discourse.nodered.org/t/tcp-reply-to-teltonika-rutx11-modem/26499/1 "2020-05-11T17:38:40Z")

</div>

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](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

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [11 May 2020 19:08 UTC](https://discourse.nodered.org/t/tcp-reply-to-teltonika-rutx11-modem/26499/2 "2020-05-11T19:08:38Z")

</div>

> [@smallf00t](#):
>
> This modem can send http message with a position but for me tcp (raw) sending/receiving is better less data

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.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [11 May 2020 20:34 UTC](https://discourse.nodered.org/t/tcp-reply-to-teltonika-rutx11-modem/26499/3 "2020-05-11T20:34:54Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [11 May 2020 20:53 UTC](https://discourse.nodered.org/t/tcp-reply-to-teltonika-rutx11-modem/26499/4 "2020-05-11T20:53:29Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [11 May 2020 21:00 UTC](https://discourse.nodered.org/t/tcp-reply-to-teltonika-rutx11-modem/26499/5 "2020-05-11T21:00:55Z")

</div>

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

---

<div class="post-metadata">

### Author: ![smallf00t](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smallf00t/32/56574_2.png) [@smallf00t](https://discourse.nodered.org/u/smallf00t)
#### Post date: [12 May 2020 07:33 UTC](https://discourse.nodered.org/t/tcp-reply-to-teltonika-rutx11-modem/26499/6 "2020-05-12T07:33:08Z")

</div>

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](http://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,A_26  
$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,1_39  
$GNGSA,A,2,66,75,,,,,,,,,,,1.1,0.9,0.7,2_3F  
$GNGSA,A,2,,,,,,,,,,,,,1.1,0.9,0.7,3_3C  
$PQGSA,A,2,20,23,,,,,,,,,,,1.1,0.9,0.7,4_30  
$PQGSA,A,2,,,,,,,,,,,,,1.1,0.9,0.7,5_32  
$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,3472  
$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,4_69  
$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

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [12 May 2020 07:46 UTC](https://discourse.nodered.org/t/tcp-reply-to-teltonika-rutx11-modem/26499/7 "2020-05-12T07:46:12Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [12 May 2020 07:56 UTC](https://discourse.nodered.org/t/tcp-reply-to-teltonika-rutx11-modem/26499/8 "2020-05-12T07:56:38Z")

</div>

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)

---

<div class="post-metadata">

### Author: ![smallf00t](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smallf00t/32/56574_2.png) [@smallf00t](https://discourse.nodered.org/u/smallf00t)
#### Post date: [12 May 2020 07:58 UTC](https://discourse.nodered.org/t/tcp-reply-to-teltonika-rutx11-modem/26499/9 "2020-05-12T07:58:38Z")

</div>

> [@Steve-Mcl](#):
>
> So it's nothing earth shattering. In fact it's pretty small.

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 😃

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [12 May 2020 08:00 UTC](https://discourse.nodered.org/t/tcp-reply-to-teltonika-rutx11-modem/26499/10 "2020-05-12T08:00:41Z")

</div>

Understand. Good luck.

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [12 May 2020 08:59 UTC](https://discourse.nodered.org/t/tcp-reply-to-teltonika-rutx11-modem/26499/11 "2020-05-12T08:59:07Z")

</div>

> [@smallf00t](#):
>
> rutx11

Seems you have many options [https://wiki.teltonika-networks.com/view/RUTX11\_Remote\_Monitoring\_and\_Administration](https://wiki.teltonika-networks.com/view/RUTX11_Remote_Monitoring_and_Administration)

---

<div class="post-metadata">

### Author: ![smallf00t](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smallf00t/32/56574_2.png) [@smallf00t](https://discourse.nodered.org/u/smallf00t)
#### Post date: [12 May 2020 09:33 UTC](https://discourse.nodered.org/t/tcp-reply-to-teltonika-rutx11-modem/26499/12 "2020-05-12T09:33:03Z")

</div>

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 😃 n may this year ...)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [11 July 2020 09:36 UTC](https://discourse.nodered.org/t/tcp-reply-to-teltonika-rutx11-modem/26499/13 "2020-07-11T09:36:56Z")

</div>

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