-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> "Ghosh" == K Ghosh <[EMAIL PROTECTED]> writes:

    Ghosh> I need two computers to communicate through their RS232C
    Ghosh> ports : Computer #1 is an ancient Z80 based, running CP/M
    Ghosh> and BASIC, two_non-standard_ FDDs (one not-working), no HDD
    Ghosh> and one RS232C port.

    Ghosh> Computer #2 is a standard PI running Debian.

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

Use termios to set the serial line characteristics.

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

I'd suggest using ready-made communication software at both ends.  Why
write your own program and reinvent the wheel?  I'm sure there're many
serial comm packages that are scriptable and will do what you need.

Regards,

- -- Raju
- -- 
Raj Mathur                [EMAIL PROTECTED]      http://kandalaya.org/
       GPG: 78D4 FC67 367F 40E2 0DD5  0FEF C968 D0EF CC68 D17F
                      It is the mind that moves
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard <http://www.gnupg.org/>

iD8DBQE/u5wLyWjQ78xo0X8RAlIGAJsHNdPl0lMpkVzJRP2wfm8NafTtOgCeIkeY
rYLwZnxyJIQI/re4Jw7A2wU=
=24nx
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to