1.6 gateway possible error
-
I am testing MySensor 1.6 gateway with sensors and I got the following behaviour: sending ON and OFF commands receive the following on gateway:
Message load: ON Message load: OFF Message load: ONFIt seems like the gateway do not clear the message.data, just keep the previous value and overwrite it.
-
It could be related to, but I am not sure. I have encountered something similar but on node, I have posted on http://forum.mysensors.org/topic/2675/mysensors-1-6-availability/9 and later on it seems to disappear. The nodes works fine as I have tested and the tests were done with the same commands ON and OFF, so the problem I found is only in the gateway.
-
I explain here what I see myself, may be I am wrong, I am not an expert in MySensors.
So, I add sensors to the gateway - MySensors 1.6, the gateway is the only powered module, the Serial Monitor shows the incoming message to be ON, OFF then ONF and it does not work anymore for the switch.
Power up a node and check it: it works fine, the messages are the right ones.
I have change the message for active state from ON to ONN to be the same length with the off state and it works for the gateway. -
Problem found in 2.0.0-beta: the LED pins seems to be active on nodes even I didn't enable MY_LEDS_BLINKING_FEATURE in MyConfig.h, so I expect them to be unavailable and do not interfere with my sketch, but they did. How to disable them and keep the pins for my program?
In 1.6 they are not active. -
I use the development version downloaded about one hour before posting, then check several times with 1.6 and 2.0 versions. I change the LED pin to 2 for all three LEDs (Rx, Tx, Err) and then my switches that use old LED PINs works fine, while a LED connected to the PIN 2 was blinking.
-
I made a change, so that if any of the LED's where defined, then it will enable MY_LED_BLINKING_FEATURE
Could it be that you have a define for some of the LED's somewhere?
look for MY_DEFAULT_xx_LED defines..
Or are they set as default somewhere in the library @hek?
-
yes.. I see the problem now.. My bad :(
Didn't see that we set the MY_DEFAULT_xx_LED defines for different archs if they are not defined by the user..
I'll make the appropriate changes tonight (I'm not at my dev machine now)
@tbowmo, so does this mean that we no longer have to enable/uncomment the "MY_LED_BLINKING_FEATURE" in config.h? We are able to just assign the pins inside of the sketch (like the default sketch of the development branch shows) without touching out config file?
-
@tbowmo, so does this mean that we no longer have to enable/uncomment the "MY_LED_BLINKING_FEATURE" in config.h? We are able to just assign the pins inside of the sketch (like the default sketch of the development branch shows) without touching out config file?
That was the initial thought, but I now see that it will not work, as the Leds are defined in the core, if they are missing, so they will always be defined when we reach the logic that enables MY_BLINKING_LED_FEATURE. And then that will always be enabled.