A20-SOM ad'hoc

Started by habanas, February 25, 2015, 12:13:35 PM

Previous topic - Next topic

habanas

Good Morning
I currently have two cards Olimex-A20 lime and SOM.I would like connect in ad-hoc. they each have wifi realtek 8188CU card and I configure the two card as am:

board A:

auto wlan0
iface wlan0 inet static
    address 192.168.20.2
    netmask 255.255.0.0
    wireless-channel 1
    wireless-essid monadhoc
    wireless-mode ad-hoc

board B

auto wlan5
iface wlan5 inet static
    address 192.168.20.1
    netmask 255.255.0.0
    wireless-channel 1
    wireless-essid monadhoc
    wireless-mode ad-hoc


Sometimes the connection works fine I can ping them but in some cases ping does not work and I am forced to restart my board and hoping to make it work
So when I make a iwlist scan my card can see the networks of the other.
I must miss a step, but I can not find where?
ifdown ifup make no difference


Gerrit

Quote from: habanas on February 25, 2015, 12:13:35 PM
I must miss a step, but I can not find where?

https://wiki.debian.org/WiFi/AdHoc i think you did all the steps, maybe try an other channel

habanas

Hi Gerrit


I follow this wiki link to create my ad-hoc network.
I try to use different channel but it is not conclusive.

So when i scan my network
iwlist scan
Cell 01 - Address: 02:11:87:B1:E5:11
                    ESSID:"SQLnet"
                    Protocol:IEEE 802.11bg
                    Mode:Ad-Hoc
                    Frequency:2.412 GHz (Channel 1)
                    Encryption key:off
                    Bit Rates:54 Mb/s
                    Quality=100/100  Signal level=-66 dBm


i can see Address 02:11:87:B1:E5:11
and if i make this i can connect to my network:

ifdown wlan9
iwconfig wlan9 ap 02:11:87:B1:E5:11
ifup wlan9


So why this step is not done automatically ?