googlecreativelab / coder

A simple way to make web stuff on Raspberry Pi
http://goo.gl/coder
Apache License 2.0
2.42k stars 275 forks source link

Wifi install not working #21

Open lassse opened 10 years ago

lassse commented 10 years ago

Is there any specific requirements for the Wifi Dongle except being compatible with Raspberry Pi?

ghost commented 10 years ago

Yep, same here, does not work. My WiFi Dongle workes seamless with Raspbian, so i think it's a setup problem. This is my dongle EDIMAX EW-7811UN Wireless USB Adapter

jmstriegel commented 10 years ago

I've been testing using the "mini wifi adapter" that uses the RTl8192cu chipset. Coder is built right on top of stock Raspian, so anything that's supported in Raspian should be working.

Some questions:

jmstriegel commented 10 years ago

Just noticed you mentioned "wifi install". Is it that the card isn't being recognized in Linux, or is the issue that it isn't creating the CoderSetup ad-hoc network? It will only create the CoderSetup network if ethernet is unplugged and a previously configured wifi ap is not available.

So I guess narrowing down this will look like testing the following from the top down:

Sorry for the long list of things to test. I'm sure we'll figure it out if it's working on your other Raspbian setup, and we can fix whatever's wrong for other folks. :)

cmatta commented 10 years ago

It's not working for my USB wifi dongle either. I can't log into the pi's console with pi/raspberry as I would normally be able to in raspbian. Does anyone know what the default pi user password is? If I can get in on the console I can probably get this USB wifi adapter to work.

jmstriegel commented 10 years ago

If you've set the coder password, use that same password to log in as the pi user. On Sep 18, 2013 2:12 PM, "Christopher Matta" notifications@github.com wrote:

It's not working for my USB wifi dongle either. I can't log into the pi's console with pi/raspberry as I would normally be able to in raspbian. Does anyone know what the default pi user password is? If I can get in on the console I can probably get this USB wifi adapter to work.

— Reply to this email directly or view it on GitHubhttps://github.com/googlecreativelab/coder/issues/21#issuecomment-24686643 .

cmatta commented 10 years ago

...and if you haven't set a password?

jmstriegel commented 10 years ago

It should be raspberry, but of that's not working it sounds like I've got a bug in that build. Can you connect to http over ethernet? On Sep 18, 2013 2:33 PM, "Christopher Matta" notifications@github.com wrote:

...and if you haven't set a password?

— Reply to this email directly or view it on GitHubhttps://github.com/googlecreativelab/coder/issues/21#issuecomment-24688074 .

cmatta commented 10 years ago

Yes, I'm able to get it to set the password when connecting via ethernet .

I'll re-flash the SD card and try and log into the console again to see if it's pi/raspberry.

cmatta commented 10 years ago

I can confirm that the default password on the standard build is pi/raspberry. My pi did not end up creating an ad-hoc network with a "wi-pi" usb WiFi dongle, it was only after I connected to a wire, set my password, and configured the WiFi did it connect.

Here's the lsusb output for this card in case that helps: Bus 001 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter

lassse commented 10 years ago

I got it to work by going into sudo nano /etc/network/interfaces

and setting ssid and password to the wifi

auto lo

iface lo inet loopback iface eth0 inet dhcp

allow-hotplug wlan0 auto wlan0

iface wlan0 inet dhcp wpa-ssid "ssid" wpa-psk "password"

Didn't succeed with the Coder Setup wifi

cmatta commented 10 years ago

Right, but the coder build should automatically create an Ad-Hoc network called "CoderNetwork" which would allow users to connect to it and configure the device via web browser, that doesn't seem to be working with certain USB WiFi adapters.

lassse commented 10 years ago

Didn't seem to work with this one https://www.modmypi.com/wireless-usb-1n-nano-adaptor-802.11N-wifi-dongle

eried commented 10 years ago

RT3070 also fails to start too. I can make it work with http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=51234 in raspbian

jmstriegel commented 10 years ago

Dang. Sorry everyone is havving issues here.

lassse, that's the same module I'm using, I think. Can you ssh in over ethernet and let me know the output of iwconfig? I have the feeling the driver is loading for some of you, but that ether the ad-hoc network isn't kicking off or your laptop/desktop client isn't seeing the network.

Try this:

If automatic setup or ad-hoc mode isn't working for your device, you can manually edit the wpa_supplicant config on your laptop. There's an example on the boot sd in /coder_settings/reset_files/wpa_supplicant.txt. Copy that to the /coder_settings/ folder, then edit it with your router's settings. It will be ingested and removed from the boot directory during boot and your device should come up on your normal wifi network.

aw1231 commented 10 years ago

@cmatta What did you do to configure the wifi? I have a wi-pi too.

cmatta commented 10 years ago

@aw1231 I plugged the pi into ethernet, set my password, and then clicked the "configure wifi" under the gear icon. After removing the ethernet and rebooting it seemed to work.

varunkumar commented 10 years ago

I am also facing the same problem. I am using EDIMAX EW-7811UN Wireless USB Adapter. The adapter doesn't show up on lsusb also.

dberlind commented 10 years ago

Hey all, just checking in to find out if there has been any update to making the Wi-Pi work. I have a Pi and the Coder SD card that was handed out by Google during a recent event. I have a Wi-Pi as well. I've powered up the Pi with the Wi-Pi plugged in and then without it plugged in (and then plugged it in after). In either case, I am not seeing a WiFi network with the SSID of CoderConfig showing up.

What am I doing wrong?

dberlind commented 10 years ago

OK. I got it working. In case someone else shows up here looking for help, some of what's written above is a bit confusing, so here are the steps I took to getting it to work.

A Raspberry Pi was given to me and when I was at Chrome Developer Summit at Google's offices in Mountain View, they gave out SD cards with the Coder code already loaded on to them. You can of course go to goo.gl/coder, download the code and flash your own SD card.

You'll also want a WiFi adapter. I purchased the one discussed on the Raspberry Pi site; it's called Wi-Pi and it costs about US$14. The WiPi adapter reports the same information as noted in @cmatta's message above:

Bus 001 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter

For me, a USB keyboard and an external monitor that accepts HDMI or composite input came in very handy.

In my case, inserting that the SD card into the Pi and booting up the Pi did NOT establish the ad hoc network as advertised and I have yet to figure out how to make that work. However, to work with the Pi over WiFi, you may not want to connect your notebook to a Pi-driven ad hoc Wi Fi network anyway. Then, your notebook won't be able to get out to the Internet at the same time. What's better is to set the Pi up to connect to the same Wi Fi network that you normally connect your notebook to. Here's how I did that:

  1. Connect your Wi Pi to your router with an Ethernet cable.
  2. Connect a USB keyboard to your Pi
  3. Connect an external monitor to the Pi (using either a composite or HDMI cable).
  4. Insert the SD card with the Coder code on it.
  5. Power up the Pi
  6. After it boots up, it will take you to a configuration screen. You won't need this. You should see the little lights in one corner of the Pi (near the USB connector) flashing pretty frequently. This means there's network activity on your Ethernet cable.
  7. Press the "5" key on the numeric keypad of your USB keyboard to exit to the Linux command prompt
  8. Type lsusb at the command prompt and under the block containing eth0 (basically stands for the hardwired Ethernet interface), you'll see your Pi's IP address. You'll also see your Pi's mac address. This could come in handy if the only devices that can get onto your network are the ones whose mac addresses are whitelisted in the router. Most people don't do this. I do, as an extra measure of security. So, I took note of the WiPi's unique mac address and added it to my router's whitelist.
  9. Go to your computer's Web browser and type http://<Pi's IP address> (using the IP address you noted in step 8) and Voila! The Coder interface should show up. Follow the Password prompts. Then, click on the Gear icon in the top right hand corner and you should see a choice to configure WiFi connectivity. Click it. Pick the network you want to attach to. Enter the credentials. Follow the prompts and the Pi will reboot. Once it does, the tab that was open to the Pi (running Coder) will automatically reconnect to the Pi. But, if you want, you can also use the USB keyboard, the monitor, and the lsusb command to see the Pi's new IP address.

That's it. Coder should be up an running in your browser. w00t!

danpillay87 commented 9 years ago

Did this per chance get resolved by anyone? I'm able to access in the same/similar way as dberlind mentioned - so I'm working wirelessly no problems - however in terms of making coder/raspberry pi quicker to get going when moving between multiple locations having the ad-hoc network actually start up would be invaluable.

I'm using/have used EDIMAX EW-7811UN Wireless USB Adapter as well - and all good with standard raspbian - any suggetstion of a Dongle which is known to work or any tweaks/patch that would result in the PI/Coder creating the ad-hoc network would still be appreciated...Happy to provide output of iwconfig if it helps - but FI have tried on multiple devices (chromebook/OSX/windows7) and the network isn't visible on boot, even with a slow and extremely patient reboot and removing/replacing the dongle.

Suggestions welcome :) will post a full solution if I ever get it working!

darrell24015 commented 8 years ago

Curious, this thread was started in 2013 and I have searched for a solution on Google for a couple of hours now. So, I've made a good effort at figuring this out on my own. From everything I've read, perhaps it's because some of the WiFi dongles being used with the Raspberry Pi do not support an Ad Hoc network? I've tried this with a Panda Wireless PAU03 and I see in /etc/network/interfaces file that the settings for Ad Hoc are there, just not being applied. I did get connected to the existing WiFi network and from my laptop able to connect to Coder using the IP address.