Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 6 additions & 17 deletions docs/common/accessories/_wifi-bt.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,21 @@

{" "}

<pre>{`root@${props.model}:/home/radxa# nmcli dev wifi connect "wifi_name" password
"wifi_password"`}</pre>
<pre>{`root@${props.model}:/home/radxa# nmcli dev wifi connect "wifi_name" password\n"wifi_password"`}</pre>

- 蓝牙的使用

1. 如果使用 Radxa 无线 A8 模块,必须添加以下黑名单才能使 BT 正常工作

{" "}

<pre>{`root@${props.model}:/home/radxa# cat /etc/modprobe.d/blacklist.conf blacklist
pgdrv blacklist btusb blacklist btrtl blacklist btbcm blacklist btintel
root@${props.model}:~# reboot`}</pre>
<pre>{`root@${props.model}:/home/radxa# cat /etc/modprobe.d/blacklist.conf blacklist\npgdrv blacklist btusb blacklist btrtl blacklist btbcm blacklist btintel\nroot@${props.model}:~# reboot`}</pre>

2. Radxa APT 包括用于Broadcom无线模块的broadcom-wifibt-firmware软件包和用于Intel无线模块的intel-wifibt-firmware软件包。需要下载相应的软件包

{" "}

<pre>{`root@${props.model}:/home/radxa# apt-get update -y root@${props.model}
:/home/radxa# apt-get install -y broadcom-wifibt-firmware intel-wifibt-firmware`}</pre>
<pre>{`root@${props.model}:/home/radxa# apt-get update -y root@${props.model}\n:/home/radxa# apt-get install -y broadcom-wifibt-firmware intel-wifibt-firmware`}</pre>

3. 测试蓝牙模块的状态并检查蓝牙设备

Expand All @@ -58,17 +54,13 @@ root@${props.model}:~# reboot`}</pre>

{" "}

<pre>{`root@${props.model}:/home/radxa# hciconfig hci0: Type: Primary Bus: UART BD
Address: 10:2C:6B:49:D5:53 ACL MTU: 1021:8 SCO MTU: 64:1 UP RUNNING RX
bytes:850 acl:0 sco:0 events:58 errors:0 TX bytes:2814 acl:0 sco:0
commands:58 errors:0`}</pre>
<pre>{`root@${props.model}:/home/radxa# hciconfig hci0: Type: Primary Bus: UART BD\nAddress: 10:2C:6B:49:D5:53 ACL MTU: 1021:8 SCO MTU: 64:1 UP RUNNING RX\nbytes:850 acl:0 sco:0 events:58 errors:0 TX bytes:2814 acl:0 sco:0\ncommands:58 errors:0`}</pre>

6. 测试:连接蓝牙音箱,首先安装 pulseaudio

{" "}

<pre>{`root@${props.model}:/home/radxa# apt-get install -y
pulseaudio-module-bluetooth pulseaudio`}</pre>
<pre>{`root@${props.model}:/home/radxa# apt-get install -y\npulseaudio-module-bluetooth pulseaudio`}</pre>

7. 运行 pulseaudio

Expand All @@ -80,9 +72,6 @@ pulseaudio-module-bluetooth pulseaudio`}</pre>

{" "}

<pre>{`root@${props.model}:/home/radxa# bluetoothctl [bluetooth]# default-agent
[bluetooth]# power on [bluetooth]# scan on [bluetooth]# trust
41:42:1A:8D:A9:65 #BT-280 [bluetooth]# pair 41:42:1A:8D:A9:65 [bluetooth]#
connect 41:42:1A:8D:A9:65`}</pre>
<pre>{`root@${props.model}:/home/radxa# bluetoothctl [bluetooth]# default-agent\n[bluetooth]# power on [bluetooth]# scan on [bluetooth]# trust\n41:42:1A:8D:A9:65 #BT-280 [bluetooth]# pair 41:42:1A:8D:A9:65 [bluetooth]#\nconnect 41:42:1A:8D:A9:65`}</pre>

9. 现在您可以听音乐了
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,21 @@

{" "}

<pre>{`root@${props.model}:/home/radxa# nmcli dev wifi connect "wifi_name" password
"wifi_password"`}</pre>
<pre>{`root@${props.model}:/home/radxa# nmcli dev wifi connect "wifi_name" password\n"wifi_password"`}</pre>

- Bluetooth Usage

1. If using the Radxa Wireless A8 module, the following blacklists must be added for BT to work properly.

{" "}

<pre>{`root@${props.model}:/home/radxa# cat /etc/modprobe.d/blacklist.conf blacklist
pgdrv blacklist btusb blacklist btrtl blacklist btbcm blacklist btintel
root@${props.model}:~# reboot`}</pre>
<pre>{`root@${props.model}:/home/radxa# cat /etc/modprobe.d/blacklist.conf blacklist\npgdrv blacklist btusb blacklist btrtl blacklist btbcm blacklist btintel\nroot@${props.model}:~# reboot`}</pre>

2. Radxa APT includes the broadcom-wifibt-firmware package for Broadcom wireless modules and the intel-wifibt-firmware package for Intel wireless modules. The corresponding packages need to be downloaded

{" "}

<pre>{`root@${props.model}:/home/radxa# apt-get update -y root@${props.model}
:/home/radxa# apt-get install -y broadcom-wifibt-firmware intel-wifibt-firmware`}</pre>
<pre>{`root@${props.model}:/home/radxa# apt-get update -y root@${props.model}\n:/home/radxa# apt-get install -y broadcom-wifibt-firmware intel-wifibt-firmware`}</pre>

3. Test the status of the Bluetooth module and check the Bluetooth device

Expand All @@ -58,17 +54,13 @@ root@${props.model}:~# reboot`}</pre>

{" "}

<pre>{`root@${props.model}:/home/radxa# hciconfig hci0: Type: Primary Bus: UART BD
Address: 10:2C:6B:49:D5:53 ACL MTU: 1021:8 SCO MTU: 64:1 UP RUNNING RX
bytes:850 acl:0 sco:0 events:58 errors:0 TX bytes:2814 acl:0 sco:0
commands:58 errors:0`}</pre>
<pre>{`root@${props.model}:/home/radxa# hciconfig hci0: Type: Primary Bus: UART BD\nAddress: 10:2C:6B:49:D5:53 ACL MTU: 1021:8 SCO MTU: 64:1 UP RUNNING RX\nbytes:850 acl:0 sco:0 events:58 errors:0 TX bytes:2814 acl:0 sco:0\ncommands:58 errors:0`}</pre>

6. Test: Connect the Bluetooth speaker, first install pulseaudio

{" "}

<pre>{`root@${props.model}:/home/radxa# apt-get install -y
pulseaudio-module-bluetooth pulseaudio`}</pre>
<pre>{`root@${props.model}:/home/radxa# apt-get install -y\npulseaudio-module-bluetooth pulseaudio`}</pre>

7. Run pulseaudio

Expand All @@ -80,9 +72,6 @@ pulseaudio-module-bluetooth pulseaudio`}</pre>

{" "}

<pre>{`root@${props.model}:/home/radxa# bluetoothctl [bluetooth]# default-agent
[bluetooth]# power on [bluetooth]# scan on [bluetooth]# trust
41:42:1A:8D:A9:65 #BT-280 [bluetooth]# pair 41:42:1A:8D:A9:65 [bluetooth]#
connect 41:42:1A:8D:A9:65`}</pre>
<pre>{`root@${props.model}:/home/radxa# bluetoothctl [bluetooth]# default-agent\n[bluetooth]# power on [bluetooth]# scan on [bluetooth]# trust\n41:42:1A:8D:A9:65 #BT-280 [bluetooth]# pair 41:42:1A:8D:A9:65 [bluetooth]#\nconnect 41:42:1A:8D:A9:65`}</pre>

9. Now you can listen to music
Loading