Navigation

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

    melwinek

    @melwinek

    0
    Reputation
    22
    Posts
    609
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    melwinek Follow

    Best posts made by melwinek

    This user hasn't posted anything yet.

    Latest posts made by melwinek

    • STM32 signing problem

      When I define MY_SIGNING_SIMPLE_PASSWD
      Then my sketch not compile.
      Latest mysensors lib from git and arduino 1.8.4 and STM32F103C.

      \libraries\MySensors-development/drivers/AES/AES.cpp: In member function 'void AES::printArray(byte*, bool)':
      
      \libraries\MySensors-development/drivers/AES/AES.cpp:559:45: error: 'printf_P' was not declared in this scope
      
          printf_P(PSTR("%c"),output[j*N_BLOCK + i]);
      
                                                   ^
      
      \libraries\MySensors-development/drivers/AES/AES.cpp:562:21: error: 'printf_P' was not declared in this scope
      
        printf_P(PSTR("\n"));
      
                           ^
      
      \libraries\MySensors-development/drivers/AES/AES.cpp: In member function 'void AES::printArray(byte*, int)':
      
      \libraries\MySensors-development/drivers/AES/AES.cpp:570:32: error: 'printf_P' was not declared in this scope
      
         printf_P(PSTR("%x"),output[i]);
      
                                      ^
      
      \libraries\MySensors-development/drivers/AES/AES.cpp:572:21: error: 'printf_P' was not declared in this scope
      
        printf_P(PSTR("\n"));
      
                           ^
      
      posted in Troubleshooting
      melwinek
      melwinek
    • RE: OTA FW update using I2C EEPROM

      @kisse66
      This is not urgent.
      Nice holiday 🙂

      posted in Development
      melwinek
      melwinek
    • RE: HELP !! cannot make Sensor work with RFM69

      I also have a problem with rfm69. NRF24 always works. RFM69 can operate for hours and then disconnect and can not connect to the gateway for a long time.

      posted in Troubleshooting
      melwinek
      melwinek
    • RE: OTA FW update using I2C EEPROM

      kisse66: Bootloader hang only when i disconnect pullup.

      1. Pullup and EEPROM - OK
      2. Pullup without EEPROM - OK
      3. Only EEPROM - Hang
      4. Free I2C pins - Hang
      posted in Development
      melwinek
      melwinek
    • RE: OTA FW update using I2C EEPROM

      kisse66: Arduino with this bootloader without connected EEPROM hang in bootloader with DEBUG: SSF2

      posted in Development
      melwinek
      melwinek
    • RE: Problem with a small amount of RAM

      After some changes in MySensorsCore.cpp and MySensorsCore.h I used code:

        present(10, S_CUSTOM, F("RSSI Sending"),true);
        present(11, S_CUSTOM, F("RSSI Receiving"),true);
        present(12, S_CUSTOM, F("Power dbm"),true);
        present(13, S_CUSTOM, F("Power Percent"),true);
        present(14, S_TEMP, F("DHT Temperature"),true);
        present(15, S_HUM, F("DHT Humidity"),true);
        present(16, S_TEMP, F("BMP Temperature"),true);
        present(17, S_BARO, F("BMP Pressure hPa"),true);  
        present(18, S_BARO, F("BMP Pressure Sea hPa"),true); 
      

      Compilation result:
      1582 bytes (77%) of dynamic memory

      This is still too much.
      It seems to me that signing up consumes a lot of memory.
      Can it be improved?

      posted in Troubleshooting
      melwinek
      melwinek
    • Problem with a small amount of RAM

      Am i doing something wrong?
      Are two sensors too much for Atmega328?
      library: today from git.

      #include <Adafruit_BMP085.h>
      #include "DHT.h"
      
      #define MY_TRANSPORT_WAIT_READY_MS 100
      //#define MY_DEBUG
      #define MY_DISABLED_SERIAL
      #define MY_SIGNING_SIMPLE_PASSWD "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
      #define MY_RADIO_RFM69
      #define MY_RFM69_NEW_DRIVER
      #define MY_RFM69_MAX_POWER_LEVEL_DBM 13
      #define MY_NODE_ID 1
      #include <MySensors.h>
      
      MyMessage msgRSSIS(10, V_VAR1);
      MyMessage msgRSSIR(11, V_VAR1);
      MyMessage msgPowerd(12, V_VAR1);
      MyMessage msgPowerp(13, V_VAR1);
      MyMessage msgTempDHT(14, V_TEMP);
      MyMessage msgHumDHT(15, V_HUM);
      MyMessage msgTempBMP(16, V_TEMP);
      MyMessage msgPresBMP(17, V_PRESSURE);
      MyMessage msgPresSeaBMP(18, V_PRESSURE);
      
      Adafruit_BMP085 bmp;
      DHT dht(3, DHT22); //PIN, TYPE
      
      void setup()  
      { 
      }
      
      void presentation() 
      {
        sendSketchInfo("Zewnetrzny", "1.0");
        present(10, S_CUSTOM, "RSSI Sending",true);
        present(11, S_CUSTOM, "RSSI Receiving",true);
        present(12, S_CUSTOM, "Power dbm",true);
        present(13, S_CUSTOM, "Power Percent",true);
        present(14, S_TEMP, "DHT Temperature",true);
        present(15, S_HUM, "DHT Humidity",true);
        present(16, S_TEMP, "BMP Temperature",true);
        present(17, S_BARO, "BMP Pressure hPa",true);  
        present(18, S_BARO, "BMP Pressure Sea hPa",true);  
      }
      
      void loop()      
      {
        send(msgRSSIS.set(RFM69_getSendingRSSI(),1));
        wait(200); 
      
        send(msgRSSIR.set(RFM69_getReceivingRSSI(),1));
        wait(200); 
      
        send(msgPowerd.set(RFM69_getTxPowerLevel(),1));
        wait(200); 
      
        send(msgPowerp.set(RFM69_getTxPowerPercent(),1));
        wait(200); 
        
        dht.begin();
        send(msgTempDHT.set(dht.readTemperature(),1));
        wait(200); 
        send(msgHumDHT.set(dht.readHumidity(),1));
        wait(200); 
      
        bmp.begin();
        send(msgTempBMP.set(bmp.readTemperature(),1));
        wait(200);
        send(msgPresBMP.set(bmp.readPressure()/100,1));
        wait(200); 
        send(msgPresSeaBMP.set(bmp.readSealevelPressure(164)/100,1));
      
        wait(10000);   
      }
      
      void receive(const MyMessage &message) 
      {
      }
      
      

      Compilation result:

      Sketch uses 20196 bytes (65%) of program memory. The maximum is 30720 bytes.
      Global variables use 1694 bytes (82%) of dynamic memory, leaving 354 bytes for local variables. The maximum is 2048 bytes.
      Low level of available memory, stability problems may occur.
      
      posted in Troubleshooting
      melwinek
      melwinek
    • RE: OTA FW update using I2C EEPROM

      I wish it was so long. You did a great job.

      posted in Development
      melwinek
      melwinek
    • RE: OTA FW update using I2C EEPROM

      kisse66: Can you refresh your sources? Official Mysensors has now added a very cool option: MY_SIGNING_SIMPLE_PASSWD.
      What determines the moment to add your changes to the official distribution?

      posted in Development
      melwinek
      melwinek
    • RE: OTA FW update using I2C EEPROM

      When eeprom ota will be attached to official development branch ?

      posted in Development
      melwinek
      melwinek