home *** CD-ROM | disk | FTP | other *** search
/ PDA Software Library / pdasoftwarelib.iso / PILOT / comm / DIRECTLI / README.TXT < prev   
Encoding:
Text File  |  1997-08-28  |  3.9 KB  |  116 lines

  1. DirectLink 1.0
  2.  
  3. Was motivated by an obious omission from the Prefs panel for setting up a PPP conection
  4. directly through a serial cable without a modem, which for development of network apps
  5. will come in very handy since you don't need to be on the phone all day.
  6.  
  7. I have tested the program with Linux Redhat 4.1, I don't see why this wouldn't work with NT
  8. RAS. This is being looked into by a user.
  9.  
  10. You can probably get away without having chat scripts, but I think it's nicer to have one
  11. than always having to start pppd manually on the Linux box.
  12.  
  13. Here is what you need to setup on Linux to use a chat script:
  14.  
  15. 1. Make sure you have the getty program on your system, my Redhat 4.1 didn't have it
  16. and I had to down load the package and install it.
  17.  
  18. 2. Add the getty to your /etc/inittab, typical entry:
  19.  
  20.     7:2345:respawn:/sbin/getty ttyS0 DT38400    #change according to your port and speed
  21.                             #ttyS0 == Com1 ttyS1== Com2
  22.          
  23. 3. If you want to use 57600bps, you need to have your serial port set to spd_hi
  24. with the following command (you probably want to add it to your /etc/rc.d/rc.local ) 
  25.  
  26.     set_serial /dev/sts/ttyS0 spd_hi
  27.     
  28. This will cause the baudrate request of DT38400 to be upped to 57600.
  29.  
  30.  
  31. 4. Run "init q" command and check that getty is running either by "ps aux" and/or by
  32. using  terminal program like PalmTerm to login to the box as some user. Of course you need 
  33. to have a pilot modem cable with a null modem adapter and an addition modem cable to extend 
  34. the reach, unless you like spending time under your desk. Or,  I think the cradle can be
  35. used instead, though I haven't tried it
  36.  
  37. 5. Once you can login on the serial port, it would make things easier if you add an
  38. alias for the pppd command to the user's .bashrc or .profile, depending on the shell:
  39.  
  40.     alias ppp="exec /usr/sbin/pppd -detach debug"
  41.  
  42. 6. Your /etc/ppp/options should have:
  43.     lock
  44.     crtcts
  45. 7. Your /etc/ppp/options.ttyS1  (change the file name according to the tty you are using)
  46. contains options specific to the port. This is where I assign the IP addresses for the link.
  47. You can do it differently, and set them on the pilot, I haven't tried it. So the file
  48. contains (change them to some valid ip address) :
  49.  
  50. linuxpppaddress:pilotpppaddress
  51.  
  52.  
  53.  
  54. Pilot Setup:
  55.  
  56. 1. In Prefs/Network, make a duplicate of the Unix Service. enter any appropriate
  57. information like the user and password and any additional . If you did step 7 above, then
  58. check the box for auto IP adresses. No need to bother with modem stuff.
  59.  
  60. 2. Change the chat script to be:
  61.  
  62. send cr:
  63. send cr:
  64. wait for:ogin:
  65. send User ID:
  66. send cr:
  67. wait for: word:
  68. send Password:
  69. send cr:
  70. wait for:$               (or whatever your shell prompt is )
  71. send: ppp                (this is the alias for the the ppp command)
  72. send cr:
  73.  
  74.  
  75. Running DirectLink
  76.  
  77. 1. Make sure that you try to connect using this Unix copy Service from the Prefs app.
  78. This will fail since you did not set up a a phonenumber or modem, but is required for running
  79. DirectLink. After another service is used to make a connection, you have to retry
  80. connecting with the Unix copy service before running DirectLink.
  81. 2. To disconnect the connection, use the Prefs App disconnect button.
  82.  
  83.  
  84. Troubleshooting
  85.  
  86. If you run into problems, look in the /var/log/messages or /usr/adm/messages or wherever 
  87. your system syslogs.  You should see a messages about the fact that the user has logged in
  88. and messages from the pppd starting and negotiating ip address. This should clue you in
  89. on what's going on.  
  90.  
  91. If you know you your getty is working, because you verified it with PalmTerm, and the 
  92. connection fails, but you don't see any messages in your log files, then a problem with
  93. the chat script is a good possibility for the source of the problem.
  94.  
  95. Let me know if you found this piece of software useful. 
  96. Good luck,
  97.  
  98.  
  99. Mark Komosa
  100. VitalLink PDA Software
  101. komosa@goecities.com
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.