Changes

331 bytes added ,  12:10, 4 December 2020
no edit summary
Line 59: Line 59:  
| style="text-align: left; vertical-align: top;" | Value of analog
 
| style="text-align: left; vertical-align: top;" | Value of analog
 
| style="text-align: left; vertical-align: top;" | RUT9xx and TRB2xx
 
| style="text-align: left; vertical-align: top;" | RUT9xx and TRB2xx
 +
|-
 +
! style="text-align: left; vertical-align: top;" | pin2
 +
| style="text-align: left; vertical-align: top;" | Value of 2's pin state
 +
| style="text-align: left; vertical-align: top;" | TRB2xx
 
|-
 
|-
 
! style="text-align: left; vertical-align: top;" | pin3
 
! style="text-align: left; vertical-align: top;" | pin3
| style="text-align: left; vertical-align: top;" | Value of 4PIN connectors 3's pin state
+
| style="text-align: left; vertical-align: top;" | Value of 3's pin state
| style="text-align: left; vertical-align: top;" | RUT9xx, RUTXxx and TRB14x
+
| style="text-align: left; vertical-align: top;" | RUT9xx, RUTXxx, TRB2xx and TRB14x
 
|-
 
|-
 
! style="text-align: left; vertical-align: top;" | pin4
 
! style="text-align: left; vertical-align: top;" | pin4
| style="text-align: left; vertical-align: top;" | Value of 4PIN connectors 4's pin state
+
| style="text-align: left; vertical-align: top;" | Value of 4's pin state
| style="text-align: left; vertical-align: top;" | RUT9xx, RUTXxx and TRB14x
+
| style="text-align: left; vertical-align: top;" | RUT9xx, RUTXxx, TRB2xx and TRB14x
 
|-
 
|-
 
|}
 
|}
Line 73: Line 77:       −
[[File:Configuration examples mqtt scheme v2.jpg]]
+
[[File:Configuration examples mqtt scheme v2.jpg|border|class=tlt-border]]
    
It should also be noted that, according to the MQTT protocol, topic names are case-sensitive. For instance, topic ''router'' is not the same as topic ''RoUtEr''.
 
It should also be noted that, according to the MQTT protocol, topic names are case-sensitive. For instance, topic ''router'' is not the same as topic ''RoUtEr''.
Line 85: Line 89:  
Basic (not counting Security, Bridge and Miscellaneous Broker settings) Broker configuration only contains three fields. Make sure to '''Enable''' the Broker and specify a '''Port''' for connection to the Broker. ''' Enable Remote Access''' if you wish to connect to your router remotely (via WAN). Although in this case your router would need to have a Public IP address. In image below is presented how to configure RUT9xx routers:
 
Basic (not counting Security, Bridge and Miscellaneous Broker settings) Broker configuration only contains three fields. Make sure to '''Enable''' the Broker and specify a '''Port''' for connection to the Broker. ''' Enable Remote Access''' if you wish to connect to your router remotely (via WAN). Although in this case your router would need to have a Public IP address. In image below is presented how to configure RUT9xx routers:
 
   
 
   
[[Image:Configuration examples mqtt broker.png]]
+
[[Image:Configuration examples mqtt broker.png|border|class=tlt-border]]
       
Configuration for a TRB14x devices and a RUTXxx routers looks like this:
 
Configuration for a TRB14x devices and a RUTXxx routers looks like this:
   −
[[Image:Configuration_examples_publisher_new_design.png]]
+
[[Image:Configuration_examples_publisher_new_design.png|border|class=tlt-border]]
    
===Publisher===
 
===Publisher===
Line 97: Line 101:  
Publisher configuration is similar in its simplicity to the Broker configuration. Make sure to '''Enable''' the Publisher and specify a '''Port''' for connection to a Broker. If you plan on using the router's Broker, specify the same port as the one in the Broker Settings section. '''Hostname''' is the Broker's host name or IP address. If you're using the router's Broker, specify your router's LAN IP address. '''Username''' and '''Password''' are optional and depend on the type of security (if any) that the Broker uses. In image below is presented how configure RUT9xx routers:
 
Publisher configuration is similar in its simplicity to the Broker configuration. Make sure to '''Enable''' the Publisher and specify a '''Port''' for connection to a Broker. If you plan on using the router's Broker, specify the same port as the one in the Broker Settings section. '''Hostname''' is the Broker's host name or IP address. If you're using the router's Broker, specify your router's LAN IP address. '''Username''' and '''Password''' are optional and depend on the type of security (if any) that the Broker uses. In image below is presented how configure RUT9xx routers:
   −
[[Image:Configuration examples mqtt publisher.png]]
+
[[Image:Configuration examples mqtt publisher.png|border|class=tlt-border]]
       
Configuration for a TRB14x devices and a RUTXxx routers looks like this:
 
Configuration for a TRB14x devices and a RUTXxx routers looks like this:
   −
[[Image:Configuration examples mqtt publisher_new_design.png.png]]
+
[[Image:Configuration examples mqtt publisher_new_design.png.png|border|class=tlt-border]]
    
<b>NOTE</b>: If you configuring a TRB14x devices, it's default hostname is 192.168.2.1.
 
<b>NOTE</b>: If you configuring a TRB14x devices, it's default hostname is 192.168.2.1.
Line 117: Line 121:  
==Subscribing and Publishing==
 
==Subscribing and Publishing==
   −
Now you can use set up Brokers and Clients on your PC. In order to Publish commands and Subscribe to topics on a TRB14x devices and RUT routers, you'll need to know the device's '''Serial Number''' and '''TYPE'''. For  TRB14x device's you'll need to use type : '''device''' and for RUT router's you'll need to use type: '''router'''. Router's serial number you can find in the '''Status → Device''' section of the router's WebUI. For TRB14x devices serial number you can find in the '''Status → System''' section of the device WebUI. Or you can subscribe to the topic '''<TYPE>/id''' and publish the message '''id''' to the topic '''<TYPE>/get'''. To do so, enter these commands in separate Terminal windows:
+
Now you can use set up Brokers and Clients on your PC. In order to Publish commands and Subscribe to topics on a TRB series devices and RUT routers, you'll need to know the device's '''Serial Number''' and '''TYPE'''. For  TRB series device's you'll need to use type : '''device''' and for RUT router's you'll need to use type: '''router'''. Router's serial number you can find in the '''Status → Device''' section of the router's WebUI. For TRB series devices serial number you can find in the '''Status → System''' section of the device WebUI. Or you can subscribe to the topic '''<TYPE>/id''' and publish the message '''id''' to the topic '''<TYPE>/get'''. To do so, enter these commands in separate Terminal windows:
    
'''Subscribe:'''
 
'''Subscribe:'''
Line 127: Line 131:  
In image below is presented example of how to get RUT router serial number:
 
In image below is presented example of how to get RUT router serial number:
   −
[[Image:Configuration examples mqtt router id v7.png]]
+
[[Image:Configuration examples mqtt router id v7.png|border|class=tlt-border]]
     

Navigation menu