Am Freitag, 1. Juli 2005 18:33 schrieb SDiZ:
> I have tried you patches, it worked only once out of five trials...
> Maybe the tcflush() function never works with my IrDA dongle?
>
>   nsc-ircc, Found dongle: HP HSDL-1100/HSDL-2100

Works here:
write(4, "+++", 3)                      = 3
nanosleep({1, 10000000}, NULL)          = 0
ioctl(4, TCFLSH, 0x2)                   = 0
write(4, "\r", 1)                       = 1
write(4, "AT", 2)                       = 2
write(4, "Z", 1)                        = 1
write(4, "\r", 1)                       = 1
read(4, "A", 1)                         = 1
read(4, "T", 1)                         = 1
read(4, "Z", 1)                         = 1
read(4, "\r", 1)                        = 1
read(4, "\r", 1)                        = 1
read(4, "\n", 1)                        = 1
read(4, "O", 1)                         = 1
read(4, "K", 1)                         = 1
read(4, "\r", 1)                        = 1
read(4, "\n", 1)                        = 1

> Sending command: ATZ
> Received: +++

What phone do you use? Maybe it responses too sloooooow for the 1000ms that we 
wait? In this case we flush the buffers too early. So try a longer delay with 
usleep.

HS


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to