Author Topic: How do wearable devices communicate with Android phones  (Read 2146 times)

0 Members and 1 Guest are viewing this topic.

Offline trevwhiteTopic starter

  • Frequent Contributor
  • **
  • Posts: 945
  • Country: gb
How do wearable devices communicate with Android phones
« on: April 08, 2016, 09:01:11 pm »
Hi All

Someone today showed me their android watch and then showed me on their phone how the watch tells the phone its battery life left. In the drag down status bar of the phone there is a line saying WATCH and the percentage of battery life left. I have a device that I want to do the same thing with and it would be great if I do not have to write an app but can tap into something already existing in the Android OS

I am hoping that its some bluetooth connection and their is a standard api already in place to enable such a feature so that I do not have to write any custom application for Android phones.

Anyone got any pointers?

Thanks

Trev
 

Offline RGB255_0_0

  • Frequent Contributor
  • **
  • Posts: 772
  • Country: gb
Re: How do wearable devices communicate with Android phones
« Reply #1 on: April 08, 2016, 09:03:49 pm »
Start here.
Your toaster just set fire to an African child over TCP.
 

Offline trevwhiteTopic starter

  • Frequent Contributor
  • **
  • Posts: 945
  • Country: gb
Re: How do wearable devices communicate with Android phones
« Reply #2 on: April 08, 2016, 09:14:42 pm »
Thanks for the link. My wearable device is just a simple unit with bluetooth.  Do you know if there is a specific example of how to connect between such a simple device and an Android phone or does the wearable API rely on both devices running Android?
 

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4193
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: How do wearable devices communicate with Android phones
« Reply #3 on: April 08, 2016, 09:25:02 pm »
You cannot google your wearable together. But if you insist, github is usually a good place to start looking.
https://github.com/googlesamples
 

Offline trevwhiteTopic starter

  • Frequent Contributor
  • **
  • Posts: 945
  • Country: gb
Re: How do wearable devices communicate with Android phones
« Reply #4 on: April 08, 2016, 09:36:24 pm »
You cannot google your wearable together. But if you insist, github is usually a good place to start looking.
https://github.com/googlesamples
I think I have not explained things very well. My device is not Android based but a simple embedded processor wuth builtin Bluetooth. I was wondering if there is a way to generate a notification like a watch does but not from an android wearable device and without a custom app needing written
 

Offline Nerull

  • Frequent Contributor
  • **
  • Posts: 694
Re: How do wearable devices communicate with Android phones
« Reply #5 on: April 09, 2016, 02:16:53 am »
Most wearables that don't run android have their own app. I'm guessing there isn't a built in generic wearable API.

You might try looking at this app, which can push notifications to any bluetooth device that implements the AVRCP profile: https://play.google.com/store/apps/details?id=com.github.grimpy.botifier&hl=en
 

Offline trevwhiteTopic starter

  • Frequent Contributor
  • **
  • Posts: 945
  • Country: gb
Re: How do wearable devices communicate with Android phones
« Reply #6 on: April 09, 2016, 10:40:54 am »
There must be an underlying protocol of how they communicate between each other. If I can did out that then maybe I can pretend to be an android wearable device and so piggy back on the builtin support
 

Offline viperidae

  • Frequent Contributor
  • **
  • Posts: 306
  • Country: nz
Re: How do wearable devices communicate with Android phones
« Reply #7 on: April 09, 2016, 10:58:36 am »
If it uses Bluetooth low energy, start by googling BLE GATT
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf