User Tools

Site Tools


howto:pyduml

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howto:pyduml [2017/07/29 19:25]
paoloone [4. Identify the port for the USB link to your aircraft]
howto:pyduml [2017/08/21 17:52] (current)
nils [4. Identify the port for the USB link to your aircraft]
Line 23: Line 23:
 If you are planning to flash new firmware, you obviously need some firmware files. The primary source is http://github.com/MAVProxyUser/dji_system.bin ... or, you can go to [[.:firmware]] for a listing of what is available If you are planning to flash new firmware, you obviously need some firmware files. The primary source is http://github.com/MAVProxyUser/dji_system.bin ... or, you can go to [[.:firmware]] for a listing of what is available
  
 +**NOTE for Spark RC**: Firmware for Spark RC have the ending ".tar" as the Spark RC is quite different from the other devices (also how to flash, see below, skip to bottom of (4.) to see next Spark RC note...)
 ===== 4. Identify the port for the USB link to your aircraft ===== ===== 4. Identify the port for the USB link to your aircraft =====
 This step will find the TTY for connectivity to your aircraft, and store it in a file /tmp/dji.port for use later. This step will find the TTY for connectivity to your aircraft, and store it in a file /tmp/dji.port for use later.
Line 44: Line 45:
   cat /tmp/dji.port   cat /tmp/dji.port
 </code> </code>
 +
 +**NOTE for Spark RC**: Please skip above and just switch on RC and connect your Mac/PC to its WiFi network as a preparation. Also see notes for Spark RC in section (5.) 
 ===== 5. Flashing ===== ===== 5. Flashing =====
 FULLY CHARGE A BATTERY!!! do not try to flash with a depleted battery - itʼll only end in tears and a dead aircraft. If you aren't interested in changing firmware and you just want to get root access, skip ahead to the next step. FULLY CHARGE A BATTERY!!! do not try to flash with a depleted battery - itʼll only end in tears and a dead aircraft. If you aren't interested in changing firmware and you just want to get root access, skip ahead to the next step.
Line 57: Line 60:
 <code> <code>
   cp <yourfirmwarename> dji_system.bin   cp <yourfirmwarename> dji_system.bin
 +</code>
 +**NOTE for Spark RC**:
 +<code>
 +  #ONLY do this if flashing a Spark RC
 +  cp <yourSparkRCfirmwarename.tar> fw.tar
 </code> </code>
   * For example...   * For example...
 <code> <code>
-  cp V01.03.0700_Mavic_dji_system dji_system.bin+  cp V01.03.0700_Mavic_dji_system.bin dji_system.bin
 </code> </code>
 If your on windows substitute 'copy' for 'cp' If your on windows substitute 'copy' for 'cp'
 <code> <code>
-  copy V01.03.0700_Mavic_dji_system dji_system.bin+  copy V01.03.0700_Mavic_dji_system.bin dji_system.bin
 </code> </code>
   * Deliver the package   * Deliver the package
 <code> <code>
   python pyduml.py /dev/`cat /tmp/dji.port`   python pyduml.py /dev/`cat /tmp/dji.port`
 +</code>  
 +**NOTE for Spark RC**: No additional Parameters needed, just choose the Spark RC as device when prompted...
 +<code>
 +  #ONLY do this if flashing a Spark RC
 +  python pyduml.py
 </code>   </code>  
 For windows users: For windows users:
Line 92: Line 105:
   del dji_system.bin   del dji_system.bin
 </code> </code>
 +
 +The optional batteries then can upgraded/downgraded simply by inserting them in the aircraft and connecting to the Assistant, letting it detect and fix any discrepancy in the versions.
 ===== 6. Rooting ===== ===== 6. Rooting =====
   * Prepare our package for delivery   * Prepare our package for delivery
howto/pyduml.1501356314.txt.gz · Last modified: 2017/07/29 19:25 by paoloone