Connect Antenna to the Board
At the factory, there is an antenna in the package box for installation on the board. The antenna is needed for WiFi and Bluetooth functions. The installation method is as follows:
Download Corresponding Image
Use Network Disk🚀 to download our provided .img image file from the System Image/Buildroot/ directory.
The image used in this document is: TaishanPi-3M-RK3576_Buildroot_AP6256-mSATA.img
Look for the image file with
ap6256in its name, as this chip integratesWiFiandBluetoothfunctions.
Flash Image to Development Board
Reference Finished Image Flashing to flash the downloaded image file to the development board.
Log in to Development Board Serial Terminal
Reference: Serial Debug Usage
Connect to WiFi Network
Check if the wlan0 device exists:
ifconfigIf the wlan0 device exists, it means the WiFi driver is loaded successfully. Start connecting to the WiFi network:
- Open the
/etc/wpa_supplicant.conffile and modifyssidandpsk:
ssidis the WiFi name, andpskis the WiFi password.
For example:
ctrl_interface=/var/run/wpa_supplicant
ap_scan=1
update_config=1
network={
ssid="tspi-wifi-test_5G"
psk="www.lckfb.com"
key_mgmt=WPA-PSK
}2
3
4
5
6
7
8
9
- Create a
/var/run/wpa_supplicantdirectory:
mkdir -p /var/run/wpa_supplicant- Kill any possibly running
wpa_supplicantprocess:
killall wpa_supplicant- Use the
wpa_supplicantcommand to connect to the WiFi network:
wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf- Obtain IP address (optional step, if IP address is not automatically obtained):
udhcpc -i wlan0After successful connection, you can use the ping command to test if the network is connected:
Connect Bluetooth Device
Check if the hci0 device exists:
hciconfig -aIf the hci0 device exists, it means the Bluetooth driver is loaded successfully. Scan for nearby Bluetooth devices:
bluetoothctl
power on
scan on2
3
exitcan exit thebluetoothctlinterface
Connect to a Bluetooth device in the bluetoothctl interface:
pair Bluetooth Device MAC Address
trust Bluetooth Device MAC Address
connect Bluetooth Device MAC Address2
3