bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

serial port problem


From: Diego Roversi
Subject: serial port problem
Date: Sat, 6 Oct 2001 14:57:36 +0200
User-agent: Mutt/1.2.5i

Hello,

  I've connected two PC using a null cable modem. The first PC is running
Hurd, and the second one Linux.

I can connect, from Hurd PC to the Linux one and login. But sometimes hurd
loses incoming data. I wrote this simple program on linux:

#include <stdio.h>

int 
main (int argc, char **argv)
{
  int i;
  int n;
  
  setvbuf (stdout, NULL, _IONBF, 1);
  if (argc==2)
        n=atoi(argv[1]);
  else
        n=1;

  for (i = 0; i < 1024*n; i+=16)
        printf("%15d\n", i);
}

Running this program at different speed, I've found that at speed greater
4800, after printing 96 it started to loose data. Note, that is true only
for incoming data, outgoing data arrives on linux PC without problem at any
speed.

I've started to read the term translator sources, but I don't know exactly
how it works... Someone can tell me which is the path of incoming data to
the application level? 

TIA,

Diego Roversi.

-- 
Saluti / Regards

Diego Roversi | diegor at maganet.net
              | diegor at tiscalinet.it 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]