Softap + 2G Softap - Ublox JODY-W1 Series System Integration Manual

Host-based modules with wi-fi and dual-mode bluetooth
Table of Contents

Advertisement

wpa_cli
Start
to issue commands to the supplicant:
$ ./wpa_cli -i wpa_wlan0_cmd -p /var/run
3.8.1
5G SoftAP + 2G SoftAP
This example shows how to start two concurrent Aps in the 2.4 GHz and 5 GHz bands in RSDB mode.
When creating an AP+AP configuration, the 5 GHz AP should be started first, since Bluetooth is
connected to core0 of the JODY-W1 series module. If the 2.4 GHz AP is started first, it will come
up on core0 instead and might cause interferences with 2.4 GHz Bluetooth.
First, create the 5 GHz AP:
wpa_cli> IFNAME=wlan0 DRIVER interface_create bcm0
wpa_cli> interface_add bcm0 /opt/jody-w1/wpa_supplicant_ap.conf nl80211
wpa_cli> IFNAME=bcm0 remove_net all
wpa_cli> IFNAME=bcm0 add_net
wpa_cli> IFNAME=bcm0 set_net 0 ssid "JODY-5G"
wpa_cli> IFNAME=bcm0 set_network 0 proto WPA2
wpa_cli> IFNAME=bcm0 set_network 0 key_mgmt WPA-PSK
wpa_cli> IFNAME=bcm0 set_network 0 pairwise CCMP
wpa_cli> IFNAME=bcm0 set_network 0 psk "12345678"
wpa_cli> IFNAME=bcm0 set_net 0 frequency 5180
wpa_cli> IFNAME=bcm0 set_net 0 mode 2
wpa_cli> IFNAME=bcm0 select_net 0
Listing 7: 5 GHz SoftAP on channel 36 with WPA2-PSK-AES security
Assign an IP address to the AP network interface and run a DHCP server:
$ cat udhcpd-bcm0.conf
start 192.168.9.8
end 192.168.9.255
interface bcm0
pidfile /var/run/udhcpd-bcm0.pid
lease_file /var/lib/misc/udhcpd-bcm0.leases
option subnet 255.255.255.0
option lease 864000 # default: 10 days
$ ifconfig bcm0 192.168.9.1
$ udhcpd -S udhcpd-bcm0.conf
Listing 8: 5 GHz AP IP configuration
Next, create a network interface for the 2.4 GHz AP and configure it:
wpa_cli> IFNAME=wlan0 DRIVER interface_create bcm1
wpa_cli> interface_add bcm1 /opt/jody-w1/wpa_supplicant_ap.conf nl80211
wpa_cli> IFNAME=bcm1 remove_net all
wpa_cli> IFNAME=bcm1 add_net
wpa_cli> IFNAME=bcm1 set_net 0 ssid "JODY-2G"
wpa_cli> IFNAME=bcm1 set_net 0 key_mgmt NONE
wpa_cli> IFNAME=bcm1 set_net 0 frequency 2437
wpa_cli> IFNAME=bcm1 set_net 0 mode 2
wpa_cli> IFNAME=bcm1 select_net 0
Listing 9: 2.4 GHz SoftAP on channel 6 without security
UBX-16012621 - R18
C1-Public
JODY-W1 series - System integration manual
Software
Page 44 of 72

Advertisement

Table of Contents
loading

This manual is also suitable for:

Jody-w163-aJody-w164-aJody-w167-aJody-w174-a

Table of Contents