Table of Contents |
---|
H&D-Wireless Wi-Fi Module
The Trizeps VIII Mini is available with H&D Wireless SPB228 Wi-Fi Module.
It includes a powerful Marvell 88W997 chipset capable of 802.11 a/b/g/n/ac, 2×2 Wave2 MU-MIMO, Bluetooth 5 Classic, and LE.
Please also view the documentation from H&D Wireless regarding implementing the driver into the OS.
i.e. for Yocto
H&D Wireless supplies a Yocto-recipe.
Unpack meta-spb228-pcie-uart-32.tar.gz to your
<project-dir>/<build-dir>/sources/
-directory.Add
Code Block BBLAYERS += " ${BSPDIR}/meta-spb228-pcie-uart-32 "
to your
<project-dir>/<build-dir>/conf/bblayers.conf
Run bitbake
Create wpa_supplicant.conf
Code Block |
---|
$ sudo -i # wpa_passphrase "<your ssid>" "<your passphrase>" > /etc/wpa_supplicant/wpa_supplicant.conf |
Power-Up Interface
Code Block |
---|
$ ifconfig mlan0 up |
Scan and Connect to Wi-Fi Network
Simple Scan
Code Block |
---|
$ iw mlan0 scan |
Connect manually using wpa_cli
Start wpa_supplicant:
Code Block |
---|
$ wpa_supplicant -Dnl80211 -imlan0 -c/etc/wpa_supplicant.conf & |
...
The mlan0 interface needs to be assigned an IP address, to have it functional. Either through DHCP or manually.
Get
...
BT running
Prerequisites
The onboard WiFi/Bluetooth BT module on Trizeps VIII Mini/Trizeps VIII Plus is connected via UART, so all communication is handled by the HCI UART driver, which must be compiled with support for the Marvell protocol. Add the following to your kernel-config:
...
Code Block |
---|
IMAGE_INSTALL += "bluez" |
to your image recipe.
Startup
First of all the kernel module must be loaded and the Bluetooth device must be attached to the appropriate UART:
...
Code Block |
---|
$ sudo hciattach /dev/ttymxc3 any 115200 flow |
Configuration
After this, you can start the Bluetooth BT interface
Code Block |
---|
$ sudo hciconfig hci0 up |
...
Code Block |
---|
[bluetooth]# exit $ |
Bluetooth BT devices can also be managed by bluetoothd witch is configured by files in /etc/bluetooth
. Nevertheless the kernel module must be loaded and the UART must be attached in some init-script that is executed before bluetoothd is started. Otherwise it will refuse to start.
Notes
Enable & Disable WLAN function of the Device
GPIO3_17 ( GPIO81; see Using a GPIO in Linux) can be used to enable and disable the WLAN function.
Set GPIO high to enable; set GPIO low to disable WLAN function.