大家好,我想蓝牙控制手机拍照功能,是添加 HIDDevKbM 文件吗?我控制安卓机是发送键值27就行了吗?我试了没反应
Yue TANG:
试试这个。 自己看STACK里的例子程序吧
http://www.ti.com/tool/cc2541dk-rc?keyMatch=cc2541%20advanced%20remote&tisearch=Search-EN-Everything
CC2541 Bluetooth Smart Remote Control Kit
(ACTIVE) CC2541DK-RCDescription & Features
Technical Documents
Support & Training
Order Now
Description
The CC2541 Bluetooth Smart Remote Control Kit provides a reference platform for Bluetooth low energy remote control application development. It is based on TI's industry leading CC2541 Bluetooth low energy device and contains the hardware and tools required for evaluating, developing, testing, and debugging remote control applications.
The kit includes an advanced programmable remote control capable of 6-axis motion sensing (3-axis accelerometer and 3-axis gyroscope), a USB dongle and a debugger.
The advanced remote and USB dongle come pre-programmed with their respective HID-over-GATT profile roles and HID report service, including keyboard, consumer control keys and mouse reports. The sample applications are included in the Bluetooth low energy software stack.
The advanced remote control can connect directly to a Bluetooth® Smart Ready device supporting HID-over-GATT, e.g. Windows 8. The USB dongle can be used as a bridge to interface to devices without Bluetooth® Smart Ready support, e.g. Windows 7.
Features
The kit contains:
1 x CC2541 Advanced Remote Control
1 x CC2540 USB Dongle
1 x CC Debugger
Documentation
user4883024:
回复 Yue TANG:
hi TY我借鉴了开发板上的例子拍照成功了,增加了 HidDev_ProcessEvent, 任务GAPRole_ProcessEvent,// task 8GAPBondMgr_ProcessEvent,// task 9GATTServApp_ProcessEvent,// task 10HidDev_ProcessEvent,// task 11SimpleBLEPeripheral_ProcessEvent// task 121.那么在函数static void hidDevGapStateCB( gaprole_States_t newState )里面是不是也和函数static void peripheralStateNotificationCB( gaprole_States_t newState )里面一样判断当前连接状态?2. // if disconnectedelse if ( hidDevGapState == GAPROLE_CONNECTED && newState != GAPROLE_CONNECTED )这是什么连接状态?