Kizoku-Dev / pybluez

Automatically exported from code.google.com/p/pybluez
GNU General Public License v2.0
0 stars 0 forks source link

stop_advertising does not seem to work on Ubuntu 8.04 #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

Original issue reported on code.google.com by robertmens@gmail.com on 25 Apr 2008 at 10:43

Attachments:

GoogleCodeExporter commented 8 years ago
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

Original comment by ashu...@gmail.com on 12 Jun 2008 at 6:06

GoogleCodeExporter commented 8 years ago
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

Original comment by ashu...@gmail.com on 23 Jun 2008 at 4:53

GoogleCodeExporter commented 8 years ago
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

Original comment by obensonne@googlemail.com on 1 Oct 2008 at 1:54

GoogleCodeExporter commented 8 years ago
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?

Original comment by ashu...@gmail.com on 1 Oct 2008 at 7:04

GoogleCodeExporter commented 8 years ago
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

Original comment by obensonne@googlemail.com on 3 Oct 2008 at 10:18

GoogleCodeExporter commented 8 years ago

Original comment by ashu...@gmail.com on 8 Oct 2008 at 3:55