Skip to contentSkip to conversation

Rfcomm Problems

Bluez-users Thomas Brandl 3 participants 4 messages Apr 26, 2006 – May 8, 2006 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hallo;

I have a problem concerning rfcomm conenction. Hopefully somebody can help me ;-))

Following Problem:

After
sdptool add --channel=2 SP, and
rfcomm listen rfcomm0 (I put it in an infinite loop so that reconnection will establish automatically) I am waiting for an incoming connection. This connection is availiable after a few seconds. So no problems so far.

My problem now.
I have an application listening on rfcomm0, if something happens that causes an disconnection (with following reconnection) my apllication is not be able to receive from dev/rfcomm0

You can test it with simple cat /dev/rfcomm0. After disconnection cat is closing.
I need that cat /dev/rfcomm0 is kept open. Would it be possible to link to a specific script which is able to handle this?? Any other proposals??

Thanks

Thomas

#1 lore raw
Quoted 3 lines

I need that cat /dev/rfcomm0 is kept open.

To my knowledge, this is not currently possible. Anyone?

-albert

#2 lore raw

Hey Albert,
Even have some rfcomm problems.... whenever I use rfcomm-server and rfcomm-client ( the sample code in ur site) many times... I get this Resource temporarily unavailable and I need to restart the machine.....

Is it because of ISSC chipset.... or am I missin somethin?

Quoted 8 lines · Albert Huang

I need that cat /dev/rfcomm0 is kept open.

Quoted 1 line

To my knowledge, this is not currently possible. Anyone?

-albert

#3 lore raw
In reply to Albert Huang

is it maybe possible to create a script, which can simulate that open device file. at that moment i don't know how, but i think there should be any solution.

greetings

thomas
----- Original Message -----
From: Albert Huang
To: [email protected]
Sent: Friday, April 28, 2006 10:36 PM
Subject: Re: [Bluez-users] Rfcomm Problems

I need that cat /dev/rfcomm0 is kept open.

To my knowledge, this is not currently possible. Anyone?

-albert