Page 2 of 2

Re: Finding IP address of wlan0(wifi)

Posted: Fri Feb 12, 2016 12:08 pm
by roganjosh
Hello,

I realise this was a while ago, so not sure if still active! However I am having exactly the same problem of not being able to retrieve my wlan0 ip address and I don't have the possibility of getting a new WIFI adapter as I am doing an exhibition tonight using this!

I am using ThePiHut wifi adapter (http://thepihut.com/products/usb-wifi-a ... spberry-pi).
I am running Occidentals, as I am creating an adaptation of Adafruits thermal twitter printer.
I am connecting to the pi through ssh and it is connected to my router.

I need it to not be connecting using the ethernet and instead using the wifi but cannot find wifi's ip!

Any help would be much apreciated as the show starts tonight at 18.30!

Thanks,

RJ

Re: Finding IP address of wlan0(wifi)

Posted: Fri Feb 12, 2016 1:47 pm
by texy
Hi,
what does

Code: Select all

ifconfig
give you?

Texy

Re: Finding IP address of wlan0(wifi)

Posted: Sat Feb 13, 2016 11:42 am
by bgreen1617
Hi Guys/Girls;

Brand new to RPi and am having some issues with connecting to internet over wireless adapter. Works great with ethernet and the lights do come on on my comfast Cf-wu810n wireless dongle when plugged in but I can not connect and shows "Not associated". I can see the card and the realtek 8188 driver looks to be installed correctly and interface and supplicant files are cut and pasted in as explained in this post but when i attept to connect to visible network it shows all networks in view with "0" signal strength. So it sees the networks around me but it wint connect toany and list all networks with "no signal.
Also the network gui in raspian that shows the network status in upper right corner wlan0 not associated. When i left click on the icon it says "No wireless interfaces found". So instead if a drop diwn with all the wireless networks it says that. The list of wireless networks come up when i plug in the ethernet cord though. Please help.

Re: Finding IP address of wlan0(wifi)

Posted: Sat Feb 13, 2016 12:19 pm
by bgreen1617
Hello;

Looking for help with my wifi setup as well. Followed most of the instructions in this post but still can't get wifi adapter working. When i highlight the network icon in upper left of raspbian it says "Not Associated" and when i left click on the icon it indicates there are "no wireless interfaces found"

Here are a few screens:

/etc/network/interfaces shows the following:

source-directory /etc/network/interfaces.d

auto wlan0
auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default int dhcp

supplicant.con shows:

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

network={
ssid="MY_Network ID""
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
psk="password"
auth_alg=OPEN

}


dmesg | grep usb shows:

[ 2.950099] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:4f:6e:ef
[ 3.045919] usb 1-1.4: new high-speed USB device number 4 using dwc_otg
[ 3.157237] usb 1-1.4: New USB device found, idVendor=0bda, idProduct=8179
[ 3.169393] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3.181954] usb 1-1.4: Product: 802.11n NIC
[ 3.191364] usb 1-1.4: Manufacturer: Realtek
[ 3.445902] usb 1-1.2: new low-speed USB device number 5 using dwc_otg
[ 3.557793] usb 1-1.2: New USB device found, idVendor=05ac, idProduct=0256
[ 3.557806] usb 1-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0


lsmod shows:

Module Size Used by
cfg80211 399468 0
rfkill 16799 1 cfg80211
r8188eu 432632 0
bcm2835_gpiomem 3023 0
bcm2835_rng 1824 0
snd_bcm2835 19739 3
snd_pcm 75040 1 snd_bcm2835
snd_timer 18668 1 snd_pcm
evdev 10552 4
joydev 9427 0
snd 52620 9 snd_bcm2835,snd_timer,snd_pcm
uio_pdrv_genirq 2986 0
uio 8228 1 uio_pdrv_genirq
i2c_dev 6108 0
fuse 82598 3
ipv6 343492 28

ifconfig -a shows:

wlan0 Link encap:Ethernet HWaddr 40:a5:ef:0a:12:58
inet6 addr: fe80::96a6:1b8d:6b34:d94c/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

ifconfig shows:

wlan0 unassociated Nickname:"<WIFI@REALTEK>"
Mode:Auto 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

dhclient -v wlan0 shows:

Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan0/40:a5:ef:0a:12:58
Sending on LPF/wlan0/40:a5:ef:0a:12:58
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 17
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

iwlist wlan0 scan

Cell 05 - Address: DC:EF:09:91:A7:39
ESSID:"My_Network ID"
Protocol:IEEE 802.11bgn
Mode:Master
Frequency:2.462 GHz (Channel 11)
Encryption key:on
Bit Rates:144 Mb/s
Extra:rsn_ie=30140100000fac040100000fac040100000fac020c00
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD7F0050F204104A0001101044000102103B000103104700109CE1B15CBD8368523C2F541CC720563F1021000D4E4554474541522C20496E632E1023000552373030301024000552373030301042000233321054000800060050F20400011011000A4E696768746861776B52100800022008103C0001031049000600372A000120
Quality:0 Signal level:0 Noise level:0
Cell 06 - Address: B4:75:0E:66:57:B7
ESSID:"under_the_sea"
Protocol:IEEE 802.11bgn
Mode:Master
Frequency:2.462 GHz (Channel 11)
Encryption key:on
Bit Rates:300 Mb/s
Extra:wpa_ie=dd160050f20101000050f20201000050f20201000050f202
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites (1) : PSK
Extra:rsn_ie=30140100000fac020100000fac040100000fac020000
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
Quality:0 Signal level:0 Noise level:0

Everything is as shown but I changed my wifi network name for public consumption. Please help

Re: Finding IP address of wlan0(wifi)

Posted: Sun Feb 14, 2016 10:03 pm
by roganjosh
texy wrote:Hi,
what does

Code: Select all

ifconfig
give you?

Texy
Hi there,

Thanks for your reply. Apologies as it turned out it was a rather stupid error of putting the wifi password in rather than the proper ssid password! So I got the wifi up and running fine in the end. I did however preceded to completely burn out my raspberry Pi by running too much power through its pins!

Think I need some more practice before using this stuff AFK!

RJ