mirror of
https://github.com/svpcom/wfb-ng.git
synced 2025-02-18 14:53:48 -04:00
Update install_gs.sh
Some checks failed
CodeQL / Analyze (cpp) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
WFB-ng package builder for debian / build_and_test (amd64.amd64.max, 11) (push) Failing after 4s
WFB-ng package builder for debian / build_and_test (amd64.amd64.max, 12) (push) Failing after 4s
WFB-ng package builder for debian / build_and_test (arm64.arm64v8.cortex-a53, 11) (push) Failing after 4s
WFB-ng package builder for debian / build_and_test (arm64.arm64v8.cortex-a53, 12) (push) Failing after 4s
WFB-ng package builder for debian / build_and_test (armhf.arm32v7.max, 11) (push) Failing after 4s
WFB-ng package builder for debian / build_and_test (armhf.arm32v7.max, 12) (push) Failing after 4s
WFB-ng package builder for debian / build_and_test (mips64le.mips64le.MIPS64R2-generic, 11) (push) Failing after 4s
WFB-ng package builder for debian / build_and_test (mips64le.mips64le.MIPS64R2-generic, 12) (push) Failing after 4s
WFB-ng package builder for debian / build_and_test (ppc64le.ppc64le.power8, 11) (push) Failing after 4s
WFB-ng package builder for debian / build_and_test (ppc64le.ppc64le.power8, 12) (push) Failing after 4s
WFB-ng package builder for debian / build_and_test (s390x.s390x.max, 11) (push) Failing after 4s
WFB-ng package builder for debian / build_and_test (s390x.s390x.max, 12) (push) Failing after 4s
WFB-ng package builder for RPI and NanoPI / build_and_test (2023-02-21-raspios-bullseye-arm64-lite) (push) Failing after 4s
WFB-ng package builder for RPI and NanoPI / build_and_test (2023-02-21-raspios-bullseye-armhf-lite) (push) Failing after 4s
WFB-ng package builder for RPI and NanoPI / build_and_test (armbian_23.02.1_nanopineo2_jammy_current_5.15.93) (push) Failing after 4s
WFB-ng package builder for RPI and NanoPI / build_and_test (armbian_23.02.2_nanopineo_jammy_current_5.15.93) (push) Failing after 4s
WFB-ng package builder for ubuntu / build_and_test (amd64.amd64.max, 20.04) (push) Failing after 4s
WFB-ng package builder for ubuntu / build_and_test (amd64.amd64.max, 22.04) (push) Failing after 4s
WFB-ng package builder for ubuntu / build_and_test (amd64.amd64.max, 24.04) (push) Failing after 4s
WFB-ng package builder for ubuntu / build_and_test (arm64.arm64v8.cortex-a53, 20.04) (push) Failing after 4s
WFB-ng package builder for ubuntu / build_and_test (arm64.arm64v8.cortex-a53, 22.04) (push) Failing after 4s
WFB-ng package builder for ubuntu / build_and_test (arm64.arm64v8.cortex-a53, 24.04) (push) Failing after 4s
WFB-ng package builder for ubuntu / build_and_test (armhf.arm32v7.max, 20.04) (push) Failing after 4s
WFB-ng package builder for ubuntu / build_and_test (armhf.arm32v7.max, 22.04) (push) Failing after 4s
WFB-ng package builder for ubuntu / build_and_test (armhf.arm32v7.max, 24.04) (push) Failing after 4s
Some checks failed
CodeQL / Analyze (cpp) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
WFB-ng package builder for debian / build_and_test (amd64.amd64.max, 11) (push) Failing after 4s
WFB-ng package builder for debian / build_and_test (amd64.amd64.max, 12) (push) Failing after 4s
WFB-ng package builder for debian / build_and_test (arm64.arm64v8.cortex-a53, 11) (push) Failing after 4s
WFB-ng package builder for debian / build_and_test (arm64.arm64v8.cortex-a53, 12) (push) Failing after 4s
WFB-ng package builder for debian / build_and_test (armhf.arm32v7.max, 11) (push) Failing after 4s
WFB-ng package builder for debian / build_and_test (armhf.arm32v7.max, 12) (push) Failing after 4s
WFB-ng package builder for debian / build_and_test (mips64le.mips64le.MIPS64R2-generic, 11) (push) Failing after 4s
WFB-ng package builder for debian / build_and_test (mips64le.mips64le.MIPS64R2-generic, 12) (push) Failing after 4s
WFB-ng package builder for debian / build_and_test (ppc64le.ppc64le.power8, 11) (push) Failing after 4s
WFB-ng package builder for debian / build_and_test (ppc64le.ppc64le.power8, 12) (push) Failing after 4s
WFB-ng package builder for debian / build_and_test (s390x.s390x.max, 11) (push) Failing after 4s
WFB-ng package builder for debian / build_and_test (s390x.s390x.max, 12) (push) Failing after 4s
WFB-ng package builder for RPI and NanoPI / build_and_test (2023-02-21-raspios-bullseye-arm64-lite) (push) Failing after 4s
WFB-ng package builder for RPI and NanoPI / build_and_test (2023-02-21-raspios-bullseye-armhf-lite) (push) Failing after 4s
WFB-ng package builder for RPI and NanoPI / build_and_test (armbian_23.02.1_nanopineo2_jammy_current_5.15.93) (push) Failing after 4s
WFB-ng package builder for RPI and NanoPI / build_and_test (armbian_23.02.2_nanopineo_jammy_current_5.15.93) (push) Failing after 4s
WFB-ng package builder for ubuntu / build_and_test (amd64.amd64.max, 20.04) (push) Failing after 4s
WFB-ng package builder for ubuntu / build_and_test (amd64.amd64.max, 22.04) (push) Failing after 4s
WFB-ng package builder for ubuntu / build_and_test (amd64.amd64.max, 24.04) (push) Failing after 4s
WFB-ng package builder for ubuntu / build_and_test (arm64.arm64v8.cortex-a53, 20.04) (push) Failing after 4s
WFB-ng package builder for ubuntu / build_and_test (arm64.arm64v8.cortex-a53, 22.04) (push) Failing after 4s
WFB-ng package builder for ubuntu / build_and_test (arm64.arm64v8.cortex-a53, 24.04) (push) Failing after 4s
WFB-ng package builder for ubuntu / build_and_test (armhf.arm32v7.max, 20.04) (push) Failing after 4s
WFB-ng package builder for ubuntu / build_and_test (armhf.arm32v7.max, 22.04) (push) Failing after 4s
WFB-ng package builder for ubuntu / build_and_test (armhf.arm32v7.max, 24.04) (push) Failing after 4s
This commit is contained in:
parent
1613daf722
commit
b3a8884772
@ -111,12 +111,10 @@ wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 2312
|
|||||||
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
|
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
|
||||||
```
|
```
|
||||||
- Run `$ ethtool -i wlan0` and ensure that it show right driver: `rtl88xxau_wfb` or `rtl8812eu`
|
- Run `$ ethtool -i wlan0` and ensure that it show right driver: `rtl88xxau_wfb` or `rtl8812eu`
|
||||||
- Copy the name of the RTL8812AU/EU WiFi card.
|
- Download and run [install_gs.sh](https://raw.githubusercontent.com/svpcom/wfb-ng/refs/heads/master/scripts/install_gs.sh):
|
||||||
- Install wfb-ng. Replace `wlan0` with the previously copied name of the WiFi card.
|
|
||||||
```
|
```
|
||||||
git clone -b stable https://github.com/svpcom/wfb-ng.git
|
curl -o install_gs.sh https://raw.githubusercontent.com/svpcom/wfb-ng/refs/heads/master/scripts/install_gs.sh
|
||||||
cd wfb-ng
|
sudo bash ./install_gs.sh
|
||||||
sudo ./scripts/install_gs.sh
|
|
||||||
```
|
```
|
||||||
- Done! To monitor the link use the following command on the ground station:
|
- Done! To monitor the link use the following command on the ground station:
|
||||||
```
|
```
|
||||||
|
@ -5,9 +5,33 @@ nics="$*"
|
|||||||
auto_nics=0
|
auto_nics=0
|
||||||
release=master
|
release=master
|
||||||
|
|
||||||
|
if [ $(id -u) != "0" ]
|
||||||
|
then
|
||||||
|
echo "Root access is required. Run: sudo $0 $*"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
err_handler()
|
||||||
|
{
|
||||||
|
echo "--------------------------------------------------------------------------------"
|
||||||
|
echo "WFB-ng setup failed"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
wfb_nics()
|
||||||
|
{
|
||||||
|
for i in $(find /sys/class/net/ -maxdepth 1 -type l | sort)
|
||||||
|
do
|
||||||
|
if udevadm info $i | grep -qE 'ID_NET_DRIVER=(rtl88xxau_wfb|rtl88x2eu)'
|
||||||
|
then
|
||||||
|
echo $(basename $i)
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
if [ -z "$nics" ]
|
if [ -z "$nics" ]
|
||||||
then
|
then
|
||||||
nics="$($(dirname $0)/wfb-nics)"
|
nics="$(wfb_nics)"
|
||||||
auto_nics=1
|
auto_nics=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -19,24 +43,31 @@ then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
trap err_handler ERR
|
||||||
|
|
||||||
# Try to install prebuilt packages from wfb-ng apt repository
|
# Try to install prebuilt packages from wfb-ng apt repository
|
||||||
|
|
||||||
curl -s https://apt.wfb-ng.org/public.asc | sudo gpg --dearmor --yes -o /usr/share/keyrings/wfb-ng.gpg
|
curl -s https://apt.wfb-ng.org/public.asc | gpg --dearmor --yes -o /usr/share/keyrings/wfb-ng.gpg
|
||||||
echo "deb [signed-by=/usr/share/keyrings/wfb-ng.gpg] https://apt.wfb-ng.org/ $(lsb_release -cs) $release" | sudo tee /etc/apt/sources.list.d/wfb-ng.list
|
echo "deb [signed-by=/usr/share/keyrings/wfb-ng.gpg] https://apt.wfb-ng.org/ $(lsb_release -cs) $release" > /etc/apt/sources.list.d/wfb-ng.list
|
||||||
sudo apt update
|
|
||||||
|
|
||||||
if ! sudo apt -y install wfb-ng
|
if ! apt update
|
||||||
|
then
|
||||||
|
rm -f /etc/apt/sources.list.d/wfb-ng.list /usr/share/keyrings/wfb-ng.gpg
|
||||||
|
apt update
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! apt -y install wfb-ng
|
||||||
then
|
then
|
||||||
# Install required packages for wfb-ng source build
|
# Install required packages for wfb-ng source build
|
||||||
|
|
||||||
apt -y install python3-all python3-all-dev libpcap-dev libsodium-dev libevent-dev python3-pip python3-pyroute2 python3-msgpack \
|
apt -y install python3-all python3-all-dev libpcap-dev libsodium-dev libevent-dev python3-pip python3-pyroute2 python3-msgpack \
|
||||||
python3-future python3-twisted python3-serial python3-jinja2 iw virtualenv debhelper dh-python fakeroot build-essential \
|
python3-future python3-twisted python3-serial python3-jinja2 iw virtualenv debhelper dh-python fakeroot build-essential \
|
||||||
libgstrtspserver-1.0-dev
|
libgstrtspserver-1.0-dev socat git
|
||||||
|
|
||||||
tmpdir="$(mktemp -d)"
|
tmpdir="$(mktemp -d)"
|
||||||
git clone -b $release --depth 1 https://github.com/svpcom/wfb-ng.git "$tmpdir"
|
git clone -b $release --depth 1 https://github.com/svpcom/wfb-ng.git "$tmpdir"
|
||||||
|
|
||||||
(cd "$tmpdir" && make deb && sudo apt -y install ./deb_dist/*.deb)
|
(cd "$tmpdir" && make deb && apt -y install ./deb_dist/*.deb)
|
||||||
rm -rf "$tmpdir"
|
rm -rf "$tmpdir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -52,7 +83,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Setup config
|
# Setup config
|
||||||
cat <<EOF >> /etc/wifibroadcast.cfg
|
cat <<EOF > /etc/wifibroadcast.cfg
|
||||||
[common]
|
[common]
|
||||||
wifi_channel = 165 # 165 -- radio channel @5825 MHz, range: 5815–5835 MHz, width 20MHz
|
wifi_channel = 165 # 165 -- radio channel @5825 MHz, range: 5815–5835 MHz, width 20MHz
|
||||||
# 1 -- radio channel @2412 Mhz,
|
# 1 -- radio channel @2412 Mhz,
|
||||||
@ -82,13 +113,50 @@ options 8812eu rtw_tx_pwr_by_rate=0 rtw_tx_pwr_lmt_enable=0
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
if [ -f /etc/dhcpcd.conf ]; then
|
if [ -f /etc/dhcpcd.conf ]; then
|
||||||
echo "denyinterfaces $(nics)" >> /etc/dhcpcd.conf
|
echo "denyinterfaces $nics" >> /etc/dhcpcd.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
cat > /etc/motd <<__EOF__
|
||||||
|
WFB-ng: http://wfb-ng.org
|
||||||
|
Setup HOWTO: https://github.com/svpcom/wfb-ng/wiki/Setup-HOWTO
|
||||||
|
Community chat: (wfb-ng support) https://t.me/wfb_ng
|
||||||
|
|
||||||
|
Version: $release
|
||||||
|
|
||||||
|
Quickstart (x86 laptop):
|
||||||
|
1. Run "wfb-cli gs" to monitor link state
|
||||||
|
2. Run QGroundControl
|
||||||
|
|
||||||
|
Quickstart (SBC + RTP video):
|
||||||
|
1. Run "wfb-cli gs" to monitor link state
|
||||||
|
2. Edit /etc/wifibroadcast.cfg and in section [gs_video] set peer to ip address of your laptop with QGC
|
||||||
|
3. Edit /etc/wifibroadcast.cfg and in section [gs_mavlink] set peer to ip address of your laptop with QGC
|
||||||
|
4. Reboot SBC.
|
||||||
|
5. Run QGroundControl on your laptop
|
||||||
|
|
||||||
|
Quickstart (SBC + RTSP video):
|
||||||
|
1. Run "wfb-cli gs" to monitor link state
|
||||||
|
2. Run "sudo systemctl enable rtsp@h264" or "sudo systemctl enable rtsp@h265" (according to your video codec)
|
||||||
|
3. Edit /etc/wifibroadcast.cfg and in section [gs_mavlink] set peer to ip address of your laptop with QGC
|
||||||
|
4. Reboot SBC.
|
||||||
|
5. Run QGroundControl on your laptop. Set video QGC source to rtsp://x.x.x.x:8554/wfb , where x.x.x.x is GS IP address.
|
||||||
|
6. (optional) Run any other RTSP video player(s) for rtsp://x.x.x.x:8554/wfb
|
||||||
|
|
||||||
|
To set TX power edit /etc/modprobe.d/wfb.conf and reboot.
|
||||||
|
|
||||||
|
In case of any failures check "sudo systemctl status wifibroadcast@gs" service status.
|
||||||
|
See full logs via: "sudo journalctl -xu wifibroadcast@gs"
|
||||||
|
__EOF__
|
||||||
|
|
||||||
# Start gs service
|
# Start gs service
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl start wifibroadcast@gs
|
systemctl start wifibroadcast@gs
|
||||||
systemctl status wifibroadcast@gs
|
systemctl status wifibroadcast@gs
|
||||||
systemctl enable wifibroadcast@gs
|
systemctl enable wifibroadcast@gs
|
||||||
|
|
||||||
|
echo "--------------------------------------------------------------------------------"
|
||||||
|
echo
|
||||||
|
cat /etc/motd
|
||||||
|
echo
|
||||||
|
echo "--------------------------------------------------------------------------------"
|
||||||
echo "GS setup successfully finished"
|
echo "GS setup successfully finished"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
Depends3: python3-twisted, libpcap-dev, libsodium-dev, libevent-dev, python3-pyroute2, python3-future, python3-serial, python3-msgpack, python3-jinja2, python3-yaml, socat, libgstrtspserver-1.0-dev
|
Depends3: python3-twisted, libpcap-dev, libsodium-dev, libevent-dev, python3-pyroute2, python3-future, python3-serial, python3-msgpack, python3-jinja2, python3-yaml, socat, iw, libgstrtspserver-1.0-dev
|
||||||
Package3: wfb-ng
|
Package3: wfb-ng
|
||||||
Replaces3: wifibroadcast
|
Replaces3: wifibroadcast
|
||||||
Maintainer: Vasily Evseenko <svpcom@p2ptech.org>
|
Maintainer: Vasily Evseenko <svpcom@p2ptech.org>
|
||||||
|
Loading…
Reference in New Issue
Block a user