Android: WiFi/Bluetooth Panasonic PAN9028 (chipset 88W8987) on iMX8MP

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Android: WiFi/Bluetooth Panasonic PAN9028 (chipset 88W8987) on iMX8MP

838件の閲覧回数
domenicoacri
Contributor III

Hi,

I have a problem with bluetooth PAN9028 on Android 12 (BSP android_12.0.0_1.0.0).

I use iMX8MP processor and the bluetooth is connected to the processor via UART.

WiFi works fine, uses firmware sdiouart8987_combo_v0.bin.

Bluetooth doesn't work, I added the uart port name in the file /vendor/nxp/libbt/bt_vendor.conf,

and set the permission file in "ueventd.nxp.rc".

But, when I try to pair the devices I get this error in attached file.

On the hardware side everything seems ok,

because the image with Linux works correctly.

 

Best Regards

Domenico Acri

 

ラベル(2)
タグ(1)
0 件の賞賛
返信
4 返答(返信)

799件の閲覧回数
Chavira
NXP TechSupport
NXP TechSupport

Hi @domenicoacri!

Thank you for contacting NXP Support!

From the log to see, it loads configuration from /vendor/etc/bluetooth/bt_vendor.conf:

"10-11 13:41:34.419 527 570 I bt-vnd-nxp: Attempt to load conf from /vendor/etc/bluetooth/bt_vendor.conf"

while you added the uart port name in the file /vendor/nxp/libbt/bt_vendor.conf, so have a try to put the conf file to /vendor/etc/bluetooth/bt_vendor.conf.

Best Regards!

Chavira

0 件の賞賛
返信

792件の閲覧回数
domenicoacri
Contributor III

Hi,

thanks so much for the reply.

Yes, I have the file bt_vendor.conf in /vendor/etc/bluetooth/.

The bt_vendor.conf file is in attached.

 

Best Regards

Domenico Acri

0 件の賞賛
返信

746件の閲覧回数
Chavira
NXP TechSupport
NXP TechSupport

Could you share your "ueventd.nxp.rc" file?

From the log to see, it showed only:

10-11 13:41:34.419 527 570 I bt-vnd-nxp: Attempt to load conf from /vendor/etc/bluetooth/bt_vendor.conf
10-11 13:41:34.421 527 570 D android.hardware.bluetooth@1.0-impl: Open vendor library loaded

10-11 13:41:36.428 713 1393 E TaskPersister: File error accessing recents directory (directory doesn't exist?).
10-11 13:41:36.592 526 598 W audio_hw_primary: do_out_standby... 0xe5bc5ce0
10-11 13:41:37.269 2061 2087 E bt_hci : system/bt/hci/src/hci_layer.cc:379 startup_timer_expired: startup_timer_expired

but I did not see the debug info like "open serial port" in "bt_vnd_op" function, so could you check the detail info to get some clue?

 

Best Regards!

Chavira

0 件の賞賛
返信

733件の閲覧回数
domenicoacri
Contributor III

Hi,

I solved the problem.

By increasing the debugging of the driver bt_vendor_nxp.c,

setting the define "#define NXP_VND_DBG true",

I noticed that the "get_prop_int32()" function returned -1, entering this if:

if (!bluetooth_opened) {
#ifdef UART_DOWNLOAD_FW
if (!enable_download_fw)
#endif
{
/*NXP Bluetooth use combo firmware which is loaded at wifi driver
probe.
This function will wait to make sure basic client netdev is created
*/
int count =
(POLL_DRIVER_MAX_TIME_MS * 1000) / POLL_DRIVER_DURATION_US;
FILE* fd;

while (count-- > 0) {
if ((fd = fopen("/sys/class/net/wlan0", "r")) != NULL) {
fclose(fd);
break;
}
usleep(POLL_DRIVER_DURATION_US);
}
}

 

The problem is that I have mlan0 interface and not wlan0.

Thanks so much for the support.

I hope this can help others too.

 

BR

Domenico Acri

 

 

0 件の賞賛
返信