Re: Serial programming question

2000-05-26 Thread Felix Natter
"Alex V. Toropov" <[EMAIL PROTECTED]> writes: > Hi all ! > I'm trying to make my first progam, that will read series of bytes from > serial port. > But I have problems opening port. I makeing something like this: > > fd=open("/dev/ttyS0", O_RDWR | O_NOCTTY) > if(fd<0) > {printf("Error opening

Serial programming question

2000-05-09 Thread Alex V. Toropov
Hi all ! I'm trying to make my first progam, that will read series of bytes from serial port. But I have problems opening port. I makeing something like this: fd=open("/dev/ttyS0", O_RDWR | O_NOCTTY) if(fd<0) {printf("Error opening port\n") ; exit(0)} printf("Port opend ( %s )\n", ttyname(fd))