Bluetoothが動作しません。 MPOW BH519A

Bluetoothが動作しません。 MPOW BH519A

MPOW BH519A Bluetoothアダプタを操作しようとしています。同様の投稿があり、そのうちの1つがこのアダプタに関するものです。残念ながら、私はすべてを試しましたが、何も役に立ちませんでした。次のようないくつかのコマンドをテストしました。
  • sudo apt インストール ブルーマン
  • sudo make install INTERFACE=all (MPOW Linuxドライバのダウンロード、フォルダからこのコマンドを実行)
  • sudo mv -v ~/Download/rtl8761b_config /usr/lib/firmware/rtl_bt/rtl8761b_config.bin
  • bluez4をすばやくインストールする
  • bluezをすばやくインストールする
  • sudo apt インストール bluez bluez-obexd
  • sudo apt-get インストール bluez-utils libopemnobex1
  • sudo apt 再インストール bluez
  • sudo blueman - 管理者

リーダーを走ることもできませんでした。コントロールをオンに設定しましたが、「Bluetoothアダプタが見つかりません」というメッセージが表示されます。複数のコマンドを試してもコントロールを開くように設定することはできません。


私は完全なUbuntu初心者であるため、重要なものを複製したか見落とした可能性があると思います。

以下はいくつかの結果です。残念ながら、どの情報があなたに役立つのかわかりません。

lsb_release-a
利用可能なLSBモジュールはありません。
出版社ID:Ubuntu
説明:Ubuntu 20.04.2 LTS
バージョン:20.04
コード名:focus

~$ dmesg |
[2.308927] USB 3-2: 製品: Bluetooth Radio
[18.340266] Bluetooth: Core Version 2.22
[18.340297] Bluetooth: HCI デバイスおよび接続マネージャの初期化
[18.340301] Bluetooth: HCI ソケット層の初期化 [
18.340303]
[18.340306] Bluetooth: SCOソケット層の初期化
[55.439177] audit: type=1400 audit (1627551927.132:64): apparmor="deny" action="create" profile="snap.bluetooth-autostart. autostart-blue comm ="hciconfig" family="bluetooth" sock_type="raw" プロトコル=1 request_mask="create" Denied_mask="create"

[ 65.993297] Bluetooth: BNEP (イーサネット エミュレーション) バージョン 1.3
[ 65.993300 ]: Bluetoothキャスト
[65.993305] Bluetooth: BNEP ソケット層初期化

~$ echo "オプション btusb_autostop=0" sudo tee -a /etc/modprobe.d/btusb.conf
OPTION btusbENABLE_AUTOSUSPEND=0

〜$ systemctl grep -iブルー|
run-snapd-ns-bluetooth\x2dautostart.mnt.mount ロード済みアクティブマウント /run/snapd/ns/bluetooth-autostart.mnt

snap-bluetooth\x2dautostart-10.mount ロード済みアクティブマウント Bluetooth 自動起動マウントデバイス、リビジョンバージョン10

Bluetooth。サービスがロードされましたアクティブなBluetoothサービスが実行されています

●snap.bluetooth-autostart.autostart-bluetooth.serviceのロードに失敗しましたSnapアプリケーションbluetooth-autostart.autostart-bluetoothのサービス

~$lsusb
バス002デバイス001:ID 1d6b:0002 Linux Foundation 2.0ルートハブバス
004デバイス001:ID 1d6b:0001 Linux Foundation 1.1ルートハブバス
001デバイス004:ID 2357:01TL 1 0 01
: ID 1d 6b:0002 Linux Foundation 2.0ルートハブバス
003デバイス004:ID 093a:2510 Pixart Imaging、Inc。光学マウス
バス003デバイス003:ID 0bda:2550 Realtek Semiconductor Corp。 Bluetoothラジオバス
003デバイス002:ID 046d:c52b Logitech、Inc。 Unifyingレシーバ
バス003デバイス001:ID 1d6b:0001 Linux Foundation 1.1ルートハブ
バス008デバイス001:ID 1d6b:0003 Linux Foundation 3.0ルートハブバス
007デバイス001:ID 1d6 0
001:ID 1d6b:0003 Linux Foundation 3.0 ルートハブバス
005 デバイス 001:ID 1d6b:0002 Linux Foundation 2.0 ルートハブ

rfkillはすべてリストします。
0:phy0:無線 LAN ソフト
ブロック:なし
ハードブロック:なし

すべての回答に感謝します。

[編集する]

20200610_LINUX_BT_DRIVER/20200610_LINUX_BT_DRIVER/uart/bluetooth_uart_driver/hci_ldisc.c:1086:22: エラー: 'ssize_t(*)(struct tty_struct *, struct file *, struct file *,, size_t, void **, long unsigned int)' { 別名 'long int()(struct tty_struct *、struct file *、unsigned char, long unsigned int, void **, long unsigned int)'} 互換性のないポインタ型 'ssize_t()(struct tty_struct *、struct file *、unsigned char、 size_t)' {別名 'long int(1086 | struct tty_struct *、struct file *、unsigned char *、long unsigned int)'} hci_uart_ldisc.read = hci_uart_tty_read;

これはhci_ldisc.cファイルのコードです:

/*
 * We don't provide read/write/poll interface for user space.
 */
static ssize_t hci_uart_tty_read(struct tty_struct *tty, struct file *file,
                 unsigned char __user * buf, size_t nr)
{
    return 0;
}

static ssize_t hci_uart_tty_write(struct tty_struct *tty, struct file *file,
                  const unsigned char *data, size_t count)
{
    return 0;
}

static unsigned int hci_uart_tty_poll(struct tty_struct *tty,
                      struct file *filp, poll_table * wait)
{
    return 0;
}

static int __init hci_uart_init(void)
{
    static struct tty_ldisc_ops hci_uart_ldisc;
    int err;

    BT_INFO("HCI UART driver ver %s", VERSION);

    /* Register the tty discipline */

    memset(&hci_uart_ldisc, 0, sizeof(hci_uart_ldisc));
    hci_uart_ldisc.magic = TTY_LDISC_MAGIC;
    hci_uart_ldisc.name = "n_hci";
    hci_uart_ldisc.open = hci_uart_tty_open;
    hci_uart_ldisc.close = hci_uart_tty_close;
    hci_uart_ldisc.read = hci_uart_tty_read;
    hci_uart_ldisc.write = hci_uart_tty_write;
    hci_uart_ldisc.ioctl = hci_uart_tty_ioctl;
    hci_uart_ldisc.poll = hci_uart_tty_poll;
    hci_uart_ldisc.receive_buf = hci_uart_tty_receive;
    hci_uart_ldisc.write_wakeup = hci_uart_tty_wakeup;
    hci_uart_ldisc.owner = THIS_MODULE;

[編集]ランタイム"sudo makeインストールインターフェース= usb

mkdir -p /lib/modules/5.11.0-27-generic/kernel/drivers/bluetooth
Start Realtek Bluetooth USB driver installation
mkdir -p /lib/firmware
Copy rtkbt-firmware/lib/firmware/rtl*_fw to /lib/firmware
cp -a rtkbt-firmware/lib/firmware/rtl*_fw /lib/firmware
Copy rtkbt-firmware/lib/firmware/rtl*_config /lib/firmware
cp -a rtkbt-firmware/lib/firmware/rtl*_config /lib/firmware
make -C usb install
make[1]: Verzeichnis „/home/ubuntu/Schreibtisch/20200610_LINUX_BT_DRIVER/20200610_LINUX_BT_DRIVER/usb“ wird betreten
rmmod btusb
rmmod: ERROR: Module btusb is not currently loaded
make[1]: [Makefile:7: install] Fehler 1 (ignoriert)
mv /lib/modules/5.11.0-27-generic/kernel/drivers/bluetooth/btusb.ko /lib/modules/5.11.0-27-generic/kernel/drivers/bluetooth/btusb_bak
mv: Aufruf von stat für '/lib/modules/5.11.0-27-generic/kernel/drivers/bluetooth/btusb.ko' nicht möglich: Datei oder Verzeichnis nicht gefunden
make[1]: [Makefile:8: install] Fehler 1 (ignoriert)
rmmod rtk_btusb
rmmod: ERROR: Module rtk_btusb is not currently loaded
make[1]: [Makefile:9: install] Fehler 1 (ignoriert)
make -C ./bluetooth_usb_driver
make[2]: Verzeichnis „/home/ubuntu/Schreibtisch/20200610_LINUX_BT_DRIVER/20200610_LINUX_BT_DRIVER/usb/bluetooth_usb_driver“ wird betreten
make -C /lib/modules/5.11.0-27-generic/build M=/home/ubuntu/Schreibtisch/20200610_LINUX_BT_DRIVER/20200610_LINUX_BT_DRIVER/usb/bluetooth_usb_driver modules
make[3]: Verzeichnis „/usr/src/linux-headers-5.11.0-27-generic“ wird betreten
make[3]: Verzeichnis „/usr/src/linux-headers-5.11.0-27-generic“ wird verlassen
make[2]: Verzeichnis „/home/ubuntu/Schreibtisch/20200610_LINUX_BT_DRIVER/20200610_LINUX_BT_DRIVER/usb/bluetooth_usb_driver“ wird verlassen
cp -f ./bluetooth_usb_driver/rtk_btusb.ko /lib/modules/5.11.0-27-generic/kernel/drivers/bluetooth/rtk_btusb.ko
depmod -a 5.11.0-27-generic
make -C ./bluetooth_usb_driver clean
make[2]: Verzeichnis „/home/ubuntu/Schreibtisch/20200610_LINUX_BT_DRIVER/20200610_LINUX_BT_DRIVER/usb/bluetooth_usb_driver“ wird betreten
rm -rf *.o *.mod.c *.mod.o *.ko *.symvers *.order *.a
make[2]: Verzeichnis „/home/ubuntu/Schreibtisch/20200610_LINUX_BT_DRIVER/20200610_LINUX_BT_DRIVER/usb/bluetooth_usb_driver“ wird verlassen
echo "install rtk_btusb success!"
install rtk_btusb success!
make[1]: Verzeichnis „/home/ubuntu/Schreibtisch/20200610_LINUX_BT_DRIVER/20200610_LINUX_BT_DRIVER/usb“ wird verlassen

[編集する]LSSB

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 2357:0109 TP-Link TL WN823N RTL8192EU
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 004: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 003 Device 005: ID 0bda:2550 Realtek Semiconductor Corp. Bluetooth Radio
Bus 003 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

[編集する]dmesg | grep -i Bluetooth

[    2.334631] usb 3-2: Product: Bluetooth Radio
[   10.740679] Bluetooth: Core ver 2.22
[   10.740735] Bluetooth: HCI device and connection manager initialized
[   10.740743] Bluetooth: HCI socket layer initialized
[   10.740748] Bluetooth: L2CAP socket layer initialized
[   10.740758] Bluetooth: SCO socket layer initialized
[   10.989363] Bluetooth: HCI UART driver ver 2.3
[   10.989373] Bluetooth: HCI UART protocol H4 registered
[   10.989376] Bluetooth: HCI UART protocol BCSP registered
[   10.989416] Bluetooth: HCI UART protocol LL registered
[   10.989419] Bluetooth: HCI UART protocol ATH3K registered
[   10.989439] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   10.989480] Bluetooth: HCI UART protocol Intel registered
[   10.989537] Bluetooth: HCI UART protocol Broadcom registered
[   10.989557] Bluetooth: HCI UART protocol QCA registered
[   10.989560] Bluetooth: HCI UART protocol AG6XX registered
[   10.989581] Bluetooth: HCI UART protocol Marvell registered
[   65.224399] audit: type=1400 audit(1630557966.917:64): apparmor="DENIED" operation="create" profile="snap.bluetooth-autostart.autostart-bluetooth" pid=902 comm="hciconfig" family="bluetooth" sock_type="raw" protocol=1 requested_mask="create" denied_mask="create"
[  786.789070] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[  786.789077] Bluetooth: BNEP filters: protocol multicast
[  786.789084] Bluetooth: BNEP socket layer initialized
[ 1005.431927] usb 3-2: Product: Bluetooth Radio

ベストアンサー1

同じアダプタを使用して同様の問題が発生しました。認識されませんでした。明らかにUSB PIDrtk_misc.cMPOWからダウンロードしたドライバソースコードパッケージ。

私のために働いた修正は次のとおりです。

  1. MPOWダウンロードドライバパッケージから抽出されたrtk_misc.cフォルダのファイルを編集します。usb/bluetooth_usb_driver私の名前は20201202_LINUX_BT_DRIVER
  2. 不足しているPIDを追加するには、311行をコピーして貼り付けます。
    {0x2550, 0x8761, "mp_rtl8761b_fw", "rtl8761bu_fw", "rtl8761bu_config", NULL, 0}, /* MPOW BH519AB RTL8761BU only */
    
  3. 検索ラインを読む(初期939行):
    patch->chip_type = RTL8761BU;
    
  4. その上に強調表示されたケースの説明を追加します。
    ケース0x8771:  
     ケース0xa725:  
     ケース0xa72A:  
     ケース0x2550:
     
  5. 保存してmake installを繰り返してドライバをビルドしてインストールし、アダプタを試してください。

おすすめ記事