Can I use the proximity sensor of the Apple Watch? - watchkit

I have a question: Can I use the proximity Sensor from the Apple Watch in XCode (Objective-C).
Thank you!

I don't think so. Here is the most complete and regularly updated list of available or awaiting (like gyroscope) APIs on Watch. And there is nothing about the proximity sensor.

Related

BLE Device with Haptic Feedback

Is there an off-the-shelf beacon I can just buy that also has support for triggering Vibration / Haptic Motor over BLE? Amazon / whatever links are welcome.
Context: I'd like to trigger vibration from iOS in a small independent device. BLE seems ideal as I need to support more than one and all devices should be within range. I'm trying to rapidly prototype something instead of cranking out my own HW.
For prototyping you may be able to use a few sub-$20 Xiaomi Mi Band devices (or Band 2 which should be under $30 and has a screen). And then use API like this to trigger vibration: https://github.com/betomaluje/Mi-Band
They both can be removed from the wristband and look like a 2 cm long pill, and last weeks on a charge with normal use, maybe months when not counting steps.

Calculating the pulse rate using sensors

I have really work on a final year project in 4th year computer science. I need to calculate the blood pressure level of a human in a real time and alert to him.
Do we have any sensors for Ardino or Resbrry PI boards.
I have search on enter link description here but I have seen lots of sensors for heart rate but non of them for blood pressure.
Do you think is there any sensors available to get the blood pressures from ardino or rasberry PI ?
You've got a BIG project ahead of you. Automated blood pressure monitors are expensive medical devices, but I'll get you started.
Take a look at this link and think about the physical functions you must accomplish.
http://homepage.smc.edu/wissmann_paul/anatomy1/1bloodpressure.html
First, you have to build a pneumatic control system to inflate a blood pressure cuff and then slowly deflate it.
Second, you have to build an acoustic monitor to listen for the heartbeat below the cuff and a digital signal processing algorithm to detect the heartbeat.
For the first project look online for small pneumatic pumps and solenoid control valves. You will control these with the Arduino and a power transistor to switch the power on and off.
For the second project you will need to build a microphone and amplify that. You can find plenty of examples of microphones on the Arduino forum. The trick part will be designing the DSP filter to identify heartbeats and then count them. See Simon Monk's book, "Beyond Sketches" for an intro to DSP on the Arduino.
Get started and post some more and I'll check back to see if I can help on specific problems as you go forward.

watchOS 2 Heart Rate Sensor

Does anyone know how to access the heart rate sensor available in watchOS 2 in Xcode 7 beta?
watchOS 2 allows you to use HealthKit. Within this kit, you may use HKWorkout to access variables such as the heart rate.
Apple isn't technically giving developers access to the heart rate sensors in watchOS 2.0. What they are doing is providing direct access to heart rate data recorded by the sensor in HealthKit. See the stack overflow answer to this question for more detail.
Many of software kits for iOS are now available for watchOS, such as
HealthKit.
You can use HealthKit (HK) functions and classes in order to calculate burned calories, find heart rate, etc.
You can use HKWorkout to calculate everything about workouts and access the related variables such as heart rate, just like you did with iOS before.
Read developer documentations from Apple in order to learn about HealthKit. They can be found in developer.apple.com.
Resources
For more details about HKWorkout, you should check out the HKWorkout Class Reference and the HKWorkoutSession Class Reference from Apple.
Also don't forget to check out this great WWDC15 video.

Estimote Proximity Profile UUID for Android Development

I'm trying to make an Android program that will always scan for a specific Bluetooth device, and alert the user when the phone is within proximity.
I modified the demo code provided here: https://github.com/devunwired/accessory-samples/tree/master/BluetoothGatt
The second demo here, (titled "BeaconActivity,") constantly scans for Bluetooth devices with the thermometer service. For testing purposes, I am trying to make it scan for the proximity of an Estimote. I do not want to use the provided Estimote SDK since I plan on using a more generic Bluetooth device in the future.
In the above "BecaonActivity" a UUID for the thermometer service is defined. I tried switching this number out for the UUID for Estimotes defined on this page: https://community.estimote.com/hc/en-us/articles/200761958-Advertising-Packet-Estimote-s-Proximity-UUID
From the above linked source code, there is also a "TemperatureBeacon" class that has a "short-form UUID" of "0x1809." I realized that this was just the 5th-8th character in the full thermometer service UUID, so I changed it to "0x7F30".
After mostly just changing the UUIDs and leaving most of the code the same, I tested it on my phone, but it could not detect the Estimote. Any ideas about what I'm doing wrong?
This is Wojtek Borowicz, a community evangelist at Estimote. We're not ready yet to make specs for thermometer available for Android. Stay tuned!
Cheers.
I am not familiar with the demo code you provided but did you actually try to use the estimote proximty uuid (https://github.com/Estimote/Android-SDK) ?
private static final String ESTIMOTE_PROXIMITY_UUID = "B9407F30-F5F8-466E-AFF9-25556B57FE6D";
This might be helpful as well:
Check if Bluetooth Low Energy Beacons are nearby in Android
As David points out, for android devices you do not really have to consider UUIDs or services
if you are only interrested in proximity.

Simulate entering iBeacon region by fluctuating power?

I'm new to iBeacon, and would like to simulate entering and exiting an iBeacon region, to see how notifications work on entering/exiting a region when an app monitoring for iBeacons is in the background.
The iBeacon I'd like to try this with would be a virtual iBeacon, running on a mac or an ios device.
Can this be done by fluctuating the power or is there a better way to do it? And are there any good examples of doing this anywhere?
The easiest way to do this is by simply turning the iBeacon on and off. I do this every day using our MacBeacon and Locate for iBeacon test tools which have on-screen on/off switches.
In theory, you could do what you suggest by turning the radio power way down, too. But iOS, OSX and Linux do not let you adjust the radio power. Turning off the transmission completely is an easier and simpler alternative.

Resources