Navigation

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

    iguaan

    @iguaan

    2
    Reputation
    21
    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
    • RE: MYSBootloader 1.3 pre-release & MYSController 1.0.0beta

      @iguaan said in MYSBootloader 1.3 pre-release & MYSController 1.0.0beta:

      @nfj25 said in MYSBootloader 1.3 pre-release & MYSController 1.0.0beta:

      om acessing the network in the Windows Firewall and... it works! Only block TCP port 80 if you are connecting to a MySensors TCP gateway.

      Can't get it working that way, even if i block all the traffic on Myscontroller.

      Got it working, I have program on onedrive and seemed that automatically generated path in rules didn't work:
      "%USERPROFILE%\OneDrive\MYSController\MYSController.exe"
      Had to change it to "C:\Users\user\OneDrive\MYSController" and it works now, great success.

      posted in Development
      iguaan
      iguaan

    Latest posts made by iguaan

    • RE: MYSBootloader 1.3 pre-release & MYSController 1.0.0beta

      If anyone is getting "Property 'bootloader.tool.' is undefined" error with arduino 2.x when trying to burn bootloader, then you just have to add another row in bold below to boards.txt file

      MYSBL.upload.tool=avrdude
      MYSBL.upload.protocol=arduino
      MYSBL.upload.maximum_size=30720
      MYSBL.upload.maximum_data_size=2048
      MYSBL.bootloader.tool=avrdude
      MYSBL.bootloader.tool.default=avrdude

      posted in Development
      iguaan
      iguaan
    • RE: MYSBootloader 1.3 pre-release & MYSController 1.0.0beta

      Today I couldn't get it to work again unless I blocked all ports, ran program and then unblock again (to access GW).
      Solution was to block myscontroller from accessing only that remote IP on all ports, letting me still connect to gateway without any fiddling in firewall settings on every program start.

      Hope this solution stays for good 🙂

      posted in Development
      iguaan
      iguaan
    • RE: MYSBootloader 1.3 pre-release & MYSController 1.0.0beta

      @iguaan said in MYSBootloader 1.3 pre-release & MYSController 1.0.0beta:

      @nfj25 said in MYSBootloader 1.3 pre-release & MYSController 1.0.0beta:

      om acessing the network in the Windows Firewall and... it works! Only block TCP port 80 if you are connecting to a MySensors TCP gateway.

      Can't get it working that way, even if i block all the traffic on Myscontroller.

      Got it working, I have program on onedrive and seemed that automatically generated path in rules didn't work:
      "%USERPROFILE%\OneDrive\MYSController\MYSController.exe"
      Had to change it to "C:\Users\user\OneDrive\MYSController" and it works now, great success.

      posted in Development
      iguaan
      iguaan
    • RE: MYSBootloader 1.3 pre-release & MYSController 1.0.0beta

      @nfj25 said in MYSBootloader 1.3 pre-release & MYSController 1.0.0beta:

      om acessing the network in the Windows Firewall and... it works! Only block TCP port 80 if you are connecting to a MySensors TCP gateway.

      Can't get it working that way, even if i block all the traffic on Myscontroller.

      posted in Development
      iguaan
      iguaan
    • RE: MYSBootloader 1.3 pre-release & MYSController 1.0.0beta

      There's another somewhat way around:

      you just need to open prog and then close when it gets stuck and then clik try to restore or wait button few times:
      https://pasteboard.co/GQTHDnaQsawY.png
      then you should get this screen at some point and then press ok/ignore and it works
      (https://pasteboard.co/9iuz1LC7kgWC.png

      needs several tries.

      posted in Development
      iguaan
      iguaan
    • RE: MYSBootloader 1.3 pre-release & MYSController 1.0.0beta

      Anyone else experiencing crashing of the application after about 10seconds?

      posted in Development
      iguaan
      iguaan
    • RE: Question with regards to NRF24 antenna folding

      You might wanna try to wrap the module in plastic tape and then alu foil around it and then ground the foil.
      Or set PA level to LOW

      posted in Troubleshooting
      iguaan
      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