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) || ((ibuffer.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 );