All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] Lost API? / Creating serial port connection
Date: Thu, 19 May 2005 11:34:54 +0200	[thread overview]
Message-ID: <1116495294.24921.11.camel@pegasus> (raw)
In-Reply-To: <1116475358.32473.9.camel@delta>

Hi William,

> I'm working on some Linux drivers to communicate to a Bar Code
> scanner.  It works fine over a regular serial port.  Next task, use
> Bluetooth.  I've just added a Bluetooth module to the bar code scanner,
> and I can communicate with it perfectly fine by using 'hcitool scan' and
> then 'rfcomm connect'.  I then note the serial port, and use that for
> the bar code comms.  However, I wanted to add a GUI type interface to do
> the discovery/connecting part.  Now I can do some simple system calls,
> parsing input and output, but that's dodgy.
> 
> So what I wanted to do was basically, run a discovery/inquiry.  Find
> some devices, their names, and possibly classes as well.  And then
> establish a SPP connection to a device.
> 
> But I can't seem to find any sort of programming API for Bluez.  Am I
> just being silly and looking in the wrong places?  I've checked the
> header files, and they're very rudimentary.  I've done the same thing,
> for the same bar code scanner, under PalmOS, and that was, whilst not
> overty simple, not too convoluted.
> 
> So is there an API out there?
> And is there a simple way to do what I want?

since you are using hcitool and rfcomm you might wanna look at the
source code of these two tools. You can also look at my presentations
about Bluetooth programming for some examples.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

      reply	other threads:[~2005-05-19  9:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-19  4:02 [Bluez-users] Lost API? / Creating serial port connection William Pettersson
2005-05-19  9:34 ` Marcel Holtmann [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=1116495294.24921.11.camel@pegasus \
    --to=marcel@holtmann.org \
    --cc=bluez-users@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.