Hi Bill,

Thanks for your reply.


On 10-10-19 06:39 PM, Bill Södermark wrote:

Hi Markus,

Using "ifconfig" and check if you have double interfaces, are you using "avahi"?

There don't appear to be any double interfaces.
The only ones present are: lo, eth0, wlan0

Yes, I am using Avahi.



"ifdown wlan0"  should bring down you interface.

This command appears to succeed (no errors produced) but I am still able to connect to the ad-hoc network afterward.


Check if you call a runlevel script called "avahi-daemon" during boot, if so check in "/etc/avahi/*" whats' activated and configured.

I do have a script called "/etc/init.d/avahi-daemon".

In "/etc/avahi/services" I currently have configured: http, sftp-ssh, ssh

(I added the HTTP configuration myself, to broadcast the presence of the lighttpd server web pages.)

Regards,
Markus.



Bill



2010/10/19 Markus Svilans <msvilans@aeonyx.ca>
Hi Bill,

Thanks for the suggestion. Your suggestion gets me part way there.

I am seeing some unexpected behaviour, and I was wondering if you or anyone have some further suggestions.

Basically I have an Overo Air set up as an ad hoc wireless access point.
Here is the entry in my /etc/network/interfaces file:

auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
       address 192.168.2.2
       netmask 255.255.255.0
       wireless-mode ad-hoc
       wireless-essid MyNet

I am also running udhcpd, per the instructions on the Gumstix wiki
http://www.gumstix.net/wiki/index.php?title=Creating_an_Ad-hoc_Wireless_Network

There is also lighttpd running, serving up a basic web page. This lets me test that other computers are in fact connected to the Overo.

When I use "ifdown wlan0" then the connected computers are no longer able to access the Overo's web page. This is good.

However:
(1) the blue LED on the Overo remains illuminated (does this mean wireless is still active?)
(2) when I use "sudo iwlist scan" on my Ubuntu desktop machine, the "MyNet" ad hoc network still appears in the list.

Any further suggestions?
Many thanks,
Markus.




On 10-10-14 02:42 PM, Bill Södermark wrote:
Hi,

I'm using "ifup wlan0" and "ifdown wlan0"

Bill


2010/10/13 Markus Svilans <msvilans@aeonyx.ca>
 Dear gumstix-users,

I would like to learn how to enable and disable WiFi and Bluetooth on
the Overo Air/Fire on the fly, while the system is running.

This is for a project, where due to regulations, one of WiFi or
Bluetooth can be used, but not both at the same time. I want to provide
the ability for the user to toggle which wireless capability is enabled.

After searching around a bit, I found the following thread:
http://old.nabble.com/Overo-Air-bluetooth-and-wifi-power-td28775963.html

I tried "echo 0 > /sys/class/gpio/gpio16/value" and it does indeed shut
off the WiFi module. However, sending a "1" does not seem to re-enable
it. The blue LED remains off, and after a few seconds complaints from
libertas begin appearing on the serial console. The WiFi comes back up
on the next reboot.

What would be a good way to do this? It seems that the GPIO method
relates to hardware only. I have a feeling that the Linux drivers have
to be dealt with as well, but I don't know where to start.

Many thanks in advance,
Markus.



------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users



--
--------------------------------------------------
Bill Södermark
Mobilen +46 706 58 27 10
-------------------------------------------------
------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb
_______________________________________________ gumstix-users mailing list gumstix-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gumstix-users


------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users


------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________ gumstix-users mailing list gumstix-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gumstix-users