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
Next revision Both sides next revision
howto:pyduml [2017/07/19 03:46]
vk2fro
howto:pyduml [2017/08/07 22:02]
koelooptiemanna [5. Flashing]
Line 31: Line 31:
   * Open a terminal window   * Open a terminal window
  
 +<code>
   ls /dev/tty* | sed -e "s#.*/##g" > /tmp/dji.on   ls /dev/tty* | sed -e "s#.*/##g" > /tmp/dji.on
 +</code>
   * Disconnect the USB cable   * Disconnect the USB cable
 +<code>
   ls /dev/tty* | sed -e "s#.*/##g" > /tmp/dji.off   ls /dev/tty* | sed -e "s#.*/##g" > /tmp/dji.off
 +</code>
   * Now find what is our tty port for the aircraft   * Now find what is our tty port for the aircraft
 +<code>
   diff /tmp/dji.on /tmp/dji.off | grep "<" | sed -e "s/.* //" > /tmp/dji.port   diff /tmp/dji.on /tmp/dji.off | grep "<" | sed -e "s/.* //" > /tmp/dji.port
   rm /tmp/dji.on /tmp/dji.off   rm /tmp/dji.on /tmp/dji.off
   cat /tmp/dji.port   cat /tmp/dji.port
 +</code>
 ===== 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 51: Line 51:
   * Open a terminal window/command prompt and go to our directory   * Open a terminal window/command prompt and go to our directory
  
 +<code>
   cd ~/Documents/pyduml   cd ~/Documents/pyduml
 +</code>
   * Prepare our package for delivery - Rename the firmware   * Prepare our package for delivery - Rename the firmware
 +<code>
   cp <yourfirmwarename> dji_system.bin   cp <yourfirmwarename> dji_system.bin
 +</code>
   * For example...   * For example...
- +<code> 
-  cp V01.03.0700_Mavic_dji_system dji_system.bin+  cp V01.03.0700_Mavic_dji_system.bin dji_system.bin 
 +</code>
 If your on windows substitute 'copy' for 'cp' If your on windows substitute 'copy' for 'cp'
- +<code> 
-   copy V01.03.0700_Mavic_dji_system dji_system.bin +  copy V01.03.0700_Mavic_dji_system.bin dji_system.bin 
 +</code>
   * Deliver the package   * Deliver the package
 +<code>
   python pyduml.py /dev/`cat /tmp/dji.port`   python pyduml.py /dev/`cat /tmp/dji.port`
-  +</code>  
 For windows users: For windows users:
   python pyduml.py com#:   python pyduml.py com#:
Line 77: Line 79:
  
 Want to watch the process? if you have root, you can issue the following commands in a second terminal session: Want to watch the process? if you have root, you can issue the following commands in a second terminal session:
- +  * monitor progress with terminal if you already have root: 
- * monitor progress with terminal if you already have root: +<code> 
- +  adb shell 
-   adb shell +  busybox tail -f /ftp/upgrade/dji/log/upgrade00.log 
-   busybox tail -f /ftp/upgrade/dji/log/upgrade00.log +</code>
   * Remove temporary file from the firmware upload that we created before   * Remove temporary file from the firmware upload that we created before
 +<code>
   rm dji_system.bin   rm dji_system.bin
-  +</code> 
 Windows users can simply del the file Windows users can simply del the file
 +<code>
   del dji_system.bin   del dji_system.bin
 +</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
  
   cp fireworks.tar dji_system.bin   cp fireworks.tar dji_system.bin
-   
 Windows users: Windows users:
-  +<code>
   copy fireworks.tar dji_system.bin   copy fireworks.tar dji_system.bin
- +</code>   
-   * Deliver the package +  * Deliver the package 
 +<code>
    python pyduml.py /dev/`cat /tmp/dji.port`    python pyduml.py /dev/`cat /tmp/dji.port`
-  +</code>
 Windows users: Windows users:
   python pyduml.py com#:   python pyduml.py com#:
howto/pyduml.txt · Last modified: 2017/08/21 17:52 by nils