Navigation

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

    Robinek70

    @Robinek70

    2
    Reputation
    10
    Posts
    373
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Robinek70 Follow

    Best posts made by Robinek70

    • [Solved] RF24 connection MySensors 2.0 doesn't works but 1.5.4 works

      Hello,
      On the beginning I would like to apologise for my poor English and little knowledge about MySensors.

      I have a few nodes on MySensors 1.5.4 (works already for a few months) and I wanted to change to MySensors 2.0.
      I refactored sketch code and... it doesn't work 😞

      I prepared simple sketch for 2.0 and 1.5.4 to send message every one seconds to controller.
      and again 2.0 doesn't work. I used the same hardware for both.
      I connected serial monitor and 2.0 stuck. Radio init is ok, but can't establish connection with controller (controller is close to node).
      Both MySensors used RF24_PA_LOW and use cheap China RF24 module with capacitors (47uf and 100n) on power pins.

      But, if I touch antenna by my finger, connection is established and messages go to controller, if I let antenna node report sending fail 😞

      On MySensors 1.5.4 I don't have similar problems, all messages arrive to controller, I observe similar behavior on 1.5.4 if I use RF24_PA_MAX but not RF24_PA_LOW.
      I would like to use MySensors 2.0 but can't.
      It looks like setup for RF24 is different.
      Could anyone help me with configuration of 2.0, or maybe version 2.0 has some bug related with setup RF24 signal?

      thanks
      Robert

      posted in General Discussion
      Robinek70
      Robinek70
    • RE: [Solved] RF24 connection MySensors 2.0 doesn't works but 1.5.4 works

      It's me again, sorry that I bother you.
      I found problem so I just copy definition RF24_PA_LEVEL instead of MY_RF24_PA_LEVEL

      regards,

      posted in General Discussion
      Robinek70
      Robinek70

    Latest posts made by Robinek70

    • RE: MySensors 2.3.0 released

      Hi,
      Some time ago, I've updated RPi gateway on NF24 from 2.2 to 2.3
      Now I see that OTA stopped working.
      I had to go back to version 2.2.
      On version 2.3 in log I see a lot of FFFFFFFFFFFFFFFFFF data and rebooting, over and over again.

      Did anyone have a similar problem?

      posted in Announcements
      Robinek70
      Robinek70
    • RE: C Definition in sketch to configure library

      full test files

      File in path Arduino/Test/

      //test.ino
      #define MY_RADIO_NRF24
      
      #define MY_USE_ADC_FILTER 
      
      #include <RPlib.h>
      
      void setup() {
      }
      
      void loop() {
        Serial.println(getAdc());
      }
      

      Files in path Arduino/libraries/RPlib/

      //RPlib.h
      #ifndef MY_ADC_PIN
        #define MY_ADC_PIN  A0
      #endif
      
      #define DT_FILTER  10
      
      int getAdc();
      
      //RPlib.cpp
      #include <RPlib.h>
      #include <Arduino.h>
      static int prevValue;
      
      int getAdc() {
        int value = analogRead(MY_ADC_PIN);
        #ifdef MY_USE_ADC_FILTER
      		#error  FILTER
            prevValue = (prevValue *DT_FILTER  + value) / (DT_FILTER  + 1);
        #else
      	#error  NO FILTER
            prevValue = value;
        #endif
        return prevValue;
      }
      

      I always got
      #error NO FILTER

      posted in Development
      Robinek70
      Robinek70
    • RE: C Definition in sketch to configure library

      it's very strange for me.
      I checked under two environments:
      Arduino 1.6.7 and Visual Studio 2012 with plugin Visual Micro.
      And my result of tests:
      directly under Arduino, .h file see definition from sketch, but .cpp file don't 😞
      under VS definition isn't visible in .h and .cpp files.

      posted in Development
      Robinek70
      Robinek70
    • RE: C Definition in sketch to configure library

      it is something like below.
      Definitions
      #define MY_USE_ADC_FILTER
      #define MY_ADC_PIN
      are not visible in .h and .cpp.
      I don't know what I'm doing wrong 😞

      //test.ino
      #define MY_RADIO_NRF24
      
      #define MY_USE_ADC_FILTER
      #define MY_ADC_PIN
      
      #include <RPlibs.h>
      #include <MySensors.h> 
      ...
      
      //RPlibs.h
      
      #ifndef MY_ADC_PIN
        #defie MY_ADC_PIN  A0
      #endif
      
      #define DT_FILTER  10
      int getAdc();
      
      //RPlibs.cpp
      #include <RPlibs.h>
      static int prevValue ;
      int getAdc() {
        int value = analogRead(MY_ADC_PIN);
        #ifdef MY_USE_ADC_FILTER
            prevValue = (prevValue *DT_FILTER  + value) / (DT_FILTER  + 1);
        #else
            prevValue = value;
        #endif
        return prevValue 
      }
      
      posted in Development
      Robinek70
      Robinek70
    • C Definition in sketch to configure library

      Hello,

      I'm trying to write own library.
      I would like to library was configurable from sketch by #define MY_USE_ADC_FILTER similar like configuration MySensors.
      But my library don't see definition from sketch in my .h and .cpp files.

      I don't know how it is done in MySensors library.
      Could someone just explain how to achieve similar behaviour?

      Thanks
      Robert

      posted in Development
      Robinek70
      Robinek70
    • RE: 💬 Building a Raspberry Pi Gateway

      @marceloaqno, Thanks a lot

      posted in Announcements
      Robinek70
      Robinek70
    • RE: 💬 Building a Raspberry Pi Gateway

      Hello everyone,
      I've been working gateway on RPi, but I don't know how to configure MY_SIGNING_SOFT .
      File mysgw.cpp contains MY_SIGNING_SOFT definition and I can uncomment it, but I don't know where and how I should define: SOFT_HMAC_KEY, SOFT_SERIAL and AES_KEY ?
      Could you give more details how to configure soft signing on RPi?
      thanks
      //Robert

      posted in Announcements
      Robinek70
      Robinek70
    • RE: [Solved] RF24 connection MySensors 2.0 doesn't works but 1.5.4 works

      It's me again, sorry that I bother you.
      I found problem so I just copy definition RF24_PA_LEVEL instead of MY_RF24_PA_LEVEL

      regards,

      posted in General Discussion
      Robinek70
      Robinek70
    • [Solved] RF24 connection MySensors 2.0 doesn't works but 1.5.4 works

      Hello,
      On the beginning I would like to apologise for my poor English and little knowledge about MySensors.

      I have a few nodes on MySensors 1.5.4 (works already for a few months) and I wanted to change to MySensors 2.0.
      I refactored sketch code and... it doesn't work 😞

      I prepared simple sketch for 2.0 and 1.5.4 to send message every one seconds to controller.
      and again 2.0 doesn't work. I used the same hardware for both.
      I connected serial monitor and 2.0 stuck. Radio init is ok, but can't establish connection with controller (controller is close to node).
      Both MySensors used RF24_PA_LOW and use cheap China RF24 module with capacitors (47uf and 100n) on power pins.

      But, if I touch antenna by my finger, connection is established and messages go to controller, if I let antenna node report sending fail 😞

      On MySensors 1.5.4 I don't have similar problems, all messages arrive to controller, I observe similar behavior on 1.5.4 if I use RF24_PA_MAX but not RF24_PA_LOW.
      I would like to use MySensors 2.0 but can't.
      It looks like setup for RF24 is different.
      Could anyone help me with configuration of 2.0, or maybe version 2.0 has some bug related with setup RF24 signal?

      thanks
      Robert

      posted in General Discussion
      Robinek70
      Robinek70