# MQTT traccar Server

**URL:** https://discourse.nodered.org/t/mqtt-traccar-server/65328
**Category:** General
**Tags:** mqtt
**Created:** [19 July 2022 15:06 UTC](https://discourse.nodered.org/t/mqtt-traccar-server/65328 "2022-07-19T15:06:24Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![duffy6](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/duffy6/32/18594_2.png) [@duffy6](https://discourse.nodered.org/u/duffy6)
#### Post date: [19 July 2022 15:06 UTC](https://discourse.nodered.org/t/mqtt-traccar-server/65328/1 "2022-07-19T15:06:24Z")

</div>

Hi,

I have two mqtt-in nodes pulling data from thethingsnetwork:

> **[LoRaWAN für IoT-Projekte: Einfach einsteigen mit TTN und Node-Red](https://www.heise.de/ratgeber/LoRaWAN-fuer-IoT-Projekte-Einfach-einsteigen-mit-TTN-und-Node-Red-6115111.html)**
>
> LoRaWAN-Hardware ist nicht teuer, mit Node-­Red steht kostenlose, offene Software bereit. Die benötigte Netzinfrastruktur liefert das "The Things Network".

These two nodes pulling from the same server (but two different applications).  
One of these nodes always gives me a ECONNRESET error.  
Can you give me a hint how I can research that issue any further?

duffy6

 ![Unbenannt](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/b/0b604d42fb924ba5f2b2bf514d244e4eb4523c1d.png)

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [19 July 2022 15:25 UTC](https://discourse.nodered.org/t/mqtt-traccar-server/65328/2 "2022-07-19T15:25:30Z")

</div>

Isn't that an http node showing reset, not an mqtt node? Or an I misinterpreting things on my phone?

---

<div class="post-metadata">

### Author: ![duffy6](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/duffy6/32/18594_2.png) [@duffy6](https://discourse.nodered.org/u/duffy6)
#### Post date: [19 July 2022 17:16 UTC](https://discourse.nodered.org/t/mqtt-traccar-server/65328/3 "2022-07-19T17:16:49Z")

</div>

oh, you're right!

But when I deactivate the second mqtt-in node I do not get an error.  
Strange thing. Why is it working with one node?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [19 July 2022 17:54 UTC](https://discourse.nodered.org/t/mqtt-traccar-server/65328/4 "2022-07-19T17:54:21Z")

</div>

Look at the messages going into the failing node, and how it is configured, to see what is wrong.

---

<div class="post-metadata">

### Author: ![duffy6](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/duffy6/32/18594_2.png) [@duffy6](https://discourse.nodered.org/u/duffy6)
#### Post date: [19 July 2022 19:43 UTC](https://discourse.nodered.org/t/mqtt-traccar-server/65328/5 "2022-07-19T19:43:35Z")

</div>

I do not even get a debug message out of the mqtt-in node ☹

I am puzzled and do not know where to start?

Using a MQTT analyzing tool? Any hints for a good tool?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [19 July 2022 19:57 UTC](https://discourse.nodered.org/t/mqtt-traccar-server/65328/6 "2022-07-19T19:57:11Z")

</div>

Mqttexplorer

---

<div class="post-metadata">

### Author: ![duffy6](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/duffy6/32/18594_2.png) [@duffy6](https://discourse.nodered.org/u/duffy6)
#### Post date: [20 July 2022 13:46 UTC](https://discourse.nodered.org/t/mqtt-traccar-server/65328/7 "2022-07-20T13:46:53Z")

</div>

It’s a demo traccar server ([demo3.traccar.org](http://demo3.traccar.org)) and for my TWO GPS-sensors dragino LGT92 I need TWO application. Or am I wrong?

This is what I have done for each of the two sensors:  
New mqtt-broker  
→ server config: choose name  
server: „eu1.cloud.thethings.network“, Port 8883; activate SSL/TLS.

new TLS-configuration → new name  
server-name: eu1.cloud.thethings.network“  
download root-certificate (ISRG Root X1) from Let’s Encrypt in new config „CAcertificat“: [https://letsencrypt.org/certs/isrgrootx1.pem](https://letsencrypt.org/certs/isrgrootx1.pem)

tls-config-\>security: username: TTN-application-ID@ttn“, e.g. „my\_application@ttn“.  
password is the API-key, for which you have to generate a API-key in TTN web-GUI „Add API key“ (Grant all rights)

Topic: „v3/application-ID@ttn/devices/Device-ID/up“; e.g.: „v3/my\_application@ttn/devices/my\_end\_device/up“  
You find the end-device-name in TTN web-GUI.

This is my node (just add your own mqtt-in node):

```auto
"url":"","persist":false,"authType":"","x":1021,"y":599,"wires":[["4b90af36.2d516"]]}]

```

Do you see any error?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [20 July 2022 19:01 UTC](https://discourse.nodered.org/t/mqtt-traccar-server/65328/8 "2022-07-20T19:01:04Z")

</div>

> [@duffy6](#):
>
> for my TWO GPS-sensors dragino LGT92 I need TWO application. Or am I wrong

I don't understand what you mean by an application. Please explain.

> [@duffy6](#):
>
> Do you see any error?

I am not sure what error you are seeing that is related to MQTT.

Did you try MQTTExplorer to examine what is available from your broker?

The flow you posted is only part of a single node's config.

---

<div class="post-metadata">

### Author: ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)
#### Post date: [21 July 2022 05:06 UTC](https://discourse.nodered.org/t/mqtt-traccar-server/65328/9 "2022-07-21T05:06:15Z")

</div>

Have you moved both your trackers to on Application, one MQTT integration and one HTTP post as suggested to you on the TTN forum?

An then see if you are still getting the ECONNRESET error from the HTTP post.

---

<div class="post-metadata">

### Author: ![duffy6](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/duffy6/32/18594_2.png) [@duffy6](https://discourse.nodered.org/u/duffy6)
#### Post date: [21 July 2022 08:00 UTC](https://discourse.nodered.org/t/mqtt-traccar-server/65328/10 "2022-07-21T08:00:14Z")

</div>

My sensors habe two different firmware versions, so I have to update them to the same version and will try to move them in one application.

---

<div class="post-metadata">

### Author: ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)
#### Post date: [21 July 2022 08:13 UTC](https://discourse.nodered.org/t/mqtt-traccar-server/65328/11 "2022-07-21T08:13:54Z")

</div>

Are the decoder different for the different firmware version?

If not you can still use the same application in TTN as long as when you create the tracker on the application you specify the correct version for the firmware.

---

<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: [19 September 2022 08:14 UTC](https://discourse.nodered.org/t/mqtt-traccar-server/65328/12 "2022-09-19T08:14:35Z")

</div>

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