Thanks,
It works fine now (with 1 second sleep)

thanks for your help

On 7/2/05, Hendrik Sattler <[EMAIL PROTECTED]> wrote:
> Am Freitag, 1. Juli 2005 20:02 schrieb SDiZ:
> > I am using Xera GZ100 (OEM version of Sharp GX-15),
> >
> > Vendor:       SHARP Corporation
> > Model:        GX Series
> > Revision:     Revision: (Date: Feb 14 2005, Time: 04:27:16)
> >
> > I change the usleep to sleep for 2 second.. and i fails on the first
> > time i use scmxx.. (it works on the second time, but not the third ...
> > )
> > Maybe this phone is just too buggy ="(
> 
> Try it like this:
>   tty_write("+++",4);
>   usleep(1010*1000);
>   tty_flush();
>   tty_write("\r",1);
>   usleep(1010*1000);
>   tty_flush();
> 
> This should take care of a stupid phone. Again, do not hesitate to increase
> the waiting values to 5 seconds each (especially the second one).
> 
> Obviously your phone:
> 1. waits for '\r' after the "+++"
> 2. echos the "+++" and then returns a status, here "ERROR"
> 3. handles ATZ but you never see the answer
> The second usleep und the second flush should discard whatever the phone
> returned.
> 
> HS
>

Reply via email to