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.2k 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.
  • tbowmoT Offline
    tbowmoT Offline
    tbowmo
    Admin
    wrote on last edited by
    #128

    @Viktor-Zeman

    It only support wired ethernet, and USB. For wifi we have ESP8266 gateways instead.

    There are example sketches available in mysensors (see SensebenderGatewaySerial, or just plain GatewayW5100 would work if it's just ethernet module that you want to use)

    1 Reply Last reply
    0
    • tbowmoT tbowmo

      We are preparing a new release of the board definitions for our samd. Which fixes the issues with arduino samd 1.6.11.

      It should also contain a driver .inf file for Windows 7/8, for those that needs it (it's not needed on Linux, mac or Windows 10). I had completely forgotten that windows usually needs this inf file to operate correct (I have been using Linux the last 17 years for all my private projects)

      I hope the package will be out tomorrow (sunday) , as I just need to do a couple of tests to verify things.

      D Offline
      D Offline
      Disca
      wrote on last edited by
      #129

      @tbowmo Great, took a an hour or two to work out what was going on. Not used MySensors before so presumed it was something I was doing wrong. I have an RFM69HW soldered on the sensebender GW now with the serial sketch loaded and it appears to be working!

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

        for info, a new Mysensors SAMD board definition file have been released (1.0.4)

        Includes the following changes:
        Arduino SAMD 1.6.11 supported (the latest arduino board definitions for SAMD)
        Various bits and pieces regarding pin definitions are fixed (a couple of missing defines)
        Windows driver .inf file added.

        D M 3 Replies Last reply
        1
        • tbowmoT tbowmo

          for info, a new Mysensors SAMD board definition file have been released (1.0.4)

          Includes the following changes:
          Arduino SAMD 1.6.11 supported (the latest arduino board definitions for SAMD)
          Various bits and pieces regarding pin definitions are fixed (a couple of missing defines)
          Windows driver .inf file added.

          D Offline
          D Offline
          Disca
          wrote on last edited by
          #131

          @tbowmo Compiles fine now with 1.0.4, not convinced the drivers are being automatically picked up though. I can force install them by selecting the inf but presumably you want it automatic when someone plugs in the gateway?

          I notice in the arduino SAMD package they have a post-install.bat to seemingly install the inf file - possibly needed?

          It could also be that i've just messed things up with my manual driver install stuff yesterday. I'm on Windows 7 by the way.

          1 Reply Last reply
          0
          • tbowmoT tbowmo

            for info, a new Mysensors SAMD board definition file have been released (1.0.4)

            Includes the following changes:
            Arduino SAMD 1.6.11 supported (the latest arduino board definitions for SAMD)
            Various bits and pieces regarding pin definitions are fixed (a couple of missing defines)
            Windows driver .inf file added.

            D Offline
            D Offline
            Disca
            wrote on last edited by
            #132

            @tbowmo Also, I notice on Linux (Raspberry Pi 3 running Debian) the device appears as an ACM device rather than the usual TTY device that some might expect. It works fine though so no issues but may confuse alot of people - worth making a note somewhere.

            1 Reply Last reply
            0
            • tbowmoT tbowmo

              for info, a new Mysensors SAMD board definition file have been released (1.0.4)

              Includes the following changes:
              Arduino SAMD 1.6.11 supported (the latest arduino board definitions for SAMD)
              Various bits and pieces regarding pin definitions are fixed (a couple of missing defines)
              Windows driver .inf file added.

              M Offline
              M Offline
              MLs
              wrote on last edited by
              #133

              @tbowmo

              (for info, a new Mysensors SAMD board definition file have been released (1.0.4))

              Where?

              1 Reply Last reply
              0
              • F Offline
                F Offline
                Fabien
                wrote on last edited by
                #134

                @MLs reload board definition from IDE

                I have a little annoying bug : I can't reset de gateway. When resetting, I loose communication with my computer (linux) same after loading a new sketch (last version with IDE 1.8.1 and def 1.0.4))

                [13727.746445] usb 1-1: new full-speed USB device number 9 using xhci_hcd
                [13727.892970] usb 1-1: New USB device found, idVendor=1209, idProduct=6949
                [13727.892974] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
                [13727.892977] usb 1-1: Product: Sensebender GW
                [13727.892980] usb 1-1: Manufacturer: MySensors.org
                [13727.895690] cdc_acm 1-1:1.0: ttyACM1: USB ACM device
                [13749.066589] usb 1-1: USB disconnect, device number 9
                

                So I can't check debug messages from init.

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

                  @MLs

                  Check out the setup instructions here

                  and perhaps this

                  M 1 Reply Last reply
                  1
                  • tbowmoT Offline
                    tbowmoT Offline
                    tbowmo
                    Admin
                    wrote on last edited by
                    #136

                    @Fabien

                    Are you using it as an ethernet gw, or standard serial gw? If serial GW, then the gateway waits until something connects to the serial device

                    The ethernet gw doesn't wait for something to connect. But you can hack the core, change hwInit() function in MyHwSAMD.cpp:

                    original

                    void hwInit()
                    {
                            MY_SERIALDEVICE.begin(MY_BAUD_RATE);
                    #if defined(MY_GATEWAY_SERIAL)
                            while (!MY_SERIALDEVICE) {}
                    #endif
                            Wire.begin();
                    }
                    

                    modify to this

                    void hwInit()
                    {
                            MY_SERIALDEVICE.begin(MY_BAUD_RATE);
                            while (!MY_SERIALDEVICE) {}
                            Wire.begin();
                    }
                    

                    It will make the gateway halt the initialization until something connects to the USB device.

                    Be advised, that if you don't have it connected to a computer, then it will not start up correctly.. That is why you need to hack the core to enable it..

                    F 1 Reply Last reply
                    0
                    • tbowmoT tbowmo

                      @MLs

                      Check out the setup instructions here

                      and perhaps this

                      M Offline
                      M Offline
                      MLs
                      wrote on last edited by
                      #137

                      @tbowmo

                      When I try to upload sketch

                      Arduino:1.8.0 (Windows 10), Kort:"Arduino/Genuino Zero (Native USB Port)"
                      
                      Sketch uses 46488 bytes (17%) of program storage space. Maximum is 262144 bytes.
                      No device found on COM4
                      An error occurred while uploading the sketch
                      Invalid version found: 1.04
                      Invalid version found: 1.04
                      
                      This report would have more information with
                      "Show verbose output during compilation"
                      option enabled in File -> Preferences.
                      

                      When I use the serial monitor

                      0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGS--,VER=2.1.0
                      0;255;3;0;9;TSF:LRT:OK
                      0;255;3;0;9;TSM:INIT
                      0;255;3;0;9;TSF:WUR:MS=0
                      0;255;3;0;9;TSM:INIT:TSP OK
                      0;255;3;0;9;TSM:INIT:GW MODE
                      0;255;3;0;9;TSM:READY:ID=0,PAR=0,DIS=0
                      0;255;3;0;9;MCO:REG:NOT NEEDED
                      0;255;3;0;14;Gateway startup complete.
                      0;255;0;0;18;2.1.0
                      0;255;3;0;9;MCO:BGN:STP
                      0;255;3;0;9;MCO:BGN:INIT OK,TSP=1
                      0;255;3;0;9;TSF:MSG:READ,27-27-0,s=0,c=1,t=1,pt=7,l=5,sg=0:45.6
                      27;0;1;0;1;45.6
                      0;255;3;0;9;TSF:MSG:READ,23-23-0,s=1,c=1,t=0,pt=7,l=5,sg=0:8.4
                      23;1;1;0;0;8.4
                      0;255;3;0;9;TSF:MSG:READ,23-23-0,s=1,c=1,t=0,pt=7,l=5,sg=0:8.3
                      23;1;1;0;0;8.3
                      0;255;3;0;9;TSF:MSG:READ,23-23-0,s=0,c=1,t=1,pt=7,l=5,sg=0:51.8
                      23;0;1;0;1;51.8
                      0;255;3;0;9;TSF:MSG:READ,22-22-0,s=1,c=1,t=0,pt=7,l=5,sg=0:3.4
                      22;1;1;0;0;3.4
                      0;255;3;0;9;TSF:MSG:READ,23-23-0,s=0,c=1,t=1,pt=7,l=5,sg=0:52.0
                      23;0;1;0;1;52.0
                      0;255;3;0;9;TSF:MSG:READ,22-22-0,s=1,c=1,t=0,pt=7,l=5,sg=0:3.5
                      22;1;1;0;0;3.5
                      0;255;3;0;9;TSF:MSG:READ,23-23-0,s=1,c=1,t=0,pt=7,l=5,sg=0:8.2
                      23;1;1;0;0;8.2
                      0;255;3;0;9;TSF:MSG:READ,23-23-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
                      0;255;3;0;9;TSF:MSG:BC
                      0;255;3;0;9;TSF:MSG:FPAR REQ,ID=23
                      0;255;3;0;9;TSF:PNG:SEND,TO=0
                      0;255;3;0;9;TSF:CKU:OK
                      0;255;3;0;9;TSF:MSG:GWL OK
                      0;255;3;0;9;!TSF:MSG:SEND,0-0-23-23,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=NACK:0
                      0;255;3;0;9;TSF:MSG:READ,23-23-0,s=0,c=1,t=1,pt=7,l=5,sg=0:52.4
                      23;0;1;0;1;52.4
                      0;255;3;0;9;TSF:MSG:READ,22-22-0,s=1,c=1,t=0,pt=7,l=5,sg=0:3.4
                      22;1;1;0;0;3.4
                      0;255;3;0;9;TSF:MSG:READ,23-23-0,s=1,c=1,t=0,pt=7,l=5,sg=0:8.1
                      23;1;1;0;0;8.1
                      
                      

                      I USE IDE 1.80

                      0_1486306348742_Inställningar.png

                      Which card should I choose to get upload sketch on GW

                      //Mattias

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

                        @MLs

                        have you installed the mysensors board files? And chosen the Sensebender Gateway as target platform?

                        (Seems that you are using Arduino/Genuino Zero as target?)

                        M 2 Replies Last reply
                        0
                        • tbowmoT tbowmo

                          @Fabien

                          Are you using it as an ethernet gw, or standard serial gw? If serial GW, then the gateway waits until something connects to the serial device

                          The ethernet gw doesn't wait for something to connect. But you can hack the core, change hwInit() function in MyHwSAMD.cpp:

                          original

                          void hwInit()
                          {
                                  MY_SERIALDEVICE.begin(MY_BAUD_RATE);
                          #if defined(MY_GATEWAY_SERIAL)
                                  while (!MY_SERIALDEVICE) {}
                          #endif
                                  Wire.begin();
                          }
                          

                          modify to this

                          void hwInit()
                          {
                                  MY_SERIALDEVICE.begin(MY_BAUD_RATE);
                                  while (!MY_SERIALDEVICE) {}
                                  Wire.begin();
                          }
                          

                          It will make the gateway halt the initialization until something connects to the USB device.

                          Be advised, that if you don't have it connected to a computer, then it will not start up correctly.. That is why you need to hack the core to enable it..

                          F Offline
                          F Offline
                          Fabien
                          wrote on last edited by
                          #139

                          @tbowmo I'm using the serial sketch.
                          I have few issues (I think) :

                          • when I want to upload a new sketch, first time after powering by computer, every led goes off and SBGW seems to be disconnected. When I unplug/plug, no led are on or blink, but detection is ok and I can upload a firmware.
                          • When I press RESET after connecting SBGW on my computer, all led goes off and SBGW disconnect.

                          And it doesn't seems to wait when I plug computer, led start blinking ...

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

                            @Fabien

                            Is it windows or linux? Linux (ubuntu) have a bad habit of letting modem manager snatch any ACM devices that is connected to the computer.

                            F 1 Reply Last reply
                            0
                            • tbowmoT tbowmo

                              @MLs

                              have you installed the mysensors board files? And chosen the Sensebender Gateway as target platform?

                              (Seems that you are using Arduino/Genuino Zero as target?)

                              M Offline
                              M Offline
                              MLs
                              wrote on last edited by MLs
                              #141

                              @tbowmo

                              Yes, I have installed MYSensors boards but find only micro

                              0_1486308954042_Boards.png

                              So therefore, I tried another card.

                              //Mattias

                              M 1 Reply Last reply
                              0
                              • M MLs

                                @tbowmo

                                Yes, I have installed MYSensors boards but find only micro

                                0_1486308954042_Boards.png

                                So therefore, I tried another card.

                                //Mattias

                                M Offline
                                M Offline
                                MLs
                                wrote on last edited by
                                #142

                                @MLs

                                I found the problem myself. Had just installed Micro

                                1 Reply Last reply
                                0
                                • tbowmoT tbowmo

                                  @Fabien

                                  Is it windows or linux? Linux (ubuntu) have a bad habit of letting modem manager snatch any ACM devices that is connected to the computer.

                                  F Offline
                                  F Offline
                                  Fabien
                                  wrote on last edited by
                                  #143

                                  @tbowmo said in 💬 Sensebender Gateway:

                                  modem manager snatch any ACM devices

                                  Yes it's ubuntu ... Do you know how to avoid this ? udev ?

                                  1 Reply Last reply
                                  0
                                  • F Offline
                                    F Offline
                                    Fabien
                                    wrote on last edited by
                                    #144

                                    Ok :

                                    sudo apt-get --purge remove modemmanager
                                    
                                    1 Reply Last reply
                                    0
                                    • tbowmoT tbowmo

                                      @MLs

                                      have you installed the mysensors board files? And chosen the Sensebender Gateway as target platform?

                                      (Seems that you are using Arduino/Genuino Zero as target?)

                                      M Offline
                                      M Offline
                                      MLs
                                      wrote on last edited by MLs
                                      #145

                                      @tbowmo

                                      Hi i get same error whit Sensebender Ga

                                      Arduino:1.8.0 (Windows 10), Kort:"Sensebender Gateway"
                                      
                                      Build options changed, rebuilding all
                                      Sketch uses 46720 bytes (17%) of program storage space. Maximum is 262144 bytes.
                                      No device found on COM4
                                      An error occurred while uploading the sketch
                                      Invalid version found: 1.04
                                      Invalid version found: 1.04
                                      
                                      This report would have more information with
                                      "Show verbose output during compilation"
                                      option enabled in File -> Preferences.```
                                      

                                      No device found on COM4
                                      But serial monitor works fine with COM4

                                      //Mattias

                                      D 1 Reply Last reply
                                      0
                                      • M MLs

                                        @tbowmo

                                        Hi i get same error whit Sensebender Ga

                                        Arduino:1.8.0 (Windows 10), Kort:"Sensebender Gateway"
                                        
                                        Build options changed, rebuilding all
                                        Sketch uses 46720 bytes (17%) of program storage space. Maximum is 262144 bytes.
                                        No device found on COM4
                                        An error occurred while uploading the sketch
                                        Invalid version found: 1.04
                                        Invalid version found: 1.04
                                        
                                        This report would have more information with
                                        "Show verbose output during compilation"
                                        option enabled in File -> Preferences.```
                                        

                                        No device found on COM4
                                        But serial monitor works fine with COM4

                                        //Mattias

                                        D Offline
                                        D Offline
                                        Disca
                                        wrote on last edited by
                                        #146

                                        @MLs In Device Manager what com port is assigned to the sensebender GW? Have you manually installed the inf file?

                                        com4 is likely the last com port you used in the arduino interface not the one assigned to the GW.

                                        M 1 Reply Last reply
                                        0
                                        • D Disca

                                          @MLs In Device Manager what com port is assigned to the sensebender GW? Have you manually installed the inf file?

                                          com4 is likely the last com port you used in the arduino interface not the one assigned to the GW.

                                          M Offline
                                          M Offline
                                          MLs
                                          wrote on last edited by MLs
                                          #147

                                          @Disca

                                          No, I have not installed or selected com port.
                                          Device Manager COM4
                                          As I understood it so Windows 10 would fix everything, right?

                                          //Mattias

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


                                          16

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 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