Navigation

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

    meddie

    @meddie

    9
    Reputation
    106
    Posts
    839
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    meddie Follow

    Best posts made by meddie

    • RE: [security] Introducing signing support to MySensors

      i used the stable lib and comiled the sketch both features are now working encryption and signing! Thank you very much!!!!! I will try to update the example lib and try again.

      I got just the next problem the space from sensebender micro is not enought to use all three features signing, encryption and ota. When i use AES and Signing i get over 109%, when i use the example sketch temp and humidty meassure.

      Greets Eddie

      posted in Development
      meddie
      meddie
    • RE: W25X40CLSNIG as flash for OTA

      thank you very much, then i can order them. i was not sure.
      Greets Eddie

      posted in Hardware
      meddie
      meddie
    • RE: My Slim 2AA Battery Node

      @ahmedadelhosni said:

      @meddie THanks for the answer.

      Can you please also explain your final result to reach 4uA. I have also the same problem and current is 90uA and sometimes drops to 20uA, then rises again. Thanks.

      Edit: I figured out that I was using the 3.3v from arduino UNO. CHanged to two 1.5 batteries. THe current drops to 1.4uA when contact is open but sometimes it is also 15 uA. And when contact is closed it is 60 uA, and sometimes drops. Don't know why it is not stable.

      Edit 26.1.2016: I managed to reach 1.4uA with door opened, and 15uA when closed. I guess the problem was with the wiring. DOn't really know but I used a battery holder instead. I will try to rechange the resistor value to 1Mohm and reupdate.

      Edit 27.1.2016: ok I created another node and connected the contact sensor in series with the 1Mohm and the output is the voltage divider. now it is 1.4uA when open and 4.6uA when closed.

      Thanks

      Yes, i used a 1 Mohm reisitor instead of the internall pull up. You can read this few messages above. This was a tip from GertSander

      posted in My Project
      meddie
      meddie
    • RE: Signing or encrypting the data

      @ahmedadelhosni
      fine, thank you in advanced

      posted in General Discussion
      meddie
      meddie
    • RE: Sensebender Gateway with NRF24 PA and Hardsigning and Encryption

      AAAAAH! I am so stupid! I read all the Time SAM and didnt seen the D at the end. Sorry sorry sorry.
      Yes it works now!!!
      Thank you very much!

      posted in Hardware
      meddie
      meddie
    • RE: My Slim 2AA Battery Node

      šŸ‘

      posted in My Project
      meddie
      meddie
    • RE: Encryption, Signing and OTA is there any how-to?

      ok, i did read this three times but i dont understand.

      posted in General Discussion
      meddie
      meddie
    • RE: My Slim 2AA Battery Node

      it would be nice when a atsha204 a an a flash rom where placed to pcb for signing and ota

      posted in My Project
      meddie
      meddie
    • RE: Encryption, Signing and OTA is there any how-to?

      if i understood it correctly, i have to use the securitypersonalization.ino on the gw. For the first time i upload this code

      /**
       * @def LOCK_CONFIGURATION
       * @brief Uncomment this to enable locking the configuration zone.
       *
       * It is still possible to change the key, and this also enable random key generation.
       * @warning BE AWARE THAT THIS PREVENTS ANY FUTURE CONFIGURATION CHANGE TO THE CHIP
       */
      #define LOCK_CONFIGURATION
      
      /**
       * @def LOCK_DATA
       * @brief Uncomment this to enable locking the data zone.
       *
       * It is not required to lock data, key cannot be retrieved anyway, but by locking
       * data, it can be guaranteed that nobody even with physical access to the chip,
       * will be able to change the key.
       * @warning BE AWARE THAT THIS PREVENTS THE KEY TO BE CHANGED
       */
      //#define LOCK_DATA
      
      /**
       * @def SKIP_KEY_STORAGE
       * @brief Uncomment this to skip key storage (typically once key has been written once)
       */
      #define SKIP_KEY_STORAGE
      
      /**
       * @def USER_KEY
       * @brief Uncomment this to skip key generation and use @ref user_key_data as key instead.
       */
      //#define USER_KEY
      
      /**
       * @def SKIP_UART_CONFIRMATION
       * @brief Uncomment this for boards that lack UART
       *
       * @b Important<br> No confirmation will be required for locking any zones with this configuration!
       * Also, key generation is not permitted in this mode as there is no way of presenting the generated key.
       */
      //#define SKIP_UART_CONFIRMATION
      
      /**
       * @def USE_SOFT_SIGNING
       * @brief Uncomment this to store data to EEPROM instead of ATSHA204A
       */
      //#define USE_SOFT_SIGNING
      
      /**
       * @def STORE_SOFT_KEY
       * @brief Uncomment this to store soft HMAC key to EEPROM
       */
      //#define STORE_SOFT_KEY
      
      /**
       * @def USER_SOFT_KEY
       * @brief Uncomment this to skip soft HMAC key generation and use @ref user_soft_key_data as HMAC key instead.
       */
      //#define USER_SOFT_KEY
      
      /**
       * @def STORE_SOFT_SERIAL
       * @brief Uncomment this to store soft serial to EEPROM
       */
      //#define STORE_SOFT_SERIAL
      
      /**
       * @def USER_SOFT_SERIAL
       * @brief Uncomment this to skip soft serial generation and use @ref user_soft_serial as serial instead.
       */
      //#define USER_SOFT_SERIAL
      
      /**
       * @def STORE_AES_KEY
       * @brief Uncomment this to store AES key to EEPROM
       */
      //#define STORE_AES_KEY
      
      /**
       * @def USER_AES_KEY
       * @brief Uncomment this to skip AES key generation and use @ref user_aes_key as key instead.
       */
      //#define USER_AES_KEY
      
      

      When its uploaded on first run i will get the AES and HMAC Key, which i have to notice and safe securely.

      Then i have to upload the sketch again with this code:

      /**
       * @def LOCK_CONFIGURATION
       * @brief Uncomment this to enable locking the configuration zone.
       *
       * It is still possible to change the key, and this also enable random key generation.
       * @warning BE AWARE THAT THIS PREVENTS ANY FUTURE CONFIGURATION CHANGE TO THE CHIP
       */
      #define LOCK_CONFIGURATION
      
      /**
       * @def LOCK_DATA
       * @brief Uncomment this to enable locking the data zone.
       *
       * It is not required to lock data, key cannot be retrieved anyway, but by locking
       * data, it can be guaranteed that nobody even with physical access to the chip,
       * will be able to change the key.
       * @warning BE AWARE THAT THIS PREVENTS THE KEY TO BE CHANGED
       */
      //#define LOCK_DATA
      
      /**
       * @def SKIP_KEY_STORAGE
       * @brief Uncomment this to skip key storage (typically once key has been written once)
       */
      //#define SKIP_KEY_STORAGE
      
      /**
       * @def USER_KEY
       * @brief Uncomment this to skip key generation and use @ref user_key_data as key instead.
       */
      #define USER_KEY
      
      /**
       * @def SKIP_UART_CONFIRMATION
       * @brief Uncomment this for boards that lack UART
       *
       * @b Important<br> No confirmation will be required for locking any zones with this configuration!
       * Also, key generation is not permitted in this mode as there is no way of presenting the generated key.
       */
      #define SKIP_UART_CONFIRMATION
      
      /**
       * @def USE_SOFT_SIGNING
       * @brief Uncomment this to store data to EEPROM instead of ATSHA204A
       */
      //#define USE_SOFT_SIGNING
      
      /**
       * @def STORE_SOFT_KEY
       * @brief Uncomment this to store soft HMAC key to EEPROM
       */
      //#define STORE_SOFT_KEY
      
      /**
       * @def USER_SOFT_KEY
       * @brief Uncomment this to skip soft HMAC key generation and use @ref user_soft_key_data as HMAC key instead.
       */
      //#define USER_SOFT_KEY
      
      /**
       * @def STORE_SOFT_SERIAL
       * @brief Uncomment this to store soft serial to EEPROM
       */
      //#define STORE_SOFT_SERIAL
      
      /**
       * @def USER_SOFT_SERIAL
       * @brief Uncomment this to skip soft serial generation and use @ref user_soft_serial as serial instead.
       */
      //#define USER_SOFT_SERIAL
      
      /**
       * @def STORE_AES_KEY
       * @brief Uncomment this to store AES key to EEPROM
       */
      #define STORE_AES_KEY
      
      /**
       * @def USER_AES_KEY
       * @brief Uncomment this to skip AES key generation and use @ref user_aes_key as key instead.
       */
      //#define USER_AES_KEY
      
      #if defined(SKIP_UART_CONFIRMATION) && !defined(USER_KEY)
      #error You have to define USER_KEY for boards that does not have UART
      #endif
      
      #ifdef USER_KEY
      /** @brief The user-defined HMAC key to use for personalization */
      #define MY_HMAC_KEY 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
      /** @brief The data to store in key slot 0 */
      const uint8_t user_key_data[32] = {MY_HMAC_KEY};
      #endif
      
      #ifdef USER_SOFT_KEY
      /** @brief The user-defined soft HMAC key to use for EEPROM personalization */
      #define MY_SOFT_HMAC_KEY 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
      /** @brief The data to store as soft HMAC key in EEPROM */
      const uint8_t user_soft_key_data[32] = {MY_SOFT_HMAC_KEY};
      #endif
      
      #ifdef USER_SOFT_SERIAL
      /** @brief The user-defined soft serial to use for EEPROM personalization */
      #define MY_SOFT_SERIAL 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
      /** @brief The data to store as soft serial in EEPROM */
      const uint8_t user_soft_serial[9] = {MY_SOFT_SERIAL};
      #endif
      
      #ifdef USER_AES_KEY
      /** @brief The user-defined AES key to use for EEPROM personalization */
      #define MY_AES_KEY 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00
      /** @brief The data to store as AES key in EEPROM */
      const uint8_t user_aes_key[16] = {MY_AES_KEY};
      #endif
      
      

      in the second code i have to place the Keys which i got on first run.

      after this i can upload the normally gateway sketch

      is that correct?
      thank you very much

      posted in General Discussion
      meddie
      meddie

    Latest posts made by meddie

    • RE: šŸ’¬ Sensebender Gateway

      @alexsh1
      hi, yes it was very simple šŸ˜„ the gateway has worked fine in this time, i thought that when nothing shown in serial monitor that the gateway dont work, but it did it, after i connected the gateway to FHEM (my controller) i saw that FHEM connects t mys Gateway.
      So it worked all the time

      Greets Eddie

      posted in OpenHardware.io
      meddie
      meddie
    • Sensebender Micro Battery Code

      Hello together,

      i have bought a sensebender micro to test as temp and humidity sensor. I use the example sketch from sensebender, and for test i used a cd2032 battery but the battery is after 14 days empty.
      So i have to optimize my code and would like to ask you which settings are you using for battery nodes.

      How often do you transmit the temp / humidity?
      Which threshold for changing the temp / humidity?

      Thanks a lot
      Greets Eddie

      posted in Development
      meddie
      meddie
    • RE: šŸ’¬ Sensebender Micro

      @Michiel-van-der-Wulp
      thank you i will test it the next few days

      posted in OpenHardware.io
      meddie
      meddie
    • RE: šŸ’¬ Sensebender Micro

      @Michiel-van-der-Wulp
      Can you tell me where in the code is the switch to 1 MHz? I still have the problems that my node dosnt send anymore. It works for several hours but after then it dont send anything.

      In programming i am not good, and so i cant find the switch.
      Thank you very much.
      Greets Eddie

      posted in OpenHardware.io
      meddie
      meddie
    • RE: šŸ’¬ Sensebender Micro

      @qqlapraline
      oh yes it does! It explains why i get the € signs in the serial monitor. But why does the node not send to my FHEM Controller? Depends it also on it, that the node switch to 1 Mhz and cant send anymore?
      Thank you very much for your answer, its very helpfull.
      Greets Eddie

      posted in OpenHardware.io
      meddie
      meddie
    • RE: šŸ’¬ Sensebender Micro

      i have just tried it again, it worked for 20 minutes. After them i get this output:

      Sensebender Micro FW 1.4 - Online!
      isMetric: 1
      TempDiff :122.28
      HumDiff  :154.00
      T: 22.28
      H: 54
      TempDiff :0.00
      HumDiff  :0.00
      TempDiff :0.10
      HumDiff  :0.50
      TempDiff :0.11
      HumDiff  :0.50
      TempDiff :0.12
      HumDiff  :0.00
      €€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€€
      
      

      ok one more thing i found, when i close the serial monitor and start it again, i get the correctly output again, and i see in fhem the new readings.

      but i cant understand what happens why stop the node to transmit the correct readings

      posted in OpenHardware.io
      meddie
      meddie
    • RE: šŸ’¬ Sensebender Micro

      Hey together,

      i have an problem, i had some troubles with the space on the sb micro, i have removed the #define my_debug that solved my space problem, but now i have observed that the node is starting and sends few times the temp and humidity but after the few times nothing happens anymore.
      i observed, when i hold the sensor in the fingers so that it will be worm, and start the node then it sends all minute the temp, but when the temp goes down to the room temperature then the node should send only when the humidity or temp changes over the threshhold, so in the room i dont have much changes and i think that when the node does not send about a longer time, that the the problem comes up.
      I tested it in some different distances, on another floor but in very short distance too. I dont think that is a radio problem.
      What do you think about?
      The Problem is, that i cant debug the node because i disabled it because of space problems.
      Thank you

      posted in OpenHardware.io
      meddie
      meddie
    • RE: [security] Introducing signing support to MySensors

      i observed, when i hold the sensor in the fingers so that it will be worm, and start the node then it sends all minute the temp, but when the temp goes donw to the room temperature the the node sends only when the humidity or temp changes over the threshhold, but in the room i dont have much changes and i think that when the node does not send about longer time, that the the problem comes up.
      I tested it in some different distances, on another floor but in very short distance too. I dont think that is a radio problem.
      What do you think about?
      The Problem is, that i cant debug the node because i disabled it because of space problems.
      Thank you

      posted in Development
      meddie
      meddie
    • RE: [security] Introducing signing support to MySensors

      @Anticimex
      sorry i didnt let hear anything from me for the last few days.
      i had the same problems with compiling the sketch. It depends on the signing. When you remove the #define MY_SIGNING_ATSHA204 the you can compile but when the singning is defined you get an error until you remove this line:
      #include <drivers/ATSHA204/ATSHA204.cpp>

      i have removed the line and defined the signing and for me works the singing and encryption.

      but i have an another problem, i dont know if i am right here or i better have to post in the sensebender micro forum, i posted that i had some troubles with the space on the sb micro, i have removed the #define my_debug that solved my space problem, but now i have observed that the node is starting and sends few times the temp and humidity but after the few times nothing happens anymore.

      posted in Development
      meddie
      meddie
    • RE: [security] Introducing signing support to MySensors

      i used the stable lib and comiled the sketch both features are now working encryption and signing! Thank you very much!!!!! I will try to update the example lib and try again.

      I got just the next problem the space from sensebender micro is not enought to use all three features signing, encryption and ota. When i use AES and Signing i get over 109%, when i use the example sketch temp and humidty meassure.

      Greets Eddie

      posted in Development
      meddie
      meddie