From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] Registering service / Getting data
Date: Tue, 29 Aug 2006 22:56:45 +0200 [thread overview]
Message-ID: <1156885005.4026.33.camel@aeonflux.holtmann.net> (raw)
In-Reply-To: <50269.157.193.214.17.1156867288.squirrel@www.ibcn.intec.ugent.be>
Hi Dieter,
> I'm developing an application that should capture some data sent by a
> bluetooth device.
> The device is not discoverable, only comes up when it has some data to send.
> It searches for devices with a certain PIN. When it can pair, it queries
> the sdpd for
> services meeting the Serial Port Profile (0x1101) and sends the data to
> this service.
>
> When I use hcidump, i can see the data pass, but I can't figure out how to
> get it in a C program.
>
> I used http://people.csail.mit.edu/albert/bluez-intro/index.html as
> reference to program in C.
>
> When I register my service with the sdpd daemon, i don't know how to query
> the sdpd. At least i don't see my service using sdptool. When I run the C
> program, nothing happens, the app keeps listening for incoming
> connections.
>
> In attachment my hcidump and c-file.
first of all the preferred mode is "hcidump -X -V", because I am not
going to decode any HCI traffic by hand.
Second, the RFCOMM channel in the SDP service registration (in your case
it is 11) should match the channel you listen on (which is 1).
Regards
Marcel
-------------------------------------------------------------------------
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
next prev parent reply other threads:[~2006-08-29 20:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-29 16:01 [Bluez-devel] Registering service / Getting data Dieter Verslype
2006-08-29 20:56 ` Marcel Holtmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-08-30 8:20 Dieter Verslype
2006-08-30 9:31 ` Dieter Verslype
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=1156885005.4026.33.camel@aeonflux.holtmann.net \
--to=marcel@holtmann.org \
--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