Bluetooth HCI Setup command (moved from i.MX Processors section)

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

Bluetooth HCI Setup command (moved from i.MX Processors section)

Jump to solution
1,582 Views
tanoue
Contributor III

I would like to make a Bluetooth driver for IW416 chipset on i.MX8M SoC.

 

I read a NXP document  (11.1 Connectivity for Bluetooth wireless technology and Wi-Fi) and a knowledge base then I could use Bluetooth function now.

However, I didn't fully understand how to setup Bluetooth HCI.

 

Please tell me what each command does.

# For PCIe8997/SDIO8997/SDIO8987 and SDIO IW41
hciattach <device> any 115200 flow
hciconfig hci0 up
hcitool -i hci0 cmd 0x3f 0x0009 0xc0 0xc6 0x2d 0x00
killall hciattach
hciattach <device> any -s 3000000 3000000 flow
hciconfig hci0 up 

I wonder why it needs to execute twice "hciattach" and twice "hciconfig hci0 up".

These details are not written in any documentation.

 

Best Regards,

tanoue.

Labels (3)
0 Kudos
1 Solution
1,548 Views
cdoumenc
NXP Employee
NXP Employee

Hi tanoue,
The answer to your question can be found in IW416 doc UM11483 on page https://www.nxp.com/products/wireless/wi-fi-plus-bluetooth/iw416-2-4-5-ghz-dual-band-1x1-wi-fi-4-802... chapter 7.

Regards

View solution in original post

0 Kudos
5 Replies
1,549 Views
cdoumenc
NXP Employee
NXP Employee

Hi tanoue,
The answer to your question can be found in IW416 doc UM11483 on page https://www.nxp.com/products/wireless/wi-fi-plus-bluetooth/iw416-2-4-5-ghz-dual-band-1x1-wi-fi-4-802... chapter 7.

Regards

0 Kudos
1,528 Views
tanoue
Contributor III

Hi, @cdoumenc 

Thank you for your information.

I could not access to your link but I was able to understand these command's functions from UM11483.

 

0 Kudos
1,560 Views
rtwheato
Contributor II

tanoue, 

The combo firmware needs to be loaded before running the hci commands.  The first hciattach command is not necessary for the iw416, and most solutions only operate at -s 3000000.  The rest of the hciattach command depends on how you have your UART connected.

CEL has a module based on the iw416 called the CMP9010:

https://www.cel.com/product/cmp9010/

And, our evaluation board makes the UART connection simple:

https://www.digikey.com/en/products/detail/cel/CMP9010-1-EVB/15519814

PM me for more information.

best,

-ryan

0 Kudos
1,522 Views
tanoue
Contributor III

Hi, @rtwheato 

Thank you for your reply.

 

The first hciattach command is not necessary for the iw416, 

I knew it is true.

 

and most solutions only operate at -s 3000000. The rest of the hciattach command depends on how you have your UART connected.

If IW416 runs with only operate at -s 3000000, why the rest of the hciattach commands be written on NXP's manual?

 

Is there some other reason?
For example, IW416 works in any situation.

 

0 Kudos
1,499 Views
rtwheato
Contributor II
I believe the guide you are following is for most all of their wireless/BT products and the initial slower hciattach commands are for the older generation of chips.