* [Bluez-users] problems setting up an SPP profile connection
@ 2003-12-31 10:22 Christian.Lessig
2003-12-31 11:16 ` Marcel Holtmann
0 siblings, 1 reply; 2+ messages in thread
From: Christian.Lessig @ 2003-12-31 10:22 UTC (permalink / raw)
To: bluez-users; +Cc: lessig
Hallo,
I've got problems to set up an SPP (serial port profile) connection. I
can connect and bind to the second device (a bluetooth chip for
industrial purpose) but I don't know how to receive messages. In the
assumption that rfcomm0 behaves like ttyS0 I wrote a little C programm
where I open the rfcomm0-file, set the parameter, write something and
wait for response. But I don't receive anything.
When I connect under Windows and send AT commands over the hyperterminal
it works and the device is responding.
I also tried to use the rfcommd. I thought propably I need the daemon to
receive messages, but direct after starting it exits. I found nowhere a
appropriate config file for rfcommd so I used this:
session_x {
channel 1;
}
Regards,
Christian Lessig, Bauhaus University Weimar
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&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] problems setting up an SPP profile connection
2003-12-31 10:22 [Bluez-users] problems setting up an SPP profile connection Christian.Lessig
@ 2003-12-31 11:16 ` Marcel Holtmann
0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2003-12-31 11:16 UTC (permalink / raw)
To: Christian.Lessig; +Cc: BlueZ Mailing List, lessig
Hi Christian,
> I've got problems to set up an SPP (serial port profile) connection. I
> can connect and bind to the second device (a bluetooth chip for
> industrial purpose) but I don't know how to receive messages. In the
> assumption that rfcomm0 behaves like ttyS0 I wrote a little C programm
> where I open the rfcomm0-file, set the parameter, write something and
> wait for response. But I don't receive anything.
you can look at attest.c for an example. It demonstrates how to use the
RFCOMM socket and also the RFCOMM TTY to send AT commands.
> I also tried to use the rfcommd. I thought propably I need the daemon to
> receive messages, but direct after starting it exits. I found nowhere a
> appropriate config file for rfcommd so I used this:
The rfcommd is deprecated and replaced by our kernel RFCOMM
implementation.
Regards
Marcel
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&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:[~2003-12-31 11:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-31 10:22 [Bluez-users] problems setting up an SPP profile connection Christian.Lessig
2003-12-31 11:16 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox