Navigation

    • Register
    • Login
    • Search
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. r-nox
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    r-nox

    @r-nox

    5
    Reputation
    48
    Posts
    651
    Profile views
    0
    Followers
    1
    Following
    Joined Last Online

    r-nox Follow

    Best posts made by r-nox

    • Vera is getting a reboot.

      There's been a lot of complaints about Vera over the last few years. It looks like there's been a buy out or a buy in and as a result it's getting some much needed attention.

      http://forum.micasaverde.com/index.php/topic,102841.0/topicseen.html

      Sorry if this isn't exactly related but I figure it's a good place to update people. If not just delete it.

      posted in Vera
      r-nox
      r-nox
    • RE: MySensors-powered arcade game screen with wireless gamepad controller

      Great work. I'm going to build this for my back yard!

      posted in My Project
      r-nox
      r-nox
    • RE: [SOLVED] MySensors and DHT22 - difficoulties in getting started

      Look here perhaps.

      https://forum.mysensors.org/topic/4326/can-t-compile-humidity-sketch-2-0-what-dht-library-do-i-need/18

      posted in Development
      r-nox
      r-nox
    • RE: ESP8266 gateway + WebServer = Awesome!

      @japio

      Where did this all end up?

      posted in Development
      r-nox
      r-nox

    Latest posts made by r-nox

    • Vera/Ezlo

      Will there be support for the new line of Ezlo/Vera hubs?

      https://getvera.com/collections/hubs

      posted in Vera
      r-nox
      r-nox
    • RE: Killing Nanos, one after the other

      This is old but maybe?

      https://hackaday.com/2014/10/22/watch-that-windows-update-ftdi-drivers-are-killing-fake-chips/

      posted in Troubleshooting
      r-nox
      r-nox
    • RE: Getting Pin Change Interrupts working together with Timer interrupts / sleep(XX ms) on Arduino Pro Mini

      I think this is the same thing as you were trying to accomplish.

      Sleep for 6 minutes or when interrupted. I have a reed switch on pin 2

      pinMode(REED_SWITCH, INPUT);   // set the reed switch digital pin as input
      //digitalWrite(REED_SWITCH, HIGH);
      pinMode(REED_SWITCH, INPUT_PULLUP);
      
      
      sleep(digitalPinToInterrupt(REED_SWITCH), CHANGE, 360000); //3600000 hour
      
      posted in Troubleshooting
      r-nox
      r-nox
    • RE: Message Payload type

      @frits Thank you for catching that. I was just reworking and now it's sending proper values. 🙂

      posted in Development
      r-nox
      r-nox
    • RE: Message Payload type

      @mfalkvidd

      Sending as V_TEXT did not have the effect needed.

      void sendToReceiver(boolean reed_tripped)
      {
        char percent;
        
        Serial.print(" Light Status ");
        Serial.println(reed_tripped);
       
       switch (reed_tripped) {
        
        case 0:
        percent = "0";
        Serial.print(" Select case is ");
        Serial.println("0");
      
        send(msgDimmer_to_5.setDestination(5).setSensor(0).set(percent).setType(V_TEXT));
        //send(msgDimmer_to_5.setDestination(5).setSensor(0).set(percent));
        //send(msgDimmer_to_5.set(percent, 0));
        
        break;
        
        case 1:
        percent = "30";
        Serial.print(" Select case is ");
        Serial.println("30");
          
        send(msgDimmer_to_5.setDestination(5).setSensor(0).set(percent).setType(V_TEXT));
        //send(msgDimmer_to_5.setDestination(5).setSensor(0).set(percent));
        //send(msgDimmer_to_5.set(percent, 0));
        break;
        
       
      }
        
       
      }
      

      and the results

      3201 TSF:MSG:SEND,8-8-0-5,s=0,c=1,t=47,pt=2,l=2,sg=0,ft=0,st=OK:4
      

      Payload still shows as P_INT16 and payload is 4 but in fact should be 30

      This should be simple. I don't understand what's going wrong.

      posted in Development
      r-nox
      r-nox
    • RE: Message Payload type

      @frits

      I tried this. Here's the results. They are close but payload looks corrupted.

      char buf[MAX_PAYLOAD_SIZE+1];
      strcpy ( buf, percent );
      
      void sendToReceiver(boolean reed_tripped)
      {
        char percent;
        
        Serial.print(" Light Status ");
        Serial.println(reed_tripped);
       
       switch (reed_tripped) {
        
        case 0:
        percent = "0";
        Serial.print(" Select case is ");
        Serial.println("0");
        
      char buf[MAX_PAYLOAD_SIZE+1];
      strcpy ( buf, percent );
      
      send(msgDimmer_to_5.setDestination(5).setSensor(0).set(buf).setType(V_TEXT));
        
        break;
        
        case 1:
        percent = "30";
        Serial.print(" Select case is ");
        Serial.println("30");
        
      char buf2[MAX_PAYLOAD_SIZE+1];
      strcpy ( buf, percent );
      send(msgDimmer_to_5.setDestination(5).setSensor(0).set(buf2).setType(V_TEXT));
        
       
        break;
      
       
      }
      

      My results have had their molecules mixed during transport. I expected "30" but received :⸮

      4870 TSF:MSG:SEND,8-8-0-5,s=0,c=1,t=47,pt=0,l=3,sg=0,ft=0,st=OK:⸮
      
      

      Any further advice?

      posted in Development
      r-nox
      r-nox
    • Message Payload type

      I'm sending a message from node to node but when the message gets there it's the wrong type.
      I need to send as P_STRING but it's showing as P_INT16

      This is my send

      void sendToReceiver(boolean reed_tripped)
      {
       char percent;
       
       Serial.print(" Light Status ");
       Serial.println(reed_tripped);
      
      switch (reed_tripped) {
       
       case 0:
       percent = "0";
      
       send(msgDimmer_to_5.setDestination(5).setSensor(0).set(percent).setType(V_PERCENTAGE));
       //send(msgDimmer_to_5.setDestination(5).setSensor(0).set(percent));
       //send(msgDimmer_to_5.set(percent, 0));
       
       break;
       
       case 1:
       percent = "30";
      
       send(msgDimmer_to_5.setDestination(5).setSensor(0).set(percent).setType(V_PERCENTAGE));
       //send(msgDimmer_to_5.setDestination(5).setSensor(0).set(percent));
       //send(msgDimmer_to_5.set(percent, 0));
       break;
      
      }
       
      
      }
      

      and the message

      2836 !TSF:MSG:SEND,8-8-5-5,s=0,c=1,t=3,pt=2,l=2,sg=0,ft=0,st=NACK:4
      2842 !TSF:RTE:N2N FAIL
      2846 TSF:MSG:SEND,8-8-0-5,s=0,c=1,t=3,pt=2,l=2,sg=0,ft=0,st=OK:4
      2854 MCO:SLP:MS=360000,SMS=0,I1=0,M1=1,I2=255,M2=255
      2861 TSF:TDI:TSL
      

      What the heck am I doing wrong?

      posted in Development
      r-nox
      r-nox
    • Vera is getting a reboot.

      There's been a lot of complaints about Vera over the last few years. It looks like there's been a buy out or a buy in and as a result it's getting some much needed attention.

      http://forum.micasaverde.com/index.php/topic,102841.0/topicseen.html

      Sorry if this isn't exactly related but I figure it's a good place to update people. If not just delete it.

      posted in Vera
      r-nox
      r-nox
    • RE: ESP8266 gateway + WebServer = Awesome!

      @japio

      Where did this all end up?

      posted in Development
      r-nox
      r-nox