# Interfacing BT module

**URL:** <https://forum.legato.io/t/interfacing-bt-module/5847>\
**Category:** Legato Linux distribution (Yocto project)\
**Created:** [June 18, 2021, 5:50am UTC](https://forum.legato.io/t/interfacing-bt-module/5847 "2021-06-18T05:50:50Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![akshaysk](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/akshaysk/32/1212_2.png) [@akshaysk](https://forum.legato.io/u/akshaysk)\
**Post date:** [June 18, 2021, 5:50am UTC](https://forum.legato.io/t/interfacing-bt-module/5847/1 "2021-06-18T05:50:50Z")

</div>

Hi there ,

I am trying to bring up a BT (HCI interface) module using hciconfig but it fails with error no.99 .

Note : ttyUSB here is a cp210x (USB-UART bridge) connected via HSIC

Below are the logs

**root@swi-mdm9x28-wp:~# hciattach -s 115200 /dev/ttyUSB2 any 115200 noflow nosleep**  
**Device setup complete**

**root@swi-mdm9x28-wp:~# hciconfig -a**  
**hci0: Type: Primary Bus: UART**  
\*\* BD Address: 00:00:00:00:00:00 ACL MTU: 27:7 SCO MTU: 0:0\*\*  
\*\* DOWN \*\*  
\*\* RX bytes:205 acl:0 sco:0 events:14 errors:0\*\*  
\*\* TX bytes:80 acl:0 sco:0 commands:14 errors:0\*\*  
\*\* Features: 0x00 0x00 0x00 0x00 0x60 0x00 0x00 0x00\*\*  
\*\* Packet type: DM1 DH1 HV1 \*\*  
\*\* Link policy: \*\*  
\*\* Link mode: MASTER\*\*

**root@swi-mdm9x28-wp:~# hciconfig hci0 up**  
**Can’t init device hci0: Cannot assign requested address (99)**  
**root@swi-mdm9x28-wp:~# hciconfig hci0 up**  
**Can’t init device hci0: Cannot assign requested address (99)**  
**root@swi-mdm9x28-wp:~# hciconfig hci0 up**  
**Can’t init device hci0: Cannot assign requested address (99)**  
**root@swi-mdm9x28-wp:~# hciconfig hci0 up**  
**Can’t init device hci0: Cannot assign requested address (99)**  
**root@swi-mdm9x28-wp:~# hciconfig hci0 up**  
**Can’t init device hci0: Cannot assign requested address (99)**

**root@swi-mdm9x28-wp:~# dmesg**  
**[279.364430] Bluetooth: cb613de8**  
**[279.364460] Bluetooth: cb613de0Bluetooth: cb613de0**  
**[279.364489] Bluetooth: cb613de0Bluetooth: cb613de0**  
**[279.364509] Bluetooth: cb613de0**

**root@swi-mdm9x28-wp:~# lsmod**  
Not tainted  
**hci\_uart 40947 1 - Live 0xbf099000**  
**cp210x 14719 1 - Live 0xbf090000**  
**usbserial 32675 3 cp210x, Live 0xbf082000**  
**bnep 13580 2 - Live 0xbf07a000**  
**bluetooth 387916 7 hci\_uart,bnep, Live 0xbf000000**  
**root@swi-mdm9x28-wp:~#**

**root@swi-mdm9x28-wp:/usr/libexec# ./bluetooth/bluetoothd -v**  
**5.50**  
**root@swi-mdm9x28-wp:~# bluetoothctl --v**  
**bluetoothctl: 5.50**

**root@swi-mdm9x28-wp:~# uname -r**  
**3.18.140**  
**root@swi-mdm9x28-wp:~# cm info**  
**Device: WP7608**  
**IMEI: 352913090221431**  
**IMEISV: E**  
**FSN: XG910670081610**  
**Firmware Version: SWI9X07Y\_02.37.03.00 73df45 jenkins 2020/04/08 10:59:14**  
**Bootloader Version: SWI9X07Y\_02.37.03.00 73df45 jenkins 2020/04/08 10:59:14**  
**MCU Version: 002.015**  
**PRI Part Number (PN): 9908665**  
**PRI Revision: 001.001**  
**Carrier PRI Name: GENERIC**  
**Carrier PRI Revision: 002.095\_000**  
**SKU: 1104194**  
**Last Reset Cause: Reset, User Requested**  
**Resets Count: Expected: 93 Unexpected: 0**

Same BT module works fine with a raspberry pi B and the Laptop .

Did someone face this kind of error ? Any other configs need to be enabled on the kernel ?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 18, 2021, 6:48am UTC](https://forum.legato.io/t/interfacing-bt-module/5847/2 "2021-06-18T06:48:21Z")

</div>

you can see this document on what has been enabled in kernel for testing bluetooth WL18xx IOT card

> **[Bluetooth/BLE working with WL18xx?](https://forum.mangoh.io/t/bluetooth-ble-working-with-wl18xx/5432/2)**
>
> I have tried on WP77 FW R9, you can have a look on this document:

---

<div class="post-metadata">

**Author:** ![akshaysk](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/akshaysk/32/1212_2.png) [@akshaysk](https://forum.legato.io/u/akshaysk)\
**Post date:** [June 18, 2021, 7:49am UTC](https://forum.legato.io/t/interfacing-bt-module/5847/3 "2021-06-18T07:49:18Z")

</div>

Hi @jyijyi

I Have enabled all the configs mentioned in the doc . Still no luck

Did you try any other BT modules ? other than QC and Ti ? I am Trying to understand the difference

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 18, 2021, 8:00am UTC](https://forum.legato.io/t/interfacing-bt-module/5847/4 "2021-06-18T08:00:19Z")

</div>

no, i only tried WL18xx IOT card before.  
Did you follow the bluetoothUtil.rar\bluetoothUtil\scriptbt-init.sh?

---

<div class="post-metadata">

**Author:** ![akshaysk](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/akshaysk/32/1212_2.png) [@akshaysk](https://forum.legato.io/u/akshaysk)\
**Post date:** [June 18, 2021, 8:34am UTC](https://forum.legato.io/t/interfacing-bt-module/5847/5 "2021-06-18T08:34:41Z")

</div>

Can you share me the file [https://github.com/mangOH/Demos/tree/master/BluetoothUtil](https://github.com/mangOH/Demos/tree/master/BluetoothUtil) this link doesn’t seems to be working .

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 18, 2021, 8:38am UTC](https://forum.legato.io/t/interfacing-bt-module/5847/6 "2021-06-18T08:38:46Z")

</div>

it is inside the document

---

<div class="post-metadata">

**Author:** ![akshaysk](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/akshaysk/32/1212_2.png) [@akshaysk](https://forum.legato.io/u/akshaysk)\
**Post date:** [June 18, 2021, 9:12am UTC](https://forum.legato.io/t/interfacing-bt-module/5847/7 "2021-06-18T09:12:13Z")

</div>

Yes thanks got it . I am following the same initialisation sequence mentioned in the script . By any chance you can try with a BT module (like Nordic) ? Did any of sierra’s customers use BT modules other than Ti & QC ? I have a very limited support from BT module vendor as things are working on RPi and laptop .

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 18, 2021, 9:18am UTC](https://forum.legato.io/t/interfacing-bt-module/5847/8 "2021-06-18T09:18:46Z")

</div>

you can see the bluetooth implementation on mangoh yellow (using WM-BN-CYW-48):

> **[Bluetooth mangoH yellow launch](https://forum.mangoh.io/t/bluetooth-mangoh-yellow-launch/5665)**
>
> Hi, Is there a procedure to follow in order to detect the bluetooth using the mangoH yellow? Thanks

---

<div class="post-metadata">

**Author:** ![akshaysk](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/akshaysk/32/1212_2.png) [@akshaysk](https://forum.legato.io/u/akshaysk)\
**Post date:** [June 23, 2021, 9:26am UTC](https://forum.legato.io/t/interfacing-bt-module/5847/9 "2021-06-23T09:26:03Z")

</div>

Hi @jyijyi ,

It seems that Kernel 3.18.140 is too old to support controllers without a public  
address . As the BT module I am using has no public address embedded in the hardware memory . It fails to assign a random address which results in  
**Can’t init device hci0: Cannot assign requested address (99)**

Source : [devel@lists.zephyrproject.org | hciconfig tools error with nrf52832 running zephyr](https://lists.zephyrproject.org/g/devel/topic/hciconfig_tools_error_with/24942075?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,60,24942075)

Let me know if you have any points on this ? else we can close the topic .

One can request the vendor to add a public address in the BT module firmware in order to resolve the issue .

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [June 23, 2021, 9:45am UTC](https://forum.legato.io/t/interfacing-bt-module/5847/10 "2021-06-23T09:45:20Z")

</div>

No, i don’t have other point to add
