小编Vin*_*t T的帖子

i.MX25上的BlueZ:无法连接RFCOMM插座:正在进行操作

我正在尝试连接到嵌入式Linux上的蓝牙设备.

  • BlueZ版本是4.101.
  • 本地蓝牙适配器是USB蓝牙适配器Trendnet TBW-107UB,适用于所有测试.
  • 我无法提供有关目标设备的详细信息,因为它是我工作的公司的产品,抱歉.

使用本页描述的方法 在Desktop Linux Mint 17 x64和RiotBoard(i.MX6)Linaro Ubuntu上运行良好.

但是,我无法将i.MX25板(嵌入式自定义Linux)连接到目标设备.只扫描有效.

rfcomm.conf

rfcomm0 {
    # Automatically bind the device at startup
    bind yes;

    # Bluetooth address of the device
    device 00:07:80:5A:48:93;

    # RFCOMM channel for the connection
    channel 1;

    # Description of the connection
    comment "Example Bluetooth device";
}
Run Code Online (Sandbox Code Playgroud)

hciconfig -a输出

hci0:   Type: BR/EDR  Bus: USB  
    BD Address: 00:15:83:44:39:E2  ACL MTU: 384:8  SCO MTU: 64:8  
    UP RUNNING PSCAN  
    RX bytes:28633 acl:0 sco:0 events:204 errors:0 …
Run Code Online (Sandbox Code Playgroud)

linux bluetooth embedded-linux rfcomm bluez

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

bluetooth ×1

bluez ×1

embedded-linux ×1

linux ×1

rfcomm ×1