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UxMOworICAgICAgIG1lbXNldCgmbm9kZS0+bmFtZSwgMCwgc2l6ZW9mKG5v
ZGUtPm5hbWUpKTsKKwoKICAgICAgICAvKiBDcmVhdGUgdGhlIHJmY29tbSBkZXZpY2Ugbm9kZSAq
LwoKCgpIb3dldmVyLCB0aGlzIG9idmlvdXNseSBkb2VzIG5vdGhpbmcgdG8gc29sdmUgdGhlIGZh
Y3QgdGhhdCB0aGUKY29ubmVjdGlvbiBmYWlscyBhdCB0aGUgaW9jdGwgY2FsbC4gSSBzdGlsbCBu
ZWVkIHRvIGZpZ3VyZSBvdXQgaG93IGFsbAp0aGF0IHN0dWZmIHdvcmtzLi4uCgoKUmVnYXJkcywK
UGllcnJlLVl2ZXMKCgoKVXNpbmcgVG9tY2F0IGJ1dCBuZWVkIHRvIGRvIG1vcmU/IE5lZWQgdG8g
c3VwcG9ydCB3ZWIgc2VydmljZXMsIHNlY3VyaXR5PwpHZXQgc3R1ZmYgZG9uZSBxdWlja2x5IHdp
dGggcHJlLWludGVncmF0ZWQgdGVjaG5vbG9neSB0byBtYWtlIHlvdXIgam9iIGVhc2llcgpEb3du
bG9hZCBJQk0gV2ViU3BoZXJlIEFwcGxpY2F0aW9uIFNlcnZlciB2LjEuMC4xIGJhc2VkIG9uIEFw
YWNoZSBHZXJvbmltbwpodHRwOi8vc2VsLmFzLXVzLmZhbGthZy5uZXQvc2VsP2NtZD1sbmsma2lk
PTEyMDcwOSZiaWQ9MjYzMDU3JmRhdD0xMjE2NDIKX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX18KQmx1ZXotZGV2ZWwgbWFpbGluZyBsaXN0CkJsdWV6LWRldmVs
QGxpc3RzLnNvdXJjZWZvcmdlLm5ldApodHRwczovL2xpc3RzLnNvdXJjZWZvcmdlLm5ldC9saXN0
cy9saXN0aW5mby9ibHVlei1kZXZlbAo=
Hi Marcel,
> run hcid with -n and through gdb. So we get a backtrace and line numbers
> where this fails.
Hope this is what you were looking for:
(gdb) r -xn
Starting program: /tmp/Bluez/bluez-utils-3.1/hcid/hcid -xn
hcid[9730]: Bluetooth HCI daemon
hcid[9730]: Register path:/org/bluez fallback:1
hcid[9730]: Device hci0 has been added
hcid[9730]: Starting security manager 0
hcid[9730]: Device hci0 has been activated
hcid[9730]: Register path:/org/bluez/hci0 fallback:0
hcid[9730]: Connect in progress
hcid[9730]: rfcomm_connect_cb: connected
hcid[9730]: ioctl(RFCOMMCREATEDEV): Operation not supported (95)
)cid[9730]: rfcomm_release(=EC=B7=EC=B7
Program received signal SIGSEGV, Segmentation fault.
g_io_channel_close (channel=3D0x11) at glib-ectomy.c:58
58 close(channel->fd);
(gdb) bt full
#0 g_io_channel_close (channel=3D0x11) at glib-ectomy.c:58
No locals.
#1 0x0805d77b in rfcomm_release (node=3D0x8068118, err=3D0x0) at
dbus-rfcomm.c:174
req =3D {dev_id =3D 0, flags =3D 3086381648, src =3D {b =3D "h}\006=
\bh}"},
dst =3D {b =3D "\006\b0=E8\006\b"}, channel =3D 95 '_'}
#2 0x0805d9ff in rfcomm_connect_cb (chan=3D0x11, cond=3DG_IO_OUT,
c=3D0x806e830) at dbus-rfcomm.c:323
sk =3D 11
ret =3D 0
err =3D 95
fd =3D 0
i =3D 95
len =3D 10
ptr =3D 0x0
req =3D {dev_id =3D -1, flags =3D 3, src =3D {b =3D "=D9\a=F4 \000P=
"}, dst =3D
{b =3D "\222M=BBW`"}, channel =3D 9 '\t'}
node =3D (struct rfcomm_node *) 0x8068118
reply =3D (DBusMessage *) 0x0
#3 0x0805fdba in g_main_loop_run (loop=3D0x8066b08) at glib-ectomy.c:302
nfds =3D 4
rc =3D 17
n =3D (struct watch *) 0x4
w =3D (struct watch *) 0x806e860
ufds =3D (struct pollfd *) 0x806c828
#4 0x0804c77b in main (argc=3D0, argv=3D0x0) at main.c:729
addr =3D {hci_family =3D 31, hci_dev =3D 65535}
flt =3D {type_mask =3D 16, event_mask =3D {0, 536870912}, opcode =
=3D 0}
sa =3D {__sigaction_handler =3D {sa_handler =3D 0x1, sa_sigaction =
=3D
0x1}, sa_mask =3D {__val =3D {0 <repeats 32 times>}}, sa_flags =3D 1, =
sa_restorer =3D 0}
ctl_io =3D (GIOChannel *) 0x11
opt =3D 17
daemonize =3D 0
sdp =3D 0
experimental =3D 1
(gdb)
As you can see, I'm running the 3.1 version. I would be happy to provide
any other information that could be helpful, if I can.
Regards,
Pierre-Yves
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easi=
er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
SGkgUGllcnJlLVl2ZXMsCgo+IEknbSB0cnlpbmcgdG8gaW5pdGlhdGUgYW4gUkZDT01NIGNvbm5l
Y3Rpb24gdXNpbmcgdGhlIERCdXMgQVBJLiBJIGNhbgo+IGdldCB0aGUgUkZDT01NIG9iamVjdCBv
biB0aGUgYnVzLCB0aGVuIEkgY2FsbCBDb25uZWN0QnlDaGFubmVsKGFkZHJlc3MsCj4gY2hhbm5l
bCkuIEkgdGhlbiBnZXQgdGhlIHByb21wdCBvbiB0aGUgcmVtb3RlIGRldmljZSB0byBhY2NlcHQg
b3IgZGVueS4KPiBCdXQgd2hlbiBJIGFjY2VwdCwgaGNpZCBkb2VzIGNyYXNoIHdpdGggdGhlIGZv
bGxvd2luZyBvdXRwdXQ6Cj4gCj4gaGNpZFsxOTkxXTogQ29ubmVjdCBpbiBwcm9ncmVzcwo+IGhj
aWRbMTk5MV06IHJmY29tbV9jb25uZWN0X2NiOiBjb25uZWN0ZWQKPiBoY2lkWzE5OTFdOiBpb2N0
bChSRkNPTU1DUkVBVEVERVYpOiBPcGVyYXRpb24gbm90IHN1cHBvcnRlZCAoOTUpCj4gaGNpZFsx
OTkxXTogcmZjb21tX3Jl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ViU3BoZXJlIEFwcGxpY2F0aW9uIFNlcnZlciB2LjEuMC4xIGJhc2VkIG9uIEFw
YWNoZSBHZXJvbmltbwpodHRwOi8vc2VsLmFzLXVzLmZhbGthZy5uZXQvc2VsP2NtZD1sbmsma2lk
PTEyMDcwOSZiaWQ9MjYzMDU3JmRhdD0xMjE2NDIKX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX18KQmx1ZXotZGV2ZWwgbWFpbGluZyBsaXN0CkJsdWV6LWRldmVs
QGxpc3RzLnNvdXJjZWZvcmdlLm5ldApodHRwczovL2xpc3RzLnNvdXJjZWZvcmdlLm5ldC9saXN0
cy9saXN0aW5mby9ibHVlei1kZXZlbAo=
Hello,
> However, this obviously does nothing to solve the fact that the
> connection fails at the ioctl call. I still need to figure out how all
> that stuff works...
I just figured out it was failing because of the lack of RFCOMM TTY in
my kernel... I now can get the device created just as expected!
May I suggest the following patch (line numbers are according to the
version of the file patched as explained in my previous message on this
thread), which helps to spot the problem faster than "Operation not
supported" does? This also is the way it is done in
bluez-utils/rfcomm/main.c (at about line 178).
*** orig/dbus-rfcomm.c Mon Jul 3 07:53:10 2006
--- new/dbus-rfcomm.c Mon Jul 3 07:53:56 2006
***************
*** 268,273 ****
--- 268,275 ----
if (node->id < 0) {
err = errno;
error("ioctl(RFCOMMCREATEDEV): %s (%d)",
strerror(errno), err);
+ if (err == EOPNOTSUPP)
+ fprintf(stderr, "RFCOMM TTY support not available\n");
error_failed(c->conn, c->msg, err);
goto failed;
}
(There seem to be a "buggy" line wrap due to the fact it is pasted
inside the e-mail body. Should I better send patches as attachments?)
Any comment very welcome again.
Pierre-Yves Paulus
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel