MrEngman
Posts: 3632
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Wlan Stick with RTL8192EU Chipset

Thu Jan 11, 2018 8:48 pm

appalcrumble wrote:
Thu Jan 11, 2018 7:20 pm
Thanks so much!!!

Commands worked perfectly.

However, I am still not seeing the stick. Any thoughts?

[edit: I downloaded this version off the website: 8192eu-4.14.13-v7-1077.tar.gz]

When I run lsusb, all I see is:
Bus 001 Device 004: ID 2357:0109 *blank*

Running iwconfig gives me:
eth0 no wireless extensions

lo no wireless extensions

And typing sudo iwlist wlan0 scan, returns:
wlan0 Interface doesn't support scanning

I currently have installed a fresh version of Raspbian stretch. Kernel is 4.9.59-v7+.

/etc/network/interfaces and wpa_supplicant is blank.

Thanks again, appreciate any ideas.
Why did you download 8192eu-4.14.13-v7-1077.tar.gz? I said download the driver file that uses the kernel version used by the Pi shown by command uname -a

You say you have kernel 4.9.59-v7+ so you will need to download the driver file 8192eu-4.9.59-v7-1047.tar.gz.

Once you have installed the driver you will need to configure the wifi to connect to your network, although the scan command should show up nearby networks before you have configured the network set up. Edit file /etc/wpa_supplicant/wpa_supplicant.conf and add the following section to the end of the file

Code: Select all

network={
	ssid="network-name"
	psk="network-password"
	key_mgmt=WPA-PSK
}
Also change the country code from country=GB to the code used by the country where you are.

File /etc/wpa_supplicant/wpa_supplicant.conf should then look something like

Code: Select all

country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
	ssid="network-name"
	psk="network-password"
	key_mgmt=WPA-PSK
}
Do not edit file /etc/network/interfaces
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

appalcrumble
Posts: 3
Joined: Thu Jan 11, 2018 4:29 pm

Re: Wlan Stick with RTL8192EU Chipset

Thu Jan 11, 2018 9:35 pm

Ah, thank you! Sorry that was a stupid error on my part!

Working great now. Thank you thank you thank you!!!!!

coys3000
Posts: 3
Joined: Mon Jan 15, 2018 8:06 pm

Re: Wlan Stick with RTL8192EU Chipset

Mon Jan 15, 2018 8:22 pm

As everyone else has said, first of all thank you so much for help! It's greatly appreciated.

I have used your install-wifi script and it correctly installed 8192eu.ko but it's still not picking up the usb device.

Code: Select all

lsusb 
Bus 001 Device 005: ID 2357:0109  
Bus 001 Device 004: ID 03f0:0024 Hewlett-Packard KU-0316 Keyboard
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
If i do ifconfig, iwconfig or lshw -c network all are showing the device as working with the driver rtl8192. I'm trying to follow this tutorial https://pimylifeup.com/raspberry-pi-wifi-extender/ to create a wifi network and everything seems to be in order but I am not creating a network.

Do you know if the TP-Link TL-WN823N is capable of sending signal in addition to receiving? Or is it just not installed correctly? Thanks!

MrEngman
Posts: 3632
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Wlan Stick with RTL8192EU Chipset

Mon Jan 15, 2018 10:13 pm

coys3000 wrote:
Mon Jan 15, 2018 8:22 pm
As everyone else has said, first of all thank you so much for help! It's greatly appreciated.

I have used your install-wifi script and it correctly installed 8192eu.ko but it's still not picking up the usb device.

Code: Select all

lsusb 
Bus 001 Device 005: ID 2357:0109  
Bus 001 Device 004: ID 03f0:0024 Hewlett-Packard KU-0316 Keyboard
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
If i do ifconfig, iwconfig or lshw -c network all are showing the device as working with the driver rtl8192. I'm trying to follow this tutorial https://pimylifeup.com/raspberry-pi-wifi-extender/ to create a wifi network and everything seems to be in order but I am not creating a network.

Do you know if the TP-Link TL-WN823N is capable of sending signal in addition to receiving? Or is it just not installed correctly? Thanks!
Command lsusb is showing the wifi device. It is Bus 001 Device 005: ID 2357:0109. Just because there is no description does not mean it is not being found. There are quite a few wifi devices that only show the USB ID and nothing else.

I cannot access the tutorial as the antivirus software on my laptop is reporting a malicious web site when I try to access it so am unable to see what you are doing to set it up.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

coys3000
Posts: 3
Joined: Mon Jan 15, 2018 8:06 pm

Re: Wlan Stick with RTL8192EU Chipset

Tue Jan 16, 2018 3:45 am

MrEngman wrote:
Mon Jan 15, 2018 10:13 pm
coys3000 wrote:
Mon Jan 15, 2018 8:22 pm
As everyone else has said, first of all thank you so much for help! It's greatly appreciated.

I have used your install-wifi script and it correctly installed 8192eu.ko but it's still not picking up the usb device.

Code: Select all

lsusb 
Bus 001 Device 005: ID 2357:0109  
Bus 001 Device 004: ID 03f0:0024 Hewlett-Packard KU-0316 Keyboard
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
If i do ifconfig, iwconfig or lshw -c network all are showing the device as working with the driver rtl8192. I'm trying to follow this tutorial https://pimylifeup.com/raspberry-pi-wifi-extender/ to create a wifi network and everything seems to be in order but I am not creating a network.

Do you know if the TP-Link TL-WN823N is capable of sending signal in addition to receiving? Or is it just not installed correctly? Thanks!
Command lsusb is showing the wifi device. It is Bus 001 Device 005: ID 2357:0109. Just because there is no description does not mean it is not being found. There are quite a few wifi devices that only show the USB ID and nothing else.

I cannot access the tutorial as the antivirus software on my laptop is reporting a malicious web site when I try to access it so am unable to see what you are doing to set it up.
Oh thats strange, the site has been fine on all the computers I've used it on. I can give a quick run down. But I guess my main concern is that I can't use the dongle to broadcast instead of just receive, do you have any information on this? Anyway just in case you might be able to help with tutorial.

first sudo apt-get install hostapd dnsmasq

in /etc/dhcpcd.conf

Code: Select all

interface wlan1
static ip_address=192.168.220.1/24
static routers=192.168.220.0
then sudo service dhcpcd restart

in /etc/hostapad/hostapd.conf

Code: Select all

interface=wlan1
driver=nl80211

hw_mode=g
channel=6
ieee80211n=1
wmm_enabled=1
ht_capab=[HT40][SHORT-GI-20][DSSS_CCK-40]
macaddr_acl=0
ignore_broadcast_ssid=0

auth_algs=1
wpa=2
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP

ssid=Pi3-Extender
wpa_passphrase=raspberry
I have a feeling the driver might be the problem? I have tried rtl8192eu, 8192eu, 8192eu.ko and possibly some more than I can't remember

in /etc/default/hostapd updated #DAEMON_CONF="" to DAEMON_CONF="/etc/hostapd/hostapd.conf"

in /etc/init.d/hostapd updated #DAEMON_CONF="" to DAEMON_CONF=/etc/hostapd/hostapd.conf

create a brand new dnsmasq.conf at /etc/dnsmasq.conf with

Code: Select all

interface=wlan1       # Use interface wlan1  
listen-address=192.168.220.1   # Specify the address to listen on  
bind-interfaces      # Bind to the interface
server=8.8.8.8       # Use Google DNS  
domain-needed        # Don't forward short names  
bogus-priv           # Drop the non-routed address spaces.  
dhcp-range=192.168.220.50,192.168.220.150,12h # IP range and lease time 
then in /etc/sysctl.conf uncomment #net.ipv4.ip_forward=1

then

Code: Select all

sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
update iptables

Code: Select all

sudo iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE  
sudo iptables -A FORWARD -i wlan0 -o wlan1 -m state --state RELATED,ESTABLISHED -j ACCEPT  
sudo iptables -A FORWARD -i wlan1 -o wlan0 -j ACCEPT
save iptables rules

Code: Select all

sudo sh -c "iptables-save > /etc/iptables.ipv4.nat"
in /etc/rc.local

Code: Select all

iptables-restore < /etc/iptables.ipv4.nat
above exit 0

then finally

Code: Select all

sudo service hostapd start
sudo service dnsmasq start
In theory I should have a network running at this point, but I don't. Any thoughts?

MrEngman
Posts: 3632
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: Wlan Stick with RTL8192EU Chipset

Sun Jan 21, 2018 10:34 pm

Hi coys3000,

Sorry for the delay in responding. Been tied up with a house full of guests over the last week.

Regarding the malware, the pimylifeup.com site itself appears OK, it's a site, trck.me ip 64(dot)91(dot)234(dot)169, that is accessed from that site from which images appear to be downloaded that is the problem. However, for whatever reason my web browser will not show the info from pimylifeup.com.

I have tried the 8192eu driver operating as an AP and it works fine using a TP-Link TL-WN822N v4. I have an SD card set up as a router. It was using a TP-Link TL-WN725N using the 8188eu driver. I tried it on a Pi 2B and installed the 8192eu driver and replaced the WN725N with the TL-WN822N v4 and it worked fine so the 8192eu driver works OK as an AP. I'm not 100% sure what site I used for getting the info for setting up the router but I think it was probably http://daveconroy.com/using-your-raspbe ... eb-server/

I also tried setting up an AP using data from https://www.raspberrypi.org/documentati ... -point.md and that appeared to work as well on a Pi 2B.

I did try on a Pi 3B and there it did not work. I think that was due in some way to the fact it also had the built in wifi so maybe needs setting up differently as it essentially had two wifi modules which appeared to mess things up.

You could also look here https://github.com/SurferTim/documentat ... s-point.md as @SurferTim looks to be well up on configuring various wifi set ups and provides many useful responses on the forum to people having wifi problems.
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

coys3000
Posts: 3
Joined: Mon Jan 15, 2018 8:06 pm

Re: Wlan Stick with RTL8192EU Chipset

Wed Jan 31, 2018 5:18 pm

MrEngman wrote:
Sun Jan 21, 2018 10:34 pm
Hi coys3000,

Sorry for the delay in responding. Been tied up with a house full of guests over the last week.

Regarding the malware, the pimylifeup.com site itself appears OK, it's a site, trck.me ip 64(dot)91(dot)234(dot)169, that is accessed from that site from which images appear to be downloaded that is the problem. However, for whatever reason my web browser will not show the info from pimylifeup.com.

I have tried the 8192eu driver operating as an AP and it works fine using a TP-Link TL-WN822N v4. I have an SD card set up as a router. It was using a TP-Link TL-WN725N using the 8188eu driver. I tried it on a Pi 2B and installed the 8192eu driver and replaced the WN725N with the TL-WN822N v4 and it worked fine so the 8192eu driver works OK as an AP. I'm not 100% sure what site I used for getting the info for setting up the router but I think it was probably http://daveconroy.com/using-your-raspbe ... eb-server/

I also tried setting up an AP using data from https://www.raspberrypi.org/documentati ... -point.md and that appeared to work as well on a Pi 2B.

I did try on a Pi 3B and there it did not work. I think that was due in some way to the fact it also had the built in wifi so maybe needs setting up differently as it essentially had two wifi modules which appeared to mess things up.

You could also look here https://github.com/SurferTim/documentat ... s-point.md as @SurferTim looks to be well up on configuring various wifi set ups and provides many useful responses on the forum to people having wifi problems.
No problem, I had some guests last week so I understand the feeling. I got it to work with a 3B. I ended up running the hostapd service manually

Code: Select all

sudo hostapd -d /etc/hostapd/hostapd.conf
In this case it showed me if the driver was working or not so and I had to use the original one from the tutorial, nl80211

Return to “Raspbian”

Who is online

Users browsing this forum: No registered users and 22 guests