Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
image-download-station [2020/03/02 00:33] wf68spef created |
image-download-station [2021/08/06 12:20] (current) 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 =====Ìý |
+ | Ìý | ||
+ | WIFI password: adakfd4bm | ||
=== AP1 === | === AP1 === | ||
Line 27: | Line 29: | ||
This router is connected with the WAN port to a LAN port of AP1. | This router is connected with the WAN port to a LAN port of AP1. | ||
- | Router IP: 192.168.8.200 | + | Router IP: 192.168.8.2 |
WAN Port is Lan Port | WAN Port is Lan Port | ||
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 | + | |