Difference between revisions of "Cube firmware updating and communication"
Joost.Weijs (talk | contribs) (Created page with "== Introduction == The firmware on the Cube can be updated in two ways: Via a direct USB connection to a PC or through the Jetson module over UART. This guide describes both m...") |
Joost.Weijs (talk | contribs) |
||
| Line 15: | Line 15: | ||
== Firmware update over UART (through Jetson) == | == Firmware update over UART (through Jetson) == | ||
| + | This method can be done 'in situ', meaning that it does not require opening the drone to install a cable to the carrier board. | ||
| + | Instead, the update is done over the integrated UART-connection between the Jetson module and the Cube. | ||
| + | To use this method, it is required that the currently running firmware on the Cube is configured to communicate over Mavlink on '''SERIALXXX'''. | ||
| + | # Connect to your Jetson (through e.g. Wifi, ethernet, serial) and open a session (ssh or a terminal in remote desktop) | ||
| + | # Get the uploader script from the ardupilot repository: | ||
| + | #: <code><nowiki>$ wget "https://github.com/ArduPilot/ardupilot/raw/master/Tools/scripts/uploader.py"</nowiki></code> | ||
| + | # Install required modules '''XXX''' | ||
| + | # | ||
Revision as of 13:11, 26 October 2021
Introduction
The firmware on the Cube can be updated in two ways: Via a direct USB connection to a PC or through the Jetson module over UART. This guide describes both methods. When updating through USB, the process is the same as one would do on the default Pixhawk carrier board and this method is therefore compatible with any autopilot software. For the UART method we describe how to do the update for Ardupilot.
Firmware update over USB (through host PC)
Imporant: To update over USB you must use the "USB"-connector on the board (see diagram and printing on the board itself, not to be confused with "USB-0"), and not the USB port of the Cube itself.
- Connect your PC to the cube through the "USB"-connection (not "USB-0") using the provided JST-GH-USB cable.
- Power on the board, your PC should recognize the Cube
- Use a standard installation method (using for example Mission Planner, APMPlanner, or QGroundControl) to install the firmware:
Firmware update over UART (through Jetson)
This method can be done 'in situ', meaning that it does not require opening the drone to install a cable to the carrier board. Instead, the update is done over the integrated UART-connection between the Jetson module and the Cube. To use this method, it is required that the currently running firmware on the Cube is configured to communicate over Mavlink on SERIALXXX.
- Connect to your Jetson (through e.g. Wifi, ethernet, serial) and open a session (ssh or a terminal in remote desktop)
- Get the uploader script from the ardupilot repository:
$ wget "https://github.com/ArduPilot/ardupilot/raw/master/Tools/scripts/uploader.py"
- Install required modules XXX