# Communication between two fx30 modules via TCP/IP or MQTT or Modbus idk

**URL:** <https://discourse.nodered.org/t/communication-between-two-fx30-modules-via-tcp-ip-or-mqtt-or-modbus-idk/44981>\
**Category:** General\
**Created:** [30 April 2021 11:23 UTC](https://discourse.nodered.org/t/communication-between-two-fx30-modules-via-tcp-ip-or-mqtt-or-modbus-idk/44981 "2021-04-30T11:23:59Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![scouike](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@scouike](https://discourse.nodered.org/u/scouike)\
**Post date:** [30 April 2021 11:23 UTC](https://discourse.nodered.org/t/communication-between-two-fx30-modules-via-tcp-ip-or-mqtt-or-modbus-idk/44981/1 "2021-04-30T11:23:59Z")

</div>

Hello, I currently need to find a solution to make two sierra fx30 modules communicate with each other (TCP/IP or MQTT or Modbus) permanently in order to be able to report when one of the two stops responding (loss of connection, no longer on the network, etc).  
The problem is that I have no idea how to do this as it is not in my area of expertise.  
I have read a lot of documentation but all the solutions talk about serial port… My modules are in Ethernet and have no serial port!  
How can I do it ? Thank you in advance for your help.

I can’t download other node. I have to use ONLY basic 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:** [30 April 2021 11:36 UTC](https://discourse.nodered.org/t/communication-between-two-fx30-modules-via-tcp-ip-or-mqtt-or-modbus-idk/44981/2 "2021-04-30T11:36:38Z")

</div>

> [@scouike](#):
>
> sierra fx30

Does this device run node-red?

Or does it have MQTT connectivity? (link please)

Or does it list modbus in its manuals? (link please)

---

<div class="post-metadata">

**Author:** ![scouike](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@scouike](https://discourse.nodered.org/u/scouike)\
**Post date:** [30 April 2021 11:57 UTC](https://discourse.nodered.org/t/communication-between-two-fx30-modules-via-tcp-ip-or-mqtt-or-modbus-idk/44981/3 "2021-04-30T11:57:47Z")

</div>

Yes both modules run node-red, I already program on them and I already use Modbus for one of my flow.  
I'll send you the documentation of the module in question.

> **[Google Docs](https://docs.google.com/document/d/e/2PACX-1vRjhXLg2hEqC9srfXbOxrCh-GFcKyCDXgla_1uxe8fGqr_4bb7YWs2dk0_sFkItqsi0ACzqEFUHbIz8/pub)**
>
> This Doc is private

---

<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:** [30 April 2021 12:02 UTC](https://discourse.nodered.org/t/communication-between-two-fx30-modules-via-tcp-ip-or-mqtt-or-modbus-idk/44981/4 "2021-04-30T12:02:25Z")

</div>

Do you have an MQTT broker running on one of them or somewhere else on the network?

---

<div class="post-metadata">

**Author:** ![scouike](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@scouike](https://discourse.nodered.org/u/scouike)\
**Post date:** [30 April 2021 12:08 UTC](https://discourse.nodered.org/t/communication-between-two-fx30-modules-via-tcp-ip-or-mqtt-or-modbus-idk/44981/5 "2021-04-30T12:08:09Z")

</div>

Mmmh, I think yes, I send you the technical manuel but is in french  
[https://www.sphinxfrance.com/communiquer/solutions-node-red-embedded/3785/datasheet](https://www.sphinxfrance.com/communiquer/solutions-node-red-embedded/3785/datasheet)

---

<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:** [30 April 2021 12:12 UTC](https://discourse.nodered.org/t/communication-between-two-fx30-modules-via-tcp-ip-or-mqtt-or-modbus-idk/44981/6 "2021-04-30T12:12:56Z")

</div>

Then it is very easy to pass values between them.

Do a simple test...

### unit1

Add an mqtt in node  
Subscribe to `test` topic  
Connect that to a debug node

### unit2

Connect on inject node to an mqtt out node, set the topic to `test`

  

Both units MQTT nodes should connect to the same broker.

Pressing the inject node on unit 2 should make the value appear on unit 1

---

<div class="post-metadata">

**Author:** ![scouike](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@scouike](https://discourse.nodered.org/u/scouike)\
**Post date:** [30 April 2021 12:29 UTC](https://discourse.nodered.org/t/communication-between-two-fx30-modules-via-tcp-ip-or-mqtt-or-modbus-idk/44981/7 "2021-04-30T12:29:45Z")

</div>

> [@Steve-Mcl](#):
>
> Both units MQTT nodes should connect to the same broker.

I feel really stupid haha but how can I have the @ of the mqtt broker ??

![@mqtt_broker](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/4/54d586b2df8f2a78a40cc819a217ad256584d98a.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:** [30 April 2021 12:36 UTC](https://discourse.nodered.org/t/communication-between-two-fx30-modules-via-tcp-ip-or-mqtt-or-modbus-idk/44981/8 "2021-04-30T12:36:41Z")

</div>

If all you need to do is to check that they are connected and basically functioning you may be able to use Ping. Assuming they respond to ping that is.

---

<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:** [30 April 2021 12:44 UTC](https://discourse.nodered.org/t/communication-between-two-fx30-modules-via-tcp-ip-or-mqtt-or-modbus-idk/44981/9 "2021-04-30T12:44:01Z")

</div>

> [@scouike](#):
>
> how can I have the @ of the mqtt broker

You have to put the IP address of your broker in there. Where are you running the broker?

---

<div class="post-metadata">

**Author:** ![scouike](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@scouike](https://discourse.nodered.org/u/scouike)\
**Post date:** [30 April 2021 12:58 UTC](https://discourse.nodered.org/t/communication-between-two-fx30-modules-via-tcp-ip-or-mqtt-or-modbus-idk/44981/10 "2021-04-30T12:58:50Z")

</div>

Yes I know that but I have to program a flow who can do that automatically with basic node. So I search a solution with MQTT but I know nothing of this protocol.

---

<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:** [30 April 2021 13:01 UTC](https://discourse.nodered.org/t/communication-between-two-fx30-modules-via-tcp-ip-or-mqtt-or-modbus-idk/44981/11 "2021-04-30T13:01:42Z")

</div>

This will tell you everything you need to know about MQTT. [MQTT Essentials - All Core Concepts explained](https://www.hivemq.com/mqtt-essentials/)

---

<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:** [30 April 2021 13:25 UTC](https://discourse.nodered.org/t/communication-between-two-fx30-modules-via-tcp-ip-or-mqtt-or-modbus-idk/44981/12 "2021-04-30T13:25:40Z")

</div>

> [@scouike](#):
>
> I have to program a flow who can do that automatically with basic node.

You can use Ping with basic nodes. node-red-node-ping.

---

<div class="post-metadata">

**Author:** ![scouike](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@scouike](https://discourse.nodered.org/u/scouike)\
**Post date:** [30 April 2021 13:31 UTC](https://discourse.nodered.org/t/communication-between-two-fx30-modules-via-tcp-ip-or-mqtt-or-modbus-idk/44981/13 "2021-04-30T13:31:22Z")

</div>

I can't instal new nodes... Don't know why but my node-red don't have the manage palette 🙃

---

<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:** [30 April 2021 13:36 UTC](https://discourse.nodered.org/t/communication-between-two-fx30-modules-via-tcp-ip-or-mqtt-or-modbus-idk/44981/14 "2021-04-30T13:36:57Z")

</div>

> [@scouike](#):
>
> I can't instal new nodes

Can you run `ping` using an exec node?

---

<div class="post-metadata">

**Author:** ![scouike](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@scouike](https://discourse.nodered.org/u/scouike)\
**Post date:** [30 April 2021 13:54 UTC](https://discourse.nodered.org/t/communication-between-two-fx30-modules-via-tcp-ip-or-mqtt-or-modbus-idk/44981/15 "2021-04-30T13:54:05Z")

</div>

I don't have an exec node either...  
I've already looked into this and obviously it would be much easier that way

---

<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:** [30 April 2021 14:01 UTC](https://discourse.nodered.org/t/communication-between-two-fx30-modules-via-tcp-ip-or-mqtt-or-modbus-idk/44981/16 "2021-04-30T14:01:45Z")

</div>

Looks like MQTT will be the easiest then, provided you have the MQTT nodes that is, and that you have somewhere to install the broker (probably Mosquitto).

---

<div class="post-metadata">

**Author:** ![scouike](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@scouike](https://discourse.nodered.org/u/scouike)\
**Post date:** [30 April 2021 14:08 UTC](https://discourse.nodered.org/t/communication-between-two-fx30-modules-via-tcp-ip-or-mqtt-or-modbus-idk/44981/17 "2021-04-30T14:08:55Z")

</div>

I ask myself if it's possible to do a system of communication with SMS between two modules (they have SIM and phone number).  
But if it's impossible yes I'll do this with MQTT.  
Thanks for your advice 🙂

---

<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:** [30 April 2021 14:37 UTC](https://discourse.nodered.org/t/communication-between-two-fx30-modules-via-tcp-ip-or-mqtt-or-modbus-idk/44981/18 "2021-04-30T14:37:05Z")

</div>

Or you could just use http requests in each direction.

---

<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:** [29 June 2021 14:37 UTC](https://discourse.nodered.org/t/communication-between-two-fx30-modules-via-tcp-ip-or-mqtt-or-modbus-idk/44981/19 "2021-06-29T14:37:54Z")

</div>

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