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. Development
  3. Sensebender Micro as gateway on raspberry pi

Sensebender Micro as gateway on raspberry pi

Scheduled Pinned Locked Moved Development
7 Posts 5 Posters 2.4k Views 5 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.
  • G Offline
    G Offline
    gloob
    wrote on last edited by
    #1

    Hello,

    I want to use the sensebender micro as a Gateway on the raspberry pi.
    I have connected the rx and tx line directly to the I/Os of the raspberry and also the 3.3V for the power.

    In the controller I can connect to the gateway and receive data, but when I trie to send a value, nothing is send out.
    Also assigning an ID to a new sensor fails.

    It seems that the transmission from the raspberry to the sensebender is not working.

    Does anybody have an idea how to solve this?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      gloob
      wrote on last edited by
      #2

      Did nobody use the internal serial connection of the raspberry pi?

      andredtsA 1 Reply Last reply
      0
      • hekH Online
        hekH Online
        hek
        Admin
        wrote on last edited by
        #3

        I think you might be the first! Most people use USB serial connection.

        1 Reply Last reply
        0
        • G gloob

          Did nobody use the internal serial connection of the raspberry pi?

          andredtsA Offline
          andredtsA Offline
          andredts
          wrote on last edited by
          #4

          @gloob

          I use it, but with one ATmega connected internally. If you have everything connected correctly, TX to RX and RX to TX, maybe you need to add the port /dev/ttyAMA0 to your controller.
          I use Openhab, and for this one, you have to add "-Dgnu.io.rxtx.SerialPorts=/dev/ttyAMA0 " on start.sh before the line with ".jar".

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Stric
            wrote on last edited by
            #5

            Lower the speed from 115200 to 19200, 9600 or similar. The frequency of the arduino is not able to match 115200 baud exactly, so the arduino and rpi are mis-communicating.

            From another thread; http://wormfood.net/avrbaudcalc.php?postclock=8&hidetables=1

            Solved it for me.

            andredtsA 1 Reply Last reply
            0
            • T Offline
              T Offline
              ToniA
              wrote on last edited by
              #6

              Yes, it's about the baud rate. 38400 works for me, and I even made a pull request (not yet merged, though): https://github.com/mysensors/Arduino/pull/391

              Recent Domoticz beta's also have a feature to select the baud rate for MySensors serial gateway (default 115200, 38400 as an alternative). This of course needs to match with the baud rate on the gateway itself.

              1 Reply Last reply
              0
              • S Stric

                Lower the speed from 115200 to 19200, 9600 or similar. The frequency of the arduino is not able to match 115200 baud exactly, so the arduino and rpi are mis-communicating.

                From another thread; http://wormfood.net/avrbaudcalc.php?postclock=8&hidetables=1

                Solved it for me.

                andredtsA Offline
                andredtsA Offline
                andredts
                wrote on last edited by
                #7

                @Stric
                Good to know! I don't have this kind of problem because I use a Atmega328 with external 16MHz clock. The Sensebender Micro uses internal clock and run as low as 1MHz, so there is your problem.

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


                12

                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