nicolas2k / google-glass-api

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

Trying to connect tethered phone disrupts network traffic #411

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Pair glass with MyGlass, then turn bluetooth on that device off
2. Run an app that sends data over a socket to a remote host at a high rate (> 
1Hz)
3. Every 10-30 seconds, glass tries to connect to the phone, but can't. This 
causes a multi-second long hiccup in network traffic on the socket

What is the expected output? What do you see instead?
Trying to connect to phone should not disrupt other network traffic.

Logcat shows the following:

E/BluetoothEventLoop.cpp(  193): onCreateDeviceResult: D-Bus error: 
org.bluez.Error.AlreadyExists (Already Exists)
V/bluez   (  771): external/bluetooth/bluez/src/device.c:btd_device_ref() 
0x10d2a58: ref=4
I/GazeService:Glasshub(  193): Read packet 41600: TimeNanos: 3830402111940  
Val=847 
I/GazeService:Glasshub(  193): Read packet 41700: TimeNanos: 3833532845368  
Val=846 
D/bluez   (  771): D0:DF:C7:C1:AD:FF: error updating services: Host is down 
(112)
V/bluez   (  771): external/bluetooth/bluez/src/device.c:btd_device_unref() 
0x10d2a58: ref=3
E/BluetoothEventLoop.cpp(  193): onDiscoverServicesResult: D-Bus error: 
org.bluez.Error.ConnectionAttemptFailed (Host is down)
V/bluez   (  771): external/bluetooth/bluez/plugins/hciops.c:conn_complete() 
status 0x04
D/BluetoothService(  193): Cleaning up failed UUID channel lookup: 
D0:DF:C7:C1:AD:FF 0000111f-0000-1000-8000-00805f9b34fb
I/PairingPolicy/pairingReceiver(  341): ACTION_UUID: Galaxy NexusCDMA 2 @ 
[D0:DF:C7:C1:AD:FF] BONDED
I/PairingPolicy/pairingReceiver(  341):  we aren't supposed to be scanning...
E/HandsFree(  341): Exception connecting to the HF AG service on Galaxy 
NexusCDMA 2 @ [D0:DF:C7:C1:AD:FF] BONDED

E/HandsFree(  341): java.io.IOException: Service discovery failed
E/HandsFree(  341):     at 
android.bluetooth.BluetoothSocket$SdpHelper.doSdp(BluetoothSocket.java:406)
E/HandsFree(  341):     at 
android.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:213)
E/HandsFree(  341):     at 
com.google.glass.bluetooth.BluetoothSocket.connect(BluetoothSocket.java:42)
E/HandsFree(  341):     at 
com.google.glass.bluetooth.handsfree.HandsFree$2.run(HandsFree.java:134)
E/HandsFree(  341):     at android.os.Handler.handleCallback(Handler.java:624)
E/HandsFree(  341):     at android.os.Handler.dispatchMessage(Handler.java:92)
E/HandsFree(  341):     at android.os.Looper.loop(Looper.java:137)
E/HandsFree(  341):     at android.os.HandlerThread.run(HandlerThread.java:60)

What version of the product are you using? On what operating system?
Glass XE12

Please provide any additional information below.
This may be related to #394, though my ARP table looks fine.

Original issue reported on code.google.com by d...@lazewatsky.com on 14 Feb 2014 at 9:13

GoogleCodeExporter commented 8 years ago

Original comment by ala...@google.com on 18 Feb 2014 at 5:53

GoogleCodeExporter commented 8 years ago
i had exactly the same problem. you can solve it temporarily like this:

you had to remove it from bluetooth card. try to pair you phone to glass when 
it asks for passkey swipe down to cancel then look at bluethooth card and make 
sure your phone removed from there.

Original comment by Mark.Bi...@gmail.com on 2 Mar 2014 at 9:42

GoogleCodeExporter commented 8 years ago
This will likely give a slightly different error now (possibly different 
behavior) now that XE 16+ has switched to the Bluedroid BT stack instead of 
Bluez.

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