微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 无线和射频 > TI蓝牙设计交流 > 用蓝牙控制手机拍照

用蓝牙控制手机拍照

时间:10-02 整理:3721RD 点击:

大家好,我想蓝牙控制手机拍照功能,是添加  HIDDevKbM 文件吗?我控制安卓机是发送键值27就行了吗?我试了没反应

试试这个。 自己看STACK里的例子程序吧

http://www.ti.com/tool/cc2541dk-rc?keyMatch=cc2541%20advanced%20remote&tisearch=Search-EN-Everything

CC2541 Bluetooth Smart Remote Control Kit

(ACTIVE) CC2541DK-RC

Description & 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

hi TY 我借鉴了开发板上的例子拍照成功了,增加了 HidDev_ProcessEvent, 任务 GAPRole_ProcessEvent, // task 8 GAPBondMgr_ProcessEvent, // task 9 GATTServApp_ProcessEvent, // task 10 HidDev_ProcessEvent, // task 11 SimpleBLEPeripheral_ProcessEvent // task 12 1.那么在函数static void hidDevGapStateCB( gaprole_States_t newState )里面是不是也和函数static void peripheralStateNotificationCB( gaprole_States_t newState )里面一样判断当前连接状态? 2. // if disconnected else if ( hidDevGapState == GAPROLE_CONNECTED && newState != GAPROLE_CONNECTED )这是什么连接状态?

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top