• Categories
  • Recent
  • Tags
  • Popular
  • Register
  • Login
  • Categories
  • Recent
  • Tags
  • Popular
  • Register
  • Login

MycontrollerDevice OTA challenges

Scheduled Pinned Locked Moved Troubleshooting
9 Posts 2 Posters 1.7k Views 1 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    njbuch
    last edited by 1 Apr 2018, 21:29

    Hi again. I am trying to make the magic OTA firmware update work with the setup I have.

    I have a ESP8266 with 4M flash and pubsubclient set to 512. I have defined a new version and a new type to the node, and uploaded the new bin-file to mycontroller.

    The resource log is then filled with firmware requests and responses and then after a while the device reboots, but with the same firmware as it started with.

    This is the serial monitor on the device while rebooting....

    <here is stuff that indicates the device is in its normal loop>
    MC[I]: Firmware update success...
    MC[I]: Rebooting...
    
     ets Jan  8 2013,rst cause:2, boot mode:(3,7)
    
    load 0x4010f000, len 1384, room 16
    tail 8
    chksum 0x2d
    csum 0x2d
    v4ceabea9
    @cp:0
    ld
    C�
    MC[I]: Booting ESP8266 device...
    MC[I]: WIFI not connected, trying connection...
    MC[I]: Connecting to WiFi with ssid[1421530] and with password...........OK
    MC[I]: WiFi BSSID:[00:02:61:A8:32:58], RSSI:[-69 dBm, 62 ], IP:[192.168.1.148], StatusCode:[3]
    MC[I]: Configuration(NodeEUI:[ESP_2D5A26], Mqtt{mDNS-status:[0], Server:[192.168.1.197], Port:[1883], FeedId:[esp], User:[]})
    MC[I]: MQTT settings(Broker:[192.168.1.197], Port:[1883])
    MC[I]: MQTT authenticating as anonymous
    MC[I]: MQTT connection failed, rc=-4
    MC[I]: Initialization done...
    MC[I]: MQTT failed! Retryting to connect...
    MC[I]: MQTT settings(Broker:[192.168.1.197], Port:[1883])
    MC[I]: MQTT authenticating as anonymous
    MC[I]: MQTT connected :)
    MC[I]: MQTT topic subscribed:[in_esp/ESP_2D5A26/#]
    <here is stuff that indicates everything is in order (but wrong version of software)>
    
    1 Reply Last reply Reply Quote 0
    • J Offline
      jkandasa
      last edited by 2 Apr 2018, 06:58

      @njbuch I do not see any recent change on this. I will check this locally and update you. Thank you!

      1 Reply Last reply Reply Quote 1
      • N Offline
        njbuch
        last edited by 15 Apr 2018, 15:10

        Is there anything I can do to assist finding the caveat in this?

        J 1 Reply Last reply 16 Apr 2018, 05:17 Reply Quote 0
        • J Offline
          jkandasa @njbuch
          last edited by 16 Apr 2018, 05:17

          @njbuch Ah, Sorry I forget about this. I will update you soon. Thank you for your patience.

          J 1 Reply Last reply 23 Apr 2018, 05:19 Reply Quote 0
          • J Offline
            jkandasa @jkandasa
            last edited by 23 Apr 2018, 05:19

            @njbuch Thank you for your patience. Today I tried with the latest firmware from the repository. I see some other issue.

            MC[I]: FW Config Internal(Type:65535, Version:65535, Blocks:65535, md5sum:[---------md5sum-not-set---------])
            MC[I]: FW Config Response(Type:1, Version:1, Blocks:1520, md5sum:[c51ee13cbd11ded58f19844a92ee3a62])
            MC[I]: Firmware upgrade started...
            ERROR[7]: MD5 Failed: expected:c51ee13cbd11ded58f19844a92ee3a62, calculated::rc11cd:00cc010rs:c=sdd6=A11d6eA
            

            I am not a CPP export. I will try to fix this issue soon. I have to go through some tutorials.

            I have files an issue to track this one.

            J 1 Reply Last reply 23 Apr 2018, 05:23 Reply Quote 0
            • J Offline
              jkandasa @jkandasa
              last edited by 23 Apr 2018, 05:23

              @njbuch filed one more issue.

              https://github.com/mycontroller-org/MyControllerDevice/issues/20

              J 1 Reply Last reply 24 Apr 2018, 03:41 Reply Quote 0
              • J Offline
                jkandasa @jkandasa
                last edited by 24 Apr 2018, 03:41

                @njbuch in the released version 1.0.0 everything working good. The only problem with the master build.

                Until I resolve the issue you may use 1.0.0 version

                N 1 Reply Last reply 24 Apr 2018, 15:57 Reply Quote 0
                • N Offline
                  njbuch @jkandasa
                  last edited by 24 Apr 2018, 15:57

                  @jkandasa Thanks for looking into this. I will wait till a new release, unless you want me to do some testing?

                  J 1 Reply Last reply 25 Apr 2018, 09:27 Reply Quote 0
                  • J Offline
                    jkandasa @njbuch
                    last edited by 25 Apr 2018, 09:27

                    @njbuch master branch works well with ESP8266 2.3.0 version.

                    The problem comes when we upgrade to 2.4.0 and above. For now, you should revert back your esp8266 Arduino version to 2.3.0

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    0

                    Online

                    619

                    Users

                    531

                    Topics

                    3.4k

                    Posts
                    Copyright © 2015-2025 MyController.org | Contributors | Localization