mirror of https://github.com/OpenIPC/wiki.git
				
				
				
			Create fpv-orange_pi5-ground.md
							parent
							
								
									88316621c3
								
							
						
					
					
						commit
						a1b876c4c3
					
				|  | @ -41,6 +41,7 @@ OpenIPC Wiki | ||||||
| - [OpenIPC as FPV system](en/fpv.md) | - [OpenIPC as FPV system](en/fpv.md) | ||||||
| - [Sigmastar FPV devices](en/fpv-sigmastar.md) | - [Sigmastar FPV devices](en/fpv-sigmastar.md) | ||||||
| - [Ubuntu based groundstation](en/fpv-gs-ubuntu.md) | - [Ubuntu based groundstation](en/fpv-gs-ubuntu.md) | ||||||
|  | - [OrangePI 5 Ubuntu based groundstation](en/fpv-orange_pi5-ground.md) | ||||||
| 
 | 
 | ||||||
| ### Troubleshooting | ### Troubleshooting | ||||||
| - [Network does not work](en/trouble-network.md) | - [Network does not work](en/trouble-network.md) | ||||||
|  |  | ||||||
|  | @ -0,0 +1,149 @@ | ||||||
|  | # OpenIPC Wiki | ||||||
|  | [Table of Content](../README.md) | ||||||
|  | 
 | ||||||
|  | Quick Setup of Ground Station for OrangePi 5 Ubuntu 22.04 | ||||||
|  | --------------------------------------------------------- | ||||||
|  | 
 | ||||||
|  | <p align="center"> | ||||||
|  |   <img src="https://github.com/OpenIPC/wiki/blob/master/images/pi5-plus.png?raw=true" alt="Logo"/> | ||||||
|  |   <img src="https://github.com/OpenIPC/wiki/blob/master/images/pi-5.png?raw=true" alt="Logo"/> | ||||||
|  | </p> | ||||||
|  | 
 | ||||||
|  | ### Prepare | ||||||
|  | 
 | ||||||
|  | ``` | ||||||
|  | sudo apt update | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
|  | ``` | ||||||
|  | sudo apt install dkms git python3-all-dev net-tools virtualenv fakeroot debhelper python3-twisted | ||||||
|  |  libpcap-dev python3-pyroute2 python3-future python3-configparser python3-all libsodium-dev | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
|  | # Download and install the Linux kernel headers for rockchip rk3588 | ||||||
|  | 
 | ||||||
|  | [https://drive.google.com/drive/folders/1R7VmAeo3_LpFDQvYSEG9ymAC-DvaLt47](https://drive.google.com/drive/folders/1R7VmAeo3_LpFDQvYSEG9ymAC-DvaLt47) | ||||||
|  | 
 | ||||||
|  | sudo dpkg -i linux-headers-legacy-rockchip-rk3588_1.1.2_arm64.deb | ||||||
|  | sudo dpkg -i linux-image-legacy-rockchip-rk3588_1.1.2_arm64.deb | ||||||
|  | ### Libsodium | ||||||
|  | 
 | ||||||
|  | ``` | ||||||
|  | git clone https://github.com/jedisct1/libsodium --branch stable | ||||||
|  | cd libsodium | ||||||
|  | ./configure | ||||||
|  | make && make check | ||||||
|  | sudo make install | ||||||
|  | ``` | ||||||
|  | ### Wifi card driver | ||||||
|  | 
 | ||||||
|  | To disable add it to the blacklist: | ||||||
|  | 
 | ||||||
|  | ``` | ||||||
|  | cat > /etc/modprobe.d/wfb.conf <<EOF | ||||||
|  | # blacklist stock module | ||||||
|  | blacklist 88XXau | ||||||
|  | blacklist 8812au | ||||||
|  | blacklist rtl8812au | ||||||
|  | blacklist rtl88x2bs | ||||||
|  | EOF | ||||||
|  | ``` | ||||||
|  | Compile the driver from source | ||||||
|  | 
 | ||||||
|  | ``` | ||||||
|  | git clone -b v5.2.20 https://github.com/svpcom/rtl8812au.git | ||||||
|  | cd rtl8812au/ | ||||||
|  | sudo ./dkms-install.sh | ||||||
|  | ``` | ||||||
|  | ### Installing WFB-NG | ||||||
|  | 
 | ||||||
|  | Using the "nmcli" command, we find out the name of your wifi adapter and substitute $WLAN in the place | ||||||
|  | 
 | ||||||
|  | ``` | ||||||
|  | git clone -b stable https://github.com/svpcom/wfb-ng.git | ||||||
|  | cd wfb-ng | ||||||
|  | sudo ./scripts/install_gs.sh $WLAN | ||||||
|  | ``` | ||||||
|  | Enable auto-upload | ||||||
|  | 
 | ||||||
|  | ``` | ||||||
|  | systemctl enable wifibroadcast@gs | ||||||
|  | ``` | ||||||
|  | ### Channel configuration | ||||||
|  | 
 | ||||||
|  | ``` | ||||||
|  | vi /etc/wifibroadcast.cfg | ||||||
|  | ``` | ||||||
|  | ### Start WFB CLI | ||||||
|  | 
 | ||||||
|  | ``` | ||||||
|  | wfb-cli gs | ||||||
|  | ``` | ||||||
|  | ### Video decoding | ||||||
|  | 
 | ||||||
|  | h265 | ||||||
|  | 
 | ||||||
|  | ``` | ||||||
|  | gst-launch-1.0 udpsrc port=5600 caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H265' ! rtph265depay ! h265parse ! mppvideodec ! xvimagesink sync=false | ||||||
|  | ``` | ||||||
|  | h264 | ||||||
|  | 
 | ||||||
|  | ``` | ||||||
|  | gst-launch-1.0 udpsrc port=5600 caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! rtph264depay ! h264parse ! mppvideodec ! xvimagesink sync=false | ||||||
|  | ``` | ||||||
|  | ###GS IS READY FOR USE### | ||||||
|  | 
 | ||||||
|  | ### Start, stop, restart service | ||||||
|  | 
 | ||||||
|  | ``` | ||||||
|  | systemctl status wifibroadcast@gs | ||||||
|  | systemctl stop wifibroadcast@gs | ||||||
|  | systemctl start wifibroadcast@gs | ||||||
|  | ``` | ||||||
|  | ### Qground control manual | ||||||
|  | 
 | ||||||
|  | - https://docs.qgroundcontrol.com/master/en/getting_started/download_and_install.html | ||||||
|  | 
 | ||||||
|  | ### Get last logs from service | ||||||
|  | ``` | ||||||
|  | journalctl -u wifibroadcast@gs -f | ||||||
|  | journalctl -xu wifibroadcast@gs -n 100 | ||||||
|  | ``` | ||||||
|  | ### Useful commands | ||||||
|  | 
 | ||||||
|  | ``` | ||||||
|  | # Checking the operation of the wfb-ng | ||||||
|  | /usr/bin/wfb_rx -p 0 -c 127.0.0.1 -u 5600 -K /etc/gs.key -i 7669206 $WLAN | ||||||
|  | 
 | ||||||
|  | # Find out the name of the wifi adapter | ||||||
|  | nmcli | ||||||
|  | ifconfig | ||||||
|  | iw | ||||||
|  | 
 | ||||||
|  | # Displays the possible parameters of the wifi adapter | ||||||
|  | iw list | ||||||
|  | 
 | ||||||
|  | # Outputs the current frequency and power parameters | ||||||
|  | sudo iw reg get | ||||||
|  | 
 | ||||||
|  | # Set a new region | ||||||
|  | sudo iw reg set RU | ||||||
|  | https://hackware.ru/?p=17978 - Solves the problem of channel selection | ||||||
|  | 
 | ||||||
|  | # Viewing running wfb-ng processes | ||||||
|  | ps -aux | grep wfb | ||||||
|  | 
 | ||||||
|  | # Set the power | ||||||
|  | sudo ip link set $WLAN down | ||||||
|  | sudo iw dev $WLAN set txpower fixed 30mBm | ||||||
|  | sudo ip link set $WLAN up | ||||||
|  | 
 | ||||||
|  | # View available plugins for decoding | ||||||
|  | gst-inspect-1.0 | grep 265 | ||||||
|  | 
 | ||||||
|  | # Shows a list of downloaded drivers/modules | ||||||
|  | lsmod | ||||||
|  | 
 | ||||||
|  | # Displays a list of connected USB devices and related drivers | ||||||
|  | usb-devices | ||||||
|  | ``` | ||||||
											
												Binary file not shown.
											
										
									
								| After Width: | Height: | Size: 246 KiB | 
											
												Binary file not shown.
											
										
									
								| After Width: | Height: | Size: 192 KiB | 
		Loading…
	
		Reference in New Issue