# Advertising Mode in BT modules (Bluez5)

**URL:** https://forum.legato.io/t/advertising-mode-in-bt-modules-bluez5/5880
**Category:** Legato Linux distribution (Yocto project)
**Created:** [July 9, 2021, 4:49am UTC](https://forum.legato.io/t/advertising-mode-in-bt-modules-bluez5/5880 "2021-07-09T04:49:53Z")
**Posts on this page:** 12
**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: [July 9, 2021, 4:49am UTC](https://forum.legato.io/t/advertising-mode-in-bt-modules-bluez5/5880/1 "2021-07-09T04:49:53Z")

</div>

Hi there ,  
Did anyone try advertising mode in Bluez5 on WP76xx ?  
I have below issue while doing so .  
Have tried with multiple BT modules (QC,NRF) is there any limitation of the kernel 3.18.140 ?

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

**[bluetooth]# advertise on**

**Failed to register advertisement: org.bluez.Error.NotPermitted**

@jyijyi Any idea about this ? I could see components in mangoh master .Please share some details on this [mangOH/components/bluezDBus at master · mangOH/mangOH · GitHub](https://github.com/mangOH/mangOH/tree/master/components/bluezDBus)

---

<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: [July 12, 2021, 11:41am UTC](https://forum.legato.io/t/advertising-mode-in-bt-modules-bluez5/5880/2 "2021-07-12T11:41:41Z")

</div>

Is this 3rd party stuff?

---

<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: [July 12, 2021, 11:46am UTC](https://forum.legato.io/t/advertising-mode-in-bt-modules-bluez5/5880/3 "2021-07-12T11:46:46Z")

</div>

Not sure what are those but looks like they are configurations for different features of Bluez ? But I wanted to know if any of sierra’s clients were successful in using advertising mode in Bluez (with WP76xx modules) .

---

<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: [July 12, 2021, 11:53am UTC](https://forum.legato.io/t/advertising-mode-in-bt-modules-bluez5/5880/4 "2021-07-12T11:53:53Z")

</div>

How about this

> **[bluetoothServices - maximum advertisement reached](https://forum.mangoh.io/t/bluetoothservices-maximum-advertisement-reached/4120)**
>
> Start app bluetoothServices on yellow and get this message, and then it exits. Anyone experience this? Anyone running bluetoothServices successfully? Mar 23 15:32:17 swi-mdm9x28-wp user.emerg Legato: \*EMR\* |...

---

<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: [July 13, 2021, 4:59am UTC](https://forum.legato.io/t/advertising-mode-in-bt-modules-bluez5/5880/5 "2021-07-13T04:59:06Z")

</div>

Hi @jyijyi ,

Looks like the advertising issue is unresolved as per this link . any pointers on the BluezDbus component in mangoh master ? Also Please try advertise commands with MangoH IOT card at your end

---

<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: [July 13, 2021, 6:08am UTC](https://forum.legato.io/t/advertising-mode-in-bt-modules-bluez5/5880/6 "2021-07-13T06:08:55Z")

</div>

> **[mangOH/components/bluezDBus at master · mangOH/mangOH](https://github.com/mangOH/mangOH/tree/master/components/bluezDBus)**
>
> master/components/bluezDBus

You might also try the app inside this document:

> **[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: ![Pankaj](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/pankaj/32/1317_2.png) [@Pankaj](https://forum.legato.io/u/Pankaj)
#### Post date: [July 16, 2021, 7:42am UTC](https://forum.legato.io/t/advertising-mode-in-bt-modules-bluez5/5880/7 "2021-07-16T07:42:59Z")

</div>

Hi Akshay,

I think you should check the bluez logs to see what is the error and where the permission are denied.

Can you help to post the bluez logs with the error.

Thanks & Regards,

Pankaj Sant

---

<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: [July 16, 2021, 7:44am UTC](https://forum.legato.io/t/advertising-mode-in-bt-modules-bluez5/5880/8 "2021-07-16T07:44:28Z")

</div>

Hi Pankaj ,  
Please find the attached Bluez (BTMON) Logs for your reference .  
[UX101advertise\_hcicmd.t\_btmonxt](https://forum.legato.io/uploads/short-url/86BKst9bl0PtAYTRHFFaIpXaAuL.t_btmonxt) (34.3 KB)

---

<div class="post-metadata">

### Author: ![Pankaj](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/pankaj/32/1317_2.png) [@Pankaj](https://forum.legato.io/u/Pankaj)
#### Post date: [August 11, 2021, 9:56am UTC](https://forum.legato.io/t/advertising-mode-in-bt-modules-bluez5/5880/9 "2021-08-11T09:56:39Z")

</div>

@akshaysk ,

From your logs there seems to be no error on Linux or Legato side. As you are using bluez, can you check with your BLE module support if they need any specific version of Bluez. Alternatively you can send them the logs and BLE module vendor should be able to support you further.

Thanks  
Pankaj

---

<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: [August 12, 2021, 6:07am UTC](https://forum.legato.io/t/advertising-mode-in-bt-modules-bluez5/5880/10 "2021-08-12T06:07:07Z")

</div>

Hi @Pankaj / @jyijyi ,

Can you explain how it seems to be no error on Linux or Legato side ? Because the BT module works on Raspberry Pi and Laptop . On the other end the advertising mode doesn’t seems to be working on MangoH yellow . If we can share the working logs to the BT module vendor they could be able to verify the same and make necessary changes in their firmware .

Note : We are observing this issue with qca9377 as well .

---

<div class="post-metadata">

### Author: ![Pankaj](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/pankaj/32/1317_2.png) [@Pankaj](https://forum.legato.io/u/Pankaj)
#### Post date: [August 12, 2021, 6:34am UTC](https://forum.legato.io/t/advertising-mode-in-bt-modules-bluez5/5880/11 "2021-08-12T06:34:26Z")

</div>

Hi Akshay,

If you go through the logs there are no errors reported, the disconnect reason is from remote user disconnection. so obviously the protocol seems to be working correctly.

I believe it would be good to check with the Bluetooth module for the causes for remote disconnection and provide the debug logs to the BT vendor to identify the cause.

Only with this information you should be able to do any changes further if required.

---

<div class="post-metadata">

### Author: ![Pankaj](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/pankaj/32/1317_2.png) [@Pankaj](https://forum.legato.io/u/Pankaj)
#### Post date: [September 1, 2021, 10:16am UTC](https://forum.legato.io/t/advertising-mode-in-bt-modules-bluez5/5880/12 "2021-09-01T10:16:37Z")

</div>

Hi Akshay

I hope your issue related to advertising is resolved now as per the logs.  
[bluetooth advertising working logs.txt](https://forum.legato.io/uploads/short-url/6uOq6kd8bHoCmIB67fsi9nB0A6R.txt) (21.4 KB)  
[bluetooth advertising working logs-2.txt](https://forum.legato.io/uploads/short-url/ysWa3EbNEkjJmUoBv1XBt2NCOTt.txt) (135.4 KB)
