TI中文支持网
TI专业的中文技术问题搜集分享网站

CC2640R2F: HID 无法发送按键信息

Part Number:CC2640R2F

我在做一个HID遥控器的项目。

 参考simplelink_cc2640r2_sdk_ble_example_pack_1_50_00_62中的 hid_emu_kbd 项目

CCS:7.3.0

 SDK:1_50_00_58

硬件:LAUNCHXL_CC2640R2

测试工具:nrf52840 usb dongle

测试软件:nrf connect app

使用nrf connect app可以连接,也有HID的服务显示,但无法读取HID的相关内容,例如读取protocol mode时提示insufficient authentication(0X0105)

在发送root keyboard input report 的client characteristic configuration时也是提示 write operation failed:insufficient authentication(0X0105)

不知道是哪里出了问题?

请帮忙看看

谢谢

Nick Sun:

您好,

查看到您使用的SDK版本太老了,建议您先转到最新的SDK上进行测试。

,

dan s:

您好,

谢谢回复。

我在CCS:12.2.0下导入simplelink_cc2640r2_sdk_ble_example_pack_1_50_00_62中的 hid_emu_kbd 项目,结果跟CCS:7.3.0是一样的。我又修改了项目中的.project文件,

<value>file:/D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack</value>

重新编译时报错。

error #10008-D: cannot find file "D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/grlib/lib/grlib.aem3"error #10008-D: cannot find file "D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/mw/lcd/lib/lcd.aem3"

查看了路径中是没有这两个文件,但不知道应如何修改。

请指教一下。

谢谢

,

Nick Sun:

您好,

不是指您的CCS版本的问题,我们认为您的2640SDK版本太老了,希望更新到最新的来使用:SIMPLELINK-CC2640R2-SDK 5.30.00.03

,

dan s:

已经更新了。所以编译出错。在simplelink_cc2640r2_sdk_5_30_00_03中没有HID的Demo

下面是项目的属性

xdcpath="D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source;D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/kernel/tirtos/packages;D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M3 -p ti.platforms.simplelink:CC2640R2F -r release -c "D:/ti/ccs1220/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS" –compileOptions "-mv7M3 –code_state=16 -me -O4 –opt_for_speed=0 –include_path=\"E:/work/workspace_v12/hid_emu_kbd_cc2640r2lp_app\" –include_path=\"E:/work/workspace_v12/hid_emu_kbd_cc2640r2lp_app/Application\" –include_path=\"E:/work/workspace_v12/hid_emu_kbd_cc2640r2lp_app/Startup\" –include_path=\"E:/work/workspace_v12/hid_emu_kbd_cc2640r2lp_app/PROFILES\" –include_path=\"E:/work/workspace_v12/hid_emu_kbd_cc2640r2lp_app/Include\" –include_path=\"D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/controller/cc26xx_r2/inc\" –include_path=\"D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/inc\" –include_path=\"D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/common/cc26xx\" –include_path=\"D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/icall/inc\" –include_path=\"D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/profiles/batt/cc26xx\" –include_path=\"D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/profiles/dev_info\" –include_path=\"D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/profiles/hid_dev/cc26xx\" –include_path=\"D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/profiles/hid_dev_kbd\" –include_path=\"D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/profiles/hid_dev_kbd/cc26xx\" –include_path=\"D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/profiles/roles\" –include_path=\"D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/profiles/roles/cc26xx\" –include_path=\"D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/profiles/scan_param\" –include_path=\"D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/profiles/scan_param/cc26xx\" –include_path=\"D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/target\" –include_path=\"D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/hal/src/inc\" –include_path=\"D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/hal/src/target/_common\" –include_path=\"D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/hal/src/target/_common/cc26xx\" –include_path=\"D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/heapmgr\" –include_path=\"D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/icall/src/inc\" –include_path=\"D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/osal/src/inc\" –include_path=\"D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/services/src/saddr\" –include_path=\"D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/blestack/services/src/sdata\" –include_path=\"D:/ti/simplelink_cc2640r2_sdk_5_30_00_03/source/ti/devices/cc26x0r2\" –include_path=\"D:/ti/ccs1220/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/include\" –define=BOARD_DISPLAY_USE_LCD=0 –define=BOARD_DISPLAY_USE_UART=0 –define=BOARD_DISPLAY_USE_UART_ANSI=0 –define=xCC2640R2_LAUNCHXL –define=CC2640R2DK_4XS –define=CC26XX –define=CC26XX_R2 –define=DeviceFamily_CC26X0R2 –define=Display_DISABLE_ALL –define=ICALL_EVENTS –define=ICALL_JT –define=ICALL_LITE –define=ICALL_MAX_NUM_ENTITIES=6 –define=ICALL_MAX_NUM_TASKS=4 –define=ICALL_STACK0_ADDR –define=POWER_SAVING –define=RF_SINGLEMODE –define=STACK_LIBRARY –define=USE_ICALL –define=xdc_runtime_Assert_DISABLE_ALL –define=xdc_runtime_Log_DISABLE_ALL -g –c99 –gcc –diag_warning=225 –diag_wrap=off –display_error_number –gen_func_subsections=on –abi=eabi "

,

Nick Sun:

您好,

您是如何更新到最新的SDK的?

最新的SDK没有hid_emu_kbd例程,你可能要基于旧版本的插件做一些移植。

插件可从此处下载:https://www.ti2k.com/wp-content/uploads/ti2k/DeyiSupport_Bluetooth_node

赞(0)
未经允许不得转载:TI中文支持网 » CC2640R2F: HID 无法发送按键信息
分享到: 更多 (0)