![]() |
|
|
Welcome to the { mindfrost82.com } forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
How do I make connection per rs-232 without modems directly
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. Daneel |
|
|||
|
Re: How do I make connection per rs-232 without modems directly
On Jul 11, 6:14*am, Daneel Yaitskov <rtfm.rtfm.r...@gmail.com> 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. This can be simple or complicated, depending on *your* setup. At the simplest, neither serial device is connected to a getty(1), and you can eliminate the chat script altogether. At the most complex, one or both serial devices are connected to getty(1) processes, and your chat script will reflect the necessary commands to log on and initiate a ppp connection. Its up to you. Personally, I'd ensure that neither serial device is run by getty(1), and simply start the ppp daemon on each side, directed to the local serial device. No chat script at all. |
|
|||
|
Re: How do I make connection per rs-232 without modems directly
Daneel Yaitskov <rtfm.rtfm.rtfm@gmail.com> 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. */ |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|