K. Ghosh wrote:
I need two computers to communicate through their RS232C ports :

Computer #1 is an ancient Z80 based, running CP/M and BASIC, two_non-standard_ FDDs (one not-working), no HDD and one RS232C port.

Computer #2 is a standard PI running Debian.

I have written a small C program to transmit a character from #2 to be
received in #1. It is being received at #1, but garbled. I feel the
parameters like Baud rate, no. of stop bits, parity etc. need to be set
correctly. For Baud rate I am using 'setserial', but how to set the
others ?

And, what would be the best way of achieving this communication ?

Thanks in advance.

Ha! This is a problem from the age of the dinosaurs. I seem to remember that T.Rex was once much vexed with it ;)


On #2, I suggest you run minicom, which is a friendly serial comm program that allows you to readily set parameters such as baud rate, parity and number of bits. Unless you know what the settings are on #1, begin with baud rate 1200, no parity, 7 bits. If this doesn't work, then its easy to change settings with minicom. I'd try 8 bits next, then fiddle with the parity and so on. The only baud rate values worth trying are 300, 1200, 2400, 4800 & 9600. XON-XOFF handshaking should be fine.

- Manas Laha


-- To unsubscribe, send mail to [EMAIL PROTECTED] with the body "unsubscribe ilug-cal" and an empty subject line. FAQ: http://www.ilug-cal.org/node.php?id=3

Reply via email to