[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/pim/kmobiletools/kmobiletools/libkmobiletools
From:       Marco Gulino <marco () kmobiletools ! org>
Date:       2006-07-31 22:31:08
Message-ID: 1154385068.513880.27891.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 568372 by gulino:

Send an 'AT\r' to the phone when it seems hunging, to wake it. (just like a noop)

 M  +5 -2      serialdevice.cpp  


--- trunk/playground/pim/kmobiletools/kmobiletools/libkmobiletools/serialdevice.cpp \
#568371:568372 @@ -166,8 +166,11 @@
     while ( d->serial && !EnginesList::instance()->closing()
             && ( (timeout==0) || ((i<timeout) && !d->buffer.contains(exitExp) ) )) \
/// @TODO fix this loop to have something like timeout in msecs.  {
-        if( i>=1000 && (i%1000 == 0)) {d->serial->writeBlock("\x1A\r", 2);
-            kdDebug() << "Sending \\r to unblock\n";
+        if( i>=1000 && (i%1000 == 0)) {d->serial->writeBlock("AT\r", 3);
+            d->serial->flush();
+            kdDebug() << "****************** WARNING!!!! Sending AT\\r to unblock \
the phone.\n"; +            kdDebug() << "****************** this can be a bug of the \
phone, or of kmobiletools.\n"; +            kdDebug() << "****************** please \
report to marco AT kmobiletools.org.\n";  }
 //         if(job)
         job->thread()->msleep( 1 );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic