I'm going to answer me.
The problem was the bootloader, I have flashed the MYSbootloader and the WDT is working well.
Anybody know a bootloader compatible with MYS but it run quickly? because MYSbootloader spends 10seconds to start
I'm going to answer me.
The problem was the bootloader, I have flashed the MYSbootloader and the WDT is working well.
Anybody know a bootloader compatible with MYS but it run quickly? because MYSbootloader spends 10seconds to start
@rsaeful said:
if (message.type == V_LIGHT || message.type == V_DIMMER) {
I think that you must to separate the both input messages in two anidate if, like:
if (message.type == V_LIGHT) {
// Here the code for the relay
}else if ( message.type == V_DIMMER) {
// Here the code for the dimmer
}
I hope that it will be useful for you
I answer me again, I try the optiboot bootloader and it work well with mysensor library and WDT enable.
I hope that the solution is useful for more people
PD: The optiboot bootloader can be downloaded from here: https://github.com/Optiboot/optiboot/tree/master/optiboot
I agree with you, if you use have a radio in your system is because you want to control it remotely.
But I think that there is more reason:
In my case, my node have a digital input (switch on the wall) and a digital output, the digital output (relay) is manage from the Mysensor node and from the digital input. If the GW is broken, the digital output will not work till I fix or change the GW. It can pass one day or one week it depend of the job. My wife will be very hungry if she can not manage the house manually with the tradional swithes on the wall.
Any way, it's a feature that I think that could be take into account for next release. Is not very important because is not usual has not GW in the network, but I think that is a safety requirement to add in next deliveries.
Thank a lot for your support.
It's a nice forum
I answer me again, I try the optiboot bootloader and it work well with mysensor library and WDT enable.
I hope that the solution is useful for more people
PD: The optiboot bootloader can be downloaded from here: https://github.com/Optiboot/optiboot/tree/master/optiboot
I'm going to answer me.
The problem was the bootloader, I have flashed the MYSbootloader and the WDT is working well.
Anybody know a bootloader compatible with MYS but it run quickly? because MYSbootloader spends 10seconds to start
Hello,
I'm testing the library 2.0 with WDT enabled.
In before() I add "wdt_enable(wdto_8seg)" and I comment from the _proces() the line "hwWatchdogReset();" to force the wdt reset after 8seg
After wdt reset, the system crash and it is not restore. If I do a manual reset, neither it is restore. I need to remove the power supply to restore the system.
Need I use a especial bootloader to use wdt with mysensor? I'm using the default bootloader flashed in the arduino pro mini v3
I agree with you, if you use have a radio in your system is because you want to control it remotely.
But I think that there is more reason:
In my case, my node have a digital input (switch on the wall) and a digital output, the digital output (relay) is manage from the Mysensor node and from the digital input. If the GW is broken, the digital output will not work till I fix or change the GW. It can pass one day or one week it depend of the job. My wife will be very hungry if she can not manage the house manually with the tradional swithes on the wall.
Any way, it's a feature that I think that could be take into account for next release. Is not very important because is not usual has not GW in the network, but I think that is a safety requirement to add in next deliveries.
Thank a lot for your support.
It's a nice forum
Thank you for your response, at least, I have the start initialization more clear.
There is any way to jump the handshake?
@TheoL said:
stall
So, you mean that the infinite loop looking for a GW is only to the beginning. After the first conexion the main loop will be run?
@TheoL said:
this topic
Thank you for you fast answer.
I didn't explain me well. I mean that the button is in the same PCB that the relay that switch the light. So only there is a node
The node have two inputs to switch one output:
Anyway, if I'll try your remarks.
Could you paste the code?
@rsaeful said:
if (message.type == V_LIGHT || message.type == V_DIMMER) {
I think that you must to separate the both input messages in two anidate if, like:
if (message.type == V_LIGHT) {
// Here the code for the relay
}else if ( message.type == V_DIMMER) {
// Here the code for the dimmer
}
I hope that it will be useful for you