Re: How do I make connection per rs-232 without modems directly
- From: Clifford Kite <kite@xxxxxxxxxxxxxxxxx>
- Date: Fri, 11 Jul 2008 12:37:29 -0500
Daneel Yaitskov <rtfm.rtfm.rtfm@xxxxxxxxx> wrote:
Hi,
I have two computers and com cable. I am going to make a connection
between them, using the PPP protocol. But I am dashed that all guides
which I already saw gives examples for modem connections. I don't know
what must I write in the chat file, because I haven't any modems. Also I
will be happy any helpful hints about the question.
What you need depends on what "com cable" means and what OS besides Linux
one of the computers may be running. For a full null-modem cable and
Linux on both computers this should work (without chat):
Computer 1
/usr/sbin/pppd /dev/ttyS1 crtscts 115200 192.168.1.1:192.168.1.2
Computer 2
/usr/sbin/pppd /dev/ttyS1 passive crtscts 115200
The passive option was assigned arbitrarily to computer 2 and pppd needs
to be run there first. Substitute for ttyS1 whatever serial device files
your computers use. If the serial device doesn't have at least a 16550A
UART then 115200 may need to be reduced to, e.g., 38400 or 9600.
If you want computer 2 to always be ready to accept a connection then
this bash script may work (untested):
#! /bin/sh
while [ 0 = 0 ]; do
/usr/sbin/pppd /dev/ttyS1 passive crtscts 115200
sleep 1
done
For a 3-wire null-modem add the pppd local option and replace crtscts
with xonxoff.
For a NT host to initiate a connection to a Linux host, try starting
the Linux side first but instead of the passive option use
connect "chat -t 0 CLIENT CLIENTSERVER"
so that chat waits (forever) for CLIENT and then sends CLIENTSERVER.
For a Linux host to initiate a connection to a NT host, you probably
just need to add
connect "chat CLIENTSERVER CLIENT"
Cheers-
--
Clifford Kite
/* For PPP debugging in Linux add the line
daemon.*;local2.* /var/log/ppp.log
to /etc/syslog.conf, do "killall -HUP syslogd" to get syslogd to reread
that file, and use the chat -v and pppd debug options. */
.
- References:
- How do I make connection per rs-232 without modems directly
- From: Daneel Yaitskov
- How do I make connection per rs-232 without modems directly
- Prev by Date: Re: Linux Passive FTP Configuration
- Next by Date: Re: OpenVPN tun adapter
- Previous by thread: Re: How do I make connection per rs-232 without modems directly
- Index(es):
Relevant Pages
|