home *** CD-ROM | disk | FTP | other *** search
/ C/C++ User's Journal & Wi…eveloper's Journal Tools / C-C__Users_Journal_and_Windows_Developers_Journal_Tools_1997.iso / vbdemos / vbdemos.lzh / SERHOWTO.TXT < prev    next >
Text File  |  1993-07-14  |  3KB  |  77 lines

  1. This demo demonstrates the use of the Serial Communications
  2. routines found in VBLite.  The demo implements a TTY terminal
  3. emulator which you can use to connect to various bulletin
  4. boards and information services.  These routines give you the 
  5. capability to do the following:
  6.  
  7. (1) Open and close a serail port (COM1 - COM8) and set the
  8.     baud rate, databits, stopbits, and parity for the serial
  9.     port.
  10.  
  11. (2) Transmit and receive data to and from the serial port.
  12.  
  13. (3) Manipulate and check the status of the various RS-232
  14.     lines on the serial port such as the DTR, RTS, CTS, DSR,
  15.     CD, and RI.
  16.  
  17. (4) Check to see how many characters are currently in the
  18.     receive and transmit buffers and be able to set the sizes
  19.     of those buffers when the port is opened.
  20.  
  21. (5) Hardware and software flow control.
  22.  
  23. (6) Check for communications errors.
  24.  
  25. (7) Checksum and CRC calculations.
  26.  
  27.  
  28. In order to run this demo, you must have a modem installed
  29. on your computer.  If you don't, then close this window by
  30. double clicking on the control button in the upper left 
  31. corner of the window and then select Exit from the File
  32. menu.
  33.  
  34. If you have a modem hooked up, then follow the procedure
  35. below to connect to a remote computer and communicate with
  36. it:
  37.  
  38. (1) First select Port Settings... from the Settings menu to 
  39.     set the com port, baud rate, databits, stopbits, and
  40.     parity settings.  Also this dialog box allows you to set
  41.     the type of handshaking and the sizes of the receive and
  42.     transmit buffers (at the labels "Receive Buffer" and
  43.     "Transmit Buffer").  The value at the label "Receive
  44.     Buffer Min" allows you to set the number of characters in
  45.     the receive buffer when the reception will restart after
  46.     it has been suspended by the handshaking method.  The
  47.     value at the label "Receive Buffer Max" allows you to set
  48.     the number of characters from the top of the receive 
  49.     buffer that will trigger reception of data to be 
  50.     suspended by the handshaking method used.
  51.  
  52. (2) Next select Modem Settings... from the Settings menu to
  53.     set the modem strings used to reset the modem, init-
  54.     ialize the modem, dial a number, hangup, and the escape
  55.     string used by the modem.  The initial values of these
  56.     strings should work on any Hayes compatible modem and
  57.     most likely will not need to be modified.
  58.  
  59. (3) After the Modem Settings are set, select Phone Number...
  60.     from the Settings menu to set the phone number that the
  61.     modem will dial.
  62.  
  63. (4) Once the phone number is chosen, select Connect from the
  64.     Connection menu.  This will initialize the modem and
  65.     dial the number.  If there were no problems, then the
  66.     modem will connect to the remote computer and start 
  67.     communication with that computer.
  68.  
  69. (5) Once you have logged off from the remote computer and
  70.     you see the "NO CARRIER" message in the window, then
  71.     select Disconnect from the Connection menu.
  72.  
  73. (6) To exit the demo, select Exit from the File menu.
  74.  
  75. (7) For help on running this demo, select How To Run Demo...
  76.     from the Help menu.
  77.