"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
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))
2 matches
Mail list logo