All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] RFComm library
@ 2005-05-20  5:16 William Pettersson
  2005-05-20  9:32 ` Marcel Holtmann
  0 siblings, 1 reply; 3+ messages in thread
From: William Pettersson @ 2005-05-20  5:16 UTC (permalink / raw)
  To: bluez-users

Ok, so I needed some simple way to use Bluetooth in my application.
I've basically just done some copying and pasting from the source of the
tools hcitool and rfcomm, so I can't exactly claim any of this work as
my own.  It's all under Marcel's GPL still, and will probably stay that
way.  This is just so far a simple way of doing a bluetooth inquiry/scan
and getting results back.  I'll take pointers on how to do things
better/more effectively, but I can't guarantee much.
What's included is the source for the library, and a sample app.
The sample app does a bluetooth scan, finds my phone (identified by the
name 'Will', and then connects to the serial port offered.  The AT+CBC
that I have in there returns the battery status of my phone, it's just
my test case.  
Using the library is explained in the rfcomm-library.h file, and
hopefully it makes sense.

This is just to help others who are trying to do what I needed to do,
hopefully someone will benefit from this.

Will

http://www.strudel-hound.com/librfcomm.tar.bz2





-------------------------------------------------------
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] 3+ messages in thread

* Re: [Bluez-users] RFComm library
  2005-05-20  5:16 [Bluez-users] RFComm library William Pettersson
@ 2005-05-20  9:32 ` Marcel Holtmann
  2005-05-21  8:34   ` [Bluez-users] Link quality Pieter De Mil
  0 siblings, 1 reply; 3+ messages in thread
From: Marcel Holtmann @ 2005-05-20  9:32 UTC (permalink / raw)
  To: bluez-users

Hi Will,

> Ok, so I needed some simple way to use Bluetooth in my application.
> I've basically just done some copying and pasting from the source of the
> tools hcitool and rfcomm, so I can't exactly claim any of this work as
> my own.  It's all under Marcel's GPL still, and will probably stay that
> way.  This is just so far a simple way of doing a bluetooth inquiry/scan
> and getting results back.  I'll take pointers on how to do things
> better/more effectively, but I can't guarantee much.
> What's included is the source for the library, and a sample app.
> The sample app does a bluetooth scan, finds my phone (identified by the
> name 'Will', and then connects to the serial port offered.  The AT+CBC
> that I have in there returns the battery status of my phone, it's just
> my test case.  
> Using the library is explained in the rfcomm-library.h file, and
> hopefully it makes sense.
> 
> This is just to help others who are trying to do what I needed to do,
> hopefully someone will benefit from this.

nice stuff, but I think totally unneeded. And in most cases there is no
need to create a TTY. You can use the RFCOMM socket directly which will
then result in less code.

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] 3+ messages in thread

* [Bluez-users] Link quality
  2005-05-20  9:32 ` Marcel Holtmann
@ 2005-05-21  8:34   ` Pieter De Mil
  0 siblings, 0 replies; 3+ messages in thread
From: Pieter De Mil @ 2005-05-21  8:34 UTC (permalink / raw)
  To: bluez-users

Hello,

For everyone who is interested in context-aware applications:
don't use Bluetooth :)

When you move away from a bluetooth-dongle, the link quality will drop, but 
it comes back to 255.
Because Bluetooth wants to keep a good connection, the bluetooth-dongle is 
going to adjust the send-power.

regards,
Pieter






-------------------------------------------------------
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] 3+ messages in thread

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-20  5:16 [Bluez-users] RFComm library William Pettersson
2005-05-20  9:32 ` Marcel Holtmann
2005-05-21  8:34   ` [Bluez-users] Link quality Pieter De Mil

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.