Git Product home page Git Product logo

Comments (41)

svpcom avatar svpcom commented on August 13, 2024

I use NanoPI NEO2 with Armbian stretch, h264 encoding camera and rtl8812 wifi
See installation instructions in the WIKI and px4-devguide

from wfb-ng.

Howie9600 avatar Howie9600 commented on August 13, 2024

i ordered two yesterday and they literally arrived 10 mins ago.

thank you i will try it all again now.

from wfb-ng.

Howie9600 avatar Howie9600 commented on August 13, 2024

i have followed all the instructions and i am getting the current error. Any help would be great

root@nanopineocore2:/# systemctl status wifibroadcast@gs

  • [email protected] - WFB profile gs
    Loaded: loaded (/lib/systemd/system/[email protected]; disabled; vendor preset: enabled)
    Active: active (running) since Wed 2019-06-12 14:33:40 UTC; 11ms ago
    Main PID: 3115 (python)
    Tasks: 1 (limit: 4915)
    CGroup: /system.slice/system-wifibroadcast.slice/[email protected]
    `-3115 /usr/bin/python -m telemetry.server gs wlx24050ff7306a

Jun 12 14:33:40 nanopineocore2 systemd[1]: Started WFB profile gs.
root@nanopineocore2:/# systemctl status wifibroadcast@gs

  • [email protected] - WFB profile gs
    Loaded: loaded (/lib/systemd/system/[email protected]; disabled; vendor preset: enabled)
    Active: activating (auto-restart) (Result: exit-code) since Wed 2019-06-12 14:33:40 UTC; 37ms ago
    Process: 3115 ExecStart=/usr/bin/python -m telemetry.server gs ${WFB_NICS} (code=exited, status=1/FAILURE)
    Main PID: 3115 (code=exited, status=1/FAILURE)

from wfb-ng.

svpcom avatar svpcom commented on August 13, 2024

journalctl -xu wifibroadcast@gs

from wfb-ng.

Howie9600 avatar Howie9600 commented on August 13, 2024

thank you so much. i got to see the error and now it is working. How did you get the rpi camera to send data through the link? is it ok if i post a basic step by step guide? well its what i did so it may help

from wfb-ng.

svpcom avatar svpcom commented on August 13, 2024

Systemd service file for raspbian

fpv-camera.service:

[Unit]
Description=FPV camera
After=network-online.target

[Service]
ExecStart=/bin/sh -c "raspivid --nopreview --awb auto -ih -t 0 -w 1920 -h 1080 -fps 30 -b 4000000 -g 30 -pf high -o - | gst-launch-1.0 fdsrc ! h264parse !  rtph264pay !  udpsink host=YOUR_WFB_IP_ADDRESS port=YOUR_WFB_PORT"
Type=simple
Restart=always
RestartSec=1s
TimeoutStopSec=10s

[Install]
WantedBy=multi-user.target

from wfb-ng.

svpcom avatar svpcom commented on August 13, 2024

Step-by-step guide will be ok - I'll add it to the wiki

from wfb-ng.

Howie9600 avatar Howie9600 commented on August 13, 2024

i will write it an send it to you.

I had it working and rebooted and am now getting

ImportError: cannot import name IPRoute

i have pyroute2 installed but it still gives this error

from wfb-ng.

svpcom avatar svpcom commented on August 13, 2024

try to install pyroute2-python2 (or something like this).

from wfb-ng.

svpcom avatar svpcom commented on August 13, 2024

python2 -m pydoc pyroute2

from wfb-ng.

Howie9600 avatar Howie9600 commented on August 13, 2024

so i have fixed that error and both tx and rx are running. I try to test and get this error

telemetry.config_parser.ConfigError: 'ascii' codec can't decode byte 0xe2 in position 76: ordinal not in range(128)

is it something i have done wrong?

from wfb-ng.

svpcom avatar svpcom commented on August 13, 2024

Remove non-ascii symbols from config file (for example unicode dash and quotes). Test it with iconv -f ascii -t utf8 /etc/wifibroadcast.cfg

from wfb-ng.

Howie9600 avatar Howie9600 commented on August 13, 2024

it is only while running the wfb_cli test. the code doesnt have the issue normally

from wfb-ng.

Howie9600 avatar Howie9600 commented on August 13, 2024

ok. so that fixed the issue but i am seeing link lost on all three connections. i cant ping 10.5.0.2 or 10.5.0.1.

for the test to work is there anything i am missing? both scripts are stable and the cards have been configure to right channel and power

from wfb-ng.

svpcom avatar svpcom commented on August 13, 2024

Check frequency channel. Try to switch from 5.8 to 2.4 GHz. Upload your config files and logs (from journalctl)

from wfb-ng.

svpcom avatar svpcom commented on August 13, 2024

What cards do you use on the both sides?

from wfb-ng.

Howie9600 avatar Howie9600 commented on August 13, 2024

hello we have a two realtek cards

-- Logs begin at Thu 2019-06-13 13:03:40 UTC, end at Thu 2019-06-13 14:39:52 UTC. --
Jun 13 14:39:44 nanopineocore2 systemd[1]: Started WFB profile drone.
-- Subject: Unit [email protected] has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit [email protected] has finished starting up.
--
-- The start-up result is done.
Jun 13 14:39:49 nanopineocore2 python[2989]: 2019-06-13 14:39:49+0000 [-] Log opened.
Jun 13 14:39:49 nanopineocore2 python[2989]: 2019-06-13 14:39:49+0000 [-] # iw reg set BO
Jun 13 14:39:49 nanopineocore2 python[2989]: 2019-06-13 14:39:49+0000 [-] # ifconfig wlx24050ff7320c down
Jun 13 14:39:49 nanopineocore2 python[2989]: 2019-06-13 14:39:49+0000 [-] # iw dev wlx24050ff7320c set monitor otherbss
Jun 13 14:39:49 nanopineocore2 python[2989]: 2019-06-13 14:39:49+0000 [-] # ifconfig wlx24050ff7320c up
Jun 13 14:39:50 nanopineocore2 python[2989]: 2019-06-13 14:39:50+0000 [-] # iw dev wlx24050ff7320c set channel 11 HT20
Jun 13 14:39:50 nanopineocore2 python[2989]: 2019-06-13 14:39:50+0000 [-] # iw dev wlx24050ff7320c set txpower fixed 58
Jun 13 14:39:50 nanopineocore2 python[2989]: 2019-06-13 14:39:50+0000 [-] Listen for telem stream 1(RX), 2(TX) on 0.0.0.0:14550
Jun 13 14:39:50 nanopineocore2 python[2989]: 2019-06-13 14:39:50+0000 [-] UDPProxyProtocol starting on 14550
Jun 13 14:39:50 nanopineocore2 python[2989]: 2019-06-13 14:39:50+0000 [-] UDPProxyProtocol starting on 14700
Jun 13 14:39:50 nanopineocore2 python[2989]: 2019-06-13 14:39:50+0000 [-] UDPProxyProtocol starting on 56786
Jun 13 14:39:50 nanopineocore2 python[2989]: 2019-06-13 14:39:50+0000 [-] Telem RX: /usr/bin/wfb_rx -p 1 -u 14700 -K /etc/drone.key -k 1 -n 2 wlx2$
Jun 13 14:39:50 nanopineocore2 python[2989]: 2019-06-13 14:39:50+0000 [-] Telem TX: /usr/bin/wfb_tx -p 2 -u 14701 -K /etc/drone.key -B 20 -G long $
Jun 13 14:39:50 nanopineocore2 python[2989]: 2019-06-13 14:39:50+0000 [-] Started telem rx
Jun 13 14:39:50 nanopineocore2 python[2989]: 2019-06-13 14:39:50+0000 [-] Started telem tx
Jun 13 14:39:50 nanopineocore2 python[2989]: 2019-06-13 14:39:50+0000 [-] Listen for video stream 3 on 0.0.0.0:5602
Jun 13 14:39:50 nanopineocore2 python[2989]: 2019-06-13 14:39:50+0000 [-] Started video tx
Jun 13 14:39:50 nanopineocore2 python[2989]: 2019-06-13 14:39:50+0000 [-] Video: /usr/bin/wfb_tx -p 3 -u 5602 -K /etc/drone.key -B 20 -G long -S 1$
Jun 13 14:39:50 nanopineocore2 python[2989]: 2019-06-13 14:39:50+0000 [-] UDPProxyProtocol starting on 14900
Jun 13 14:39:50 nanopineocore2 python[2989]: 2019-06-13 14:39:50+0000 [-] UDPProxyProtocol starting on 43822
Jun 13 14:39:50 nanopineocore2 python[2989]: 2019-06-13 14:39:50+0000 [-] Tunnel RX: /usr/bin/wfb_rx -p 4 -u 14900 -K /etc/drone.key -k 1 -n 2 wlx$
Jun 13 14:39:50 nanopineocore2 python[2989]: 2019-06-13 14:39:50+0000 [-] Tunnel TX: /usr/bin/wfb_tx -p 5 -u 14901 -K /etc/drone.key -B 20 -G long$
Jun 13 14:39:50 nanopineocore2 python[2989]: 2019-06-13 14:39:50+0000 [-] Started tunnel rx
Jun 13 14:39:50 nanopineocore2 python[2989]: 2019-06-13 14:39:50+0000 [-] Started tunnel tx
Jun 13 14:39:50 nanopineocore2 python[2989]: 2019-06-13 14:39:50+0000 [-] telem tx: Listen on 14701 for wlx24050ff7320c
Jun 13 14:39:50 nanopineocore2 python[2989]: 2019-06-13 14:39:50+0000 [-] video tx: Listen on 5602 for wlx24050ff7320c
Jun 13 14:39:50 nanopineocore2 python[2989]: 2019-06-13 14:39:50+0000 [-] telem rx: wlx24050ff7320c has DLT_IEEE802_11_RADIO Encap
Jun 13 14:39:50 nanopineocore2 python[2989]: 2019-06-13 14:39:50+0000 [-] tunnel tx: Listen on 14901 for wlx24050ff7320c
Jun 13 14:39:50 nanopineocore2 python[2989]: 2019-06-13 14:39:50+0000 [-] tunnel rx: wlx24050ff7320c has DLT_IEEE802_11_RADIO Encap
-- Logs begin at Thu 2016-11-03 17:16:42 UTC, end at Thu 2019-06-13 14:35:01 UTC. --
Jun 13 12:41:34 nanopineocore2 systemd[1]: Started WFB profile gs.
-- Subject: Unit [email protected] has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit [email protected] has finished starting up.
--
-- The start-up result is done.
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] Log opened.
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] # iw reg set BO
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] # ifconfig wlx24050ff7306a down
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] # iw dev wlx24050ff7306a set monitor otherbss
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] # ifconfig wlx24050ff7306a up
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] # iw dev wlx24050ff7306a set channel 11 HT20
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] # iw dev wlx24050ff7306a set txpower fixed 100
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] Connect telem stream 2(RX), 1(TX) to 127.0.0.1:14550
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] UDPProxyProtocol starting on 33214
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] UDPProxyProtocol starting on 14600
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] UDPProxyProtocol starting on 60088
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] Telem RX: /usr/bin/wfb_rx -p 2 -u 14600 -K /etc/gs.key -k 1 -n 2 wlx24050ff7306a
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] Telem TX: /usr/bin/wfb_tx -p 1 -u 14601 -K /etc/gs.key -B 20 -G long -S 1 -L 0 -M 1 -k 1 -n 2 wlx24050ff7306a
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] AntennaFactory starting on 8001
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] Started telem rx
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] Started telem tx
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] Send video stream 3 to 127.0.0.1:5600
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] AntennaFactory starting on 8002
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] Started video rx
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] Video: /usr/bin/wfb_rx -p 3 -c 127.0.0.1 -u 5600 -K /etc/gs.key -k 8 -n 12 wlx24050ff7306a
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] UDPProxyProtocol starting on 14800
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] UDPProxyProtocol starting on 33780
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] Tunnel RX: /usr/bin/wfb_rx -p 5 -u 14800 -K /etc/gs.key -k 1 -n 2 wlx24050ff7306a
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] Tunnel TX: /usr/bin/wfb_tx -p 4 -u 14801 -K /etc/gs.key -B 20 -G long -S 1 -L 0 -M 1 -k 1 -n 2 wlx24050ff7306a
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] AntennaFactory starting on 8003
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] Started tunnel rx
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] Started tunnel tx
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] telem tx: Listen on 14601 for wlx24050ff7306a
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] telem rx: wlx24050ff7306a has DLT_IEEE802_11_RADIO Encap
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] video rx: wlx24050ff7306a has DLT_IEEE802_11_RADIO Encap
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] tunnel tx: Listen on 14801 for wlx24050ff7306a
Jun 13 12:41:38 nanopineocore2 python[1765]: 2019-06-13 12:41:38+0000 [-] tunnel rx: wlx24050ff7306a has DLT_IEEE802_11_RADIO Encap

from wfb-ng.

svpcom avatar svpcom commented on August 13, 2024

What driver version do you use?

from wfb-ng.

svpcom avatar svpcom commented on August 13, 2024

Use v5.2.20 from https://github.com/svpcom/rtl8812au

from wfb-ng.

jeng37 avatar jeng37 commented on August 13, 2024

Hi,

I got the same trouble for installing, so i wrote a little howto.
Wifibroadcast-Setup.txt

Thanks goes to Vasily.

from wfb-ng.

svpcom avatar svpcom commented on August 13, 2024

Thanks!

from wfb-ng.

svpcom avatar svpcom commented on August 13, 2024

I've added it to the wiki: https://github.com/svpcom/wifibroadcast/wiki/Install-from-scratch

from wfb-ng.

Howie9600 avatar Howie9600 commented on August 13, 2024

That is excellent. Just a question what base image did you use? I always have issues with the drivers as they can never work with the kernel of what ever image I use.

from wfb-ng.

jeng37 avatar jeng37 commented on August 13, 2024

from wfb-ng.

svpcom avatar svpcom commented on August 13, 2024

I use https://dl.armbian.com/nanopineo2/Debian_stretch_next.7z but with custom kernel from FriendlyArm: http://wiki.friendlyarm.com/wiki/index.php/Building_U-boot_and_Linux_for_H5/H3/H2%2B
Patched drivers for 8812au is here: https://github.com/svpcom/rtl8812au

from wfb-ng.

svpcom avatar svpcom commented on August 13, 2024

Kernel and modules binaries (with patched 88XXau driver) for NEO2: linux.tgz.zip
You need to extract it to the image root and symlink Image and dtbs. Then rebuild initramfs. See http://wiki.friendlyarm.com/wiki/index.php/Building_U-boot_and_Linux_for_H5/H3/H2%2B for details.

from wfb-ng.

jeng37 avatar jeng37 commented on August 13, 2024

from wfb-ng.

Howie9600 avatar Howie9600 commented on August 13, 2024

I have both pi's (all versions) and nanopineocore2

from wfb-ng.

Tyrrx avatar Tyrrx commented on August 13, 2024

@svpcom
Could you post how to symlink your Kernel and modules binaries and how to rebuild the initramfs, step by step?
I tried it but I dont know where I failed.

from wfb-ng.

svpcom avatar svpcom commented on August 13, 2024

How to install kernel and modules:

cd / && tar xzvf /tmp/linux.tgz
cd /boot
ln -s Image-svpcom Image
ln -s dtb-svpcom dtb
update-initramfs -c -k 4.14.111

from wfb-ng.

Tyrrx avatar Tyrrx commented on August 13, 2024

@svpcom
Thank you very much.
Do I need to copy /linux/lib/modules to /lib/modules too?

from wfb-ng.

svpcom avatar svpcom commented on August 13, 2024

cd / && tar xzvf /tmp/linux.tgz will extract modules to /lib/modules automatically

from wfb-ng.

Tyrrx avatar Tyrrx commented on August 13, 2024

@svpcom
I did ln -sf ..... becuase these symlinks already exist.
At the moment the neo2 doesn't boot and the green led flashes twice each secound. red one is off.
Is there something I need to do before I update the initramfs like deleteing the old one or something like that? Or does "update-initramfs -c -k 4.14.111" automaticly overwrites the old one?

from wfb-ng.

svpcom avatar svpcom commented on August 13, 2024

It should overwrite. You need to connect USB-UART to NEO2 serial console to debug

from wfb-ng.

Tyrrx avatar Tyrrx commented on August 13, 2024

@svpcom
Inside /boot/ there are two old files:
System.map-4.19.59-sunxi64 and config-4.19.59-sunxi64 but not for the new kernel.
Could that be the problem and where do I get them?

from wfb-ng.

svpcom avatar svpcom commented on August 13, 2024

You need to mount boot partition into /boot (it depends on image, some images have separate boot partition and other single partition for boot and root)

from wfb-ng.

Tyrrx avatar Tyrrx commented on August 13, 2024

@svpcom
I am using the armbian Image.

from wfb-ng.

svpcom avatar svpcom commented on August 13, 2024

What is on serial console during boot?

from wfb-ng.

Tyrrx avatar Tyrrx commented on August 13, 2024

@svpcom
I dont have a Uart Adapter right now but I will tell you as soon as possible.

from wfb-ng.

Tyrrx avatar Tyrrx commented on August 13, 2024

@svpcom
I finally soldered a serial connector. This is the result i got:
https://pastebin.com/Vc1s8wuJ

from wfb-ng.

svpcom avatar svpcom commented on August 13, 2024
Loading Environment from EXT4... ** File not found /boot/boot.env **

it seems that your u-boot environment in /boot directory is corrupted

from wfb-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.