public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] Serial connection between two Linux machines
@ 2004-07-21 15:36 Thomas Luby
  2004-07-21 16:16 ` Marcel Holtmann
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Luby @ 2004-07-21 15:36 UTC (permalink / raw)
  To: bluez-users

[-- Attachment #1: Type: text/html, Size: 1907 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread
* RE: [Bluez-users] Serial connection between two Linux machines
@ 2004-07-21 16:36 Thomas.Luby
  2004-07-21 16:50 ` Marcel Holtmann
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas.Luby @ 2004-07-21 16:36 UTC (permalink / raw)
  To: marcel; +Cc: bluez-users

Hi Marcel

I have tried "rfconn connect" instead but get the same results.=20

If I keep the connection open it works (using cat as you suggested) =
however this doesnt work if I make a getty port on the slave side

I think the problem is on the slave side because if I connect the slave =
to Windows then I get the same issue. The Windows terminal disconnects =
after 1 "echo" or one file cat

Is there a command I can use on the slave side that keeps the port open =
once connected (this is what I tried with dund --persist)

Are the commands OK on the slave side?

Thanks!

Tom=20

-----Original Message-----
From: ext Marcel Holtmann [mailto:marcel@holtmann.org]
Sent: 21 July, 2004 19:16
To: Luby Thomas (Nokia-NRC/Helsinki)
Cc: BlueZ Mailing List
Subject: Re: [Bluez-users] Serial connection between two Linux machines


Hi Thomas,

> I have two Linux machines. I wish to connect to one from the other
> using a terminal over Bluetooth
>=20
> The problem I have is annoying because it basically works. Anyway,
> here is the problem
>=20
> Master (USB bluetooth):
>=20
> modprobe hci_usb
> hciconfig hci0 up
> hciconfig
>=20
> mknod -m 666 /dev/rfcomm0 c 216 0
> rfcomm bind 0 00:60:57:18:FB:6E 1
>=20
> Slave (UART bluetooth):
>=20
> hciattach /dev/ttyS0 -s 115200 csr
> hciconfig hci0 up
> hcid
> dund --persist --listen
> sdpd
> sdptool add SP --channel=3D1
>=20
>=20
> I open a terminal on the master. A connection is present.
>=20
> I type echo "Hello" > /dev/bluetooth/rfcomm/0
>=20
> and on the master terminal I see "Hello"
>=20
> And this is where the problem comes. If I repeat the echo, I get:
> cannot create /dev/rfcomm0: No such device
>=20
> because the connection was closed
>=20
> I have sent huge files down the link with no problem...but when it
> reaches the end of the file, the connection closes everytime!
>=20
> If anyone knows what Im doing wrong I would appreciate it! I have
> searched for 2 days now and not managed to find the solution

use "rfconn connect ..." instead of "rfcomm bind ..." or keep the link
opened with "cat /dev/rfcomm0".

Regards

Marcel

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <37AD475D23C5D0469726DD437E59714151177E@esebe022.ntc.nokia.com>]

end of thread, other threads:[~2004-07-22  6:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-21 15:36 [Bluez-users] Serial connection between two Linux machines Thomas Luby
2004-07-21 16:16 ` Marcel Holtmann
  -- strict thread matches above, loose matches on Subject: below --
2004-07-21 16:36 Thomas.Luby
2004-07-21 16:50 ` Marcel Holtmann
     [not found] <37AD475D23C5D0469726DD437E59714151177E@esebe022.ntc.nokia.com>
2004-07-22  6:54 ` Marcel Holtmann

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