home *** CD-ROM | disk | FTP | other *** search
- PXML.COM Message Logger for the PX-8
-
-
-
-
- Overview
- PXML is intended to be used as a data logger for textual, ASCII
- information transmitted over telephone lines to an Epson PX-8
- computer with an internal modem. Data received by PXML is placed
- in a file named -MESSAGE.LOG on drive A:. The information con-
- tained in A:-MESSAGE.LOG may be edited via WordStar, listed via
- TYPE or PIP, etc.
-
-
- Using PXML
- Typing PXML at the CP/M prompt will cause the program to begin
- execution. Simultaneously pressing CTRL and STOP will interrupt
- the program, close -MESSAGE.LOG, and return to the CP/M prompt.
-
- After verifying that the PX-8 has an internal modem and enough
- program memory (about 20K) to operate, the program begins its
- main loop. The main loop waits for the telephone to ring, an-
- swers and verifies that the carrier is present, writes the date
- and time to the message file, and begins the sub-loop. In the
- sub-loop, data is taken character-by-character from the transmit-
- ting device and placed in a 1000 byte long receiving buffer until
- a CARRIAGE RETURN (or CTRL-Z) is received. The receiving buffer
- is then transferred to the message file. The sub-loop continues
- until the transmitter's carrier is lost (ie. the caller hangs
- up). Operation then resumes in the main loop.
-
- When PXML is operating in the sub-loop, several control commands
- are available to the transmitting device. Many of the commands
- are similar to those used to edit the CP/M "command line." Note:
- in the following, the character "^" followed by a capital letter
- means "CTRL-letter," eg. ^Z equals CTRL-Z.
-
- ^E Toggles the echo mode. Normally, PXML echoes (sends
- back) all data it receives to the transmitter. If this
- is not desired, transmitting ^E to PXML causes data not
- to be echoed. Sending another ^E will restart the
- echo, etc. When PXML answers a new call, echo is al-
- ways enabled.
-
- DEL ^H or BS deletes the previous character. If echo is
- enabled and the transmitting device is displaying, the
- character will erased on the display too.
-
- ^X Deletes the line. This is equivalent to a series of
- single character deletes.
-
- ^U Deletes the line. This is similar to ^X, but (assuming
- echo is on) the line is not physically erased. In-
- stead, "#" is printed and a new line is started.
-
- ^R Starts a new line and "re-prints" the data thus far
- received in the current line back to the transmitting
- device.
-
-
- EPSON_SUPPORT_DISKS, (313) 538-3733 Page 1 of 4
- PXML.COM Message Logger for the PX-8
-
-
-
- ^Z Terminates the current line (same as RETURN) and then
- closes and automatically re-opens the message file. A
- new "time stamp" is also written to the message file.
- This helps to assure the validity of message data in
- the case of a system crash.
-
- Most of the preceding commands are intended for use with echo
- enabled and the system operating in an interactive mode.
-
-
- Message File
- Incoming data is stored in the disk file -MESSAGE.LOG on drive
- A:. If the message file already exists, the file is opened and
- data is appended to the current information. If the file does
- not currently exist, one is created.
-
- Whenever an incoming call is accepted, or ^Z is pressed in the
- sub-loop, a date and time stamp is written to the file. The time
- stamp format is "YY-MM/DD.hh:mm:ss" which corresponds to year,
- month, day, and hours, minutes, seconds.
-
- With some exceptions, all incoming data is transferred to the
- message file. The exceptions are:
-
- 1. None of the previously described command keys are put
- into the file.
-
- 2. NULs (^@) are skipped.
-
- 3. CARRIAGE RETURNs are expanded to a RETURN, LINE FEED
- sequence. Transmitted LINE FEEDs are skipped.
-
- 4. Data bytes in the range of 128 to 255 (080h to 0FFh)
- have their most significant bit converted to zero to
- place them into the ASCII set of control and printing
- characters.
-
- 5. Other control characters are placed into the file as
- is. However, they will be echoed preceded by the char-
- acter "^".
-
- When the message file information is written to the disk, PXML
- will send the transmitting device a CTRL-S. Upon completion of
- the disk write, CTRL-Q will be sent to the transmitter. This
- happens if echo is on or off. The transmitting device should be
- configured to accept the XON/XOFF handshake.
-
-
- Error and Status Messages
- All error and status messages are sent to the LCD screen of the
- PX-8 running PXML or, in one case, the message file.
-
- <<overflow>> Sent to the message file when the re-
- ceive buffer contains more than 1000
-
-
- EPSON_SUPPORT_DISKS, (313) 538-3733 Page 2 of 4
- PXML.COM Message Logger for the PX-8
-
-
- characters. The buffer is truncated and
- written following the message. Under
- this condition, incoming characters may
- be lost. The error may be prevented by
- limiting characters transmitted before
- RETURN (or ^Z) to less than 1000. The
- program returns to the sub-loop.
-
- Insufficient memory Displayed when PXML finds that there is
- not enough memory for itself and its
- various buffers. The program returns to
- the CP/M prompt.
-
- No internal modem Displayed when PXML finds that there is
- not an internal modem connected. The
- program returns to the CP/M prompt.
-
- No carrier detected Displayed when PXML cannot find the
- transmitting device's carrier tone after
- answering an incoming call. The program
- disconnects from the telephone line and
- returns to the main loop.
-
- Lost carrier Displayed when the transmitting carrier
- is lost in the sub-loop, typically when-
- ever the caller hangs up. The program
- closes the message file, disconnects
- from the phone line, and returns to the
- main loop.
-
- RSX open failed Displayed when PXML cannot open the RSX
- (RS-232) channel after answering an
- incoming call. The program returns to
- the main loop.
-
- RSX failure Displayed when PXML detects an error on
- the RSX channel in the sub-loop. The
- program closes the message file, discon-
- nects from the phone line, and returns
- to the main loop.
-
- Message error
- disk or directory full These messages are displayed for various
- disk errors. The action taken by PXML
- depends on when the error occurs. Gen-
- erally, errors occurring during start-up
- cause the program to return to the CP/M
- prompt while errors occurring during
- transmission are ignored until the next
- call.
-
-
-
-
-
-
-
- EPSON_SUPPORT_DISKS, (313) 538-3733 Page 3 of 4
- PXML.COM Message Logger for the PX-8
-
-
- Control-STOP cancel Displayed whenever CTRL and STOP are
- simultaneously pressed. The program
- closes the message file, disconnects
- from the phone line, and exits to the
- CP/M prompt.
-
-
- Custom Configuration
- Some of the defaults used by PXML may be changed via DDT or a
- similar editor. If you are not familiar with this type of pro-
- cedure, exercise caution and make sure that you have a back-up
- copy of PXML.COM before attempting to make modifications.
-
- After loading PXML.COM with DDT, etc. Data at the following
- addresses may be changed:
-
- 0121 This is the ECHO_FLAG. For a default of echo on, this
- byte is set to FF. Set to 00 for a default of echo
- off.
-
- 0122 This is the disk number used for the message file.
- Drive A=01, B=02, etc. Warning: Do Not set this byte
- to 08 (tape drive H). The random reads done in the
- message file will result in BDOS errors on drive H:.
-
- 0123 This location is the start of an eleven byte string
- which defines the name of the message file. The first
- 8 bytes are the file name (-MESSAGE) and the last 3
- bytes are the file type (LOG). If this string is
- changed, be sure that any unneeded bytes are set to a
- space (20).
-
- After exiting DDT (etc.), type SAVE 17 PXML.COM to save the
- changes you have made.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- EPSON_SUPPORT_DISKS, (313) 538-3733 Page 4 of 4
-