Thank you to confirm it
Posts made by logger02
-
RE: WDT doesn't work well
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
-
RE: WDT doesn't work well
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
-
WDT doesn't work well
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
-
RE: Starting flowchart
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:
- Mysensor could be an additional function on my system, not the only one. So the others system will not work.
- Safety requirement, the system shall run free without knowledged locks. If the GW go down for any reason, maybe beacause is broken, your system could be no work. Is not a common case, but it's a real case.
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
-
RE: Starting flowchart
Thank you for your response, at least, I have the start initialization more clear.
There is any way to jump the handshake?
-
RE: Starting flowchart
@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?
-
RE: Starting flowchart
@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:
- Digital input from a external buttom
- A message from the controller throught the MySensor network.
Anyway, if I'll try your remarks.
-
RE: Combine DimmableLEDActuator sketch with RelayActuator Sketch
Could you paste the code?
-
RE: Combine DimmableLEDActuator sketch with RelayActuator Sketch
@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
-
Starting flowchart
Hello everybody,
I have doubts about how the sensor device start the comunication.
At least with the 2.0 version, if there are not any gateway in the network, the sensor try to be connected sending:
TSM:INIT
TSM:RADIO:OK
TSP:ASSIGNID:OK (ID=9)
TSM:FPAR
TSP:MSG:SEND 9-9-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
TSM:FPAR
TSP:MSG:SEND 9-9-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
TSM:FPAR
TSP:MSG:SEND 9-9-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
TSM:FPAR
TSP:MSG:SEND 9-9-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
!TSM:FPAR:FAIL
!TSM:FAILURE
TSM:PDTIf the gateway is not in the network, the sensor doesn't listen any response and go a Power Down mode during some seconds. Is it right?
The problem that I have is the following.
I have a light device that it be able to switch the light from a external button or from a controller through a Mysensor GW.
So, If I have network problems because the GW is not working (for any problem) the Mysensor 2.0 library always try to connect to the network searching a GW and the main loop doesn't run never. So the external button doesn't work if there is not a GW in the network.Is it possible to jump the initializacion or, at least, run the main loop when the PDT is enabled?
Thank you in advance