Navigation

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

    iguaan

    @iguaan

    1
    Reputation
    14
    Posts
    232
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    iguaan Follow

    Best posts made by iguaan

    • RE: MYSBootloader 1.3.0-beta.3

      That's the problem, i don't know what exactly happened/caused this. That's why i'm asking for working solutions/versions so i can try to trace back what might be wrong with my setup.

      Also now i remembered that i had to renew gateway with esp8266 since previous broke down. I don't know for sure that i had previously ota feature for gateway enabled.
      GW sketch:

      // Enable debug prints to serial monitor
      #define MY_DEBUG
      
      // kui lae peale ei jõua
      #define MY_SIGNING_WEAK_SECURITY  //!<  Nodes that present themselves as not requiring signing or whitelisting will be cleared of this requirement at the receiving end.
      //#define MY_DEBUG_VERBOSE_SIGNING //!< Enable signing related debug prints to serial monitor
      //#define MY_SIGNING_SOFT //!< Software signing
      //#define MY_SIGNING_REQUEST_SIGNATURES // Enable this if you want destination node to sign all messages sent to this node.
      //#define MY_SIGNING_SOFT_RANDOMSEED_PIN A0 //!< Unconnected analog pin for random seed
      
      #define MY_RADIO_RF24
      #define MY_GATEWAY_ESP8266
      #define MY_WIFI_SSID "hidden"
      #define MY_WIFI_PASSWORD "hidden"
      
      // Enable MY_IP_ADDRESS here if you want a static ip address (no DHCP)
      #define MY_IP_ADDRESS hidden
      //#define MY_CONTROLLER_URL_ADDRESS "my.controller.org"
      #define MY_HOSTNAME "hidden"
      // If using static ip you need to define Gateway and Subnet address as well
      #define MY_IP_GATEWAY_ADDRESS hidden
      #define MY_IP_SUBNET_ADDRESS hidden
      
      // The port to keep open on node server mode
      #define MY_PORT hidden
      
      // How many clients should be able to connect to this gateway (default 1)
      #define MY_GATEWAY_MAX_CLIENTS 2
      
      #include <ArduinoOTA.h>
      #include <MySensors.h>
      
                                    
      void setup()
      {
          Serial.begin(115200);
        // Setup locally attached sensors
        ArduinoOTA.onStart([]() {
          Serial.println("ArduinoOTA start");
        });
        ArduinoOTA.onEnd([]() {
          Serial.println("\nArduinoOTA end");
        });
        ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) {
          Serial.printf("OTA Progress: %u%%\r", (progress / (total / 100)));
        });
        ArduinoOTA.onError([](ota_error_t error) {
          Serial.printf("Error[%u]: ", error);
          if (error == OTA_AUTH_ERROR) {
            Serial.println("Auth Failed");
          } else if (error == OTA_BEGIN_ERROR) {
            Serial.println("Begin Failed");
          } else if (error == OTA_CONNECT_ERROR) {
            Serial.println("Connect Failed");
          } else if (error == OTA_RECEIVE_ERROR) {
            Serial.println("Receive Failed");
          } else if (error == OTA_END_ERROR) {
            Serial.println("End Failed");
          }
        });
        ArduinoOTA.begin();
      }
      
      
      void presentation()
      {
        sendSketchInfo("GW", "1"); // Present locally attached sensors here
       
      }
      
      
      void loop()
      {
          // Send locally attached sensors data here
        ArduinoOTA.handle();
      }
      

      I remember when i got it first working year(s) ago i tried also different bootloaders, fiddled with fuse settings and eventually got it working perfectly, but now (since i've updated arduino) maybe my board settings are incorrect.

      posted in Development
      iguaan
      iguaan

    Latest posts made by iguaan

    • RE: Best way to power nano and relay?

      Is your relay coil connected directly to Arduino pin?
      It draws too much current, this needs to be powered through transistor or use ready made module:
      https://thesolaruniverse.files.wordpress.com/2020/10/079_relay_fig_01_96_dpi.png

      posted in Hardware
      iguaan
      iguaan
    • RE: How to get the bad status (red) for Temperature Node

      Select temp sensor and click notifications, then:
      Screenshot_2021-11-07-21-45-21-620_com.android.chrome.jpg

      posted in Domoticz
      iguaan
      iguaan
    • RE: Removed childs not being recognised again

      Restarting domoticz might help next time, when you have original code running on that node again.
      Also some PIR cause radio interference, if i remember correctly, then hc sr501 should be ok.

      posted in Domoticz
      iguaan
      iguaan
    • RE: 💬 Building a Raspberry Pi Gateway

      In case someone has similar issue:
      Running everything latest up to date.

      Raspberry pi zero w with nrf24 connected directly on GPIO and domoticz. Had to have startup delay on mysgw service since domoticz wouldn't or couldn't start automatically on boot.
      So i added to:
      sudo nano /etc/systemd/system/mysgw.service

      [Service]
      ExecStartPre=/bin/sleep 10

      Maybe 10 seconds is overkill, but at least it works now.
      With raspberry pi 3b+ there wasn't that issue.

      Also in domoticz had to use raspi ip address, when setting up mysensors LAN gateway address, instead of localhost 127.0.0.1

      And myscontroller OTA updates are working too.🙂

      posted in Announcements
      iguaan
      iguaan
    • RE: PCB verification request for latching valve controller

      Nrf is long range model?
      PA/LNA module.

      posted in Hardware
      iguaan
      iguaan
    • RE: MYSBootloader 1.3.0-beta.3

      @cabat said in MYSBootloader 1.3.0-beta.3:

      @iguaan Try to set MY_RF24_PA_LEVEL to RF24_PA_MIN on gateway then use NRF24L01+PA+LNA module - in my case the OTA begin work perfect!

      Well finally got time to try it out and it worked like a charm, thank you!
      Also no problem with a node that is about 1,5m away from GW.
      LOW also worked, but OTA was slow.

      posted in Development
      iguaan
      iguaan
    • RE: MYSBootloader 1.3.0-beta.3

      Well found the problem.
      I had also changed gw nrf module to NRF24L01+PA+LNA 2.4GHz:
      511ec8a3-c017-4878-831f-ac176dbf5707-image.png and it seems to be the issue.
      Although regular traffic monitoring etc is working ok.
      Changed back to usual nrf24l01+ module and updates are working again.
      Both variants are ali merchandise.

      posted in Development
      iguaan
      iguaan
    • RE: MYSBootloader 1.3.0-beta.3

      That's the problem, i don't know what exactly happened/caused this. That's why i'm asking for working solutions/versions so i can try to trace back what might be wrong with my setup.

      Also now i remembered that i had to renew gateway with esp8266 since previous broke down. I don't know for sure that i had previously ota feature for gateway enabled.
      GW sketch:

      // Enable debug prints to serial monitor
      #define MY_DEBUG
      
      // kui lae peale ei jõua
      #define MY_SIGNING_WEAK_SECURITY  //!<  Nodes that present themselves as not requiring signing or whitelisting will be cleared of this requirement at the receiving end.
      //#define MY_DEBUG_VERBOSE_SIGNING //!< Enable signing related debug prints to serial monitor
      //#define MY_SIGNING_SOFT //!< Software signing
      //#define MY_SIGNING_REQUEST_SIGNATURES // Enable this if you want destination node to sign all messages sent to this node.
      //#define MY_SIGNING_SOFT_RANDOMSEED_PIN A0 //!< Unconnected analog pin for random seed
      
      #define MY_RADIO_RF24
      #define MY_GATEWAY_ESP8266
      #define MY_WIFI_SSID "hidden"
      #define MY_WIFI_PASSWORD "hidden"
      
      // Enable MY_IP_ADDRESS here if you want a static ip address (no DHCP)
      #define MY_IP_ADDRESS hidden
      //#define MY_CONTROLLER_URL_ADDRESS "my.controller.org"
      #define MY_HOSTNAME "hidden"
      // If using static ip you need to define Gateway and Subnet address as well
      #define MY_IP_GATEWAY_ADDRESS hidden
      #define MY_IP_SUBNET_ADDRESS hidden
      
      // The port to keep open on node server mode
      #define MY_PORT hidden
      
      // How many clients should be able to connect to this gateway (default 1)
      #define MY_GATEWAY_MAX_CLIENTS 2
      
      #include <ArduinoOTA.h>
      #include <MySensors.h>
      
                                    
      void setup()
      {
          Serial.begin(115200);
        // Setup locally attached sensors
        ArduinoOTA.onStart([]() {
          Serial.println("ArduinoOTA start");
        });
        ArduinoOTA.onEnd([]() {
          Serial.println("\nArduinoOTA end");
        });
        ArduinoOTA.onProgress([](unsigned int progress, unsigned int total) {
          Serial.printf("OTA Progress: %u%%\r", (progress / (total / 100)));
        });
        ArduinoOTA.onError([](ota_error_t error) {
          Serial.printf("Error[%u]: ", error);
          if (error == OTA_AUTH_ERROR) {
            Serial.println("Auth Failed");
          } else if (error == OTA_BEGIN_ERROR) {
            Serial.println("Begin Failed");
          } else if (error == OTA_CONNECT_ERROR) {
            Serial.println("Connect Failed");
          } else if (error == OTA_RECEIVE_ERROR) {
            Serial.println("Receive Failed");
          } else if (error == OTA_END_ERROR) {
            Serial.println("End Failed");
          }
        });
        ArduinoOTA.begin();
      }
      
      
      void presentation()
      {
        sendSketchInfo("GW", "1"); // Present locally attached sensors here
       
      }
      
      
      void loop()
      {
          // Send locally attached sensors data here
        ArduinoOTA.handle();
      }
      

      I remember when i got it first working year(s) ago i tried also different bootloaders, fiddled with fuse settings and eventually got it working perfectly, but now (since i've updated arduino) maybe my board settings are incorrect.

      posted in Development
      iguaan
      iguaan
    • RE: MYSBootloader 1.3.0-beta.3

      Hi, have been using myscontroller more than a year now and at some point i couldn't use OTA on devices, all the sensor data is coming in nicely. I don't know if it was due to updated arduino or i messed up something in my doards.txt or something else...
      So question is if someone can give me versions/links to working solution?
      https://github.com/mysensors/MySensorsBootloaderRF24/tree/development doesn't work.

      I'm using ProMini 16Mhz with external oscillator. Arduino is 1.8.13, MySensors 2.2.2,
      Myscontroller 1.0.0beta:b3316.

      posted in Development
      iguaan
      iguaan
    • Domoticz weather sensor presentation

      I have created a weather sensor which has hum, temp, baro, predicition and lux.
      Aslo i have attached there another ds temp sensor (for node internal temp).
      Problem is that when i update fw over ota or reboot node, it'll occasionally detect sensors all mixed up:
      temp/hum, temp, baro/temp/hum etc... Also when it does that, not all the data will be updated on combined sensros.
      Is there a way to present the sensors to domticz so, that it recognises 1 combined weather sensor and then others.
      I have tried with all different Sensor ID's 1-4, lux id5 and internal temp id6.
      Also tried with giving same sensor ID number to hum, temp, baro and predicition.
      Domoticz detects it as a combined sensor, but it doesn't update all values after initial value has been sent.
      If i monitor the data on myscontroller, all the variables are updating on the node.

      posted in Domoticz
      iguaan
      iguaan