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. Announcements
  3. 💬 FOTA (Wireless Programming)

💬 FOTA (Wireless Programming)

Scheduled Pinned Locked Moved Announcements
wirelessupdateover the airsensebenderfotafirmware over the airwireless programming
130 Posts 46 Posters 31.6k Views 44 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.
  • gohanG gohan

    @maghac why don't you use the ota feature?

    maghacM Offline
    maghacM Offline
    maghac
    wrote on last edited by
    #60

    @gohan Good question :)

    I was afraid it would get stuck in a neverending loop and I would have to cycle power to the board, but actually OTA programming with mycontroller works fine.

    The problem is that OTA uploades takes around 10 mins, which is annoying if I want to test something while I have the node on my desk, before placing it somewhere in my house. So while I anyway have it on the desk, I'd like to use the FTDI cable.

    Anyway, things seem to work fine now :)

    1 Reply Last reply
    1
    • A Offline
      A Offline
      arraWX
      wrote on last edited by
      #61

      Is it possible to do FOTA from my raspberry pi (serial gateway + domoticz)?

      As it is now I move the gateway from the rpi to a windows pc running MYSController. It would be nice to avoid this step.

      V 1 Reply Last reply
      0
      • A arraWX

        Is it possible to do FOTA from my raspberry pi (serial gateway + domoticz)?

        As it is now I move the gateway from the rpi to a windows pc running MYSController. It would be nice to avoid this step.

        V Offline
        V Offline
        Viciousman
        wrote on last edited by Viciousman
        #62

        @arraWX you can create a Ethernet gateway in raspberry pi and connect MYScontroller to you raspberry pi gateway.
        See instructions to create raspberrypi ethernet gateway on https://www.mysensors.org/build/raspberry
        From there you can perform FOTA in MYScontroller.

        A 1 Reply Last reply
        2
        • V Viciousman

          @arraWX you can create a Ethernet gateway in raspberry pi and connect MYScontroller to you raspberry pi gateway.
          See instructions to create raspberrypi ethernet gateway on https://www.mysensors.org/build/raspberry
          From there you can perform FOTA in MYScontroller.

          A Offline
          A Offline
          arraWX
          wrote on last edited by
          #63

          @Viciousman Thank you!

          How do I create a Ethernet gateway?

          Will I have to build this: https://www.mysensors.org/build/ethernet_gateway

          or

          Will I have to do some kind of configuration on the rpi and continue using my serial gateway?

          V 1 Reply Last reply
          0
          • A arraWX

            @Viciousman Thank you!

            How do I create a Ethernet gateway?

            Will I have to build this: https://www.mysensors.org/build/ethernet_gateway

            or

            Will I have to do some kind of configuration on the rpi and continue using my serial gateway?

            V Offline
            V Offline
            Viciousman
            wrote on last edited by
            #64

            @arraWX I find more simple to simply connect nrf24 to raspberry pi as instructed in https://www.mysensors.org/build/raspberry
            But you can also build the Ethernet gateway with W5100.

            1 Reply Last reply
            2
            • T Offline
              T Offline
              Tommas
              wrote on last edited by
              #65

              Dear all!

              I have an mysensors ethernet gateway and nodes with nrf24 . I have an openhab2 controller. Could i use the above solution to program my nodes over the air through my current gateway? So i write my sketch on windows arduino and send it through my gateway to the node? Or i have to connect my computer direct to nodes over air?

              1 Reply Last reply
              0
              • gohanG Offline
                gohanG Offline
                gohan
                Mod
                wrote on last edited by
                #66

                You can use myscontroller to connect to the ethernet gateway and assign the firmware to upload for each node

                T V 2 Replies Last reply
                0
                • gohanG gohan

                  You can use myscontroller to connect to the ethernet gateway and assign the firmware to upload for each node

                  T Offline
                  T Offline
                  Tommas
                  wrote on last edited by
                  #67

                  Dear @gohan

                  Thank you! Superb!

                  1 Reply Last reply
                  0
                  • gohanG gohan

                    You can use myscontroller to connect to the ethernet gateway and assign the firmware to upload for each node

                    V Offline
                    V Offline
                    vikasjee
                    wrote on last edited by vikasjee
                    #68

                    @gohan , Thanks for this idea... I am going to try this with a serial gateway instead. Do you perceive a problem? Will this work only with an ethernet gw?

                    1 Reply Last reply
                    0
                    • gohanG Offline
                      gohanG Offline
                      gohan
                      Mod
                      wrote on last edited by
                      #69

                      Myscontroller works only as ethernet. Mycontroller should also work with mqtt gateway but I'm not sure about serial.

                      V 1 Reply Last reply
                      0
                      • gohanG gohan

                        Myscontroller works only as ethernet. Mycontroller should also work with mqtt gateway but I'm not sure about serial.

                        V Offline
                        V Offline
                        vikasjee
                        wrote on last edited by
                        #70

                        @gohan Ook! Are you talking about installing MysController on Raspberrypi (I think not)? If you are going to run it on Windows and connect to Raspi Ethernet gateway remotely then using the the same option we can remotely connect to a serially connected gateway on Raspberrypi (using a USB port) from MysController running on Windows.

                        Are there steps somewhere to install MysController on Raspi [some Windows pre-installer running on Debian Linux]? I remember reading some Mysensors posts here a couple of years back(!!!), but cant seem to locate it now...

                        1 Reply Last reply
                        0
                        • gohanG Offline
                          gohanG Offline
                          gohan
                          Mod
                          wrote on last edited by
                          #71

                          MyScontroller is a windows application.
                          MyController is a controller that you can install anywhere. I personally try to avoid the usb gateways because of the limitations.

                          1 Reply Last reply
                          0
                          • Nca78N Offline
                            Nca78N Offline
                            Nca78
                            Hardware Contributor
                            wrote on last edited by
                            #72

                            @scalz do you have any specific reason why you use avrdudes to burn the fuses and burn bootloader separately, instead of using some board definitions matching the bootloader and using the burn bootloader method for Arduino interface ? I think that method is far more user intuitive for the average MySensors user ?

                            1 Reply Last reply
                            0
                            • scalzS Offline
                              scalzS Offline
                              scalz
                              Hardware Contributor
                              wrote on last edited by
                              #73

                              @Nca78 just old school habit ;) I think in the video both ways are explained. But I'll take a look at the howto to make it simpler, agree.

                              thx for reminding me!

                              1 Reply Last reply
                              0
                              • A Offline
                                A Offline
                                arraWX
                                wrote on last edited by arraWX
                                #74

                                Using FOTA in myscontroller works only occasionally for me. Sometimes it works fine. But most often I get the following messages and nothing more happens.

                                0_1512991929867_Udklip.PNG

                                The node is a sensebender micro. Gateway is rpi ethernet.

                                Has anyone experienced something similar? Anyone knows how to solve the problem?

                                EDIT: Problem solved. Reading this post I now understand that in order to get new fw into the node one has to update the sketch, refresh the repo in MysController and assign it the node.

                                1 Reply Last reply
                                0
                                • gohanG Offline
                                  gohanG Offline
                                  gohan
                                  Mod
                                  wrote on last edited by
                                  #75

                                  Once I managed to burn the sensbender micro bootloader to the pro mini, how do I connect the external flash? Just connect it to pins D10 to D13? Is this the correct way of managing the fota in the sketch before the sleep?

                                  A 1 Reply Last reply
                                  0
                                  • gohanG gohan

                                    Once I managed to burn the sensbender micro bootloader to the pro mini, how do I connect the external flash? Just connect it to pins D10 to D13? Is this the correct way of managing the fota in the sketch before the sleep?

                                    A Offline
                                    A Offline
                                    arraWX
                                    wrote on last edited by arraWX
                                    #76

                                    @gohan I recently had some problems with fota and the sensebender sketch you refer to. In this thread @tekka suggested me to enable smart sleep. I used

                                    smartSleep(MEASURE_INTERVAL);
                                    

                                    It seems that the smartSleep function has a "built in" MY_SMART_SLEEP_WAIT_DURATION_MS (which defaults to 500 ms). This makes the OTA_WAIT_PERIOD in the sensebender sketch redundant. I deleted it from the sketch.

                                    FOTA now works successfully with my sensebender boards.

                                    1 Reply Last reply
                                    0
                                    • gohanG Offline
                                      gohanG Offline
                                      gohan
                                      Mod
                                      wrote on last edited by
                                      #77

                                      I am still in the build phase, I still have to understand how to connect the flash and what to do in the code; also I need to find how to test if everything is is correct

                                      1 Reply Last reply
                                      0
                                      • J Offline
                                        J Offline
                                        jkandasa
                                        Plugin Developer
                                        wrote on last edited by
                                        #78

                                        @gohan, Yes, MyController works with Serial, Ethernet, and MQTT as well.

                                        gohanG 1 Reply Last reply
                                        0
                                        • J jkandasa

                                          @gohan, Yes, MyController works with Serial, Ethernet, and MQTT as well.

                                          gohanG Offline
                                          gohanG Offline
                                          gohan
                                          Mod
                                          wrote on last edited by
                                          #79

                                          @jkandasa I know that but I don't know how to work with the flash chip at the moment

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


                                          16

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          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