background image

B-1

Appendix B.  Telecommunications
Commands

The Storage Module telecommunications commands can be issued to an
Storage Module either via a direct SC532(A) connection to the Storage Module
or via a remote connection where the Storage Module is connected to a
datalogger.

Establishing communication between the Storage Module and a
computer/terminal is discussed in Section 5.  The commands permit data
storage and retrieval, switch setting, status checks and other functions.

If you are making connections through a datalogger, make the connections
(Figure 5-4) and establish communications with the datalogger.  Send the
command ‘XM,CR’ to the datalogger (where X is the Storage Module address
1...8).  If the connections are correctly made and the Storage Module is
properly addressed, it will send back ‘CR, LF, %.’ If the attempt to establish
communications fails, the datalogger will return ‘*’.

The Storage Module is ready for a command when it sends its prompt,
‘<CR><LF> %’.  The successful execution of a command is also indicated by
the Storage Module returning a ‘<CR><LF> %’.  If just a ‘%’ is returned, the
command was in error.  ‘

CTRL

-

S

’ (XOFF) temporarily halts Storage Module

responses to commands.  ‘

CTRL

-

C

’ aborts the response.

The descriptions of some commands refer to the Storage Module pointers (see
Section 4).  The Display Location Pointer (DLP) is used to display Storage
Module data.  The Storage Reference Pointer (SRP) indicates the next
location to be written to in the Storage Module.  The Dump Pointer is an
internal Storage Module pointer used for keeping track of the current start-of-
dump for Storage Module-to-Storage Module data dumps and for the data
retrieval options of the SMS program.

Storage Module telecommunications commands are similar to datalogger
telecommunications commands and consist of numbers and CAPITAL letters.
In the following list telecommunications commands are on the left and their
descriptions on the right.

A
Status

Returns Version number, Switch settings, number of Programs stored, number
of good Data Memory blocks, number of Errors logged (max. = 255), number
of Available storage locations, number of locations Full, Storage Reference
Pointer, Display Location Pointer, Dump Pointer and Checksum (sum of all
transmitted ASCII characters since last %; wraps around at 8192 bytes).

The number of Errors logged is a count of bad characters received from the
datalogger and/or the number of times the module has reset itself as a result of
some unknown cause.  Contact Campbell Scientific for advice if this counter
increments regularly.  Unlike previous modules this counter does not increment
if corrupted characters are received in telecommunications mode.

Example: V1 S1400 P0 M64 E0 A2052258 F1 R2 L2 D2 C2226 is the
expected response to the A command after an SM4M has been reset.

Summary of Contents for SM16M

Page 1: ...INSTRUCTION MANUAL SM4M SM16M Storage Module Revision 3 01 C o p y r i g h t c 2 0 0 0 2 0 0 1 C a m p b e l l S c i e n t i f i c I n c...

Page 2: ...ther warranties expressed or implied including warranties of merchantability or fitness for a particular purpose CAMPBELL SCIENTIFIC INC is not liable for special indirect incidental or consequential...

Page 3: ...ation 1 7 1 5 2 Programming the Datalogger to Send Data to the Storage Module 1 7 1 5 3 Manual Dump 1 7 1 5 4 Data Retrieval 1 7 Section 2 Storing Data from Current Dataloggers 2 1 2 1 Instruction 96...

Page 4: ...A Interface 5 1 5 1 2 Via Datalogger 5 2 5 1 3 Via Remote Datalogger and Modem 5 3 5 2 SMS 5 3 5 3 Data Retrieval 5 3 5 3 1 Direct Connection 5 3 5 3 2 Connection Via CR500 510 CR10 10X or CR23X 5 4...

Page 5: ...ns Command State 1 5 5 1 Storage Module Connected to a Portable PC via SC532 A Interface 5 1 5 2 Communication Via the CR500 510 CR10 10X or CR23X 5 2 5 3 Communication Via the CR23X 5 2 5 4 Typical S...

Page 6: ...SM4M 16M Flash Storage Module Table of Contents iv This is a blank page...

Page 7: ...iew should be read by all users as should Section 5 Data Retrieval Users with the CR500 510 CR10 10X CR23X or with the 21X or CR7 with recent operating systems i e current dataloggers should read Sect...

Page 8: ...ndby State Less than 200 A Peak current flash erase 60 mA Maintenance There are no user serviceable parts inside the Storage Module L o g a n U T S M 4 M S N S O L I D S T A T E S T O R A G E M O D U...

Page 9: ...s Typically the flash memory can be erased and rewritten a minimum of 100 000 times 1 4 Function The SM4M and SM16M Storage Modules supplement the storage capacity in a datalogger The Storage Modules...

Page 10: ...ble Method In the Printer Enable Method see Figure 1 3 the Storage Module stores all data received on pin 9 while the printer enable line pin 6 is high The Storage Module automatically detects the bau...

Page 11: ...ons commands sending several carriage returns will cause the Storage Module to match the computer s baud rate see specifications above 1 4 6 File Marks File Marks are used to separate data in the Stor...

Page 12: ...The delay increases by approximately one second for each increase in the address number The first flash after the delay will last from 1 to 2 seconds depending on the last use of the module Further fl...

Page 13: ...of the flash memory adequate for most purposes An SM16M will take around 3 minutes to perform the quick reset 1 5 2 Programming the Datalogger to Send Data to the Storage Module Instruction 96 is use...

Page 14: ...Section 1 SM4M SM16M Storage Module Overview 1 8 This is a blank page...

Page 15: ...e with address X X 1 8 30 21X and CR7 use option code 30 to send data to the Storage Module When output to the Storage Module is enabled with Instruction 96 the Storage Module s may either be left on...

Page 16: ...ser should connect the SM to the datalogger and wait for the green LED to light When the LED goes off data transfer is complete and the SM can be disconnected To avoid data loss data must be retrieved...

Page 17: ...cution of multiple instances of Instruction 96 to Storage Modules Add 5ms to the time it takes to store the number of bytes to be transmitted 1ms per byte before executing the next Instruction 96 whic...

Page 18: ...n a unique format which includes calibration measurements at the beginning and end of the series of measurements Split part of the PC208 PC208W software packages will translate this Burst data 2 3 1 B...

Page 19: ...the baud rates of the Storage Module and the datalogger are matched The SM4M SM16M will only accept data at 9600 or 76800 baud There is no user configuration for this setting in the module as it autom...

Page 20: ...imes more memory space than binary format Consider buying an operating system upgrade for dataloggers that do not allow binary data storage with P96 3 2 3 9 Mode Keyboard Initiated Data Transfer The 9...

Page 21: ...re data at 76 800 baud When the Burst Measurement Instruction 23 is used with the 21X select the destination parameter 4 option as 2 for serial port output at 76 800 baud to send data to the Storage M...

Page 22: ...Section 3 The Printer Enable Method of Data Storage 3 4 This is a blank page...

Page 23: ...r more to be certain it places a File Mark in the Storage Module when reconnected A File Mark can be placed in the data by using SMS the 9 Mode command 3 not in 21X or CR7 or from a special P96 comman...

Page 24: ...In this case the byte will be stored with a null character ASCII code 0 as the second byte If a single byte remains in the input buffer when power is disconnected from the Storage Module it will be s...

Page 25: ...ing the data This process does have some consequence for memory use Data is stored as received With flash memory it is not possible to overwrite the previously received data transmission without erasi...

Page 26: ...ocks The next block containing the remainder of the bad data has not been erased In both cases the bad data will be collected as normal data and written to a file However when the end of bad data mark...

Page 27: ...respectively to activate the Storage Module Section 5 2 SMS performs this function automatically 9227 5 H a a Logan UT SM4M SN SOLID STATE STORAGE MODULE MADE IN USA FIGURE 5 1 Storage Module Connect...

Page 28: ...de is limited to a maximum speed of 9600 baud 19200 on the CR23X which can make the transfer of large volumes of data a lengthy process compared to direct connection to a PC where baud rates up to 115...

Page 29: ...1 for direct connection For communication via the CR500 510 CR10 10X or CR23X the setup shown in Figure 5 2 is required The CR23X can also be used without an SC32A Figure 5 3 SMS also has a terminal...

Page 30: ...e Module address 1 8 If the connections are correctly made and the Storage Module is properly addressed it will send back CR LF If the attempt to establish communications fails the datalogger will ret...

Page 31: ...wer up This feature is standard in the CR500 510 CR10 10X and CR23X dataloggers The program should be stored in program number eight in the module with address one 21X and CR7 PROMs before the current...

Page 32: ...commands or by manually deleting each of the programs in the module In the latter case after the last program is erased the module will proceed to erase and tidy up the program storage area The 21X o...

Page 33: ...SM A 01 0000 Enter command 1 Ready for instruction to effect command 1 248 01 248 Key in 248 to effect command 1 A 01 Execute SM Reset The module then executes the equivalent of the 1249K telecommuni...

Page 34: ...inserted 0 indicates that it was not 4 04 XX DISPLAY SET MEMORY CONFIGURATION enter the appropriate code to change configuration 0 ring 1 fill and stop 5 DISPLAY STATUS A to advance to each window 01...

Page 35: ...ay Location Pointer DLP is used to display Storage Module data The Storage Reference Pointer SRP indicates the next location to be written to in the Storage Module The Dump Pointer is an internal Stor...

Page 36: ...result as 1B Status is displayed following execution of command This command may take some time to complete nnnnC Comma Delineated ASCII Dump Dump nnnn output arrays from the location of the DLP The...

Page 37: ...designate a new area of memory in the Storage Module File Marks are automatically placed in data at power up upon connection to datalogger or retrieval interface or when a CR500 510 CR10 10X or CR23X...

Page 38: ...instead A module with damaged memory requires a full memory test to determine how much usable memory remains The switches are not changed to their default settings abfeL Switch Settings a is the Stora...

Page 39: ...w 0 VDC the processor is set to receive data asynchronously on Pin 9 TD When the PE line is dropped data remaining in the input buffer are stored and the location pointers are saved The processor then...

Page 40: ...This is a blank page...

Page 41: ...rsibly erased during the upgrade process To load the operating system you will need to connect the module to a PC running Windows via an SC532 A interface Please follow the instructions supplied with...

Page 42: ...This is a blank page...

Page 43: ...can be modified to connect to the datalogger s power terminals as follows 1 Unplug field cable from datalogger and SC532A 2 Cut off DB9 connector 3 Remove cable sheath exposing positive RED wire and...

Page 44: ...This is a blank page...

Page 45: ...This is a blank page...

Page 46: ...campbellsci com br suporte campbellsci com br Campbell Scientific Canada Corp CSC 11564 149th Street NW Edmonton Alberta T5M 1W7 CANADA www campbellsci ca dataloggers campbellsci ca Campbell Scientifi...

Reviews: