public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] Bluez/bluetooth newbie
@ 2006-10-19 19:52 Turley, Scott-P27856
  2006-10-20  4:29 ` Marcel Holtmann
  0 siblings, 1 reply; 6+ messages in thread
From: Turley, Scott-P27856 @ 2006-10-19 19:52 UTC (permalink / raw)
  To: bluez-users


[-- Attachment #1.1: Type: text/plain, Size: 1725 bytes --]

Hi all,

I'm trying to do something really simple in the bluetooth environment.
I attached a USB bluetooth module (from A7 engineering) to a Linx PC,
and I attached a serial module to a windows PC.  This serial module has
the complete stack, and I just interface to it with ASCII commands over
a serial port profile.  I want to simply send ASCII text across a
bluetooth serial connection between the two computers.

I have been able to do this successfully with a windows host.  Here are
the steps I'm taking:

*	On the Windows side, I connect to the serial bluetooth module,
configure the baud rate to 9600, no HW flow control, etc.
*	On the Linux side I start the hcid and sdpd services.
*	Then I search for the remote bluetooth device using "hcitool
inq" and I see it.
*	I establish a connection using "hcitool cc <bt address>".
*	Finally I use rfcomm to make a serial connection:  "rfcomm
connect 0 <bt address> 1".

The windows side recognizes a connection is made, but I am unable to get
data across.

I have found no way to establish baud rate.  Is that necessary across
bluetooth?  

I am expecting to just type into a window and see the characters show up
in the external window.  This works when both sides are Windows machines
using hyperterm.

Instead, when I type on the windows hyperterm, I get the ascii
characters repeated (is the Linux side bouncing the characters back?).
On the Linux side, when I type in the window, nothing really happens.

Any help/advice would be helpful.

Thanks in advance.

Scott Turley
Software Engineer
GENERAL DYNAMICS DECISION SYSTEMS
Communications Systems Division
8201 E. McDowell Rd. 
Scottsdale, AZ 85257
phone:  480-675-2613


[-- Attachment #1.2: Type: text/html, Size: 3012 bytes --]

[-- Attachment #2: Type: text/plain, Size: 373 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] Bluez/bluetooth newbie
  2006-10-19 19:52 [Bluez-users] Bluez/bluetooth newbie Turley, Scott-P27856
@ 2006-10-20  4:29 ` Marcel Holtmann
  2006-10-25 22:47   ` Turley, Scott-P27856
  0 siblings, 1 reply; 6+ messages in thread
From: Marcel Holtmann @ 2006-10-20  4:29 UTC (permalink / raw)
  To: BlueZ users

Hi Scott,

> I'm trying to do something really simple in the bluetooth environment.
> I attached a USB bluetooth module (from A7 engineering) to a Linx PC,
> and I attached a serial module to a windows PC.  This serial module
> has the complete stack, and I just interface to it with ASCII commands
> over a serial port profile.  I want to simply send ASCII text across a
> bluetooth serial connection between the two computers.
> 
> I have been able to do this successfully with a windows host.  Here
> are the steps I'm taking:
> 
>       * On the Windows side, I connect to the serial bluetooth module,
>         configure the baud rate to 9600, no HW flow control, etc.
>       * On the Linux side I start the hcid and sdpd services.
>       * Then I search for the remote bluetooth device using "hcitool
>         inq" and I see it.
>       * I establish a connection using "hcitool cc <bt address>".

this step is not needed at all.

>       * Finally I use rfcomm to make a serial connection:  "rfcomm
>         connect 0 <bt address> 1".

You might wanna use "rfcomm --raw connect 0 <bdaddr> 1".

> The windows side recognizes a connection is made, but I am unable to
> get data across.
> 
> I have found no way to establish baud rate.  Is that necessary across
> bluetooth?  

No. The baud rate is for the physical interface of the module and not
the RFCOMM connection.

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

* Re: [Bluez-users] Bluez/bluetooth newbie
  2006-10-20  4:29 ` Marcel Holtmann
@ 2006-10-25 22:47   ` Turley, Scott-P27856
  2006-10-25 22:58     ` Ulisses Furquim
  2006-10-26  5:34     ` anoop
  0 siblings, 2 replies; 6+ messages in thread
From: Turley, Scott-P27856 @ 2006-10-25 22:47 UTC (permalink / raw)
  To: BlueZ users

Doing a little more investigation, I found a library that sends/receives
data over a socket connection using rfcomm.  

However, if I use the client side of this library, doing a connect to
another bluetooth device that implements the Serial Port Profile, it
works beautifully, I'm able to send data that gets displayed on the
windows side hyperterminal.

When I try to run the server side library on the Linux machine, and
attempt to make a connection over the hyperterminal, I get an error
message:  "Connection attempt failed because the remote device does not
support the Serial Port Profile".

How do I get a listener on a Linux host to accept serial port profile
connections?

-Scott

-----Original Message-----
From: bluez-users-bounces@lists.sourceforge.net
[mailto:bluez-users-bounces@lists.sourceforge.net] On Behalf Of Marcel
Holtmann
Sent: Thursday, October 19, 2006 9:30 PM
To: BlueZ users
Subject: Re: [Bluez-users] Bluez/bluetooth newbie

Hi Scott,

> I'm trying to do something really simple in the bluetooth environment.
> I attached a USB bluetooth module (from A7 engineering) to a Linx PC, 
> and I attached a serial module to a windows PC.  This serial module 
> has the complete stack, and I just interface to it with ASCII commands

> over a serial port profile.  I want to simply send ASCII text across a

> bluetooth serial connection between the two computers.
> 
> I have been able to do this successfully with a windows host.  Here 
> are the steps I'm taking:
> 
>       * On the Windows side, I connect to the serial bluetooth module,
>         configure the baud rate to 9600, no HW flow control, etc.
>       * On the Linux side I start the hcid and sdpd services.
>       * Then I search for the remote bluetooth device using "hcitool
>         inq" and I see it.
>       * I establish a connection using "hcitool cc <bt address>".

this step is not needed at all.

>       * Finally I use rfcomm to make a serial connection:  "rfcomm
>         connect 0 <bt address> 1".

You might wanna use "rfcomm --raw connect 0 <bdaddr> 1".

> The windows side recognizes a connection is made, but I am unable to 
> get data across.
> 
> I have found no way to establish baud rate.  Is that necessary across 
> bluetooth?

No. The baud rate is for the physical interface of the module and not
the RFCOMM connection.

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

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

* Re: [Bluez-users] Bluez/bluetooth newbie
  2006-10-25 22:47   ` Turley, Scott-P27856
@ 2006-10-25 22:58     ` Ulisses Furquim
  2006-10-26  5:34     ` anoop
  1 sibling, 0 replies; 6+ messages in thread
From: Ulisses Furquim @ 2006-10-25 22:58 UTC (permalink / raw)
  To: BlueZ users

On 10/25/06, Turley, Scott-P27856 <Scott.Turley@gdc4s.com> wrote:
> When I try to run the server side library on the Linux machine, and
> attempt to make a connection over the hyperterminal, I get an error
> message:  "Connection attempt failed because the remote device does not
> support the Serial Port Profile".

I guess your server side code hasn't added a service on the local sdpd
so the remote doesn't know you do support SPP. You can add a service
on the local sdpd inside your code or you can use sdptool to do it.
All you need is:

  # sdptool add --channel=<channel number> SP

Regards,

-- Ulisses

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

* Re: [Bluez-users] Bluez/bluetooth newbie
  2006-10-25 22:47   ` Turley, Scott-P27856
  2006-10-25 22:58     ` Ulisses Furquim
@ 2006-10-26  5:34     ` anoop
  2006-10-26 14:14       ` Turley, Scott-P27856
  1 sibling, 1 reply; 6+ messages in thread
From: anoop @ 2006-10-26  5:34 UTC (permalink / raw)
  To: BlueZ users


[-- Attachment #1.1: Type: text/plain, Size: 3602 bytes --]

Hi Scott,
   
  I am also in the search for  such a library.
  Can you point me to this?.
   
  Anoop

"Turley, Scott-P27856" <Scott.Turley@gdc4s.com> wrote:
  Doing a little more investigation, I found a library that sends/receives
data over a socket connection using rfcomm. 

However, if I use the client side of this library, doing a connect to
another bluetooth device that implements the Serial Port Profile, it
works beautifully, I'm able to send data that gets displayed on the
windows side hyperterminal.

When I try to run the server side library on the Linux machine, and
attempt to make a connection over the hyperterminal, I get an error
message: "Connection attempt failed because the remote device does not
support the Serial Port Profile".

How do I get a listener on a Linux host to accept serial port profile
connections?

-Scott

-----Original Message-----
From: bluez-users-bounces@lists.sourceforge.net
[mailto:bluez-users-bounces@lists.sourceforge.net] On Behalf Of Marcel
Holtmann
Sent: Thursday, October 19, 2006 9:30 PM
To: BlueZ users
Subject: Re: [Bluez-users] Bluez/bluetooth newbie

Hi Scott,

> I'm trying to do something really simple in the bluetooth environment.
> I attached a USB bluetooth module (from A7 engineering) to a Linx PC, 
> and I attached a serial module to a windows PC. This serial module 
> has the complete stack, and I just interface to it with ASCII commands

> over a serial port profile. I want to simply send ASCII text across a

> bluetooth serial connection between the two computers.
> 
> I have been able to do this successfully with a windows host. Here 
> are the steps I'm taking:
> 
> * On the Windows side, I connect to the serial bluetooth module,
> configure the baud rate to 9600, no HW flow control, etc.
> * On the Linux side I start the hcid and sdpd services.
> * Then I search for the remote bluetooth device using "hcitool
> inq" and I see it.
> * I establish a connection using "hcitool cc ".

this step is not needed at all.

> * Finally I use rfcomm to make a serial connection: "rfcomm
> connect 0 1".

You might wanna use "rfcomm --raw connect 0 1".

> The windows side recognizes a connection is made, but I am unable to 
> get data across.
> 
> I have found no way to establish baud rate. Is that necessary across 
> bluetooth?

No. The baud rate is for the physical interface of the module and not
the RFCOMM connection.

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

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


 		
---------------------------------
Stay in the know. Pulse on the new Yahoo.com.  Check it out. 

[-- Attachment #1.2: Type: text/html, Size: 4288 bytes --]

[-- Attachment #2: Type: text/plain, Size: 373 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] Bluez/bluetooth newbie
  2006-10-26  5:34     ` anoop
@ 2006-10-26 14:14       ` Turley, Scott-P27856
  0 siblings, 0 replies; 6+ messages in thread
From: Turley, Scott-P27856 @ 2006-10-26 14:14 UTC (permalink / raw)
  To: BlueZ users


[-- Attachment #1.1: Type: text/plain, Size: 4396 bytes --]

Sure, I copied the source from the following website:
 
http://people.csail.mit.edu/albert/bluez-intro/
 
-Scott



________________________________

	From: bluez-users-bounces@lists.sourceforge.net
[mailto:bluez-users-bounces@lists.sourceforge.net] On Behalf Of anoop
	Sent: Wednesday, October 25, 2006 10:34 PM
	To: BlueZ users
	Subject: Re: [Bluez-users] Bluez/bluetooth newbie
	
	
	Hi Scott,
	 
	I am also in the search for  such a library.
	Can you point me to this?.
	 
	Anoop
	
	"Turley, Scott-P27856" <Scott.Turley@gdc4s.com> wrote:

		Doing a little more investigation, I found a library
that sends/receives
		data over a socket connection using rfcomm. 
		
		However, if I use the client side of this library, doing
a connect to
		another bluetooth device that implements the Serial Port
Profile, it
		works beautifully, I'm able to send data that gets
displayed on the
		windows side hyperterminal.
		
		When I try to run the server side library on the Linux
machine, and
		attempt to make a connection over the hyperterminal, I
get an error
		message: "Connection attempt failed because the remote
device does not
		support the Serial Port Profile".
		
		How do I get a listener on a Linux host to accept serial
port profile
		connections?
		
		-Scott
		
		-----Original Message-----
		From: bluez-users-bounces@lists.sourceforge.net
		[mailto:bluez-users-bounces@lists.sourceforge.net] On
Behalf Of Marcel
		Holtmann
		Sent: Thursday, October 19, 2006 9:30 PM
		To: BlueZ users
		Subject: Re: [Bluez-users] Bluez/bluetooth newbie
		
		Hi Scott,
		
		> I'm trying to do something really simple in the
bluetooth environment.
		> I attached a USB bluetooth module (from A7
engineering) to a Linx PC, 
		> and I attached a serial module to a windows PC. This
serial module 
		> has the complete stack, and I just interface to it
with ASCII commands
		
		> over a serial port profile. I want to simply send
ASCII text across a
		
		> bluetooth serial connection between the two computers.
		> 
		> I have been able to do this successfully with a
windows host. Here 
		> are the steps I'm taking:
		> 
		> * On the Windows side, I connect to the serial
bluetooth module,
		> configure the baud rate to 9600, no HW flow control,
etc.
		> * On the Linux side I start the hcid and sdpd
services.
		> * Then I search for the remote bluetooth device using
"hcitool
		> inq" and I see it.
		> * I establish a connection using "hcitool cc ".
		
		this step is not needed at all.
		
		> * Finally I use rfcomm to make a serial connection:
"rfcomm
		> connect 0 1".
		
		You might wanna use "rfcomm --raw connect 0 1".
		
		> The windows side recognizes a connection is made, but
I am unable to 
		> get data across.
		> 
		> I have found no way to establish baud rate. Is that
necessary across 
		> bluetooth?
		
		No. The baud rate is for the physical interface of the
module and not
		the RFCOMM connection.
		
		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
		
	
------------------------------------------------------------------------
-
		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
		


	
________________________________

	Stay in the know. Pulse on the new Yahoo.com. Check it out.
<http://us.rd.yahoo.com/evt=42974/*http://www.yahoo.com/preview>  


[-- Attachment #1.2: Type: text/html, Size: 6164 bytes --]

[-- Attachment #2: Type: text/plain, Size: 373 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

end of thread, other threads:[~2006-10-26 14:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-19 19:52 [Bluez-users] Bluez/bluetooth newbie Turley, Scott-P27856
2006-10-20  4:29 ` Marcel Holtmann
2006-10-25 22:47   ` Turley, Scott-P27856
2006-10-25 22:58     ` Ulisses Furquim
2006-10-26  5:34     ` anoop
2006-10-26 14:14       ` Turley, Scott-P27856

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox