[Bug 897255] [NEW] RFCOMM channel 1 and automatic channel choosing broken cause of DUN
Launchpad Bug Tracker
897255 at bugs.launchpad.net
Mon Nov 28 22:15:36 UTC 2011
You have been subscribed to a public bug:
I want to set up a bluetooth RFCOMM connection between two devices with
some script. I use python bluez bindings for that.
I discovered that setting up a server, using the first free channel, won't throw an error but doesn't give me a reliable connection either using some code like provided by http://people.csail.mit.edu/albert/bluez-intro/x232.html with port = bluetooth.PORT_ANY
The first free port discovered is port 1.
After "playing" around (getting frustrated investigating possible other
mistakes or sources of error), I finally set it to port = 5 (some fixed
port > 1).
It worked. Trying to set up a second server on the same port threw an
error. Like it should.
After learning about the command "sdptool browse local" i saw, that some
DUN service occupied RFCOMM channel 1. But no one threw an error.
I did not found a file which set up the DUN service and I don't know a
method how to get the process which owns this DUN service or set it up.
I think it is an error cause choosing the first free RFCOMM channel
should just work and acquiring a already used channel should result in
an informative and unique error message. Also it would be nice to know
which process set up and owns some bluetooth service.
----
Ubuntu 11.10
$ apt-cache policy bluez bluez-compat bluez-tools bluez-utils python-bluez
bluez:
Installed: 4.96-0ubuntu4
Candidate: 4.96-0ubuntu4
Version table:
*** 4.96-0ubuntu4 0
500 http://de.archive.ubuntu.com/ubuntu/ oneiric-updates/main i386 Packages
100 /var/lib/dpkg/status
4.96-0ubuntu3 0
500 http://de.archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages
bluez-utils:
Installed: 4.96-0ubuntu4
Candidate: 4.96-0ubuntu4
Version table:
*** 4.96-0ubuntu4 0
500 http://de.archive.ubuntu.com/ubuntu/ oneiric-updates/universe i386 Packages
100 /var/lib/dpkg/status
4.96-0ubuntu3 0
500 http://de.archive.ubuntu.com/ubuntu/ oneiric/universe i386 Packages
python-bluez:
Installed: 0.18-1build1
Candidate: 0.18-1build1
Version table:
*** 0.18-1build1 0
500 http://de.archive.ubuntu.com/ubuntu/ oneiric/universe i386 Packages
100 /var/lib/dpkg/status
bluez-compat:
Installed: (none)
Candidate: 4.96-0ubuntu4
Version table:
4.96-0ubuntu4 0
500 http://de.archive.ubuntu.com/ubuntu/ oneiric-updates/universe i386 Packages
4.96-0ubuntu3 0
500 http://de.archive.ubuntu.com/ubuntu/ oneiric/universe i386 Packages
bluez-tools:
Installed: (none)
Candidate: 0.1.38+git662e-2ubuntu1
Version table:
0.1.38+git662e-2ubuntu1 0
500 http://de.archive.ubuntu.com/ubuntu/ oneiric/universe i386 Packages
** Affects: bluez (Ubuntu)
Importance: Undecided
Status: New
** Tags: bluetooth bluez bot-comment dun rfcomm
--
RFCOMM channel 1 and automatic channel choosing broken cause of DUN
https://bugs.launchpad.net/bugs/897255
You received this bug notification because you are a member of Bluetooth, which is subscribed to bluez in Ubuntu.
More information about the Ubuntu-bluetooth
mailing list