wang_zx_98 发表于 前天 11:53

RemiPi开发板使用蓝牙无法连接问题

使用RemiPi开发板,使用出厂SDK进行Gatt蓝牙广播开发,使用nRFConnect 手机工具,可以识别广播,开发板出现ACL错误拒绝连接。
下述是使用bluetoothctl工具进行开发的过程:
附件为nRFConnect手机工具截图

root@myir-remi-1g:~# bluetoothctl
Agent registered
Controller C8:FE:0F:3D:96:93 Pairable: yes
# menu advertise
Menu advertise:
Available commands:
-------------------
uuids                            Set/Get advertise uuids
service                    Set/Get advertise service data
manufacturer                 Set/Get advertise manufacturer data
data                       Set/Get advertise data
discoverable                            Set/Get advertise discoverable
discoverable-timeout                   Set/Get advertise discoverable timeout
tx-power                                  Show/Enable/Disable TX power to be advertised
name                               Configure local name to be advertised
appearance                          Configure custom appearance to be advertised
duration                               Set/Get advertise duration
timeout                                  Set/Get advertise timeout
secondary                            Set/Get advertise secondary channel
clear Clear advertise config
back                                              Return to main menu
version                                           Display version
quit                                              Quit program
exit                                              Quit program
help                                              Display help about this program
export                                          Print environment variables
# tx-power on
# name on
# discoverable on
# uuids FFF0 FFF1 FFF2
# back
Menu main:
Available commands:
-------------------
advertise                                       Advertise Options Submenu
scan                                              Scan Options Submenu
gatt                                              Generic Attribute Submenu
list                                              List available controllers
show                                        Controller information
select <ctrl>                                     Select default controller
devices                                           List available devices
paired-devices                                    List paired devices
system-alias <name>                               Set controller alias
reset-alias                                       Reset controller alias
power <on/off>                                    Set controller power
pairable <on/off>                                 Set controller pairable mode
discoverable <on/off>                           Set controller discoverable mode
discoverable-timeout                       Set discoverable timeout
agent <on/off/capability>                         Enable/disable agent with given capability
default-agent                                     Set agent as the default one
advertise <on/off/type>                           Enable/disable advertising with given type
set-alias <alias>                                 Set device alias
scan <on/off>                                     Scan for devices
info                                         Device information
pair                                         Pair with device
cancel-pairing                               Cancel pairing with device
trust                                        Trust device
untrust                                      Untrust device
block                                        Block device
unblock                                      Unblock device
remove <dev>                                    Remove device
connect <dev>                                     Connect device
disconnect                                   Disconnect device
menu <name>                                       Select submenu
version                                           Display version
quit                                              Quit program
exit                                              Quit program
help                                              Display help about this program
export                                          Print environment variables
# show
Controller C8:FE:0F:3D:96:93 (public)
      Name: myir-remi-1g
      Alias: RemiPi
      Class: 0x00000000
      Powered: yes
      Discoverable: no
      DiscoverableTimeout: 0x000000b4
      Pairable: yes
      UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
      UUID: Device Information      (0000180a-0000-1000-8000-00805f9b34fb)
      UUID: A/V Remote Control      (0000110e-0000-1000-8000-00805f9b34fb)
      UUID: PnP Information         (00001200-0000-1000-8000-00805f9b34fb)
      UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
      UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
      Modalias: usb:v1D6Bp0246d0537
      Discovering: no
      Roles: central
      Roles: peripheral
Advertising Features:
      ActiveInstances: 0x00 (0)
      SupportedInstances: 0x04 (4)
      SupportedIncludes: tx-power
      SupportedIncludes: appearance
      SupportedIncludes: local-name
      SupportedSecondaryChannels: 1M
      SupportedSecondaryChannels: 2M
      SupportedSecondaryChannels: Coded
# advertise on
# Bluetooth: hu 00000000be1bddd7 retransmitting 1 pkts
Controller C8:FE:0F:3D:96:93 SupportedInstances: 0x03 (3)
Controller C8:FE:0F:3D:96:93 ActiveInstances: 0x01 (1)
Advertising object registered
UUID: (FFF0)
UUID: (FFF1)
UUID: (FFF2)
Tx Power: on
Name: on
Appearance: off
Discoverable: on
# Bluetooth: hci0: ACL packet for unknown connection handle 24
rtk_btcoex: disconn cmpl evt: status 0x00, handle 0018, reason 0x13
rtk_btcoex: process disconn complete event.
rtk_btcoex: hci conn handle 0x0018 not found
Bluetooth: hci0: ACL packet for unknown connection handle 24
rtk_btcoex: disconn cmpl evt: status 0x00, handle 0018, reason 0x13
rtk_btcoex: process disconn complete event.
rtk_btcoex: hci conn handle 0x0018 not found

页: [1]
查看完整版本: RemiPi开发板使用蓝牙无法连接问题