Navigation

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

    Posts made by jonehr

    • Can't get the RFID working.

      What could be wrong?
      The LED on the board is lit.

      �����0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.1
      3 TSM:INIT
      4 TSF:WUR:MS=0
      11 TSM:INIT:TSP OK
      13 TSF:SID:OK,ID=2
      14 TSM:FPAR
      51 TSF:MSG:SEND,2-2-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      2058 !TSM:FPAR:NO REPLY
      2060 TSM:FPAR
      2096 TSF:MSG:SEND,2-2-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      2575 TSF:MSG:READ,0-0-2,s=255,c=3,t=8,pt=1,l=1,sg=0:0
      2580 TSF:MSG:FPAR OK,ID=0,D=1
      2904 TSF:MSG:READ,14-14-2,s=255,c=3,t=8,pt=1,l=1,sg=0:1
      3616 TSF:MSG:READ,1-1-2,s=255,c=3,t=8,pt=1,l=1,sg=0:1
      4104 TSM:FPAR:OK
      4105 TSM:ID
      4106 TSM:ID:OK
      4108 TSM:UPL
      4111 TSF:MSG:SEND,2-2-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
      4121 TSF:MSG:READ,0-0-2,s=255,c=3,t=25,pt=1,l=1,sg=0:1
      4126 TSF:MSG:PONG RECV,HP=1
      4128 TSM:UPL:OK
      4130 TSM:READY:ID=2,PAR=0,DIS=1
      4134 TSF:MSG:SEND,2-2-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
      4142 TSF:MSG:READ,0-0-2,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
      4149 TSF:MSG:SEND,2-2-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.1.1
      4159 TSF:MSG:SEND,2-2-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
      4169 TSF:MSG:READ,0-0-2,s=255,c=3,t=6,pt=0,l=1,sg=0:M
      4176 TSF:MSG:SEND,2-2-0-0,s=255,c=3,t=11,pt=0,l=9,sg=0,ft=0,st=OK:RFID Lock
      4185 TSF:MSG:SEND,2-2-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.0
      4193 TSF:MSG:SEND,2-2-0-0,s=99,c=0,t=19,pt=0,l=0,sg=0,ft=0,st=OK:
      4199 MCO:REG:REQ
      4203 TSF:MSG:SEND,2-2-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
      4211 TSF:MSG:READ,0-0-2,s=255,c=3,t=27,pt=1,l=1,sg=0:1
      4216 MCO:PIM:NODE REG=1
      4218 MCO:BGN:STP
      Couldn't find PN53x board```
      posted in Troubleshooting
      jonehr
      jonehr
    • RE: More then one MAX6675 in one node? ...smoking meat and fish...

      @mfalkvidd

      I'm very grateful...thank you! works fine.
      As you said, the code could be cleaner but I'm fully satisfied.
      When I get the time I'll do some basic coding studies.

      posted in Troubleshooting
      jonehr
      jonehr
    • RE: More then one MAX6675 in one node? ...smoking meat and fish...

      Now I've tried all day...I can't get it to work.
      Trying to follow your advice @mfalkvidd but only made small steps with "presentation". Very thankful for your help but unfortunately I don't get it right.
      I've specified 5 sensors to the node but Domoticz sees 6 . The only working child is child 255. There I see the temperature.

      0_1483629730258_domscreen.png
      The code looks like this now:

      // Enable debug prints to serial monitor
      #define MY_DEBUG
      // Enable and select radio type attached
      #define MY_RADIO_NRF24
      //#define MY_RADIO_RFM69
      
      #include <SPI.h>
      #include <MySensors.h>
      #include "max6675.h"
      
      #define MY_NODE_ID AUTO
      
      #define CHILD_ID_TEMP AUTO
      
      
      
      #define TEMP_SENSOR_DIGITAL_PIN 4
      
      #define MAX_ATTACHED_SENSORS 5
      #define NUMBER_OF_SENSORS 5 // Change this depending on how many sensors you connect.
      
      MyMessage msg(CHILD_ID_TEMP, V_TEMP);
      
      
      int gndPin = 2;
      int vccPin = 3;
      int thermoDO = 4;
      int thermoCLK = 6;
      int thermoCS1 = 5;
      int thermoCS2 = 7;
      int thermoCS3 = 8;
      int thermoCS4 = 8;
      int thermoCS5 = 8;
      
      MAX6675 thermocouple1(thermoCLK, thermoCS1, thermoDO);
      MAX6675 thermocouple2(thermoCLK, thermoCS2, thermoDO);
      MAX6675 thermocouple3(thermoCLK, thermoCS3, thermoDO);
      MAX6675 thermocouple4(thermoCLK, thermoCS4, thermoDO);
      MAX6675 thermocouple5(thermoCLK, thermoCS5, thermoDO);
      
      
      
      
      void presentation()  {
        
        
       
          // Send the sketch version information to the gateway and Controller
        sendSketchInfo("Temp Sensor", "0.1");
        
      
      
        // Present all sensors to controller
        for (int i=0; i<NUMBER_OF_SENSORS && i<MAX_ATTACHED_SENSORS; i++) {   
          present(i, S_TEMP);
      
        
           // Register all sensors to gateway (they will be created as child devices)
        present(CHILD_ID_TEMP, S_TEMP);
        }
      }
        
      
      
      
      void setup() {
        Serial.begin(115200);
        // use Arduino pins 
        pinMode(vccPin, OUTPUT); digitalWrite(vccPin, HIGH);
        pinMode(gndPin, OUTPUT); digitalWrite(gndPin, LOW);
        
        Serial.println("MAX6675 test");
        // wait for MAX chip to stabilize
        delay(500);
      }
      
      void loop() {
         //basic readout test, just print the current temp
        int tempCelsius1 = thermocouple1.readCelsius();
        int tempCelsius2 = thermocouple2.readCelsius();
        int tempCelsius3 = thermocouple3.readCelsius();
        int tempCelsius4 = thermocouple4.readCelsius();
        int tempCelsius5 = thermocouple5.readCelsius();
        
      
        
        
         
         Serial.print("prob1---C = "); 
         Serial.println(thermocouple1.readCelsius());
      
         Serial.print("prob2---C = "); 
         Serial.println(thermocouple2.readCelsius());
      
         Serial.print("prob3---C = "); 
         Serial.println(thermocouple3.readCelsius());
         
          send(msg.set(tempCelsius1));
          send(msg.set(tempCelsius2));
          send(msg.set(tempCelsius3));
          send(msg.set(tempCelsius4));
          send(msg.set(tempCelsius5));
       
      
           //for (int i=0; i<NUMBER_OF_SENSORS && i<MAX_ATTACHED_SENSORS; i++) {   
          // Send in the new temperature
            //  send(msg.setreadCelsius(i));}
      
       
         delay(5000);
      }
      

      And the serial log:
      prob1---C = 0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.0
      3 TSM:INIT
      4 TSF:WUR:MS=0
      11 TSM:INIT:TSP OK
      13 TSF:SID:OK,ID=10
      14 TSM:FPAR
      51 TSF:MSG:SEND,10-10-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      2058 !TSM:FPAR:NO REPLY
      2060 TSM:FPAR
      2096 TSF:MSG:SEND,10-10-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      3083 TSF:MSG:READ,0-0-10,s=255,c=3,t=8,pt=1,l=1,sg=0:0
      3087 TSF:MSG:FPAR OK,ID=0,D=1
      3228 TSF:MSG:READ,5-5-10,s=255,c=3,t=8,pt=1,l=1,sg=0:1
      3686 TSF:MSG:READ,8-8-10,s=255,c=3,t=8,pt=1,l=1,sg=0:1
      3775 TSF:MSG:READ,1-1-10,s=255,c=3,t=8,pt=1,l=1,sg=0:1
      4104 TSM:FPAR:OK
      4105 TSM:ID
      4106 TSM:ID:OK
      4108 TSM:UPL
      4145 !TSF:MSG:SEND,10-10-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=NACK:1
      4152 TSF:MSG:READ,0-0-10,s=255,c=3,t=25,pt=1,l=1,sg=0:1
      4157 TSF:MSG:PONG RECV,HP=1
      4159 TSM:UPL:OK
      4161 TSM:READY:ID=10,PAR=0,DIS=1
      4165 TSF:MSG:SEND,10-10-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
      4179 TSF:MSG:READ,0-0-10,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
      4205 TSF:MSG:SEND,10-10-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.1.0
      4213 TSF:MSG:SEND,10-10-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
      4229 TSF:MSG:READ,0-0-10,s=255,c=3,t=6,pt=0,l=1,sg=0:M
      4236 TSF:MSG:SEND,10-10-0-0,s=255,c=3,t=11,pt=0,l=11,sg=0,ft=0,st=OK:Temp Sensor
      4245 TSF:MSG:SEND,10-10-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:0.1
      4282 TSF:MSG:SEND,10-10-0-0,s=0,c=0,t=6,pt=0,l=0,sg=0,ft=0,st=OK:
      4325 !TSF:MSG:SEND,10-10-0-0,s=255,c=0,t=6,pt=0,l=5,sg=0,ft=0,st=NACK:2.1.0
      4334 TSF:MSG:SEND,10-10-0-0,s=1,c=0,t=6,pt=0,l=0,sg=0,ft=1,st=OK:
      4354 TSF:MSG:SEND,10-10-0-0,s=255,c=0,t=6,pt=0,l=5,sg=0,ft=0,st=OK:2.1.0
      4362 TSF:MSG:SEND,10-10-0-0,s=2,c=0,t=6,pt=0,l=0,sg=0,ft=0,st=OK:
      4370 TSF:MSG:SEND,10-10-0-0,s=255,c=0,t=6,pt=0,l=5,sg=0,ft=0,st=OK:2.1.0
      4378 TSF:MSG:SEND,10-10-0-0,s=3,c=0,t=6,pt=0,l=0,sg=0,ft=0,st=OK:
      4386 TSF:MSG:SEND,10-10-0-0,s=255,c=0,t=6,pt=0,l=5,sg=0,ft=0,st=OK:2.1.0
      4397 TSF:MSG:SEND,10-10-0-0,s=4,c=0,t=6,pt=0,l=0,sg=0,ft=0,st=OK:
      4425 TSF:MSG:SEND,10-10-0-0,s=255,c=0,t=6,pt=0,l=5,sg=0,ft=0,st=OK:2.1.0
      4432 MCO:REG:REQ
      4435 TSF:MSG:SEND,10-10-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
      4445 TSF:MSG:READ,0-0-10,s=255,c=3,t=27,pt=1,l=1,sg=0:1
      4450 MCO:PIM:NODE REG=1
      4452 MCO:BGN:STP
      MAX6675 test
      4954 MCO:BGN:INIT OK,TSP=1
      prob1---C = 2.00
      prob2---C = nan
      prob3---C = 21.50
      5227 TSF:MSG:SEND,10-10-0-0,s=255,c=1,t=0,pt=2,l=2,sg=0,ft=0,st=OK:0
      5235 TSF:MSG:SEND,10-10-0-0,s=255,c=1,t=0,pt=2,l=2,sg=0,ft=0,st=OK:56
      5245 TSF:MSG:SEND,10-10-0-0,s=255,c=1,t=0,pt=2,l=2,sg=0,ft=0,st=OK:21
      5254 TSF:MSG:SEND,10-10-0-0,s=255,c=1,t=0,pt=2,l=2,sg=0,ft=0,st=OK:21
      5273 TSF:MSG:SEND,10-10-0-0,s=255,c=1,t=0,pt=2,l=2,sg=0,ft=0,st=OK:21

      posted in Troubleshooting
      jonehr
      jonehr
    • RE: More then one MAX6675 in one node? ...smoking meat and fish...

      Now I've studied and done some copy pasting...I'm not a programmer as you can see.

      This code seems to work.. a bit...
      My problem now is that I don't know how to write the code to tell the controller/Domoticz that there are three sensors to the node. I only get one child in "the hardware list" in Domoticz.

      
      // Enable debug prints to serial monitor
      #define MY_DEBUG
      // Enable and select radio type attached
      #define MY_RADIO_NRF24
      //#define MY_RADIO_RFM69
      
      #include <SPI.h>
      #include <MySensors.h>
      #include "max6675.h"
      
      #define MY_NODE_ID AUTO
      
      #define CHILD_ID_TEMP AUTO
      #define TEMP_SENSOR_DIGITAL_PIN 4
      //#define NUMBER_OF_SENSORS 3 // Change this depending on how many sensors you connect.
      
      MyMessage msg(CHILD_ID_TEMP, V_TEMP);
      
      
      int thermoDO = 4;
      int thermoCS = 5;
      int thermoCS2 = 7;
      int thermoCS3 = 8;
      int thermoCLK = 6;
      
      MAX6675 thermocouple(thermoCLK, thermoCS, thermoDO);
      MAX6675 thermocouple2(thermoCLK, thermoCS2, thermoDO);
      MAX6675 thermocouple3(thermoCLK, thermoCS3, thermoDO);
      
      int vccPin = 3;
      int gndPin = 2;
      
      
      
      void presentation()  {
        
       
        // Send the sketch version information to the gateway and Controller
        sendSketchInfo("Temp Sensor", "0.1");
      
        // Register all sensors to gateway (they will be created as child devices)
        present(CHILD_ID_TEMP, S_TEMP);
      }
        
      
      
      
      void setup() {
        Serial.begin(115200);
        // use Arduino pins 
        pinMode(vccPin, OUTPUT); digitalWrite(vccPin, HIGH);
        pinMode(gndPin, OUTPUT); digitalWrite(gndPin, LOW);
        
        Serial.println("MAX6675 test");
        // wait for MAX chip to stabilize
        delay(500);
      }
      
      void loop() {
        // basic readout test, just print the current temp
        int tempCelsius = thermocouple.readCelsius();
        int tempCelsius2 = thermocouple2.readCelsius();
        int tempCelsius3 = thermocouple3.readCelsius();
         
         Serial.print("prob1---C = "); 
         Serial.println(thermocouple.readCelsius());
      
         Serial.print("prob2---C = "); 
         Serial.println(thermocouple2.readCelsius());
      
         Serial.print("prob3---C = "); 
         Serial.println(thermocouple3.readCelsius());
         
          send(msg.set(tempCelsius));
          send(msg.set(tempCelsius2));
          send(msg.set(tempCelsius3));
       
         delay(5000);
      }```
      

      My Domotics log:

      2017-01-03 21:23:57.057 (Mysensor server) Temp (2.1.0)
      2017-01-03 21:23:57.083 (Mysensor server) Temp (2.1.0)
      2017-01-03 21:23:57.105 (Mysensor server) Temp (2.1.0) ```

      My serial log:

      prob1---C = 0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.1.0
      3 TSM:INIT
      4 TSF:WUR:MS=0
      11 TSM:INIT:TSP OK
      13 TSF:SID:OK,ID=10
      14 TSM:FPAR
      51 TSF:MSG:SEND,10-10-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      521 TSF:MSG:READ,0-0-10,s=255,c=3,t=8,pt=1,l=1,sg=0:0
      526 TSF:MSG:FPAR OK,ID=0,D=1
      1574 TSF:MSG:READ,8-8-10,s=255,c=3,t=8,pt=1,l=1,sg=0:1
      2058 TSM:FPAR:OK
      2059 TSM:ID
      2060 TSM:ID:OK
      2062 TSM:UPL
      2067 TSF:MSG:SEND,10-10-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
      2077 TSF:MSG:READ,0-0-10,s=255,c=3,t=25,pt=1,l=1,sg=0:1
      2082 TSF:MSG:PONG RECV,HP=1
      2085 TSM:UPL:OK
      2086 TSM:READY:ID=10,PAR=0,DIS=1
      2092 TSF:MSG:SEND,10-10-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
      2101 TSF:MSG:READ,0-0-10,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
      2108 TSF:MSG:SEND,10-10-0-0,s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=OK:2.1.0
      2116 TSF:MSG:SEND,10-10-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
      2130 TSF:MSG:READ,0-0-10,s=255,c=3,t=6,pt=0,l=1,sg=0:M
      2138 TSF:MSG:SEND,10-10-0-0,s=255,c=3,t=11,pt=0,l=11,sg=0,ft=0,st=OK:Temp Sensor
      2147 TSF:MSG:SEND,10-10-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:0.1
      2155 TSF:MSG:SEND,10-10-0-0,s=255,c=0,t=6,pt=0,l=5,sg=0,ft=0,st=OK:2.1.0
      2161 MCO:REG:REQ
      2165 TSF:MSG:SEND,10-10-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
      2171 TSF:MSG:READ,0-0-10,s=255,c=3,t=27,pt=1,l=1,sg=0:1
      2177 MCO:PIM:NODE REG=1
      2179 MCO:BGN:STP
      MAX6675 test
      2680 MCO:BGN:INIT OK,TSP=1
      prob1---C = 0.00
      prob2---C = 0.00
      prob3---C = 23.75
      2891 TSF:MSG:SEND,10-10-0-0,s=255,c=1,t=0,pt=2,l=2,sg=0,ft=0,st=OK:256
      2909 TSF:MSG:SEND,10-10-0-0,s=255,c=1,t=0,pt=2,l=2,sg=0,ft=0,st=OK:32
      2917 TSF:MSG:SEND,10-10-0-0,s=255,c=1,t=0,pt=2,l=2,sg=0,ft=0,st=OK:23
      prob1---C = 0.00
      prob2---C = 16.00
      prob3---C = 23.50
      8130 TSF:MSG:SEND,10-10-0-0,s=255,c=1,t=0,pt=2,l=2,sg=0,ft=0,st=OK:0
      8138 TSF:MSG:SEND,10-10-0-0,s=255,c=1,t=0,pt=2,l=2,sg=0,ft=0,st=OK:0
      8146 TSF:MSG:SEND,10-10-0-0,s=255,c=1,t=0,pt=2,l=2,sg=0,ft=0,st=OK:23

      posted in Troubleshooting
      jonehr
      jonehr
    • RE: More then one MAX6675 in one node? ...smoking meat and fish...

      @mfalkvidd
      Thank you.
      I'll do so.

      posted in Troubleshooting
      jonehr
      jonehr
    • RE: More then one MAX6675 in one node? ...smoking meat and fish...

      Thank you. I'll make a try.

      posted in Troubleshooting
      jonehr
      jonehr
    • RE: More then one MAX6675 in one node? ...smoking meat and fish...

      ebay.com
      ex.

      http://www.ebay.com/itm/1-K-Type-Thermocouple-Sensor-Probe-Diameter-1-6mm-Probe-Length-50-300mm-1500mm-/271178661987?var=&hash=item3f23820063ⓂmlAXKtAdCmssGX3Sudq31Ww
      and

      http://www.ebay.com/itm/381359075336?_trksid=p2055119.m1438.l2649&ssPageName=STRK%3AMEBIDX%3AIT

      posted in Troubleshooting
      jonehr
      jonehr
    • More then one MAX6675 in one node? ...smoking meat and fish...

      I'm using this example to have control over the temperature in the meat in my smoker, and it is working fine.
      The question:
      Can I have 6 temp sensors/MAX6675 connected to one node?
      How do I change the exemple?

      // this example is public domain. enjoy!
      // www.ladyada.net/learn/sensors/thermocouple
      
      
      // Enable debug prints to serial monitor
      #define MY_DEBUG
      // Enable and select radio type attached
      #define MY_RADIO_NRF24
      //#define MY_RADIO_RFM69
      
      #include <SPI.h>
      #include <MySensors.h>
      #include "max6675.h"
      
      #define MY_NODE_ID 10
      
      #define CHILD_ID_TEMP 10
      #define TEMP_SENSOR_DIGITAL_PIN 4
      
      
      int thermoDO = 4;
      int thermoCS = 5;
      int thermoCLK = 6;
      
      MAX6675 thermocouple(thermoCLK, thermoCS, thermoDO);
      int vccPin = 3;
      int gndPin = 2;
      
      MyMessage msg(CHILD_ID_TEMP, V_TEMP);
      
      
      
      
      void presentation()  {
        
       
        // Send the sketch version information to the gateway and Controller
        sendSketchInfo("Temp Sensor", "0.1");
      
        // Register all sensors to gateway (they will be created as child devices)
        present(CHILD_ID_TEMP, S_TEMP);
      }
        
      
      
      
      void setup() {
        Serial.begin(115200);
        // use Arduino pins 
        pinMode(vccPin, OUTPUT); digitalWrite(vccPin, HIGH);
        pinMode(gndPin, OUTPUT); digitalWrite(gndPin, LOW);
        
        Serial.println("MAX6675 test");
        // wait for MAX chip to stabilize
        delay(500);
      }
      
      void loop() {
        // basic readout test, just print the current temp
        int tempCelsius = thermocouple.readCelsius();
         Serial.print("C = "); 
         Serial.println(thermocouple.readCelsius());
         Serial.print("F = ");
         Serial.println(thermocouple.readFahrenheit());
         send(msg.set(tempCelsius));
       
         delay(5000);
      }```
      posted in Troubleshooting
      jonehr
      jonehr
    • RE: ENC28J60 Ethernet gateway problem with Domoticz?

      No other gataway in range.
      Tried to upload again and got:

      WARNING: Category '' in library UIPEthernet is not valid. Setting to 'Uncategorized'
      In file included from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master/UIPEthernet.h:33:0,

                   from C:\Users\Hampus\Documents\Arduino\libraries\MySensors-master\examples\GatewayENC\GatewayENC.ino:92:
      

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master/UIPClient.h:25:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "Client.h"

      ^

      In file included from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master/UIPEthernet.h:33:0,

                   from C:\Users\Hampus\Documents\Arduino\libraries\MySensors-master\examples\GatewayENC\GatewayENC.ino:92:
      

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master/UIPClient.h:26:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "utility/mempool.h"

      ^

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master/UIPClient.h:29:4: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "utility/uip.h"

      ^
      

      In file included from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master/UIPEthernet.h:34:0,

                   from C:\Users\Hampus\Documents\Arduino\libraries\MySensors-master\examples\GatewayENC\GatewayENC.ino:92:
      

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master/UIPServer.h:23:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "Server.h"

      ^

      In file included from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master/UIPEthernet.h:34:0,

                   from C:\Users\Hampus\Documents\Arduino\libraries\MySensors-master\examples\GatewayENC\GatewayENC.ino:92:
      

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master/UIPServer.h:24:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "UIPClient.h"

      ^

      In file included from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\Dhcp.cpp:8:0:

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\utility/util.h:5:0: warning: "ntohs" redefined

      #define ntohs(x) htons(x)

      ^

      In file included from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPUdp.h:28:0,

                   from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\Dhcp.h:7,
      
                   from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\Dhcp.cpp:6:
      

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\utility/uip.h:1087:0: note: this is the location of the previous definition

      #define ntohs htons

      ^

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPClient.cpp:22:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "utility/uip-conf.h"

      ^

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPClient.cpp:23:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "utility/uip.h"

      ^

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPClient.cpp:24:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "utility/uip_arp.h"

      ^

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPClient.cpp:25:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "string.h"

      ^

      In file included from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPEthernet.h:33:0,

                   from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPClient.cpp:27:
      

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPClient.h:25:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "Client.h"

      ^

      In file included from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPEthernet.h:33:0,

                   from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPClient.cpp:27:
      

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPClient.h:26:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "utility/mempool.h"

      ^

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPClient.h:29:4: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "utility/uip.h"

      ^
      

      In file included from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPEthernet.h:34:0,

                   from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPClient.cpp:27:
      

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPServer.h:23:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "Server.h"

      ^

      In file included from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPEthernet.h:34:0,

                   from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPClient.cpp:27:
      

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPServer.h:24:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "UIPClient.h"

      ^

      In file included from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPEthernet.h:33:0,

                   from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPEthernet.cpp:21:
      

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPClient.h:25:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "Client.h"

      ^

      In file included from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPEthernet.h:33:0,

                   from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPEthernet.cpp:21:
      

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPClient.h:26:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "utility/mempool.h"

      ^

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPClient.h:29:4: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "utility/uip.h"

      ^
      

      In file included from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPEthernet.h:34:0,

                   from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPEthernet.cpp:21:
      

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPServer.h:23:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "Server.h"

      ^

      In file included from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPEthernet.h:34:0,

                   from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPEthernet.cpp:21:
      

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPServer.h:24:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "UIPClient.h"

      ^

      In file included from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPEthernet.h:33:0,

                   from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPServer.cpp:19:
      

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPClient.h:25:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "Client.h"

      ^

      In file included from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPEthernet.h:33:0,

                   from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPServer.cpp:19:
      

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPClient.h:26:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "utility/mempool.h"

      ^

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPClient.h:29:4: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "utility/uip.h"

      ^
      

      In file included from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPEthernet.h:34:0,

                   from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPServer.cpp:19:
      

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPServer.h:23:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "Server.h"

      ^

      In file included from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPEthernet.h:34:0,

                   from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPServer.cpp:19:
      

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPServer.h:24:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "UIPClient.h"

      ^

      In file included from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPEthernet.h:33:0,

                   from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPUdp.cpp:20:
      

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPClient.h:25:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "Client.h"

      ^

      In file included from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPEthernet.h:33:0,

                   from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPUdp.cpp:20:
      

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPClient.h:26:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "utility/mempool.h"

      ^

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPClient.h:29:4: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "utility/uip.h"

      ^
      

      In file included from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPEthernet.h:34:0,

                   from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPUdp.cpp:20:
      

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPServer.h:23:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "Server.h"

      ^

      In file included from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPEthernet.h:34:0,

                   from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPUdp.cpp:20:
      

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\UIPServer.h:24:2: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "UIPClient.h"

      ^

      In file included from C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\utility\uip_debug.cpp:4:0:

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master/utility/uip_debug.h:4:4: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "utility/uip.h"

      ^
      

      C:\Users\Hampus\Documents\Arduino\libraries\arduino_uip-master\utility\uip_debug.cpp:6:4: warning: #import is a deprecated GCC extension [-Wdeprecated]

      #import "utility/uip.h"

      ^
      

      Sketch uses 30,034 bytes (97%) of program storage space. Maximum is 30,720 bytes.
      Global variables use 1,761 bytes (85%) of dynamic memory, leaving 287 bytes for local variables. Maximum is 2,048 bytes.
      Low memory available, stability problems may occur.
      Invalid version found: 1.04
      Invalid version found: 1.04

      posted in Troubleshooting
      jonehr
      jonehr
    • RE: ENC28J60 Ethernet gateway problem with Domoticz?

      @mfalkvidd
      There is nothing in Domoticz and gateway log that indicate the pressed button.

      posted in Troubleshooting
      jonehr
      jonehr
    • RE: ENC28J60 Ethernet gateway problem with Domoticz?

      @mfalkvidd

      Have tried to press the button...

      Log Domoticz:
      2016-10-27 19:00:37.439 MySensors: trying to connect to: 192.168.0.166:5003
      2016-10-27 19:00:38.441 MySensors: connected to: 192.168.0.166:5003
      2016-10-27 19:00:39.442 MySensors: Gateway Ready...
      2016-10-27 19:00:39.442 MySensors: Gateway Version: 2.0.0
      2016-10-27 19:00:40.443 MySensors: Gateway Version: 2.0.0

      Log node:
      ��Starting sensor (RNNNA-, 2.0.0)
      TSM:INIT
      TSM:RADIO:OK
      TSP:ASSIGNID:OK (ID=1)
      TSM:FPAR
      TSP:MSG:SEND 1-1-255-255 s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=bc:
      TSP:MSG:READ 0-0-1 s=255,c=3,t=8,pt=1,l=1,sg=0:0
      TSP:MSG:FPAR RES (ID=0, dist=0)
      TSP:MSG:PAR OK (ID=0, dist=1)
      TSP:MSG:READ 0-0-1 s=255,c=3,t=8,pt=1,l=1,sg=0:0
      TSP:MSG:FPAR RES (ID=0, dist=0)
      TSM:FPAR:OK
      TSM:ID
      TSM:CHKID:OK (ID=1)
      TSM:UPL
      TSP:PING:SEND (dest=0)
      TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=ok:1
      TSP:MSG:READ 0-0-1 s=255,c=3,t=25,pt=1,l=1,sg=0:1
      TSP:MSG:PONG RECV (hops=1)
      TSP:CHKUPL:OK
      TSM:UPL:OK
      TSM:READY
      TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=ok:0100
      TSP:MSG:SEND 1-1-0-0 s=255,c=0,t=17,pt=0,l=5,sg=0,ft=0,st=ok:2.0.0
      TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=ok:0
      TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=11,pt=0,l=13,sg=0,ft=0,st=ok:Binary Sensor
      TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=ok:1.0
      TSP:MSG:SEND 1-1-0-0 s=3,c=0,t=0,pt=0,l=0,sg=0,ft=0,st=ok:
      TSP:MSG:SEND 1-1-0-0 s=4,c=0,t=0,pt=0,l=0,sg=0,ft=0,st=ok:
      Request registration...
      TSP:MSG:SEND 1-1-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=ok:2
      TSP:MSG:READ 0-0-1 s=255,c=3,t=27,pt=1,l=1,sg=0:1
      Node registration=1
      Init complete, id=1, parent=0, distance=1, registration=1
      TSP:MSG:SEND 1-1-0-0 s=3,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=ok:1
      TSP:MSG:SEND 1-1-0-0 s=4,c=1,t=16,pt=2,l=2,sg=0,ft=0,st=ok:0

      posted in Troubleshooting
      jonehr
      jonehr
    • ENC28J60 Ethernet gateway problem with Domoticz?

      Trying to get the Ethernet gateway to work. Can someone tell me what the logg tells me. It seems to connect and when i start a binary sensor the last five lines pop up. Does it work? the binary sensor don’t pop up in Domoticz.

      0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
      0;255;3;0;9;TSM:INIT
      0;255;3;0;9;TSM:RADIO:OK
      0;255;3;0;9;TSM:GW MODE
      0;255;3;0;9;TSM:READY
      IP: 192.168.0.166
      0;255;3;0;9;No registration required
      0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
      0;255;3;0;9;Eth: connect
      0;255;3;0;9;Eth: 0;0;3;0;2;
      0;255;3;0;9;Eth: 0;0;3;0;2;Get Version
      0;255;3;0;9;Eth: 0;0;3;0;18;PING
      0;255;3;0;9;Eth: 0;0;3;0;18;PING
      0;255;3;0;9;TSP:SANCHK:OK
      0;255;3;0;9;TSP:MSG:READ 1-1-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
      0;255;3;0;9;TSP:MSG:BC
      0;255;3;0;9;TSP:MSG:FPAR REQ (sender=1)
      0;255;3;0;9;TSP:CHKUPL:OK
      0;255;3;0;9;TSP:MSG:GWL OK

      posted in Troubleshooting
      jonehr
      jonehr
    • Problem: I don't get an IP address

      I've made a serial gateway 2.0.0 and a binary switch 2.0.0 and this i working with my domotics. Now I'm trying to make an ethernet gateway and it seems to work exept that i don't ge an IP address. I've tried to disable #define MY_IP_ADDRESS but then it stops before I get the row IP:xxxxxxx
      What have I been doing wrong?

      Do I need to say I'm a newbie...

      This is what I see in the serial monitor:
      0;255;3;0;9;Starting gateway (RNNGA-, 2.0.0)
      0;255;3;0;9;TSM:INIT
      0;255;3;0;9;TSM:RADIO:OK
      0;255;3;0;9;TSM:GW MODE
      0;255;3;0;9;TSM:READY
      IP: 0.0.0.0
      0;255;3;0;9;No registration required
      0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
      0;255;3;0;9;TSP:SANCHK:OK
      0;255;3;0;9;TSP:SANCHK:OK

      This is what I uploaded:
      /**

      • The MySensors Arduino library handles the wireless radio link and protocol
      • between your home built sensors/actuators and HA controller of choice.
      • The sensors forms a self healing radio network with optional repeaters. Each
      • repeater and gateway builds a routing tables in EEPROM which keeps track of the
      • network topology allowing messages to be routed to nodes.
      • Created by Henrik Ekblad henrik.ekblad@mysensors.org
      • Copyright (C) 2013-2015 Sensnology AB
      • Full contributor list: https://github.com/mysensors/Arduino/graphs/contributors
      • Documentation: http://www.mysensors.org
      • Support Forum: http://forum.mysensors.org
      • This program is free software; you can redistribute it and/or
      • modify it under the terms of the GNU General Public License
      • version 2 as published by the Free Software Foundation.

      • REVISION HISTORY
      • Version 1.0 - Henrik EKblad
      • Contribution by a-lurker and Anticimex,
      • Contribution by Norbert Truchsess norbert.truchsess@t-online.de
      • Contribution by Tomas Hozza thozza@gmail.com
      • DESCRIPTION
      • The EthernetGateway sends data received from sensors to the ethernet link.
      • The gateway also accepts input on ethernet interface, which is then sent out to the radio network.
      • The GW code is designed for Arduino 328p / 16MHz. ATmega168 does not have enough memory to run this program.
      • LED purposes:
        • To use the feature, uncomment WITH_LEDS_BLINKING in MyConfig.h
        • RX (green) - blink fast on radio message recieved. In inclusion mode will blink fast only on presentation recieved
        • TX (yellow) - blink fast on radio message transmitted. In inclusion mode will blink slowly
        • ERR (red) - fast blink on error during transmission error or recieve crc error
      • See http://www.mysensors.org/build/ethernet_gateway for wiring instructions.

      */

      // Enable debug prints to serial monitor
      #define MY_DEBUG

      // Enable and select radio type attached
      #define MY_RADIO_NRF24
      //#define MY_RADIO_RFM69

      // Enable gateway ethernet module type
      #define MY_GATEWAY_W5100

      // W5100 Ethernet module SPI enable (optional if using a shield/module that manages SPI_EN signal)
      //#define MY_W5100_SPI_EN 4

      // Enable Soft SPI for NRF radio (note different radio wiring is required)
      // The W5100 ethernet module seems to have a hard time co-operate with
      // radio on the same spi bus.
      #if !defined(MY_W5100_SPI_EN) && !defined(ARDUINO_ARCH_SAMD)
      #define MY_SOFTSPI
      #define MY_SOFT_SPI_SCK_PIN 14
      #define MY_SOFT_SPI_MISO_PIN 16
      #define MY_SOFT_SPI_MOSI_PIN 15
      #endif

      // When W5100 is connected we have to move CE/CSN pins for NRF radio
      #ifndef MY_RF24_CE_PIN
      #define MY_RF24_CE_PIN 5
      #endif
      #ifndef MY_RF24_CS_PIN
      #define MY_RF24_CS_PIN 6
      #endif

      // Enable to UDP
      //#define MY_USE_UDP

      #define MY_IP_ADDRESS 192,168,0,222 // If this is disabled, DHCP is used to retrieve address
      // Renewal period if using DHCP
      //#define MY_IP_RENEWAL_INTERVAL 60000
      // The port to keep open on node server mode / or port to contact in client mode
      #define MY_PORT 5003

      // Controller ip address. Enables client mode (default is "server" mode).
      // Also enable this if MY_USE_UDP is used and you want sensor data sent somewhere.
      //#define MY_CONTROLLER_IP_ADDRESS 192, 168, 0, 203

      // The MAC address can be anything you want but should be unique on your network.
      // Newer boards have a MAC address printed on the underside of the PCB, which you can (optionally) use.
      // Note that most of the Ardunio examples use "DEAD BEEF FEED" for the MAC address.
      #define MY_MAC_ADDRESS 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED

      // Flash leds on rx/tx/err
      #define MY_LEDS_BLINKING_FEATURE
      // Set blinking period
      #define MY_DEFAULT_LED_BLINK_PERIOD 300

      // Enable inclusion mode
      #define MY_INCLUSION_MODE_FEATURE
      // Enable Inclusion mode button on gateway
      #define MY_INCLUSION_BUTTON_FEATURE
      // Set inclusion mode duration (in seconds)
      #define MY_INCLUSION_MODE_DURATION 60
      // Digital pin used for inclusion mode button
      #define MY_INCLUSION_MODE_BUTTON_PIN 3

      // Uncomment to override default HW configurations
      //#define MY_DEFAULT_ERR_LED_PIN 7 // Error led pin
      //#define MY_DEFAULT_RX_LED_PIN 8 // Receive led pin
      //#define MY_DEFAULT_TX_LED_PIN 9 // the PCB, on board LED

      #include <SPI.h>

      #if defined(MY_USE_UDP)
      #include <EthernetUdp.h>
      #endif
      #include <Ethernet.h>
      #include <MySensors.h>

      void setup()
      {
      }

      void loop() {
      }

      posted in Troubleshooting
      jonehr
      jonehr