Export to GitHub

pybluez - issue #4

stop_advertising does not seem to work on Ubuntu 8.04


Posted on Apr 25, 2008 by Grumpy Bear

What steps will reproduce the problem? 1. Advertise a service with advertise_service 2. Use stop_advertising

What is the expected output? What do you see instead? When scanning with my mobile phone I can still see all the old advertisements, like multiple entries for channel 1

What version of the product are you using? On what operating system? PyBluez-0.15 (tried version bundled with Ubuntu 8.04 first) libbluetooth2 3.29 (bluez) Ubuntu 8.04

Please provide any additional information below. You can call stop_advertising 10 times in a row without result. Only thing that removes the entries is restarting the bluetooth service by doing /etc/init.d/bluetooth restart

Attachments

Comment #1

Posted on Jun 12, 2008 by Quick Rabbit

Hi,

It looks like something in bluez changed and libbluetooth no longer honors the original flags for sdp_record_register. I'll take a look when I can

Comment #2

Posted on Jun 23, 2008 by Quick Rabbit

This was a bug in BlueZ and that should be fixed for the next BlueZ release. As long as PyBluez is installed with an older version of BlueZ, however, you will still observe that bug.

[1] http://thread.gmane.org/gmane.linux.bluez.devel/15799

Comment #3

Posted on Oct 1, 2008 by Happy Lion

I've upgraded my Ubuntu Hardy to use bluez 3.36 and pybluez 0.15. According to the changelog of bluez, version 3.36 fixes:

"Fix SDP record registration with specific record handles."

It looks like this is the fix for the problem. However, using this versions, the issue still occurs - services do not get removed by stop_advertise.

Do you know which version of bluez actually fixes the issue?

Thanks and regards, Oben

Comment #4

Posted on Oct 1, 2008 by Quick Rabbit

Hi Oben,

3.36 has the fix. Are you sure you're not still running an older version? i.e. you've definitely uninstalled existing packages?

Do the services go away after your python program has terminated?

Comment #5

Posted on Oct 3, 2008 by Happy Lion

I had another try installing bluez-libs 0.36 and bluez-utils 0.36 from source - this works. Anyway, it failed installing the binary 0.36 packages from the Intrepid (upcoming Ubuntu release) repository in Hardy. So I guess this is an Ubuntu specific problem (installing binary Intrepid packages in Hardy).

Thanks for help.

Oben

Comment #6

Posted on Oct 8, 2008 by Quick Rabbit

(No comment was entered for this change.)

Status: Fixed

Labels:
Type-Defect Priority-Medium