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
  1. Home
  2. Controllers
  3. MyController.org
  4. MyController OTA problems

MyController OTA problems

Scheduled Pinned Locked Moved MyController.org
15 Posts 2 Posters 3.9k Views 2 Watching
  • 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.
  • S Offline
    S Offline
    slt1
    wrote on last edited by
    #1

    Hi

    I am having various issues with MyController and OTA updates.

    1. If I compare MYSController OTA vs MyController.org OTA, the MYSController takes about 10% of the time to do an update. I am running MyController.org on a C.H.I.P, so is it possible that its not fast enough to keep up with the Firmware Requests.

    2. Sometimes when the OTA fails for whatever reason like I manually power down the node being updated or battery runs flat or perhaps RF connection is lost, then MyController seems to crash my ESP8266 Ethernet Gateway. Trying to reconnect i get "Connection Refused". I manually power down gateway and even router and still can't connect to the gateway anymore. Then I notice MyController crashed and needs to be started again. Eventually everything starts working again.

    3. If my C.H.I.P is unexpectedly powered down or no.2 above occurs then the database gets corrupt and I need to delete the database files in /conf and launch MyController, then do a restore, then wait a bit, then start up mycontroller again. With No.2 above seeming to happen quite often in trying out OTA, this means my DB is getting corrupt fairly often.

    4. There seems to be no way to remove Firmware from a Node once its assigned. If I continue to experience issues with MyController.org's OTA then I would like to remove the firmware assigned to the node and rather use MySController's firmware update for now. Is it possible to add an option to select "No Firmware"

    Thanks for the assistance

    J 2 Replies Last reply
    0
    • S slt1

      Hi

      I am having various issues with MyController and OTA updates.

      1. If I compare MYSController OTA vs MyController.org OTA, the MYSController takes about 10% of the time to do an update. I am running MyController.org on a C.H.I.P, so is it possible that its not fast enough to keep up with the Firmware Requests.

      2. Sometimes when the OTA fails for whatever reason like I manually power down the node being updated or battery runs flat or perhaps RF connection is lost, then MyController seems to crash my ESP8266 Ethernet Gateway. Trying to reconnect i get "Connection Refused". I manually power down gateway and even router and still can't connect to the gateway anymore. Then I notice MyController crashed and needs to be started again. Eventually everything starts working again.

      3. If my C.H.I.P is unexpectedly powered down or no.2 above occurs then the database gets corrupt and I need to delete the database files in /conf and launch MyController, then do a restore, then wait a bit, then start up mycontroller again. With No.2 above seeming to happen quite often in trying out OTA, this means my DB is getting corrupt fairly often.

      4. There seems to be no way to remove Firmware from a Node once its assigned. If I continue to experience issues with MyController.org's OTA then I would like to remove the firmware assigned to the node and rather use MySController's firmware update for now. Is it possible to add an option to select "No Firmware"

      Thanks for the assistance

      J Offline
      J Offline
      jkandasa
      Plugin Developer
      wrote on last edited by
      #2

      @slt1 Hi Sorry for the inconvenience. Could you please report your version of MyController? C.H.I.P configuration.

      What type of gateway is using with MYSController?

      S 1 Reply Last reply
      0
      • S slt1

        Hi

        I am having various issues with MyController and OTA updates.

        1. If I compare MYSController OTA vs MyController.org OTA, the MYSController takes about 10% of the time to do an update. I am running MyController.org on a C.H.I.P, so is it possible that its not fast enough to keep up with the Firmware Requests.

        2. Sometimes when the OTA fails for whatever reason like I manually power down the node being updated or battery runs flat or perhaps RF connection is lost, then MyController seems to crash my ESP8266 Ethernet Gateway. Trying to reconnect i get "Connection Refused". I manually power down gateway and even router and still can't connect to the gateway anymore. Then I notice MyController crashed and needs to be started again. Eventually everything starts working again.

        3. If my C.H.I.P is unexpectedly powered down or no.2 above occurs then the database gets corrupt and I need to delete the database files in /conf and launch MyController, then do a restore, then wait a bit, then start up mycontroller again. With No.2 above seeming to happen quite often in trying out OTA, this means my DB is getting corrupt fairly often.

        4. There seems to be no way to remove Firmware from a Node once its assigned. If I continue to experience issues with MyController.org's OTA then I would like to remove the firmware assigned to the node and rather use MySController's firmware update for now. Is it possible to add an option to select "No Firmware"

        Thanks for the assistance

        J Offline
        J Offline
        jkandasa
        Plugin Developer
        wrote on last edited by
        #3

        @slt1 said in MyController OTA problems:

        There seems to be no way to remove Firmware from a Node once its assigned. If I continue to experience issues with MyController.org's OTA then I would like to remove the firmware assigned to the node and rather use MySController's firmware update for now. Is it possible to add an option to select "No Firmware"

        Kindly open an issue for this. https://github.com/mycontroller-org/mycontroller/issues

        1 Reply Last reply
        0
        • J jkandasa

          @slt1 Hi Sorry for the inconvenience. Could you please report your version of MyController? C.H.I.P configuration.

          What type of gateway is using with MYSController?

          S Offline
          S Offline
          slt1
          wrote on last edited by
          #4

          @jkandasa Hi. Its not too much inconvenience :) It would just be nice to get this working as MyController seems to work rather well for me otherwise.

          I am using Version 0.0.3.Final-SNAPSHOT of MyController.org

          The CHIP i installed Oracle JDK and then set it up to start on reboot by reading through this http://forum.mycontroller.org/topic/122/launch-start-sh-on-startup-or-like-a-service/2.

          I also have mosquitto, node and node-red setup on the CHIP.

          J 1 Reply Last reply
          0
          • S slt1

            @jkandasa Hi. Its not too much inconvenience :) It would just be nice to get this working as MyController seems to work rather well for me otherwise.

            I am using Version 0.0.3.Final-SNAPSHOT of MyController.org

            The CHIP i installed Oracle JDK and then set it up to start on reboot by reading through this http://forum.mycontroller.org/topic/122/launch-start-sh-on-startup-or-like-a-service/2.

            I also have mosquitto, node and node-red setup on the CHIP.

            J Offline
            J Offline
            jkandasa
            Plugin Developer
            wrote on last edited by
            #5

            @slt1 said in MyController OTA problems:

            I also have mosquitto, node and node-red setup on the CHIP.

            I guess this makes MyController too slow. When you are not using inbuilt MQTT broker. you can make it disable. Can you send me the MyController.log file to know more about Ethernet failure?

            S 2 Replies Last reply
            0
            • J jkandasa

              @slt1 said in MyController OTA problems:

              I also have mosquitto, node and node-red setup on the CHIP.

              I guess this makes MyController too slow. When you are not using inbuilt MQTT broker. you can make it disable. Can you send me the MyController.log file to know more about Ethernet failure?

              S Offline
              S Offline
              slt1
              wrote on last edited by slt1
              #6

              @jkandasa mycontroller.log file

              I am not using MQTT for MySensors. I just installed it to try out at some stage. I am using ethernet connection for MySensors from MyController.

              1 Reply Last reply
              0
              • J jkandasa

                @slt1 said in MyController OTA problems:

                I also have mosquitto, node and node-red setup on the CHIP.

                I guess this makes MyController too slow. When you are not using inbuilt MQTT broker. you can make it disable. Can you send me the MyController.log file to know more about Ethernet failure?

                S Offline
                S Offline
                slt1
                wrote on last edited by
                #7

                @jkandasa Sorry - i misread ... I do have the inbuilt MQTT disabled in MyController already

                J 1 Reply Last reply
                0
                • S slt1

                  @jkandasa Sorry - i misread ... I do have the inbuilt MQTT disabled in MyController already

                  J Offline
                  J Offline
                  jkandasa
                  Plugin Developer
                  wrote on last edited by
                  #8

                  @slt1 I couldn't download the file you have attached. Can you please send it to jkandasa at gmail dot com?

                  S 1 Reply Last reply
                  0
                  • J jkandasa

                    @slt1 I couldn't download the file you have attached. Can you please send it to jkandasa at gmail dot com?

                    S Offline
                    S Offline
                    slt1
                    wrote on last edited by
                    #9

                    @jkandasa Not sure why the "Upload file" for the forum is not working ! Sent via email !

                    J 1 Reply Last reply
                    0
                    • S slt1

                      @jkandasa Not sure why the "Upload file" for the forum is not working ! Sent via email !

                      J Offline
                      J Offline
                      jkandasa
                      Plugin Developer
                      wrote on last edited by
                      #10

                      @slt1 Thank you! Do you have the serial or MQTT gateway? If yes, Can you try once with the serial or MQTT gateway and report the status?

                      S 1 Reply Last reply
                      0
                      • J jkandasa

                        @slt1 Thank you! Do you have the serial or MQTT gateway? If yes, Can you try once with the serial or MQTT gateway and report the status?

                        S Offline
                        S Offline
                        slt1
                        wrote on last edited by
                        #11

                        @jkandasa I only have an ESP8266 gateway working over ethernet. I do not have an MQTT or serial gateway. Should I rather be using one of those?

                        J 1 Reply Last reply
                        0
                        • S slt1

                          @jkandasa I only have an ESP8266 gateway working over ethernet. I do not have an MQTT or serial gateway. Should I rather be using one of those?

                          J Offline
                          J Offline
                          jkandasa
                          Plugin Developer
                          wrote on last edited by
                          #12

                          @slt1 For now I do not have Ethernet gateway to reproduce your issue.

                          Yes, I request you to update your ESP8266 ethernet to MQTT. it is simple. Just modify your ESP8266 firmware as shown here. https://github.com/mysensors/MySensors/blob/development/examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino

                          S 1 Reply Last reply
                          0
                          • J jkandasa

                            @slt1 For now I do not have Ethernet gateway to reproduce your issue.

                            Yes, I request you to update your ESP8266 ethernet to MQTT. it is simple. Just modify your ESP8266 firmware as shown here. https://github.com/mysensors/MySensors/blob/development/examples/GatewayESP8266MQTTClient/GatewayESP8266MQTTClient.ino

                            S Offline
                            S Offline
                            slt1
                            wrote on last edited by
                            #13

                            @jkandasa There are 2 problems I have moving to MQTT. Firstly MYSController only works on Ethernet and Serial. Secondly, in MyController.org I lose all my sensor data as it will create new nodes for each of the sensors it picks up on a new gateway.

                            J 1 Reply Last reply
                            0
                            • S slt1

                              @jkandasa There are 2 problems I have moving to MQTT. Firstly MYSController only works on Ethernet and Serial. Secondly, in MyController.org I lose all my sensor data as it will create new nodes for each of the sensors it picks up on a new gateway.

                              J Offline
                              J Offline
                              jkandasa
                              Plugin Developer
                              wrote on last edited by jkandasa
                              #14

                              @slt1

                              Firstly MYSController only works on Ethernet and Serial.

                              I understand this. But the only test with MQTT. If you are not fine with the change of gateway. go back to current setup.

                              Secondly, in MyController.org I lose all my sensor data as it will create new nodes for each of the sensors it picks up on a new gateway.

                              No, You can use edit gateway option. Edit existing ethernet gateway and update to MQTT configuration. This will retain your setup as is.

                              S 1 Reply Last reply
                              0
                              • J jkandasa

                                @slt1

                                Firstly MYSController only works on Ethernet and Serial.

                                I understand this. But the only test with MQTT. If you are not fine with the change of gateway. go back to current setup.

                                Secondly, in MyController.org I lose all my sensor data as it will create new nodes for each of the sensors it picks up on a new gateway.

                                No, You can use edit gateway option. Edit existing ethernet gateway and update to MQTT configuration. This will retain your setup as is.

                                S Offline
                                S Offline
                                slt1
                                wrote on last edited by
                                #15

                                @jkandasa Ok. I will try it out and let you know. Thanks for all the help. Its greatly appreciated.

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                19

                                Online

                                11.7k

                                Users

                                11.2k

                                Topics

                                113.1k

                                Posts


                                Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                • Login

                                • Don't have an account? Register

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