외부 블루투스 어댑터 설치

외부 블루투스 어댑터 설치

Pi4에 외부 Bluetooth 5.1 USB 어댑터를 사용하고 싶습니다. 어댑터의 칩은 Realtek RTL8671b입니다. Google에서 외부 BT를 작동시키는 방법을 검색했는데 대부분의 튜토리얼에서는 온보드 BT를 비활성화할 것을 제안했습니다.

구성 파일을 편집하여 온보드 BT를 비활성화했습니다. lsusb를 사용하여 외부 어댑터가 올바르게 감지되었습니다.

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub 
Bus 001 Device 003: ID 0bda:a725 Realtek Semiconductor Corp. Bluetooth 5.1 Radio 
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

그러나 상태를 확인하면 다음과 같은 결과가 나타납니다.

pi@raspberrypi:~ $ sudo service bluetooth status 
bluetooth.service - Bluetooth service   
Loaded: loaded  (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)   Active: inactive (dead)   
Docs: man:bluetoothd(8)

BT 서비스를 시작한 후:

pi@raspberrypi:~ $ sudo systemctl status bluetooth● bluetooth.service

- Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enab>
     Active: active (running) since Mon 2022-06-13 12:55:19 BST; 6min ago
       Docs: man:bluetoothd(8)    Main PID: 5696 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 4915)
        CPU: 121ms
     CGroup: /system.slice/bluetooth.service
             └─5696 /usr/libexec/bluetooth/bluetoothd

Jun 13 12:55:19 raspberrypi systemd[1]: Starting Bluetooth service... Jun 13 12:55:19 raspberrypi bluetoothd[5696]: Bluetooth daemon 5.55 Jun 13 12:55:19 raspberrypi systemd[1]: Started Bluetooth service. Jun 13 12:55:19 raspberrypi bluetoothd[5696]: Starting SDP server Jun 13 12:55:19 raspberrypi bluetoothd[5696]: Bluetooth management interface
1.21 initia> lines 1-16/16 (END)

그래서 지금은 BT 서비스가 잘 돌아가고 있는 것 같아요. 하지만 BT 장치를 나열하거나 표시하려고 하면 다음과 같은 메시지가 나타납니다.

pi@raspberrypi:~ $ bluetoothctl 에이전트 등록됨 [bluetooth]# list [bluetooth]# show 사용 가능한 기본 컨트롤러가 없습니다.

위와 같이 드라이버 파일을 설치해 보았습니다.여기약간의 차이가 있습니다. 내 어댑터에 칩의 bu 버전이 있기 때문에 rtl8761b를 사용하는 대신 rtl8761bu_firware 및 rtl8761bu_config를 사용했습니다.

드라이버를 설치하기 전에 dmesg | grep bluetooth를 사용하면 rtl8761bu 펌웨어를 찾을 수 없다고 언급되었지만 이제는 아무것도 반환하지 않습니다. 운전자에게는 아무 문제가 없다고 생각합니다.

저는 Linux 운영 체제에 관한 완전한 초보자이며 몇 시간 동안 온라인으로 솔루션을 검색한 후에 bluetoothctl이 내 어댑터를 볼 수 없기 때문에 막혔습니다. 온보드 BT를 다시 활성화했는데 bluetoothctl은 온보드 BT만 볼 수 있습니다. lsusb는 항상 어댑터를 올바르게 감지합니다.

문제가 무엇인지, 해결 방법을 제안해 주실 수 있나요? 감사해요

관련 정보