KW41Z部分实验不知怎么测试

2019-03-26 07:50发布

KW41Z 关于蓝牙方面的实验目前只成功一个,还是参考如下文章的 http://bbs.eeworld.com.cn/forum.php?mod=viewthread&tid=539504&highlight=%C0%B6%D1%C0 我遗漏一个关键步骤,按下开发板上的 "SW4",按下后手机端的Kinetis BLE Toolbox才能搜索到它。 顺便说一句,个别Demo里有提示按下 SW4,但这个例子里启动后串口上没有任何提示,所以被卡住 本人对蓝牙协议是个小白,例子里有个BLE Shell的测试程序,想必是能从它理解整个蓝牙协议连接、传输的建立过程, 但实验没做成功。 ############################################# 本帖主要问题 找出BLE Shell实验失败原因 __实验指导书:__ MKW41Z_ConnSw_1.0.2docswirelessBluetooth《BLE Demo Applications User's Guide.pdf》 __实验章节:__5.16 BLE Shell 实验要求需要采用两块开发板,分别输入如下内容 Kinetis BLE Shell>gap devicename HRS --> GATTDB Event: Attribute Written HRS>gap advdata 1 6 --> GAP Event: Advertising data successfully set. HRSvgap advdata 8 HRS --> GAP Event: Advertising data successfully set. HRS>gap advstart --> GAP Event: Advertising started. HRS>gattdb addservice 0x180D --> Heart Rate - Heart Rate Measurement Value Handle: 14 - CCCD Handle: 15 - Body Sensor Location Value Handle: 17 - Heart Rate Control Point Value Handle: 19 --> GATTDB Event: Service Added in database. Kinetis BLE Shell>gap devicename Collector --> GATTDB Event: Attribute Written Collector>gap scanstart -> GAP Event: Scan started. Collector> --> GAP Event: Found device 0 : 880F102F500E 0 dBm --> GAP Event: Found device 1 : FSL_CSCS 00049F000006 0 dBm --> GAP Event: Found device 2 : HRS 00049F0000FF 0 dBm Collector>gap connect 2 -> GAP Event: Scan stopped. Collector> --> GAP Event: Connected 如果一切正常,那么 Collector 能搜索到 HRS 的存在,而我这里只搜索到办公室里几个未知蓝牙设备 Collector> --> GAP Event: Found device 0 : 006037000016 -30 dBm --> GAP Event: Found device 1 : LM36-858388 001DFAF96BA4 -89 dBm 参考文档(内容太多未消化)
  • 蓝牙术语详解 https://wenku.baidu.com/view/b0cb5cdb7f1922791688e8d6.html
  • IPv6 over BLUETOOTH(R) Low Energy (内容太多)https://tools.ietf.org/html/rfc7668
  • 蓝牙连接的建立过程 http://blog.chinaunix.net/uid-24227137-id-3524173.html
参考文档《蓝牙连接的建立过程》描述 寻呼扫描物理信道(page scan physical channel)用于主设备寻呼从设备 ,我一直理解为这个过程是从机做的。 此帖出自小平头技术问答
0条回答

一周热门 更多>