Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    T113跑bluez,bluetoothctl命令行操作的时候,手机能搜索到蓝牙,但是连接的时候一直连接不上

    Linux
    1
    1
    37
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      shz18877605430 LV 5 last edited by

      T113跑bluez,bluetoothctl命令行操作的时候,手机能搜索到蓝牙,但是连接的时候一直连接不上,

      大致流程如下操作:

      /etc/init.d/dbus start
      echo 0 > /sys/class/rfkill/rfkill0/state
      echo 1 > /sys/class/rfkill/rfkill0/state
      rtk_hciattach -n -s 115200 ttyS1 rtk_h5 & 	
      hciconfig hci0 up
      bluetoothd -C &
      bluetoothctl
          ---->power on               //打开电源
          ---->discoverable on     //打开可发现
          ---->menu adv
               ---->name qq123      //设置蓝牙名字:qq123
               ---->back
          ---->advertise on           //广播
      
      

      然后使用手机端的nrf connect助手搜索蓝牙,然后点击连接,但是连接不上,超时。

      af8cb9bd-a365-4d2b-9cfc-84737b6e2217-image.png

      6d274850-8f1a-4a0a-89de-7ab53029bf0c-image.png

      各位大佬,支支招!!!

      1 Reply Last reply Reply Quote Share 0
      • 1 / 1
      • First post
        Last post

      Copyright © 2022 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

      行为准则 | 用户协议 | 隐私权政策