# Node-Red connection issues

**URL:** <https://discourse.nodered.org/t/node-red-connection-issues/10450>\
**Category:** General\
**Created:** [23 April 2019 09:53 UTC](https://discourse.nodered.org/t/node-red-connection-issues/10450 "2019-04-23T09:53:56Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![JIMP](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jimp/32/7836_2.png) [@JIMP](https://discourse.nodered.org/u/JIMP)\
**Post date:** [23 April 2019 09:53 UTC](https://discourse.nodered.org/t/node-red-connection-issues/10450/1 "2019-04-23T09:53:56Z")

</div>

Hello guys i really need help setting up Pilz system for automatic messages.

We are trying to set the system up so it delivers messages trough GSM module. So far GSM module it self works if we send test message it arrives to targets phone. Issue comes when we try to send message trough Node-red [We are using Rev Pi Core 3]. We have solved most of the errors but were stuck at the MQTT and we have... ( virtually tried everything i could think of to connect to it but its just stuck at connecting).

 ![nred](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/b/b54b544bf8b9d09e59b33ca911670ae39492689c.jpeg)

Code - [Pasted.co (password - nr )](http://pasted.co/050c1e92)

The code it's self had been used from an Video from YouTube but changed based onto the needs of the module that we have, there had been an few issues with the port it self that the GSM suppose to communicate with, based onto the findings this suppose to be the right flow for this type of project, as well trying to get an physical button input to trigger a message had not been responding well towards this flow.

If you need more information about hardware or anything else just ask in comments.  
Please help us out connect it.

---

<div class="post-metadata">

**Author:** ![linhtranvu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/linhtranvu/32/30053_2.png) [@linhtranvu](https://discourse.nodered.org/u/linhtranvu)\
**Post date:** [23 April 2019 10:11 UTC](https://discourse.nodered.org/t/node-red-connection-issues/10450/2 "2019-04-23T10:11:10Z")

</div>

from flows I think mqtt server cannot be connected. You should make a simple send-receive mqtt flow to see if mqtt work or not.

---

<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:** [23 April 2019 10:17 UTC](https://discourse.nodered.org/t/node-red-connection-issues/10450/3 "2019-04-23T10:17:52Z")

</div>

Show us the settings for the mqtt config node. The easiest way may be to select the node, Export it to the clipboard and paste it here. See this post for how to do that.

> [@How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506):
>
> To share code samples or flow json in this forum, you need to take care to format it properly so that it is displayed correctly. The easiest way to do that is to click the 'Preformatted Text' button in the toolbar: [image] Then paste in your code or flow json. You should end up with three back-tick characters - ``` - on their own line before and after the code. On standard US English keyboards, this is on the same key as the ~ character. Using the backticks will ens…

**[Edit]** I see you have posted the flow to an external site. For future reference it is easier to post it here. As zenofmud has pointed out, you have specified 192.168.1.1 as the MQTT server. Are you running and MQTT server there?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [23 April 2019 10:18 UTC](https://discourse.nodered.org/t/node-red-connection-issues/10450/4 "2019-04-23T10:18:54Z")

</div>

1. how are you send things to the GSM module? via mQTT or the serial port?

2. it looks like you have the MQTT broker at 192.168.1.1 - is working in other flows/devices?

---

<div class="post-metadata">

**Author:** ![linhtranvu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/linhtranvu/32/30053_2.png) [@linhtranvu](https://discourse.nodered.org/u/linhtranvu)\
**Post date:** [23 April 2019 10:22 UTC](https://discourse.nodered.org/t/node-red-connection-issues/10450/5 "2019-04-23T10:22:12Z")

</div>

The most easiest way is isolating issue for debug. Forget red node and test mqtt from browser like this tool for chrome [https://chrome.google.com/webstore/detail/mqttbox/kaajoficamnjijhkeomgfljpicifbkaf](https://chrome.google.com/webstore/detail/mqttbox/kaajoficamnjijhkeomgfljpicifbkaf)

If it doesnot work then not a red node problem but mqtt setting

---

<div class="post-metadata">

**Author:** ![JIMP](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jimp/32/7836_2.png) [@JIMP](https://discourse.nodered.org/u/JIMP)\
**Post date:** [23 April 2019 10:24 UTC](https://discourse.nodered.org/t/node-red-connection-issues/10450/6 "2019-04-23T10:24:59Z")

</div>

We have tried to send it via serial port, but we supposed to have connection to mqtt via gsm module (This is our first time working with this type of hardware and software so were just trying to figure this out) GSM module works were using Teletonika and message is being delivered perfectly) We have tried so many ports but the issue still persists.  
 ![1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/d/da688033c24b204000032abda4fc3c90bf1544e1.jpeg)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [23 April 2019 10:27 UTC](https://discourse.nodered.org/t/node-red-connection-issues/10450/7 "2019-04-23T10:27:57Z")

</div>

Let's talk MQTT for a moment. Is the gsm module suppose to have an MQTT broker or is it just sending MQTT messages to a (1) predefined broker or(2) a broker you can configure?

---

<div class="post-metadata">

**Author:** ![JIMP](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jimp/32/7836_2.png) [@JIMP](https://discourse.nodered.org/u/JIMP)\
**Post date:** [23 April 2019 10:44 UTC](https://discourse.nodered.org/t/node-red-connection-issues/10450/8 "2019-04-23T10:44:34Z")

</div>

We are using Teltonika RUT955 H7V20, Im going to be completely honest with you we are not completely sure. We are learning while setting it up, That is our task.

---

<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:** [23 April 2019 10:48 UTC](https://discourse.nodered.org/t/node-red-connection-issues/10450/9 "2019-04-23T10:48:12Z")

</div>

Do you have a broker?

Installed on the RPI? installed somewhere else? Using a public broker?

In essence, there needs to be a broker and the RPI needs to be able to connect to it.

Additionally, your clients also need to be able to connect the broker.

As I see it, you could install a broker on the RPI and open the necessary ports on the GSM module.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [23 April 2019 10:52 UTC](https://discourse.nodered.org/t/node-red-connection-issues/10450/10 "2019-04-23T10:52:13Z")

</div>

> [@JIMP](#):
>
> So far GSM module it self works if we send test message it arrives to targets phone

so how do you actually send the test messages?  
what is the process and hardware used to get the msg to the GSM to be sent?

---

<div class="post-metadata">

**Author:** ![JIMP](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jimp/32/7836_2.png) [@JIMP](https://discourse.nodered.org/u/JIMP)\
**Post date:** [23 April 2019 11:09 UTC](https://discourse.nodered.org/t/node-red-connection-issues/10450/11 "2019-04-23T11:09:39Z")

</div>

We are using TELRONIKA Pre instaled software.

 ![message](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/c/c679513b8f626caaef3db3167f608ec40799e7b7.jpeg) and that works perfectly  
 ![2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/8/8ab255f6c0ef39695812bad944a0ea4d347b7491.jpeg)  
These are options for MQTT From Teltonika.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [23 April 2019 11:17 UTC](https://discourse.nodered.org/t/node-red-connection-issues/10450/12 "2019-04-23T11:17:06Z")

</div>

That shows it apparently running on port 88

But your screenshot of node-RED shows you having selected port 161.

Rather than trying random ports, have you tried following the instructions on how to set up their MQTT broker?

You do also understand that the broker won't automatically send on an MQTT message? MQTT works by publishing to the broker and others subscribing to topics on the broker.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [23 April 2019 11:18 UTC](https://discourse.nodered.org/t/node-red-connection-issues/10450/13 "2019-04-23T11:18:07Z")

</div>

From my very brief look at the manual, it seems that the MQTT is being used so you can get info about the router. You should lookout the manual to see how you can send messages thru the router

You should also dertrmine if the device cansend SMS messages ther than router status. You might want to contact the MFG to find out that info.

---

<div class="post-metadata">

**Author:** ![JIMP](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jimp/32/7836_2.png) [@JIMP](https://discourse.nodered.org/u/JIMP)\
**Post date:** [23 April 2019 14:14 UTC](https://discourse.nodered.org/t/node-red-connection-issues/10450/14 "2019-04-23T14:14:17Z")

</div>

That's the issue the device arrived without any paperwork then some advertisement pieces, Other then that we have tried to figure out each step on our own. I already tried port 88 from multiple IP addresses doesn't do much good. ![question](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/1/16ecf902c9d2559f985c1430673a778f0ddb24dd.jpeg)

(creator of the device doesn't respond to emails as-well so we just trying to figure this out)

(IMAGE)These are few settings i can change if i enable "Bridge" . Issue for us is there are so much settings and options to enable and disable that its extremely hard to figure out whats at fault especially when we are doing something like this for the first time.

---

<div class="post-metadata">

**Author:** ![JIMP](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jimp/32/7836_2.png) [@JIMP](https://discourse.nodered.org/u/JIMP)\
**Post date:** [23 April 2019 14:26 UTC](https://discourse.nodered.org/t/node-red-connection-issues/10450/15 "2019-04-23T14:26:44Z")

</div>

Seems like we have enabled MQTT and it should be available to connect to via SIM card which is activated and fully able to call send messages and access data.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [23 April 2019 15:38 UTC](https://discourse.nodered.org/t/node-red-connection-issues/10450/16 "2019-04-23T15:38:48Z")

</div>

> [@JIMP](#):
>
> That's the issue the device arrived without any paperwork then some advertisement pieces

did you try a google search using something like 'TELRONIKA manual'?
