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.
  • korttomaK Offline
    korttomaK Offline
    korttoma
    Hero Member
    wrote on last edited by korttoma
    #312

    Button and relay pins I assigned seem to work correctly but now I managed to release some magic smoke from the Sensebender GW board :( shorted something by mistake and at least FB1 is tost. Can I just shor FB1 to see if the board is stil alive or do I have to replace FB1? Seems like nothing else was damaged (at least I hope so) since it was GND and Vraw that was shorted.

    Edit: Just confirmed that it is only FB1 that was destroyed the rest seems to work :D just cant power it from the USB anymore. Hope I can stil write to it.

    • Tomas
    tbowmoT 1 Reply Last reply
    0
    • korttomaK korttoma

      Button and relay pins I assigned seem to work correctly but now I managed to release some magic smoke from the Sensebender GW board :( shorted something by mistake and at least FB1 is tost. Can I just shor FB1 to see if the board is stil alive or do I have to replace FB1? Seems like nothing else was damaged (at least I hope so) since it was GND and Vraw that was shorted.

      Edit: Just confirmed that it is only FB1 that was destroyed the rest seems to work :D just cant power it from the USB anymore. Hope I can stil write to it.

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

      @korttoma said in 💬 Sensebender Gateway:

      Button and relay pins I assigned seem to work correctly but now I managed to release some magic smoke from the Sensebender GW board :( shorted something by mistake and at least FB1 is tost. Can I just shor FB1 to see if the board is stil alive or do I have to replace FB1? Seems like nothing else was damaged (at least I hope so) since it was GND and Vraw that was shorted.

      Edit: Just confirmed that it is only FB1 that was destroyed the rest seems to work :D just cant power it from the USB anymore. Hope I can stil write to it.

      FB1 is just a filter to suppress spurious RF (if any) on the gnd wire exiting the board. So it can be shorted. The gateway should function fine without it.

      1 Reply Last reply
      0
      • Mr6510M Offline
        Mr6510M Offline
        Mr6510
        wrote on last edited by
        #314

        Hi All,
        I have purchased a SenseBender Gateway, tested the MySensors MQTT code etc on it and thats all good.
        Now I want to experiment with my own code on it. I notice that in the example code there are some references to the onboard LEDs, such as;

        static uint8_t leds[] = {LED_BLUE, LED_RED, LED_GREEN, LED_YELLOW, LED_ORANGE};

        which is great, I will use those to manage the LEDs in my sketch.
        What I'd like to know is where are LED_BLUE, LED_RED etc actually defined? What file? The reason I ask is that I also want to know which pin is connected to the RFM69 RESET pin. On the schematic for the SenseBender it is labelled RESET_RFM on the SAMD21 chip, and is physical chip pin 23 and also PB10. I don't know how to use that in my sketch, so if I had a macro like there is for the LEDs then I could just call that.
        I'm assuming that if I find where LED_BLUE is defined I may find info about the other pins I also want to use :)

        Thanks,
        Paul

        hekH 1 Reply Last reply
        0
        • Mr6510M Mr6510

          Hi All,
          I have purchased a SenseBender Gateway, tested the MySensors MQTT code etc on it and thats all good.
          Now I want to experiment with my own code on it. I notice that in the example code there are some references to the onboard LEDs, such as;

          static uint8_t leds[] = {LED_BLUE, LED_RED, LED_GREEN, LED_YELLOW, LED_ORANGE};

          which is great, I will use those to manage the LEDs in my sketch.
          What I'd like to know is where are LED_BLUE, LED_RED etc actually defined? What file? The reason I ask is that I also want to know which pin is connected to the RFM69 RESET pin. On the schematic for the SenseBender it is labelled RESET_RFM on the SAMD21 chip, and is physical chip pin 23 and also PB10. I don't know how to use that in my sketch, so if I had a macro like there is for the LEDs then I could just call that.
          I'm assuming that if I find where LED_BLUE is defined I may find info about the other pins I also want to use :)

          Thanks,
          Paul

          hekH Offline
          hekH Offline
          hek
          Admin
          wrote on last edited by
          #315

          @Mr6510
          https://github.com/mysensors/ArduinoHwSAMD/blob/master/variants/mysensors_gw/variant.h

          Mr6510M 1 Reply Last reply
          0
          • hekH hek

            @Mr6510
            https://github.com/mysensors/ArduinoHwSAMD/blob/master/variants/mysensors_gw/variant.h

            Mr6510M Offline
            Mr6510M Offline
            Mr6510
            wrote on last edited by
            #316

            @hek thanks, Now I understand.
            I was poking around near that file before, but could not figure it out.
            Thanks again,
            Paul

            1 Reply Last reply
            0
            • korttomaK Offline
              korttomaK Offline
              korttoma
              Hero Member
              wrote on last edited by
              #317

              Received a new ferrite bead and soldered it to my device. The bead showed 0 ohm with a multimeter so I don't know if it is the real deal but it seems to work even if it is not pretty:

              0_1509948945658_20171106_080332.jpg

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

                at DC it should be close to 0 ohm, but on higher frequencies it should act as a resistor.

                btw. it seems like the old one had exploded? :)

                korttomaK 1 Reply Last reply
                0
                • tbowmoT tbowmo

                  at DC it should be close to 0 ohm, but on higher frequencies it should act as a resistor.

                  btw. it seems like the old one had exploded? :)

                  korttomaK Offline
                  korttomaK Offline
                  korttoma
                  Hero Member
                  wrote on last edited by korttoma
                  #319

                  @tbowmo said in 💬 Sensebender Gateway:

                  it seems like the old one had exploded?

                  That's what happens when you short Vraw to GND on the MYSX connector in one of those facepalm moments :D (we need an :facepalm emoji!).

                  alt text

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

                    I have a lot of problem with this gateway. First I think it was caused by network module but with serial sketch I have a lot of issues. After 2 or 3 days, gateway crash. If I remove some sensors reporting every 30 seconds it crash but later.
                    This morning, all leds are off on the board. After powering off and on it was ok.
                    I'im using RFM69 with Openhab2 as controller.
                    Is someone experience same issue ? I will fall back to my old Jeelink gateway (ATmega328 based).

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

                      I have used my sensebender gateway for more than a year now, only difference is that I use NRF24 radio.. Haven't had any hickups yet..

                      Which version of mysensors are you using?

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

                        I'm using version 2.1

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

                          @Fabien

                          Could you try the latest dev, and see how that behaves?

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

                            @tbowmo : with wich RFM69 driver ?

                            tbowmoT 1 Reply Last reply
                            0
                            • F Fabien

                              @tbowmo : with wich RFM69 driver ?

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

                              @Fabien legacy, unless you would reflash all your nodes with the new driver as well. (they are not compatible)

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

                                @tbowmo : Just flash my SBGW today with arduino 1.8.5, last boards.txt and dev branch of mysensors.
                                We will see if it's more stable. All my Node still in 2.1.1

                                1 Reply Last reply
                                0
                                • stefaanvS Offline
                                  stefaanvS Offline
                                  stefaanv
                                  wrote on last edited by
                                  #327

                                  Which driver to use on Ubuntu 16.04 ?

                                  1 Reply Last reply
                                  0
                                  • stefaanvS Offline
                                    stefaanvS Offline
                                    stefaanv
                                    wrote on last edited by
                                    #328

                                    Hi, I'm trying to activate a sensebender gateway in OH2 on Ubuntu 16.04, however I'm having trouble setting up the serial port. Is there a how-to somewhere ? I suspect the serial port name is /dev/ttyACM0, but I'm not sure. How can I test ?
                                    MySensors bundle is reported to be active, but there's no messages coming in. I set the log level for mysensors to DEBUG, but nothing on the log.

                                    1 Reply Last reply
                                    0
                                    • stefaanvS Offline
                                      stefaanvS Offline
                                      stefaanv
                                      wrote on last edited by
                                      #329

                                      Here is my configuration file (mysensors.things)
                                      Bridge mysensors:bridge-ser:gateway [ serialPort="/dev/ttyACM0", sendDelay=200 ]
                                      {
                                      humidity keuken_vochtigheid [ nodeId="3", childId="2", smartSleep=true ]
                                      temperature keuken_temperatuur [ nodeId="3", childId="1", smartSleep=true ]
                                      }

                                      I suppose ttyACM0 because of
                                      stefaan@home:~$ dmesg |grep -i tty
                                      [ 0.000000] console [tty0] enabled
                                      [ 22.328631] 8086228A:00: ttyS4 at MMIO 0x81420000 (irq = 39, base_baud = 2764800) is a 16550A
                                      [ 22.329059] 8086228A:01: ttyS5 at MMIO 0x8141e000 (irq = 40, base_baud = 2764800) is a 16550A
                                      [ 23.106128] usb 1-4: FTDI USB Serial Device converter now attached to ttyUSB0
                                      [362074.592743] cdc_acm 1-3:1.0: ttyACM0: USB ACM device

                                      There seems to be a premissions problem om the port :
                                      stefaan@home:~$ cat /dev/ttyACM0
                                      cat: /dev/ttyACM0: Permission denied

                                      doing 'sudo usermod -a -G dialout openhab' doesn't help

                                      Anyone any ideas ?

                                      zboblamontZ 1 Reply Last reply
                                      0
                                      • stefaanvS Offline
                                        stefaanvS Offline
                                        stefaanv
                                        wrote on last edited by
                                        #330

                                        ttyUSB0 is a (different) RFXcom device

                                        1 Reply Last reply
                                        0
                                        • stefaanvS stefaanv

                                          Here is my configuration file (mysensors.things)
                                          Bridge mysensors:bridge-ser:gateway [ serialPort="/dev/ttyACM0", sendDelay=200 ]
                                          {
                                          humidity keuken_vochtigheid [ nodeId="3", childId="2", smartSleep=true ]
                                          temperature keuken_temperatuur [ nodeId="3", childId="1", smartSleep=true ]
                                          }

                                          I suppose ttyACM0 because of
                                          stefaan@home:~$ dmesg |grep -i tty
                                          [ 0.000000] console [tty0] enabled
                                          [ 22.328631] 8086228A:00: ttyS4 at MMIO 0x81420000 (irq = 39, base_baud = 2764800) is a 16550A
                                          [ 22.329059] 8086228A:01: ttyS5 at MMIO 0x8141e000 (irq = 40, base_baud = 2764800) is a 16550A
                                          [ 23.106128] usb 1-4: FTDI USB Serial Device converter now attached to ttyUSB0
                                          [362074.592743] cdc_acm 1-3:1.0: ttyACM0: USB ACM device

                                          There seems to be a premissions problem om the port :
                                          stefaan@home:~$ cat /dev/ttyACM0
                                          cat: /dev/ttyACM0: Permission denied

                                          doing 'sudo usermod -a -G dialout openhab' doesn't help

                                          Anyone any ideas ?

                                          zboblamontZ Offline
                                          zboblamontZ Offline
                                          zboblamont
                                          wrote on last edited by
                                          #331

                                          @stefaanv I can only suggest scanning the ports. When I connected the Gateway to the Pi3 it came up with /dev/ttyS0 instead of the listed options, although I ultimately ended up changing to a Pro-Mini as the radio did not work, and connected direct to the GPIO the serial port it worked with.

                                          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