[Wylug-help] peer to peer wifi programming

simon simon at mungewell.org
Thu Jul 20 17:23:04 BST 2006


See comments below....

On Thu, Jul 20, 2006 at 05:06:10PM +0100, Yiannis Gatsoulis wrote:
> eth1      unassociated  ESSID:off/any
>          Mode:Ad-Hoc  Channel=0  Cell: Not-Associated

'Cell: Not-Associated' means that this radio has not seen the other one.

I would suggest that on each end you set:
	mode ad-hoc
	essid robot-net		<or other suitable name>
	channel 6		<or other, 1-11>

Once the ad-hoc network is negoiated Cell will normally change to the
MAC of the node which is 'beaconing'.

>          Bit Rate=0 kb/s   Tx-Power=20 dBm   Sensitivity=8/0
>          Retry limit:7   RTS thr:off   Fragment thr:off
>          Encryption key:off
>          Power Management:off
>          Link Quality:0  Signal level:0  Noise level:0
>          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
> 
> and ifconfig output for that is:
> eth1      Link encap:Ethernet  HWaddr 00:0E:35:51:4B:BA
>          inet addr:192.168.21.1  Bcast:192.168.21.255  Mask:255.255.255.0
>          inet6 addr: fe80::20e:35ff:fe51:4bba/64 Scope:Link
>          UP BROADCAST MULTICAST  MTU:1500  Metric:1
>          RX packets:229 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:162 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:1000
>          RX bytes:1694800 (1.6 MiB)  TX bytes:201032 (196.3 KiB)
>          Interrupt:7 Base address:0x6000 Memory:ff6fd000-ff6fdfff
> 
> and output of route
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use 
> Iface
> 192.168.21.0    *               255.255.255.0   U     0      0        0 eth1
> 

ifconfig and route look OK.

> 
> That is from PC1. For PC2 I cannot provide an output unfortunately now, 
> but it is on the same lines (I guess different MAC address, IP 
> "192.168.21.2", etc.).
> 
> To be honest I don't have a clue what bssid is and don't know how to set 
> it. Googling gives me evidences that it should be iwconfig eth1 ap 
> "bssid number in some kind of format, ip address?". Wiki says that bssid is:

Yes I went/am going through the same pain. It also appears that not all
cards let you set it. On my mesh my laptop sometime get locked into a
alternative net and can't conect to proper one.

Information does seem to be limited as not many people seem to use
ad-hoc.

I am forcing my BSSID to 'DE:AD:BE:EF:BA:BE'...

> Two will do...... no need to control more than one robots at the same 
> time from the same station for now.... :P

Robots!!! Cool ;-)
Simon



More information about the Wylug-help mailing list