Access Microsoft Band 2 sensors through computer - microsoft-band

I'm trying to write a program that collects the pedometer and
heart rate data stream from the Microsoft Band 2. I've written an
android app that does this but is it possible to do this without a
smartphone and directly stream the data to a computer?

Yes, the Band SDK can be used with Windows Store 8.1 and Windows 10 Universal applications; you just Bluetooth-pair the Band to the PC and applications can stream sensor data from the Band just like their phone equivalents.
The Band SDK does not support OS X and I don't know whether it can be used in any arbitrary device running an Android-derived OS.

Related

Qt Bluetooth Low Energy n- Windows 10

i am able to run the lowenergyscanner example on Qt5.15.8 and can read the BLE characteristic and services.
The BLE device wants to Pair it with windows and a setting message pops out in windows to put the 6 digits pairing code that the peripheral device gives.
Is it possible to pass the pairing code directly to windows via Qt?
So i went and use the other Qt example the btscanner and i could also scan the same device and i had an option to "Pair" it but nothing happens.
I also set the pairing request argument from QBluetoothLocalDevice::Paired to QBluetoothLocalDevice::AuthorizedPaired but it didnt work out.
So does Qt provide a mechanismus to pass the 6 digit code to windows without promp the user bluetooth windows pair message?

Is it possible to record external HDMI device in Android TV app?

For example, if there is a gaming console (i.e PlayStation) connected to HDMI input in a TV with Android TV. Then, is it possible to record the video going through this HDMI input with a 3rd party app?
In my question I'm referring to Android's TV input framework
Thanks for the helpers.
The TV Input Framework docs mentions that it supports TV recording APIs.
DVR
For devices on Android 7.0 and above, the TV App must support the
Android framework TV recording
APIs,
to support, list, and play recorded programs.
This allows device manufacturers to plug their DVR subsystems into TIF
and dramatically reduce the integration effort it takes to enable or
integrate DVR functionality on a TV device. It also enables third
parties to provide aftermarket DVR systems that can be plugged into an
Android TV device.
In addition to recording live content, the TV App also handles
resource conflict. For example, if the device has two tuners, it can
record two programs at the same time. If the user asks to record
three, the TV App must handle the conflict and should either surface a
notification or request that the user schedules a priority for these
requests.
However I don't have code samples for you as I haven't experimented with this yet.
Another approach would be to use the MediaProjection API and record this with a MediaRecorder. Jake Wharton's app Telecine follows this approach and you can find the source code on GitHub.
The benefit is that these APIs were introduced with Lollipop, so you can use them on all Android TV devices. However I just started experimenting with Android TV, so I can not tell from personal experiences.

Microsoft Band 2 GPS Info

Does anyone know if there is a way to access GPS data from the Microsoft Band 2 using the SDK? I've been playing around in Android Studio but don't see it listed in the Sensors part of the packages that Microsoft provided to developers. Any ideas?
The Band SDK does not expose its GPS sensor. The application using the Band SDK is typically running on a mobile device that has its own GPS sensor (accessible to the application) as well as a far larger battery than the Band. Therefore, there is generally little reason for an application to use the GPS sensor of the Band.
It seems like there is actually no way to access the GPS using the SDK.
You have only the following sensors available:
Accelerometer
Gyroscope
Distance
Heart Rate
Pedometer
Skin
Temperature
Band Contact
Calories Provides
Galvanic Skin
Response (Microsoft Band 2 only)
RR Interval (Microsoft Band 2 only)
Ambient Light (Microsoft Band 2 only)
Barometer (Microsoft Band 2 only)
Altimeter (Microsoft Band 2 only)
Source: http://developer.microsoftband.com/Content/docs/Microsoft%20Band%20SDK.pdf
"Waypoints" from activities could be retrieved from the Microsoft Health API.

Developing an Android app which can broadcast advertisements using Bluetooth Low Energy APIs

I am developing an Android app which can broadcast advertisements using Bluetooth Low Energy APIs(Implemented in Android 5.0 with Nexus 6 & Nexus 9). I am putting my Nexus 9 in peripheral mode & it is broadcasting advertisements.
My question here is:
"Can every other android device with OS having Android 4.3 or greater receive advertisements without installing any third-party apps?"
I'm planning to develop Android app for peripheral mode only, but not for central mode for client devices.
Android 4.3 to 4.4 - Central mode(Device can receive advertisements)
Android 5.0 - Device can work in both central & peripheral mode.(can broadcast as well as receive advertisements).
Is it possible in any version of Android?
The answer is NO. There is no system tools / stock app that receive BLE advertisement (and display it out). You have to make it your own / use the existing third party app to achieve that.

access directshow in quicktime and or processing

Please excuse my ignorance, im very new to windows.
Windows 7 64bit
Point Grey Grasshopper 2 GigE Camera
I have a gigE Camera that I want to use in processing. In processing I can use any camera that shows up as a quicktime device. But the gigE camera does not show up in the camera list.
The camera is registered as a directShow device.
Is there a way to either get the camera to be available as a quicktime device, or use the directShow device in processing?
The [effectively] primary video capture API in Windows is DirectShow. If you have it available as DirectShow device then you certainly can get video and process it. As you did not ask specific questions about processing, perhaps this should be a good starting point for you:
Windows SDK Samples in $(WindowsSdk)\Samples\multimedia\directshow
DirectShow Samples on MSDN

Resources