
10
VIA SOM-9X35-STK Yocto 3.1 EVK Quick Start Guide
Then use the "ping" command to verify the network connection:
root@aiv8365m1v1-aiot-emmc:~# ping 8.8.8.8
3.10
Bluetooth
To enter "interactive mode" for Bluetooth function verification, use the following commands:
root@aiv8365m1v1-aiot-emmc:~# btmw-rpc-test
increase the priority of btmw_rpc_test.i4_ret:0 @ main
set btmw_rpc_test priority done
[Client]Func:main Line:665--->: IPC/RPC initialize
YZ rpc_init is called
...
...
<I> [BTMW_RPC_TEST] init ok Normal Mode
<I> [BTMW_RPC_TEST] running.
btmw_test_cli>
In the example below, use a Bluetooth speaker to test.
First, get the Bluetooth speaker MAC address, which is "41:42:FC:81:75:7F" in this example.
To verify the Bluetooth function, use the following commands (using the speaker's MAC address in line 4 and
line 5):
btmw_test_cli> MW_RPC_GAP power 1
...
btmw_test_cli> MW_RPC_GAP set_conn_disc 1 1
...
btmw_test_cli> MW_RPC_GAP name mtk350
...
btmw_test_cli> MW_RPC_GAP pair 41:42:FC:81:75:7F 1
...
btmw_test_cli> MW_RPC_A2DP_SRC connect 41:42:FC:81:75:7F
...
btmw_test_cli> MW_RPC_A2DP_SRC write_stream /data/sda1/test.wav
...
btmw_test_cli>