Navigation

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

    Posts made by delinend

    • RE: Using "void request" without Controler.

      @hek
      Thanks for the answer 🙂

      posted in Troubleshooting
      delinend
      delinend
    • Using "void request" without Controler.

      Is it possible, to use the void request without a Controler?
      The setup is Node1 sends a status to SerialGateway, and goes to sleep.
      Node2 is asking for the status from Node1, on the SerialGateway (the Node1 is at sleep).
      Do the SerialGateway keep track of the status from Node1, after Node1 is going for sleep ?

      posted in Troubleshooting
      delinend
      delinend
    • RE: SerialGateway is rebooting on relay.

      @tekka
      Hmmm Strange. It work fine with 1.6.11 ?!?

      Why is there errors with 1.6.14 - 1.6.13 and 1.6.12 ?

      posted in Troubleshooting
      delinend
      delinend
    • RE: SerialGateway is rebooting on relay.

      @tekka
      And yes... If I remove the MY_DEBUG, it do NOT reboot !?!

      So the SerialGateway reboot only, when I use the #define MY_DEBUG

      Strange 😞

      posted in Troubleshooting
      delinend
      delinend
    • RE: SerialGateway is rebooting on relay.

      @tekka
      Her my codes...

      Node(ID 6):

      // Enable debug prints to serial monitor
      #define MY_DEBUG
      
      // Enable and select radio type attached
      #define MY_RADIO_NRF24
      
      #define MY_NODE_ID 6
      //#define MY_DEFAULT_ERR_LED_PIN 4
      #define MY_RF24_CHANNEL 101
      #define MY_RF24_DATARATE RF24_250KBPS
      #define MY_RF24_PA_LEVEL RF24_PA_MIN
      
      //#define MY_PARENT_NODE_ID 0
      //#define MY_TRANSPORT_DONT_CARE_MODE
      
      #include <MySensors.h>
      
      #define SKETCH_NAME "Binary Sensor"
      #define SKETCH_MAJOR_VER "1"
      #define SKETCH_MINOR_VER "0"
      
      #define PRIMARY_CHILD_ID 3
      
      
      #define PRIMARY_BUTTON_PIN 2   // Arduino Digital I/O pin for button/reed switch
      
      
      // Change to V_LIGHT if you use S_LIGHT in presentation below
      MyMessage msg(PRIMARY_CHILD_ID, V_TRIPPED);
      
      
      void setup()
      {
        // Setup the buttons
        pinMode(PRIMARY_BUTTON_PIN, INPUT);
      
      }
      
      void presentation() {
        // Send the sketch version information to the gateway and Controller
        sendSketchInfo(SKETCH_NAME, SKETCH_MAJOR_VER "." SKETCH_MINOR_VER);
      
        // Register binary input sensor to sensor_node (they will be created as child devices)
        // You can use S_DOOR, S_MOTION or S_LIGHT here depending on your usage.
        // If S_LIGHT is used, remember to update variable type you send in. See "msg" above.
        present(PRIMARY_CHILD_ID, S_DOOR);
      
      }
      
      // Loop will iterate on changes on the BUTTON_PINs
      void loop()
      {
        uint8_t value;
        static uint8_t sentValue=2;
        //static uint8_t sentValue2=2;
      
        // Short delay to allow buttons to properly settle
        sleep(5);
      
        value = digitalRead(PRIMARY_BUTTON_PIN);
      
        if (value != sentValue) {
           // Value has changed from last transmission, send the updated value
           send(msg.setDestination(0).set(value==HIGH));
           send(msg.setDestination(7).set(value==HIGH));
           
           sentValue = value;
        }
      
      
      
        // Sleep until something happens with the sensor
        sleep(PRIMARY_BUTTON_PIN-2, CHANGE, 0);
      }
      

      Here the SerialGateway code:

      // Enable debug prints to serial monitor
      #define MY_DEBUG
      //#define MY_DEBUG_VERBOSE_RF24
      
      
      // Enable and select radio type attached
      #define MY_RADIO_NRF24
      
      #define MY_RF24_CHANNEL 101
      #define MY_RF24_DATARATE RF24_250KBPS
      #define MY_RF24_PA_LEVEL RF24_PA_MIN
      
      
      // Enable serial gateway
      #define MY_GATEWAY_SERIAL
      
      // Define a lower baud rate for Arduino's running on 8 MHz (Arduino Pro Mini 3.3V & SenseBender)
      #if F_CPU == 8000000L
      //#define MY_BAUD_RATE 38400
      #endif
      
      // Enable inclusion mode
      #define MY_INCLUSION_MODE_FEATURE
      // Enable Inclusion mode button on gateway
      //#define MY_INCLUSION_BUTTON_FEATURE
      
      // Inverses behavior of inclusion button (if using external pullup)
      //#define MY_INCLUSION_BUTTON_EXTERNAL_PULLUP
      
      // 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
      
      // Set blinking period
      #define MY_DEFAULT_LED_BLINK_PERIOD 300
      
      // Inverses the behavior of leds
      //#define MY_WITH_LEDS_BLINKING_INVERSE
      
      // Flash leds on rx/tx/err
      // Uncomment to override default HW configurations
      //#define MY_DEFAULT_ERR_LED_PIN 4  // Error led pin
      //#define MY_DEFAULT_RX_LED_PIN  6  // Receive led pin
      //#define MY_DEFAULT_TX_LED_PIN  5  // the PCB, on board LED
      
      #include <MySensors.h>
      
      void setup() {
        // Setup locally attached sensors
      }
      
      void presentation() {
       // Present locally attached sensors
       
      }
      
      void loop() {
        delay(1);
      }
      
      void receive(const MyMessage &message) {
      }
      
      
      posted in Troubleshooting
      delinend
      delinend
    • RE: SerialGateway is rebooting on relay.

      @tekka
      Hmm.. That is ode..
      If I enable the MY_DEBUG_VERBOSE_RF24, the SerialGateway is NOT rebooting ?!?!

      Here a snip from the LOG:

      0;255;3;0;9;RF24:read register, reg=23, value=17
      0;255;3;0;9;RF24:read register, reg=23, value=17
      0;255;3;0;9;RF24:read register, reg=23, value=17
      0;255;3;0;9;RF24:read register, reg=23, value=17
      0;255;3;0;9;RF24:read register, reg=23, value=16
      0;255;3;0;9;RF24:read message, len=8
      0;255;3;0;9;RF24:write register, reg=7, value=64
      0;255;3;0;9;TSF:MSG:READ,6-6-0,s=3,c=1,t=16,pt=1,l=1,sg=0:1
      6;3;1;0;16;1
      0;255;3;0;9;RF24:read register, reg=23, value=16
      0;255;3;0;9;RF24:read message, len=8
      0;255;3;0;9;RF24:write register, reg=7, value=64
      0;255;3;0;9;TSF:MSG:READ,6-6-7,s=3,c=1,t=16,pt=1,l=1,sg=0:1
      0;255;3;0;9;TSF:MSG:REL MSG
      0;255;3;0;9;RF24:stop listening
      0;255;3;0;9;RF24:write register, reg=0, value=14
      0;255;3;0;9;RF24:open writing pipe, recipient=7
      0;255;3;0;9;RF24:write register, reg=10, value=7
      0;255;3;0;9;RF24:write register, reg=16, value=7
      0;255;3;0;9;RF24:send message to 7, len=8
      0;255;3;0;9;RF24:flushTX
      0;255;3;0;9;RF24:write register, reg=7, value=48
      0;255;3;0;9;RF24:MAX_RT
      0;255;3;0;9;RF24:flushTX
      0;255;3;0;9;RF24:start listening
      0;255;3;0;9;RF24:write register, reg=0, value=15
      0;255;3;0;9;RF24:write register, reg=10, value=0
      0;255;3;0;9;!TSF:MSG:SEND,6-0-7-7,s=3,c=1,t=16,pt=1,l=1,sg=0,ft=0,st=NACK:1
      0;255;3;0;9;RF24:read register, reg=23, value=17
      0;255;3;0;9;RF24:read register, reg=23, value=17
      0;255;3;0;9;RF24:read register, reg=23, value=17
      0;255;3;0;9;RF24:read register, reg=23, value=17
      0;255;3;0;9;RF24:read register, reg=23, value=17```
      posted in Troubleshooting
      delinend
      delinend
    • RE: SerialGateway is rebooting on relay.

      @tekka
      Sure.. AVR Boards version 1.6.14

      Here the SerialGateway:

      0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.0.1-beta
      0;255;3;0;9;TSM:INIT
      0;255;3;0;9;TSM:INIT:TSP OK
      0;255;3;0;9;TSM:INIT:GW MODE
      0;255;3;0;9;TSM:READY
      0;255;3;0;14;Gateway startup complete.
      0;255;0;0;18;2.0.1-beta
      0;255;3;0;9;MCO:REG:NOT NEEDED
      0;255;3;0;9;MCO:BGN:STP
      0;255;3;0;9;MCO:BGN:INIT OK,ID=0,PAR=0,DIS=0,REG=1
      0;255;3;0;9;TSF:MSG:READ,6-6-255,s=255,c=3,t=7,pt=0,l=0,sg=0:
      0;255;3;0;9;TSF:MSG:BC
      0;255;3;0;9;TSF:MSG:FPAR REQ,ID=6
      0;255;3;0;9;TSF:PNG:SEND,TO=0
      0;255;3;0;9;TSF:CKU:OK
      0;255;3;0;9;TSF:MSG:GWL OK
      0;255;3;0;9;TSF:MSG:SEND,0-0-6-6,s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=OK:0
      0;255;3;0;9;TSF:MSG:READ,6-6-0,s=255,c=3,t=24,pt=1,l=1,sg=0:1
      0;255;3;0;9;TSF:MSG:PINGED,ID=6,HP=1
      0;255;3;0;9;TSF:MSG:SEND,0-0-6-6,s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=OK:1
      0;255;3;0;9;TSF:MSG:READ,6-6-0,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
      0;255;3;0;9;TSF:MSG:SEND,0-0-6-6,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
      0;255;3;0;9;TSF:MSG:READ,6-6-0,s=255,c=0,t=17,pt=0,l=10,sg=0:2.0.1-beta
      6;255;0;0;17;2.0.1-beta
      0;255;3;0;9;TSF:MSG:READ,6-6-0,s=255,c=3,t=6,pt=1,l=1,sg=0:0
      6;255;3;0;6;0
      0;255;3;0;9;TSF:MSG:READ,6-6-0,s=255,c=3,t=11,pt=0,l=13,sg=0:Binary Sensor
      6;255;3;0;11;Binary Sensor
      0;255;3;0;9;TSF:MSG:READ,6-6-0,s=255,c=3,t=12,pt=0,l=3,sg=0:1.0
      6;255;3;0;12;1.0
      0;255;3;0;9;TSF:MSG:READ,6-6-0,s=3,c=0,t=0,pt=0,l=0,sg=0:
      6;3;0;0;0;
      0;255;3;0;9;TSF:MSG:READ,6-6-0,s=255,c=3,t=26,pt=1,l=1,sg=0:2
      0;255;3;0;9;TSF:MSG:SEND,0-0-6-6,s=255,c=3,t=27,pt=1,l=1,sg=0,ft=0,st=OK:1
      0;255;3;0;9;TSF:MSG:READ,6-6-0,s=3,c=1,t=16,pt=1,l=1,sg=0:1
      6;3;1;0;16;1
      0;255;3;0;9;TSF:MSG:READ,6-6-7,s=3,c=1,t=16,pt=1,l=1,sg=0:1
      0;255;3;0;9;TSF:MSG:REL MSG
      0;255;3;0;9;!TSF:MSG:SEND,6-0-7-7,s=3,c=1,t=16,pt=1,l=1,sg=0,ft=0,st=NACK:1
      0;255;3;0;9;MCO:BGN:INIT GW,CP=RNNGA--,VER=2.0.1-beta
      0;255;3;0;9;TSM:INIT
      0;255;3;0;9;TSM:INIT:TSP OK
      0;255;3;0;9;TSM:INIT:GW MODE
      0;255;3;0;9;TSM:READY
      0;255;3;0;14;Gateway startup complete.
      0;255;0;0;18;2.0.1-beta
      0;255;3;0;9;MCO:REG:NOT NEEDED
      0;255;3;0;9;MCO:BGN:STP
      0;255;3;0;9;MCO:BGN:INIT OK,ID=0,PAR=0,DIS=0,REG=1
      

      Here Node(ID 6) that sends data to the SerialGateway, and Node(ID 7). The Node(ID 7) is turned OFF.:

      0 MCO:BGN:INIT NODE,CP=RNNNA--,VER=2.0.1-beta
      4 TSM:INIT
      10 TSM:INIT:TSP OK
      12 TSM:INIT:STATID=6
      14 TSF:SID:OK,ID=6
      16 TSM:FPAR
      53 TSF:MSG:SEND,6-6-255-255,s=255,c=3,t=7,pt=0,l=0,sg=0,ft=0,st=OK:
      137 TSF:MSG:READ,0-0-6,s=255,c=3,t=8,pt=1,l=1,sg=0:0
      143 TSF:MSG:FPAR OK,ID=0,D=1
      2062 TSM:FPAR:OK
      2062 TSM:ID
      2064 TSM:ID:OK
      2066 TSM:UPL
      2070 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=OK:1
      2088 TSF:MSG:READ,0-0-6,s=255,c=3,t=25,pt=1,l=1,sg=0:1
      2095 TSF:MSG:PONG RECV,HP=1
      2099 TSM:UPL:OK
      2101 TSM:READY
      2103 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=15,pt=6,l=2,sg=0,ft=0,st=OK:0100
      2113 TSF:MSG:SEND,6-6-0-0,s=255,c=0,t=17,pt=0,l=10,sg=0,ft=0,st=OK:2.0.1-beta
      2123 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=6,pt=1,l=1,sg=0,ft=0,st=OK:0
      2131 TSF:MSG:READ,0-0-6,s=255,c=3,t=15,pt=6,l=2,sg=0:0100
      4134 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=11,pt=0,l=13,sg=0,ft=0,st=OK:Binary Sensor
      4145 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=12,pt=0,l=3,sg=0,ft=0,st=OK:1.0
      4153 TSF:MSG:SEND,6-6-0-0,s=3,c=0,t=0,pt=0,l=0,sg=0,ft=0,st=OK:
      4161 MCO:REG:REQ
      4165 TSF:MSG:SEND,6-6-0-0,s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=OK:2
      4175 TSF:MSG:READ,0-0-6,s=255,c=3,t=27,pt=1,l=1,sg=0:1
      4182 MCO:PIM:NODE REG=1
      4184 MCO:BGN:STP
      4186 MCO:BGN:INIT OK,ID=6,PAR=0,DIS=1,REG=1
      4190 MCO:SLP:MS=5,SMS=0,I1=255,M1=255,I2=255,M2=255
      4196 MCO:SLP:TPD
      4198 MCO:SLP:WUP=-1
      4202 TSF:MSG:SEND,6-6-0-0,s=3,c=1,t=16,pt=1,l=1,sg=0,ft=0,st=OK:1
      4210 TSF:MSG:SEND,6-6-0-7,s=3,c=1,t=16,pt=1,l=1,sg=0,ft=0,st=OK:1
      4218 MCO:SLP:MS=0,SMS=0,I1=0,M1=1,I2=255,M2=255
      4222 MCO:SLP:TPD
      

      Btw. I have tryed to set all radio's to MIN power. But same result. If I turn ON Node(ID 7), everything works fine.

      posted in Troubleshooting
      delinend
      delinend
    • RE: SerialGateway is rebooting on relay.

      @hek
      Yes. 100uF and a 10nF (parallel) on all Radio's.
      I see no problem, when I send from Node(ID 6) to the SerialGateway.
      And I see no problem when I send from Node(ID 6) via the SerialGateway to Node(ID 7).

      The SerialGateway reboot's, if I turn OFF Node(ID 7) and the SerialGateway can't send to it.

      posted in Troubleshooting
      delinend
      delinend
    • RE: SerialGateway is rebooting on relay.

      Hmm. I can see, it at general problem, when sending a message from one Node to another Node (that is turned OFF), via a SerialGateway, that the SerialGateway is making a Reset/reinitialyzation (Gateway startup complete), upone tryning to relay/delivery the message to the Node, that now is turned OFF.

      Node(ID 6) -> SerialGateway -> Node(ID 7 and turned OFF).

      Using setDestination(7) on Node(ID 6).

      Error on the SerialGateway, just before it restarts (!TSF:MSG:SEND,6.0.7.7,s=3,c=1,t=16.pt=1,1=1,sg=0,ft=0,st=NACK:1)

      posted in Troubleshooting
      delinend
      delinend
    • SerialGateway is rebooting on relay.

      Hi.

      Maybe someone has an idea.

      My setup is: Node6 and Node7, and a SerialGateway.
      When all 3 devices are ON, I can fine transmit from Node6 to Node7, via the SerialGateway.
      On Node 6, I use the command: send(msg.setDestination(7).set(value==HIGH)

      It all works fine.... but if I turn off Node7, then the SerialGateway, is restarting/resetting each time it tryes to reach Node7 (!TSF:MSG:SEND,6.0.7.7,s=3,c=1,t=16.pt=1,1=1,sg=0,ft=0,st=NACK:1)

      How can I prevent the SerialGateway, from doing a reset, when it can't reach a Node, that it is trying to relay to ?

      Btw: I'm using the last 2.0.1-beta develop build, from last night.

      posted in Troubleshooting
      delinend
      delinend
    • RE: Can't get the void receive() to work, on Repeater and Node's

      @AWI
      You hare a Hero 🙂 That works!
      Btw. Is the setting #define MY_TRANSPORT_DONT_CARE_MORE the right setting, when in a 2 Node's only setup ? I can't else get the Node6 beginning transmitting data.

      posted in Troubleshooting
      delinend
      delinend
    • RE: Can't get the void receive() to work, on Repeater and Node's

      @AWI
      Here the Node6, that sends temperatur, from a IR sensor to Parent-ID7

      // Enable debug prints to serial monitor
      #define MY_DEBUG 
      
      // Enable and select radio type attached
      #define MY_RADIO_NRF24
      //#define MY_RADIO_RFM69
      
      #define MY_NODE_ID 6
      //#define MY_DEFAULT_ERR_LED_PIN 4
      #define MY_RF24_CHANNEL 123
      #define MY_RF24_PA_LEVEL RF24_PA_HIGH
      
      #define MY_PARENT_NODE_ID 7
      #define MY_PARENT_NODE_IS_STATIC
      
      //#define MY_REGISTRATION_FEATURE
      #define MY_TRANSPORT_DONT_CARE_MODE
      
      //#define MY_REPEATER_FEATURE
      
      #include <SPI.h>
      #include <MySensors.h>
      #include <Wire.h>
      #include <Adafruit_MLX90614.h>
      
      Adafruit_MLX90614 mlx = Adafruit_MLX90614();
      
      unsigned long SLEEP_TIME = 500; // Sleep time between reads (in milliseconds)
      
      // Initialize temperature message
      MyMessage msg(0,V_TEMP);
      
      float temperature;
      
      
      
      void setup()  
      { 
       mlx.begin();
      }
      
      void presentation() {
        // Send the sketch version information to the gateway and Controller
        sendSketchInfo("Temperature Sensor", "1.1");
        present(0, S_TEMP);
      }
      
      void loop()     
      {     
      
      //  Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempC()); 
      //  Serial.print("*C\tObject = "); Serial.print(mlx.readObjectTempC()); Serial.println("*C");
      
       temperature = mlx.readObjectTempC();
       Serial.println(temperature,1);
            // Send in the new temperature
            send(msg.setSensor(0).set(temperature,1));
      
         
        
        sleep(SLEEP_TIME);
      }
      

      Ande here Node7, from where I can see the temperatur data, via MY_DEBUG, but not via the void receive() function,

      // Enable debug prints to serial monitor
      #define MY_DEBUG
      //#define MY_SPECIAL_DEBUG
      //#define MY_DEBUG_VERBOSE_SIGNING
      //#define MY_DISABLED_SERIAL
      
      
      
      
      // Enable and select radio type attached
      #define MY_RADIO_NRF24
      //#define MY_RADIO_RFM69
      
      #define MY_NODE_ID 7
      //#define MY_DEFAULT_ERR_LED_PIN 4
      #define MY_RF24_CHANNEL 123
      #define MY_RF24_PA_LEVEL RF24_PA_HIGH
      
      
      #define MY_PARENT_NODE_ID 6
      #define MY_PARENT_NODE_IS_STATIC
      #define MY_TRANSPORT_DONT_CARE_MODE
      
      // Set LOW transmit power level as default, if you have an amplified NRF-module and
      // power your radio separately with a good regulator you can turn up PA level.
      //#define MY_RF24_PA_LEVEL RF24_PA_LOW
      
      // Enable serial gateway
      //#define MY_GATEWAY_SERIAL
      //#define MY_GATEWAY_W5100
      //#define MY_REPEATER_FEATURE
      
      
      
      
      #include <MySensors.h>
      
      
      
      
      void setup() {
      //  Serial.begin(19200);
      //  Serial.begin(MY_BAUD_RATE);
        Serial.println("Started . Please wait...");
        // Setup locally attached sensors
      }
      
      void presentation() {
       // Present locally attached sensors
       //sendSketchInfo("Temperature Sensor", "1.1");
      }
      
      void loop() {
        // Send locally attached sensor data here
      //Serial.println(tempp,1);
      delay(10);
      
      }
      
      void receive(const MyMessage &message) {
      //wait(10);
        Serial.println("received something: ");
      //Serial.println(message.type);
        Serial.println(message.sender);
      //  Serial.println(message.sensor);
      //  Serial.println(message.getBool());
      
      }
      
      posted in Troubleshooting
      delinend
      delinend
    • Can't get the void receive() to work, on Repeater and Node's

      Hi.

      I use the last 2.0.1-beta dev. version (from last night), and I can't get the function void receive(const MyMessage &message) to work.
      It works fine on a Gateway setup.

      Have tryed 2 types of setups.

      1. Node(ID6) to a Repeater(ID7). I see the debug data on the repeater, but can't get any data via the void receive().
      2. Node(ID6) to Node(ID7). Also here, I see the data on Node(ID7), but can't get any data via the void receive() funktion.

      Any ideas?
      Node(ID6) has a Static parent to Node-ID7, and Node(ID7) has a Static parent to Node-ID6

      The void receive(const MyMessage &message) funktion, now works fine, from version 2.0.1-beta, on at GatewaySerial setup.

      posted in Troubleshooting
      delinend
      delinend
    • RE: #define MY_DISABLED_SERIAL not stopping all serial data

      @hek
      Can 2 NODE's talk together, without a Repeater or a Gateway ? I have tryed many things, but I can't get any data in the void receive() 😞 I use the #defined MY_TRANSPORT_DONT_CARE_MODE, and the MY_PARENT_NODE_ID and MY_PARENT_NODE_IS_STATIC command setup (NODE ID 6 and 7).

      posted in Bug Reports
      delinend
      delinend
    • RE: Sensor node not working without #define MyDebug

      @tekka
      Hmm.. It works fine without the delay(10), at 3.3V! But if I rice the voltage to around 3.6-3.7V, I have to add the delay(10) again in the void loop(). ?!?!

      Btw. The nRF24l01+ is attached Vcc on the Arduino Mini Pro board.

      posted in Troubleshooting
      delinend
      delinend
    • RE: Sensor node not working without #define MyDebug

      @tekka
      This is with my Lab Powersupply to 3.3V


      V=3300
      F=89


      posted in Troubleshooting
      delinend
      delinend
    • RE: Sensor node not working without #define MyDebug

      Here the output.


      V=3726
      F=89


      The board name is: [Optiboot] Arduino Pro or Pro Mini (3.3V, 8 MHz) w/ ATmega328
      As I use Optiboot bootloader.

      ##############################################################

      pro328o.name=[Optiboot] Arduino Pro or Pro Mini (3.3V, 8 MHz) w/ ATmega328
      pro328o.upload.tool=avrdude
      pro328o.upload.protocol=arduino
      pro328o.upload.maximum_size=32256
      pro328o.upload.maximum_data_size=2048
      pro328o.upload.speed=57600
      pro328o.bootloader.tool=avrdude
      pro328o.bootloader.low_fuses=0xff
      pro328o.bootloader.high_fuses=0xde
      pro328o.bootloader.extended_fuses=0xfd
      pro328o.bootloader.file=optiboot/optiboot_atmega328.hex
      pro328o.bootloader.unlock_bits=0x3F
      pro328o.bootloader.lock_bits=0x0F
      pro328o.build.mcu=atmega328p
      pro328o.build.board=AVR_PRO
      pro328o.build.f_cpu=8000000L
      pro328o.build.core=arduino
      pro328o.build.variant=eightanaloginputs

      ##############################################################

      posted in Troubleshooting
      delinend
      delinend
    • RE: Sensor node not working without #define MyDebug

      @tekka
      It's: Arduino AVR Board Built-In by Arduino version 1.6.14 installed.

      posted in Troubleshooting
      delinend
      delinend
    • RE: Sensor node not working without #define MyDebug

      @tekka
      BN: Unknown board
      VID: 10C4
      PID EA60
      SN: Upload any sketch to obtain it

      Btw. I use OpTiboot loader

      posted in Troubleshooting
      delinend
      delinend
    • RE: #define MY_DISABLED_SERIAL not stopping all serial data

      @mfalkvidd
      So before 2 NODE's only setup, can talk together, I have to remove the REGISTRATION_FEATURE ?

      posted in Bug Reports
      delinend
      delinend
    • RE: #define MY_DISABLED_SERIAL not stopping all serial data

      @mfalkvidd
      Dose it has to be a Gateway to "grab" the incomming data, from my sensor, or just a RepeaterNode ? Like a Sensor->Repeater only setup ? Have tryed this, but can't get it to work.

      posted in Bug Reports
      delinend
      delinend
    • RE: #define MY_DISABLED_SERIAL not stopping all serial data

      @hek
      I was thinking of the same. Can you put me in a direction of an sketch, that I can use for that ?

      posted in Bug Reports
      delinend
      delinend
    • #define MY_DISABLED_SERIAL not stopping all serial data

      It looks like, that the #define MY_DISABLED_SERIAL not is stoping all serial data, from showing up on the serial port, on my GatewaySerial.ino.

      I have used:
      //#define MY_DEBUG
      #define MY_DISABLED_SERIAL
      .
      .
      void setup() {
      Serial.begin(115200);
      }

      But I have a temperatur sensor, that is sending data, to my GW, and it still show data on my GW serial port.

      Ex. temperatur from NODE 6:
      6;0;1;0;0,24.5
      6;0;1;0;0,24.6
      6;0;1;0;0,24.5
      6;0;1;0;0,24.4
      6;0;1;0;0,24.5

      How do I stop this, so that I can use my serial port, on the GatewaySerial, to other things.
      Btw. I only want to "grab" data, via the "void receive()" function.

      My setup:
      Last Mysensor 2.0.1-beta
      2 Arduino Mini Pro (8Mhz) 3.3V version
      2 NRF24l01+ with 47uF caps
      Use a 3.6V LiPo battery on both setup's.
      IDE 1.6.12

      posted in Bug Reports
      delinend
      delinend
    • RE: Sensor node not working without #define MyDebug

      @tekka
      Btw. Another problem. If I use the "#define MY_DISABLED_SERIAL" on my GatewaySerial.ino I still get incomming message on the serial port. Ex. temp sendet from a tempsensor here:
      6;0;1;0;0,24.5
      6;0;1;0;0,24.6
      6;0;1;0;0,24.5
      6;0;1;0;0,24.4
      6;0;1;0;0,24.5

      posted in Troubleshooting
      delinend
      delinend
    • RE: Sensor node not working without #define MyDebug

      @tekka
      Last Mysensor 2.0.1-beta
      2 Arduino Mini Pro (8Mhz) 3.3V version
      2 NRF24l01+ with 47uF caps
      Use a 3.6V LiPo battery on both setup's.
      IDE 1.6.12

      I use the standard GatewaySerial.ino and BinarySwitchSleepSensor.ino sketch, where the problem comes, when I disable the MY_DEBUG in the GatewaySerial.ino sketch.

      I think the problem is, that the "void loop()" in the GatewaySerial.ino is empty, and the Arduino has a timing problem to the radio, as the loop is running to fast, without doing nothing. If I add delay(10) into the "void loop", it all works fine.

      posted in Troubleshooting
      delinend
      delinend
    • RE: Sensor node not working without #define MyDebug

      I have solved it, with the fix from Alex, with a delay(10) in the loop() 🙂 Thanks

      posted in Troubleshooting
      delinend
      delinend
    • RE: Sensor node not working without #define MyDebug

      Update: If I set my RF24 to MIN (#define RF24_PA_LEVEL RF24_PA_MIN), then my NODE's can fine connect to my Serialgateway, with disabled MY_DEBUG. Hmm that's strange ?!?! So yes, maybe it's a timing problem. Btw. I use 47uF on all NRF24's.

      posted in Troubleshooting
      delinend
      delinend
    • RE: Sensor node not working without #define MyDebug

      I have the same problem on Serialgateway 2.0.1-beta. If I disable MY_DEBUG, nothing can't connect to the Gateway.

      posted in Troubleshooting
      delinend
      delinend