From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [Bluez-devel] RFCOMM communication gets stalled From: Marcel Holtmann To: Carlos AM Cc: lista bluez In-Reply-To: <002c01c46a77$034a25e0$5000005a@naxus> References: <002c01c46a77$034a25e0$5000005a@naxus> Content-Type: text/plain Message-Id: <1089913722.4517.37.camel@pegasus> Mime-Version: 1.0 Sender: bluez-devel-admin@lists.sourceforge.net Errors-To: bluez-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Date: Thu, 15 Jul 2004 19:48:42 +0200 Hi Carlos, > I'm using bluez-libs-2.7 and bluez-utils-2.7 to develop a GPS system > that communicates via bluetooth. I use the RFCOMM and the connection > and disconnection works fine but the transmission gets stalled in > about ten minutes. Both sides indicate that they are still connected, > but in the GPS side, the process that writes in the rfcomm device > (/dev/bluetooth/rfcomm/0) stops on a blocking write call: > > write(fdbluetooth,s,strlen(s)); > > I open the rfcomm device this way: > > fdbluetooth= open("/dev/bluetooth/rfcomm/0",O_RDWR | O_NOCTTY); > > > That write call works fine for a while until the communication gets > stalled. don't use the RFCOMM TTY terminal emulation. Go directly throught the RFCOMM socket interface. If you still got problems check with hcidump what is going on. Regards Marcel ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel