All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] Lost API? / Creating serial port connection
@ 2005-05-19  4:02 William Pettersson
  2005-05-19  9:34 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: William Pettersson @ 2005-05-19  4:02 UTC (permalink / raw)
  To: bluez-users

Ok, 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?

William



-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Bluez-users] Lost API? / Creating serial port connection
  2005-05-19  4:02 [Bluez-users] Lost API? / Creating serial port connection William Pettersson
@ 2005-05-19  9:34 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2005-05-19  9:34 UTC (permalink / raw)
  To: bluez-users

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-19  9:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19  4:02 [Bluez-users] Lost API? / Creating serial port connection William Pettersson
2005-05-19  9:34 ` Marcel Holtmann

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.