I need to use my Gentoo machine to obtain data from an external instrument via a 9-pin serial port. Very old stuff.
It was not working, so I have been trying to diagnose the problem.
I bought a cable that is called a "cross cable" in Japan (where I am located), I think this corresponds to what is called a "null-modem cable" in America. Both ends are female, and it is used to directly connect 2 PCs.
So here is the setup:
PC-1: Gentoo OS
PC-2: Has partitions for both Windows XP and Xandros Linux.
I installed Minicom on PC-1
On PC-2, in Xandros I also installed Minicom. In the Windows side I use Hyper Terminal.
I connected the PCs, started up the terminal programs on both boxes, and would type messages such as "Hello World".
Whether I used Xandros or Windows on PC-2, the result was always the same: I could send messages from PC-1 and it would show up in the terminal program of PC-2, however the other way round never worked. Nothing I ever typed in PC-2 showed up in PC-1.
On both machines I checked the serial port permissions. The Xandros machine result was as below.
Code:
# ls -l /dev/ttyS0
crw-rw-rw- 1 root tty 4, 64 Aug 24 16:31 /dev/ttyS0
However in the case of the Gentoo machine, the permissions were as follows:
crw-rw----
I set them to crw-rw-rw- using chmod, to be the same as the Xandros setting. It didn't help anything.
Grasping for straws, I even disconnected the cross cable from the computers, and reconnected reversing the ends. Still no luck.
Is it possible that the Gentoo OS is set up in such a way that it can send from the serial port and not receive? Does this kind of thing happen?
ops: Does anyone know where I should look next?
(As for the possibility that the problem lies in PC-2, in that it can receive and not send, well, I am disinclined to think that since the results were the same whether or not the OS was Xandros or Windows. Mind you, whether it is running Xandros or Windows, it is still the same box and consequently using the same physical serial port)