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. Troubleshooting
  3. Trouble with 115200 baud on 3.3V/8MHz Arduino, like Serial Gateway. Solution: Change baudrate.

Trouble with 115200 baud on 3.3V/8MHz Arduino, like Serial Gateway. Solution: Change baudrate.

Scheduled Pinned Locked Moved Troubleshooting
8mhzserialbaudrategateway115200
9 Posts 5 Posters 12.0k Views 1 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.
  • S Offline
    S Offline
    Stric
    wrote on last edited by
    #1

    Please read http://forum.arduino.cc/index.php?topic=54623.0 which basically says that the 3.3v arduino can't read stuff at 115200 baud correctly, things get corrupted due to being unable to get the correct timings. In our tests, semicolon (;) gets corrupted quite often. Unfortunately, the semicolon is "quite useful" in the serial protocol of the Gateway.

    Symptoms: Gateway not responding to version checks, gateway not being able to pass on auto-allocated ID's etc.

    Solution: Either change clock to 12MHz (hardware mod + software + blah), or just go slower.. 19200 baud seems to work fine for us. Change baud rate in MySensors.h and recompile your serial gateway. Easy-peasy.

    R 1 Reply Last reply
    3
    • H Offline
      H Offline
      hek
      Admin
      wrote on last edited by
      #2

      @Stric said:

      http://forum.arduino.cc/index.php?topic=54623.0

      Thanks for posting.

      1 Reply Last reply
      0
      • S Stric

        Please read http://forum.arduino.cc/index.php?topic=54623.0 which basically says that the 3.3v arduino can't read stuff at 115200 baud correctly, things get corrupted due to being unable to get the correct timings. In our tests, semicolon (;) gets corrupted quite often. Unfortunately, the semicolon is "quite useful" in the serial protocol of the Gateway.

        Symptoms: Gateway not responding to version checks, gateway not being able to pass on auto-allocated ID's etc.

        Solution: Either change clock to 12MHz (hardware mod + software + blah), or just go slower.. 19200 baud seems to work fine for us. Change baud rate in MySensors.h and recompile your serial gateway. Easy-peasy.

        R Offline
        R Offline
        RJ_Make
        Hero Member
        wrote on last edited by
        #3

        @Stric That is strange, I've never seen this problem, and I have more 3v3 sensors then 5v... Hmmmmmm

        RJ_Make

        1 Reply Last reply
        0
        • D Offline
          D Offline
          Dirk_H
          Contest Winner
          wrote on last edited by
          #4

          @ServiceXP @Stric
          I can confirm the problems of Stric. I also had them some months ago. see here http://forum.mysensors.org/topic/824/mysensors-serial-gateway-minimal-example-to-send-data/6

          R 1 Reply Last reply
          0
          • D Dirk_H

            @ServiceXP @Stric
            I can confirm the problems of Stric. I also had them some months ago. see here http://forum.mysensors.org/topic/824/mysensors-serial-gateway-minimal-example-to-send-data/6

            R Offline
            R Offline
            RJ_Make
            Hero Member
            wrote on last edited by
            #5

            @Dirk_H Oh I believe the problem exists, I'm just wondering why I've not seen it yet....

            RJ_Make

            1 Reply Last reply
            0
            • H Offline
              H Offline
              hek
              Admin
              wrote on last edited by
              #6

              @ServiceXL
              It is only a problem if you're using an 3v3 arduino on gateway.

              The sensors don't send more than debug info over serial where the problem easily go unnoticed I guess.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                marceltrapman
                Mod
                wrote on last edited by
                #7

                Does this mean that the 'early days requirement' of a UNO or Nano for the gateway could be replaced with 'any 5v Arduino' like a pro mini 5v?

                Fulltime Servoy Developer
                Parttime Moderator MySensors board

                I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
                I have a FABtotum to print cases.

                1 Reply Last reply
                0
                • H Offline
                  H Offline
                  hek
                  Admin
                  wrote on last edited by
                  #8

                  Yes, unless you run Vera which requires Nano (for usb compatibility).

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    Dirk_H
                    Contest Winner
                    wrote on last edited by
                    #9

                    @marceltrapman
                    when you change the BAUD rate setting in the source/config file to something lower/other you can also use 3.3V Arduinos as (Serial)Gateway. Of cause your controller needs also to be told about the lower BAUD rate.

                    Check out http://wormfood.net/avrbaudcalc.php?postbitrate=9600&postclock=8 for an overview of Clockspeeds (usually 8MHz for 3.3V and 16MHz for 5V types) and coresponding BAUD rates.

                    1 Reply Last reply
                    0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    16

                    Online

                    12.0k

                    Users

                    11.2k

                    Topics

                    113.4k

                    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