linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pierre-Yves Paulus <py@idlum.be>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] DBus API and rfcomm crashing hcid
Date: Mon, 03 Jul 2006 08:00:48 +0200	[thread overview]
Message-ID: <1151906449.15040.12.camel@localhost> (raw)
In-Reply-To: <1151658521.753.38.camel@localhost>

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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

      reply	other threads:[~2006-07-03  6:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-29 14:16 [Bluez-devel] DBus API and rfcomm crashing hcid Pierre-Yves Paulus
2006-06-29 15:58 ` Marcel Holtmann
2006-06-30  6:36   ` Pierre-Yves Paulus
2006-06-30  9:08 ` Pierre-Yves Paulus
2006-07-03  6:00   ` Pierre-Yves Paulus [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1151906449.15040.12.camel@localhost \
    --to=py@idlum.be \
    --cc=bluez-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).