Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. gonzalonal
    3. Best
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by gonzalonal

    • MyS nodes behavior when no radio or radio init fails

      Hi everyone.

      I have built a dimmer node for my home which has its own buttons and can also be controlled over mysensors net. I am using Mysensors 2.00 development branch.

      BUT...what happens if, for some reason, the radio module is not present, or its initialization fails, or something else happens, causing mysensors boot to fail. What happens now, is that the program get freeze at startup.

      Wouldn't be a good idea, is spite of mysensors failing, to continue with the program? I would like to have the dimmer working with its buttons, despite of the mysensors net state. Maybe the gateway is down, or the node can't find a parent.

      There are several example of nodes that should, or would be nice to work as standalone, despite the radio network condition?
      Don't you agree?

      Maybe this could be optional with some definitions in config files.
      Regards!

      posted in Development
      gonzalonal
      gonzalonal
    • RE: Windows GUI/Controller for MySensors

      Hi Tekka.
      Great software, thanks for sharing.

      I 've being doing some tests and found a problem that seems to be related to my own sketches.

      When I upload through OTA the TimeReporter sketch, it uploads fine, and I am able to change the firmware afterward for another one.
      But when I upload my own sketch, It uploads fine, and works fine, but it stops to answer MYScontroller commands, such as reboot or assing firmware. So I am stuck with that sketch in that node. To flash another sketch in that node, I have to reflash MYSBootloader again via usbASP and later on, upload the desire sketch wit MYSController.

      Am I skiping something in my code that allows MYSBootloader to respond to MYSController commands?
      Could you please upload the TimeReporter.ino sketch as example of a working sketch with MYSController/MYSBootloader?

      Thanks, regards!

      Gonzalo

      posted in Controllers
      gonzalonal
      gonzalonal
    • RE: openHAB 2.0 binding

      Hi again @TimO .

      Just an idea.

      What do you think about solving this problematic in this way:

      We create a group whose members are all those items that later will populate the binding's memory. I have a group named mysqlpersisted where I put all the items whose data will be stored in my SQL DB. So I could use that group. For this example, let's call it "MemoryGroup"

      Then, we can create the following rule:

      rule "Populate MySensors binding memory"
      
      when 
      System started
      then
      
      (maybe add a delay to allow persistance services to load)
      
      MemoryGroup?.members.forEach[i |
              postUpdate(i.name, i.previousState(true))
      ]
      

      Using this method, memory would get populated everytime OH boots up, with data belonging to the persistance service that we use. And we use postUpdate, so no command is sent to the nodes.

      With this I think we solve both problems as data in the binding will be concurrent with the persistance service data.

      Let me know what you think about this.

      Regards!

      posted in OpenHAB
      gonzalonal
      gonzalonal
    • RE: Roller Shutter

      What happened with this project? Has been abandoned or finished successfully?
      Have you tried automatic calibration?

      posted in Hardware
      gonzalonal
      gonzalonal
    • RE: Windows GUI/Controller for MySensors

      Ok, thanks for that.

      I finally found my problem.
      The Node was sleeping most of the time. In spite of waking up twice per second, it was not enough to enter the uploading mode in the mysbootloader, so the node wasn't answering back to the gateway, nor MYSController.

      Now I have a questions

      How can I OTA update/upload the firmware of a sleeping node? Should the gateway, or a relay node, send the upload message to the sleeping node as soon as it wakes up for transmiting its data?
      I guess that in order to do that, the sleeping node should always wait for an aknowledge or some kind of message after waking up. I mean:

      Sleeping node wakes up
      Then, it send its data to controller or to relay node
      Afterwards, it wait for the controller to acknoledge the data just send, and to tell him (sleeping node) if there is a firmware upgrade for it.
      If there's not, go back to sleep. If there is, go to OTA upgrade routine.

      Thanks, regards.

      posted in Controllers
      gonzalonal
      gonzalonal
    • RE: openHAB 2.0 binding

      Thanks @TimO. Now I get it.
      What do you think about having two gateways, one with NRF radio and the other one with RFM69 radio?

      Will the binding support both gateways simultaneusly with no issues?

      Another question..Will you support HearbeatRequest for the development branch?

      Thanks, regards.

      posted in OpenHAB
      gonzalonal
      gonzalonal
    • RE: openHAB 2.2 binding

      Please kindly check my contribution in the git issue. Maybe it will help to clarify your issues.

      @LastSamurai said in openHAB 2.2 binding:

      @gonzalonal said in openHAB 2.2 binding:

      Yes, sure. I'll do that to keep track.

      By the way, I have RGBW led strip and I am using it with mysensors with no issues. Would you mind telling me what's wrong so I can recreate the scenario?

      You can find the issues here. Basically you (I ;)) can't set RGBW nodes to display pure white colors via openhab, dimming is not working (error confirmed by TimO) and most importantly ACK isn't working properly (for me at least). If you can help with any of this (especially the conversion HSB <=> RGBW) you are most welcome.

      posted in OpenHAB
      gonzalonal
      gonzalonal