-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NodeManager and MySensors openHAB binding: constant reset #373
Comments
Thanks for reporting this issue. I believe would be a bit harder to make NodeManager following the MySensors Serial API since the structure of the message is completely different and sometimes it is needed to print out something different than just numbers. Workaround would be to turn FEATURE_DEBUG OFF, as you have probably already done. |
Thanks, I didn't take a closer look in the source code and I didn't know about that FEATURE_DEBUG flag. I have switched it OFF and everything works fine. Related that radio debug messages: maybe it would be good idea to use
|
Fixed by #387 by forcing FEATURE_DEBUG to OFF if MY_GATEWAY_SERIAL is defined. |
Sounds good for now. I can imagine that a lot of debug messages can slow down the communication (and data processing by Arduino), especially at lower baud rates. |
Reopening it since I found a better solution. With #391 debug output is using MySensors' hwDebugPrint() and is no more redirected to the serial port. In this way, the MySensors library automatically convert any debug output in I_LOG_MESSAGE messages when running as a gateway which is fully compatible with any controllers and NodeManager's debug output is not lost |
Environment:
Result:
MySensors openHAB Binding constantly reconnects to serial port causing the Arduino Uno to be restarted as well. This looks a bit poor.
This behavior is a side effect of printing to serial port some "bogus" (debug) characters by NodeManager. When NodeManager is configured to be a Serial Gateway, those debug messages doesn't follow the MySensors Serial API.
I think that MySensors openHAB Binding should be resistant to such a bogus messages. I have already reported this issue as tobof/openhab-addons/issues/116.
Here are the log messages that are printed to serial port by Arduino Uno with NodeManager:
While I'm good with NodeManager sendings debug messages to serial port, there is only one thing that could be improved in NodeManager. This message looks faulty but it could be easily improved:
I believe that a new line character is missing after
RADIO...
The text was updated successfully, but these errors were encountered: