Skizz
Posts: 10
Joined: Thu Mar 22, 2012 1:28 pm

Wireless Set Up

Fri Sep 07, 2012 9:04 am

Hi.
I'm having trouble with my wireless network connection. I have a Pi connected to a powered USB hub into which is a keyboard, mouse and a DLink DWA131 wireless adapter.

The DWA131 shows up in lsusb and the interface appears in the iwconfig output.

The problem is (at least the first one) the interface can't connect to my network. Sometimes, doing 'iwlist scan' does show the network I'm trying to connect to, but the connection can never be made.

Some more details: my router is a TP-Link TL-WR1043ND and has MAC filtering turned on. I've set the the router to accept the MAC address of the dongle. The Pi's IP address should be set using dhcp, which works fine for another PC with a wireless card running Ubuntu. When the Pi tries to get an IP address, the dhcp server never sees the request.

Any ideas? I can provide any additional information that is required (although there may be a latency in getting the info).

Thanks.

(and all I wanted to do was install emacs!)

bredman
Posts: 1415
Joined: Tue Jan 17, 2012 2:38 pm

Re: Wireless Set Up

Fri Sep 07, 2012 9:16 am

This is a very common problem.

If the WiFi device can perform a scan but fails to connect, it means that it does not have enough power to transmit.

I see that you are using a powered USB hub, which is good. Try removing every other device from the USB hub. Plug the WiFi device into the USB hub, not using an extender cable.

Just as a test, can you place the RPi and the Access Point very close to each other? A WiFi device uses less power to transmit if the AP is nearby.

Skizz
Posts: 10
Joined: Thu Mar 22, 2012 1:28 pm

Re: Wireless Set Up

Tue Sep 11, 2012 7:10 pm

OK, fixed one problem - the router uses MAC address filtering and the wireless adapter is set to ff:ff:ff:ff:ff instead of the one printed on the documentation. Anyone know why the MAC address is wrong and how to fix it?

Skizz
Posts: 10
Joined: Thu Mar 22, 2012 1:28 pm

Re: Wireless Set Up

Tue Sep 11, 2012 10:42 pm

The reported mac address for the DWA-131 dongle changes depending on how it's plugged in.

If it's plugged directly into the pi's USB socket, the ifconfig shows the correct mac address, the light never flashes and the device can't connect to the router.

If it's plugged into the powered hub, ifconfig shows a mac address of ff:ff:ff:ff:ff:ff, the light flashes and the device can see the router, the router can also see the device, the router sees the device's mac address as ff:...:ff. The SSID is visible. The dhcp requests never make it to the dhcp server (an Ubuntu box), the server never responds (obviously).

The mac address looks wrong to me when using the hub, so does anyone know how to get this thing to use the correct mac address? I've tried putting a "hwaddress ether <mac address>" into my interfaces file but that was just ignored.

User avatar
Dweeber
Posts: 606
Joined: Fri Aug 17, 2012 3:35 am
Location: Mesa, AZ
Contact: Website

Re: Wireless Set Up

Tue Sep 11, 2012 10:45 pm

Do you have anything in

/etc/udev/rules.d/70-persistent-net.rules
Dweeber A.K.A. Kevin...
My RPI Info Pages including Current Setup - http://rpi.tnet.com

Skizz
Posts: 10
Joined: Thu Mar 22, 2012 1:28 pm

Re: Wireless Set Up

Wed Sep 12, 2012 10:44 pm

I've managed to get the dongle working. I had to remove the powered USB hub from the system and just have the dongle and the keyboard plugged into the Pi. Everything works fine like this.

Does anyone know why the powered HUB is causing this problem?

User avatar
Dweeber
Posts: 606
Joined: Fri Aug 17, 2012 3:35 am
Location: Mesa, AZ
Contact: Website

Re: Wireless Set Up

Wed Sep 12, 2012 11:04 pm

Both of mine are directly plugged into the USB port of the RPi.... One by the TV has a regular USB keyboard connected to it as well, but the other one floats completely headless.

There are a number of topics talking about Hubs, USB ports etc... that might be related to your question.

Good to hear you got it working.
Dweeber A.K.A. Kevin...
My RPI Info Pages including Current Setup - http://rpi.tnet.com

Skizz
Posts: 10
Joined: Thu Mar 22, 2012 1:28 pm

Re: Wireless Set Up

Fri Sep 14, 2012 7:57 am

Here's the current solution to my Wi-Fi problems (and mouse too!):

The issue in the end was nothing to do with the configuration of the WiFi adapter. Plugging the adapter into one USB port on the Pi directly and a keyboard into the other, the network connected successfully and everything worked as required.

I was then able to update the software on the Pi!

The Powered USB hub, however, is the source of all the problems I had been having. This is the sequence of steps that I need to take in order to get the hub, the dongle and the mouse to work.

1. The hub is plugged into one of the Pi's USB ports and the keyboard into the other.
2. The mouse and wi-fi adapter are plugged into the hub, the hub is not switched on.
3. Switch on the Pi and log in.
4. Switch on the Hub.
5. Do an 'ifup' to connect to network.

Doing this even allows the mouse to work.

Return to “Beginners”