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.
Solved! Go to Solution.
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
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
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.
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
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.