mirror of https://github.com/OpenIPC/wiki.git
Merge pull request #213 from githubniko/master
Инструкция по настройке наземки на OrangePI 5 Ubuntupull/215/head
commit
2fa047d4dc
|
@ -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,160 @@
|
||||||
|
# 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 upgrade
|
||||||
|
```
|
||||||
|
|
||||||
|
### 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
|
||||||
|
```
|
||||||
|
|
||||||
|
### Wifi card driver
|
||||||
|
|
||||||
|
To disable add it to the blacklist:
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo bash -c "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
|
||||||
|
```
|
||||||
|
|
||||||
|
and enable auto-upload
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo systemctl enable wifibroadcast@gs
|
||||||
|
```
|
||||||
|
|
||||||
|
### Channel configuration
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo vi /etc/wifibroadcast.cfg
|
||||||
|
```
|
||||||
|
|
||||||
|
### Copying the encryption key from an IP camera
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo scp root@192.168.1.10:/etc/gs.key /etc/gs.key
|
||||||
|
```
|
||||||
|
|
||||||
|
and restarting wfb-ng:
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo systemctl restart wifibroadcast@gs
|
||||||
|
```
|
||||||
|
|
||||||
|
### 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
|
||||||
|
```
|
||||||
|
|
||||||
|
### 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