There's command iwconfig but don't know if that gives you the info you need. And maybe sudo iwlist wlano scan. Not sure as you are running your wifi as an AP if these will give the info you want.luckybenni wrote:Hi MrEngman,
I'm involved in a Open Source Copter project where we use a RaspPi Zero as basis for the flight control communication between a Smartphone application and the flight controller in the Copter. The Zero is setting up an AP where the user logs in with his Smartphone and then steers the Copter via an Android App.
One safety feature in the app is a constant analysis of the signal strength of the respective user - if it drops below a certain quality level the Copter stops automatically. Currently the signal strength is analyzed via the iw command, which unfortunately does not support non kernel drivers.
Do you happen to know alternative commands to iw that can be used to read the signal strength of devices connected to the WLAN stick acting as an AP and that are working with your driver?
Thanks a ton for your immense work.
Greetings, Benjamin
Sorry, no.ppoirier wrote:Hello MrEngman
I am currently running on a PREEMPT 4.4.9 (http://www.frank-durr.de/?p=203) , do you have a 8812au driver builded for this kernel?
Best Regards
Try again.st3fyx wrote:Hi,
I've updated kernel, but i can't find right driver.
This is the message:
./install-wifi -c 8812au rpi-update
Your current kernel revision = 4.4.20+
Your current kernel build = #908
Please wait ... checking the kernel revision and build you will have after running command 'sudo rpi-update'.
Running command 'sudo rpi-update' will load:
kernel revision = 4.4.20+
kernel build = #909
Checking for a new 8812au wifi driver module if you run command 'sudo rpi-update'.
A driver does not yet exist for this update.
Regards
S.
You will need to reboot your Pi. The driver you downloaded and installed requires some additional modules being loaded and these will be loaded when you reboot.st3fyx wrote:I've an error:
./install-wifi
Your current kernel revision = 4.4.20+
Your current kernel build = #908
Checking for a wifi module to determine the driver to install.
Your wifi module is Bus 001 Device 004: ID 0bda:8179 Realtek Semiconductor Corp.
And it uses the 8188eu driver.
Checking for a new 8188eu wifi driver module for your current kernel.
There is a driver module available for this kernel revision.
Downloading the 8188eu driver.
Installing the 8188eu driver.
Error: could not insert module 8188eu.ko: Unknown symbol in module
Code: Select all
sudo rm /lib/modules/4.4.20+/kernel/drivers/net/wireless/8188eu.ko
sudo depmod -aCode: Select all
Error: could not insert module 8812au.ko: Unknown symbol in moduleCode: Select all
wget https://dl.dropboxusercontent.com/u/80256631/install-wifi.tar.gz
tar xzf install-wifi.tar.gzCode: Select all
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.4.23+ #913 Tue Oct 4 13:56:56 BST 2016 armv6l GNU/Linux
pi@raspberrypi:~ $ lsmod
Module Size Used by
8188eu 931354 0
cfg80211 499234 1 8188eu
rfkill 21397 2 cfg80211
pi@raspberrypi:~ $ cat /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
Code: Select all
pi@raspberrypi:~ $ iwconfig
wlan0 unassociated Nickname:"<WIFI@REALTEK>"
Mode:Managed Frequency=2.412 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
pi@raspberrypi:~ $ sudo iwlist wlan0 scan
wlan0 No scan resultsCode: Select all
sudo rm /lib/modules/4.4.23+/kernel/drivers/net/wireless/8188eu.ko
sudo depmod -a
sudo rm /etc/modprobe.d/8188eu.conf
Code: Select all
pi@raspberrypi:~ $ cat /etc/network/interfaces.orig
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet manual
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.confCode: Select all
pi@raspberrypi:~ $ ./install-wifi
Your current kernel revision = 4.4.23+
Your current kernel build = #913
Checking for a wifi module to determine the driver to install.
Your wifi module is Bus 001 Device 007: ID 0bda:8179 Realtek Semiconductor Corp.
And it uses the 8188eu driver.
Checking for a new 8188eu wifi driver module for your current kernel.
There is a driver module available for this kernel revision.
Downloading the 8188eu driver.
Installing the 8188eu driver.
A version of the driver 8188eu.ko is already loaded and running. You will need to reboot to load the new driver.Code: Select all
pi@raspberrypi:~ $ dmesg | grep RTL
[ 13.478991] RTL871X: module init start
[ 13.479026] RTL871X: rtl8188eu v4.3.0.8_13968.20150417
[ 13.479038] RTL871X: build time: Oct 4 2016 14:56:35
[ 13.548430] RTL871X: rtw_ndev_init(wlan0)
[ 13.564691] RTL871X: module init ret=0
[ 14.732888] ==> rtl8188e_iol_efuse_patch
[ 16.942281] RTL871X: rtw_cmd_thread: DriverStopped(0) SurpriseRemoved(1) break at line 478Right on spot! Amazing, it works fine from another port on that same hub, thanks!MrEngman wrote:Maybe change the USB port it is plugged in to and see if that makes a difference.
Indeed...looks like there's still room for magic in computing.MrEngman wrote:Doesn't explain why the wifi works with the r8188eu driver and not my 8188eu driver though.
Hi macmpi,macmpi wrote:Right on spot! Amazing, it works fine from another port on that same hub, thanks!MrEngman wrote:Maybe change the USB port it is plugged in to and see if that makes a difference.
Indeed...looks like there's still room for magic in computing.MrEngman wrote:Doesn't explain why the wifi works with the r8188eu driver and not my 8188eu driver though.
With that cleared, I'll move to playing with hostapd, and check if it may work with baseline version now...
MrEngman wrote:The file I downloaded was rtl8188eus_linux_v4.3.0.8_13968.20150417.zip
That's great: since the included code is GPLv2, how about putting the code to github, so that source code is published, with reference to legit origins?huangjiansword wrote:Hi, MrEngman, I found the source code from tp-link website, http://www.tp-link.com/il/download/TL-W ... tml#Driver
you can follow the latest source code from here.