Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
dataflash_log_download [2020/02/15 10:42] wf68spef created |
dataflash_log_download [2022/05/31 18:11] (current) wf68spef |
||
---|---|---|---|
Line 4: | Line 4: | ||
Therefore a wireless method need to be found to get the data from the pixracer. | Therefore a wireless method need to be found to get the data from the pixracer. | ||
+ | |||
+ | If not other noted, the baudrate is set to 115200. | ||
=== Method1: Download via MavEsp WIFI === | === Method1: Download via MavEsp WIFI === | ||
Line 11: | Line 13: | ||
- Download the latest firmware for mavesp: https://github.com/dogmaphobic/mavesp8266 | - Download the latest firmware for mavesp: https://github.com/dogmaphobic/mavesp8266 | ||
- Login into pixracer WIFI which is provided by the ESP | - Login into pixracer WIFI which is provided by the ESP | ||
- | - Open http://192.168.4.1/update and flash the downloaded firmwareÌý | + | - Open ''http://192.168.4.1/update'' and flash the downloaded firmwareÌý |
- | - Optinal: Set Params https://github.com/dogmaphobic/mavesp8266/blob/master/HTTP.mdÌý | + | - Optinal: Set Params ''https://github.com/dogmaphobic/mavesp8266/blob/master/HTTP.md''Ìý |
- | - Optinal: Set WIFI Channel via http://192.168.4.1/setparameters?channel=11 (Here Channel 11) | + | - Optinal: Set WIFI Channel via ''http://192.168.4.1/setparameters?channel=1'' (Here Channel 1 - At HS Augsburg least occupied Channel) |
- Optinal: Restart ESP as only then the new params will be used | - Optinal: Restart ESP as only then the new params will be used | ||
- | - Open QGroundcontrol and download dataflash Log | + | |
- | Test 14.2.2020 | + | Test 14.2.2020 - MAVEsp in AP Mode |
- Qgroundcontrol Dailybuild 14.2.2020 | - Qgroundcontrol Dailybuild 14.2.2020 | ||
- Mavesp Firmware 1.2.2 | - Mavesp Firmware 1.2.2 | ||
+ | - Login into pixracer WIFI which is provided by the ESP | ||
+ | - Open QGroundcontrol and download dataflash Log | ||
- => Speed about 15-20kB/sec | - => Speed about 15-20kB/sec | ||
- Estimated Time to Download One Flight: Pixracer creates 3.4 MB/Min => 204MB/h = 204MB/Flight => 204MB / 0,020MB/sec = 10200 Sec = 170 Min = ~3h | - Estimated Time to Download One Flight: Pixracer creates 3.4 MB/Min => 204MB/h = 204MB/Flight => 204MB / 0,020MB/sec = 10200 Sec = 170 Min = ~3h | ||
- | === Method2: Download via MAVProxy to Pi === | + | Test 15.2.2020 - MAVEsp in Station ModeÌý |
+ | Ìý | ||
+ | - Login into pixracer WIFI which is provided by the ESPÌý | ||
+ | - Set MAVEsp to Client / Station Mode: Mode = 1 . Be sure to type in the correct AP Name and Password. I tested by giving static IPÌý | ||
+ | - Set Params via HTTP Interface: ''http://192.168.4.1/setparameters?mode=1&ssidsta=APNAME&pwdsta=PASSWORD&ipsta=192.168.8.44&gatewaysta=192.168.8.1&subnetsta=255.255.255.0&reboot=1''Ìý | ||
+ | - Start QGroundcontrolÌý | ||
+ | - Connection should be established automaticallyÌý | ||
+ | - Download dataflash LogÌý | ||
+ | - Speed about 18kB/secÌý | ||
+ | Ìý | ||
+ | === Method2: Download via UART-MAVProxy to Raspberry === | ||
Idea is to download the dataflashlog via Serial Telemetry Link from the Pi from the Pixracer | Idea is to download the dataflashlog via Serial Telemetry Link from the Pi from the Pixracer | ||
- Wire RX / TX with the PI | - Wire RX / TX with the PI | ||
- | - Install MAVProxy @ PI : sudo pip3 install mavproxyÌý | + | - Install MAVProxy @ PI : ''sudo pip3 install mavproxy''Ìý |
- | - Set Telemetry Speed (115200 / 900000) via QGroundcontrol | + | - Set Telemetry Speed (115200 / 921600) via QGroundcontrolÌý |
+ | - start pi<->pixracer connection : ''sudo mavproxy.py --master=/dev/ttyS0 --baudrate=921600''Ìý | ||
+ | - get log list : ''log list''Ìý | ||
+ | - download log: ''log download <logid> <filename>''Ìý | ||
+ | Ìý | ||
+ | Test 15.2.2020Ìý | ||
+ | - ''log download 1 1.bin''Ìý | ||
+ | - => RTL> Finished downloading 1.bin (473553 bytes 48 seconds, 9.8 kbyte/sec 143 retries)Ìý | ||
+ | Ìý | ||
+ | Test 20210529 CM4Ìý | ||
+ | - ''mavproxy.py --master=/dev/ttyAMA0,1500000''Ìý | ||
+ | - Baudrate 1500000Ìý | ||
+ | - Finished downloading log1.bin (232633 bytes 10 seconds, 21.7 kbyte/sec 0 retries)Ìý | ||
+ | Ìý | ||
+ | Test 20210617 Pi0:Ìý | ||
+ | - ''mavproxy.py --master=/dev/ttyS0,115200 --default-modules log''Ìý | ||
+ | - Baudrate 115200: Finished downloading log1.bin (232633 bytes 29 seconds, 7.9 kbyte/sec 0 retries)Ìý | ||
+ | - Baudrate 500000: Finished downloading log1.bin (232633 bytes 17 seconds, 13.7 kbyte/sec 0 retries)Ìý | ||
+ | - Baudrate 921600: Finished downloading log1.bin (232633 bytes 13 seconds, 16.8 kbyte/sec 0 retries)Ìý | ||
+ | - Baudrate 1500000: Downloading log1.bin - 232560/232633 bytes 100.0% 10.1 kbyte/s (100 retries 57 missing)Ìý | ||
+ | Ìý | ||
+ | Test 20220531 CM4:Ìý | ||
+ | Ìý | ||
+ | **Baudrates**Ìý | ||
+ | Ìý | ||
+ | **115200**Ìý | ||
+ | * Unordered List ItemFinished downloading log1.bin (55289 bytes 6 seconds, 8.7 kbyte/sec 0 retries)Ìý | ||
+ | Ìý | ||
+ | Ìý | ||
+ | **500000**Ìý | ||
+ | Ìý | ||
+ | * Finished downloading log1.bin (55289 bytes 3 seconds, 16.3 kbyte/sec 0 retries)Ìý | ||
+ | Ìý | ||
+ | Ìý | ||
+ | Ìý | ||
+ | **921600**Ìý | ||
+ | - log download 1 | ||
- | - | ||
- | RTL> Finished downloading 1.bin (473553 bytes 48 seconds, 9.8 kbyte/sec 143 retries) | + | - Finished downloading log1.bin (55289 bytes 3 seconds, 16.1 kbyte/sec 0 retries)Ìý |
+ | - Finished downloading log1.bin (55289 bytes 3 seconds, 16.2 kbyte/sec 0 retries)Ìý | ||
+ | - Finished downloading log1.bin (55289 bytes 3 seconds, 15.8 kbyte/sec 0 retries)Ìý | ||
+ | - Finished downloading log1.bin (55289 bytes 3 seconds, 16.1 kbyte/sec 0 retries)Ìý | ||
+ | - Finished downloading log1.bin (55289 bytes 3 seconds, 16.5 kbyte/sec 0 retries)Ìý | ||
+ | Ìý | ||
+ | Ìý | ||
+ | Ìý | ||
+ | **1500000**Ìý | ||
+ | * Finished downloading log1.bin (55289 bytes 3 seconds, 16.9 kbyte/sec 0 retries)Ìý | ||
+ | * Finished downloading log1.bin (55289 bytes 3 seconds, 17.0 kbyte/sec 0 retries)Ìý | ||
+ | * Finished downloading log1.bin (55289 bytes 3 seconds, 16.9 kbyte/sec 0 retries)Ìý | ||
+ | * Finished downloading log1.bin (55289 bytes 3 seconds, 17.0 kbyte/sec 0 retries)Ìý | ||
+ | * Ìý | ||
+ | Ìý | ||
+ | Ìý | ||
+ | === Method3: Download via USB-MAVProxy to Pi ===Ìý | ||
+ | Ìý | ||
+ | Test 27.5.2021: CM4/Pi4 Ìý | ||
+ | - Finished downloading log3.bin (13292972 bytes 60 seconds, 219.2 kbyte/sec 0 retries)Ìý | ||
+ | Ìý | ||
+ | Test 28.5.2021: Pi Zero Ìý | ||
+ | Ìý | ||
+ | - Added usb connector as described in [[https://www.instructables.com/Raspberry-Pi-Zero-OTG-Hack-Add-a-Fullsize-Connecto/|HERE]]Ìý | ||
+ | {{ ::signal-2021-05-28-170257.jpeg?400 |}}Ìý | ||
+ | Ìý | ||
+ | ''mavproxy.py --master=/dev/ttyACM0,115200''Ìý | ||
+ | - loads all modules of mavproxy => 100% idle cpu Ìý | ||
+ | - Finished downloading log2.bin (462481 bytes 35 seconds, 13.1 kbyte/sec 0 retries)Ìý | ||
+ | - Finished downloading log2.bin (462481 bytes 46 seconds, 10.0 kbyte/sec 0 retries)Ìý | ||
+ | - Finished downloading log2.bin (462481 bytes 64 seconds, 7.1 kbyte/sec 0 retries)Ìý | ||
+ | Ìý | ||
+ | ''mavproxy.py --master=/dev/ttyACM0,115200 --default-modules log''Ìý | ||
+ | - loads only log module of mavproxy => 60% idle cpu Ìý | ||
+ | - Finished downloading log1.bin (232633 bytes 8 seconds, 26.9 kbyte/sec 0 retries)Ìý | ||
+ | - Finished downloading log1.bin (232633 bytes 8 seconds, 26.9 kbyte/sec 0 retries)Ìý | ||
+ | - Finished downloading log2.bin (462481 bytes 17 seconds, 26.9 kbyte/sec 0 retries)Ìý | ||
+ | Ìý | ||
+ | Test 20210529: Pixracer @ LaptopÌý | ||
+ | ''mavproxy.py --master=/dev/ttyACM0,1500000 --default-modules log''Ìý | ||
+ | - Finished downloading log3.bin (13292972 bytes 50 seconds, 264.3 kbyte/sec 0 retries)Ìý | ||
+ | - Finished downloading log3.bin (13292972 bytes 49 seconds, 270.3 kbyte/sec 0 retries)Ìý | ||
+ | Ìý | ||
+ | Ìý | ||
+ | Test 20210529: Pixracer @ CM4Ìý | ||
+ | ''mavproxy.py --master=/dev/ttyACM0,1500000 --default-modules log''Ìý | ||
+ | - Finished downloading log3.bin (13292972 bytes 53 seconds, 249.2 kbyte/sec 0 retries)Ìý | ||
+ | - Finished downloading log3.bin (13292972 bytes 53 seconds, 249.3 kbyte/sec 0 retries)Ìý | ||
+ | Ìý | ||
+ | === Method4: Download via QGC ===Ìý | ||
+ | Ìý | ||
+ | Test 28.5.2021: QGC @ LaptopÌý | ||
+ | - ~250 kbyte/secÌý | ||
+ | Ìý | ||