writing to /reading from serial port
Hi every body
I hope find an answer thanks a lot.
I have written 2 small programs for writing on serial port S0 and another for reading from the port S1.
My machines have 2 physical serial port.
I connect the S0 to S1 via a crossed cable.
On one machine the programs ran perfectly,
when I tried them on another machine, exactly same machine running same system ( linuxMint),
in same conditions, they didn't.
the writing program to port S0 ran but the reading from S1 !!!
the situation is like no physical connection on 2 port exits!!! It is of course;
Very strange, so may be the I have to do something to activate the ports ???
Why it run on one case and not on another!!!
the programs are attached
thanks a lot for any idea.