MANET Manager Troubleshooting - ProjectSPAN/android-manet-manager GitHub Wiki
MANET Manager Settings
If the above setup didn't work, first check the following:
- The SSID must be the same on each device and unique from other SSIDs in range. Default is "AndroidAdhoc" and can be typically left alone.
- Change Wireless Interface to "wlan0" or "eth0".
You can see example settings configurations here.
Connection Steps
Some devices connect better after a reboot with wifi toggled off. Start with connecting two devices. Connecting the third+ devices is easier once an ad-hoc cell is established. Then,
Turn off wi-fi; reboot; launch MANET Manager; turn on ad-hoc; open the routing table and wait a bit;
if they don't appear as neighbors, toggle the ad-hoc mode off and back on for one device and watch the routing table on the other until they connect.
Wireless Extensions (wext)
Using adb shell, you should check that Wireless Extensions (wext) are enabled:
- Drop into shell on your device
<sdk>/platform-tools/$ ./adb shell
- Become a super user
shell@android:$ su
- Run iwconfig and make sure there is an interface which does not say "no wireless extensions"
shell@android:$ /data/data/org.span/bin/iwconfig
NOTE: The above requires that your device is rooted and MANET Manager is installed from the Google Play Store.
Example Output:
IEEE 802.11bgn ESSID:"AndroidAdhoc"
Mode:Ad-Hoc Frequency:2.412 GHz Cell: 5E:29:1D:6E:D6:EB
Tx-Power=1496dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
Cell Splitting
In some instances, different "Cell" ids might be configured for your devices. This is known as "cell-splitting." Stoker discusses the fix in detail in this Google Group thread. A summary is as follows:
- If the "Cell" for your devices is different, try manually setting the cell to be the same:
shell@android:$ /data/data/org.span/bin/iwconfig wlan0 ap 5E:29:1D:6E:D6:EB
- You can also try setting to any or off which should set the Cell ID automatically.
shell@android:$ /data/data/org.span/bin/iwconfig wlan0 ap any
OR
shell@android:$ /data/data/org.span/bin/iwconfig wlan0 ap off
Where "wlan0" is the interface with wext enabled and "5E:29:1D:6E:D6:EB" is an arbitrary Cell ID
Further Help
If the above steps didn't solve your problems, you might have to get your hands dirty. Take a look at Supported Devices to see if your device is supported or if there is a workaround. Try trolling through the SPANdev Google Group for answers, and if the answers aren't helpful, post a new topic to ask for help!