BLE_HID_EXAMPLE

所属分类:android开发
开发工具:Java
文件大小:683KB
下载次数:2
上传日期:2020-03-11 02:35:00
上 传 者whitebird
说明:  Android example for bluetooth HID.

文件列表:
BLE_HID_EXAMPLE\Android-BLE_HID_EXAMPLE.iml (887, 2020-02-19)
BLE_HID_EXAMPLE\app\BLE_HID_EXAMPLE-app.iml (13007, 2020-02-20)
BLE_HID_EXAMPLE\app\build.gradle (979, 2020-02-20)
BLE_HID_EXAMPLE\app\proguard-rules.pro (670, 2020-02-18)
BLE_HID_EXAMPLE\app\src\main\AndroidManifest.xml (1345, 2020-02-20)
BLE_HID_EXAMPLE\app\src\main\java\com\example\alek\ble_hid_example\ApplicationConfiguration.java (3422, 2020-02-18)
BLE_HID_EXAMPLE\app\src\main\java\com\example\alek\ble_hid_example\ApplicationControlUsage.java (10189, 2020-02-18)
BLE_HID_EXAMPLE\app\src\main\java\com\example\alek\ble_hid_example\ApplicationLaunchButtonsUsage.java (6730, 2020-02-18)
BLE_HID_EXAMPLE\app\src\main\java\com\example\alek\ble_hid_example\ConfigurationFragment.java (4632, 2020-02-20)
BLE_HID_EXAMPLE\app\src\main\java\com\example\alek\ble_hid_example\ConsumerControlUsage.java (3665, 2020-02-18)
BLE_HID_EXAMPLE\app\src\main\java\com\example\alek\ble_hid_example\ConsumerFragment.java (8967, 2020-02-18)
BLE_HID_EXAMPLE\app\src\main\java\com\example\alek\ble_hid_example\CustomViewPager.java (1464, 2020-02-18)
BLE_HID_EXAMPLE\app\src\main\java\com\example\alek\ble_hid_example\DPadFragment.java (5662, 2020-02-20)
BLE_HID_EXAMPLE\app\src\main\java\com\example\alek\ble_hid_example\HidBleService.java (43989, 2020-02-20)
BLE_HID_EXAMPLE\app\src\main\java\com\example\alek\ble_hid_example\KeyboardFragment.java (5964, 2020-02-18)
BLE_HID_EXAMPLE\app\src\main\java\com\example\alek\ble_hid_example\KeyboardUsage.java (15053, 2020-02-18)
BLE_HID_EXAMPLE\app\src\main\java\com\example\alek\ble_hid_example\MainActivity.java (12873, 2020-02-20)
BLE_HID_EXAMPLE\app\src\main\java\com\example\alek\ble_hid_example\MouseFragment.java (7002, 2020-02-18)
BLE_HID_EXAMPLE\app\src\main\java\com\example\alek\ble_hid_example\UUIDs.java (1789, 2020-02-18)
BLE_HID_EXAMPLE\app\src\main\res\drawable\arrow_btn.png (13349, 2020-02-20)
BLE_HID_EXAMPLE\app\src\main\res\drawable\arrow_down.png (3090, 2020-02-20)
BLE_HID_EXAMPLE\app\src\main\res\drawable\arrow_left.png (2428, 2020-02-20)
BLE_HID_EXAMPLE\app\src\main\res\drawable\arrow_right.png (2574, 2020-02-20)
BLE_HID_EXAMPLE\app\src\main\res\drawable\arrow_up.png (2656, 2020-02-20)
BLE_HID_EXAMPLE\app\src\main\res\drawable\border.xml (234, 2020-02-18)
BLE_HID_EXAMPLE\app\src\main\res\drawable\circle_1.png (5745, 2019-10-19)
BLE_HID_EXAMPLE\app\src\main\res\drawable\gamepad.png (13305, 2020-02-20)
BLE_HID_EXAMPLE\app\src\main\res\drawable\ic_arrow_back_black_24dp.xml (361, 2020-02-18)
BLE_HID_EXAMPLE\app\src\main\res\drawable\ic_arrow_downward_black_24dp.xml (362, 2020-02-18)
BLE_HID_EXAMPLE\app\src\main\res\drawable\ic_arrow_forward_black_24dp.xml (357, 2020-02-18)
BLE_HID_EXAMPLE\app\src\main\res\drawable\ic_arrow_upward_black_24dp.xml (360, 2020-02-18)
BLE_HID_EXAMPLE\app\src\main\res\drawable\ic_brightness_3_black_24dp.xml (442, 2020-02-18)
BLE_HID_EXAMPLE\app\src\main\res\drawable\ic_brightness_high_black_24dp.xml (549, 2020-02-18)
BLE_HID_EXAMPLE\app\src\main\res\drawable\ic_brightness_low_black_24dp.xml (474, 2020-02-18)
BLE_HID_EXAMPLE\app\src\main\res\drawable\ic_eject_black_24dp.xml (335, 2020-02-18)
BLE_HID_EXAMPLE\app\src\main\res\drawable\ic_hotel_black_24dp.xml (425, 2020-02-18)
BLE_HID_EXAMPLE\app\src\main\res\drawable\ic_looks_3_black_24dp.xml (550, 2020-02-18)
BLE_HID_EXAMPLE\app\src\main\res\drawable\ic_looks_4_black_24dp.xml (432, 2020-02-18)
... ...

# BLE_HID_EXAMPLE Example of HID over GATT (Bluetooth Low Energy) Android Application. Application emulates the peripheral, server BLE device like mouse or keyboard, which could be connected by some central device like PC or smartphone. It is working in 2 modes: basic - which could be handled by various operating systems and advanced - which communicates with Linux based and Android operating systems only. Application is made of 2 (basic mode) or 5 (advance mode) full screen fragments. When more than one device is connected to the application then the same notifications are sent to the all devices. ## Configuration fragment ![](screenshots/configuration.png) - Force pairing switch - if enabled the device tries to start pairing with remote device, usable when the central doesn't start the pairing. - Basic mode switch - if enabled only consumer control feature is supported by application, otherwise consumer control, mouse, keyboard and the D-Pad - Reboot application button - it is recommended to reboot the application after switching the mode - List of currently connected devices - device name and its address is shown ## Consumer control fragment ![](screenshots/consumer.png) - Music/player control buttons - previous track, stop playing, play/pause, next track - Volume control buttons - decrease volume, mute, increase volume - Brightness control buttons - decrease brightness, increase brightness - Miscellaneous buttons - eject (e.g. CD/DVD), take a snapshot - System control buttons (advance mode only) - perform: hibernation, sleep. shut down, restart - Application launch spinner (advance mode only) - start selected application e.g. calculator or WEB browser - Application control spinner (advance mode only) - perform selected action on currently focused application e.g. show help ## Mouse fragment (advance mode only) ![](screenshots/mouse.png) - Buttons (1, 2, 3, 4, 5) - emulates mouse's buttons click - Touchpad area - move cursor, double click emulates a click by first (left) mouse button - Device's volume up and volume down button - emulates the scroll wheel ## Keyboard fragment (advance mode only) ![](screenshots/keyboard.png) - Send phrase text view & 'send text button' - written text will be sent after clicking the button - Send single character spinner - selected character will be sent - Keyboard On/Off button - enables/disables the software keyboard, on each click selected character will be sent immediately ## D-Pad fragment (advance mode only) ![](screenshots/d_pad.png) - Arrow button - send up/down/left/right arrow character

近期下载者

相关文件


收藏者