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. OpenHardware.io
  3. 💬 Sensebender Gateway

💬 Sensebender Gateway

Scheduled Pinned Locked Moved OpenHardware.io
mysensorsgatewaysamd
382 Posts 59 Posters 151.3k Views 53 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.
  • pepsonP Offline
    pepsonP Offline
    pepson
    wrote on last edited by
    #364

    Hi
    I compiled and write to gateway this programmm. Then i connected it to my RPI with Hassio (Home Assistant). In logs on home assistant still show me info: Gateway /dev/serial/by-id/usb-MySensors.org_Sensebender_GW_6A153443514D355934202020FF10182D-if00 not ready after 15.0 secs so continuing with setup

    but after run Home Assistant gateway works ok. I send info mto developer Home Assistant ans she not see any bugs....
    How i can resolved this problem ?

    1 Reply Last reply
    0
    • pepsonP Offline
      pepsonP Offline
      pepson
      wrote on last edited by pepson
      #365

      And please help me how i can compile it as gateway Ethernet with module W5100.

      Only add to sketch:
      // Enable gateway ethernet module type
      #define MY_GATEWAY_W5100

      // Enable to UDP
      //#define MY_USE_UDP

      //#define MY_IP_ADDRESS 192,168,3,160 // wpisz adres ip bramki
      // 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 //wpisz numer portu bramki

      // 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, 178, 254

      // 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 0xDC, 0xAE, 0xB2, 0x3F, 0xFF, 0xDC

      ???

      1 Reply Last reply
      0
      • pepsonP Offline
        pepsonP Offline
        pepson
        wrote on last edited by
        #366

        When try compilation with this W5100 i get error:

        Opcje projektu zmienione, przeładuj całość
        In file included from C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/MySensors.h:208:0,

                     from C:\Users\Piotrek\Desktop\SensebenderGatewayETHERNET\SensebenderGatewayETHERNET.ino:111:
        

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:74:1: error: 'EthernetServer' does not name a type

        EthernetServer _ethernetServer(_ethernetGatewayPort);

        ^~~~~~~~~~~~~~

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:89:8: error: 'EthernetClient' does not name a type

        static EthernetClient client = EthernetClient();

            ^~~~~~~~~~~~~~
        

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp: In function 'bool gatewayTransportInit()':

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:149:7: error: 'Ethernet' was not declared in this scope

        if (!Ethernet.begin(_ethernetGatewayMAC)) {

           ^~~~~~~~
        

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:149:7: note: suggested alternative: '_ethernetMsg'

        if (!Ethernet.begin(_ethernetGatewayMAC)) {

           ^~~~~~~~
        
           _ethernetMsg
        

        In file included from C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/MySensors.h:49:0,

                     from C:\Users\Piotrek\Desktop\SensebenderGatewayETHERNET\SensebenderGatewayETHERNET.ino:111:
        

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:156:16: error: 'Ethernet' was not declared in this scope

                    Ethernet.localIP()[0],
        
                    ^
        

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/MyConfig.h:1815:48: note: in definition of macro 'DEBUG_OUTPUT'

        #define DEBUG_OUTPUT(x,...) hwDebugPrint(x, ##VA_ARGS) //!< debug

                                                    ^~~~~~~~~~~
        

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:155:2: note: in expansion of macro 'GATEWAY_DEBUG'

        GATEWAY_DEBUG(PSTR("GWT:TIN:IP=%" PRIu8 ".%" PRIu8 ".%" PRIu8 ".%" PRIu8 "\n"),

        ^~~~~~~~~~~~~

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:156:16: note: suggested alternative: '_ethernetMsg'

                    Ethernet.localIP()[0],
        
                    ^
        

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/MyConfig.h:1815:48: note: in definition of macro 'DEBUG_OUTPUT'

        #define DEBUG_OUTPUT(x,...) hwDebugPrint(x, ##VA_ARGS) //!< debug

                                                    ^~~~~~~~~~~
        

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:155:2: note: in expansion of macro 'GATEWAY_DEBUG'

        GATEWAY_DEBUG(PSTR("GWT:TIN:IP=%" PRIu8 ".%" PRIu8 ".%" PRIu8 ".%" PRIu8 "\n"),

        ^~~~~~~~~~~~~

        In file included from C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/MySensors.h:208:0,

                     from C:\Users\Piotrek\Desktop\SensebenderGatewayETHERNET\SensebenderGatewayETHERNET.ino:111:
        

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:189:2: error: '_ethernetServer' was not declared in this scope

        _ethernetServer.begin();

        ^~~~~~~~~~~~~~~

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:189:2: note: suggested alternative: '_ethernetMsg'

        _ethernetServer.begin();

        ^~~~~~~~~~~~~~~

        _ethernetMsg

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp: In function 'bool gatewayTransportSend(MyMessage&)':

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:246:11: error: '_ethernetServer' was not declared in this scope

        nbytes = _ethernetServer.write(_ethernetMsg);

               ^~~~~~~~~~~~~~~
        

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:246:11: note: suggested alternative: '_ethernetMsg'

        nbytes = _ethernetServer.write(_ethernetMsg);

               ^~~~~~~~~~~~~~~
        
               _ethernetMsg
        

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp: In function 'bool _readFromClient()':

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:289:9: error: 'client' was not declared in this scope

        while (client.connected() && client.available()) {

             ^~~~~~
        

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:289:9: note: suggested alternative: 'Print'

        while (client.connected() && client.available()) {

             ^~~~~~
        
             Print
        

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp: In function 'bool gatewayTransportAvailable()':

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:409:2: error: 'EthernetClient' was not declared in this scope

        EthernetClient newclient = _ethernetServer.available();

        ^~~~~~~~~~~~~~

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:411:6: error: 'newclient' was not declared in this scope

        if (newclient) {

          ^~~~~~~~~
        

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:412:7: error: 'client' was not declared in this scope

        if (client != newclient) {

           ^~~~~~
        

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:412:7: note: suggested alternative: 'Print'

        if (client != newclient) {

           ^~~~~~
        
           Print
        

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:422:6: error: 'client' was not declared in this scope

        if (client) {

          ^~~~~~
        

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:422:6: note: suggested alternative: 'Print'

        if (client) {

          ^~~~~~
        
          Print
        

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp: In function 'void gatewayTransportRenewIP()':

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:463:6: error: 'Ethernet' was not declared in this scope

        if (Ethernet.maintain() & ~(0x06)) {

          ^~~~~~~~
        

        C:\Users\Piotrek\Documents\Arduino\libraries\MySensors/core/MyGatewayTransportEthernet.cpp:463:6: note: suggested alternative: '_ethernetMsg'

        if (Ethernet.maintain() & ~(0x06)) {

          ^~~~~~~~
        
          _ethernetMsg
        

        exit status 1
        Błąd kompilacji dla płytki Sensebender Gateway.

        What is a problem ?

        1 Reply Last reply
        0
        • pepsonP Offline
          pepsonP Offline
          pepson
          wrote on last edited by
          #367

          please help me....

          1 Reply Last reply
          0
          • pepsonP Offline
            pepsonP Offline
            pepson
            wrote on last edited by
            #368

            Hi
            Can anybody help me how compile sketch to this gateway to work as Ethernet Gateway...
            When i try compile i get the error:
            https://pastebin.com/BSQGsCgi

            and my sketch looks like:
            https://pastebin.com/R3vG076i

            tekkaT 1 Reply Last reply
            0
            • pepsonP pepson

              Hi
              Can anybody help me how compile sketch to this gateway to work as Ethernet Gateway...
              When i try compile i get the error:
              https://pastebin.com/BSQGsCgi

              and my sketch looks like:
              https://pastebin.com/R3vG076i

              tekkaT Offline
              tekkaT Offline
              tekka
              Admin
              wrote on last edited by
              #369

              @pepson Did you add

              #include <Ethernet.h>
              

              ?

              pepsonP 1 Reply Last reply
              2
              • tekkaT tekka

                @pepson Did you add

                #include <Ethernet.h>
                

                ?

                pepsonP Offline
                pepsonP Offline
                pepson
                wrote on last edited by
                #370

                @tekka
                No.... thanks i fixed it....:)

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Andreas Kräuchi
                  wrote on last edited by
                  #371

                  I just got my Sensebender Gateway and loaded the Sensebender Gateway Serial sketch. When I use the MYSController I get those wired infos...
                  Currently there is no other Snesor runing just the Sensebender Gateway with an RF24. Why does it see a new child and what are all thos "hu;hu;hu" errors?

                  0_1576828002699_6e42e2a3-f57c-472c-9b59-c30670be617a-image.png

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    Andreas Kräuchi
                    wrote on last edited by
                    #372

                    Ok solved it by adding:

                    #undef PRId8
                    #undef PRIi8
                    #undef PRIo8
                    #undef PRIu8
                    #undef PRIx8
                    #undef PRIX8
                    #undef PRIdLEAST8
                    #undef PRIiLEAST8
                    #undef PRIoLEAST8
                    #undef PRIuLEAST8
                    #undef PRIxLEAST8
                    #undef PRIXLEAST8
                    #undef PRIdFAST8
                    #undef PRIiFAST8
                    #undef PRIoFAST8
                    #undef PRIuFAST8
                    #undef PRIxFAST8
                    #undef PRIXFAST8
                    #define PRId8    "d"
                    #define PRIi8   "i"
                    #define PRIo8   "o"
                    #define PRIu8   "u"
                    #define PRIx8   "x"
                    #define PRIX8   "X"
                    #define PRIdLEAST8  "d"
                    #define PRIiLEAST8  "i"
                    #define PRIoLEAST8  "o"
                    #define PRIuLEAST8  "u"
                    #define PRIxLEAST8  "x"
                    #define PRIXLEAST8  "X"
                    #define PRIdFAST8 "d"
                    #define PRIiFAST8 "i"
                    #define PRIoFAST8 "o"
                    #define PRIuFAST8 "u"
                    #define PRIxFAST8 "x"
                    #define PRIXFAST8 "X"
                    
                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      andy5211d
                      wrote on last edited by
                      #373

                      Hello,

                      I have a similar issue with Sensebender Ethernet MQTT Gateway and MYSController. Can only connect to the gateway by serial from MYSController. The set-up is working correctly as best I can tell, and has several different MySensors in use. Has been working for a number of years. Only just discovered the MYSController software.

                      So the Controller only shows data in the MYSController Debug tab. Nothing in any of the others. NOTE in the screen grab below the Controller at 192.168.1.96 is not connected, there is no difference when it is other than the Gateway error (!GWT:RMQ:FAIL) is not shown. Anyone with any ides for me to pursue? Thanks.

                      62831d75-2036-447f-adee-1e8657841bd4-image.png

                      1 Reply Last reply
                      0
                      • bjornhallbergB Offline
                        bjornhallbergB Offline
                        bjornhallberg
                        Hero Member
                        wrote on last edited by
                        #374

                        As previously noted, Sensebender Gateway sketch from 2.3.2 with MySensors SAMD Boards 1.0.6 does not compile with Arduino SAMD Boards 1.8.9. Rolling back to Arduino SAMD Boards 1.8.8 or earlier version works.

                        1 Reply Last reply
                        0
                        • YoshuY Offline
                          YoshuY Offline
                          Yoshu
                          wrote on last edited by
                          #375

                          Does anyone have an idea about the sensebender gateway board not being recognised in windows 11? A new driver maybe or any other clues ?

                          1 Reply Last reply
                          0
                          • tbowmoT Offline
                            tbowmoT Offline
                            tbowmo
                            Admin
                            wrote on last edited by tbowmo
                            #376

                            Unfortunately I do not have any hardware compatible with win11, so can't test myself.. But if I remember right it should turn up as a generic cdc device..

                            Is there any info in the windows device manager?

                            YoshuY 1 Reply Last reply
                            0
                            • tbowmoT tbowmo

                              Unfortunately I do not have any hardware compatible with win11, so can't test myself.. But if I remember right it should turn up as a generic cdc device..

                              Is there any info in the windows device manager?

                              YoshuY Offline
                              YoshuY Offline
                              Yoshu
                              wrote on last edited by
                              #377

                              @tbowmo

                              Nothing new appears in device manager or the usual ding.

                              tbowmoT 1 Reply Last reply
                              0
                              • YoshuY Yoshu

                                @tbowmo

                                Nothing new appears in device manager or the usual ding.

                                tbowmoT Offline
                                tbowmoT Offline
                                tbowmo
                                Admin
                                wrote on last edited by
                                #378

                                @Yoshu Does the same device work on another machine, running win10 / linux?

                                1 Reply Last reply
                                0
                                • YoshuY Offline
                                  YoshuY Offline
                                  Yoshu
                                  wrote on last edited by
                                  #379

                                  I have not had the opportunity to try another machine yet. unfortunately I had only just given into the windows 11 upgrade messages days before deciding to set up my gateway.

                                  tbowmoT 1 Reply Last reply
                                  0
                                  • YoshuY Yoshu

                                    I have not had the opportunity to try another machine yet. unfortunately I had only just given into the windows 11 upgrade messages days before deciding to set up my gateway.

                                    tbowmoT Offline
                                    tbowmoT Offline
                                    tbowmo
                                    Admin
                                    wrote on last edited by
                                    #380

                                    @Yoshu you could boot linux off a usb, and check there..

                                    1 Reply Last reply
                                    0
                                    • YoshuY Offline
                                      YoshuY Offline
                                      Yoshu
                                      wrote on last edited by
                                      #381

                                      Sensebender ethernet gateway success with help.

                                      Was unable to connect sensebender to Windows 11.

                                      Using a suggesetions and assistance by tbowmo
                                      (you could boot linux off a usb, and check there..)

                                      I used an old rasberry pi with Arduino ide to connect and load the sketch, loaded
                                      Mysensors SAMD and Arduino SAMD board profiles, inital compile errors (clinent.h) but recified this with the help of comments by
                                      bjornhallberg (Sensebender Gateway sketch from 2.3.2 with MySensors SAMD Boards 1.0.6 does not compile with Arduino SAMD Boards 1.8.9. Rolling back to Arduino SAMD Boards 1.8.8).

                                      Used the standard ethernet gateway sketch that I am using with my unsecured nano ethernet gateway. Only changed the ip address and #define MY_RF24_CHANNEL to another channel for this second gateway.

                                      I have not setup signing yet, but that is my intention for my sensebender gateway now the basics are working.

                                      1 Reply Last reply
                                      0
                                      • M Offline
                                        M Offline
                                        maafkari4
                                        Banned
                                        wrote on last edited by
                                        #382

                                        I'll update the PDF once I get to my own computer (which should be Sunday evening)

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


                                        11

                                        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