[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [bluetooth-dev] File transfert



This has been answered a couple of times before on this list.
The problem is basically the XON/XOFF flow control bytes
(^s and ^q). The following is a previous mail on this subject
that may help you:

> -----Original Message-----
> From: Laurent Eschenauer [mailto:laurent.e@xxxxxxx.com] 
> Sent: Monday, May 07, 2001 22:08
> To: bluetooth-dev@xxxxxxx.com
> Subject: Re: [bluetooth-dev] Problem writing a TTY under the stack.
> 
> Thanks all for your replies. 
> I'll explain my conclusions here so it may help someone 
> else, somedays... 
> 
> You were right, 0x11 is part of the XON/XOFF control bytes. 
> This is set by default through the termios structures (c_iflag)
> and is transparent to the stack since the io takes care of 
> everything. 
> 
> It's possible to turn it off by using tcsetattr() (on a client 
> point of view). 
> 
> Since I didn't want to touch the code of the Axis stack, I had
> to do it "reverse" from the device point of view, using: 
> 
> tty->termios->c_iflag = tty->termios->c_iflag & ~IXON & ~IXOFF 
> 
> It works now perfect, my "virtual device" is talking to your 
> stack and they understand each others ! 
> 
> Thanks, 
> 
> -Laurent 

//Peter

> -----Original Message-----
> From: Alain Paschoud [mailto:alain.paschoud.list@xxxxxxx.ch] 
> Sent: Friday, July 12, 2002 09:20
> To: bluetooth-dev@xxxxxxx.com
> Subject: [bluetooth-dev] File transfert
> 
> Hi all,
> 
> I'm able to make a connection, start ppp, and surf the web 
> through a bluetooth link. Now I want to do something more 
> basic : transfert a file between two PCs. So I don't start 
> any protocol on the bluetooth link. I just make "cat file > 
> /dev/ttyBT0" on one side, and "cat /dev/ttyBT0 > 
> received_file" on the other side The file is 200 ko.
> 
> I always use a serial communication at 57600 bauds.
> 
> I tried next configurations :
> 
> ROK 007 -> ROK 007
> ROK 007 -> CSR (with BCSP)
> ROK 007 -> TI BSN6030
> 
> In every configurations, I'm unable to receive the file 
> without errors. Some (and sometimes a lot) of bytes are lost. 
> The received file is smaller that the original file.
> 
> I set the /dev/ttyBT0 so that no text conversion is done on 
> incoming data (no CR conversion).
> 
> Does someone manage to send a file of 200 ko from one PC to 
> another without any high level protocol over RFCOMM ?
> 
> Thank you for any advices or propositions.
> 
> -- 
> Alain Paschoud                      SMARTDATA SA
> alain.paschoud@xxxxxxx.ch         PSE-A
> http://www.smartdata.ch             1015 Lausanne
> Phone +41-21-693'84'98              
> Fax   +41-27-693'84'91              
 
-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com