grrrz
Posts: 16
Joined: Mon Sep 17, 2012 10:21 am

ad-hoc wifi network rtl 8188cu

Sat Sep 29, 2012 1:15 pm

As the title suggest, I want to create an ad-hoc wifi network between my pi and my computer or phone to be able to ssh directly trough it without the proximity of a router.
I just got this adapter:
http://blog.modmypi.com/2012/09/install ... -nano.html
I have no idea how to do this,
the topic referenced
http://www.raspberrypi.org/phpBB3/viewt ... hilit=wifi
doesn't say anything about ad-hoc, and I found another one but with instructions to another wifi chipset I think here:
http://www.raspberrypi.org/phpBB3//view ... 36&t=15130
what do you suggest? (I'm fairly clueless about linux and networks)

grrrz
Posts: 16
Joined: Mon Sep 17, 2012 10:21 am

Re: ad-hoc wifi network rtl 8188cu

Sat Sep 29, 2012 3:56 pm

ok nevermind, I got it working with not much trouble in fact,
for those wondering,
apparently the driver is automatically installed (I have the last sept. 2012 wheezy, with all updates and firmware updates),
and I just followed a basic tutorial to use adhoc on linux so I did this (as sudo):

(the first line might not be necessary)
ifconfig wlan0 up
iwconfig wlan0 mode ad-hoc
iwconfig wlan0 essid "Pi"
ifconfig wlan0 192.168.1.1 netmask 255.255.255.0

and added all of the above to /etc/rc.local to make it permanent
could be very useful to control the pi from a phone with a little ssh program, or as an OSC controller!
what latency do you think I can expect, if I want to try and use it as a real wireless "midi" link (through osc)?

shuckle
Posts: 565
Joined: Sun Aug 26, 2012 11:49 am
Location: Finland

Re: ad-hoc wifi network rtl 8188cu

Sat Sep 29, 2012 4:19 pm

Thanks for the wifi adhoc instructions. Just what ineeded :D

grrrz
Posts: 16
Joined: Mon Sep 17, 2012 10:21 am

Re: ad-hoc wifi network rtl 8188cu

Sat Sep 29, 2012 7:28 pm

shuckle wrote:Thanks for the wifi adhoc instructions. Just what ineeded :D
glad to help for once
(obvsiously you use the id and ip adress you like instead)
sadly, I discovered you can't connect to a ad-hoc network from an android phone.
too bad.

DOSSTONED
Posts: 14
Joined: Wed Sep 19, 2012 2:47 pm

Re: ad-hoc wifi network rtl 8188cu

Sun Sep 30, 2012 9:36 am

grrrz wrote:
shuckle wrote:Thanks for the wifi adhoc instructions. Just what ineeded :D
glad to help for once
(obvsiously you use the id and ip adress you like instead)
sadly, I discovered you can't connect to a ad-hoc network from an android phone.
too bad.
Yes, I cannot connect ad-hoc with my Windows Phone either.
So I write a way to construct AP under Fedora17 PC using RTL8188CUS, you can see it here:
http://www.raspberrypi.org/phpBB3/viewt ... 30#p184530
But I cannot create AP using the same wireless card in RPi

Ludagoo
Posts: 1
Joined: Thu Oct 18, 2012 2:57 pm

Re: ad-hoc wifi network rtl 8188cu

Thu Oct 18, 2012 3:05 pm

Thank you Worked Great! I was able to connect with iPhone and iPad no problem. I am gonna put my Pi under the dash of my car and connected to my sound to make my car sound Air Play compatible. Turns out cheaper then buying a bluetooth adaptor as well as being way more dependable and longer range. Blue tooth just cuts out all the time. The pi also give me the possibility of making a keyless entrey if i ever get around to it.

WrathOfTheAngels
Posts: 16
Joined: Thu Sep 20, 2012 7:31 pm

Re: ad-hoc wifi network rtl 8188cu

Sun Dec 09, 2012 7:38 pm

Hi, I'd like to know if it is possible to use one wireless adapter to connect to internet and also to create an ad-hoc wifi network. How could I do?

Thank you for the answer

DOSSTONED
Posts: 14
Joined: Wed Sep 19, 2012 2:47 pm

Re: ad-hoc wifi network rtl 8188cu

Mon Dec 17, 2012 12:30 pm

WrathOfTheAngels wrote:Hi, I'd like to know if it is possible to use one wireless adapter to connect to internet and also to create an ad-hoc wifi network. How could I do?

Thank you for the answer
That's depend on the chipset. Windows implemented as "Virtual WiFi" but not all chipsets support this feature.
I don't think Raspberry Pi can do this. Or at least, current driver does not support this.

petekaner
Posts: 3
Joined: Sun Feb 24, 2013 12:09 pm

Re: ad-hoc wifi network rtl 8188cu

Sun Feb 24, 2013 12:51 pm

Hi,

I'm trying to create an ad-hoc wifi connection to my rpi, but when I try this:
iwconfig wlan0 mode ad-hoc

I get this error
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Device or resource busy.

Any ideas? I tried sudo ifcond wlan down before, but still the same error. Thanks in advance

jphphotography
Posts: 41
Joined: Mon Jun 18, 2012 7:47 am

Re: ad-hoc wifi network rtl 8188cu

Tue Mar 12, 2013 12:09 am

I'm having some issues with this as well, my ipod touch (4th gen iOS 5.0.1) says its connected to "Pi" but if I try to ssh to the pi it doesn't work. Trying to ping my ipod from my raspberry pi I get Destination Host Unreachable.

Info: My wifi dongle shows up as RTL8188CUS when lsusb is issued
wlan0 is configured as 10.10.10.1 with a netmask of 255.255.255.0

On my ipod I chose static IP
IP Address: 10.10.10.50
Subnet Mask: 255.255.255.0
Router (blank)
DNS (blank)

My ssh app on the ipod is SSH Terminal if that makes any difference

Any info would be appreciated

jphphotography
Posts: 41
Joined: Mon Jun 18, 2012 7:47 am

Re: ad-hoc wifi network rtl 8188cu

Tue Mar 12, 2013 3:29 am

Just FYI I finally found success after following this guy's tutorial
http://lcdev.dk/2012/11/18/raspberry-pi ... omment-640
While your method should have worked for me by using static ip's for some reason it didn't. The above tutorial is actually quite neat, it's set up so that if your pi isn't able to automatically connect to a known wifi access point it will start its own and have built in dhcp (which only runs if it goes into ad-hoc mode).
It could be adapted or changed if you don't want it to try to connect at all and only be used in ad-hoc mode.

This also has the benefit of correcting the Android issue, on my phone the ad-hoc mode wasn't working because it was still expecting the Pi to issue an IP for some reason even though I had specified a static one. Since dhcpd on the Pi is providing addresses my Android phone connects. Now I can ssh into my Pi over Ad-Hoc both on my ipod touch and my Attrix 4G!
Hopefully this helps the original poster and any others that are looking for Ad-Hoc help.

Return to “Networking and servers”

Who is online

Users browsing this forum: No registered users and 11 guests