home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / hp / 13114 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.5 KB  |  57 lines

  1. Newsgroups: comp.sys.hp
  2. Path: sparky!uunet!mcsun!sunic!aun.uninett.no!news.uit.no!stud.cs.uit.no!terjed
  3. From: terjed@stud.cs.uit.no (Terje Dalen)
  4. Subject: Loosing data on a serial connection
  5. Keywords: RS-232C, speed, kernel buffer management
  6. Sender: news@news.uit.no (USENET News System)
  7. Organization: University of Troms°
  8. Date: Thu, 19 Nov 1992 17:48:41 GMT
  9. Message-ID: <1992Nov19.174841.1542@news.uit.no>
  10. Lines: 45
  11.  
  12.  
  13. I have a HP 9000/720 running HP-UX 8.07. I'm using the two 
  14. "built in RS-232C" serial interface at select code 0x20;
  15. 4 and 5, communicating as a loopback or with an identical 
  16. machine (null modem).
  17.  
  18. My problem is that I'm loosing data on low baudrates ( <= 2400 )
  19. when I use the write() system call. The number of bytes lost
  20. seems to be depending on the workload of the machine. I assume
  21. this is a problem with the senders (device) buffer and flow control?
  22.  
  23. Write(fd, packet, size) always returns the correct number of 
  24. bytes written. 
  25. Here are some examples for the combination of baud rates / max packet size 
  26. that does not give any loss of data:
  27.  
  28.     9600 Baud:    unlimited
  29.     2400 Baud:    25 bytes
  30.     1200 Baud:    15 bytes
  31.      600 Baud:    12 bytes
  32.      300 Baud:     9 bytes
  33.  
  34. Does anyone know the reason(s) for my problem? 
  35.  
  36. Thanks, 
  37.  
  38. --Terje
  39.  
  40. //// Terje Dalen           // Email: terjed@stud.cs.uit.no /
  41. /// Computer Science      // Phone: +47 83 44123          //
  42. // University of Tromsoe //                              ///
  43. / 9000 Tromsoe, Norway  //                              ////
  44.      
  45.     
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.