Mango AP Mode setings
-
I try to connect to mango using a TP link WiFi usb card adaptor and a Samsung galaxy tablet.
I can see on my WiFi network SSID mangoES30xx.
On may tablet I added a network with teh same name as mangoES30xx
I setup my tablet to a fix ip 10.10.10.2
Gateway field on my tablet is 10.10.10.1
Network Prefix Length of 24
DNS 1 8.8.8.8
DNS 2 8.8.4.4
Mango use default ip 10.10.10.1
The tablet attempt to connect but is not connecting.
Any idea where I am wrong ?
Thanks
Mircea -
I fixed. Using USB utility i setup wireless network.
I think Mango ES came with out AP enable. -
Glad you got it solved!
For other MangoES users: sometimes the system process hosting the access point can not be joined if AP mode was started after other system processes. Sometimes it is accessible immediately after inserting the wireless antenna, though. I would recommend rebooting with the WiFi adapter already inserted if you are having the issue where you can see the network SSID but cannot seem to get it to join, or to reinsert the antenna. If an ES is configured in AP mode but does not have an antenna inserted, the LEDs on the front of the device will blink on an off three times after startup or use of the USB utility.
-
Hi Phil,
Using the USB way to enable the wifi I can't see mango on my wireless network.
Here is what I have done in wireless.properties file
#Can be used to either join a network with DHCP or launch AP mode
apMode=true
interface=wlan0
ssid=MangoES
password=mangomango
#These static addresses are set in AP mode uncomment them to use different values
#v4Address=10.10.10.1
#v4Mask=255.255.255.0
#v6Address=fe80::1234
#v6Mask=64This is what I have in the log file under MangoES.
Thu Jun 8 21:23:38 EDT 2017 : all the setup steps completed successfully.
Everything look fine with the LED. I also reboot the Mango but still nothing come up in my wireless network.
Any suggestion ?
Thanks
Mircea -
Hi Phil,
I still can't see mango on my witless network.
How do I know that I have the driver for the usb installed ?
Any suggestion.
Thanks
Mircea -
Hi Mircea,
The USB utility is installed on all but the very first V3 MangoES units. You should see all the LEDs on the Mango ES light up while the USB utility is in use. It is not present on any V2 MangoES units.
For AP mode, you should see the LEDs flash all three together if it attempted to start the wireless network but found no antenna.
If you are able to access the device, you could share its /etc/network/interfaces configuration, and you could try
sudo /opt/control/ensureHostapd.sh
to try to start hostapd (AP daemon). You can check if it's running withpidof hostapd
if you have command line access.You say that you don't see it on your wireless network, but you expect AP to be hosting its own wireless network with SSID "MangoES" correct? If you do see the network I would expect a Windows computer to say 'connection is limited' after joining, but you should still be able to navigate to the IPv6 addresses (like [fe80::1234]) and still be able to access the UI or SSH.
-
Mircea had several manufacturers USB Wifi antennas he was attempting to use, and the majority did not detect as wlan devices, which let the hostapd service to fail to start. The current recommended wifi adapter for a MangoES is this one: https://ameridroid.com/products/wifi-module-3
Compounding the problem, his hostapd may not have had the supported driver for that antenna! This could have happened if the package was updated through the package manager, or it could have been idiosyncratic from a kernel update around its manufacturing time. You would know this applies if when running the
sudo /opt/control/ensureHostapd.sh
script you would see output messages about it being an unknown driver, rtl871xdrv. However, if it says failed to initialize, then it may be that the antenna isn't getting detected as a wlan device, which was ultimately the resolution here. Fortunately, one of the many brands of antenna Mircea had on hand did work. In checking the hostapd service had the right driver, I copied the binary from a working ES onto the machine in question. -
You might have to bridge the ethernet adapter on the mangoES with the usb WiFi adapter into br0 then give br0 the ip address of the mango instance.
Then you should be able to see the machine from either interface.The default ethernet ip on mine is set in /etc/network/interfaces.d/eth0
You would have to create a bridge interface, add the eth0 and wlan0 or whichever interface it comes up as to the bridge, then give the bridge the IP Address.
Cheers
Dan