Connecting External Bluetooth module to iMX Running Android

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

Connecting External Bluetooth module to iMX Running Android

1,407 Views
jagadeeshmarada
Contributor I

I am having sim800c module from simcom which is having both GSM+bluetooth with it.

how can i used it as a bluetooth adapter connected to my iMX6 q7 Development Board,

i have done the fallowing changes in my android AOSP

#Enable Bluetooth in init.rc file

# Prepare for bluetooth
    chmod 665 /sys/class/rfkill/rfkill0/state
    chown bluetooth net_bt_stack /sys/class/rfkill/rfkill0/state
    write /sys/class/rfkill/rfkill0/state 0

in BoardConfig.mk  file, support is given for Broadcom and qcom modules

 which are present in Hardware/Broadcom, hardware/qcom

how to add vendor specific HAL implementation for simcom800c to work with imx6 q7 board?

will broadcom HAL acts as generic for simcom also?

# However i have enabled broadcom as true for testing purpose

BoardConfig.mk

# Broadcom BCM4339 BT
BOARD_HAVE_BLUETOOTH_BCM := true
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/fsl/imx6q/bluetooth

after successful build here are my logcat prints

01-01 05:34:26.924   516   931 D BluetoothManagerService: enable():  mBluetooth =null mBinding = false mState = 10
01-01 05:34:26.924   516   931 D BluetoothManagerService: enable returning
01-01 05:34:26.924   516   535 D BluetoothManagerService: Message: 1
01-01 05:34:26.924   516   535 D BluetoothManagerService: MESSAGE_ENABLE: mBluetooth = null
01-01 05:34:26.981   516   535 I ActivityManager: Start proc 1399:com.android.bluetooth/1002 for service com.android.bluetooth/.btservice.AdapterService
01-01 05:34:27.128   831   846 D OpenGLRenderer: endAllActiveAnimators on 0x9049db00 (RippleDrawable) with handle 0x90a7d1f0
01-01 05:34:29.244  1394  1395 F libc    : Fatal signal 7 (SIGBUS), code 1, fault addr 0xffffffff in tid 1395 (rild)
01-01 05:34:29.245  1092  1092 W         : debuggerd: handling request: pid=1394 uid=1001 gid=1001 tid=1395
01-01 05:34:29.558   516   533 I BootReceiver: Copying /data/tombstones/tombstone_09 to DropBox (SYSTEM_TOMBSTONE)
01-01 05:34:29.928   516   535 D BluetoothManagerService: Message: 100
01-01 05:34:29.929   516   535 E BluetoothManagerService: MESSAGE_TIMEOUT_BIND
01-01 05:34:29.945   239   269 W audio_hw_primary: do_out_standby... -1364904192
01-01 05:34:33.720  1320  1374 W Ads     : There was a problem getting an ad response. ErrorCode: 0
01-01 05:34:35.705  1320  1371 I cr_LibraryLoader: Time to load native libraries: 15102 ms (timestamps 2816-7918)
01-01 05:34:35.706  1320  1371 I cr_LibraryLoader: Expected native library version number "52.0.2743.100", actual native library version number "52.0.2743.100"
01-01 05:34:35.802  1320  1320 V WebViewChromiumFactoryProvider: Binding Chromium to main looper Looper (main, tid 1) {830d213}
01-01 05:34:35.802  1320  1320 I cr_LibraryLoader: Expected native library version number "52.0.2743.100", actual native library version number "52.0.2743.100"
01-01 05:34:35.840  1399  1399 D AdapterServiceConfig: Adding HeadsetService
01-01 05:34:35.840  1399  1399 D AdapterServiceConfig: Adding A2dpService
01-01 05:34:35.840  1399  1399 D AdapterServiceConfig: Adding A2dpSinkService
01-01 05:34:35.840  1399  1399 D AdapterServiceConfig: Adding HidService
01-01 05:34:35.840  1399  1399 D AdapterServiceConfig: Adding HealthService
01-01 05:34:35.840  1399  1399 D AdapterServiceConfig: Adding PanService
01-01 05:34:35.841  1399  1399 D AdapterServiceConfig: Adding GattService
01-01 05:34:35.841  1399  1399 D AdapterServiceConfig: Adding BluetoothMapService
01-01 05:34:35.841  1399  1399 D AdapterServiceConfig: Adding AvrcpControllerService
01-01 05:34:37.468  1320  1320 I chromium: [INFO:library_loader_hooks.cc(143)] Chromium logging enabled: level = 0, default verbosity = 0
01-01 05:34:37.504  1320  1320 I cr_BrowserStartup: Initializing chromium process, singleProcess=true
01-01 05:34:37.895   516   535 D BluetoothManagerService: Message: 20
01-01 05:34:37.895   516   535 D BluetoothManagerService: Added callback: android.bluetooth.IBluetoothManagerCallback$Stub$Proxy@1c9bb03:true
01-01 05:34:37.896  1399  1399 D BluetoothAdapterService: onCreate()
01-01 05:34:37.899  1399  1399 D BluetoothAdapterState: make() - Creating AdapterState
01-01 05:34:37.903  1399  1399 I bt_btif : init
01-01 05:34:37.903  1399  1425 I BluetoothAdapterState: Entering OffState
01-01 05:34:37.903  1399  1426 W bt_osi_thread: run_thread: thread id 1426, thread name stack_manager started
01-01 05:34:37.903  1399  1426 I bt_stack_manager: event_init_stack is initializing the stack
01-01 05:34:37.904  1399  1426 I bt_core_module: module_init Initializing module "osi_module"
01-01 05:34:37.904  1399  1426 I bt_core_module: module_init Initialized module "osi_module"
01-01 05:34:37.904  1399  1426 I bt_core_module: module_init Initializing module "bt_utils_module"
01-01 05:34:37.904  1399  1426 I bt_core_module: module_init Initialized module "bt_utils_module"
01-01 05:34:37.904  1399  1426 I bt_core_module: module_init Initializing module "btif_config_module"
01-01 05:34:37.936  1320  1376 W art     : Before Android 4.1, method double java.util.concurrent.ThreadLocalRandom.internalNextDouble(double, double) would have incorrectly overridden the package-private method in java.util.Random
01-01 05:34:37.936  1320  1376 W art     : Before Android 4.1, method int java.util.concurrent.ThreadLocalRandom.internalNextInt(int, int) would have incorrectly overridden the package-private method in java.util.Random
01-01 05:34:37.936  1320  1376 W art     : Before Android 4.1, method long java.util.concurrent.ThreadLocalRandom.internalNextLong(long, long) would have incorrectly overridden the package-private method in java.util.Random
01-01 05:34:37.963  1412  1412 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-01 05:34:37.963  1412  1412 F DEBUG   : Build fingerprint: 'Freescale/iWave_G15M_Q7/iWave_G15M_Q7:7.1.1/1.0.0-ga-rc10/20170227:user/release-keys'
01-01 05:34:37.963  1412  1412 F DEBUG   : Revision: '0'
01-01 05:34:37.963  1412  1412 F DEBUG   : ABI: 'arm'
01-01 05:34:37.963  1412  1412 F DEBUG   : pid: 1394, tid: 1395, name: rild  >>> /system/bin/rild <<<
01-01 05:34:37.963  1412  1412 F DEBUG   : signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 0xffffffff
01-01 05:34:37.963  1412  1412 F DEBUG   :     r0 00000000  r1 99d5a34f  r2 b1080500  r3 00000080
01-01 05:34:37.963  1412  1412 F DEBUG   :     r4 b10185f0  r5 ffffffff  r6 ffffffff  r7 b1014570
01-01 05:34:37.963  1412  1412 F DEBUG   :     r8 00000018  r9 0000000b  sl b1014558  fp b0c86018
01-01 05:34:37.963  1412  1412 F DEBUG   :     ip b125a948  sp b0fff668  lr b1239a0f  pc b14563a2  cpsr a0010030
01-01 05:34:37.975  1412  1412 F DEBUG   :
01-01 05:34:37.975  1412  1412 F DEBUG   : backtrace:
01-01 05:34:37.975  1412  1412 F DEBUG   :     #00 pc 000053a2  /system/lib/libsimcomm800c-ril.so (at_response_free+9)
01-01 05:34:37.975  1412  1412 F DEBUG   :     #01 pc 000044f3  /system/lib/libsimcomm800c-ril.so
01-01 05:34:37.975  1412  1412 F DEBUG   :     #02 pc 0000485f  /system/lib/libril.so
01-01 05:34:37.975  1412  1412 F DEBUG   :     #03 pc 0000b0dd  /system/lib/libril.so (_Z14ril_event_loopv+472)
01-01 05:34:37.975  1412  1412 F DEBUG   :     #04 pc 000042ad  /system/lib/libril.so
01-01 05:34:37.975  1412  1412 F DEBUG   :     #05 pc 00046e83  /system/lib/libc.so (_ZL15__pthread_startPv+22)
01-01 05:34:37.975  1412  1412 F DEBUG   :     #06 pc 00019cdd  /system/lib/libc.so (__start_thread+6)
01-01 05:34:38.058   516   610 W NativeCrashListener: Couldn't find ProcessRecord for pid 1394
01-01 05:34:38.058  1412  1412 E         : AM data write failed: Broken pipe
01-01 05:34:38.058  1412  1412 E         : debuggerd: failed to kill process 1394: No such process
01-01 05:34:38.060  1092  1092 W         : debuggerd: resuming target 1394
01-01 05:34:38.591  1399  1445 W bt_osi_thread: run_thread: thread id 1445, thread name alarm_default_ca started
01-01 05:34:38.592  1399  1446 W bt_osi_thread: run_thread: thread id 1446, thread name alarm_dispatcher started
01-01 05:34:38.593  1399  1426 I bt_core_module: module_init Initialized module "btif_config_module"
01-01 05:34:38.593  1399  1426 I bt_core_module: module_init Initializing module "interop_module"
01-01 05:34:38.593  1399  1426 I bt_core_module: module_init Initialized module "interop_module"
01-01 05:34:38.594  1399  1426 I bt_core_module: module_init Initializing module "stack_config_module"
01-01 05:34:38.594  1399  1426 I bt_stack_config: init attempt to load stack conf from /etc/bluetooth/bt_stack.conf
01-01 05:34:38.689  1399  1426 I bt_core_module: module_init Initialized module "stack_config_module"
01-01 05:34:38.689  1399  1447 W bt_osi_thread: run_thread: thread id 1447, thread name bt_jni_workqueue started
01-01 05:34:38.689  1399  1426 I bt_stack_manager: event_init_stack finished
01-01 05:34:38.689  1399  1399 I bt_osi_wakelock: wakelock_set_os_callouts set to non-native
01-01 05:34:38.689  1399  1399 I bt_btif : get_profile_interface socket
01-01 05:34:38.693  1399  1447 D BluetoothAdapterProperties: Address is:22:22:16:B8:51:3E
01-01 05:34:38.693  1399  1399 I bt_btif : get_profile_interface sdp
01-01 05:34:38.695   516   516 D BluetoothManagerService: Bluetooth Adapter name changed to iMX6
01-01 05:34:38.696  1399  1447 D BluetoothAdapterProperties: Name is: iMX6
01-01 05:34:38.696   516   516 D BluetoothManagerService: Stored Bluetooth name: iMX6
01-01 05:34:38.698  1399  1399 D BluetoothAdapterService: setAdapterService() - set to: null
01-01 05:34:38.699  1399  1399 D BluetoothAdapterService: onBind()
01-01 05:34:38.700   516   516 D BluetoothManagerService: BluetoothServiceConnection: com.android.bluetooth.btservice.AdapterService
01-01 05:34:38.700   516   535 D BluetoothManagerService: Message: 40
01-01 05:34:38.700   516   535 D BluetoothManagerService: MESSAGE_BLUETOOTH_SERVICE_CONNECTED: 1
01-01 05:34:38.702  1399  1410 I bt_btif : config_hci_snoop_log
01-01 05:34:38.703   516   535 D BluetoothManagerService: Calling onBluetoothServiceUp callbacks
01-01 05:34:38.703   516   535 D BluetoothManagerService: Broadcasting onBluetoothServiceUp() to 6 receivers.
01-01 05:34:38.704   516   535 D BluetoothAdapter: onBluetoothServiceUp: android.bluetooth.IBluetooth$Stub$Proxy@7df030a
01-01 05:34:38.705  1320  1332 D BluetoothAdapter: onBluetoothServiceUp: android.bluetooth.IBluetooth$Stub$Proxy@4f6719d
01-01 05:34:38.705   598   613 D BluetoothAdapter: onBluetoothServiceUp: android.bluetooth.IBluetooth$Stub$Proxy@8ce5f0f
01-01 05:34:38.705  1399  1411 D BluetoothAdapter: onBluetoothServiceUp: com.android.bluetooth.btservice.AdapterService$AdapterServiceBinder@e49b8da
01-01 05:34:38.705   831   842 D BluetoothAdapter: onBluetoothServiceUp: android.bluetooth.IBluetooth$Stub$Proxy@ae401a2
01-01 05:34:38.706  1399  1411 D BluetoothAdapterService: enable() - Enable called with quiet mode status =  false
01-01 05:34:38.706   818   937 D BluetoothAdapter: onBluetoothServiceUp: android.bluetooth.IBluetooth$Stub$Proxy@3568a8f
01-01 05:34:38.706  1399  1425 D BluetoothAdapterState: Current state: OFF, message: 0
01-01 05:34:38.706  1399  1425 D BluetoothAdapterProperties: Setting state to 14
01-01 05:34:38.706  1399  1425 I BluetoothAdapterState: Bluetooth adapter state changed: 10-> 14
01-01 05:34:38.706  1399  1425 D BluetoothAdapterService: updateAdapterState() - Broadcasting state to 1 receivers.
01-01 05:34:38.707   516   535 D BluetoothManagerService: Message: 60
01-01 05:34:38.707  1399  1425 D BluetoothAdapterService: BleOnProcessStart()
01-01 05:34:38.707   516   535 D BluetoothManagerService: MESSAGE_BLUETOOTH_STATE_CHANGE: prevState = 10, newState =14
01-01 05:34:38.707   516   535 D BluetoothManagerService: bluetoothStateChangeHandler: 10 ->  14
01-01 05:34:38.707   516   535 D BluetoothManagerService: BLE State Change Intent: 10 -> 14
01-01 05:34:38.707  1399  1425 D BluetoothAdapterService: BleOnProcessStart() - Make Bond State Machine
01-01 05:34:38.708  1399  1425 D BluetoothBondStateMachine: make
01-01 05:34:38.710  1399  1448 I BluetoothBondStateMachine: StableState(): Entering Off State
01-01 05:34:38.711  1399  1425 D BluetoothAdapterService: setProfileServiceState() - Starting service com.android.bluetooth.gatt.GattService
01-01 05:34:38.715  1399  1425 I BluetoothAdapterState: Entering PendingCommandState
01-01 05:34:38.716  1399  1399 I BtGatt.JNI: classInitNative(L922): classInitNative: Success!
01-01 05:34:38.719  1399  1399 D BtGatt.DebugUtils: handleDebugAction() action=null
01-01 05:34:38.719  1399  1399 D BluetoothAdapterService: getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@17b54ef
01-01 05:34:38.720  1399  1399 D BtGatt.GattService: Received start request. Starting profile...
01-01 05:34:38.720  1399  1399 D BtGatt.GattService: start()
01-01 05:34:38.721  1399  1399 I bt_btif : get_profile_interface gatt
01-01 05:34:38.721  1399  1399 D BluetoothAdapterService: getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@17b54ef
01-01 05:34:38.722  1399  1399 D BtGatt.AdvertiseManager: advertise manager created
01-01 05:34:38.727  1399  1399 D BluetoothAdapterService: getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@17b54ef
01-01 05:34:38.728  1399  1399 D BluetoothAdapterService: handleMessage() - Message: 1
01-01 05:34:38.728  1399  1399 D BluetoothAdapterService: handleMessage() - MESSAGE_PROFILE_SERVICE_STATE_CHANGED
01-01 05:34:38.728  1399  1399 D BluetoothAdapterService: processProfileServiceStateChanged() serviceName=com.android.bluetooth.gatt.GattService, state=12, doUpdate=true
01-01 05:34:38.728  1399  1399 V BluetoothAdapterState: isTurningOff()=false
01-01 05:34:38.728  1399  1399 V BluetoothAdapterState: isTurningOn()=false
01-01 05:34:38.729  1399  1399 V BluetoothAdapterState: isBleTurningOn()=true
01-01 05:34:38.729  1399  1399 V BluetoothAdapterState: isBleTurningOff()=false
01-01 05:34:38.729  1399  1399 D BluetoothAdapterService: processProfileServiceStateChanged() - serviceName=com.android.bluetooth.gatt.GattService isTurningOn=false isTurningOff=false isBleTurningOn=true isBleTurningOff=false
01-01 05:34:38.729  1399  1399 D BluetoothAdapterService: GattService is started
01-01 05:34:38.729  1399  1425 D BluetoothAdapterState: Current state: PENDING_COMMAND, message: 4
01-01 05:34:38.730  1399  1425 I bt_btif : enable: start restricted = 0
01-01 05:34:38.731  1399  1426 I bt_stack_manager: event_start_up_stack is bringing up the stack
01-01 05:34:38.731  1399  1426 I bt_core_module: module_start_up Starting module "btif_config_module"
01-01 05:34:38.731  1399  1426 I bt_core_module: module_start_up Started module "btif_config_module"
01-01 05:34:38.731  1399  1426 I bt_core_module: module_start_up Starting module "btsnoop_module"
01-01 05:34:38.731  1399  1426 I bt_core_module: module_start_up Started module "btsnoop_module"
01-01 05:34:38.731  1399  1426 I bt_core_module: module_start_up Starting module "hci_module"
01-01 05:34:38.731  1399  1426 I bt_hci  : start_up
01-01 05:34:38.731  1399  1451 W bt_osi_thread: run_thread: thread id 1451, thread name hci_thread started
01-01 05:34:39.433  1399  1426 I bt_vendor: alloc value 0x923a10bd
01-01 05:34:39.433  1399  1426 I bt_vendor: init
01-01 05:34:39.433  1399  1426 I bt_vnd_conf: Attempt to load conf from /etc/bluetooth/bt_vendor.conf
01-01 05:34:39.434  1399  1426 I bt_vnd_conf: vnd_load_conf file >/etc/bluetooth/bt_vendor.conf< not found
01-01 05:34:39.434  1399  1426 E bt_upio : init_rfkill : open(/sys/class/rfkill/rfkill0/type) failed: No such file or directory (2)
01-01 05:34:39.434  1399  1426 E bt_upio : init_rfkill : open(/sys/class/rfkill/rfkill0/type) failed: No such file or directory (2)
01-01 05:34:39.434  1399  1426 D bt_hci  : start_up starting async portion
01-01 05:34:39.434  1399  1451 I bt_hci  : event_finish_startup
01-01 05:34:39.434  1399  1451 I bt_hci_h4: hal_open
01-01 05:34:39.434  1399  1451 I bt_userial_vendor:  MJ: userial vendor open: opening /dev/ttymxc1
01-01 05:34:39.435  1399  1451 E bt_userial_vendor: userial vendor open: unable to open /dev/ttymxc1
01-01 05:34:39.435  1399  1451 E bt_hci_h4: hal_open opened the wrong number of ports: got 0, expected 1.
01-01 05:34:39.435  1399  1451 I bt_hci_h4: hal_close
01-01 05:34:39.435  1399  1451 E bt_hci_h4: In transmit_data, error writing to the uart serial port: Bad file descriptor
01-01 05:34:40.273  1320  1320 I cr_DRP  : No DRP key due to exception:java.lang.ClassNotFoundException: com.android.webview.chromium.Drp
01-01 05:34:40.324  1320  1320 W cr_AwContents: onDetachedFromWindow called when already detached. Ignoring
01-01 05:34:40.348  1320  1320 I cr_Ime  : ImeThread is not enabled.
01-01 05:34:40.366   516   913 W WindowManager: Failed looking up window
01-01 05:34:40.366   516   913 W WindowManager: java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@52d9343 does not exist
01-01 05:34:40.366   516   913 W WindowManager:     at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9415)
01-01 05:34:40.366   516   913 W WindowManager:     at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:9406)
01-01 05:34:40.366   516   913 W WindowManager:     at com.android.server.wm.WindowManagerService.removeWindow(WindowManagerService.java:2387)
01-01 05:34:40.366   516   913 W WindowManager:     at com.android.server.wm.Session.remove(Session.java:193)
01-01 05:34:40.366   516   913 W WindowManager:     at android.view.IWindowSession$Stub.onTransact(IWindowSession.java:242)
01-01 05:34:40.366   516   913 W WindowManager:     at com.android.server.wm.Session.onTransact(Session.java:136)
01-01 05:34:40.366   516   913 W WindowManager:     at android.os.Binder.execTransact(Binder.java:565)
01-01 05:34:40.368  1320  1320 W Ads     : Failed to load ad: 0
01-01 05:34:42.225  1439  1440 F libc    : Fatal signal 7 (SIGBUS), code 1, fault addr 0xffffffff in tid 1440 (rild)
01-01 05:34:42.226  1092  1092 W         : debuggerd: handling request: pid=1439 uid=1001 gid=1001 tid=1440
01-01 05:34:45.716  1320  1455 E chromium: [ERROR:sys_info_android.cc(134)] Can't parse dalvik.vm.heapsize:
01-01 05:34:45.779  1320  1461 E libEGL  : validate_display:99 error 3008 (EGL_BAD_DISPLAY)
01-01 05:34:45.809  1320  1461 W VideoCapabilities: Unrecognized profile/level 32768/2 for video/mp4v-es
01-01 05:34:45.809  1320  1461 W VideoCapabilities: Unrecognized profile/level 32768/64 for video/mp4v-es
01-01 05:34:45.816  1320  1461 W VideoCapabilities: Unrecognized profile/level 0/0 for video/mpeg2
01-01 05:34:45.816  1320  1461 W VideoCapabilities: Unrecognized profile/level 0/2 for video/mpeg2
01-01 05:34:45.816  1320  1461 W VideoCapabilities: Unrecognized profile/level 0/3 for video/mpeg2
01-01 05:34:45.824  1320  1461 W VideoCapabilities: Unsupported mime video/x-pn-realvideo
01-01 05:34:45.827  1320  1461 W VideoCapabilities: Unsupported mime video/x-divx
01-01 05:34:45.830  1320  1461 W VideoCapabilities: Unsupported mime video/x-div4
01-01 05:34:45.833  1320  1461 W VideoCapabilities: Unsupported mime video/x-div3
01-01 05:34:45.836  1320  1461 W VideoCapabilities: Unsupported mime video/x-xvid
01-01 05:34:45.839  1320  1461 W VideoCapabilities: Unsupported mime video/x-j2c
01-01 05:34:45.842  1320  1461 W VideoCapabilities: Unsupported mime video/x-flash-video
01-01 05:34:45.850  1320  1461 W AudioCapabilities: Unsupported mime audio/aac-fsl
01-01 05:34:45.851  1320  1461 W AudioCapabilities: Unsupported mime audio/x-monkeys-audio
01-01 05:34:45.877  1320  1461 I VideoCapabilities: Unsupported profile 4 for video/mp4v-es
01-01 05:34:46.734  1399  1445 E bt_hci  : startup_timer_expired
01-01 05:34:46.734  1399  1426 E bt_core_module: module_start_up Failed to start up module "hci_module"
01-01 05:34:46.736  1399  1465 W bt_osi_thread: run_thread: thread id 1465, thread name bt_workqueue started
01-01 05:34:46.736  1399  1465 I bt_btu  : btu_task pending for preload complete event
01-01 05:34:46.736  1399  1465 I bt_btu_task: Bluetooth chip preload is complete
01-01 05:34:46.736  1399  1465 I bt_btu  : btu_task received preload complete event
01-01 05:34:46.738  1399  1465 I bt_core_module: module_init Initializing module "bte_logmsg_module"
01-01 05:34:46.738  1399  1465 I bt_bte  : BTE_InitTraceLevels -- TRC_HCI
01-01 05:34:46.738  1399  1465 I bt_bte  : BTE_InitTraceLevels -- TRC_L2CAP
01-01 05:34:46.738  1399  1465 I bt_bte  : BTE_InitTraceLevels -- TRC_RFCOMM
01-01 05:34:46.738  1399  1465 I bt_bte  : BTE_InitTraceLevels -- TRC_AVDT
01-01 05:34:46.738  1399  1465 I bt_bte  : BTE_InitTraceLevels -- TRC_AVRC
01-01 05:34:46.739  1399  1465 I bt_bte  : BTE_InitTraceLevels -- TRC_A2D
01-01 05:34:46.739  1399  1465 I bt_bte  : BTE_InitTraceLevels -- TRC_BNEP
01-01 05:34:46.739  1399  1465 I bt_bte  : BTE_InitTraceLevels -- TRC_BTM
01-01 05:34:46.739  1399  1465 I bt_bte  : BTE_InitTraceLevels -- TRC_GAP
01-01 05:34:46.739  1399  1465 I bt_bte  : BTE_InitTraceLevels -- TRC_PAN
01-01 05:34:46.739  1399  1465 I bt_bte  : BTE_InitTraceLevels -- TRC_SDP
01-01 05:34:46.739  1399  1465 I bt_bte  : BTE_InitTraceLevels -- TRC_GATT
01-01 05:34:46.739  1399  1465 I bt_bte  : BTE_InitTraceLevels -- TRC_SMP
01-01 05:34:46.739  1399  1465 I bt_bte  : BTE_InitTraceLevels -- TRC_BTAPP
01-01 05:34:46.739  1399  1465 I bt_bte  : BTE_InitTraceLevels -- TRC_BTIF
01-01 05:34:46.739  1399  1465 I bt_core_module: module_init Initialized module "bte_logmsg_module"
01-01 05:34:46.740  1399  1466 W bt_osi_thread: run_thread: thread id 1466, thread name module_wrapper started
01-01 05:34:46.741  1399  1466 I bt_core_module: module_start_up Starting module "controller_module"
01-01 05:34:47.435  1399  1445 E bt_hci  : command_timed_out hci layer timeout waiting for response to a command. opcode: 0xc03
01-01 05:34:47.435  1399  1445 E bt_hci  : command_timed_out restarting the bluetooth process.
01-01 05:34:47.487   516   516 D BluetoothManagerService: BluetoothServiceConnection, disconnected: com.android.bluetooth.btservice.AdapterService
01-01 05:34:47.487   516   535 D BluetoothManagerService: Message: 41
01-01 05:34:47.487   516   535 E BluetoothManagerService: MESSAGE_BLUETOOTH_SERVICE_DISCONNECTED: 1
01-01 05:34:47.487   516   725 I ActivityManager: Process com.android.bluetooth (pid 1399) has died
01-01 05:34:47.487   516   725 D ActivityManager: cleanUpApplicationRecord -- 1399
01-01 05:34:47.487   516   535 D BluetoothManagerService: Calling onBluetoothServiceDown callbacks
01-01 05:34:47.487   516   535 D BluetoothManagerService: Broadcasting onBluetoothServiceDown() to 5 receivers.
01-01 05:34:47.488   516   535 D BluetoothAdapter: onBluetoothServiceDown: android.bluetooth.IBluetooth$Stub$Proxy@7df030a
01-01 05:34:47.488   516   725 W ActivityManager: Scheduling restart of crashed service com.android.bluetooth/.btservice.AdapterService in 1000ms
01-01 05:34:47.488   516   725 W ActivityManager: Scheduling restart of crashed service com.android.bluetooth/.gatt.GattService in 11000ms
01-01 05:34:47.488   831   843 D BluetoothAdapter: onBluetoothServiceDown: android.bluetooth.IBluetooth$Stub$Proxy@ae401a2
01-01 05:34:47.489   818   938 D BluetoothAdapter: onBluetoothServiceDown: android.bluetooth.IBluetooth$Stub$Proxy@3568a8f
01-01 05:34:47.490  1320  1331 D BluetoothAdapter: onBluetoothServiceDown: android.bluetooth.IBluetooth$Stub$Proxy@4f6719d
01-01 05:34:47.489   598   612 D BluetoothAdapter: onBluetoothServiceDown: android.bluetooth.IBluetooth$Stub$Proxy@8ce5f0f
01-01 05:34:47.688   516   535 D BluetoothManagerService: Message: 42
01-01 05:34:47.688   516   535 D BluetoothManagerService: MESSAGE_RESTART_BLUETOOTH_SERVICE: Restart IBluetooth service
01-01 05:34:47.703   516   535 I ActivityManager: Start proc 1467:com.android.bluetooth/1002 for service com.android.bluetooth/.btservice.AdapterService
01-01 05:34:47.794  1467  1467 D AdapterServiceConfig: Adding HeadsetService
01-01 05:34:47.794  1467  1467 D AdapterServiceConfig: Adding A2dpService
01-01 05:34:47.794  1467  1467 D AdapterServiceConfig: Adding A2dpSinkService
01-01 05:34:47.794  1467  1467 D AdapterServiceConfig: Adding HidService
01-01 05:34:47.794  1467  1467 D AdapterServiceConfig: Adding HealthService
01-01 05:34:47.794  1467  1467 D AdapterServiceConfig: Adding PanService
01-01 05:34:47.794  1467  1467 D AdapterServiceConfig: Adding GattService
01-01 05:34:47.794  1467  1467 D AdapterServiceConfig: Adding BluetoothMapService
01-01 05:34:47.795  1467  1467 D AdapterServiceConfig: Adding AvrcpControllerService
01-01 05:34:47.838   516   535 D BluetoothManagerService: Message: 20
01-01 05:34:47.838   516   535 D BluetoothManagerService: Added callback: android.bluetooth.IBluetoothManagerCallback$Stub$Proxy@18e6adc:true
01-01 05:34:47.838  1467  1467 D BluetoothAdapterService: onCreate()
01-01 05:34:47.841  1467  1467 D BluetoothAdapterState: make() - Creating AdapterState
01-01 05:34:47.844  1467  1467 I bt_btif : init
01-01 05:34:47.844  1467  1480 I BluetoothAdapterState: Entering OffState
01-01 05:34:47.845  1467  1481 W bt_osi_thread: run_thread: thread id 1481, thread name stack_manager started
01-01 05:34:47.845  1467  1481 I bt_stack_manager: event_init_stack is initializing the stack
01-01 05:34:47.845  1467  1481 I bt_core_module: module_init Initializing module "osi_module"
01-01 05:34:47.846  1467  1481 I bt_core_module: module_init Initialized module "osi_module"
01-01 05:34:47.846  1467  1481 I bt_core_module: module_init Initializing module "bt_utils_module"
01-01 05:34:47.846  1467  1481 I bt_core_module: module_init Initialized module "bt_utils_module"
01-01 05:34:47.846  1467  1481 I bt_core_module: module_init Initializing module "btif_config_module"
01-01 05:34:47.847  1467  1484 W bt_osi_thread: run_thread: thread id 1484, thread name alarm_default_ca started
01-01 05:34:47.848  1467  1485 W bt_osi_thread: run_thread: thread id 1485, thread name alarm_dispatcher started
01-01 05:34:47.848  1467  1481 I bt_core_module: module_init Initialized module "btif_config_module"
01-01 05:34:47.849  1467  1481 I bt_core_module: module_init Initializing module "interop_module"
01-01 05:34:47.849  1467  1481 I bt_core_module: module_init Initialized module "interop_module"
01-01 05:34:47.850  1467  1481 I bt_core_module: module_init Initializing module "stack_config_module"
01-01 05:34:47.850  1467  1481 I bt_stack_config: init attempt to load stack conf from /etc/bluetooth/bt_stack.conf
01-01 05:34:47.851  1467  1481 I bt_core_module: module_init Initialized module "stack_config_module"
01-01 05:34:47.851  1467  1486 W bt_osi_thread: run_thread: thread id 1486, thread name bt_jni_workqueue started
01-01 05:34:47.851  1467  1481 I bt_stack_manager: event_init_stack finished
01-01 05:34:47.851  1467  1467 I bt_osi_wakelock: wakelock_set_os_callouts set to non-native
01-01 05:34:47.851  1467  1467 I bt_btif : get_profile_interface socket
01-01 05:34:47.853  1467  1486 D BluetoothAdapterProperties: Address is:22:22:16:B8:51:3E
01-01 05:34:47.855   516   516 D BluetoothManagerService: Bluetooth Adapter name changed to iMX6
01-01 05:34:47.855   516   516 D BluetoothManagerService: Stored Bluetooth name: iMX6
01-01 05:34:47.855  1467  1486 D BluetoothAdapterProperties: Name is: iMX6
01-01 05:34:47.856  1467  1467 I bt_btif : get_profile_interface sdp
01-01 05:34:47.859  1467  1467 D BluetoothAdapterService: setAdapterService() - set to: null
01-01 05:34:47.859  1467  1467 D BluetoothAdapterService: onBind()
01-01 05:34:47.860   516   516 D BluetoothManagerService: BluetoothServiceConnection: com.android.bluetooth.btservice.AdapterService
01-01 05:34:47.860   516   535 D BluetoothManagerService: Message: 40
01-01 05:34:47.860   516   535 D BluetoothManagerService: MESSAGE_BLUETOOTH_SERVICE_CONNECTED: 1
01-01 05:34:47.861  1467  1479 I bt_btif : config_hci_snoop_log
01-01 05:34:47.863   516   535 D BluetoothManagerService: Calling onBluetoothServiceUp callbacks
01-01 05:34:47.863   516   535 D BluetoothManagerService: Broadcasting onBluetoothServiceUp() to 6 receivers.
01-01 05:34:47.863  1467  1479 D BluetoothAdapter: onBluetoothServiceUp: com.android.bluetooth.btservice.AdapterService$AdapterServiceBinder@e49b8da
01-01 05:34:47.863   831   842 D BluetoothAdapter: onBluetoothServiceUp: android.bluetooth.IBluetooth$Stub$Proxy@e03e33
01-01 05:34:47.863   516   535 D BluetoothAdapter: onBluetoothServiceUp: android.bluetooth.IBluetooth$Stub$Proxy@10558c8
01-01 05:34:47.864  1320  1345 D BluetoothAdapter: onBluetoothServiceUp: android.bluetooth.IBluetooth$Stub$Proxy@2706a4
01-01 05:34:47.864   598   785 D BluetoothAdapter: onBluetoothServiceUp: android.bluetooth.IBluetooth$Stub$Proxy@56f3b9c
01-01 05:34:47.864   818   829 D BluetoothAdapter: onBluetoothServiceUp: android.bluetooth.IBluetooth$Stub$Proxy@3aac11c
01-01 05:34:47.865  1467  1478 D BluetoothAdapterService: enable() - Enable called with quiet mode status =  false
01-01 05:34:47.865  1467  1480 D BluetoothAdapterState: Current state: OFF, message: 0
01-01 05:34:47.865  1467  1480 D BluetoothAdapterProperties: Setting state to 14
01-01 05:34:47.865  1467  1480 I BluetoothAdapterState: Bluetooth adapter state changed: 10-> 14
01-01 05:34:47.866  1467  1480 D BluetoothAdapterService: updateAdapterState() - Broadcasting state to 1 receivers.
01-01 05:34:47.866   516   535 D BluetoothManagerService: Message: 60
01-01 05:34:47.866   516   535 D BluetoothManagerService: MESSAGE_BLUETOOTH_STATE_CHANGE: prevState = 10, newState =14
01-01 05:34:47.866   516   535 D BluetoothManagerService: bluetoothStateChangeHandler: 10 ->  14
01-01 05:34:47.866  1467  1480 D BluetoothAdapterService: BleOnProcessStart()
01-01 05:34:47.866   516   535 D BluetoothManagerService: BLE State Change Intent: 10 -> 14
01-01 05:34:47.867  1467  1480 D BluetoothAdapterService: BleOnProcessStart() - Make Bond State Machine
01-01 05:34:47.867  1467  1480 D BluetoothBondStateMachine: make
01-01 05:34:47.868  1467  1487 I BluetoothBondStateMachine: StableState(): Entering Off State
01-01 05:34:47.869  1467  1480 D BluetoothAdapterService: setProfileServiceState() - Starting service com.android.bluetooth.gatt.GattService
01-01 05:34:47.873  1467  1467 I BtGatt.JNI: classInitNative(L922): classInitNative: Success!
01-01 05:34:47.874  1467  1480 I BluetoothAdapterState: Entering PendingCommandState
01-01 05:34:47.877  1467  1467 D BtGatt.DebugUtils: handleDebugAction() action=null
01-01 05:34:47.877  1467  1467 D BluetoothAdapterService: getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@17b54ef
01-01 05:34:47.878  1467  1467 D BtGatt.GattService: Received start request. Starting profile...
01-01 05:34:47.878  1467  1467 D BtGatt.GattService: start()
01-01 05:34:47.878  1467  1467 I bt_btif : get_profile_interface gatt
01-01 05:34:47.879  1467  1467 D BluetoothAdapterService: getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@17b54ef
01-01 05:34:47.879  1467  1467 D BtGatt.AdvertiseManager: advertise manager created
01-01 05:34:47.885  1467  1467 D BluetoothAdapterService: getAdapterService() - returning com.android.bluetooth.btservice.AdapterService@17b54ef
01-01 05:34:47.886  1467  1467 D BluetoothAdapterService: handleMessage() - Message: 1
01-01 05:34:47.886  1467  1467 D BluetoothAdapterService: handleMessage() - MESSAGE_PROFILE_SERVICE_STATE_CHANGED
01-01 05:34:47.886  1467  1467 D BluetoothAdapterService: processProfileServiceStateChanged() serviceName=com.android.bluetooth.gatt.GattService, state=12, doUpdate=true
01-01 05:34:47.886  1467  1467 V BluetoothAdapterState: isTurningOff()=false
01-01 05:34:47.886  1467  1467 V BluetoothAdapterState: isTurningOn()=false
01-01 05:34:47.886  1467  1467 V BluetoothAdapterState: isBleTurningOn()=true
01-01 05:34:47.886  1467  1467 V BluetoothAdapterState: isBleTurningOff()=false
01-01 05:34:47.887  1467  1467 D BluetoothAdapterService: processProfileServiceStateChanged() - serviceName=com.android.bluetooth.gatt.GattService isTurningOn=false isTurningOff=false isBleTurningOn=true isBleTurningOff=false
01-01 05:34:47.887  1467  1467 D BluetoothAdapterService: GattService is started
01-01 05:34:47.888  1467  1480 D BluetoothAdapterState: Current state: PENDING_COMMAND, message: 4
01-01 05:34:47.889  1467  1480 I bt_btif : enable: start restricted = 0
01-01 05:34:47.890  1467  1481 I bt_stack_manager: event_start_up_stack is bringing up the stack
01-01 05:34:47.891  1467  1481 I bt_core_module: module_start_up Starting module "btif_config_module"
01-01 05:34:47.891  1467  1481 I bt_core_module: module_start_up Started module "btif_config_module"
01-01 05:34:47.891  1467  1481 I bt_core_module: module_start_up Starting module "btsnoop_module"
01-01 05:34:47.891  1467  1481 I bt_core_module: module_start_up Started module "btsnoop_module"
01-01 05:34:47.891  1467  1481 I bt_core_module: module_start_up Starting module "hci_module"
01-01 05:34:47.891  1467  1481 I bt_hci  : start_up
01-01 05:34:47.893  1467  1492 W bt_osi_thread: run_thread: thread id 1492, thread name hci_thread started
01-01 05:34:47.898  1467  1481 I bt_vendor: alloc value 0x922970bd
01-01 05:34:47.898  1467  1481 I bt_vendor: init
01-01 05:34:47.898  1467  1481 I bt_vnd_conf: Attempt to load conf from /etc/bluetooth/bt_vendor.conf
01-01 05:34:47.898  1467  1481 I bt_vnd_conf: vnd_load_conf file >/etc/bluetooth/bt_vendor.conf< not found
01-01 05:34:47.898  1467  1481 E bt_upio : init_rfkill : open(/sys/class/rfkill/rfkill0/type) failed: No such file or directory (2)
01-01 05:34:47.898  1467  1481 E bt_upio : init_rfkill : open(/sys/class/rfkill/rfkill0/type) failed: No such file or directory (2)
01-01 05:34:47.898  1467  1481 D bt_hci  : start_up starting async portion
01-01 05:34:47.898  1467  1492 I bt_hci  : event_finish_startup
01-01 05:34:47.898  1467  1492 I bt_hci_h4: hal_open
01-01 05:34:47.898  1467  1492 I bt_userial_vendor:  MJ: userial vendor open: opening /dev/ttymxc1
01-01 05:34:47.898  1467  1492 E bt_userial_vendor: userial vendor open: unable to open /dev/ttymxc1
01-01 05:34:47.898  1467  1492 E bt_hci_h4: hal_open opened the wrong number of ports: got 0, expected 1.
01-01 05:34:47.898  1467  1492 I bt_hci_h4: hal_close
01-01 05:34:47.899  1467  1492 E bt_hci_h4: In transmit_data, error writing to the uart serial port: Bad file descriptor

please help me out,....

thanks in advance.

0 Kudos
1 Reply

1,041 Views
igorpadykov
NXP Employee
NXP Employee

Hi jagadeesh

unfortunately iWave Q7 board is not supported by nxp, one can post issue on its

vendor support

https://www.iwavesystems.com/engineering-services/software-design-services.html 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos