imx6UL: How to get bluetooth working?

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

imx6UL: How to get bluetooth working?

2,000 Views
pj0585
Contributor III

Hi,

I have a custom board using imx6UL. I would like to use Bluetooth on my board.

I'm interested in having the following bluetooth profiles:
* Headset Profile (HSP) : Ring, answer a call, hang up & adjust the volume
* Hands-Free Profile (HFP): HSP + Battery info
* Audio/Video Remote Control Profile (AVRCP): Multimedia Control (Play/Pause) + Multimedia info (Track Name)
* File Transfer Protocol (FTP): Transfer data
* Phone Bool access profile: Retrieve name of caller from phone
* Serial port Profile (SPP): For any custom communication

1) How can I get the above profiles? Which Bluetooth version is required? 4.0 or 4.1?
2) Which version of BlueZ stack do we need to get all the above profiles? is BlueZ a recommended stack?
3) What is the minimum kernel version required?
4) Which bluetooth chipset is recommended? TI-WL1837MOD or Broadcom BCM43438 or something else??
5) What interface would be recommended for connecting the bluetooth chipset? USB or UART?
6) Is Bluetooth classic sufficient for the above or do I need BLE also?



I have little understanding of Bluetooth. 

Any inputs on the above will be of great help?

Thanks & regards, Pj

Labels (4)
0 Kudos
3 Replies

1,598 Views
romitchatterjee
Contributor V

Hello Prasant,

In case you are still looking for a BT solution that works well with i.MX6UL, have a look at the options here: Wi-Fi Bluetooth for NXP i.MX - RF Modules - Wireless Products | Murata Manufacturing Co., Ltd. 

Thanks,

Romit

0 Kudos

1,598 Views
igorpadykov
NXP Employee
NXP Employee

Hi Prasant

please check solutions and documentation on

wireless.murata.com/eng/products/rf-modules-1/wi-fi-bluetooth-for-nxp-i-mx.html

and Linux Manual (included in Linux documentation package) on nxp software page

i.MX Software|NXP 

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

0 Kudos

1,598 Views
pj0585
Contributor III

igorpadykov‌: Thanks for reponse.

I used iMX6UL-PICO-EMMC module for testing and made some progress of bluetooth, but my phone does not discover the bluetooth.

I ran the following commands:
root@pico-imx6ul:~# modprobe bcmdhd
[   41.482638] dhd_module_init in
[   41.499375] Power-up adapter 'DHD generic adapter'
[   41.515663] wifi_platform_bus_enumerate device present 1
[   41.561179] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[   41.568617] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   41.589807] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[   41.611361] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[   41.706426] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
[   41.712027] mmc1: new high speed SDIO card at address 0001
[   41.811725] F1 signature OK, socitype:0x1 chip:0x4339 rev:0x1 pkg:0x2
[   41.828224] DHD: dongle ram size is set to 786432(orig 786432) at 0x180000
[   41.835764] wifi_platform_get_mac_addr
[   41.839547] fw path is /lib/firmware/brcm/fw_bcm4339a0_ag.bin 
[   41.853057] nvram_path is /lib/firmware/brcm/nvram_ap6335.txt 
[   41.862257] CFG80211-ERROR) wl_setup_wiphy : Registering Vendor80211)
[   41.877745] wl_create_event_handler(): thread:wl_event_handler:307 started
[   41.884932] CFG80211-ERROR) wl_event_handler : tsk Enter, tsk = 0x96c0143c
[   41.914896] dhd_attach(): thread:dhd_watchdog_thread:309 started
[   41.929760] dhd_attach(): thread:dhd_dpc:30a started
[   41.954997] dhd_deferred_work_init: work queue initialized 
[   41.985301] fw path is /lib/firmware/brcm/fw_bcm4339a0_ag.bin 
[   41.991267] nvram_path is /lib/firmware/brcm/nvram_ap6335.txt 
[   42.257054] dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
[   42.454200] dhd_bus_init: enable 0x06, ready 0x06 (waited 0us)
[   42.463446] wifi_platform_get_mac_addr
[   42.483922] Firmware up: op_mode=0x0005, MAC=e0:76:d0:fb:4d:eb
[   42.515722] Firmware version = wl0: Dec  6 2013 15:47:10 version 6.37.32.RC23.34.10 (r)
[   42.528098] dhd_wlfc_init(): successfully enabled bdcv2 tlv signaling, 79
[   42.535945] dhd_wlfc_init(): wlfc_mode=0x0, ret=-23
[   42.541548] 
[   42.541548] Dongle Host Driver, version 1.141.88 (r)
[   42.541548] Compiled from 
[   42.575810] Register interface [wlan0]  MAC: e0:76:d0:fb:4d:eb
[   42.575810] 
root@pico-imx6ul:~# hciattach /dev/ttymxc4 bcm43xx 115200 flow
bcm43xx_init
Cannot open directory '/etc/firmware': No such file or directory
Patch not found, continue anyway
Set Controller UART speed to 115200 bit/s
Device setup complete
root@db-pico-imx6ul:~#

 

After I can see bluetooth profiles and I enabled discovery feature. But my phone does not show the embedded device.

Any inputs will be of help?

Thanks & regards, Pj

0 Kudos