waleedAhmad1 / google-glass-api

Automatically exported from code.google.com/p/google-glass-api
0 stars 0 forks source link

Document and share GlassInputDevice protocol and functions #316

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When using the Screencast feature in the MyGlass app on a paired Android 
device, one can swipe on the paired device's display to transmit navigation 
gestures to Glass.

LogCat shows that com.google.glass.bluetooth generates messages tagged 
GlassInputDevice.

Having done some packet capture, I've identified the RFCOMM packets that carry 
the data for GlassInputDevice transmission. Rather than taking on the task of 
reverse engineering this, it would be great to use the existing code 
incorporated in MyGlass.

It would be tremendously useful to have a GlassInputDevice library made 
available for use in 3rd-party Glass companion applications running on a paired 
Android device. In my case, this is to relay input events captured on 3rd party 
HID hardware paired to the phone.

Original issue reported on code.google.com by noaz...@gmail.com on 19 Dec 2013 at 11:32

GoogleCodeExporter commented 9 years ago

Original comment by ala...@google.com on 6 Jan 2014 at 5:19

GoogleCodeExporter commented 9 years ago
I am interested in debugging and monitoring Bluetooth connections via glass, 
but no tools are available in /bin and we do not have root terminal access to 
the device via adb. 
I would be very interested to look beyond just the HID packets, but be able to 
evaluate BT connections between the paired device and glass (hence the request 
to maybe widen the ability to look into the BT packet stream either on glass ot 
the paired device).
Thanks!

Original comment by pseel...@gmail.com on 24 Jan 2014 at 10:02

GoogleCodeExporter commented 9 years ago
I've also been trying to use android.bluetooth.BluetoothInputDevice but I've 
found that while it is public, I am not able to access it in Android Studio.

I'm trying to get Bluetooth keyboard support working again in XE 17 (Bluetooth 
HID profile) and there is very little (or no) guidance for either Android or 
Glass for how to work with Bluetooth HID devices. The documentation only seems 
to focus on apps that talk to each other via Bluetooth and ignores interfacing 
with actual BT accessories.

Some guidance on how I can use Bluetooth devices to interact with Glass is 
highly desirable.

Original comment by Splak...@gmail.com on 10 May 2014 at 4:41