From: Pedro Monjo Florit <pmonjo2000@yahoo.com>
To: bluez-devel@lists.sourceforge.net
Subject: [Bluez-devel] Re: debugging apps using bluez under C
Date: Wed, 03 May 2006 09:30:53 +0200 [thread overview]
Message-ID: <44585C2D.5040202@yahoo.com> (raw)
In-Reply-To: <a3b1b800605021215y4bd5377bs2d9d5163975e7a98@mail.gmail.com>
Jan Benes escribi=F3:
> hello,
> I've been trying to make this application I'm working on run for over
> a month now. it doesn't do anything extraordinary, just scans for
> devices and if appropriate devices are found, sends a file via OBEX.
> The thing is I'm getting all kinds of different problems all the time
> that are very hard to decypher. So I ask (for BlueZ), is there any
> tool that can help me with figuring out if there's anything wrong with
> the stakc? If I did something wrong? Or how am I supposed to know?
>=20
> for example: It happend to me twice that my app. failed with a SDP
> request and since then, all the requests failed as well (for some
> time). How do I know what I did wrong?
> another example: I inquire for devices (my previous posts) but it
> takes longer than I specify in the parameter. I can't afford to wait
> for 3 minutes till the inquiry is over, cause all the devices I've
> found could be out of reach by then. Again, how am I to know what went
> wrong? Also, I've noted that sometimes, the hci_inquiry function
> returns immediately (some result caching i suppose, and yes, I tell
> the func. to flush the cash).
> last example: "I got a Software caused connection abort" error from
> OBEX (which runs on top of the RFCOMM protocol afaik). What, how, no
> documentation, google doesn't know either. What went wrong?
>=20
> I study the sources, I study the other sources, I search all the
> mailing lists I've found for the answer, but most of the time to no
> avail.
>=20
> 1) how can I tell what went wrong, is there a diagnostic function in th=
e
> stack?
> 2) I don't mean to be impolite, but you should consider putting
> together some documentation. I know you probably don't get paid for
> this, you do it in your free time (I'm talking about the authors), but
> that would really be a good idea. Just 10 lines of comments for each
> function, is that too much to ask? Not that I couldn't imaigine what
> function hci_inquiry does, but figuring out all the pitfalls (as many
> already have I believe) is very tedious. I can offer my help (that's
> not much considering my knowledge) with documentation if you want.
>=20
> thanks, Jan
>=20
Hi Jan,
>From my experience, some errors that you have shown seem to be normal
with the Bluetooth stack. Usually, trying later works. Remember that
Bluetooth is not TCP/IP. As a debugging tool, you can try recompiling
bluez in debug mode, so that it shows all kind of messages and you can
use gdb with it. I would also encourage you to use hcidump and patiently
analyze the logs it generates.
Cheers,
Pedro
-------------------------------------------------------
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
prev parent reply other threads:[~2006-05-03 7:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-02 19:15 [Bluez-devel] debugging apps using bluez under C Jan Benes
2006-05-03 7:30 ` Pedro Monjo Florit [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=44585C2D.5040202@yahoo.com \
--to=pmonjo2000@yahoo.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.