Autore Topic: Utilizzare Bluetooth  (Letto 7267 volte)

Offline Bazinga2089

  • Utente junior
  • **
  • Post: 51
  • Respect: 0
    • Mostra profilo
Utilizzare Bluetooth
« il: 18 Aprile 2011, 20:45:15 CEST »
0
Salve a tutti,
ho seguito il tutorial sul sito Android Developer per fare un applicazione android che legga i devices Bluetooth. ma non funziona. Non reisco a capire il perchè? qualcuno potrebbe darmi una mano?

Offline Ricky`

  • Amministratore
  • Utente storico
  • *****
  • Post: 3489
  • Respect: +506
    • Github
    • Google+
    • rciovati
    • Mostra profilo
Re:Utilizzare Bluetooth
« Risposta #1 il: 18 Aprile 2011, 23:44:02 CEST »
0
Dovresti descrivere cosa hai fatto e che problemi hai incontrato.
Visto che sei nuovo ti rimando subito alla lettura di: Prima di postare...

Offline Bazinga2089

  • Utente junior
  • **
  • Post: 51
  • Respect: 0
    • Mostra profilo
Re:Utilizzare Bluetooth
« Risposta #2 il: 19 Aprile 2011, 09:20:51 CEST »
0
Allora quello che voglio fare io è una cosa molto semplice, vorrei riempire una textview con tutti i dispositivi trovati con una scanzione bluetooth. Ho seguito la guida di android developer Bluetooth | Android Developers la sezione Finding Devices, ma se faccio copia e incolla delc codice non funziona?

mi sapreste aiutare?

Offline 7h38ugg3r

  • Moderatore globale
  • Utente storico
  • *****
  • Post: 1200
  • Respect: +133
    • riccardofischetti
    • th38ugg3r
    • @7h38ugg3r
    • Mostra profilo
  • Dispositivo Android:
    Galaxy-S GT I-9000/ ASUS Eee Pad Transformer
  • Play Store ID:
    Riccardo Fischetti
  • Sistema operativo:
    OS X Lion / Linux Mint 11 (Katya)
Re:Utilizzare Bluetooth
« Risposta #3 il: 19 Aprile 2011, 09:24:05 CEST »
0
Poiché la frase "non funziona" ha molte sfaccettature e diversi significati, sarebbe bene che postassi il codice e che specificassi l'errore che ti da.
Per maggiori informazioni, leggiti questo.
7h38ugg3r<=>thebugger
Non conosci Java? Allora sei nel posto sbagliato!

http://www.androidpatterns.com/

Offline LupinIV

  • Nuovo arrivato
  • *
  • Post: 11
  • Respect: 0
    • Mostra profilo
  • Dispositivo Android:
    Vodafone Ideos
  • Sistema operativo:
    Ubuntu 10.10
Re:Utilizzare Bluetooth
« Risposta #4 il: 19 Aprile 2011, 09:38:36 CEST »
0
Se usi eclipse come IDE ti dovrebbe riportare stesso lui l'errore con una sottolineatura di rosso sull'errore. è capitato anche a me la cosa facendo il copia incolla e grazie all'ide capì che dovevo dichiarare una costante (cosa che l'esempio su android non faceva).

Offline Bazinga2089

  • Utente junior
  • **
  • Post: 51
  • Respect: 0
    • Mostra profilo
Re:Utilizzare Bluetooth
« Risposta #5 il: 19 Aprile 2011, 17:10:40 CEST »
0
quel passo l'ho risolto nel senso che ora android mi trova tutti i devices. Il mio problema ora è un altro (mi sto impratichendo) se volessi fare ancora un esempio preso da android developers ovvero quello del server e client nel senso che un device rimane in ascolto e gli altri tentano di connettersi anche in questo caso faccio una classe come dice la guida(Bluetooth | Android Developers --> connecting devices) mi da l'errore però a questo punto, c'è non mi da errore ma non trova nulla:
Codice (Java): [Seleziona]
        public void run() {
                BluetoothSocket socket = null;
                //continuo fino a che un socket ritorna
               
                while(true) {
                        try {
                                socket = mmServerSocket.accept(); //<--- qui se faccio il debug su ferma c'è non fa piu niente
                        } catch (IOException e) {
                                e.printStackTrace();
                        }
                       
                        if(socket != null) {

                        }
                }
        }

sapreste aiutarmi?

Offline mk178

  • Nuovo arrivato
  • *
  • Post: 35
  • Respect: +3
    • mikinacucchi
    • Mostra profilo
    • miki
  • Dispositivo Android:
    LG Optimus One
Re:Utilizzare Bluetooth
« Risposta #6 il: 19 Aprile 2011, 17:25:24 CEST »
0
Forse non ho ben capito...

In ogni caso, la accept() è un istruzione che blocca la prosecuzione del thread server sino alla ricezione di un comando da parte di un client.
Questo in generale per la programmazione con Socket in Java (ma penso anche in generale)
Proposta seminario su Android a Bari:
[Evento] Seminario Android a Bari

Offline Bazinga2089

  • Utente junior
  • **
  • Post: 51
  • Respect: 0
    • Mostra profilo
Re:Utilizzare Bluetooth
« Risposta #7 il: 19 Aprile 2011, 17:50:41 CEST »
0
in che senso non hai capito?

ti spiego meglio:

Sto facendo un aplicazione in ci si scambia delle stringhe di caratteri:
il mio device deve rimanere in ascolto, ogni volta che un altro devices si vuole connettere e inviarmi una stringa il mio devices deve funzioanre da server ovvere acceta la richiesta e riceve i dati.

Offline mk178

  • Nuovo arrivato
  • *
  • Post: 35
  • Respect: +3
    • mikinacucchi
    • Mostra profilo
    • miki
  • Dispositivo Android:
    LG Optimus One
Re:Utilizzare Bluetooth
« Risposta #8 il: 20 Aprile 2011, 09:08:34 CEST »
0
ma il problema è che l'esecuzione sembra bloccarsi sull'istruzione accept() ??

Se si, non è un problema ma è proprio la logica delle Socket. L'esecuzione rimarrà "bloccata" sino a quando non ci sarà un altra socket(client) che avvia una comunicazione con essa...
Proposta seminario su Android a Bari:
[Evento] Seminario Android a Bari

Offline Bazinga2089

  • Utente junior
  • **
  • Post: 51
  • Respect: 0
    • Mostra profilo
Re:Utilizzare Bluetooth
« Risposta #9 il: 20 Aprile 2011, 09:37:27 CEST »
0
il problema è che esce dal dubug almeno penso.

Offline bradipao

  • Moderatore globale
  • Utente storico
  • *****
  • Post: 4043
  • keep it simple
  • Respect: +567
    • Github
    • Google+
    • bradipao
    • Mostra profilo
  • Dispositivo Android:
    Nexus 5
  • Play Store ID:
    Bradipao
  • Sistema operativo:
    W7
Re:Utilizzare Bluetooth
« Risposta #10 il: 20 Aprile 2011, 09:58:31 CEST »
0
il problema è che esce dal dubug almeno penso.

Hai provato a tracciare il percorso dell'esecuzione con dei Log.d() ?
Ci posti il relativo logcat?
NON rispondo a domande nei messaggi privati
Bradipao @ Play Store

Offline Bazinga2089

  • Utente junior
  • **
  • Post: 51
  • Respect: 0
    • Mostra profilo
Re:Utilizzare Bluetooth
« Risposta #11 il: 20 Aprile 2011, 10:16:54 CEST »
0
Vi post il codice anche:

Codice (Java): [Seleziona]
package my.hes;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.util.UUID;
import my.hes.*;

import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothServerSocket;
import android.bluetooth.BluetoothSocket;
import android.content.Context;
import android.util.Log;
import android.widget.Toast;

public class AcceptThread extends Thread {
        private BluetoothServerSocket mmServerSocket;
        private BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
       
        public AcceptThread() {
                /*BluetoothServerSocket tmp = null;
               
                try{
                        tmp = mBluetoothAdapter.listenUsingRfcommWithServiceRecord("Conn", UUID.fromString("9f1e57d0-6a87-11e0-ae3e-0800200c9a66"));
                } catch (IOException e) {
                        mmServerSocket = tmp;
                }*/

               
                try {
                        mmServerSocket = mBluetoothAdapter.listenUsingRfcommWithServiceRecord("Conn", UUID.fromString("9f1e57d0-6a87-11e0-ae3e-0800200c9a66"));
                } catch (IOException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                }
        }
       
        public void run() {
                BluetoothSocket socket = null;
                //continuo fino a che un socket ritorna
               
                while(true) {
                        try {
                                socket = mmServerSocket.accept();
                                mmServerSocket.close();
                                //BufferedReader in = new BufferedReader(
                                                /*new InputStreamReader(
                                                                socket.getInputStream()
                                                                )
                                                );*/

                        } catch (IOException e) {
                                Log.i("SERVERSOCKET", "Connection failed!");
                        }
                       
                        if(socket != null) {
                                //manageConnectedSocket(socket);                
                                try {
                                        mmServerSocket.close();
                                } catch (IOException e) {
                                        // TODO Auto-generated catch block
                                        e.printStackTrace();
                                }    
                               
                                break;
                        }
                }
        }
       
        public void cancel() {
                try{
                        this.mmServerSocket.close();
                } catch (IOException e)
                {
                       
                }
        }
}

qui il logcat:

Codice: [Seleziona]
01-09 06:43:41.274: DEBUG/AndroidRuntime(8742): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
01-09 06:43:41.284: DEBUG/AndroidRuntime(8742): CheckJNI is OFF
01-09 06:43:41.464: DEBUG/AndroidRuntime(8742): --- registering native functions ---
01-09 06:43:42.104: DEBUG/AndroidRuntime(8742): Shutting down VM
01-09 06:43:42.104: DEBUG/dalvikvm(8742): Debugger has detached; object registry had 1 entries
01-09 06:43:42.124: INFO/AndroidRuntime(8742): NOTE: attach of thread 'Binder Thread #3' failed
01-09 06:43:42.674: DEBUG/AndroidRuntime(8750): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
01-09 06:43:42.674: DEBUG/AndroidRuntime(8750): CheckJNI is OFF
01-09 06:43:42.854: DEBUG/AndroidRuntime(8750): --- registering native functions ---
01-09 06:43:43.494: INFO/ActivityManager(99): Force stopping package my.hes uid=10061
01-09 06:43:43.514: INFO/Process(99): Sending signal. PID: 8730 SIG: 9
01-09 06:43:43.534: DEBUG/BluetoothService(99): Tracked app 8730 died
01-09 06:43:43.534: DEBUG/BluetoothService(99): Removing service record 0 for pid 8730
01-09 06:43:43.544: INFO/DTUN_CLNT(7572):     Client calling DTUN_METHOD_DM_DEL_SDP_REC (id 18)
01-09 06:43:43.544: INFO/(7559): DTUN_ReceiveCtrlMsg: [DTUN] Received message [BTLIF_DTUN_METHOD_CALL] 4354
01-09 06:43:43.544: INFO/(7559): handle_method_call: handle_method_call :: received DTUN_METHOD_DM_DEL_SDP_REC (id 18), len 4
01-09 06:43:43.544: INFO/BTL-IFS-WRAPPER(7559): rx_data: socket disconnected.
01-09 06:43:43.544: INFO/BTL-IFS(7559): detach_client: ########  Detached client subsystem (BTS) fd -1 ########
01-09 06:43:43.544: INFO/BTL-IFS(7559): detach_client: @*@*@*@*@*@*@*@*@*@*@*@*@* (BTS) - close(-1)
01-09 06:43:43.544: INFO/BTL-IFS(7559): btl_if_notify_local_event: Notify local event BTLIF_SUBSYSTEM_DETACHED
01-09 06:43:43.544: DEBUG/(7559): btlif_bts_api_ctrl_cb: btlif_bts_api_ctrl_cb : id BTLIF_SUBSYSTEM_DETACHED (4113) on hdl 20
01-09 06:43:43.544: INFO/(7559): btlif_rfc_ctrl_chan_detached: client detached ctrl handle -1
01-09 06:43:43.544: INFO/(7559): bts_chan_free_all: free bts chan resources (bta hdl 0, dhdl -1)
01-09 06:43:43.544: INFO/(7559): jv_rfc_close: jv_rfc_close hdl 0, status 1, remotely initiated 0, result 2, port status 4
01-09 06:43:43.544: INFO/BTL-IFS(7559): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_BTS_RFC_CLOSE_CFM (BTS) 5 pbytes (hdl 20)
01-09 06:43:43.544: ERROR/BTL-IFS-WRAPPER(7559): tx_data: failed : Bad file number (-1)
01-09 06:43:43.544: INFO/(7559): jv_rfc_close: jv_rfc_close hdl 0, status 0, remotely initiated 0, result 0, port status 2036632
01-09 06:43:43.544: INFO/BTL-IFS(7559): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_BTS_RFC_CLOSE_CFM (BTS) 5 pbytes (hdl 20)
01-09 06:43:43.544: ERROR/BTL-IFS-WRAPPER(7559): tx_data: failed : Bad file number (-1)
01-09 06:43:43.544: INFO/BTL-IFS(7559): BTL_IF_DisconnectDatapath: Disconnect datapath on handle -1
01-09 06:43:43.544: ERROR/BTL-IFS-WRAPPER(7559): wrp_find_wsock: wrp_find_wsock invalid hdl -1
01-09 06:43:43.544: DEBUG/BTL-IFS(7559): BTL_IF_DisconnectDatapath: wsock not found, already disconnected ?
01-09 06:43:43.544: DEBUG/(7559): bts_chan_free: p = 0x20ab30
01-09 06:43:43.544: DEBUG/BTL-IFS-WRAPPER(7559): wrp_free_dynamicport: free dyn port 9049 (s:39), sub 0
01-09 06:43:43.544: DEBUG/(7559): bts_chan_free: bts_chan_free success, bta hdl 0 (tot 0)
01-09 06:43:43.544: DEBUG/(7559): bts_chan_dump_all: ### channel list ###
01-09 06:43:43.584: DEBUG/Sensors(99): close_akm, fd=200
01-09 06:43:43.584: ERROR/ActivityManager(99): fail to set top app changed!
01-09 06:43:43.604: INFO/WindowManager(99): Setting rotation to 0, animFlags=1
01-09 06:43:43.674: INFO/ActivityManager(99): Config changed: { scale=1.0 imsi=0/0 loc=it_IT touch=3 keys=1/1/2 nav=3/1 orien=1 layout=17 uiMode=17 seq=263}
01-09 06:43:43.724: INFO/UsageStats(99): Unexpected resume of com.htc.launcher while already resumed in my.hes
01-09 06:43:43.744: INFO/ActivityManager(99): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=my.hes/.testConnection }
01-09 06:43:44.044: DEBUG/AndroidRuntime(8750): Shutting down VM
01-09 06:43:44.044: DEBUG/dalvikvm(8750): Debugger has detached; object registry had 1 entries
01-09 06:43:44.064: INFO/AndroidRuntime(8750): NOTE: attach of thread 'Binder Thread #3' failed
01-09 06:43:44.074: DEBUG/AK8973(78): Compass CLOSE
01-09 06:43:44.284: WARN/ActivityManager(99): Activity pause timeout for HistoryRecord{4481f128 com.htc.launcher/.Launcher}
01-09 06:43:44.304: INFO/ActivityManager(99): Start proc my.hes for activity my.hes/.testConnection: pid=8757 uid=10061 gids={3002, 3001, 1015}
01-09 06:43:44.514: WARN/InputManagerService(99): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@44d992c0
01-09 06:43:44.624: DEBUG/Sensors(99): open_akm, fd=124
01-09 06:43:44.634: DEBUG/AK8973(78): Compass Start
01-09 06:43:44.894: DEBUG/dalvikvm(99): GC_EXPLICIT freed 11511 objects / 669672 bytes in 270ms
01-09 06:43:44.904: INFO/WindowManager(99): Setting rotation to 1, animFlags=1
01-09 06:43:44.924: INFO/ActivityManager(99): Config changed: { scale=1.0 imsi=0/0 loc=it_IT touch=3 keys=1/1/2 nav=3/1 orien=2 layout=17 uiMode=17 seq=264}
01-09 06:43:45.334: WARN/ActivityThread(8757): Application my.hes is waiting for the debugger on port 8100...
01-09 06:43:45.374: INFO/System.out(8757): Sending WAIT chunk
01-09 06:43:45.374: INFO/dalvikvm(8757): Debugger is active
01-09 06:43:45.574: INFO/System.out(8757): Debugger has connected
01-09 06:43:45.574: INFO/System.out(8757): waiting for debugger to settle...
01-09 06:43:45.784: INFO/System.out(8757): waiting for debugger to settle...
01-09 06:43:45.984: INFO/System.out(8757): waiting for debugger to settle...
01-09 06:43:46.187: INFO/System.out(8757): waiting for debugger to settle...
01-09 06:43:46.390: INFO/System.out(8757): waiting for debugger to settle...
01-09 06:43:46.591: INFO/System.out(8757): waiting for debugger to settle...
01-09 06:43:46.791: INFO/System.out(8757): waiting for debugger to settle...
01-09 06:43:46.994: INFO/System.out(8757): waiting for debugger to settle...
01-09 06:43:47.196: INFO/System.out(8757): waiting for debugger to settle...
01-09 06:43:47.397: INFO/System.out(8757): waiting for debugger to settle...
01-09 06:43:47.598: INFO/System.out(8757): waiting for debugger to settle...
01-09 06:43:47.800: INFO/System.out(8757): debugger has settled (1368)
01-09 06:43:48.124: INFO/ActivityManager(99): Starting activity: Intent { act=android.bluetooth.adapter.action.REQUEST_DISCOVERABLE cmp=com.android.settings/.bluetooth.RequestPermissionActivity (has extras) }
01-09 06:43:48.654: WARN/ActivityManager(99): Activity pause timeout for HistoryRecord{44eed8f0 my.hes/.testConnection}
01-09 06:43:48.704: ERROR/RequestPermissionActivity(504): Timeout = 300
01-09 06:43:48.804: INFO/ActivityManager(99): Displayed activity com.android.settings/.bluetooth.RequestPermissionActivity: 152 ms (total 4523 ms)
01-09 06:43:48.824: VERBOSE/HtcContactsProvider2(173): RESULT : 1
01-09 06:43:48.824: VERBOSE/HtcContactsProvider2(173): RESULT : 1
01-09 06:43:48.824: VERBOSE/HtcContactsProvider2(173): RESULT : 1
01-09 06:43:48.834: VERBOSE/HtcContactsProvider2(173): RESULT : 1
01-09 06:43:48.834: VERBOSE/HtcContactsProvider2(173): RESULT : 1
01-09 06:43:49.034: DEBUG/WidgetView_Card(175): message widget observer onChange, isDelete false
01-09 06:43:49.034: DEBUG/ContactNameCache(310): Contact onChange: false
01-09 06:43:49.044: DEBUG/PeopleApp(223): Auto requerying AllPeopleCursor due to update - 0 contacts
01-09 06:43:49.924: WARN/WindowManager(99): App freeze timeout expired.
01-09 06:43:49.964: WARN/WindowManager(99): Force clearing freeze: AppWindowToken{450c2850 token=HistoryRecord{44eed8f0 my.hes/.testConnection}}
01-09 06:43:51.064: DEBUG/WidgetView_Card(175): on Query Complete: android.content.ContentResolver$CursorWrapperInner@4483d210
01-09 06:43:52.204: DEBUG/dalvikvm(99): GC_EXPLICIT freed 1863 objects / 106352 bytes in 230ms
01-09 06:43:52.864: INFO/BLZ20_WRAPPER(8757): blz20_wrp_socket: fam 31, type 1, prot BTPROTO_RFCOMM
01-09 06:43:52.864: DEBUG/BLZ20_WRAPPER(8757): blz20_init: initializing...
01-09 06:43:52.864: DEBUG/BTL_IFC_WRP(8757): wsactive_init: init active list
01-09 06:43:52.864: INFO/BTL_IFC(8757): main_client_thread: Client main thread starting
01-09 06:43:53.870: DEBUG/BLZ20_WRAPPER(8757): blz20_init: success
01-09 06:43:53.870: INFO/BTL_IFC(8757): BTL_IFC_RegisterSubSystem: Register subsystem [BTS]
01-09 06:43:53.870: INFO/BTL_IFC(8757): btl_ifc_ctrl_connect: Connect control channel for subsystem [BTS]
01-09 06:43:53.870: DEBUG/BTL_IFC_WRP(8757): wrp_sock_create: CTRL
01-09 06:43:53.870: DEBUG/BTL_IFC_WRP(8757): wrp_alloc_new_sock: wrp_alloc_new_sock sub 1
01-09 06:43:53.870: DEBUG/BTL_IFC_WRP(8757): wrp_sock_create: 38
01-09 06:43:53.870: DEBUG/BTL_IFC_WRP(8757): wrp_sock_connect: wrp_sock_connect brcm.bt.dtun:9000 (38)
01-09 06:43:53.870: DEBUG/BTL_IFC_WRP(8757): DTUN_MAKE_LOCAL_SERVER_NAME return name: brcm.bt.dtun.9000
01-09 06:43:53.870: INFO/BTL-IFS(7559): main_server_thread: [CTRL] Client connected (20)
01-09 06:43:53.874: INFO/BTL_IFC_WRP(8757): wrp_sock_connect: Connected. (38)
01-09 06:43:53.874: INFO/BTL_IFC(8757): send_ctrl_msg: [BTL_IFC CTRL] send BTLIF_REGISTER_SUBSYS_REQ (BTS) 0 pbytes (hdl 38)
01-09 06:43:53.874: INFO/BTL-IFS(7559): attach_client: multiclient index 0
01-09 06:43:53.874: INFO/BTL-IFS(7559): attach_client: ######## Attached client subsystem BTS (20) ########
01-09 06:43:53.874: INFO/BTL-IFS(7559): btl_if_notify_local_event: Notify local event BTLIF_SUBSYSTEM_ATTACHED
01-09 06:43:53.874: DEBUG/(7559): btlif_bts_api_ctrl_cb: btlif_bts_api_ctrl_cb : id BTLIF_SUBSYSTEM_ATTACHED (4112) on hdl 20
01-09 06:43:53.874: INFO/(7559): btlif_rfc_ctrl_chan_attached: client attached ctrl handle 20
01-09 06:43:53.874: DEBUG/BTL-IFS(7559): send_registration_rsp: send_registration_rsp [0]
01-09 06:43:53.874: INFO/BTL-IFS(7559): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_REGISTER_SUBSYS_RSP (CTRL) 2 pbytes (hdl 20)
01-09 06:43:53.874: DEBUG/BTL_IFC(8757): BTL_IFC_RegisterSubSystem: add new ctrl fd to active set
01-09 06:43:53.874: DEBUG/BTL_IFC_WRP(8757): wrp_wsock_create: BTS
01-09 06:43:53.874: DEBUG/BTL_IFC_WRP(8757): wrp_alloc_new_sock: wrp_alloc_new_sock sub 16
01-09 06:43:53.874: DEBUG/BTL_IFC_WRP(8757): wrp_wsock_create: 39
01-09 06:43:53.874: DEBUG/BLZ20_WRAPPER(8757): btsk_alloc_add: success
01-09 06:43:53.874: INFO/BLZ20_WRAPPER(8757): blz20_wrp_socket: return 39
01-09 06:43:53.874: DEBUG/BLZ20_WRAPPER(8757): blz20_wrp_setsockopt:  fd (-1:39), bta -1, rc 0, wflags 0x0, port 0
01-09 06:43:53.874: INFO/BLZ20_WRAPPER(8757): blz20_wrp_setsockopt: configure rfcomm lm mode 0x26, (master:0, auth 1, enc 1)
01-09 06:43:53.874: INFO/BLZ20_WRAPPER(8757): blz20_wrp_setsockopt: success
01-09 06:43:53.874: DEBUG/BLZ20_WRAPPER(8757): blz20_wrp_setsockopt:  fd (-1:39), bta -1, rc 0, wflags 0x0, port 0
01-09 06:43:53.874: INFO/BLZ20_WRAPPER(8757): blz20_wrp_setsockopt: configure rfcomm sndbuf len 71680 bytes
01-09 06:43:53.874: INFO/BLZ20_WRAPPER(8757): blz20_wrp_setsockopt: success
01-09 06:43:53.874: DEBUG/ASOCKWRP(8757): asocket_init
01-09 06:43:53.874: INFO/BLZ20_WRAPPER(8757): blz20_wrp_fcntl: s 39, cmd 3
01-09 06:43:53.874: DEBUG/BLZ20_WRAPPER(8757): blz20_wrp_fcntl:  fd (-1:39), bta -1, rc 0, wflags 0x0, port 0
01-09 06:43:53.874: INFO/BLZ20_WRAPPER(8757): blz20_wrp_fcntl: s 39, cmd 4
01-09 06:43:53.874: DEBUG/BLZ20_WRAPPER(8757): blz20_wrp_fcntl:  fd (-1:39), bta -1, rc 0, wflags 0x0, port 0
01-09 06:43:53.874: DEBUG/BLZ20_WRAPPER(8757): blz20_wrp_fcntl: transparant fcntl
01-09 06:43:53.874: INFO/BLZ20_WRAPPER(8757): blz20_wrp_fcntl: s 41, cmd 3
01-09 06:43:53.874: INFO/BLZ20_WRAPPER(8757): blz20_wrp_fcntl: wsock not found, pass through transparantly
01-09 06:43:53.874: INFO/BLZ20_WRAPPER(8757): blz20_wrp_fcntl: s 41, cmd 4
01-09 06:43:53.874: INFO/BLZ20_WRAPPER(8757): blz20_wrp_fcntl: wsock not found, pass through transparantly
01-09 06:43:53.874: INFO/BLZ20_WRAPPER(8757): blz20_set_asocket: success (39,40,41)
01-09 06:43:53.894: INFO/BLZ20_WRAPPER(8757): blz20_wrp_bind: s 39
01-09 06:43:53.894: DEBUG/BLZ20_WRAPPER(8757): blz20_wrp_bind: bind socket fd (-1:39), bta -1, rc 0, wflags 0x0, port 0
01-09 06:43:53.894: DEBUG/BLZ20_WRAPPER(8757): __bind_prot_rfcomm: rc_chan 9
01-09 06:43:53.894: DEBUG/BLZ20_WRAPPER(8757): btlif_send_msg_wait_response: send BTLIF_BTS_RFC_BIND_REQ, wait for |BTLIF_BTS_RFC_BIND_RSP|
01-09 06:43:53.894: INFO/BTL_IFC(8757): send_ctrl_msg: [BTL_IFC CTRL] send BTLIF_BTS_RFC_BIND_REQ (BTS) 8 pbytes (hdl 38)
01-09 06:43:53.894: DEBUG/(7559): btlif_bts_api_ctrl_cb: btlif_bts_api_ctrl_cb : id BTLIF_BTS_RFC_BIND_REQ (4461) on hdl 20
01-09 06:43:53.894: DEBUG/BTL-IFS-WRAPPER(7559): wrp_alloc_dynamicport: allocated port 9049 (s:39) (sub 0)
01-09 06:43:53.894: DEBUG/(7559): bts_chan_alloc_add: bts_chan_alloc_add : success (tot 1)
01-09 06:43:53.894: INFO/BTL-IFS(7559): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_BTS_RFC_BIND_RSP (BTS) 12 pbytes (hdl 20)
01-09 06:43:53.894: INFO/BTL_IFC(8757): btl_ifc_ctrl_rx: [BTL_IFC CTRL] recv BTLIF_BTS_RFC_BIND_RSP (BTS) 14 pbytes (hdl 38)
01-09 06:43:53.894: INFO/BLZ20_WRAPPER(8757): btlif_ctrl_callback: btlif_ctrl_callback : msg id BTLIF_BTS_RFC_BIND_RSP
01-09 06:43:53.904: DEBUG/BLZ20_WRAPPER(8757): btlif_signal_event:  fd (-1:39), bta -1, rc 0, wflags 0x2, port 0
01-09 06:43:53.904: DEBUG/BLZ20_WRAPPER(8757): btlif_signal_event: event BTLIF_BTS_RFC_BIND_RSP matched
01-09 06:43:53.904: DEBUG/BLZ20_WRAPPER(8757): btlif_send_msg_wait_response: unblocked fd (-1:39), bta -1, rc 0, wflags 0x0, port 0
01-09 06:43:53.904: DEBUG/BTL_IFC_WRP(8757): DTUN_MAKE_LOCAL_SERVER_NAME return name: brcm.bt.dtun.9049
01-09 06:43:53.904: DEBUG/BTL_IFC_WRP(8757): wrp_sock_bind: wrp_sock_bind:socket_local_server_bind result:0 server_name:brcm.bt.dtun.9049
01-09 06:43:53.904: DEBUG/BTL_IFC_WRP(8757): wrp_sock_bind: socket_local_server_bind on port 9049
01-09 06:43:53.904: INFO/BLZ20_WRAPPER(8757): blz20_wrp_listen: s 39, backlog 1
01-09 06:43:53.904: DEBUG/BLZ20_WRAPPER(8757): blz20_wrp_listen:  fd (-1:39), bta -1, rc 9, wflags 0x0, port 9049
01-09 06:43:53.904: DEBUG/BTL_IFC_WRP(8757): wrp_sock_listen_bl: wrp_sock_listen_bl : fd 39 brcm.bt.dtun:9049 backlog 1
01-09 06:43:53.904: DEBUG/BLZ20_WRAPPER(8757): btlif_send_msg_wait_response: send BTLIF_BTS_RFC_LISTEN_REQ, wait for |BTLIF_BTS_RFC_LISTEN_RSP|
01-09 06:43:53.904: INFO/BTL_IFC(8757): send_ctrl_msg: [BTL_IFC CTRL] send BTLIF_BTS_RFC_LISTEN_REQ (BTS) 24 pbytes (hdl 38)
01-09 06:43:53.904: DEBUG/(7559): btlif_bts_api_ctrl_cb: btlif_bts_api_ctrl_cb : id BTLIF_BTS_RFC_LISTEN_REQ (4463) on hdl 20
01-09 06:43:53.904: INFO/(7559): btlif_rfc_listen_req: Allocated supplied server channel 9
01-09 06:43:53.904: DEBUG/(7559): bts_chan_dump_all: ### channel list ###
01-09 06:43:53.904: DEBUG/(7559): bts_chan_dump_all:  type 0, dhdl -1, bta_hdl 4660, scn 9, phdl 65535, lstpnd 0, 39:-1 (L:D)
01-09 06:43:53.904: INFO/(7559): btlif_rfc_listen_req: start rfcomm server on scn 9, role 1, sec_mask 0x30, btlifport 9049
01-09 06:43:53.904: INFO/(7559): jw_if_rfcomm_srv_cback: [BTA_JV_RFCOMM_START_EVT] start status: 0, handle:0, security id: 47
01-09 06:43:53.904: INFO/(7559): jv_rfc_srv_listen_started: jv_rfc_srv_listen_started
01-09 06:43:53.904: INFO/BTL-IFS(7559): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_BTS_RFC_LISTEN_RSP (BTS) 17 pbytes (hdl 20)
01-09 06:43:53.904: INFO/BTL_IFC(8757): btl_ifc_ctrl_rx: [BTL_IFC CTRL] recv BTLIF_BTS_RFC_LISTEN_RSP (BTS) 19 pbytes (hdl 38)
01-09 06:43:53.904: INFO/BLZ20_WRAPPER(8757): btlif_ctrl_callback: btlif_ctrl_callback : msg id BTLIF_BTS_RFC_LISTEN_RSP
01-09 06:43:53.904: INFO/BLZ20_WRAPPER(8757): btlif_process_listen_rsp: listen response for bta hdl 0
01-09 06:43:53.904: DEBUG/BLZ20_WRAPPER(8757): btlif_signal_event:  fd (39:39), bta 0, rc 9, wflags 0x8, port 9049
01-09 06:43:53.904: DEBUG/BLZ20_WRAPPER(8757): btlif_signal_event: event BTLIF_BTS_RFC_LISTEN_RSP matched
01-09 06:43:53.904: DEBUG/BLZ20_WRAPPER(8757): btlif_send_msg_wait_response: unblocked fd (39:39), bta 0, rc 9, wflags 0x0, port 9049
01-09 06:43:53.904: INFO/BLZ20_WRAPPER(8757): __listen_prot_rfcomm: success, scn 9
01-09 06:43:53.934: INFO/DTUN_CLNT(7572):     Client calling DTUN_METHOD_DM_ADD_SDP_REC (id 17)
01-09 06:43:53.934: INFO/(7559): DTUN_ReceiveCtrlMsg: [DTUN] Received message [BTLIF_DTUN_METHOD_CALL] 4354
01-09 06:43:53.934: INFO/(7559): handle_method_call: handle_method_call :: received DTUN_METHOD_DM_ADD_SDP_REC (id 17), len 270
01-09 06:43:53.934: INFO/(7559): btapp_bts_convert_rc_chan_to_scn: found scn 9
01-09 06:43:53.934: INFO/BTL-IFS(7559): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_DTUN_SIGNAL_EVT (CTRL) 12 pbytes (hdl 15)
01-09 06:43:53.934: INFO/DTUN_HCID4(7572): dtun_dm_sig_sdp_rec_handle: handle = 0x10007
01-09 06:43:53.934: DEBUG/BluetoothService(99): new handle 0
01-09 06:43:54.124: DEBUG/dalvikvm(175): GC_EXPLICIT freed 1841 objects / 87488 bytes in 170ms
01-09 06:43:54.998: WARN/ActivityManager(99): Activity idle timeout for HistoryRecord{44eed8f0 my.hes/.testConnection}
01-09 06:43:55.594: DEBUG/ASOCKWRP(8757): asocket_accept
01-09 06:43:55.594: DEBUG/ASOCKWRP(8757): asocket_accept:starting poll socket fd:39
01-09 06:43:55.594: INFO/BLZ20_WRAPPER(8757): blz20_wrp_poll: nfds 2, timeout -1 ms
01-09 06:43:55.594: DEBUG/BLZ20_WRAPPER(8757): blz20_wrp_poll: found listen fd in poll fds fd (39:39), bta 0, rc 9, wflags 0x0, port 9049
01-09 06:43:55.594: INFO/BLZ20_WRAPPER(8757): blz20_wrp_poll: blocking call for listen fd, wait for btlif event
01-09 06:43:55.594: DEBUG/BLZ20_WRAPPER(8757): btlif_wait_response: id(s) |BTLIF_BTS_RFC_CON_IND|
« Ultima modifica: 20 Aprile 2011, 15:29:00 CEST da Ricky`, Reason: tag code per il logcat »

Offline bradipao

  • Moderatore globale
  • Utente storico
  • *****
  • Post: 4043
  • keep it simple
  • Respect: +567
    • Github
    • Google+
    • bradipao
    • Mostra profilo
  • Dispositivo Android:
    Nexus 5
  • Play Store ID:
    Bradipao
  • Sistema operativo:
    W7
Re:Utilizzare Bluetooth
« Risposta #12 il: 20 Aprile 2011, 10:44:56 CEST »
0
Ok, il codice è quello derivato direttamente dalla BluetoothChat (il thread ha ancora lo stesso nome) seppure un po' modificato.

Ho capito che non ti funziona, ma mi manca completamente la descrizione (dettagliata) di cosa stai facendo, tipo: avvio l'applicazione, con un altro dispositivo vedo il server e provo a connettermi, ma il server non risponde e non accetta la connessione.

Seconda cosa, il LogCat è inutile se non metti i Log.d() nel codice. E' FONDAMENTALE (non a caso tutti i moderatori hanno in firma questa raccomandazione) nella programmazione Android e relativo debug usare questo strumento, ti permette di tracciare l'esecuzione del codice e capire da dove passa (o dove non passa). Quello che devi fare è mettere righe di codice tipo Log.d("MIA_APP", "Sono nel costruttore di AcceptThread"); e poi Log.d("MIA_APP", "Ho appena creato mmServerSocket"); etcetera. Dissemina il tuo codice di queste righe, poi avvia l'applicazione e nel mezzo alle righe che hai postato sopra, troverai anche quelle con tag MIA_APP inserite da te. Leggendo la sequenza, dovresti poter capire dove passa e dove non passa.
NON rispondo a domande nei messaggi privati
Bradipao @ Play Store

Offline Bazinga2089

  • Utente junior
  • **
  • Post: 51
  • Respect: 0
    • Mostra profilo
Re:Utilizzare Bluetooth
« Risposta #13 il: 20 Aprile 2011, 10:49:14 CEST »
0
adesso lo faccio passo passo, cmq il progetto che sto facendo è proprio come hai detto tu, un dipositivo è il server l'altro è il client (anche se il client non l'ho sviluppato tento la connessione con il bluetooth normale dell'altro dispositivo).

Offline Bazinga2089

  • Utente junior
  • **
  • Post: 51
  • Respect: 0
    • Mostra profilo
Re:Utilizzare Bluetooth
« Risposta #14 il: 20 Aprile 2011, 11:00:12 CEST »
0
questo è il logcat:

Codice: [Seleziona]
01-09 07:24:55.107: WARN/WindowManager(99): Key dispatching timed out sending to <null>: no window ready for key dispatch
01-09 07:24:55.110: WARN/WindowManager(99): Previous dispatch state: {{KeyEvent{action=1 code=4 repeat=0 meta=0 scancode=158 mFlags=72} to Window{44acaea8 com.htc.launcher/com.htc.launcher.Launcher paused=false} @ 316246744699 lw=Window{44acaea8 com.htc.launcher/com.htc.launcher.Launcher paused=false} lb=android.os.BinderProxy@4488c810 fin=false gfw=true ed=true tts=0 wf=false fp=false mcf=Window{44acaea8 com.htc.launcher/com.htc.launcher.Launcher paused=false}}}
01-09 07:24:55.110: WARN/WindowManager(99): Current dispatch state: {{KeyEvent{action=0 code=4 repeat=0 meta=0 scancode=158 mFlags=72} to null @ 316247095112 lw=null lb=null fin=true gfw=true ed=true tts=0 wf=false fp=false mcf=null}}
01-09 07:24:55.110: WARN/WindowManager(99): waitedFor: 15004, keyDispatchingTimeout: 15000
01-09 07:24:55.110: WARN/WindowManager(99): Continuing to wait for key to be dispatched
01-09 07:24:55.870: DEBUG/AndroidRuntime(9069): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
01-09 07:24:55.870: DEBUG/AndroidRuntime(9069): CheckJNI is OFF
01-09 07:24:56.050: DEBUG/AndroidRuntime(9069): --- registering native functions ---
01-09 07:24:56.680: DEBUG/AndroidRuntime(9069): Shutting down VM
01-09 07:24:56.680: INFO/AndroidRuntime(9069): NOTE: attach of thread 'Binder Thread #3' failed
01-09 07:24:56.680: DEBUG/dalvikvm(9069): Debugger has detached; object registry had 1 entries
01-09 07:24:57.250: DEBUG/AndroidRuntime(9077): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
01-09 07:24:57.250: DEBUG/AndroidRuntime(9077): CheckJNI is OFF
01-09 07:24:57.430: DEBUG/AndroidRuntime(9077): --- registering native functions ---
01-09 07:24:58.050: INFO/ActivityManager(99): Force stopping package my.hes uid=10061
01-09 07:24:58.060: WARN/WindowManager(99): No focus window, dropping: KeyEvent{action=0 code=4 repeat=0 meta=0 scancode=158 mFlags=72}
01-09 07:24:58.070: WARN/WindowManager(99): No focus window, dropping: KeyEvent{action=1 code=4 repeat=0 meta=0 scancode=158 mFlags=72}
01-09 07:24:58.070: WARN/WindowManager(99): No focus window, dropping: KeyEvent{action=0 code=82 repeat=0 meta=0 scancode=139 mFlags=72}
01-09 07:24:58.080: WARN/WindowManager(99): No focus window, dropping: KeyEvent{action=1 code=82 repeat=0 meta=0 scancode=139 mFlags=72}
01-09 07:24:58.100: INFO/Process(99): Sending signal. PID: 9055 SIG: 9
01-09 07:24:58.110: ERROR/ActivityManager(99): fail to set top app changed!
01-09 07:24:58.130: DEBUG/BluetoothService(99): Tracked app 9055 died
01-09 07:24:58.130: DEBUG/BluetoothService(99): Removing service record 0 for pid 9055
01-09 07:24:58.140: INFO/DTUN_CLNT(7572):     Client calling DTUN_METHOD_DM_DEL_SDP_REC (id 18)
01-09 07:24:58.140: INFO/(7559): DTUN_ReceiveCtrlMsg: [DTUN] Received message [BTLIF_DTUN_METHOD_CALL] 4354
01-09 07:24:58.140: INFO/(7559): handle_method_call: handle_method_call :: received DTUN_METHOD_DM_DEL_SDP_REC (id 18), len 4
01-09 07:24:58.140: INFO/BTL-IFS-WRAPPER(7559): rx_data: socket disconnected.
01-09 07:24:58.140: INFO/BTL-IFS(7559): detach_client: ########  Detached client subsystem (BTS) fd -1 ########
01-09 07:24:58.140: INFO/BTL-IFS(7559): detach_client: @*@*@*@*@*@*@*@*@*@*@*@*@* (BTS) - close(-1)
01-09 07:24:58.140: INFO/BTL-IFS(7559): btl_if_notify_local_event: Notify local event BTLIF_SUBSYSTEM_DETACHED
01-09 07:24:58.140: DEBUG/(7559): btlif_bts_api_ctrl_cb: btlif_bts_api_ctrl_cb : id BTLIF_SUBSYSTEM_DETACHED (4113) on hdl 20
01-09 07:24:58.140: INFO/(7559): btlif_rfc_ctrl_chan_detached: client detached ctrl handle -1
01-09 07:24:58.140: INFO/(7559): bts_chan_free_all: free bts chan resources (bta hdl 0, dhdl -1)
01-09 07:24:58.140: INFO/(7559): jv_rfc_close: jv_rfc_close hdl 0, status 1, remotely initiated 0, result 2, port status 4
01-09 07:24:58.140: INFO/BTL-IFS(7559): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_BTS_RFC_CLOSE_CFM (BTS) 5 pbytes (hdl 20)
01-09 07:24:58.140: ERROR/BTL-IFS-WRAPPER(7559): tx_data: failed : Bad file number (-1)
01-09 07:24:58.140: INFO/(7559): jv_rfc_close: jv_rfc_close hdl 0, status 0, remotely initiated 0, result 0, port status 2036632
01-09 07:24:58.140: INFO/BTL-IFS(7559): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_BTS_RFC_CLOSE_CFM (BTS) 5 pbytes (hdl 20)
01-09 07:24:58.140: ERROR/BTL-IFS-WRAPPER(7559): tx_data: failed : Bad file number (-1)
01-09 07:24:58.140: INFO/BTL-IFS(7559): BTL_IF_DisconnectDatapath: Disconnect datapath on handle -1
01-09 07:24:58.140: ERROR/BTL-IFS-WRAPPER(7559): wrp_find_wsock: wrp_find_wsock invalid hdl -1
01-09 07:24:58.140: DEBUG/BTL-IFS(7559): BTL_IF_DisconnectDatapath: wsock not found, already disconnected ?
01-09 07:24:58.140: DEBUG/(7559): bts_chan_free: p = 0x20ab30
01-09 07:24:58.140: DEBUG/BTL-IFS-WRAPPER(7559): wrp_free_dynamicport: free dyn port 9049 (s:39), sub 0
01-09 07:24:58.140: DEBUG/(7559): bts_chan_free: bts_chan_free success, bta hdl 0 (tot 0)
01-09 07:24:58.140: DEBUG/(7559): bts_chan_dump_all: ### channel list ###
01-09 07:24:58.220: DEBUG/Sensors(99): close_akm, fd=138
01-09 07:24:58.220: INFO/WindowManager(99): Setting rotation to 0, animFlags=1
01-09 07:24:58.240: INFO/ActivityManager(99): Config changed: { scale=1.0 imsi=0/0 loc=it_IT touch=3 keys=1/1/2 nav=3/1 orien=1 layout=17 uiMode=17 seq=281}
01-09 07:24:58.300: INFO/UsageStats(99): Unexpected resume of com.htc.launcher while already resumed in my.hes
01-09 07:24:58.320: INFO/ActivityManager(99): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=my.hes/.testConnection }
01-09 07:24:58.670: DEBUG/AndroidRuntime(9077): Shutting down VM
01-09 07:24:58.670: DEBUG/dalvikvm(9077): Debugger has detached; object registry had 1 entries
01-09 07:24:58.700: INFO/AndroidRuntime(9077): NOTE: attach of thread 'Binder Thread #3' failed
01-09 07:24:58.770: DEBUG/AK8973(78): Compass CLOSE
01-09 07:24:58.830: INFO/ActivityManager(99): Start proc my.hes for activity my.hes/.testConnection: pid=9084 uid=10061 gids={3002, 3001, 1015}
01-09 07:24:58.930: WARN/InputManagerService(99): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@44f1cdb0
01-09 07:24:59.150: DEBUG/AK8973(78): Compass Start
01-09 07:24:59.150: DEBUG/Sensors(99): open_akm, fd=157
01-09 07:24:59.160: INFO/WindowManager(99): Setting rotation to 1, animFlags=1
01-09 07:24:59.190: INFO/ActivityManager(99): Config changed: { scale=1.0 imsi=0/0 loc=it_IT touch=3 keys=1/1/2 nav=3/1 orien=2 layout=17 uiMode=17 seq=282}
01-09 07:24:59.530: WARN/ActivityThread(9084): Application my.hes is waiting for the debugger on port 8100...
01-09 07:24:59.610: INFO/System.out(9084): Sending WAIT chunk
01-09 07:24:59.610: INFO/dalvikvm(9084): Debugger is active
01-09 07:24:59.810: INFO/System.out(9084): Debugger has connected
01-09 07:24:59.810: INFO/System.out(9084): waiting for debugger to settle...
01-09 07:25:00.010: INFO/System.out(9084): waiting for debugger to settle...
01-09 07:25:00.210: INFO/System.out(9084): waiting for debugger to settle...
01-09 07:25:00.420: INFO/System.out(9084): waiting for debugger to settle...
01-09 07:25:00.621: INFO/System.out(9084): waiting for debugger to settle...
01-09 07:25:00.823: INFO/System.out(9084): waiting for debugger to settle...
01-09 07:25:01.024: INFO/System.out(9084): waiting for debugger to settle...
01-09 07:25:01.224: INFO/System.out(9084): waiting for debugger to settle...
01-09 07:25:01.420: INFO/System.out(9084): waiting for debugger to settle...
01-09 07:25:01.620: INFO/System.out(9084): waiting for debugger to settle...
01-09 07:25:01.830: INFO/System.out(9084): waiting for debugger to settle...
01-09 07:25:02.031: INFO/System.out(9084): waiting for debugger to settle...
01-09 07:25:02.232: INFO/System.out(9084): debugger has settled (1445)
01-09 07:25:02.550: INFO/ActivityManager(99): Starting activity: Intent { act=android.bluetooth.adapter.action.REQUEST_DISCOVERABLE cmp=com.android.settings/.bluetooth.RequestPermissionActivity (has extras) }
01-09 07:25:02.560: DEBUG/MIA APPLICAZIONE(9084): Avvio Activity Principale
01-09 07:25:02.560: DEBUG/MIA APPLICAZIONE(9084): CREO BLUETOOTHSERVERSOCKET
01-09 07:25:02.610: DEBUG/Mia Applicazione(9084): Configuro ServerSocket
01-09 07:25:03.062: WARN/ActivityManager(99): Activity pause timeout for HistoryRecord{44e55510 my.hes/.testConnection}
01-09 07:25:03.100: ERROR/RequestPermissionActivity(504): Timeout = 300
01-09 07:25:03.210: INFO/ActivityManager(99): Displayed activity com.android.settings/.bluetooth.RequestPermissionActivity: 156 ms (total 4396 ms)
01-09 07:25:03.400: VERBOSE/HtcContactsProvider2(173): RESULT : 1
01-09 07:25:03.400: VERBOSE/HtcContactsProvider2(173): RESULT : 1
01-09 07:25:03.400: VERBOSE/HtcContactsProvider2(173): RESULT : 1
01-09 07:25:03.400: VERBOSE/HtcContactsProvider2(173): RESULT : 1
01-09 07:25:03.400: VERBOSE/HtcContactsProvider2(173): RESULT : 1
01-09 07:25:03.610: DEBUG/ContactNameCache(310): Contact onChange: false
01-09 07:25:03.610: DEBUG/WidgetView_Card(175): message widget observer onChange, isDelete false
01-09 07:25:03.620: DEBUG/PeopleApp(223): Auto requerying AllPeopleCursor due to update - 0 contacts
01-09 07:25:04.182: WARN/WindowManager(99): App freeze timeout expired.
01-09 07:25:04.182: WARN/WindowManager(99): Force clearing freeze: AppWindowToken{44ee5ec8 token=HistoryRecord{44e55510 my.hes/.testConnection}}
01-09 07:25:05.640: DEBUG/WidgetView_Card(175): on Query Complete: android.content.ContentResolver$CursorWrapperInner@44a70f48
01-09 07:25:06.430: DEBUG/dalvikvm(99): GC_EXPLICIT freed 10418 objects / 548624 bytes in 244ms
01-09 07:25:09.248: WARN/ActivityManager(99): Activity idle timeout for HistoryRecord{44e55510 my.hes/.testConnection}
01-09 07:25:16.500: INFO/BLZ20_WRAPPER(9084): blz20_wrp_socket: fam 31, type 1, prot BTPROTO_RFCOMM
01-09 07:25:16.500: DEBUG/BLZ20_WRAPPER(9084): blz20_init: initializing...
01-09 07:25:16.500: DEBUG/BTL_IFC_WRP(9084): wsactive_init: init active list
01-09 07:25:16.510: INFO/BTL_IFC(9084): main_client_thread: Client main thread starting
01-09 07:25:17.513: DEBUG/BLZ20_WRAPPER(9084): blz20_init: success
01-09 07:25:17.513: INFO/BTL_IFC(9084): BTL_IFC_RegisterSubSystem: Register subsystem [BTS]
01-09 07:25:17.513: INFO/BTL_IFC(9084): btl_ifc_ctrl_connect: Connect control channel for subsystem [BTS]
01-09 07:25:17.513: DEBUG/BTL_IFC_WRP(9084): wrp_sock_create: CTRL
01-09 07:25:17.513: DEBUG/BTL_IFC_WRP(9084): wrp_alloc_new_sock: wrp_alloc_new_sock sub 1
01-09 07:25:17.513: DEBUG/BTL_IFC_WRP(9084): wrp_sock_create: 38
01-09 07:25:17.513: DEBUG/BTL_IFC_WRP(9084): wrp_sock_connect: wrp_sock_connect brcm.bt.dtun:9000 (38)
01-09 07:25:17.513: DEBUG/BTL_IFC_WRP(9084): DTUN_MAKE_LOCAL_SERVER_NAME return name: brcm.bt.dtun.9000
01-09 07:25:17.513: INFO/BTL-IFS(7559): main_server_thread: [CTRL] Client connected (20)
01-09 07:25:17.513: INFO/BTL_IFC_WRP(9084): wrp_sock_connect: Connected. (38)
01-09 07:25:17.513: INFO/BTL_IFC(9084): send_ctrl_msg: [BTL_IFC CTRL] send BTLIF_REGISTER_SUBSYS_REQ (BTS) 0 pbytes (hdl 38)
01-09 07:25:17.513: INFO/BTL-IFS(7559): attach_client: multiclient index 0
01-09 07:25:17.513: INFO/BTL-IFS(7559): attach_client: ######## Attached client subsystem BTS (20) ########
01-09 07:25:17.513: INFO/BTL-IFS(7559): btl_if_notify_local_event: Notify local event BTLIF_SUBSYSTEM_ATTACHED
01-09 07:25:17.513: DEBUG/(7559): btlif_bts_api_ctrl_cb: btlif_bts_api_ctrl_cb : id BTLIF_SUBSYSTEM_ATTACHED (4112) on hdl 20
01-09 07:25:17.513: INFO/(7559): btlif_rfc_ctrl_chan_attached: client attached ctrl handle 20
01-09 07:25:17.513: DEBUG/BTL-IFS(7559): send_registration_rsp: send_registration_rsp [0]
01-09 07:25:17.513: INFO/BTL-IFS(7559): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_REGISTER_SUBSYS_RSP (CTRL) 2 pbytes (hdl 20)
01-09 07:25:17.513: DEBUG/BTL_IFC(9084): BTL_IFC_RegisterSubSystem: add new ctrl fd to active set
01-09 07:25:17.513: DEBUG/BTL_IFC_WRP(9084): wrp_wsock_create: BTS
01-09 07:25:17.513: DEBUG/BTL_IFC_WRP(9084): wrp_alloc_new_sock: wrp_alloc_new_sock sub 16
01-09 07:25:17.513: DEBUG/BTL_IFC_WRP(9084): wrp_wsock_create: 39
01-09 07:25:17.513: DEBUG/BLZ20_WRAPPER(9084): btsk_alloc_add: success
01-09 07:25:17.513: INFO/BLZ20_WRAPPER(9084): blz20_wrp_socket: return 39
01-09 07:25:17.513: DEBUG/BLZ20_WRAPPER(9084): blz20_wrp_setsockopt:  fd (-1:39), bta -1, rc 0, wflags 0x0, port 0
01-09 07:25:17.513: INFO/BLZ20_WRAPPER(9084): blz20_wrp_setsockopt: configure rfcomm lm mode 0x26, (master:0, auth 1, enc 1)
01-09 07:25:17.513: INFO/BLZ20_WRAPPER(9084): blz20_wrp_setsockopt: success
01-09 07:25:17.513: DEBUG/BLZ20_WRAPPER(9084): blz20_wrp_setsockopt:  fd (-1:39), bta -1, rc 0, wflags 0x0, port 0
01-09 07:25:17.513: INFO/BLZ20_WRAPPER(9084): blz20_wrp_setsockopt: configure rfcomm sndbuf len 71680 bytes
01-09 07:25:17.513: INFO/BLZ20_WRAPPER(9084): blz20_wrp_setsockopt: success
01-09 07:25:17.513: DEBUG/ASOCKWRP(9084): asocket_init
01-09 07:25:17.513: INFO/BLZ20_WRAPPER(9084): blz20_wrp_fcntl: s 39, cmd 3
01-09 07:25:17.513: DEBUG/BLZ20_WRAPPER(9084): blz20_wrp_fcntl:  fd (-1:39), bta -1, rc 0, wflags 0x0, port 0
01-09 07:25:17.513: INFO/BLZ20_WRAPPER(9084): blz20_wrp_fcntl: s 39, cmd 4
01-09 07:25:17.513: DEBUG/BLZ20_WRAPPER(9084): blz20_wrp_fcntl:  fd (-1:39), bta -1, rc 0, wflags 0x0, port 0
01-09 07:25:17.513: DEBUG/BLZ20_WRAPPER(9084): blz20_wrp_fcntl: transparant fcntl
01-09 07:25:17.513: INFO/BLZ20_WRAPPER(9084): blz20_wrp_fcntl: s 41, cmd 3
01-09 07:25:17.513: INFO/BLZ20_WRAPPER(9084): blz20_wrp_fcntl: wsock not found, pass through transparantly
01-09 07:25:17.513: INFO/BLZ20_WRAPPER(9084): blz20_wrp_fcntl: s 41, cmd 4
01-09 07:25:17.513: INFO/BLZ20_WRAPPER(9084): blz20_wrp_fcntl: wsock not found, pass through transparantly
01-09 07:25:17.520: INFO/BLZ20_WRAPPER(9084): blz20_set_asocket: success (39,40,41)
01-09 07:25:17.540: INFO/BLZ20_WRAPPER(9084): blz20_wrp_bind: s 39
01-09 07:25:17.540: DEBUG/BLZ20_WRAPPER(9084): blz20_wrp_bind: bind socket fd (-1:39), bta -1, rc 0, wflags 0x0, port 0
01-09 07:25:17.540: DEBUG/BLZ20_WRAPPER(9084): __bind_prot_rfcomm: rc_chan 15
01-09 07:25:17.540: DEBUG/BLZ20_WRAPPER(9084): btlif_send_msg_wait_response: send BTLIF_BTS_RFC_BIND_REQ, wait for |BTLIF_BTS_RFC_BIND_RSP|
01-09 07:25:17.540: INFO/BTL_IFC(9084): send_ctrl_msg: [BTL_IFC CTRL] send BTLIF_BTS_RFC_BIND_REQ (BTS) 8 pbytes (hdl 38)
01-09 07:25:17.540: DEBUG/(7559): btlif_bts_api_ctrl_cb: btlif_bts_api_ctrl_cb : id BTLIF_BTS_RFC_BIND_REQ (4461) on hdl 20
01-09 07:25:17.540: DEBUG/BTL-IFS-WRAPPER(7559): wrp_alloc_dynamicport: allocated port 9049 (s:39) (sub 0)
01-09 07:25:17.540: DEBUG/(7559): bts_chan_alloc_add: bts_chan_alloc_add : success (tot 1)
01-09 07:25:17.540: INFO/BTL-IFS(7559): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_BTS_RFC_BIND_RSP (BTS) 12 pbytes (hdl 20)
01-09 07:25:17.540: INFO/BTL_IFC(9084): btl_ifc_ctrl_rx: [BTL_IFC CTRL] recv BTLIF_BTS_RFC_BIND_RSP (BTS) 14 pbytes (hdl 38)
01-09 07:25:17.540: INFO/BLZ20_WRAPPER(9084): btlif_ctrl_callback: btlif_ctrl_callback : msg id BTLIF_BTS_RFC_BIND_RSP
01-09 07:25:17.540: DEBUG/BLZ20_WRAPPER(9084): btlif_signal_event:  fd (-1:39), bta -1, rc 0, wflags 0x2, port 0
01-09 07:25:17.540: DEBUG/BLZ20_WRAPPER(9084): btlif_signal_event: event BTLIF_BTS_RFC_BIND_RSP matched
01-09 07:25:17.540: DEBUG/BLZ20_WRAPPER(9084): btlif_send_msg_wait_response: unblocked fd (-1:39), bta -1, rc 0, wflags 0x0, port 0
01-09 07:25:17.540: DEBUG/BTL_IFC_WRP(9084): DTUN_MAKE_LOCAL_SERVER_NAME return name: brcm.bt.dtun.9049
01-09 07:25:17.540: DEBUG/BTL_IFC_WRP(9084): wrp_sock_bind: wrp_sock_bind:socket_local_server_bind result:0 server_name:brcm.bt.dtun.9049
01-09 07:25:17.540: DEBUG/BTL_IFC_WRP(9084): wrp_sock_bind: socket_local_server_bind on port 9049
01-09 07:25:17.540: INFO/BLZ20_WRAPPER(9084): blz20_wrp_listen: s 39, backlog 1
01-09 07:25:17.540: DEBUG/BLZ20_WRAPPER(9084): blz20_wrp_listen:  fd (-1:39), bta -1, rc 15, wflags 0x0, port 9049
01-09 07:25:17.540: DEBUG/BTL_IFC_WRP(9084): wrp_sock_listen_bl: wrp_sock_listen_bl : fd 39 brcm.bt.dtun:9049 backlog 1
01-09 07:25:17.540: DEBUG/BLZ20_WRAPPER(9084): btlif_send_msg_wait_response: send BTLIF_BTS_RFC_LISTEN_REQ, wait for |BTLIF_BTS_RFC_LISTEN_RSP|
01-09 07:25:17.540: INFO/BTL_IFC(9084): send_ctrl_msg: [BTL_IFC CTRL] send BTLIF_BTS_RFC_LISTEN_REQ (BTS) 24 pbytes (hdl 38)
01-09 07:25:17.540: DEBUG/(7559): btlif_bts_api_ctrl_cb: btlif_bts_api_ctrl_cb : id BTLIF_BTS_RFC_LISTEN_REQ (4463) on hdl 20
01-09 07:25:17.540: INFO/(7559): btlif_rfc_listen_req: Allocated supplied server channel 15
01-09 07:25:17.540: DEBUG/(7559): bts_chan_dump_all: ### channel list ###
01-09 07:25:17.550: DEBUG/(7559): bts_chan_dump_all:  type 0, dhdl -1, bta_hdl 4660, scn 15, phdl 65535, lstpnd 0, 39:-1 (L:D)
01-09 07:25:17.550: INFO/(7559): btlif_rfc_listen_req: start rfcomm server on scn 15, role 1, sec_mask 0x30, btlifport 9049
01-09 07:25:17.550: INFO/(7559): jw_if_rfcomm_srv_cback: [BTA_JV_RFCOMM_START_EVT] start status: 0, handle:0, security id: 47
01-09 07:25:17.550: INFO/(7559): jv_rfc_srv_listen_started: jv_rfc_srv_listen_started
01-09 07:25:17.550: INFO/BTL-IFS(7559): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_BTS_RFC_LISTEN_RSP (BTS) 17 pbytes (hdl 20)
01-09 07:25:17.550: INFO/BTL_IFC(9084): btl_ifc_ctrl_rx: [BTL_IFC CTRL] recv BTLIF_BTS_RFC_LISTEN_RSP (BTS) 19 pbytes (hdl 38)
01-09 07:25:17.550: INFO/BLZ20_WRAPPER(9084): btlif_ctrl_callback: btlif_ctrl_callback : msg id BTLIF_BTS_RFC_LISTEN_RSP
01-09 07:25:17.550: INFO/BLZ20_WRAPPER(9084): btlif_process_listen_rsp: listen response for bta hdl 0
01-09 07:25:17.550: DEBUG/BLZ20_WRAPPER(9084): btlif_signal_event:  fd (39:39), bta 0, rc 15, wflags 0x8, port 9049
01-09 07:25:17.550: DEBUG/BLZ20_WRAPPER(9084): btlif_signal_event: event BTLIF_BTS_RFC_LISTEN_RSP matched
01-09 07:25:17.550: DEBUG/BLZ20_WRAPPER(9084): btlif_send_msg_wait_response: unblocked fd (39:39), bta 0, rc 15, wflags 0x0, port 9049
01-09 07:25:17.550: INFO/BLZ20_WRAPPER(9084): __listen_prot_rfcomm: success, scn 15
01-09 07:25:17.570: INFO/DTUN_CLNT(7572):     Client calling DTUN_METHOD_DM_ADD_SDP_REC (id 17)
01-09 07:25:17.570: INFO/(7559): DTUN_ReceiveCtrlMsg: [DTUN] Received message [BTLIF_DTUN_METHOD_CALL] 4354
01-09 07:25:17.570: INFO/(7559): handle_method_call: handle_method_call :: received DTUN_METHOD_DM_ADD_SDP_REC (id 17), len 270
01-09 07:25:17.570: INFO/(7559): btapp_bts_convert_rc_chan_to_scn: found scn 15
01-09 07:25:17.570: INFO/BTL-IFS(7559): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_DTUN_SIGNAL_EVT (CTRL) 12 pbytes (hdl 15)
01-09 07:25:17.570: INFO/DTUN_HCID4(7572): dtun_dm_sig_sdp_rec_handle: handle = 0x10007
01-09 07:25:17.580: DEBUG/BluetoothService(99): new handle 0
01-09 07:25:24.130: DEBUG/Mia Applicazione(9084): Entro nella run()
01-09 07:25:24.130: DEBUG/Mia Applicazione(9084): Entro nel ciclo while
01-09 07:25:24.130: DEBUG/SERVERSOCKET(9084): Inizio Server!
01-09 07:25:25.970: DEBUG/SntpClient(99): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
01-09 07:25:26.060: DEBUG/SntpClient(99): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
01-09 07:25:26.060: DEBUG/SntpClient(99): request time failed: java.net.UnknownHostException: north-america.pool.ntp.org
01-09 07:25:31.083: DEBUG/ASOCKWRP(9084): asocket_accept
01-09 07:25:31.083: DEBUG/ASOCKWRP(9084): asocket_accept:starting poll socket fd:39
01-09 07:25:31.083: INFO/BLZ20_WRAPPER(9084): blz20_wrp_poll: nfds 2, timeout -1 ms
01-09 07:25:31.090: DEBUG/BLZ20_WRAPPER(9084): blz20_wrp_poll: found listen fd in poll fds fd (39:39), bta 0, rc 15, wflags 0x0, port 9049
01-09 07:25:31.090: INFO/BLZ20_WRAPPER(9084): blz20_wrp_poll: blocking call for listen fd, wait for btlif event
01-09 07:25:31.090: DEBUG/BLZ20_WRAPPER(9084): btlif_wait_response: id(s) |BTLIF_BTS_RFC_CON_IND|
01-09 07:25:41.250: DEBUG/BluetoothService(99): Already acquire wake lock for discoverable mode
01-09 07:25:41.260: DEBUG/BluetoothService(99): BT Discoverable for 300 seconds
01-09 07:25:41.280: INFO/DTUN_CLNT(7572):     Client calling DTUN_METHOD_DM_SET_MODE (id 12)
01-09 07:25:41.280: INFO/(7559): DTUN_ReceiveCtrlMsg: [DTUN] Received message [BTLIF_DTUN_METHOD_CALL] 4354
01-09 07:25:41.280: INFO/(7559): handle_method_call: handle_method_call :: received DTUN_METHOD_DM_SET_MODE (id 12), len 1
01-09 07:25:41.290: INFO//system/bin/btld(7558):         btapp_dm_SetMode()
01-09 07:25:41.290: INFO//system/bin/btld(7558): ##### USerial_Ioctl: BT_Wake, 0x8003 ####
01-09 07:25:41.290: ERROR/BluetoothEventLoop.cpp(99): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/7572/hci0
01-09 07:25:41.890: INFO//system/bin/btld(7558): ##### USerial_Ioctl: BT_Sleep, 0x8004 ####
01-09 07:25:51.322: WARN/ActivityManager(99): Launch timeout has expired, giving up wake lock!
01-09 07:25:51.580: WARN/ActivityManager(99): Activity idle timeout for HistoryRecord{44e55510 my.hes/.testConnection}
01-09 07:25:56.700: DEBUG/dalvikvm(504): GC_EXPLICIT freed 888 objects / 60056 bytes in 121ms
01-09 07:26:05.350: DEBUG/dalvikvm(175): GC_EXPLICIT freed 1344 objects / 68296 bytes in 150ms
01-09 07:26:27.200: INFO//system/bin/btld(7558): ##### USerial_Ioctl: BT_Wake, 0x8003 ####
01-09 07:26:27.366: WARN/BTLD(7559): l2c_link_hci_conn_comp(222L):p_lcb->is_bonding:0
01-09 07:26:27.370: WARN/BTLD(7559): info:x0
01-09 07:26:27.370: INFO/BTL-IFS(7559): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_DTUN_SIGNAL_EVT (CTRL) 10 pbytes (hdl 15)
01-09 07:26:27.370: DEBUG/DTUN_HCID4(7572):         dtun_dm_sig_link_up()
01-09 07:26:27.370: INFO/DTUN_HCID4(7572): dtun_dm_sig_link_up: dummy_handle = 285
01-09 07:26:27.370: DEBUG/ADAPTER(7572): adapter_get_device(00:23:B4:42:B1:C2)
01-09 07:26:27.370: DEBUG/ADAPTER(7572): adapter_create_device(00:23:B4:42:B1:C2)
01-09 07:26:27.370: DEBUG/DEVICE(7572): Creating device /org/bluez/7572/hci0/dev_00_23_B4_42_B1_C2
01-09 07:26:27.380: DEBUG/DEVICE(7572): Creating device [address = 00:23:B4:42:B1:C2] /org/bluez/7572/hci0/dev_00_23_B4_42_B1_C2 [name = Bazinga]
01-09 07:26:27.380: DEBUG/DEVICE(7572): btd_device_ref(0xfef8): ref=1
01-09 07:26:27.380: ERROR/BluetoothEventLoop.cpp(99): event_filter: Received signal org.bluez.Adapter:DeviceCreated from /org/bluez/7572/hci0
01-09 07:26:27.390: ERROR/BluetoothEventLoop.cpp(99): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/7572/hci0
01-09 07:26:27.400: ERROR/BluetoothEventLoop.cpp(99): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/7572/hci0/dev_00_23_B4_42_B1_C2
01-09 07:26:27.410: WARN/BTLD(7559): ccb timer ticks: 2147483648
01-09 07:26:27.490: WARN/BTLD(7559): ccb timer ticks: 2147483648
01-09 07:26:27.660: INFO/BTL-IFS(7559): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_DTUN_SIGNAL_EVT (CTRL) 258 pbytes (hdl 15)
01-09 07:26:27.660: ERROR/BTLD(7559): btui_security_cback - BTA_DM_PIN_REQ_EVT : B, a, z, i n, m
01-09 07:26:27.660: INFO/BTL-IFS(7559): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_DTUN_SIGNAL_EVT (CTRL) 14 pbytes (hdl 15)
01-09 07:26:27.660: DEBUG/DTUN_HCID4(7572):         dtun_dm_sig_rmt_name()
01-09 07:26:27.660: DEBUG/DTUN_HCID4(7572):         dtun_dm_sig_pin_req()
01-09 07:26:27.670: DEBUG/ADAPTER(7572): adapter_get_device(00:23:B4:42:B1:C2)
01-09 07:26:27.670: DEBUG/DEVICE(7572): /org/bluez/7572/hci0/dev_00_23_B4_42_B1_C2: requesting agent authentication
01-09 07:26:27.670: INFO/BluetoothEventLoop.cpp(99): agent_event_filter: Received method org.bluez.Agent:RequestPinCode
01-09 07:26:27.680: DEBUG/BluetoothService(99): 00:23:B4:42:B1:C2 bond state 10 -> 11 (0)
01-09 07:26:27.720: VERBOSE/BluetoothEventRedirector(504): Received android.bluetooth.device.action.BOND_STATE_CHANGED
01-09 07:26:27.720: DEBUG/BluetoothService(99): updateDeviceServiceChannelCache(00:23:B4:42:B1:C2)
01-09 07:26:27.730: ERROR/CachedBluetoothDeviceManager(504): Got bonding state changed for 00:23:B4:42:B1:C2, but we have no record of that device.
01-09 07:26:27.930: INFO/LSState(99): EventReceiver:android.intent.action.NOTIFICATION_ADD
01-09 07:26:28.400: INFO//system/bin/btld(7558): ##### USerial_Ioctl: BT_Sleep, 0x8004 ####
01-09 07:26:32.520: INFO//system/bin/btld(7558): ##### USerial_Ioctl: BT_Wake, 0x8003 ####
01-09 07:26:33.230: INFO//system/bin/btld(7558): ##### USerial_Ioctl: BT_Sleep, 0x8004 ####
01-09 07:26:52.592: WARN/BTLD(7559): l2cu_release_ccb(1420L):p_lcb->is_bonding:1,p_lcb->idle_timeout:4 returned!
01-09 07:26:52.600: INFO//system/bin/btld(7558): ##### USerial_Ioctl: BT_Wake, 0x8003 ####
01-09 07:26:53.320: INFO//system/bin/btld(7558): ##### USerial_Ioctl: BT_Sleep, 0x8004 ####
01-09 07:26:55.570: INFO/BTL-IFS(7559): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_DTUN_SIGNAL_EVT (CTRL) 29 pbytes (hdl 15)
01-09 07:26:55.570: INFO/BTL-IFS(7559): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_DTUN_SIGNAL_EVT (CTRL) 11 pbytes (hdl 15)
01-09 07:26:55.570: WARN/BTLD(7559): btui_security_cback( LINK FAILURE:: hci status: 14) 8==link super to
01-09 07:26:55.570: WARN/BTLD(7559): for bd_addr: x00:x23:xb4:x42:xb1:xc2
01-09 07:26:55.570: INFO/DTUN_HCID4(7572): dtun_dm_sig_auth_comp status: 19
01-09 07:26:55.570: DEBUG/DBUS-HCI(7572): hcid_dbus_bonding_process_complete: status=13
01-09 07:26:55.570: DEBUG/ADAPTER(7572): adapter_get_device(00:23:B4:42:B1:C2)
01-09 07:26:55.580: ERROR/BluetoothEventLoop.cpp(99): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/7572/hci0/dev_00_23_B4_42_B1_C2
01-09 07:26:55.580: DEBUG/BluetoothService(99): 00:23:B4:42:B1:C2 bond state 11 -> 10 (0)
01-09 07:26:55.580: WARN/BluetoothService(99): setBondState() called to unbond device, but reason code is invalid. Overriding reason code with BOND_RESULT_REMOVED
01-09 07:26:55.590: DEBUG/DTUN_HCID4(7572):         dtun_dm_sig_link_down()
01-09 07:26:55.590: INFO/DTUN_HCID4(7572): dtun_dm_sig_link_down device = 0xfef8 handle = 285 reason = 14
01-09 07:26:55.600: DEBUG/DEVICE(7572): /org/bluez/7572/hci0/dev_00_23_B4_42_B1_C2: canceling authentication request
01-09 07:26:55.610: INFO/BluetoothA2dpService(99): setSinkPriority = Off
01-09 07:26:55.620: INFO/BluetoothHeadsetService(170): Remote device un-paired mLastHeadsetName = null device.name = Bazinga
01-09 07:26:55.650: DEBUG/ADAPTER(7572): Removing temporary device /org/bluez/7572/hci0/dev_00_23_B4_42_B1_C2
01-09 07:26:55.650: VERBOSE/BluetoothEventRedirector(504): Received android.bluetooth.device.action.BOND_STATE_CHANGED
01-09 07:26:55.660: ERROR/CachedBluetoothDeviceManager(504): Got bonding state changed for 00:23:B4:42:B1:C2, but we have no record of that device.
01-09 07:26:55.660: WARN/CachedBluetoothDeviceManager(504): showUnbondMessage: Not displaying any message for reason:9
01-09 07:26:55.680: ERROR/BluetoothEventLoop.cpp(99): event_filter: Received signal org.bluez.Device:PropertyChanged from /org/bluez/7572/hci0/dev_00_23_B4_42_B1_C2
01-09 07:26:55.690: DEBUG/DEVICE(7572): Removing device /org/bluez/7572/hci0/dev_00_23_B4_42_B1_C2
01-09 07:26:55.690: DEBUG/DEVICE(7572): btd_device_unref(0xfef8): ref=0
01-09 07:26:55.700: DEBUG/DEVICE(7572): device_free(0xfef8)
01-09 07:26:55.750: INFO/BluetoothEventLoop.cpp(99): agent_event_filter: Received method org.bluez.Agent:Cancel
01-09 07:26:55.750: ERROR/lights(99): write ok string=0,len=1
01-09 07:26:55.760: ERROR/lights(99): write ok string=0,len=1
01-09 07:26:55.760: ERROR/lights(99): write ok string=0 0,len=3
01-09 07:26:55.770: ERROR/lights(99): write ok string=1,len=1
01-09 07:26:55.780: ERROR/BluetoothEventLoop.cpp(99): event_filter: Received signal org.bluez.Adapter:PropertyChanged from /org/bluez/7572/hci0
01-09 07:26:55.790: ERROR/lights(99): write ok string=0,len=1
01-09 07:26:55.790: ERROR/lights(99): write ok string=0 0,len=3
01-09 07:26:55.800: ERROR/BluetoothEventLoop.cpp(99): event_filter: Received signal org.bluez.Adapter:DeviceRemoved from /org/bluez/7572/hci0
01-09 07:26:55.800: DEBUG/NotificationService(99): cancelNotification, ACTION_NOTIFICATION_REMOVE,pkg=com.android.settings,id=17301632
01-09 07:26:55.820: VERBOSE/BluetoothEventRedirector(504): Received android.bluetooth.device.action.PAIRING_CANCEL
01-09 07:26:55.860: INFO/LSState(99): EventReceiver:android.intent.action.NOTIFICATION_REMOVE
01-09 07:27:05.270: DEBUG/dalvikvm(504): GC_EXPLICIT freed 529 objects / 29176 bytes in 118ms
« Ultima modifica: 20 Aprile 2011, 15:29:30 CEST da Ricky`, Reason: tag code per il logcat »