home *** CD-ROM | disk | FTP | other *** search
- This demo demonstrates the use of the Serial Communications
- routines found in VBLite. The demo implements a TTY terminal
- emulator which you can use to connect to various bulletin
- boards and information services. These routines give you the
- capability to do the following:
-
- (1) Open and close a serail port (COM1 - COM8) and set the
- baud rate, databits, stopbits, and parity for the serial
- port.
-
- (2) Transmit and receive data to and from the serial port.
-
- (3) Manipulate and check the status of the various RS-232
- lines on the serial port such as the DTR, RTS, CTS, DSR,
- CD, and RI.
-
- (4) Check to see how many characters are currently in the
- receive and transmit buffers and be able to set the sizes
- of those buffers when the port is opened.
-
- (5) Hardware and software flow control.
-
- (6) Check for communications errors.
-
- (7) Checksum and CRC calculations.
-
-
- In order to run this demo, you must have a modem installed
- on your computer. If you don't, then close this window by
- double clicking on the control button in the upper left
- corner of the window and then select Exit from the File
- menu.
-
- If you have a modem hooked up, then follow the procedure
- below to connect to a remote computer and communicate with
- it:
-
- (1) First select Port Settings... from the Settings menu to
- set the com port, baud rate, databits, stopbits, and
- parity settings. Also this dialog box allows you to set
- the type of handshaking and the sizes of the receive and
- transmit buffers (at the labels "Receive Buffer" and
- "Transmit Buffer"). The value at the label "Receive
- Buffer Min" allows you to set the number of characters in
- the receive buffer when the reception will restart after
- it has been suspended by the handshaking method. The
- value at the label "Receive Buffer Max" allows you to set
- the number of characters from the top of the receive
- buffer that will trigger reception of data to be
- suspended by the handshaking method used.
-
- (2) Next select Modem Settings... from the Settings menu to
- set the modem strings used to reset the modem, init-
- ialize the modem, dial a number, hangup, and the escape
- string used by the modem. The initial values of these
- strings should work on any Hayes compatible modem and
- most likely will not need to be modified.
-
- (3) After the Modem Settings are set, select Phone Number...
- from the Settings menu to set the phone number that the
- modem will dial.
-
- (4) Once the phone number is chosen, select Connect from the
- Connection menu. This will initialize the modem and
- dial the number. If there were no problems, then the
- modem will connect to the remote computer and start
- communication with that computer.
-
- (5) Once you have logged off from the remote computer and
- you see the "NO CARRIER" message in the window, then
- select Disconnect from the Connection menu.
-
- (6) To exit the demo, select Exit from the File menu.
-
- (7) For help on running this demo, select How To Run Demo...
- from the Help menu.
-