how to enable bluetooth drivers on imx8m NANO custom board

cancel
Showing results for 
Search instead for 
Did you mean: 

how to enable bluetooth drivers on imx8m NANO custom board

90 Views
anurag16doshi
Contributor II

HI ,

I am working on imx8m NANO custom board running on Android 10 OS.i am able to enable the wifi drivers and connect to hotspot using adb commands.now i wan to enable Bluetooth drivers and connect to random device.as per my knowledge,,BT drivers are already enabled and inserted.my final product will not have any display to operate the modules.when i connect display for testing purpose and enable bluetooth,it automatically gets turned off when i try to pair to a device. when i use "svc bluetooth enable" command it shows following prints-

"svc bluetooth enable"
evk_8mn:/ # [ 4591.744475] rfkill: BT RF going to : off
[ 4591.748629] rfkill: BT RF going to : on
[ 4591.752481] mxc_bt_rfkill_reset
[ 4592.650814] init: Untracked pid 2915 exited with status 0
[ 4592.671040] init: Untracked pid 2913 exited with status 0
[ 4592.752336] binder: release 2872:2908 transaction 89192 in, still active
[ 4592.759101] binder: release 2872:2908 transaction 89189 out, still active
[ 4592.770373] binder: send failed reply for transaction 89192 to 2853:2853
[ 4592.777503] binder: 2853:2853 transaction failed 29189/0, size 4-0 line 3074
[ 4592.784898] binder: send failed reply for transaction 89189, target dead
[ 4592.903751] init: Untracked pid 2925 exited with status 0
[ 4592.915425] binder: undelivered death notification, 0000fbc16281c280
[ 4592.926831] init: Service 'vendor.bluetooth-1-0' (pid 2853) received signal 11
[ 4592.940119] init: Sending signal 9 to service 'vendor.bluetooth-1-0' (pid 2853) process group...
[ 4592.950814] libprocessgroup: Successfully killed process cgroup uid 1002 pid 2853 in 0ms
[ 4592.974974] init: Untracked pid 2927 exited with status 0
[ 4592.985818] init: starting service 'vendor.bluetooth-1-0'...
[ 4594.066779] rfkill: BT RF going to : off
[ 4594.070901] rfkill: BT RF going to : on
[ 4594.074757] mxc_bt_rfkill_reset
[ 4594.955779] init: Untracked pid 2978 exited with status 0
[ 4594.969052] init: Untracked pid 2976 exited with status 0
[ 4595.022388] binder: release 2935:2971 transaction 89620 in, still active
[ 4595.029152] binder: release 2935:2971 transaction 89617 out, still active
[ 4595.037452] binder: send failed reply for transaction 89620 to 2933:2933
[ 4595.044322] binder: 2933:2933 transaction failed 29189/0, size 4-0 line 3074
[ 4595.051727] binder: send failed reply for transaction 89617, target dead
[ 4595.156177] binder: undelivered death notification, 0000eabb96e1c280
[ 4598.003775] init: starting service 'vendor.bluetooth-1-0'...

 

i dont  see my device name if scanned from mobile-

when i use "adb shell dumpsys bluetooth_manager"-

Bluetooth Status
enabled: false
state: OFF
address: null
name: iMX8

Enable log:
02-12 13:45:42 Disabled due to CRASH by android
02-12 13:47:24 Disabled due to APPLICATION_REQUEST by null
02-12 13:47:51 Enabled due to APPLICATION_REQUEST by null
02-12 13:47:53 Disabled due to CRASH by android
02-12 13:47:55 Disabled due to CRASH by android
02-12 13:51:45 Disabled due to APPLICATION_REQUEST by null
02-12 13:52:00 Enabled due to APPLICATION_REQUEST by null
02-12 13:52:01 Disabled due to CRASH by android
02-12 13:52:04 Disabled due to CRASH by android
02-12 13:54:55 Disabled due to APPLICATION_REQUEST by null
02-12 13:55:30 Disabled due to APPLICATION_REQUEST by null
02-12 13:56:58 Enabled due to APPLICATION_REQUEST by null
02-12 13:56:59 Disabled due to CRASH by android
02-12 13:57:02 Disabled due to CRASH by android
02-12 13:57:51 Enabled due to APPLICATION_REQUEST by null
02-12 13:57:52 Disabled due to CRASH by android
02-12 13:57:55 Disabled due to CRASH by android
02-12 13:58:56 Disabled due to APPLICATION_REQUEST by null
02-12 13:59:01 Enabled due to APPLICATION_REQUEST by null
02-12 13:59:02 Disabled due to CRASH by android
02-12 13:59:05 Disabled due to CRASH by android

Bluetooth crashed 20 times
02-12 12:59:05
02-12 12:59:06
02-12 12:59:11
02-12 12:59:15
02-12 12:59:20
02-12 12:59:21
02-12 12:59:26
02-12 12:59:31
02-12 13:45:40
02-12 13:45:42
02-12 13:47:53
02-12 13:47:55
02-12 13:52:01
02-12 13:52:04
02-12 13:56:59
02-12 13:57:02
02-12 13:57:52
02-12 13:57:55
02-12 13:59:02
02-12 13:59:05

0 BLE appsregistered

RemoteException while dumping Bluetooth Service

 

i dont know what i am missing to properly enable the BT module.Please guide me how can i make the BT module UP.

 

Thanks in advance.

0 Kudos
1 Reply

85 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi anurag16doshi

 

for bluetooth one can refer to Release Notes, to check what chip is supported.

https://www.nxp.com/design/software/embedded-software/i-mx-software/android-os-for-i-mx-applications...

and sect.4.12 Bluetooth  i.MX Linux Reference Manual​ , Chapter 11 Connectivity  i.MX Linux User’s Guide​

 

Best regards
igor

0 Kudos