Sensor node doesn't transmit to base station unless serial monitor connected
-
I have a simple two-node network with:
-
A "stock" SerialGateway gateway (from the example)
-
A sensor node with several sensors attached (all sketch code derived from a mashup of MySensors examples)
Both boards use Arduino ProMini's @ 16MHz/5V.
What I'm seeing is that the base station will not receive updates from the sensor node UNLESS I connect to it with the serial monitor (i.e. Ctrl-Shift-M in the Arduino IDE). Once I do that we're in business, and the boards will communicate just fine for hours (or until I bump the fiddly breadboard wiring... hehe...)
Has anyone else seen an issue whereby a sensor node won't transmit until you connect over serial? I've looked at the node startup code and I don't see anything that would block, but I'm sure I've overlooked something.
Debug is turned on in MyConfig.h.
-
-
Can we see your multi sensor's sketch? And how are you powering that node?
-
@rickmontana83 said:
Has anyone else seen an issue whereby a sensor node won't transmit until you connect over serial?
yes, but for the life of me, I cannot recall why I had that problem other than to say that I recall using the TX/RX UART for another purpose...
try @rvendrame's advice and a schematic (or just a good description on how you've wired up your rig).
-
Erp... strike that. Looks like the MySensors nodes are working just fine. It's the interface to Home Assistant that seems to be buggy. I found the MYSController app to monitor the gateway directly, and I can see everything coming through from my sensors, serial connection or no.
So, case closed here, but the search for the best controller to pair with my MySensors network goes on...
Suggested Topics
-
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
NODs stop responding, but ping works.
Troubleshooting • 8 Mar 2025, 19:47 • Marcin 8 Mar 2025, 19:47 -
Compiling Sensor code using BME280 and ESP8266
Troubleshooting • 26 Feb 2025, 00:32 • dpcons 26 Feb 2025, 06:22 -
JSN-SR04T-V3.0 Coax cable extended
Troubleshooting • 19 Mar 2025, 21:00 • bocalexandru 21 Mar 2025, 12:05 -
DHT22 wrong sensor type in Home Assistant
Troubleshooting • 18 days ago • Commodoreuno 12 days ago -
Ghost Child
Troubleshooting • 15 Mar 2025, 07:44 • FcNanoLed 18 Mar 2025, 18:36