How to work UART BT device on i.mx53 Android

cancel
Showing results for 
Search instead for 
Did you mean: 

How to work UART BT device on i.mx53 Android

591 Views
brahman_river
Contributor I

Hi, All.

I'm working UART(RS-232C) Bluetooth device on i.MX53 Android Platform.

I tried to enable Bluetooth via configuration panel but didn't make it.

To use Bluetooth devices, is there any configuration needed against i.MX Android Package before building image?

Tags (1)
0 Kudos
9 Replies

180 Views
VikramU_ng
Contributor III

Hi Takashi-san,

  Maybe this document helps <Anroid Bluez>

 

HTH.

0 Kudos

180 Views
daiane_angolini
NXP Employee
NXP Employee

hum.... I´m confused.

 

kernel only recongnize device after hciattach? Before that is there none message?

 

I was searching around and I found a lot of people working with bluetooth dongle with android uper that 1.6 without any special procedure.

 

Is there any clue on your logcat?

0 Kudos

180 Views
brahman_river
Contributor I

Hi Daiane,

 

I've found that a command "hciattach" was required to make the kernel recognize the device.

This command was successful on the PC Linux and Ubuntu i.mx53. But I didn't make it on Android platform.

This might be because the specified device was incorrect. I guess that is "ttymxcX".

Do you know what device the serial port is regarded as?

 

Best Regards,

Takashi Kawamoto

0 Kudos

180 Views
daiane_angolini
NXP Employee
NXP Employee

oh. First step is your devices being recognized by kernel.

 

Connect you device on some PC, and see what´s the dmesg message for it.

 

Then, try to configure kernel to regocnize the same. You will need to be sure kernel version used can support it.

0 Kudos

180 Views
brahman_river
Contributor I

Hi Daiane,

 

When the BT device was connected, dmesg said nothing. So I think the Kernel couldn't recognize it.

The attached file is .config for the kernel.

 

Best Regards,

Takashi Kawamoto

0 Kudos

180 Views
daiane_angolini
NXP Employee
NXP Employee
Can kernel recognize your bluetooth device? What does dmesg show?
0 Kudos

180 Views
brahman_river
Contributor I

Even the above option was added to BoardConfig.mk, Bluetooth could not be enabled with configuration panel.

I have no idea what to do further...

0 Kudos

180 Views
brahman_river
Contributor I
Hi Daiane,
Thanks for your prompt comment :)
According to the following page, it seems that an option "BOARD_HAVE_BLUETOOTH" shoule be enabled in BoardConfig.mk.
I'm now rebuilding the Android image.
Best Regards,
Takashi Kawamoto
0 Kudos

180 Views
daiane_angolini
NXP Employee
NXP Employee

I´m guessing, but I believe you will need to include support for it on BoardConfig.mk (inside device/fsl).

 

I suppose kernel has support for your device.

0 Kudos