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
I

iguaan

@iguaan
About
Posts
22
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • MYSBootloader 1.3.0-beta.3
    I iguaan

    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.

    Development

  • MYSBootloader 1.3 pre-release & MYSController 1.0.0beta
    I iguaan

    @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.

    Development ota myscontroller mysbootloader
  • Login

  • Don't have an account? Register

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