Controller to Sensor communication problem
-
Hi,
my setup has two Arduino UNO R3: one is connected with USB to my laptop runningSerialGateway.ino
, and the other is runningServoActuator.ino
.I am about to write my own controller in Java by using the serial gateway looking at the code from
https://github.com/mysensors/Vera/blob/master/L_Arduino.lua
.My problem is that in
ServoActuator.ino
the callbackvoid incomingMessage(const MyMessage &message) {...}
is never called.For example the
setup()
ofServoActuator.ino
sends a0;10;2;0;3;1.4.1
message to the controller. My controller replies with0;10;1;0;3;0
but that message does not reach the sensor.I did also the message exchange manually (with a terminal, no controller at all) but nothing works.
By going looking at the MySensors code the call to
boolean MySensor::sendRoute(MyMessage &message)
just return false whatever I do. I think I miss something so thatgetChildRoute(dest)
returns the correct routing to the sensor.Please let me know what I do wrong.
Thanks,
George G.
-
Hi,
the problem is solved by sending
1
instead of0
to the sensor during:255;255;3;0;3;
request. So, now I replay with255:255:3;0;4;1
instead of255;255;3;0;4;0
and when I get the request1;10;2;0;3;1.4.1
I reply with1;10;1;0;3;0
which goes back to the sensor.Kind Regards,
George.
-
So, now I replay with 255:255:3;0;4;1 instead of 255;255;3;0;4;0 and when I get the request 1;10;2;0;3;1.4.1
Yes I think node-id 0 should not be used.
Suggested Topics
-
NodeJsController on non-raspbian linux distros
General Discussion • 17 Oct 2014, 14:13 • moo 8 Dec 2014, 09:58 -
Scene controller based on old x10 remote
My Project • 24 Mar 2015, 22:24 • tigra 24 Mar 2015, 22:49 -
MyController version "1.3.0.Final" released
MyController.org • 30 Jul 2018, 08:35 • jkandasa 17 Aug 2018, 17:56 -
💬 MSMDLed
OpenHardware.io • 27 Dec 2018, 11:02 • openhardware.io 27 Dec 2018, 11:02 -
Stand alone radio relay
General Discussion • 2 Dec 2014, 17:43 • dzairo 3 Dec 2014, 12:43 -
Serial protocol..
Development • 13 Nov 2014, 21:05 • dzairo 14 Nov 2014, 10:03 -
Freedomotic
Freedomotic • 2 Sept 2014, 17:18 • freedomotic 2 Aug 2018, 14:26 -
MySensors Serial Gateway minimal example to send data
Troubleshooting • 14 Jan 2015, 19:09 • Dirk_H 15 Jan 2015, 14:30