Trouble with 115200 baud on 3.3V/8MHz Arduino, like Serial Gateway. Solution: Change baudrate.
-
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.
-
-
@Stric That is strange, I've never seen this problem, and I have more 3v3 sensors then 5v... Hmmmmmm
-
@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
-
@Dirk_H Oh I believe the problem exists, I'm just wondering why I've not seen it yet....
-
@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.
-
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?
-
Yes, unless you run Vera which requires Nano (for usb compatibility).
-
@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.
Suggested Topics
-
💬 NRF24L01 shield for Arduino Uno (for MySensors gateway)
OpenHardware.io • 13 Feb 2019, 21:39 • openhardware.io 13 Feb 2019, 21:39 -
Will serial gateway work with 3.3 V Arduino Pro Mini?
Troubleshooting • 21 May 2021, 08:16 • Thomas433 27 Jul 2021, 18:33 -
💬 RS485 Ethernet Gateway
OpenHardware.io • 20 Dec 2018, 14:55 • openhardware.io 9 Oct 2019, 12:05 -
Sonoff Basic Wifi Gateway for NRF24
Hardware • 9 Jul 2017, 16:31 • Technovation 9 Jul 2017, 17:23 -
Communication problems between MQTT Gateway (OrangePi) and Node (Arduino Nano)
Troubleshooting • 1 May 2019, 19:22 • gammlerstyle 5 May 2019, 18:01 -
Network Gateway with Sensors/Actuators
My Project • 20 Jan 2015, 14:31 • lunarok 20 Jan 2015, 14:31 -
💬 The Logger Machine - Short and long term serial logging
OpenHardware.io • 24 Nov 2017, 21:01 • openhardware.io 18 Dec 2018, 08:58 -
RS232 communication via Termite 3.4 on Windows
Troubleshooting • 6 Nov 2018, 08:29 • A Former User 6 Nov 2018, 08:29