2014-02-26 73 views
0

我試圖在玻璃和我的電腦之間使用藍牙發送消息。 Ubuntu的12.04 64位玻璃和計算機之間的藍牙配對失敗

名稱::ubuntu的-0

MAC藍牙:60:D8:19:AC:61:計算機

OS上的背景信息15

運行後我的代碼(請參閱此線程獲取實際代碼Android Bluetooth Client and Server Won't Connect)我得到一個屏幕,其中顯示左側通用手機的圖片,右側顯示ubuntu-o Pair?輕按如果顯示「768914」

我的電腦不顯示這些數字,但我知道這是正確的設備,所以我點擊,屏幕上就顯示出配對屏幕。一段時間後,它說配對失敗。下面是日誌:

02-26 11:27:51.746:d/CONNECTTEST(1895):嘗試打開插座02-26 11:27:52.488:I/PowerManagerService(198):汽車亮度:光 傳感器= 164,亮度= 255 mHighestLightSensorValue:8485 02-26 11:27:54.816:I/PowerManagerService(198):自動亮度:光線 傳感器= 224,亮度= 255 mHighestLightSensorValue:8485 02-26 11:27:55.683:D/PowerManagerService(198):setTimeoutLocked now = 2497220 when = 2503220 currentTimeoutOverride = -1 nextTimeoutOverride = -1 currentState = 3 nextState = 1 02-26 11:27:56.543:D/OpenGLRenderer 373): Flushing cach ES(模式0)11月2日至26日:27:56.683:V /的bluez(817): 外部/藍牙/的bluez /插件/ hciops.c:conn_complete()狀態0×00 11月2日至26日:27:56.683:V/bluez(817): external/bluetooth/bluez/src/adapter.c:adapter_get_device() 60:D8:19:AC:61:15 02-26 11:27:56.683:V/bluez(817)外部藍牙/ bluez/src/adapter.c:adapter_create_device() 60:D8:19:AC:61:15 02-26 11:27:56.683:V/bluez(817): external/bluetooth/bluez /src/device.c:device_create()創建設備 /org/bluez/817/hci0/dev_60_D8_19_AC_61_15 02-26 11:27:56.683: V/bluez(817):external/bluetooth/bluez/src/device。 c:btd_device_ref() 0x1dc1cd8:ref = 1 02-26 11:27:56.683:V/bluez(817): external/bluetooth /的bluez/SRC/device.c:device_set_temporary()臨時 1月2日至26日11:27:56.691:d/BluetoothEventLoop(198):改變的特性: 器件:三月2日至26日11:27:56.707:d/BluetoothEventLoop( 198):設備 屬性改變:60:D8:19:AC:61:15屬性:連接值:真 11月2日至26日:27:56.715:V /的bluez(817): 外部/藍牙/的bluez /插件/hciops.c:remote_features_information() hci0 status 0 02-26 11:27:56.723:V/bluez(817): external/bluetooth/bluez/plugins/hciops.c:remote_name_information() hci0 status 0 02- 26 11:27:56.723:V /的bluez(817): 外部/藍牙/的bluez /插件/ hciops.c:link_key_request()hci0 DBA 60:D8:19:AC:61:15 02-26 11時27分:56.723:V/bluez(817): 轉ernal /藍牙/的bluez /插件/ hciops.c:get_auth_info()hci0 DBA 60:D8:19:AC:61:15 11月2日至26日:27:56.723:V /的bluez(817): 外部/藍牙/ bluez/plugins/hciops.c:link_key_request()kernel auth requirements = 0x05 02-26 11:27:56.723:V/bluez(817): external/bluetooth/bluez/plugins/hciops.c:link_key_request() key not found 02-26 11:27:56.723:V/bluez(817): external/bluetooth/bluez/plugins/hciops。c:io_capa_request()hci0 IO 能力請求60:D8:19:AC:61:15 02-26 11:27:56.723: V/bluez(817): external/bluetooth/bluez/plugins/hciops。 c:get_auth_info()hci0 dba 60:D8:19:AC:61:15 02-26 11:27:56.723:V/bluez(817): external/bluetooth/bluez/plugins/hciops.c:get_io_cap( )初始 驗證要求是0x05 02-26 11:27:56.723:V/bluez(817): external/bluetooth/bluez/plugins/hciops.c:get_io_cap()loc_auth = 0x5 loc_cap = 0x1 rem_auth = 0xFF rem_cap = 0x0 02-26 11:27:56.723: V/bluez(817):external/bluetooth/bluez/plugins/hciops.c:get_io_cap() 最終驗證要求是0x05 02-26 11:27:56.941: V/bluez(817):I/PowerManagerService(198):external/bluetooth/bluez/plugins/hciops.c:io_capa_response()hci0 IO 60:D8:19:AC:61:15的能力響應02-26 11:27:57.137: 自動亮度:光傳感器= 182, brightness = 255 mHighestLightSensorValue:8485 02-26 11:27:57.277: V/bluez(817): external/bluetooth/bluez/plugins/hciops.c:user_confirm_request()hci0 02-26 11:27:57.277 V/bluez(817): external/bluetooth/bluez/src/adapter.c:adapter_get_device() 60:D8:19:AC:61:15 02-26 11: 27:57.277:V/bluez(817): external/bluetooth/bluez/src/device.c:device_request_authentication() 請求代理驗證60:D8:19:AC:61:15 02-26 11:27 :57.277:V/bluez(817): external/bluetooth/bluez/src/agent.c:agent_request_confirmation() Calling Agent.RequestConfirmation:name =:1.0, path =/android/bluetooth/agent,passkey = 050032 02-26 11 (198):agent_event_filter:收到的方法 org.bluez.Agent:RequestConfirmation 02-26 11:27:57.277: D/BluetoothBondState(198):setBondState地址:60:D8:27:57.277: I/BluetoothEventLoop.cpp :19:AC:61:15 state:11reason:0 02-26 11:27:57.277:E/BluetoothHeadset(198):Could not bind to Bluetooth Headset Service 02-26 11:27:57.277: E/BluetoothBondState(198):代理是 null:[email protected]:null 02-26 11:27:57.277: D/BluetoothBondState(198):60:D8 :19:AC:61:15 bond state 10 - > 11(0) 02-26 11:27:57.277:W/ActivityManager(198):無法啓動服務 Intent {act = android.bluetooth.IBluetoothHeadset}:沒有發現02-26 11:27:57.285:I/PairingPolicy/pairingReceiver(373): ACTION_BOND_STATE_CHANGED:ubuntu的-0 @ [60:D8:19:AC:61:15] BONDING

任何人都可以告訴我爲什麼這對夫婦失敗了?我應該擔心Pair屏幕顯示手機照片嗎?玻璃不允許應用程序與藍牙手機之外的其他設備進行通信?

感謝您的幫助!

+0

不知道你的情況的答案,但我知道,我的面臨玻璃對(贏8.1)就好了。它確實在Glass上的屏幕上顯示了一個電話;但是,Win 8.1還會顯示一個相應的配對確認對話框,其中包含您的Ubuntu安裝中未顯示的數字。 –

回答