Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
Robinek70R

Robinek70

@Robinek70
About
Posts
10
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • MySensors 2.3.0 released
    Robinek70R Robinek70

    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?

    Announcements

  • C Definition in sketch to configure library
    Robinek70R Robinek70

    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

    Development

  • C Definition in sketch to configure library
    Robinek70R Robinek70

    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.

    Development

  • C Definition in sketch to configure library
    Robinek70R Robinek70

    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 
    }
    
    Development

  • C Definition in sketch to configure library
    Robinek70R Robinek70

    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

    Development

  • 💬 Building a Raspberry Pi Gateway
    Robinek70R Robinek70

    @marceloaqno, Thanks a lot

    Announcements

  • 💬 Building a Raspberry Pi Gateway
    Robinek70R Robinek70

    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

    Announcements

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

    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,

    General Discussion

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

    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

    General Discussion
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular