简体   繁体   中英

Detecting events from a bluetooth remote shutter to control audio recording in Python

I need to use a bluetooth remote shutter as the ones that come with many selfie sticks in order to make a push-to-talk button for starting and stopping audio recordings in Python. I have tried using pyBluez module (vs 0.21), but the most I have got is to detect the device and its address, but I cannot see which are its services, or how to create a client-server connection with it. Checking the bluetooth connector status, I can see that it detects the device as "i Shutter" and its type as keyboard. The device is already paired. In case, it is relevant I'm using Ubuntu 14.04 and Python 2.7.

Most of the selfie sticks use HID profile (confirmed as "type keyboard"), and send a Volume Up button press (keyboard report or consumer report). You will need to listen for this key, and not RFCOMM data.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM