Update Onagofly Firmware on Mac OS X

It is possible to update the firmware on an Onagofly micro drone on Mac OS X using the QGroundControl software. The download for the software can be found here: http://qgroundcontrol.org/downloads.

You will also need the firmware provided by Onagofly, which is currently version 630. The firmware (with modified file extension) can be found here: https://www.dropbox.com/s/7kwutj5dnbycr0k/ONAGOfly0630.px4?dl=1

Step 1: Change firmware extension to px4

This step is not necessary if you downloaded the firmware using the link in this post, but by default the firmware file is named ONAGOfly0630.ong. This means you will need to rename it to ONAGOfly0630.px4 as the QGroundControl app will only allow you to select *.hex, *.bin, and *.px4 files, and since we are uploading firmware to the Pixhawk PX4 FMU…

Step 2: Prepare Drone

Leave the drone powered off, or disconnect the battery entirely if you are able, and connect a micro USB cable.

Step 3: Open QGroundControl

Without connecting it to your computer, start up QGroundControl.

QGroundControl-OnagoFly-1

 

Step 4: Select “Firmware”

This is mode allows QGroundControl to update the firmware on the Onagofly. Plug in (or unplug and re-plug in) the USB cable to detect the Pixhawk flight controller.

QGroundControl-OnagoFly-2

Step 5: Configure firmware update

Once your device is detected, you will need to change the firmware settings to properly update using the Onagofly firmware, rather than the default PX4 or ArduPilot stack.

  1. Select “ArduPilot Flight Stack”
    1. Quad – APM:Copter V3.3.3
  2. Check the “Advanced settings” box
    1. Choose “Custom firmware file…”
  3. Click OK.

QGroundControl-OnagoFly-3

Step 6: Select firmware file

Navigate to the location of the ONAGOfly0630.px4 firmware file and select it.

QGroundControl-OnagoFly-4

Step 7: Update Complete

You should see some status updates followed by a message saying “Upgrade complete”. A few seconds later you should hear the startup noise, and the device will be detected by QGroundControl.

QGroundControl-OnagoFly-5

 

It took several attempts to get the firmware to properly upload, so if it is unsuccessful, try again. When I was finally able to load the firmware, I first loaded the Beta ArduCopter stack, then the Onagofly. Good luck!

You may also like...

26 Responses

  1. Blas Cabrera says:

    How do you determine whether firmware needs to be updated?
    Which version of iOS app is needed for this firmware update?
    Will you post each time there is a new firmware update?

    • Justin Silver says:

      The only way I was able to view the firmware version was by using APM Planner under Flight Data > Info View > Messages. This is what it shows for me after the firmware upgrade:

      [MAV 001:1] ArduCopter V3.2.1 zddll (HEAD) 
      [MAV 001:1] PX4: HEAD NuttX: HEAD 
      [MAV 001:1] Frame: QUAD 
      [MAV 001:1] PX4v2 00290041 3335510C 37343436 
      

      I can’t guarantee that I will post every update, but I can try 🙂

      • Blas Cabrera says:

        I am unable to get APM Planner to work for me. However, I was able to find the post date for the firmware by entering https://www.dropbox.com/s/7kwutj5dnbycr0k/ONAGOfly0630.px4 which gives the DropBox window saying that the firmware was posted on May 27, 2016. Since I received my black drone on July 1, 2016, I am assuming that it does have the most recent firmware version. That date also means that the 0630 number in the file name is not the post date.

  2. Phil says:

    Just got my black version today. Figured the memory card issue with wifi and gps easy enough. Can’t get to responses to the unlock command in iOS app?
    Did firmware improve performance??

    • Justin Silver says:

      I wasn’t able to unlock the props when I had the standard Arducopter firmware installed, but it did work once I used the custom firmware file from Onagofly. The update did improve performance, however it can still be very erratic at time. The good news is that it seems like the problem is with the software and not the hardware, so there is still hope…

      • Phil says:

        The Dropbox link above only provides me with a text file. How do i convert this to a useable firmware?
        Thanks in advance.

        • Justin Silver says:

          Interesting – I hadn’t opened the file in a text editor before. It looks like the ONAGOfly630.px4 (the renamed ONAGOfly630.ong) is a JSON file and looks contains the following:

          {
              "board_id": 9, 
              "magic": "PX4FWv1", 
              "description": "Firmware for the PX4FMUv2 board", 
              "image":"... long encoded text string ...",
              "build_time": 1464334813, 
              "summary": "PX4FMUv2", 
              "version": "0.1", 
              "image_size": 765072, 
              "git_identity": "", 
              "board_revision": 0
          }
          

          The image property is where it gets the data to write to the flash I imagine, you just need to save the text file to your computer, then select it when choosing custom firmware in QGroundControl.

          • Phil says:

            When i click the link it downloads file called ONAGOfly0630.px4-2.txt and nothing else. Renaming won’t work because the file ends with .txt. Do i need to convert the text file to JSON file?
            Did you download a .ong file?
            Maybe something has changed in the drop box?

            • Phil says:

              So I get a lot further with my net book and windows BUT fail at the last hurdle. The flash halts with the following message.

              QGroundControl can upgrade the firmware on Pixhawk devices, SiK Radios and PX4 Flow Smart Cameras.
              All QGroundControl connections to vehicles must be disconnected prior to firmware upgrade.
              Please unplug your Pixhawk and/or Radio from USB.
              Plug in your device via USB to start firmware upgrade.
              Found device: Pixhawk
              Connected to bootloader:
              Version: 4
              Board ID: 9
              Flash size: 2080768
              Downloading firmware...
              From: C:/Users/Reester78/Downloads/ONAGOfly0630.px4
              Download complete
              MAV_AUTOPILOT = 12
              Firmware file missing parameter_xml_size key
              Firmware file missing airframe_xml_size key
              Succesfully decompressed image
              Erasing previous program...
              Erase complete
              Programming new version...
              Error: Flash failed: Write failed: OS error: The semaphore timeout period has expired. at address 0x00088240
              Upgrade cancelled
              ------------------------------------------
              If upgrade failed, make sure to connect directly to a powered USB port on your computer, not through a USB hub. Also make sure you are only powered via USB not battery.
              
              • Justin Silver says:

                Hard to say what the issue is, something isn’t allowing it to write to the flash drive. You could try a different USB cable, make sure that the battery is unplugged on the drone… otherwise, maybe give Mission Planner or APM Planner a try? I used QGroundControl on my Mac, not Windows so not sure if there are some caveats there. Did you install the Windows px4 drivers? https://pixhawk.org/firmware/downloads

            • Justin Silver says:

              Not sure why it would be renaming the file, it should just be ONAGOfly0630.px4. I assume the content is there, so you just need to rename it to *.px4, but if not Onago posted this as well – you just need to rename the *.ong to *.px4: https://www.mediafire.com/folder/9li3j68v9qc58/How_to_update_Firmware_of_ONAGOfly

    • Blas Cabrera says:

      I found the same problem with my black version. I solved it going into settings and turning on locations services for onagofly app when app is open.

  3. Phil says:

    SOOO, back to iMac and using the media fire download got the file and managed to complete the firmware upgrade. Unable to check what version was on it originally and currently.
    Still no love with the unlock feature to start props in IOS app. Stumped for ideas. No one i know has an Android phone to test and see if it’s an IOS app issue or com issue to drone or firmware issue?

    Thanks for your help today!

    Phil

    • Blas Cabrera says:

      I found the same unlock problem with my black version. I solved it going into settings and turning on locations services for onagofly app when app is open.

  4. Chris says:

    Hi Justin. I have forgotten my password ( for the wifi) connection with the OnagoFly! I tried the firmware update, but it leaves the password in tact. Unfortunately i no longer can connect with my onagofly, any idea how this can be solved? You seem to be an expert in this field?
    Appreciate your ideas’ thanks chris

  5. Yu-Li says:

    Hi, Justin. I connected my OnagoFly after I started the qgroundcontrol. The OnagoFly started blinking sort of purple light and then it turned to steady orange light. But qgroundcontrol somehow was not able to detect the O. I tried unplug and plug back, the result was the same. What else should I do? Thank you very much.

    • Justin Silver says:

      If you select the firmware upgrade and remove and re-insert the USB cable is it able to detect the quad?

  6. jc says:

    hello
    after i install the firmware, do i have to set the drone with QGroundControl ?

    please advise

    • Justin Silver says:

      Hi JC – I only used QGroundControl to install the firmware. You might be able to do some other things with it as well since it is compatible with the FMU in the Onagofly, but I haven’t done any experimenting with it.

  7. Steve Lane says:

    Hi Justin. Do you know of any way to improve GPS reception? I have flipped the lid to examine the antenna and it looks to be too small to be effective. I am going to experiment with one intended for a Sony Xperia Z3. that one looks like a full wave antenna. I was wondering if you had experimented?

    • Justin Silver says:

      I also considered replacing the GPS antenna, but I haven’t done any experimenting yet. I actually haven’t even opened it up yet because I keep forgetting to buy a screwdriver with a narrow shaft, but I can tell that it’s a Pixhawk PX4FMU, so it’s possible that the entire GPS module could be upgraded: https://pixhawk.org/peripherals/sensors/gps. Keep me posted!

  8. Steve Lane says:

    I use my fingernails to lift the black GPS cover. A guitar pic or the tools used for opening iPods etc will work just fine. I put a stick on paper dot on the cover and the O body so that it will go back the right way round or the antenna won’t reconnect. You will see the antenna appears to be just a 6.5mm square tab.I have looked at GPS antenna on all kinds of mobiles and they come in a wide variety of shapes and sizes. The one I am going to try looks like just a 60m length of wire. Unfortunately, I live in a basement apartment with zero GPS so I have to go outside to get reception. I will let you know how I get on. I think a degree in either Magic or antenna design would be good. As I have neither I will try the guestimation method.

  9. jc says:

    hi justin
    my onago have a pb with wifi..
    any idea to reset everything. the wifi not working at all now?

Leave a Reply

Your email address will not be published. Required fields are marked *