home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.hp
- Path: sparky!uunet!mcsun!sunic!aun.uninett.no!news.uit.no!stud.cs.uit.no!terjed
- From: terjed@stud.cs.uit.no (Terje Dalen)
- Subject: Loosing data on a serial connection
- Keywords: RS-232C, speed, kernel buffer management
- Sender: news@news.uit.no (USENET News System)
- Organization: University of Troms°
- Date: Thu, 19 Nov 1992 17:48:41 GMT
- Message-ID: <1992Nov19.174841.1542@news.uit.no>
- Lines: 45
-
-
- I have a HP 9000/720 running HP-UX 8.07. I'm using the two
- "built in RS-232C" serial interface at select code 0x20;
- 4 and 5, communicating as a loopback or with an identical
- machine (null modem).
-
- My problem is that I'm loosing data on low baudrates ( <= 2400 )
- when I use the write() system call. The number of bytes lost
- seems to be depending on the workload of the machine. I assume
- this is a problem with the senders (device) buffer and flow control?
-
- Write(fd, packet, size) always returns the correct number of
- bytes written.
- Here are some examples for the combination of baud rates / max packet size
- that does not give any loss of data:
-
- 9600 Baud: unlimited
- 2400 Baud: 25 bytes
- 1200 Baud: 15 bytes
- 600 Baud: 12 bytes
- 300 Baud: 9 bytes
-
- Does anyone know the reason(s) for my problem?
-
- Thanks,
-
- --Terje
-
- //// Terje Dalen // Email: terjed@stud.cs.uit.no /
- /// Computer Science // Phone: +47 83 44123 //
- // University of Tromsoe // ///
- / 9000 Tromsoe, Norway // ////
-
-
-
-
-
-
-
-
-
-
-
-
-
-