Pairing Android Wearable with Google Glass - android

I'd like to ask if someone knows if it's possible to pair a android wearable device (like a smartwatch) directly with google glass to get sensor informations like heart rate. Or is this just possible with a smartwatch being coupled with both devices? I didn't found any informative resources on this question...
Thanks for all answers!

Absolutely. Especially if your smartwatch will be Android, this can be done fairly easily.
Glass can connect to anything over Bluetooth!
This answer contains a full set of code that outlines exactly what you want.

Related

Is there a common communication protocol between smartwatches and Android phones?

I am very unhappy with my Fossil Q hybrid watch (no screen, tracks activity & sleep and button functions) but honestly it looks good. The app keeps crashing though. I would like to make my own Android app to extract all kinds of data (for future analysis). Before investing a lot of time, I tried to do some research on how to access the watch. It operates obviously on BLE. But all the documentation is either about Wear OS or actual smartwatches with more advanced functionality. Search engines fail to distinguish between what I am looking for and most popular results.
I was wondering, if there are any known communication protocols between apps and smartwatches, where I can start experimenting?
BTW, HCI snoop log reports all traffic but it doesn't look like anything to me. But I can also try to hack it (if it is not encrypted...).
I remember that I have found once a info on dev site regarding the heart rate tracking but I cant find it.
Anyway I have found one thing that might help you:
https://developers.google.com/fit/android/ble-sensors
Unfortunately this is "fit" reference site, which data might be obsolete,
afaik the regular updates might come to API reference:
https://developers.google.com/android/reference/com/google/android/gms/fitness/SensorsApi
You can start by reading code and documentation of the GadgetBridge project: https://codeberg.org/Freeyourgadget/Gadgetbridge/
They support some of the "Q Hybrid" watches to some extent

Discover mobile devices in proximity to exchange information

I've been looking for a solution that will allow me to see when two devices are in close proximity to initiate exchange of information. As simple as it sounds, I'm still not able to find a solution that I can implement to the app I am working on, since everything related to time and location is covered by patents and my client is really big on not messing with that.
Initially I was working with Bump's API, which worked ok but after they got acquired by Google their API is going away so there's no point on using it anymore.
I've seen other companies like Airlike, ProxToMe, Shoutr, Hoccer ans Xsync that have viable solutions but unfortunately they don't have APIs that I could use.
Do you know of a cross-platform API or another solution that could help me see the devices?
Thank you very much everyone. I am running out of time and my resources are limited but I'm hoping someone hear can point me in the right direction.
Brainiac. I'm working at shoutr labs and we do have a proximity finder for Android. But no API, yet. We are currently working on a bluetooth solution to discover nearby devices in close proximity without Internet. Let me know if this could help you... –

Bluetooth Low Energy connection with special device

I'm writing an android app which is to connect a special BLE device, reading data feedback from the device. First I need to write a shake-hand code "234" to the device, and it will return a code, then start to feeding data.
I've done with the iOS version, which is quite simple to implement, however the android version has so many problems. Hope you guys have any sample which can be used for me to understand how it works in whole process. Many thx.
This is documentation from Android: http://developer.android.com/guide/topics/connectivity/bluetooth-le.html
There is an example. Please use it as guide. Pretty simple example.
About your question. What Profile to you use? You should know that BLE exchange data through the Service/Characteristic/Descriptor system. So on your device should be any Profile. Or your use any of standard?

Is it possible to use Android to control relays?

This isn't a highly technical (or specific) question. I just want to know if it is possible to use an android app to control 12V relays.
I want to use this running android:
http://www.mini-box.com/pico-SAM9G45-X
with this touchscreen attached:
http://www.mini-box.com/INNOLUX-7-TFT-with-touchscreen
I want to mount this in my car and write a simple android application that can be used to control my lighting in the car (via several 12V relays). I have a lot of background programming in many different languages, so I am not worried about the application part. However, I have very little experience using software to control hardware.
Any ideas for this would be great. Thanks!
First you'll need to get Android running on your Pico board. There are several releases of Android ported to Pico for you to play with here: http://arm.mini-box.com/index.php?title=Releases
Once you accomplish this, I recommend wiring up an ADK board to the pico and using that to interface with your relays. http://developer.android.com/guide/topics/usb/adk.html The most popular and widely documented ADK board designs are based on Arduino or PIC chips so if you have experience with either I don't think it will be too much trouble. Writing the application would entail writing a program on the ADK which listens for input from an Android app which you also create and reacts accordingly. There's a handful of good information you can find with google searches to help you out and also some dedicated discussion groups.
Alternatively, it may be possible to use the remaining unused pins on the Pico to talk to your relays. I don't know for certain though if the Android ports support this or not.
It should be a fun project to keep you busy for a couple weeks. Good luck, and be sure to write up some information on it if you get it working!
you can find so many relay boards which come with wifi and they have their own app. which you can install in your Android phone or PC or iphone(you can find a ios app for same board). and you can also modify apps according to your choice and there are products which come with input pins also so you can control lights or anything else using those input. you can check this product check this Android control realy and there are so many products available.

Making android bluetooth app send a warning when out of range

I have a quick question about trying to develop a new app on Android. So as the title says, I'm to use Bluetooth to link up two Bluetooth capable devices and when they are at a specific maximum range (5-20 ft), have the phone play some sort of alarm.
I do not however, own an Android Phone, but I am instead developing it on the Emulator on my computer. Earlier, I discovered that the emu is not Bluetooth capable nor does it have any form of sounds.
Is there any way of continuing on besides getting a real phone? Any helpful workarounds are welcome
regarding the emulator capabilities : you'd better buy a device soon ... duplicate?
And regarding the alarm triggering i'm a bit curious : on what are you relying ? SNR ? is there an easy way to access this kind of data on Android ? (only had a glance at the reference pages)

Categories

Resources