Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
logger02L

logger02

@logger02
About
Posts
11
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • WDT doesn't work well
    logger02L logger02

    Thank you to confirm it

    Development

  • WDT doesn't work well
    logger02L logger02

    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

    Development

  • WDT doesn't work well
    logger02L logger02

    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

    Development

  • WDT doesn't work well
    logger02L logger02

    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

    Development

  • Starting flowchart
    logger02L logger02

    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:

    1. Mysensor could be an additional function on my system, not the only one. So the others system will not work.
    2. 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

    Troubleshooting

  • Starting flowchart
    logger02L logger02

    Thank you for your response, at least, I have the start initialization more clear.

    There is any way to jump the handshake?

    Troubleshooting

  • Starting flowchart
    logger02L logger02

    @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?

    Troubleshooting

  • Starting flowchart
    logger02L logger02

    @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:

    1. Digital input from a external buttom
    2. A message from the controller throught the MySensor network.

    Anyway, if I'll try your remarks.

    Troubleshooting

  • Combine DimmableLEDActuator sketch with RelayActuator Sketch
    logger02L logger02

    Could you paste the code?

    Troubleshooting

  • Combine DimmableLEDActuator sketch with RelayActuator Sketch
    logger02L logger02

    @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

    Troubleshooting

  • Starting flowchart
    logger02L logger02

    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:PDT

    If 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

    Troubleshooting
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular