On Wed, Oct 17, 2007 at 05:51:52PM +0200, Christian W. Zuckschwerdt wrote: > I did some tests with a Siemens S65 now. The DCA-500 cable seems dead. > Both the DCA-510 and DCA-540 work. (It doesn't matter if the converter > in the cable or the one in the phone is used.) > > While the BFB/BFC mode behaves friendly and can be left/reset, I had > some trouble leaving the plain OBEX mode. Neither reset nor escapes > work. Any hints on how to leave the Siemens transparent OBEX(3) mode > (BFB/QWE=3) are appreciated!
This code from siefs works (or at least worked a year ago):
static const char QRESETCMD[] =
{ 0x81, 0x00, 0x03 };
case LINK_QWE3:
comm_tx(b->h, (char *)QRESETCMD, sizeof(QRESETCMD));
bflush(b);
usleep(1000000);
comm_tx(b->h, "+++", 3);
bflush(b);
usleep(1000000);
break;
(Actually, the upstream version does not work, because the second
usleep(1000000) is missing.)
The bflush() function in siefs tries to read until the buffer is empty
with the 0.2 seconds timeout (therefore it introduces an additional 0.2 s
delay - maybe the problem is that the existing sleep(1) in the obexftp
code is not enough).
signature.asc
Description: Digital signature
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ Openobex-users mailing list [email protected] http://lists.sourceforge.net/lists/listinfo/openobex-users
