BPI-R2 2.4Ghz and 5.6Ghz Wifi Working fine

Do you connect an antenna to R2 board?

@garywang Nop. I did not. Is it mandatory?.

without antenna you have very bad transmission quality…if your router does not stand next to your bpi or you have overlapping wlans connect or scanning may fail

Hi Frank. I confirmed that I can able to connect my wifi router when I bring my BPI-R2 near to router. So its signal issue. I will use the antenna for better performance. Thanks.

1 Like

Hello! Thanks everybody for facing problems with AP. Very good wrote here http://www.fw-web.de/dokuwiki/doku.php?id=en:bpi-r2:wlan#internal , as frank-w pointed. I set up AP according that reference. Now I have AP with static ip, also I need dhcp server run.

1 Like

Believe it or not: I got ap0 running and I can “see” my accesspoint. But performance is poor for only a couple of meters. I believe this is an antenna issue as I still use this tiny-little-plastic-whatsoever, so can someone please recommend an antenna solution?

I have bought a antenna with cable on ebay…

6dbi with rp-SMA To IPEX/u-FL cable

Simply search for that…officially a 5dbi is recommended

Thank you, already ordered :smiley:

Maybe some one configured AP with DHCP server. I have error during starting dhcp server.

Look in my wiki,there is dnsmasq used as dhcp on ap0

I created a file in ‘/etc/dnsmasq.d/interfaces.conf’ with:

#interface=eth0
#interface=wlan0
#interface=eth1
interface=ap0
 
# DHCP-Server not active for Interface
#no-dhcp-interface=ppp0
no-dhcp-interface=eth0
no-dhcp-interface=eth1
 
#dhcp-authoritative
dhcp-range=ap0,192.168.10.100,192.168.10.150,255.255.255.0,48h
dhcp-option=ap0,3,192.168.10.1
#dhcp-range=wlan1,192.168.11.100,192.168.11.150,255.255.255.0,48h
#dhcp-option=wlan1,3,192.168.11.1

Then echo A >/dev/wmtWifi (activate AP-Mode) hostapd -dd /etc/hostapd/hostapd.conf

Then started 'service dnsmasq start'

Wifi AP is visible, but clients get strange ip and mask 255.255.0.0

You must enable the dnsmasq.d folder in /etc/dnsmasq.conf

Ok, i see that this part is missing on top,but it’s in ip-configuration-section

/etc/dnsmasq.conf (activate line by removing # on begin of line)

conf-dir=/etc/dnsmasq.d

I missed that one, thank you. I edited file Uncommented only one row. And restart dnsmasq, but the same, client can’t get ip. What else I can do wrong?

# Include another lot of configuration options.
#conf-file=/etc/dnsmasq.more.conf
conf-dir=/etc/dnsmasq.d

# Include all the files in a directory except those ending in .bak
#conf-dir=/etc/dnsmasq.d,.bak

# Include all files in a directory which end in .conf
#conf-dir=/etc/dnsmasq.d/,*.conf

Have you set an ip+subnet to your ap0-interface?

any errors (syslog) when starting dnsmasq?

Well done! Clients are getting ip correctly! I thought that one must be executed only once… Frank W, Thank you! And one more time for your wiki.

Since the ap is created manually after boot via wmt-tools/echo the ip must be set after that. Thats why i do that all with script. But i dont’t know if uploaded my last version.

Currently there is a Problem after stopping/restarting hostapd…maybe this can be fixed with echo 0>/dev/wmtWifi,but i have not tested it yet…and after that we must start at echo A…

i have tested and can confirm that AP is visible again after killing hostapd if wifi device is resetted via

echo 0 > /dev/wmtWifi
echo A > /dev/wmtWifi

I’ve test the AP mode, find it works fine, please follow my steps to enable it.

Firstly please install Ubuntu 16.04 image, and then:

Remove pkg wpasupplicant(apt-get remove wpa_supplicant) if you’re using Ubuntu 16.04 image

Comment out echo 1 > ${{WIFI_DEV} in /etc/init.d/wifi_enable if you’re using Ubuntu 16.04 image

Reboot

Run command “echo A >/dev/wmtWifi”

Run comand : hostapd -dd -C /etc/hostapd/hostapd.conf

Below is an example of hostapd.conf: hw_mode=g interface=ap0 driver=nl80211 channel=1 auth_algs=1 ssid=test Also the patch @BitMaster provided is delivered to github. Thanks a lot, BitMaster. https://github.com/BPI-SINOVOIP/BPI-R2-bsp/commit/219be3221aadb2d316557df8064bb231ca46ed5123

When I try to apt-get remove wpa_supplicant, It does not found any package. When I try, apt-get remove wpasupplicant, It deletes networks manager too.

Also "hostapd -dd -C /etc/hostapd.conf " command is not working.

apt-get remove wpasupplicant

is right command, and yes you cannot use Network-manager if you want to use AP-Mode

make sure you have created a config /etc/hostapd.conf if passing that to hostapd…i did not use -C flag of hostapd

İf I cannot use network manager, How Will I make hotspot configs or options? I mean How can I bridge eth0 to wireless and arrange or enable a hotspot name, password or specifications?

Also, Any hostapd app is not enable on lastest Ubuntu image, I have installed the app after. So, There is no /etc/hostapd/hostapd.conf