Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. OpenHAB
  4. MySensors Ethernet Gateway goes to OFFLINE state

MySensors Ethernet Gateway goes to OFFLINE state

Scheduled Pinned Locked Moved OpenHAB
86 Posts 6 Posters 29.1k Views 6 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • pentti12P Offline
    pentti12P Offline
    pentti12
    wrote on last edited by
    #40

    Openhab2 detected things automatically, I don't use my own. Here is the sensor node monitor listing:

    B´AÚXStarting sensor (RNNNA-, 2.0.0)
    TSM:INIT
    TSM:RADIO:OK
    TSP:ASSIGNID:OK (ID=9)
    TSM:FPAR
    TSP:MSG:SEND 9-9-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 9-9-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSM:FPAR
    TSP:MSG:SEND 9-9-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
    TSP:MSG:READ 0-0-9 s=255,c=3,t=8,pt=1,l=1,sg=0:0
    TSP:MSG:FPAR RES (ID=0, dist=0)
    TSP:MSG:PAR OK (ID=0, dist=1)
    TSM:FPAR:OK
    TSM:ID
    TSM:CHKID:OK (ID=9)
    TSM:UPL
    TSP:PING:SEND (dest=0)
    TSP:MSG:SEND 9-9-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
    TSP:MSG:READ 0-0-9 s=255,c=3,t=25,pt=1,l=1,sg=0:1
    TSP:MSG:PONG RECV (hops=1)
    TSP:CHKUPL:OK
    TSM:UPL:OK
    TSM:READY
    TSP:MSG:SEND 9-9-0-0 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=ok:0100
    !TSP:MSG:SEND 9-9-0-0 s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=fail:2.0.0
    TSP:MSG:SEND 9-9-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,ft=1,st=ok:0
    TSP:MSG:SEND 9-9-0-0 s=255,c=3,t=11,pt=0,l=10,sg=0,ft=0,st=ok:My Bedroom
    TSP:MSG:SEND 9-9-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=ok:1.0
    TSP:MSG:SEND 9-9-0-0 s=10,c=0,t=7,pt=0,l=0,sg=0,ft=0,st=ok:
    TSP:MSG:SEND 9-9-0-0 s=11,c=0,t=6,pt=0,l=0,sg=0,ft=0,st=ok:
    TSP:MSG:SEND 9-9-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,ft=0,st=ok:
    Request registration...
    TSP:MSG:SEND 9-9-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=ok:2
    TSP:MSG:READ 0-0-9 s=255,c=3,t=27,pt=1,l=1,sg=0:1
    Node registration=1
    Init complete, id=9, parent=0, distance=1, registration=1
    !TSP:MSG:SEND 9-9-0-0 s=11,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=fail:21.8
    T: 21.80
    TSP:MSG:SEND 9-9-0-0 s=10,c=1,t=1,pt=7,l=5,sg=0,ft=1,st=ok:24.2
    H: 24.20
    TSP:MSG:SEND 9-9-0-0 s=10,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=ok:24.6
    H: 24.60
    TSP:MSG:SEND 9-9-0-0 s=11,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=ok:21.9
    T: 21.90
    TSP:MSG:SEND 9-9-0-0 s=10,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=ok:25.4
    H: 25.40
    TSP:MSG:SEND 9-9-0-0 s=11,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=ok:22.0
    T: 22.00
    !TSP:MSG:SEND 9-9-0-0 s=10,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=fail:25.3
    H: 25.30

    It is operating normally and it send both temperature and humidity values.

    jogantJ 1 Reply Last reply
    0
    • pentti12P pentti12

      Openhab2 detected things automatically, I don't use my own. Here is the sensor node monitor listing:

      B´AÚXStarting sensor (RNNNA-, 2.0.0)
      TSM:INIT
      TSM:RADIO:OK
      TSP:ASSIGNID:OK (ID=9)
      TSM:FPAR
      TSP:MSG:SEND 9-9-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
      TSM:FPAR
      TSP:MSG:SEND 9-9-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
      TSM:FPAR
      TSP:MSG:SEND 9-9-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
      TSP:MSG:READ 0-0-9 s=255,c=3,t=8,pt=1,l=1,sg=0:0
      TSP:MSG:FPAR RES (ID=0, dist=0)
      TSP:MSG:PAR OK (ID=0, dist=1)
      TSM:FPAR:OK
      TSM:ID
      TSM:CHKID:OK (ID=9)
      TSM:UPL
      TSP:PING:SEND (dest=0)
      TSP:MSG:SEND 9-9-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
      TSP:MSG:READ 0-0-9 s=255,c=3,t=25,pt=1,l=1,sg=0:1
      TSP:MSG:PONG RECV (hops=1)
      TSP:CHKUPL:OK
      TSM:UPL:OK
      TSM:READY
      TSP:MSG:SEND 9-9-0-0 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=ok:0100
      !TSP:MSG:SEND 9-9-0-0 s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=fail:2.0.0
      TSP:MSG:SEND 9-9-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,ft=1,st=ok:0
      TSP:MSG:SEND 9-9-0-0 s=255,c=3,t=11,pt=0,l=10,sg=0,ft=0,st=ok:My Bedroom
      TSP:MSG:SEND 9-9-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=ok:1.0
      TSP:MSG:SEND 9-9-0-0 s=10,c=0,t=7,pt=0,l=0,sg=0,ft=0,st=ok:
      TSP:MSG:SEND 9-9-0-0 s=11,c=0,t=6,pt=0,l=0,sg=0,ft=0,st=ok:
      TSP:MSG:SEND 9-9-0-0 s=1,c=0,t=3,pt=0,l=0,sg=0,ft=0,st=ok:
      Request registration...
      TSP:MSG:SEND 9-9-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=ok:2
      TSP:MSG:READ 0-0-9 s=255,c=3,t=27,pt=1,l=1,sg=0:1
      Node registration=1
      Init complete, id=9, parent=0, distance=1, registration=1
      !TSP:MSG:SEND 9-9-0-0 s=11,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=fail:21.8
      T: 21.80
      TSP:MSG:SEND 9-9-0-0 s=10,c=1,t=1,pt=7,l=5,sg=0,ft=1,st=ok:24.2
      H: 24.20
      TSP:MSG:SEND 9-9-0-0 s=10,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=ok:24.6
      H: 24.60
      TSP:MSG:SEND 9-9-0-0 s=11,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=ok:21.9
      T: 21.90
      TSP:MSG:SEND 9-9-0-0 s=10,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=ok:25.4
      H: 25.40
      TSP:MSG:SEND 9-9-0-0 s=11,c=1,t=0,pt=7,l=5,sg=0,ft=0,st=ok:22.0
      T: 22.00
      !TSP:MSG:SEND 9-9-0-0 s=10,c=1,t=1,pt=7,l=5,sg=0,ft=0,st=fail:25.3
      H: 25.30

      It is operating normally and it send both temperature and humidity values.

      jogantJ Offline
      jogantJ Offline
      jogant
      wrote on last edited by
      #41

      @pentti12
      everytime you see a SEND message in the node debug log, you should also see a READ message in your gateway. And than you should also see a SEND message to the controller and a message coming in in your openhab binding.
      So would you mind start logging all three stages of the message at the same time as I showed several posts before? If you don't see incoming messages in the binding log there is something wrong with your ethernet connection. Otherwise it's only guessing whats wrong.

      1 Reply Last reply
      0
      • pentti12P Offline
        pentti12P Offline
        pentti12
        wrote on last edited by
        #42

        Before I set up full logging environment, I wonder why I cannot get connection when I enter following command on the terminal window of OH2 server (Pine64):

        telnet localhost 5003

        unable to connect to remote host

        jogantJ 1 Reply Last reply
        0
        • JicJ Offline
          JicJ Offline
          Jic
          wrote on last edited by
          #43

          I didn't see in your node log an ip assignament. Are your sketch configured to Ethernet Gateway?

          I think you should use some parameters:

          // Enable MY_IP_ADDRESS here if you want a static ip address (no DHCP)
          #define MY_IP_ADDRESS 192,168,178,87

          // If using static ip you need to define Gateway and Subnet address as well
          #define MY_IP_GATEWAY_ADDRESS 192,168,178,1
          #define MY_IP_SUBNET_ADDRESS 255,255,255,0

          // MQTT broker ip address or url. Define one or the other.
          //#define MY_CONTROLLER_URL_ADDRESS "m20.cloudmqtt.com"
          #define MY_CONTROLLER_IP_ADDRESS 192, 168, 178, 68

          I am not sure how to use Ethernet Gateway, perhaps this example help you

          https://github.com/mysensors/MySensors/blob/development/examples/GatewayW5100MQTTClient/GatewayW5100MQTTClient.ino

          1 Reply Last reply
          0
          • pentti12P Offline
            pentti12P Offline
            pentti12
            wrote on last edited by
            #44

            I am not using the MQTT gateway, I am using standard GatewayW5100.ino, which has correct IP-settings:

            #define MY_IP_ADDRESS 192,168,1,201 // If this is disabled, DHCP is used to retrieve address
            // Renewal period if using DHCP
            //#define MY_IP_RENEWAL_INTERVAL 60000
            // The port to keep open on node server mode / or port to contact in client mode
            #define MY_PORT 5003

            // Controller ip address. Enables client mode (default is "server" mode).
            // Also enable this if MY_USE_UDP is used and you want sensor data sent somewhere.
            #define MY_CONTROLLER_IP_ADDRESS 192, 168, 1, 185

            // The MAC address can be anything you want but should be unique on your network.
            // Newer boards have a MAC address printed on the underside of the PCB, which you can (optionally) use.
            // Note that most of the Ardunio examples use "DEAD BEEF FEED" for the MAC address.
            #define MY_MAC_ADDRESS 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED

            And MySensors Ethernet Gateway is detected by Advanced IP Scanner and I can ping it and so on..

            JicJ 1 Reply Last reply
            0
            • pentti12P pentti12

              Before I set up full logging environment, I wonder why I cannot get connection when I enter following command on the terminal window of OH2 server (Pine64):

              telnet localhost 5003

              unable to connect to remote host

              jogantJ Offline
              jogantJ Offline
              jogant
              wrote on last edited by
              #45

              @pentti12

              the gateway is the server. You should succeed with telnet <ip_of_mysensors_gw> 5003

              1 Reply Last reply
              0
              • pentti12P pentti12

                I am not using the MQTT gateway, I am using standard GatewayW5100.ino, which has correct IP-settings:

                #define MY_IP_ADDRESS 192,168,1,201 // If this is disabled, DHCP is used to retrieve address
                // Renewal period if using DHCP
                //#define MY_IP_RENEWAL_INTERVAL 60000
                // The port to keep open on node server mode / or port to contact in client mode
                #define MY_PORT 5003

                // Controller ip address. Enables client mode (default is "server" mode).
                // Also enable this if MY_USE_UDP is used and you want sensor data sent somewhere.
                #define MY_CONTROLLER_IP_ADDRESS 192, 168, 1, 185

                // The MAC address can be anything you want but should be unique on your network.
                // Newer boards have a MAC address printed on the underside of the PCB, which you can (optionally) use.
                // Note that most of the Ardunio examples use "DEAD BEEF FEED" for the MAC address.
                #define MY_MAC_ADDRESS 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED

                And MySensors Ethernet Gateway is detected by Advanced IP Scanner and I can ping it and so on..

                JicJ Offline
                JicJ Offline
                Jic
                wrote on last edited by
                #46

                @pentti12

                Can you start manually your gateway with -d option to see the log?

                You should see there if your gateway its receiving messages. If you are receiving message then, the problem should be in the OH2

                jogantJ 1 Reply Last reply
                0
                • JicJ Jic

                  @pentti12

                  Can you start manually your gateway with -d option to see the log?

                  You should see there if your gateway its receiving messages. If you are receiving message then, the problem should be in the OH2

                  jogantJ Offline
                  jogantJ Offline
                  jogant
                  wrote on last edited by
                  #47

                  @Jic
                  what do you mean with "start gateway manually -d option"? My gateway is a standalone device, ethernet connector on one side, nrf24 on the other, arduino in the middle connecting the other two parts.

                  1 Reply Last reply
                  0
                  • pentti12P Offline
                    pentti12P Offline
                    pentti12
                    wrote on last edited by
                    #48

                    Wait a minute! I think that from the original GatewayW5100 sketch there were missing the IP Gateway and subnet addresses!

                    So I will recompile sketch and test again.

                    jogantJ 1 Reply Last reply
                    0
                    • pentti12P pentti12

                      Wait a minute! I think that from the original GatewayW5100 sketch there were missing the IP Gateway and subnet addresses!

                      So I will recompile sketch and test again.

                      jogantJ Offline
                      jogantJ Offline
                      jogant
                      wrote on last edited by jogant
                      #49

                      @pentti12

                      slowly my image gets complete. Online/Offline status is resolved by OH2 binding via polling during initialization. Value updates are sent spontaneous by the gateway via callback, afair. So the gateway needs to know the address and mask of the controller to send values.

                      1 Reply Last reply
                      0
                      • pentti12P Offline
                        pentti12P Offline
                        pentti12
                        wrote on last edited by
                        #50

                        No help after new sketch loaded into GatewayW5100. OH2 log informs the same result:

                        14:49:09.484 [DEBUG] [al.protocol.ip.MySensorsIpConnection] - Bridge is connected, connection skipped

                        I will take a break - to be continued on next day...

                        jogantJ 1 Reply Last reply
                        0
                        • pentti12P pentti12

                          No help after new sketch loaded into GatewayW5100. OH2 log informs the same result:

                          14:49:09.484 [DEBUG] [al.protocol.ip.MySensorsIpConnection] - Bridge is connected, connection skipped

                          I will take a break - to be continued on next day...

                          jogantJ Offline
                          jogantJ Offline
                          jogant
                          wrote on last edited by
                          #51

                          @pentti12
                          "connection skipped" message occurs frequently, usually every 10 seconds. That is normal and ok. But you should see messages from the gateway everytime the sensor nodes send updates, except the value is the same as before.

                          1 Reply Last reply
                          0
                          • pentti12P Offline
                            pentti12P Offline
                            pentti12
                            wrote on last edited by
                            #52

                            I connected my laptop into Ethernet Gateway. Here is a sample of monitoring listing:

                            0;255;3;0;9;TSP:MSG:READ 9-9-0 s=0,c=1,t=0,pt=7,l=5,sg=0:30.4
                            0;255;3;0;9;TSP:MSG:READ 9-9-0 s=11,c=1,t=0,pt=7,l=5,sg=0:21.9
                            0;255;3;0;9;TSP:MSG:READ 9-9-0 s=0,c=1,t=0,pt=7,l=5,sg=0:30.5
                            0;255;3;0;9;TSP:MSG:READ 9-9-0 s=11,c=1,t=0,pt=7,l=5,sg=0:22.0
                            0;255;3;0;9;TSP:MSG:READ 9-9-0 s=11,c=1,t=0,pt=7,l=5,sg=0:21.9
                            0;255;3;0;9;TSP:SANCHK:OK
                            0;255;3;0;9;TSP:MSG:READ 9-9-0 s=0,c=1,t=0,pt=7,l=5,sg=0:30.6
                            0;255;3;0;9;TSP:MSG:READ 9-9-0 s=0,c=1,t=0,pt=7,l=5,sg=0:30.4
                            0;255;3;0;9;TSP:MSG:READ 9-9-0 s=0,c=1,t=0,pt=7,l=5,sg=0:30.5
                            0;255;3;0;9;TSP:MSG:READ 9-9-0 s=0,c=1,t=0,pt=7,l=5,sg=0:30.4
                            0;255;3;0;9;TSP:MSG:READ 9-9-0 s=0,c=1,t=0,pt=7,l=5,sg=0:30.5
                            0;255;3;0;9;TSP:SANCHK:OK
                            0;255;3;0;9;TSP:MSG:READ 9-9-0 s=0,c=1,t=0,pt=7,l=5,sg=0:30.5
                            0;255;3;0;9;TSP:MSG:READ 9-9-0 s=0,c=1,t=0,pt=7,l=5,sg=0:30.6
                            0;255;3;0;9;TSP:MSG:READ 9-9-0 s=0,c=1,t=0,pt=7,l=5,sg=0:30.7
                            0;255;3;0;9;TSP:SANCHK:OK
                            0;255;3;0;9;TSP:MSG:READ 9-9-0 s=0,c=1,t=0,pt=7,l=5,sg=0:30.7
                            0;255;3;0;9;TSP:MSG:READ 9-9-0 s=11,c=1,t=0,pt=7,l=5,sg=0:21.8
                            0;255;3;0;9;TSP:MSG:READ 9-9-0 s=0,c=1,t=0,pt=7,l=5,sg=0:30.8

                            So I think that this is OK, when I have only one sensor node alive.

                            But still, how I shall modify my Arduino Gateway sketch in order to get OH2 server show temperature and humidity values?

                            JicJ 1 Reply Last reply
                            0
                            • pentti12P pentti12

                              I connected my laptop into Ethernet Gateway. Here is a sample of monitoring listing:

                              0;255;3;0;9;TSP:MSG:READ 9-9-0 s=0,c=1,t=0,pt=7,l=5,sg=0:30.4
                              0;255;3;0;9;TSP:MSG:READ 9-9-0 s=11,c=1,t=0,pt=7,l=5,sg=0:21.9
                              0;255;3;0;9;TSP:MSG:READ 9-9-0 s=0,c=1,t=0,pt=7,l=5,sg=0:30.5
                              0;255;3;0;9;TSP:MSG:READ 9-9-0 s=11,c=1,t=0,pt=7,l=5,sg=0:22.0
                              0;255;3;0;9;TSP:MSG:READ 9-9-0 s=11,c=1,t=0,pt=7,l=5,sg=0:21.9
                              0;255;3;0;9;TSP:SANCHK:OK
                              0;255;3;0;9;TSP:MSG:READ 9-9-0 s=0,c=1,t=0,pt=7,l=5,sg=0:30.6
                              0;255;3;0;9;TSP:MSG:READ 9-9-0 s=0,c=1,t=0,pt=7,l=5,sg=0:30.4
                              0;255;3;0;9;TSP:MSG:READ 9-9-0 s=0,c=1,t=0,pt=7,l=5,sg=0:30.5
                              0;255;3;0;9;TSP:MSG:READ 9-9-0 s=0,c=1,t=0,pt=7,l=5,sg=0:30.4
                              0;255;3;0;9;TSP:MSG:READ 9-9-0 s=0,c=1,t=0,pt=7,l=5,sg=0:30.5
                              0;255;3;0;9;TSP:SANCHK:OK
                              0;255;3;0;9;TSP:MSG:READ 9-9-0 s=0,c=1,t=0,pt=7,l=5,sg=0:30.5
                              0;255;3;0;9;TSP:MSG:READ 9-9-0 s=0,c=1,t=0,pt=7,l=5,sg=0:30.6
                              0;255;3;0;9;TSP:MSG:READ 9-9-0 s=0,c=1,t=0,pt=7,l=5,sg=0:30.7
                              0;255;3;0;9;TSP:SANCHK:OK
                              0;255;3;0;9;TSP:MSG:READ 9-9-0 s=0,c=1,t=0,pt=7,l=5,sg=0:30.7
                              0;255;3;0;9;TSP:MSG:READ 9-9-0 s=11,c=1,t=0,pt=7,l=5,sg=0:21.8
                              0;255;3;0;9;TSP:MSG:READ 9-9-0 s=0,c=1,t=0,pt=7,l=5,sg=0:30.8

                              So I think that this is OK, when I have only one sensor node alive.

                              But still, how I shall modify my Arduino Gateway sketch in order to get OH2 server show temperature and humidity values?

                              JicJ Offline
                              JicJ Offline
                              Jic
                              wrote on last edited by
                              #53

                              @pentti12

                              Could be permission problem?
                              Can you connect your gateway on rpi and execute

                              ls -l /dev/tty*
                              

                              I think you are using a ethernet gateway skecth, normaly it's should be mounted in /dev/ttyACM0

                              Have you already execute

                              sudo usermod -a -G dialout openhab
                              

                              Be sure that you have the las binding
                              https://github.com/tobof/openhab2-addons/blob/MySensors/addons/binding/org.openhab.binding.mysensors/target/org.openhab.binding.mysensors-2.0.0-SNAPSHOT.jar
                              and your openhab2 is updated.

                              1 Reply Last reply
                              0
                              • pentti12P Offline
                                pentti12P Offline
                                pentti12
                                wrote on last edited by
                                #54

                                I am running the Ethernet GatewayW5100 software on Arduino UNO. I don't have rpi, I have installed OH2 on Pine64. It is running debian Jessie and it is uptodate. Also the latest mysensors binding is in use. So what to next?

                                JicJ 1 Reply Last reply
                                0
                                • pentti12P pentti12

                                  I am running the Ethernet GatewayW5100 software on Arduino UNO. I don't have rpi, I have installed OH2 on Pine64. It is running debian Jessie and it is uptodate. Also the latest mysensors binding is in use. So what to next?

                                  JicJ Offline
                                  JicJ Offline
                                  Jic
                                  wrote on last edited by Jic
                                  #55

                                  @pentti12 I am confused.

                                  Don't you need to connect your Ethernet GatewayW5100 by USB into your pine64?

                                  1 Reply Last reply
                                  0
                                  • pentti12P Offline
                                    pentti12P Offline
                                    pentti12
                                    wrote on last edited by
                                    #56

                                    OK, now Gateway is connected via USB into Pine64 and it is shown as /dev/ttyUSB0.

                                    JicJ 1 Reply Last reply
                                    0
                                    • pentti12P pentti12

                                      OK, now Gateway is connected via USB into Pine64 and it is shown as /dev/ttyUSB0.

                                      JicJ Offline
                                      JicJ Offline
                                      Jic
                                      wrote on last edited by
                                      #57

                                      @pentti12 said:

                                      /dev/ttyUSB0

                                      Now, you need to configure your binding in your OH2?
                                      https://github.com/tobof/openhab2-addons/wiki/Configuration

                                      1 Reply Last reply
                                      0
                                      • pentti12P Offline
                                        pentti12P Offline
                                        pentti12
                                        wrote on last edited by
                                        #58

                                        I added into demo.things following line:

                                        Bridge mysensors:bridge-ser:gateway [ serialPort="dev/ttyUSB0", sendDelay=200 ] {

                                        In OH2 MySensor Serial Gateway stays OFFLINE state now. And also the Philips HUE things went OFFLINE state even if they have their own Bridge.

                                        Looks bad!

                                        JicJ 1 Reply Last reply
                                        0
                                        • pentti12P pentti12

                                          I added into demo.things following line:

                                          Bridge mysensors:bridge-ser:gateway [ serialPort="dev/ttyUSB0", sendDelay=200 ] {

                                          In OH2 MySensor Serial Gateway stays OFFLINE state now. And also the Philips HUE things went OFFLINE state even if they have their own Bridge.

                                          Looks bad!

                                          JicJ Offline
                                          JicJ Offline
                                          Jic
                                          wrote on last edited by
                                          #59

                                          @pentti12 This configuration is for a Serial Gateway connected to GPIO, I think.

                                          You should use this one

                                          Bridge mysensors:bridge-eth:gateway [ ipAddress="127.0.0.1", tcpPort=5003, sendDelay=200 ] {
                                               /** define things connected to that bridge here */
                                            }
                                          

                                          But at this point I am really confused, I don't know how Ethernet Gateway works. I am not sure when I can help you.

                                          Do you need configure you ESSID and password of your WIFI in your sketch? or the ethernet Gateway geneate their own network?

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          17

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          Posts


                                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular