Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
image-download-station [2020/03/02 00:33] wf68spef created |
image-download-station [2021/03/25 21:27] wf68spef |
||
---|---|---|---|
Line 3: | Line 3: | ||
The images are stored on the two Raspberry Pi Zeros. The Image download station provides image download via two parallel Wifi links from the drone. The image download station is based on two [[https://www.gl-inet.com/products/gl-ar750/|GL-AR750]] access points. The datatransfer itself is handled by rsync via its rsync protocoll which doesnt rely on SSH. SSH is not used as the pi zero is not fast enough to encrypt the huge data we want to transfer for each flight. | The images are stored on the two Raspberry Pi Zeros. The Image download station provides image download via two parallel Wifi links from the drone. The image download station is based on two [[https://www.gl-inet.com/products/gl-ar750/|GL-AR750]] access points. The datatransfer itself is handled by rsync via its rsync protocoll which doesnt rely on SSH. SSH is not used as the pi zero is not fast enough to encrypt the huge data we want to transfer for each flight. | ||
- | ==== Access points ==== | + | ===== Access points ===== |
+ | |||
+ | pw: adakfd4bm | ||
=== AP1 === | === AP1 === | ||
Line 40: | Line 42: | ||
TX Power: 20 dbm | TX Power: 20 dbm | ||
- | ==== setup Laptop ==== | + | ===== Laptop setup ===== |
- | The laptop is a ASUS TUF FX505DV 8/512 R5-3550H RXT2060 with | + | General setup for Hardware, OS, eduroam access, crrcsim e.t.c. is in the [[groundstation|Laptop description.]] |
- | * AMD Ryzen 3550H CPU | + | ==== rsync ==== |
- | * 8 GB DDR4-SDRAM | + | |
- | * 512 GB SSD | + | |
- | * 15.6" Full HD 1920x1080 IPS screen | + | |
- | * AMD Radeon Vega 8 GPU | + | |
- | * NVIDIA GeForce RTX 2060 (6GB GDDR6) GPU | + | |
- | * LAN | + | |
- | * Dual-band WLAN | + | |
- | * Bluetooth | + | |
- | + | ||
- | running Ubuntu 18.04 LTS (Bionic Beaver) | + | |
- | + | ||
- | === rsync === | + | |
Configure datastorage with rsync in ''/etc/rsyncd.conf'' on ship laptop. | Configure datastorage with rsync in ''/etc/rsyncd.conf'' on ship laptop. | ||
- | Each flight should have a unique name and needs two folders to be configured. | + | Each flight should have a unique named folder and needs two subfolders to be configured. |
e.g. | e.g. | ||
<code> | <code> | ||
[ringo-05032020_0915h-cam-r] | [ringo-05032020_0915h-cam-r] | ||
- | path=/home/USER/flightdata/ringo-05032020_0915h-cam-r | + | path=/home/USER/flightdata/ringo-05032020_0915h/cam-r |
hosts allow = * | hosts allow = * | ||
list = true | list = true | ||
Line 73: | Line 63: | ||
[ringo-05032020_0915h-cam-l] | [ringo-05032020_0915h-cam-l] | ||
- | path=/home/USER/flightdata/ringo-05032020_0915h-cam-l | + | path=/home/USER/flightdata/ringo-05032020_0915h/cam-l |
hosts allow = * | hosts allow = * | ||
list = true | list = true | ||
Line 81: | Line 71: | ||
</code> | </code> | ||
- | __**IMPORTANT** Please add cam-r or cam-l at the end, as this encoding is needed for the searchwing-gui to work in correct manner **IMPORTANT**__ | + | __**IMPORTANT** You have to name your folders ''cam-r'' and ''cam-l'' as this encoding is needed for the searchwing-gui to work in correct manner **IMPORTANT**__ |
Line 90: | Line 80: | ||
| | ||
- | ==== transfer images ==== | + | === transfer images === |
run datatransfer task on each pi ( later triggered via script @ groundcontrol pc): e.g. | run datatransfer task on each pi ( later triggered via script @ groundcontrol pc): e.g. | ||
Line 96: | Line 86: | ||
rsync -auv --progress /data/bilder/ rsync://GROUNDSTATIONIP/ringo-05032020_0915h-cam-r | rsync -auv --progress /data/bilder/ rsync://GROUNDSTATIONIP/ringo-05032020_0915h-cam-r | ||
- | | + | * Don't use the -z option which compresses the data. The images are already compressed and the CPU load will result in 1 MB/s transfer rate compared to 3-4 MB/s without the -z option. (Beck, 23.2.20) |
- | Don't use the -z option which compresses the data. The images are already compressed and the CPU load will result in 1 MB/s transfer rate compared to 3-4 MB/s without the -z option. (Beck, 23.2.20) | + | * If you like to transfer and delete the images from the pi, use the --remove-source-files option. |
- | If you like to transfer and delete the images from the pi, use the --remove-source-files option. | + | |
- | ==== troubleshooting ==== | + | === troubleshooting === |
rsync error: error starting client-server protocol (code 5) at main.c(1675) [sender=3.1.3] | rsync error: error starting client-server protocol (code 5) at main.c(1675) [sender=3.1.3] | ||
Line 111: | Line 101: | ||
- | === eduroam === | ||
- | Eduroam does not work with the default wpasupplicant 2.6 version. I have made a backport of wpasupplicant 2.9 from Ubuntu 19.10. | + | ==== searchwing-gui ==== |
- | {{ ::wpasupplicant_2.9-1ubuntu2_amd64.zip | wpasupplicant package 2.9 }} | + | To install and use the GUI please read the UPTODATE README in https://gitlab.com/searchwing/development/searchwing-gui or on the local repo on the laptop. |
- | You need to install that package. Please download from this wiki and unzip it. | + | === config === |
+ | |||
+ | * Set your flight image data folder in ''/backend/config.js'' : ''datadir: '/absolute/path/to/data/dir''' | ||
+ | * Set your camera left and right prefix folder names in ''/backend/config.js'' : ''left: 'cam-l', right: 'cam-r''' | ||
+ | |||
+ | === Import Data === | ||
+ | |||
+ | * For each flight create a folder with a reasonable name : e.g. ''/datadir/ringo-05032020_0915h'' | ||
+ | * For each flight create subfolders for the data from each camera : e.g. ''/datadir/ringo-05032020_0915h/cam-l'' & ''/datadir/ringo-05032020_0915h/cam-r'' | ||
+ | * Copy / RSYNC your image data to these folders by using the procedure described in the section RSYNC | ||
+ | |||
+ | === visualize images === | ||
+ | |||
+ | * Run backend | ||
<code> | <code> | ||
- | sudo apt install libnl-route-3-200 | + | bash |
- | sudo dpkg -i wpasupplicant_2.9-1ubuntu2_amd64.deb | + | cd backend |
+ | npm install | ||
+ | node index.js | ||
</code> | </code> | ||
- | Check that the wpa supplicant service is running with | + | * Run frontend |
<code> | <code> | ||
- | sudo systemctl status wpa_supplicant.service | + | bash |
+ | cd frontend | ||
+ | npm install | ||
+ | npm start | ||
</code> | </code> | ||
- | In the Wifi Settings for eduroam choose in the "security" settings | + | * Go to http://localhost:3000 |
+ | |||
+ | ==== searchwing-pi-manager ==== | ||
+ | |||
+ | |||
+ | A tool to manage the pi cameras in multiple drones. It serves as a easy GUI for preflight system check. It uses SSH connections to gather the infos and visulizes it via a qt gui. | ||
- | * Security: WPA & WPA2 Enterprise | + | To install and it please read the UPTODATE README in https://gitlab.com/searchwing/development/searchwing-pi-manager or on the local repo on the laptop. |
- | * Authentication: Tunneled TLS | + | |
- | * Anonymous identity: eduroam@hs-augsburg.de | + | |
- | * Check "No CA certificate is required" | + | |
- | * Inner Authentication: PAP | + | |
- | * Username: YOURUSERNAME@hs-augsburg.de | + | |
- | * Password: YOURPASSWORD | + | |