ylafont
Posts: 16
Joined: Wed Sep 26, 2012 1:13 am

Cannot Aquire IP TP-Link (TL-WN725N)

Thu Oct 02, 2014 12:20 am

Hoping someone can point me in the proper direction.

I have been trying to setup a TP-Link TL-WN725N (V2 i think) on raspian 3.12.28+ #709

Downloaded driver from here.
http://www.mendrugox.net/2013/08/tp-lin ... -raspbian/

Checked to make sure device was listed in lsusb

pi@PiScanner /lib/firmware/rtlwifi $ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 0bda:8179 Realtek Semiconductor Corp.

ifconfig show the adaptor as up
eth0 Link encap:Ethernet HWaddr b8:27:eb:c0:d0:7d
inet addr:192.168.1.17 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1728997 errors:0 dropped:1 overruns:0 frame:0
TX packets:2818027 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:120336026 (114.7 MiB) TX bytes:3755945056 (3.4 GiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 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:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr e8:de:27:20:a9:62
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)

iwlist scan displays a list of all the accesspoint but i cannot make a connection

i have tried
iwconfig wlan0 essid "MyNetwork" key "s:password"
iwconfig wlan0 essid "MyNetwork" key "hex_password"

and i have also turned on the guest access network with no security or password and still cannot obtain an IP

syslog displays

Oct 1 23:42:10 PiScanner dhclient: No working leases in persistent database - sleeping.
Oct 1 23:47:40 PiScanner dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
Oct 1 23:47:43 PiScanner dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
Oct 1 23:47:47 PiScanner dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
Oct 1 23:47:51 PiScanner dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
Oct 1 23:48:00 PiScanner dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
Oct 1 23:48:15 PiScanner dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 20
Oct 1 23:48:35 PiScanner dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
Oct 1 23:48:41 PiScanner dhclient: No DHCPOFFERS received.
Oct 1 23:48:41 PiScanner dhclient: No working leases in persistent database - sleeping

Wired works without a problem. and other devices can obtain ip address successfully.

anyone have a clue?
I

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Cannot Aquire IP TP-Link (TL-WN725N)

Thu Oct 02, 2014 7:32 am

Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

ylafont
Posts: 16
Joined: Wed Sep 26, 2012 1:13 am

Re: Cannot Aquire IP TP-Link (TL-WN725N)

Sat Oct 04, 2014 5:45 pm

Thanks...

I don't think the driver is my problem. I think it is a Wireless Security Key problem with WPA2.

After trying different option i still cant make a permanent connection. I think i was able to make a connection once or twice. but that is about it. Not sure where the problem exist.

/etc/networ/interfaces

Code: Select all

auto lo wlan0

iface lo inet loopback

allow-hotplug eth0
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet dhcp

I remmed these out. not sure if there were doing anything.
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
#pre-up wpa_supplicant -DR8188EU -i wlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf -B -P 
#/var/run/wpa_supplicant.wlan0.pid
#post-down killall -q wpa_supplicant

#iface default inet dhcp
#        wpa-ssid ConnectAndDie
#       wpa-psk 36407839b47d35e278e08cf9cc8225ae8afe1394468712867512b07985cbda3a
/etc/wpa_supplicant/wpa_supplicant.conf

Code: Select all

network={
	ssid="MyWireLess"
	proto=WPA RSN
	key_mgmt=WPA-PSK
	pairwise=CCMP TKIP
	group=CCMP TKIP
	psk=36407839b47d35e278e08cf9cc8225ae8afe1394468712867512b07985cbda3a
}
If I issue the command

Code: Select all

sudo iwconfig wlan0 essid "MyWireless"  key "36407839b47d35e278e08cf9cc8225ae8afe1394468712867512b07985cbda3a"
if get connected

pi@PiScanner ~ $ iwconfig
wlan0 IEEE 802.11bgn ESSID:"ConnectAndDie" Nickname:"<WIFI@REALTEK>"
Mode:Managed Frequency:2.437 GHz Access Point: 00:26:82:C9:02:5B
Bit Rate:72.2 Mb/s Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality=93/100 Signal level=-42 dBm Noise level=0 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

lo no wireless extensions.

eth0 no wireless extensions.


and still no ip when

sudo dhclient wlan0 is issued

Oct 4 17:43:57 PiScanner dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
Oct 4 17:44:00 PiScanner dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
Oct 4 17:44:03 PiScanner dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
Oct 4 17:44:10 PiScanner dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
Oct 4 17:44:21 PiScanner dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
Oct 4 17:44:32 PiScanner dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 18
Oct 4 17:44:50 PiScanner dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
Oct 4 17:44:58 PiScanner dhclient: No DHCPOFFERS received.
Oct 4 17:44:58 PiScanner dhclient: No working leases in persistent database - sleeping.

Not sure what i am missing. thanks,

Return to “Raspberry Pi OS”