Detecting bluetooth headset button press - bluetooth

I'd like to build a system whereby I keep a netbook in my backpack, a bluetooth headset in my ear, and any time I hit the "talk button" on the headset, it records a voice memo to the netbook.
This is a question for any platform...
How can I make an executable run whenever the TALK button on the BT headset is pressed?

You would be looking at Bluetooth SMART, or BLE.
A few points to note:
No pairing is required. The headset broadcast and your netbook listens.
Your headset has to support Bluetooth 4.0
Mac OSX and iOS supports BLE under the Core Bluetooth Framework. For other platforms you would have to do some searching.

Related

Advice needed: low-level signal at 10m distance

audio noob here. Please be gentle.
I'm required to design a box with a jack for a headset and connector for an unknown cable going to a Windows desktop PC.
Headset has the standard 3.5mm plug for microphone, r speaker, l speaker, and ground.
Intention is there's a user at desktop PC who will communicate with user of the headset.
Questions:
1) the box is only pass-through. what's the best cable I can use to pass these low-level signals between headset and Windows desktop PC? distance is 10-15 meters.
2) at desktop PC side, what's the best hardware I can use so Windows desktop PC can receive/process these signals? I'm thinking USB link to PC but not sure what's available out there.
TIA!

Bluetooth Android and Bluetooth iOS

When I press a button on a device that is connected to iOS or Android via Bluetooth, it should perform some task in an app(app installed on iOS or Android). I am not sure which Bluetooth profile will be best for my job. I think HID profile, but will it work with iOS ? Any suggestions or comments are welcome.
iOS devices can't use standard Bluetooth connection with Android. In this case you should use BLE (Bluetooth Low Energy). This means you should use GATT profile for Android. There is an important issue here: all iOS devices can BLE peripheral or central but for Android some devices only can peripheral.

Detect mobile phone presence with Bluetooth usb dongle.

I am using BeagleBone Black and Bluetooth USB dongle V4.0. My dongle is detecting iBeacons with no problems but is there any way to detect mobile phones with bluetooth on. I am using NodeJs and Noble package.
So when I use hcitool lescan it's not finding mobile phone either but with hcitool there is option scan. When I call hcitool scan in terminal I get my mobile as result. Is there any NodeJs package that wraps this option. I have no need to connect to mobile device, I just need to discover it's presence, and see it's MAC address.
If you can see your device with "hcitool scan" and not with "hcitool lescan" it means your phone(or BT stack you use in phone) don't support BLE protocol. Not all BT devices are BLE capable.

smartwatch that advertises bluetooth LE

I'm planning to replace the Beacon tag of my Bluetooth (BLE)-based localization System with a smartwatch. Therefore, the smartwatch has to be able to advertise bluetooth signals. However I can't find any information about smartwatches using BLE advertising methods. I actually don't want to use an additional smartphone which would be able to advertise. I already found that the iWatch and the Moto 360 are probably not able to advertise.
Does anyone know if there's (or will be) a smartwatch available that is able to advertise BLE signals?
Thanks a lot!
el Baum
Ok, this is not possible for Sony Smartwatch atleast. This is because in order to be able to broadcast a BLE advertisement of your choosing, any given Android device has to be able to support BluetoothAdapter.isMultipleAdvertisementSupported(). Unfortunately, this feature is not available on most Android Wear devices.
If your Android device does support multiple advertisement, then you can create an advertisement packet and use the BluetoothLeAdvertiser object to start advertising.

Can a bluetooth usb dongle be detected when only powered on?

I bought one of those tiny bluetooth USB dongles that you can plug on a PC and make bluetooth communications. I am wondering if I just plug this dongle to a USB power source, like the USB charger that comes with iPad, can the bluetooth dongle power up, and be discovered as a bluetooth device? This sounds reasonable, since the bluetooth dongle should be able to broadcast itself, at least using some low-level protocol, i.e. showing its Mac address.
However, I tried to do the following:
1.Plug the bluetooth dongle on my iPad's usb charger
2.Search bluetooth devices on my laptop
and I could not find it. Is it because the bluetooth dongle needs the PC to initialize it, so that it can be discovered? Or I am not doing it right?
Thanks
It depend on the dongle
Typical PC dongles depends on the host (pc) to initialize and start any bluetooth activity - including scanning etc
It is practically possible to make dongles that can start becoming discoverable without waiting for host initialization. This has to be a custom build

Resources