interfacing bluetooth with imx6q

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

interfacing bluetooth with imx6q

910 Views
amitkulkarni
Contributor II

We are trying to integrated murata type1CK board with imx6q platform running on android 7.0 . We want to make bluetooth interface. When i turn on bluetooth from GUI, im getting following Logcat. It says that timer has expired & it doesn't work

Please guide here

--------- beginning of system
01-01 00:05:57.021 545 574 D BluetoothManagerService: enable(com.android.settings): mBluetooth =null mBinding = false mState = OFF
01-01 00:05:57.022 545 574 D BluetoothManagerService: enable returning
01-01 00:05:57.023 545 564 D BluetoothManagerService: MESSAGE_ENABLE(0): mBluetooth = null
01-01 00:05:57.028 271 327 I audio_hw_primary: start_output_stream_primary... -1349175552, device 1024
01-01 00:05:57.028 271 327 W audio_hw_primary: card 2, port 0 device 0x400
01-01 00:05:57.028 271 327 W audio_hw_primary: rate 44100, channel 2 period_size 0x300
01-01 00:05:57.047 545 564 I ActivityManager: Start proc 1381:com.android.bluetooth/1002 for service com.android.bluetooth/.btservice.AdapterService
01-01 00:05:57.221 1381 1381 D AdapterServiceConfig: Adding HeadsetService
01-01 00:05:57.222 1381 1381 D AdapterServiceConfig: Adding A2dpService
01-01 00:05:57.222 1381 1381 D AdapterServiceConfig: Adding A2dpSinkService
01-01 00:05:57.222 1381 1381 D AdapterServiceConfig: Adding HidService
01-01 00:05:57.222 1381 1381 D AdapterServiceConfig: Adding HealthService
01-01 00:05:57.223 1381 1381 D AdapterServiceConfig: Adding PanService
01-01 00:05:57.223 1381 1381 D AdapterServiceConfig: Adding GattService
01-01 00:05:57.224 1381 1381 D AdapterServiceConfig: Adding BluetoothMapService
01-01 00:05:57.224 1381 1381 D AdapterServiceConfig: Adding AvrcpControllerService
01-01 00:05:57.361 1381 1381 D BluetoothAdapterService: onCreate()
01-01 00:05:57.369 1381 1381 D BluetoothAdapterState: make() - Creating AdapterState
01-01 00:05:57.374 1381 1381 I bt_btif : init
01-01 00:05:57.374 1381 1395 I BluetoothAdapterState: Entering OffState
01-01 00:05:57.374 1381 1396 W bt_osi_thread: run_thread: thread id 1396, thread name stack_manager started
01-01 00:05:57.375 1381 1396 I bt_stack_manager: event_init_stack is initializing the stack
01-01 00:05:57.375 1381 1396 I bt_core_module: module_init Initializing module "osi_module"
01-01 00:05:57.375 1381 1396 I bt_core_module: module_init Initialized module "osi_module"
01-01 00:05:57.375 1381 1396 I bt_core_module: module_init Initializing module "bt_utils_module"
01-01 00:05:57.375 1381 1396 I bt_core_module: module_init Initialized module "bt_utils_module"
01-01 00:05:57.375 1381 1396 I bt_core_module: module_init Initializing module "btif_config_module"
01-01 00:05:57.377 1381 1399 W bt_osi_thread: run_thread: thread id 1399, thread name alarm_default_ca started
01-01 00:05:57.378 1381 1400 W bt_osi_thread: run_thread: thread id 1400, thread name alarm_dispatcher started
01-01 00:05:57.378 1381 1396 I bt_core_module: module_init Initialized module "btif_config_module"
01-01 00:05:57.378 1381 1396 I bt_core_module: module_init Initializing module "interop_module"
01-01 00:05:57.379 1381 1396 I bt_core_module: module_init Initialized module "interop_module"
01-01 00:05:57.379 1381 1396 I bt_core_module: module_init Initializing module "stack_config_module"
01-01 00:05:57.379 1381 1396 I bt_stack_config: init attempt to load stack conf from /etc/bluetooth/bt_stack.conf
01-01 00:05:57.379 1381 1396 I bt_core_module: module_init Initialized module "stack_config_module"
01-01 00:05:57.380 1381 1401 W bt_osi_thread: run_thread: thread id 1401, thread name bt_jni_workqueue started
01-01 00:05:57.381 1381 1396 I bt_stack_manager: event_init_stack finished
01-01 00:05:57.381 1381 1381 I bt_osi_wakelock: wakelock_set_os_callouts set to non-native
01-01 00:05:57.381 1381 1381 I bt_btif : get_profile_interface socket
01-01 00:05:57.385 1381 1401 D BluetoothAdapterProperties: Address is:22:22:89:D9:C0:53
01-01 00:05:57.387 545 545 D BluetoothManagerService: Bluetooth Adapter name changed to iMX6
01-01 00:05:57.388 545 545 D BluetoothManagerService: Stored Bluetooth name: iMX6
01-01 00:05:57.388 1381 1401 D BluetoothAdapterProperties: Name is: iMX6
01-01 00:05:57.388 1381 1381 I bt_btif : get_profile_interface sdp
01-01 00:05:57.397 1381 1381 D BluetoothAdapterService: setAdapterService() - set to: null
01-01 00:05:57.397 1381 1381 D BluetoothAdapterService: onBind()
01-01 00:05:57.398 545 545 D BluetoothManagerService: BluetoothServiceConnection: com.android.bluetooth.btservice.AdapterService
01-01 00:05:57.398 545 564 D BluetoothManagerService: MESSAGE_BLUETOOTH_SERVICE_CONNECTED: 1
01-01 00:05:57.400 1381 1392 I bt_btif : config_hci_snoop_log
01-01 00:05:57.402 545 564 D BluetoothManagerService: Broadcasting onBluetoothServiceUp() to 5 receivers.
01-01 00:05:57.403 545 564 D BluetoothAdapter: onBluetoothServiceUp: android.bluetooth.IBluetooth$Stub$Proxy@d945e17
01-01 00:05:57.403 1381 1392 D BluetoothAdapter: onBluetoothServiceUp: com.android.bluetooth.btservice.AdapterService$AdapterServiceBinder@c3590fd
01-01 00:05:57.404 668 769 D BluetoothAdapter: onBluetoothServiceUp: android.bluetooth.IBluetooth$Stub$Proxy@fb0037
01-01 00:05:57.404 815 833 D BluetoothAdapter: onBluetoothServiceUp: android.bluetooth.IBluetooth$Stub$Proxy@eaba404
01-01 00:05:57.404 1381 1392 D BluetoothAdapterService: enable() - Enable called with quiet mode status = false
01-01 00:05:57.405 1381 1395 D BluetoothAdapterState: Current state: OFF, message: 0
01-01 00:05:57.405 1381 1395 D BluetoothAdapterProperties: Setting state to 14
01-01 00:05:57.405 746 760 D BluetoothAdapter: onBluetoothServiceUp: android.bluetooth.IBluetooth$Stub$Proxy@44abaf1
01-01 00:05:57.405 1381 1395 I BluetoothAdapterState: Bluetooth adapter state changed: 10-> 14
01-01 00:05:57.405 1381 1395 D BluetoothAdapterService: updateAdapterState() - Broadcasting state to 1 receivers.
01-01 00:05:57.406 1381 1395 D BluetoothAdapterService: BleOnProcessStart()
01-01 00:05:57.406 545 564 D BluetoothManagerService: MESSAGE_BLUETOOTH_STATE_CHANGE: OFF > BLE_TURNING_ON
01-01 00:05:57.406 545 564 D BluetoothManagerService: Sending BLE State Change: OFF > BLE_TURNING_ON
01-01 00:05:57.406 1381 1395 D BluetoothAdapterService: BleOnProcessStart() - Make Bond State Machine
01-01 00:05:57.407 1381 1395 D BluetoothBondStateMachine: make
01-01 00:05:57.410 1381 1402 I BluetoothBondStateMachine: StableState(): Entering Off State
01-01 00:05:57.411 1381 1395 D BluetoothAdapterService: setProfileServiceState() - Starting service com.android.bluetooth.gatt.GattService
01-01 00:05:57.415 1381 1395 I BluetoothAdapterState: Entering PendingCommandState
01-01 00:05:57.417 1381 1381 I BtGatt.JNI: classInitNative(L922): classInitNative: Success!
01-01 00:05:57.423 1381 1381 D BtGatt.DebugUtils: handleDebugAction() action=null
01-01 00:05:57.423 1381 1381 D BluetoothAdapterService: getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@5e3f566
01-01 00:05:57.424 1381 1381 D BtGatt.GattService: Received start request. Starting profile...
01-01 00:05:57.424 1381 1381 D BtGatt.GattService: start()
01-01 00:05:57.424 1381 1381 I bt_btif : get_profile_interface gatt
01-01 00:05:57.425 1381 1381 D BluetoothAdapterService: getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@5e3f566
01-01 00:05:57.426 1381 1381 D BtGatt.AdvertiseManager: advertise manager created
01-01 00:05:57.433 1381 1381 D BluetoothAdapterService: getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@5e3f566
01-01 00:05:57.434 1381 1381 D BluetoothAdapterService: handleMessage() - Message: 1
01-01 00:05:57.434 1381 1381 D BluetoothAdapterService: handleMessage() - MESSAGE_PROFILE_SERVICE_STATE_CHANGED
01-01 00:05:57.434 1381 1381 D BluetoothAdapterService: processProfileServiceStateChanged() serviceName=com.android.bluetooth.gatt.GattService, state=12, doUpdate=true
01-01 00:05:57.434 1381 1381 V BluetoothAdapterState: isTurningOff()=false
01-01 00:05:57.435 1381 1381 V BluetoothAdapterState: isTurningOn()=false
01-01 00:05:57.435 1381 1381 V BluetoothAdapterState: isBleTurningOn()=true
01-01 00:05:57.435 1381 1381 V BluetoothAdapterState: isBleTurningOff()=false
01-01 00:05:57.435 1381 1381 D BluetoothAdapterService: processProfileServiceStateChanged() - serviceName=com.android.bluetooth.gatt.GattService isTurningOn=false isTurningOff=false isBleTurningOn=true isBleTurningOff=false
01-01 00:05:57.436 1381 1381 D BluetoothAdapterService: GattService is started
01-01 00:05:57.436 1381 1395 D BluetoothAdapterState: Current state: PENDING_COMMAND, message: 4
01-01 00:05:57.438 1381 1395 I bt_btif : enable: start restricted = 0
01-01 00:05:57.438 1381 1396 I bt_stack_manager: event_start_up_stack is bringing up the stack
01-01 00:05:57.438 1381 1396 I bt_core_module: module_start_up Starting module "btif_config_module"
01-01 00:05:57.438 1381 1396 I bt_core_module: module_start_up Started module "btif_config_module"
01-01 00:05:57.438 1381 1396 I bt_core_module: module_start_up Starting module "btsnoop_module"
01-01 00:05:57.438 1381 1396 I bt_core_module: module_start_up Started module "btsnoop_module"
01-01 00:05:57.439 1381 1396 I bt_core_module: module_start_up Starting module "hci_module"
01-01 00:05:57.439 1381 1396 I bt_hci : start_up
01-01 00:05:57.439 1381 1405 W bt_osi_thread: run_thread: thread id 1405, thread name hci_thread started
01-01 00:05:57.453 1381 1396 I bt_vendor: alloc value 0x86f19cd5
01-01 00:05:57.454 1381 1396 I bt_vendor: init
01-01 00:05:57.454 1381 1396 I bt_vnd_conf: Attempt to load conf from /etc/bluetooth/bt_vendor.conf
01-01 00:05:57.456 1381 1396 D bt_hci : start_up starting async portion
01-01 00:05:57.456 1381 1405 I bt_hci : event_finish_startup
01-01 00:05:57.456 1381 1405 I bt_hci_h4: hal_open
01-01 00:05:57.456 1381 1405 I bt_userial_vendor: userial vendor open: opening /dev/ttymxc4
01-01 00:05:57.459 1381 1405 I bt_userial_vendor: device fd = 70 open
01-01 00:05:57.459 1381 1406 W bt_osi_thread: run_thread: thread id 1406, thread name hci_single_chann started
01-01 00:06:00.102 271 327 W audio_hw_primary: do_out_standby... -1349175552
01-01 00:06:05.443 1381 1399 E bt_hci : startup_timer_expired
01-01 00:06:05.443 1381 1396 E bt_core_module: module_start_up Failed to start up module "hci_module"
01-01 00:06:05.444 1381 1408 W bt_osi_thread: run_thread: thread id 1408, thread name bt_workqueue started
01-01 00:06:05.444 1381 1408 I bt_btu : btu_task pending for preload complete event
01-01 00:06:05.444 1381 1408 I bt_btu_task: Bluetooth chip preload is complete
01-01 00:06:05.444 1381 1408 I bt_btu : btu_task received preload complete event
01-01 00:06:05.447 1381 1408 I bt_core_module: module_init Initializing module "bte_logmsg_module"
01-01 00:06:05.447 1381 1408 I bt_bte : BTE_InitTraceLevels -- TRC_HCI
01-01 00:06:05.447 1381 1408 I bt_bte : BTE_InitTraceLevels -- TRC_L2CAP
01-01 00:06:05.447 1381 1408 I bt_bte : BTE_InitTraceLevels -- TRC_RFCOMM
01-01 00:06:05.447 1381 1408 I bt_bte : BTE_InitTraceLevels -- TRC_AVDT
01-01 00:06:05.447 1381 1408 I bt_bte : BTE_InitTraceLevels -- TRC_AVRC
01-01 00:06:05.448 1381 1408 I bt_bte : BTE_InitTraceLevels -- TRC_A2D
01-01 00:06:05.448 1381 1408 I bt_bte : BTE_InitTraceLevels -- TRC_BNEP
01-01 00:06:05.448 1381 1408 I bt_bte : BTE_InitTraceLevels -- TRC_BTM
01-01 00:06:05.448 1381 1408 I bt_bte : BTE_InitTraceLevels -- TRC_GAP
01-01 00:06:05.448 1381 1408 I bt_bte : BTE_InitTraceLevels -- TRC_PAN
01-01 00:06:05.448 1381 1408 I bt_bte : BTE_InitTraceLevels -- TRC_SDP
01-01 00:06:05.448 1381 1408 I bt_bte : BTE_InitTraceLevels -- TRC_GATT
01-01 00:06:05.448 1381 1408 I bt_bte : BTE_InitTraceLevels -- TRC_SMP
01-01 00:06:05.448 1381 1408 I bt_bte : BTE_InitTraceLevels -- TRC_BTAPP
01-01 00:06:05.448 1381 1408 I bt_bte : BTE_InitTraceLevels -- TRC_BTIF
01-01 00:06:05.448 1381 1408 I bt_core_module: module_init Initialized module "bte_logmsg_module"
01-01 00:06:05.449 1381 1409 W bt_osi_thread: run_thread: thread id 1409, thread name module_wrapper started
01-01 00:06:05.450 1381 1409 I bt_core_module: module_start_up Starting module "controller_module"
01-01 00:06:05.462 1381 1399 E bt_hci : command_timed_out hci layer timeout waiting for response to a command. opcode: 0xc03
01-01 00:06:05.462 1381 1399 E bt_hci : command_timed_out restarting the bluetooth process.
01-01 00:06:05.531 545 545 D BluetoothManagerService: BluetoothServiceConnection, disconnected: com.android.bluetooth.btservice.AdapterService
01-01 00:06:05.531 545 574 I ActivityManager: Process com.android.bluetooth (pid 1381) has died
01-01 00:06:05.531 545 574 D ActivityManager: cleanUpApplicationRecord -- 1381
01-01 00:06:05.531 545 564 E BluetoothManagerService: MESSAGE_BLUETOOTH_SERVICE_DISCONNECTED(1)
01-01 00:06:05.532 545 564 D BluetoothManagerService: Broadcasting onBluetoothServiceDown() to 4 receivers.
01-01 00:06:05.532 545 574 W ActivityManager: Scheduling restart of crashed service com.android.bluetooth/.gatt.GattService in 1000ms
01-01 00:06:05.532 545 564 D BluetoothAdapter: onBluetoothServiceDown: android.bluetooth.IBluetooth$Stub$Proxy@d945e17
01-01 00:06:05.532 668 682 D BluetoothAdapter: onBluetoothServiceDown: android.bluetooth.IBluetooth$Stub$Proxy@fb0037
01-01 00:06:05.532 545 574 W ActivityManager: Scheduling restart of crashed service com.android.bluetooth/.btservice.AdapterService in 1000ms
01-01 00:06:05.532 746 1004 D BluetoothAdapter: onBluetoothServiceDown: android.bluetooth.IBluetooth$Stub$Proxy@44abaf1
01-01 00:06:05.532 815 834 D BluetoothAdapter: onBluetoothServiceDown: android.bluetooth.IBluetooth$Stub$Proxy@eaba404
01-01 00:06:05.731 545 564 D BluetoothManagerService: MESSAGE_RESTART_BLUETOOTH_SERVICE

Labels (2)
0 Kudos
1 Reply

507 Views
jamesbone
NXP TechSupport
NXP TechSupport

PLease try to contact Murata  Engineering  imxfaq@murata.com. For more details on how to contact

https://community.nxp.com/docs/DOC-106445 

0 Kudos