The text of a manual · part 14 of 18
TouchProbe Communications for DOS Computers, pages 131 to 140
Pages 131 to 140 of 171
The original document is the PDF (1.7 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Videx TouchProbe and Videx TouchProbe Downloader
Page 131
TouchProbe Download Data Format Specification The data transferred from the TouchProbe to the host is in binary format. The transfer consists of a series of records. (In the following, CAPITAL words refer to the typedefs.h or defs.h files.) Each record is started with a record header. The header consists of: Record Number - a two byte unsigned record number. Record Length Field - a two byte unsigned record length (exclusive of the header). Record Time Stamp - as described below, indicates when this record was recorded. Record Type Field - a one byte type field indicating the format of the record. (The above is called the P1RECHDR in the typedefs.h file.) The time stamp is a four-byte value, indicating the seconds expired since 1 January, 1970 (local time). The time stamp is stored in Big Endian format. Valid Record Type Fields are (the P1RECORD types in typedefs.h): Probe ID Record (type = 0, P1PROBEID): This is the first record of a download. It consists of eleven bytes, containing the TouchProbe’s ID.
Appendix F Writing a Download Program for TouchProbe
123
Page 132
Raw Data Record (type = 1, P1RAWDATA): The data that follows is the raw data as set with the host mode L command (see page 110 for more details). In the data file, this is represented as follows: H 20000923081534 03 This is the raw data T 03 Button Record (type = 2, P1BRECORD): The data that follows is button serial number data. End of Records (type = 255, P1SPECIAL): This indicates that there are no more records.
Button Records (type = 2) consist of the following (the P2RECHDR in typedefs.h): Button Config - a one byte button configuration for this button type, as defined in the TouchProbe Communication Interface section. Family Code - a one byte button family code, as defined by Dallas Semiconductor. Serial Number - a six byte button serial number. Button Record Type - indicates the type of button record that follows. If the Button configuration indicates that there is data to be read from or written to this button type, this is followed by: Data Field - the data pertaining to this transaction.
124
Appendix F Writing a Download Program for TouchProbe
Page 133
Valid Button Record Type Fields are (the P2RECORD types in typedefs.h): Raw Data (type = 1, P2RAWDATA): The data field consists of raw data bytes. This can only be a write. The data set in the most recent Raw Data Record is written to the button. (This is NOT duplicated here!) Foreign Button Data (type = 3, P2INVDATA): The data field consists of raw data bytes. This can only be a read. The data file output should list the data as a string of hexadecimal representations of the individual bytes. Valid Button Data (type = 2, P2VALDATA): If write, the data written is one record. If the P1RECHDR length field indicates there is data beyond the P2RECHDR, then this data is a list of two byte record numbers. If there is no data beyond the P2RECHDR, the data written to the button was the probe ID only. If read, the data can consist of multiple data records (this is the B2RECHDR in typedefs.h). The record structure here is: rectype - a one byte record type dlen - a two byte length field rectime - a four byte time stamp probeID - an eleven byte probe ID string of the TouchProbe that wrote the record Followed by the button data (if needed). Followed by a two byte CRC-16 over the whole record. Types can be: raw data (type = 1, B2RAWDATA) The data is the number of bytes read from the button. This should be put in ASCII format in the data file. Serial number list data (type = 2, B2SNLIST) The data consists of lists of 4 byte time stamp, 1 byte family code, 6 bytes serial number. Probe ID only (type = 3, B2PROBEID) There is no data. The probe ID is part of the B2RECHDR !
Appendix F Writing a Download Program for TouchProbe
125
Page 134
Internal Record Structure Specification First is the standard record header: 2 byte Recno 2 byte Reclen 4 byte Rectime 1 byte Rectype Rectypes can be: 1.
Raw Data Record Created by host manager, indicating the raw data. Is followed by the raw data bytes (a null-terminated ASCII string).
2.
Known Button Data Records 1 byte Button Config value; see pages 106–107 for more information. 1 byte Family Code indicating the type of button. 6 byte Serial Number of the button. Followed by the data records. There will be (Reclen - 8) bytes data. This does not need to be interpreted at read time. (See the Memory Button Data Format Specification section on page 122 for more information.)
3.
Unknown Button Data Records 1 byte Button Config value; see pages 106–107 for more information. 1 byte Family Code indicating the type of button. 6 byte Serial Numbe r of the button. Followed by (Reclen - 8) raw data bytes.
126
Appendix F Writing a Download Program for TouchProbe
Page 135
For Memory Button Writes: First is the standard record header: 2 byte Recno 2 byte Reclen 4 byte Rectime 1 byte Rectype Rectypes can be: Known Button Data 1 byte Button Config value 1 byte Family Code indicating the type of button 6 byte Serial Number of the button 1 byte type field Allowed types are: type = 1, Raw button data Nothing else needs to be stored, since this implies that the data written is that of the most recent Raw Data Record. type = 2, Serial number lists This is followed by a number of 2 byte Recnos. These reference the records in the TouchProbe to indicate the Family Code and serial numbers written to the button. type = 3, Probe ID only Nothing else is needed because this implies the current probe ID was written. (Note: Probe ID changes are not tracked.)
Appendix F Writing a Download Program for TouchProbe
127
Page 136
Memory Button Data Format Specification Memory buttons contain the following data structure: 2 byte number-of-records field 2 byte total-data-length field 1 byte CRC-8 over the above 4 bytes Followed by the records, where each record consists of: 1 byte type field. 2 byte length field (n). This is the length of the actual data, excluding this header and the CRC-16. 4 byte time stamp. 11 byte probe ID field. This contains a null-terminated string that might be shorter than 11 bytes. In that case, the remaining bytes are undefined. Known types are: type = 1, Raw Data: The actual data consists of n bytes type = 2, Serial Number List: The actual data is groups of [ 4 byte time stamp, 1 byte Family Code 6 byte Serial Number ] type = 3, Probe ID Only: There is no actual data 2 byte CRC-16 over the preceding data, i.e. header plus actual data.
128
Appendix F Writing a Download Program for TouchProbe
Page 137
Appendix G TouchProbe Downloader Plus What is the Videx TouchProbe Downloader Plus? The TouchProbe Downloader Plus is a communication station manufactured by Videx, Inc. that allows modem data transfer from TouchProbes at remote sites. The TouchProbe Configuration Utility is a software program that is used at the host site to configure the TouchProbe for modem communication from the remote site.
Modem communication requires the following components: 1. TouchProbe 2. TouchProbe Downloader Plus version 2.04 or later (TPD-002 or TPD-F02) 3. Serial Port Cable (TWC-001 or TWC-008) 4. Remote Modem Cable (TWC-003) 5. Modems (Qty 2) 6. TouchProbe Configuration Utility Software (3 disks) (Complete information on the required components is located on pages 129–130.)
Appendix G TouchProbe Downloader
129
Page 138
Modem Communication requires the following steps: 1. Run Setup.exe to install TouchProbe Configuration Software onto the computer. 2. Confirm that the TouchProbe Downloader Plus is version 2.04 or later (no button on top). 3. Connect either a TouchProbe Downloader Plus or a TouchProbe Downloader to computer with the serial port cable. 4. Insert a TouchProbe into the downloader connected to the computer. 5. Use the TouchProbe Configuration Utility (probecfg.exe) to confirm that the TouchProbe contains operating system TP131.HEX or a newer version. 6. Use the TouchProbe Configuration Utility to configure the TouchProbe. 7. Install the TouchProbe, TouchProbe Downloader Plus, remote modem cable, and modem at remote site. 8. Initialize the host site modem. 9. For actual communication, use TRANSFER.EXE (version 3.01 or later) to transfer data from the TouchProbe at the remote site to the computer at the host site. (Complete information on the required steps begins on page 131.)
130
Appendix G TouchProbe Downloader
Page 139
Components Required for Modem Transfer The following components are required for a minimum installation: •
TouchProbe – The TouchProbe must have operating system TP131.HEX or later installed. The TouchProbe must first be configured with the TouchProbe Configuration Utility before it can be used for modem transfer at the remote site.
•
TouchProbe Downloader Plus (TPD-002 or TPD-F02) – A TouchProbe Downloader Plus must be connected to the modem at the remote site for modem data transfer. You may use either a TouchProbe Downloader Plus or a standard TouchProbe Downloader to configure the TouchProbe with the TouchProbe Configuration Utility.
•
Videx serial port cable (TWC-001 or TWC-008) – This is the cable that connects the TouchProbe Downloader Plus directly to a computer so that the TouchProbe can be configured with the TouchProbe Configuration Utility. See Figure G-1 on page 131.
•
Videx remote modem cable (TWC-003) – This is the cable that connects the TouchProbe Downloader Plus to the modem at the remote site for modem data transfer. See Figure G-7 on page 139.
•
Two modems – One modem for the remote site and one modem for the host site. The TouchProbe Configuration Utility software has default configuration settings that have been tested with U.S. Robotics Sportster, by 3Com. Best results are obtained if both the remote and the host site modems are U.S. Robotics. Contact the Videx Customer Service department for more information.
Appendix G TouchProbe Downloader
131
Page 140
•
132
TouchProbe Configuration Utility – The TouchProbe Configuration Utility filename is probecfg.exe; this software program configures a TouchProbe for modem communications. With the TouchProbe Configuration Utility you can: •
Select if the data transfer is initiated at the remote site (TouchProbe Dials Out) or central site where the computer is located (TouchProbe Answers ).
•
Check a TouchProbe’s operating system version.
•
Send modem configuration settings to the TouchProbe.
•
Change the settings sent from the TouchProbe to the TouchProbe Downloader Plus at the remote site.
•
Change the TouchProbe’s communication baud rate.
•
Create and edit configuration files that contain customized settings for different makes and models of modems.
Appendix G TouchProbe Downloader