Turning wireless on leads to network unreachable when sending a message

42 views
Skip to first unread message

ayat.ab...@gmail.com

unread,
Sep 15, 2014, 4:46:21 PM9/15/14
to spa...@googlegroups.com
I'm trying to use the Manet Manager while leaving the wireless on, but I get the network unreachable error when trying to send a message over the network, why is that ? why can't I turn the wireless on and use the Manet Manager ? any solutions ? I really need to use the wireless.

Jeffrey Robble

unread,
Sep 15, 2014, 6:04:11 PM9/15/14
to spa...@googlegroups.com
SPAN takes over the Wi-FI at the native level below the Android framework. You can't be in a SPAN mesh and connected to a Wi-Fi access point at the same time. To be in the SPAN mesh the Wi-Fi chip has to be in ad-hoc mode. To be connect to a Wi-Fi access point the chip has to be in managed mode. The chip can't be in two modes at the same time.

On Mon, Sep 15, 2014 at 4:46 PM, <ayat.ab...@gmail.com> wrote:
I'm trying to use the Manet Manager while leaving the wireless on, but I get the network unreachable error when trying to send a message over the network, why is that ? why can't I turn the wireless on and use the Manet Manager ?  any solutions ? I really need to use the wireless.

--
You received this message because you are subscribed to the Google Groups "Smart Phone Ad-Hoc Networks" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spandev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ayat.ab...@gmail.com

unread,
Sep 16, 2014, 4:21:33 PM9/16/14
to spa...@googlegroups.com
when I try to access the iwconfig i get nothing, I noticed your using a custom command for Manet Manager. can you please tell me how to use the iwconfig ?

here's the file I saw
https://github.com/ProjectSPAN/android-manet-manager/blob/master/AndroidManetManager/res/raw/adhoc_edify

I believe I'm missing something here.

What I'm trying to do is detecting the RSSI for the ad-hoc network created by the manet manager when the hello message is received. but the WiFi manager is not working since it needs to enable the WiFi, therefore what I'm trying to do is using commands and parse the text to get the needed value. how do you list the available networks? both iwconfig and iwlist didn't work.

Thanks in advance.
Regards,

Jeffrey Robble

unread,
Sep 16, 2014, 9:10:23 PM9/16/14
to spa...@googlegroups.com
To use iwconfig first "adb shell" into the device, execute "su", then "cd" into "/data/data/org.span/bin" and execute "./iwconfig". iwconifg should list the available network interfaces.

ayat.ab...@gmail.com

unread,
Sep 19, 2014, 1:46:52 PM9/19/14
to spa...@googlegroups.com
Dear stoker:

After executing the command I'm getting this output:

eth0 IEEE 802.11-DS Nickname:""
Mode:Ad-Hoc Channel:-6.39001e+08 Cell: Not-Associated
Retry min limit:-1090517180 RTS thr:off Fragment thr:off
Power Managementmode:All packets received
Link Quality=5/5 Signal level=0 dBm Noise level=0 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

As you can see the measured signal level is 0 which cannot be true. Can you please tell me what to modify so I can measure the signal level ?

Jeffrey Robble

unread,
Sep 19, 2014, 1:53:54 PM9/19/14
to spa...@googlegroups.com
Sorry, I don't know. It might be a feature lacking in iwconfig, the kernel, or the Wi-Fi chip driver.

ayat.ab...@gmail.com

unread,
Sep 19, 2014, 2:00:37 PM9/19/14
to spa...@googlegroups.com
OK. Thank you.
Reply all
Reply to author
Forward
0 new messages