linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-users] libbluetooth usage
@ 2006-08-19 16:31 Jaime Alberto Silva
  2006-08-20  1:35 ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Jaime Alberto Silva @ 2006-08-19 16:31 UTC (permalink / raw)
  To: bluez-users

Hi everyone!

Can someone please point me to some documentation about libbluetooth usage?

How can I use this library to establish comunication with a BT device?

I'm trying to write a program in J2ME for my Nokia 6670 that
communicates with my Linux PC via RFCOMM. If I use the rfcomm utility
like this:

# rfcomm bind 0 00:02:5B:00:A5:A5

All I have to do is write a program that opens the rfcomm0 serial port
and waits for data? How can I detect when the client connects?

How do I use the RFCOMM socket interface?


Thanks in advance for your attention and any help you can bring me.

-- 
Jaime Alberto Silva       L I N U X       .~.
                                   The Choice     /V\
                                    of a GNU      / ( ) \
                                   Generation    ^^-^^

-------------------------------------------------------------------------
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-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] libbluetooth usage
  2006-08-20  1:35 ` Marcel Holtmann
@ 2006-08-20  0:23   ` Jaime Alberto Silva
  2006-08-20  3:07     ` Marcel Holtmann
  0 siblings, 1 reply; 4+ messages in thread
From: Jaime Alberto Silva @ 2006-08-20  0:23 UTC (permalink / raw)
  To: BlueZ users

Hi Marcel,

On 8/19/06, Marcel Holtmann <marcel@holtmann.org> wrote:
> Hi Jaime,
>
> > Can someone please point me to some documentation about libbluetooth usage?
> >
> > How can I use this library to establish comunication with a BT device?
> >
> > I'm trying to write a program in J2ME for my Nokia 6670 that
> > communicates with my Linux PC via RFCOMM. If I use the rfcomm utility
> > like this:
> >
> > # rfcomm bind 0 00:02:5B:00:A5:A5
> >
> > All I have to do is write a program that opens the rfcomm0 serial port
> > and waits for data? How can I detect when the client connects?
>
> who is the client?

The client is the phone, the PC will have an application waiting for
connections from the phone.

>
> > How do I use the RFCOMM socket interface?
>
> The programs rctest.c and attest.c give a good example on how to use the
> RFCOMM socket interface.

Hmm, I guess those doesn't come in the Debian packages, Where can I find them?


-- 
Jaime Alberto Silva       L I N U X       .~.
                                   The Choice     /V\
                                    of a GNU      / ( ) \
                                   Generation    ^^-^^

-------------------------------------------------------------------------
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-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] libbluetooth usage
  2006-08-19 16:31 [Bluez-users] libbluetooth usage Jaime Alberto Silva
@ 2006-08-20  1:35 ` Marcel Holtmann
  2006-08-20  0:23   ` Jaime Alberto Silva
  0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2006-08-20  1:35 UTC (permalink / raw)
  To: BlueZ users

Hi Jaime,

> Can someone please point me to some documentation about libbluetooth usage?
> 
> How can I use this library to establish comunication with a BT device?
> 
> I'm trying to write a program in J2ME for my Nokia 6670 that
> communicates with my Linux PC via RFCOMM. If I use the rfcomm utility
> like this:
> 
> # rfcomm bind 0 00:02:5B:00:A5:A5
> 
> All I have to do is write a program that opens the rfcomm0 serial port
> and waits for data? How can I detect when the client connects?

who is the client?

> How do I use the RFCOMM socket interface?

The programs rctest.c and attest.c give a good example on how to use the
RFCOMM socket interface.

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-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] libbluetooth usage
  2006-08-20  0:23   ` Jaime Alberto Silva
@ 2006-08-20  3:07     ` Marcel Holtmann
  0 siblings, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2006-08-20  3:07 UTC (permalink / raw)
  To: BlueZ users

Hi Jaime,

> > > Can someone please point me to some documentation about libbluetooth usage?
> > >
> > > How can I use this library to establish comunication with a BT device?
> > >
> > > I'm trying to write a program in J2ME for my Nokia 6670 that
> > > communicates with my Linux PC via RFCOMM. If I use the rfcomm utility
> > > like this:
> > >
> > > # rfcomm bind 0 00:02:5B:00:A5:A5
> > >
> > > All I have to do is write a program that opens the rfcomm0 serial port
> > > and waits for data? How can I detect when the client connects?
> >
> > who is the client?
> 
> The client is the phone, the PC will have an application waiting for
> connections from the phone.

then you are looking for "rfcomm listen" and not "rfcomm bind".

> > > How do I use the RFCOMM socket interface?
> >
> > The programs rctest.c and attest.c give a good example on how to use the
> > RFCOMM socket interface.
> 
> Hmm, I guess those doesn't come in the Debian packages, Where can I find them?

They are part of bluez-utils source package.

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-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

end of thread, other threads:[~2006-08-20  3:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-19 16:31 [Bluez-users] libbluetooth usage Jaime Alberto Silva
2006-08-20  1:35 ` Marcel Holtmann
2006-08-20  0:23   ` Jaime Alberto Silva
2006-08-20  3:07     ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).