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
Sure, I copied the source from the following website:
http://people.csail.mit.edu/albert/bluez-intro/
-Scott
________________________________
From: [email protected]
[mailto:[email protected]] 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" <[email protected]> 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: [email protected]
[mailto:[email protected]] 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
[email protected]
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
[email protected]
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>
Hi Scott,
I am also in the search for such a library.
Can you point me to this?.
Anoop
"Turley, Scott-P27856" <[email protected]> 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: [email protected]
[mailto:[email protected]] 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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
---------------------------------
Stay in the know. Pulse on the new Yahoo.com. Check it out.
On 10/25/06, Turley, Scott-P27856 <[email protected]> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/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: [email protected]
[mailto:[email protected]] 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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users