timing out when reading from a serial device

timing out when reading from a serial device

Post by Brian Pon » Thu, 18 Jan 2001 08:38:16



Here's what I need to do
1) open the serial device
2) start reading from it.
3) execute some commands if no data comes through for 30 seconds.

The first 2 I got.  How do I do #3 ?
The OS is Linux.

Thanks,
Brian Pontz

 
 
 

timing out when reading from a serial device

Post by Derek M. Fly » Thu, 18 Jan 2001 08:45:45



> Here's what I need to do
> 1) open the serial device
> 2) start reading from it.
> 3) execute some commands if no data comes through for 30 seconds.

> The first 2 I got.  How do I do #3 ?
> The OS is Linux.

Use poll or select before you read.

 
 
 

1. Q: HELP: Cirrus PCMCIA IRQ Device time-outs...

I am using a Compaq LTE5000 docked. This set-up has two PCIC
controllers. I have tried using "irq_mask" and  "poll_interval" in my
rc.pcmcia, but neither seem to prevent the following error from occuring
when I boot Linux:

 Intel PCIC probe:
    Cirrus PD672x, LED, RING, at 0x3e0, 2 sockets

 No worries... UNTIL....

 irq mask (Cirrus) = 0x4eb8, status changed on irq 11 hdc:irq
timeout:status=0x58 {DriveReady SeekComplete DataR..}
 ide1:reset:success hdc:irq timeout....

 The last two lines repeat themselves ad infinitum and I have to boot
from a floppy and rename rc.pcmcia to boot again.

 I have tried: "irq_mask=9" in rc.pcmcia to force it to use irq 9
"poll_interval=100" in rc.pcmcia "exclude irq 11 {and others}"
 in config.opts

 None of which make any difference. Iam very >:-( about this, can anyone
help? Thanks

Mark Tigwell

2. GNU tar source?

3. RPC time outs at boot time

4. File system for solaris and linux

5. fix VIA Rhine time outs (some)

6. squid - access.log

7. Netscape time-outs

8. diamond viper 330 and 3com 3c905

9. named configuartion in a ppp setup - time outs

10. Socket to SMTP server - periodic time outs

11. SCSI Time Outs? Please Help.

12. Jserv time outs

13. * rwall and shutdown: rpc time-outs *