Navigation

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

    pwatt01

    @pwatt01

    0
    Reputation
    9
    Posts
    462
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    pwatt01 Follow

    Best posts made by pwatt01

    This user hasn't posted anything yet.

    Latest posts made by pwatt01

    • RE: ESP8266 gateway and sensor node not talking - noobie

      Nothing. Or no change at least. The shots above are still the only messages that I am getting, apart from the ESP8266 rebooting by itself occasionaly, and the sensor node tends to repeat itself as new readings come in

      posted in Troubleshooting
      pwatt01
      pwatt01
    • RE: ESP8266 gateway and sensor node not talking - noobie

      OK.. i think after looking a bit more they are talking.. however there are a few issues and they are not understanding each other or somehitng. I remember reading before that there is a way to flash the device back to stock/wipe the EEPROM. DOes anyone know the link to that?

      posted in Troubleshooting
      pwatt01
      pwatt01
    • ESP8266 gateway and sensor node not talking - noobie

      Hello all,

      I just had all of my parts arrive and are builing my contoller and first sensor (DHT11 on MEGA clone). After flashing both (using the development build), they both seem to be working according to the serial monitor, but i cannot seem to make them talk to each other!

      Can anyone help me out? I am using the examples on both the gateway and node.

      Here is the output from the gateway after pressing reset:

      0‚~?–4“Ò¶£ÿOAaû0;0;3;0;9;Starting...
      scandone
      f 0, ....scandone
      .add 0
      aid 4
      pm open phy_2,type:2 0 0
      cnt 
      
      connected with <ssid>, channel 1
      ip:192.168.1.200,mask:255.255.255.0,gw:192.168.1.254
      .IP: 192.168.1.200
      0;0;3;0;9;gateway started, id=0, parent=0, distance=0
      

      this is from the sensor node:

      Starting...
      find parent
      send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
      find parent
      send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
      read: 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
      find parent
      send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
      read: 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
      read: 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
      read: 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
      find parent
      send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
      read: 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
      find parent
      send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
      sensor started, id=255, parent=255, distance=255
      T:21.00
      find parent
      send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
      read: 255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
      H:36.00
      find parent
      send: 255-255-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,st=bc:
      

      and here is the log from domotitz

      2015-10-29 07:11:37.529 Domoticz V2.3347 (c)2012-2015 GizMoCuz
      2015-10-29 07:11:37.529 Build Hash: b835f24, Date: 2015-10-15 03:16:03
      2015-10-29 07:11:37.554 Sunrise: 05:48:00 SunSet:19:10:00
      2015-10-29 07:11:37.554 EventSystem: reset all events...
      2015-10-29 07:11:37.561 Active notification subsystems: (0/10)
      2015-10-29 07:11:37.657 Webserver started on port: 8080
      2015-10-29 07:11:37.662 Started shared server on: ::
      2015-10-29 07:11:37.720 Incoming connection from: 127.0.0.1
      2015-10-29 07:11:39.666 EventSystem: reset all events...
      2015-10-29 07:11:39.667 EventSystem: reset all device statuses...
      2015-10-29 07:11:39.667 EventSystem: Started
      2015-10-29 07:11:41.672 MySensors: connected to: 192.168.1.200:5003
      2015-10-29 07:11:41.672 MySensors: Gateway Ready...
      2015-10-29 07:11:42.366 Login successfull : user 'admin'
      
      posted in Troubleshooting
      pwatt01
      pwatt01
    • RE: Sensors on Gateway?

      Tanks for that. I have it all working now! And also thanks for the quick reply!

      posted in Hardware
      pwatt01
      pwatt01
    • RE: Sensors on Gateway?

      Hello again Hek,

      Just one more question... how? I have crated a serial gateway following this http://www.mysensors.org/build/serial_gateway#wiring-things-up
      and then added the relavent parts from here http://www.mysensors.org/build/humidity

      but am not getting anything showing up in my controller (MyContoller.org). am I on the right path, or going in the wrong direction?

      here is my code for reference

      #define NO_PORTB_PINCHANGES  
      
      #include <MySigningNone.h>
      #include <MyTransportRFM69.h>
      #include <MyTransportNRF24.h>
      #include <MyHwATMega328.h>
      #include <MySigningAtsha204Soft.h>
      #include <MySigningAtsha204.h>
      
      #include <SPI.h>  
      #include <MyParserSerial.h>  
      #include <MySensor.h>  
      #include <stdarg.h>
      #include <PinChangeInt.h>
      #include "GatewayUtil.h"
      #include <DHT.h> 
      
      #define INCLUSION_MODE_TIME 1 // Number of minutes inclusion mode is enabled
      #define INCLUSION_MODE_PIN  3 // Digital pin used for inclusion mode button
      #define RADIO_ERROR_LED_PIN 4  // Error led pin
      #define RADIO_RX_LED_PIN    6  // Receive led pin
      #define RADIO_TX_LED_PIN    5  // the PCB, on board LED
      
      #define CHILD_ID_HUM 0
      #define CHILD_ID_TEMP 1
      #define HUMIDITY_SENSOR_DIGITAL_PIN 22
      
      // NRFRF24L01 radio driver (set low transmit power by default) 
      MyTransportNRF24 transport(RF24_CE_PIN, RF24_CS_PIN, RF24_PA_LEVEL_GW);
      //MyTransportRFM69 transport;
      
      // Message signing driver (signer needed if MY_SIGNING_FEATURE is turned on in MyConfig.h)
      //MySigningNone signer;
      //MySigningAtsha204Soft signer;
      //MySigningAtsha204 signer;
      
      // Hardware profile 
      MyHwATMega328 hw;
      
      // Construct MySensors library (signer needed if MY_SIGNING_FEATURE is turned on in MyConfig.h)
      // To use LEDs blinking, uncomment WITH_LEDS_BLINKING in MyConfig.h
      #ifdef WITH_LEDS_BLINKING
      MySensor gw(transport, hw /*, signer*/, RADIO_RX_LED_PIN, RADIO_TX_LED_PIN, RADIO_ERROR_LED_PIN);
      #else
      MySensor gw(transport, hw /*, signer*/);
      #endif
      
      DHT dht;
      float lastTemp;
      float lastHum;
      boolean metric = true; 
      MyMessage msgHum(CHILD_ID_HUM, V_HUM);
      MyMessage msgTemp(CHILD_ID_TEMP, V_TEMP);
      
      char inputString[MAX_RECEIVE_LENGTH] = "";    // A string to hold incoming commands from serial/ethernet interface
      int inputPos = 0;
      boolean commandComplete = false;  // whether the string is complete
      
      void parseAndSend(char *commandBuffer);
      
      void output(const char *fmt, ... ) {
         va_list args;
         va_start (args, fmt );
         vsnprintf_P(serialBuffer, MAX_SEND_LENGTH, fmt, args);
         va_end (args);
         Serial.print(serialBuffer);
      }
      
        
      void setup()  
      { 
        gw.begin(incomingMessage, 0, true, 0);
      
        setupGateway(INCLUSION_MODE_PIN, INCLUSION_MODE_TIME, output);
      
        // Add interrupt for inclusion button to pin
        PCintPort::attachInterrupt(pinInclusion, startInclusionInterrupt, RISING);
      
      
        // Send startup log message on serial
        serial(PSTR("0;0;%d;0;%d;Gateway startup complete.\n"),  C_INTERNAL, I_GATEWAY_READY);
      
        dht.setup(HUMIDITY_SENSOR_DIGITAL_PIN); 
        gw.sendSketchInfo("Humidity", "1.0");
        gw.present(CHILD_ID_HUM, S_HUM);
        gw.present(CHILD_ID_TEMP, S_TEMP);
        metric = gw.getConfig().isMetric;
      }
      
      void loop()  
      { 
        gw.process();
      
        checkButtonTriggeredInclusion();
        checkInclusionFinished();
        
        if (commandComplete) {
          // A command wass issued from serial interface
          // We will now try to send it to the actuator
          parseAndSend(gw, inputString);
          commandComplete = false;  
          inputPos = 0;
        }
        delay(dht.getMinimumSamplingPeriod());
      
        float temperature = dht.getTemperature();
        if (isnan(temperature)) {
            Serial.println("Failed reading temperature from DHT");
        } else if (temperature != lastTemp) {
          lastTemp = temperature;
          if (!metric) {
            temperature = dht.toFahrenheit(temperature);
          }
          gw.send(msgTemp.set(temperature, 1));
          Serial.print("T: ");
          Serial.println(temperature);
        }
        
        float humidity = dht.getHumidity();
        if (isnan(humidity)) {
            Serial.println("Failed reading humidity from DHT");
        } else if (humidity != lastHum) {
            lastHum = humidity;
            gw.send(msgHum.set(humidity, 1));
            Serial.print("H: ");
            Serial.println(humidity);
        }
      }
      
      
      /*
        SerialEvent occurs whenever a new data comes in the
       hardware serial RX.  This routine is run between each
       time loop() runs, so using delay inside loop can delay
       response.  Multiple bytes of data may be available.
       */
      void serialEvent() {
        while (Serial.available()) {
          // get the new byte:
          char inChar = (char)Serial.read(); 
          // if the incoming character is a newline, set a flag
          // so the main loop can do something about it:
          if (inputPos<MAX_RECEIVE_LENGTH-1 && !commandComplete) { 
            if (inChar == '\n') {
              inputString[inputPos] = 0;
              commandComplete = true;
            } else {
              // add it to the inputString:
              inputString[inputPos] = inChar;
              inputPos++;
            }
          } else {
             // Incoming message too long. Throw away 
              inputPos = 0;
          }
        }
      }
      
      
      
      
      posted in Hardware
      pwatt01
      pwatt01
    • RE: Sensors on Gateway?

      haha.. time to give it a shot! thanks

      posted in Hardware
      pwatt01
      pwatt01
    • RE: Sensors on Gateway?

      @hek said:

      Not right now. Working on it.

      hello Hek.. any news or timeframe on having a sensor on the gateway?

      Thanks!

      posted in Hardware
      pwatt01
      pwatt01
    • RE: DSC Alarm and My Sensors/OpenHAB

      Thanks for that advice. I reckon ill get started with some hacking and see how far I get! Thanks!

      posted in General Discussion
      pwatt01
      pwatt01
    • DSC Alarm and My Sensors/OpenHAB

      Hello All,

      I have a DSC PC2550 (8 zone and 2 fire) alarm system that came with my house. I was thinking that I would like to hook it up so I can access it from home via mysensors to OPENHAB (or another controller...)

      I was thinking that I have 3 options

      1. rip out all the existing control boards and replace with Arduino Mega. Use the existing sensors (motion and fire alarm) as basic sensors (open or closed), stepped down to 5v high to not destroy the arduino. Then using this as an example to send the info back to openhab. Then setting rules in open hab to arm/disarm, activate siren & strobe etc. Reverse engineer keypad to work as is but with the new 'contollor'

      2. It seems that there has been some work done in using an arduino to interface with DSC systems. Does anyone think this might be easier.. It seems you need more hardware (DSC IT-100), which according to the specsheet is not compatible with

      3. Reverse engineer the keypad and create a 2nd 'keypad' using an arduino and mysensors and/or openHAB that can control the system as needed, keeping the existing controllors as is.

      Any thoughts?

      Thanks

      posted in General Discussion
      pwatt01
      pwatt01