APPENDIX C. BINARY TELECOMMUNICATIONS

C.1 TELECOMMUNICATIONSCOMMAND WITH BINARYRESPONSES

Command Description

[no. of loc.]F BINARY DUMP - CR10 sends, in Final Storage Format (binary, the number of Final Storage locations specified (from current MPTR locations), then Signature (no prompt).

DATALOGGER J AND K COMMANDS

3142J The 3142J command is used to toggle datalogger user flags, request final storage data, and to establish the input locations returned by the K command. The format of the command is as follows:

3142J<CR>abcd...nNULL

where

1)"3142J<CR>" is the command.

2)"a" is a 1 byte value representing the user flags to be toggled. The most significant bit (MSB), if set, will toggle datalogger user flag 8. Likewise, the 2nd most significant bit, if set, will toggle user flag 7, and so on to the least significant bit which, if set, toggles user flag 1. Toggle means that if a flag is set, it will be then reset, or if it is reset, it will be set.

3)"b" is a 1 byte value whose MSB will determine whether Final Storage Data is returned after the K command. If the bit is set, Final Storage Data, if any, will be returned after the next K command. The datalogger initially has this bit reset upon entering telecommunications, but once set by a J command, it will remain set until reset by another J command or telecommunications is terminated.

The 2nd MSB set means a port toggle byte will follow and port status is to be returned with the K command. Like the MSB, this bit is reset upon entering telecommunications, but remains set once set until reset by another J command or telecommunications is terminated. Currently only the CR10 datalogger recognizes this bit.

The remaining bits are reserved.

4)If the 2nd MSB in "b" was set then "c" is a port toggle byte, otherwise "c,d,...,n" are each 1 byte binary values each representing a datalogger input storage location. The data at those locations will be returned after the next K command. ASCII code 1 (0000001 binary) represents input location 1. ASCII codes 2 (00000010 binary) represents input location 2, and so on. The order of the location requests is not important. The list is limited, however, to 62 total location requests.

5)"Null" or ASCII code 0 (00000000 binary ) terminates the J command. Alternately, 11111111 binary aborts the J command. If aborted, flags will not be toggled and location requests will not be saved.

UserDatalogger
EntersEcho

3

3

1

1

4

4

2

2

J

J

CR

CR

 

LF

 

<

aa

bb

cc

dd

n

n

Null

Null

KThe K command returns datalogger time, user flag status, port status if requested, the data at the input locations requested in the J command, and Final Storage Data if requested by the J command. The format of the command is K<CR> (K Return). The datalogger will echo the K and Return and send a Line Feed. The amount of data that follows depends on the J command previously executed; four time bytes, a user flags byte, four bytes for each input location requested in the J command, Final Storage data in CSI's binary format if requested by the J command, and terminating in 7F 00 HEX and two signature bytes.

C-1