Sensor node doesn't transmit to base station unless serial monitor connected



  • I have a simple two-node network with:

    1. A "stock" SerialGateway gateway (from the example)

    2. 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.


  • Hero Member

    Can we see your multi sensor's sketch? And how are you powering that node?


  • Contest Winner

    @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...


Log in to reply
 

Suggested Topics

  • 3
  • 6
  • 1
  • 2
  • 6

46
Online

11.4k
Users

11.1k
Topics

112.6k
Posts