Navigation

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

    Posts made by Steve Caster

    • Using whitelisting in both direction with soft signing

      Hi all

      I am struggling how to set up whitelisting in both direction. I have enabled soft signing and whitelisting in myconfig.h and set a serial number randomly made up.

      Now on the node I am copying the whitelist with the serial.gw serial, but what I want to achieve is to also sign reverse.

      Could somebody point me to some code I would need to use?. I understand that I will have to recompile the gateway node each time I add a sensor.

      Cannot copy any code atm as not in front of my dev machine. But when required, please let me know and I shall add it.

      Kind regards

      Steve

      posted in Development
      Steve Caster
      Steve Caster
    • Microduino

      Hey, have any of you used these puppies before?

      https://www.microduino.cc/ They have a core set as well as the radio.

      Kind regards

      Steve

      posted in Hardware
      Steve Caster
      Steve Caster
    • combine repeater and sensor type

      Hi all

      Quick Q: I currently have about 5 sensors in my house. Now, the current (5th) sensor seems to be working fine, but it sits at the furthest location from my gateway. I was wondering, can I combine both the repeater and sensor functionality? This sensor serves as a tempHum gateway and would be great if it could also act as a repeater.

      Kind regards
      Steve

      posted in General Discussion
      Steve Caster
      Steve Caster
    • RE: [SOLVED (but can somebody explain why)]Not getting any incoming messages...

      @fets I am good 🙂 Thank for the support 🙂

      posted in Troubleshooting
      Steve Caster
      Steve Caster
    • RE: [SOLVED (but can somebody explain why)]Not getting any incoming messages...

      Hi, I am waiting for the relay to stop and next try to use V_UP or V_DOWN. When I use gw.wait, it works fine and I can interrupt the motion by using V_STOP.

      posted in Troubleshooting
      Steve Caster
      Steve Caster
    • RE: [SOLVED (but can somebody explain why)]Not getting any incoming messages...

      Hey Hek,

      there is currently nothing connected to them. How come the wait works but the sleep doesn't? Does it mean it does no longer wake up?

      Kind regards

      posted in Troubleshooting
      Steve Caster
      Steve Caster
    • RE: [SOLVED (but can somebody explain why)]Not getting any incoming messages...

      Hek I just updated the first post a bit (had some issues there I noticed)

      this is the node log

      send: 250-250-0-0 s=255,c=0,t=17,pt=0,l=3,sg=0,st=ok:1.5
      send: 250-250-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,st=ok:0
      sensor started, id=250, parent=0, distance=1
      send: 250-250-0-0 s=255,c=3,t=11,pt=0,l=6,sg=0,st=ok:Blinds
      send: 250-250-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,st=ok:1.0
      send: 250-250-0-0 s=250,c=0,t=5,pt=0,l=6,sg=0,st=ok:Blinds
      Node ready to receive messages...
      read: 0-0-250 s=250,c=0,t=5,pt=0,l=6,sg=0:Blinds
      Blinds

      UPDATE: I am a bit further. I can now send one command to the sensor, yet after that it fails. The relay will be enable, but another command fails.

      0;0;3;0;9;send: 0-0-250-250 s=10,c=1,t=30,pt=0,l=0,sg=0,st=ok:
      0;0;3;0;9;read: 1-3-0 s=0,c=1,t=0.0
      0;0;3;0;9;send: 0-0-250-250 s=10,c=1,t=29,pt=0,l=0,sg=0,st=fail:
      

      As you can see the V_CLOSE works, but the next command fails when I use gw.sleep. When I reset the sensor or use gw.wait they work again.

      I copied the latest sketch below

      #include <MySensor.h>
      #include <SPI.h>
      
      #define UP_PIN  3 
      #define DOWN_PIN  4
      #define CHILD_ID 250 
      
      MySensor gw;
      void setup()  
      {   
        gw.begin(incomingMessage, AUTO, false);
        gw.sendSketchInfo("Blinds", "1.0");
        gw.present(CHILD_ID, S_COVER,"Blinds",true);
        pinMode(UP_PIN, OUTPUT);   
        pinMode(DOWN_PIN, OUTPUT);   
        digitalWrite(UP_PIN, 0);
        digitalWrite(DOWN_PIN, 0);
        Serial.println( "Node ready to receive messages..." );
      }
      
      void loop() 
      {
        gw.process();
      }
      
      void incomingMessage(const MyMessage &message) {
        Serial.println(message.data);
        if (message.type==V_UP) {
          Serial.println("opening up covers");
           digitalWrite(UP_PIN,1);
           gw.wait(15000);
           digitalWrite(UP_PIN,0);
         } 
         else if (message.type==V_DOWN) {
           Serial.println("closing up covers");
           digitalWrite(DOWN_PIN,1);
           gw.wait(15000);
           digitalWrite(DOWN_PIN,0);
         } 
         else if (message.type==V_STOP) {
           Serial.println("stopping covers");
           digitalWrite(UP_PIN,0);
           digitalWrite(DOWN_PIN,0);
         }
      }
      
      posted in Troubleshooting
      Steve Caster
      Steve Caster
    • [SOLVED (but can somebody explain why)]Not getting any incoming messages...

      Hi all

      I am trying to make a controller for my blinds using a 2 channel relay. I am using MySensors 1.5 and arduino 1.6.5b as dev env.

      I am using the following sketch

      #include <MySensor.h>
      #include <SPI.h>
      
      #define UP_PIN  3 
      #define DOWN_PIN  4
      #define CHILD_ID 250 
      
      MySensor gw;
      void setup()  
      {   
        gw.begin(incomingMessage, AUTO, false);
        gw.sendSketchInfo("Blinds", "1.0");
        gw.present(CHILD_ID, S_COVER,"Blinds",true);
        pinMode(UP_PIN, OUTPUT);   
        pinMode(DOWN_PIN, OUTPUT);   
        digitalWrite(UP_PIN, 0);
        digitalWrite(DOWN_PIN, 0);
        Serial.println( "Node ready to receive messages..." );
      }
      
      void loop() 
      {
        gw.process();
      }
      
      void incomingMessage(const MyMessage &message) {
        Serial.println(message.data);
        if (message.type==V_UP) {
           digitalWrite(UP_PIN,1);
           gw.sleep(15000);
           digitalWrite(UP_PIN,0);
           Serial.println("opening up covers");
         } 
         else if (message.type==V_DOWN) {
           digitalWrite(DOWN_PIN,1);
           gw.sleep(15000);
           digitalWrite(DOWN_PIN,0);
           Serial.println("closing up covers");
         } 
         else if (message.type==V_STOP) {
           digitalWrite(UP_PIN,0);
           digitalWrite(DOWN_PIN,0);
           Serial.println("stopping covers");
         }
      }
      
      

      In the gateway I get

      0;0;3;0;9;read: 250-250-0 s=255,c=0,t=17,pt=0,l=3,sg=0:1.5
      250;255;0;0;17;1.5
      0;0;3;0;9;read: 250-250-0 s=255,c=3,t=6,pt=1,l=1,sg=0:0
      250;255;3;0;6;0
      0;0;3;0;9;read: 250-250-0 s=255,c=3,t=11,pt=0,l=6,sg=0:Blinds
      250;255;3;0;11;Blinds
      0;0;3;0;9;read: 250-250-0 s=255,c=3,t=12,pt=0,l=3,sg=0:1.0
      250;255;3;0;12;1.0
      0;0;3;0;9;read: 250-250-0 s=250,c=0,t=5,pt=0,l=6,sg=0:Blinds
      0;0;3;0;9;send: 0-0-250-250 s=250,c=0,t=5,pt=0,l=6,sg=0,st=ok:Blinds
      
      250;250;0;0;5;Blinds
      

      I can see the blinds coming up in Domoticz and I can even send data to it (vtype 30,29 and 31) yet nothing is receiving the incoming message (The controller is still connected to my laptop so I can monitor them)

      Any clues why this goes wrong?

      Kind regards

      Steve

      posted in Troubleshooting
      Steve Caster
      Steve Caster
    • RE: Safe In-Wall AC to DC Transformers??

      Hi all,

      I was wondering, I want to be able to adress my blinds using mysensors. Using the relay, radio etc works fine, yet I am still wondering on this power supply. So using the above component I basically prevent fire by using the thermal fuse and an overload by using a regular fuse, the varistor and the HLK.

      Now, I am using a Nano (I have still 15 of those) which appear to be using 230mA, the radio itself and a relay. The relay (from the spec sheet) uses 180mA. This should be ok to be used with the HLK shown above. Now, my main concern is, how do you make a all sit together nicely? Is there a PCB type of board you are using? Any pointers welcome 🙂

      Kind regards

      Steve

      posted in Hardware
      Steve Caster
      Steve Caster
    • RE: Repeater failing?

      Hey,

      can this be a power issue? When I connect it to the USB port it works fine, when I use my convertor from 220v to 5vdc , it gives me this error...

      posted in Domoticz
      Steve Caster
      Steve Caster
    • Repeater failing?

      Hi all

      I try to connect a repeater to my arduino but I get the following output...
      000;t;0;0;3;0;9;send: 0-0-4-4 s=255,c=3,t=6,pt=0,l=1,sg=0,st=fail:M
      to be honest, I do not have a clue why this occurs. When I plug it in with the serial gateway connected directly to my testing laptop it seems to do as expected, yet the moment I move it around I see this error
      Any ideas?

      Kind regards

      Steve

      posted in Domoticz
      Steve Caster
      Steve Caster
    • In-wall connector for blinds

      Hi all,

      I am trying to migrate my manual up/down sensor for my blinds with a mysensors solution. I would use this PCB (solder off the USB/connectors :http://www.benl.ebay.be/itm/1PCS-DIY-Kit-5V-800mA-Regulated-Power-Supply-AC-DC-220V-to-5V-Power-Convert-/331476522266?hash=item4d2d8a551a ) with an Arduino nano , nrf and the following relay:
      http://www.dx.com/nl/p/arduino-2-channel-5v-relay-module-expansion-board-137160
      Does anybody see an issue with this? Safety? Programming etc?

      Kind regards

      Steve

      posted in Hardware
      Steve Caster
      Steve Caster
    • RE: SensorID not stored in EEPROM

      I rebooted the sensor and now it does store the sensorID. (Could this have been as I was on 1.6.5-R5 and now on 1.7.7 or the IDE?)

      posted in General Discussion
      Steve Caster
      Steve Caster
    • SensorID not stored in EEPROM

      HI all,

      I am using domoticz in combination with mysensors. It appears that when I reboot the whole system (gateway + sensors) or sometimes even just the sensors, they are rerecognised by the system. I read that the ID should be stored in the EEPROM, but it appears this does not happen. Anything I can test?

      Kind regards

      Steve

      posted in General Discussion
      Steve Caster
      Steve Caster