background image

CSM1 Card Storage Module

13

It is critical that line 4 does not go positive before line 20. This
can either be done under careful software control, or by tying the
two lines together at the SC532(A) and using just one line on the
computer to pull the two lines high on the SC532(A).

If it is not possible to control these lines by software, then the
older SM232A is available that uses a mechanical switch to
emulate setting the lines high or low. Please contact Campbell
Scientific for further details.

7.2  Establishing Communications

After raising the lines as described above, a series of carriage return characters
(ASCII decimal 13) with a 100ms delay between them must be sent to the
CSM1 to enable it to determine the baud rate for communication.

The CSM1 works with a serial format of eight bits, one start bit, one stop bit,
and no parity. Valid baud rates are 300, 600, 1200, 2400, 4800, 9600, 19200,
and 38400. Please contact Campbell Scientific for further advice before
attempting to use speeds of 38400.

Normally, the CSM1 will respond to the second carriage return sent to it with
the standard telecommunication prompt, a '?' preceded by carriage return,
linefeed.

7.3  Breaking Communications

Communications are broken either by taking lines 4 and 20 low, or by
removing power from the CSM1, e.g. unplugging the SC532(A) power supply.

NOTE

Содержание CSM1

Страница 1: ...INSTRUCTION MANUAL CSM1 Card Storage Module and CSMCOM and SMCRead Software Revision 3 01 C o p y r i g h t c 1 9 9 3 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...

Страница 2: ...her 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 d...

Страница 3: ...software or corrected documentation within a reasonable time Campbell Scientific Inc will either replace the software with a functionally similar program or refund the purchase price paid for the soft...

Страница 4: ...l Scientific Inc software and protecting your investment from loss All copyright notices and labeling must be left intact This software may be used by any number of people and may be freely moved from...

Страница 5: ...rating Specifications 3 3 Getting Started 4 4 Storing Data 6 4 1 CR10 6 4 2 21X CR7 8 4 3 DSP4 9 4 4 Data Retrieval 9 5 Storing Datalogger Programs 9 5 1 Transferring Programs to from Datalogger 10 5...

Страница 6: ...e Structure B 1 B 3 Program Files B 1 B 4 Data Pointers B 1 C Card Batteries C 1 C 1 General C 1 C 2 Battery Status Detection C 2 D Telecommunications Commands D 1 E SC532A E 1 Figures 1 CSM1 Case 2 2...

Страница 7: ...rol by the datalogger or computer This allows data from different dataloggers or different experimental runs to be separated Datalogger programs can also be stored from and loaded into a datalogger us...

Страница 8: ...g diodes LEDs The red Status LED indicates the status of the module and card when the CSM1 is first powered up The green Write LED indicates when the CSM1 is writing to the card 2 Specifications 2 1 D...

Страница 9: ...dules Unlike the SM192 716 Storage Modules the CSM1 does not support 9 Mode commands for the CR10 datalogger Also it does not support remote communications via a CR10 datalogger The module address is...

Страница 10: ...receive a Card Storage Module please check you have been supplied with an SC12 cable and the memory card that you ordered 2 New memory cards are supplied without the battery installed to prevent prem...

Страница 11: ...with a wait period of 0 5s between flashes Refer to table 1 for a full description of the status indication For a corrupt unformatted card it should flash four times If the LED does not flash check al...

Страница 12: ...e CSM1 emulates Campbell Scientific s SM192 716 Storage Modules for most aspects of data storage Therefore the same basic programs and procedures are used to store data in the CSM1 Details of how to s...

Страница 13: ...me the CR10 executes Instruction 96 it checks for the presence of the CSM1 and outputs data if the CSM1 is connected and able to store data Using this feature you can use the CSM1 to collect data from...

Страница 14: ...lined above for the CR10 Manual dumps of data to the module are done using the 9 Mode entering 30 for the device code Both 9 and Instruction 96 can also be used to write a filemark into the card by sp...

Страница 15: ...routines which take about five seconds before allowing output of data to the CSM1 as data may be lost during the power up test 4 4 Data Retrieval Once data is stored in the card the card or whole mod...

Страница 16: ...program from the card into the datalogger enter 2nA where n is the number of the card program area 1 8 in which the program is stored 4 To clear a program stored in a card enter 3nA where n is the ca...

Страница 17: ...1 on Detection of Full Card Memory The card memory structure is predefined as fill and stop This means that data can be stored in the card until it is determined that it is full The card is then marke...

Страница 18: ...atus LED seven times The CSM1 will then reset the card s internal full flag to enable further attempts at data storage to be made If there is any free space in the card it can then be used to collect...

Страница 19: ...cribed above a series of carriage return characters ASCII decimal 13 with a 100ms delay between them must be sent to the CSM1 to enable it to determine the baud rate for communication The CSM1 works w...

Страница 20: ...CSM1 Card Storage Module 14 This is a blank page...

Страница 21: ...ta is transmitted asynchronously at levels of 0 5V DC The idle state is 0V This line is held high to indicate that the CSM1 can accept data when receiving data from 21X and CR7 dataloggers Pin 5 input...

Страница 22: ...This is a blank page...

Страница 23: ...mark is not written into the card if a filemark already exists in the preceding data location A filemark is the byte pair 7C 01 Hex stored in the card If you send this sequence to the CSM1 as data it...

Страница 24: ...inter points to a filemark or start of a program no data is output by these commands You must move the pointer past the filemark to get further data The simplest way of doing this is to use the NFM co...

Страница 25: ...BR suffix b Lithium manganese batteries which are currently more readily available These batteries operate at temperatures down to 20 C The suffix for these batteries is generally CR For some battery...

Страница 26: ...terminal voltage of the battery also varies with battery type and with temperature Therefore the exact capacity of battery available when the level detector indicates the intermediate capacity 1 on th...

Страница 27: ...tore data if the battery is indicated as being dead En where n in the range of 0 254 indicates the number of bad characters received from a datalogger e g framing errors If n 255 this indicates that t...

Страница 28: ...viding that the program is not delimited by filemarks 0F causes a continuous dump until the next filemark is reached nnnnnnH F Output binary and ASCII data This command is similar to the F command exc...

Страница 29: ...f a validation check is shown again showing good pages as Another test pattern is loaded into the card at this stage Finally this is validated on the third line and the memory erased at the same time...

Страница 30: ...haracters 07 07 Hex At the end of the transmission detected by the receipt of the 07 07 sequence the CSM1 sends carriage return linefeed and a decimal representation of the checksum of the received pr...

Страница 31: ...e 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...

Страница 32: ...This is a blank page...

Страница 33: ...CSMCOM SOFTWARE...

Страница 34: ...This is a blank page...

Страница 35: ...Collect All Program Files 3 3 7 D Store a DLD Program File 4 3 8 F Store a File 4 3 9 E Erase Reset and Test the Card 4 3 10 C Clear Data Area Quickly 5 3 11 Q Quit 5 4 Filename Conventions 5 5 Data...

Страница 36: ...CSMCOM Table of Contents ii B COM Port Addresses B 1 B 1 CSMCOM and COM3 COM4 B 1 B 2 CSMCOM and the PC201 Card B 1 B 3 PS 2 Computers and CSMCOM B 1...

Страница 37: ...r 4 CSMCOM now attempts to communicate with the module and ascertain the status of the card The program supports COM ports 1 to 4 with the addresses and IRQ lines as used by recent releases of Campbel...

Страница 38: ...mmary of valid telecommunication commands press F1 a second press of F1 displays a second screen To leave the terminal emulator press the Esc key The terminal emulator option asks the module for an up...

Страница 39: ...ores data to a specific file as with the N option but CSMCOM first asks for the starting location of the file This option is mainly used for recollecting old data that has already been collected or to...

Страница 40: ...ded in the file to be stored If the file stored has an odd number of bytes the storage module appends a null character ASCII 0 decimal to the end of the file A filemark is written at the end of the fi...

Страница 41: ...gram reading and loading are subject to verification procedures If CSMCOM is unable to reload a program back into the card a warning is displayed and a temporary file containing the program is retaine...

Страница 42: ...e g ROOT001 DAT If files with the same root name exist new files are numbered sequentially starting with the first number that does not exist on the disk e g if ROOT001 DAT and ROOT002 DAT already ex...

Страница 43: ...CII format the A format must be used to collect the data from the card Storing data directly in ASCII format is inefficient in terms of use of the card memory as printable ASCII requires five storage...

Страница 44: ...message and select the E option After the card has been erased and formatted the module status returns to normal If the battery status displays LOW you should change the battery as soon as possible a...

Страница 45: ...the program files are then collected and stored in a series of files with a root name PFILES A new program stored in PROG1 DLD is then loaded into program area 1 in the card Finally CSMCOM quits A 2 A...

Страница 46: ...h computers the speed of offloading data from the CSM1 can be increased by manually setting the baud rate to 38400 baud You can set the baud rate at which CSMCOM initially tries to communicate by spec...

Страница 47: ...hardware available for IBM PC XT AT computers i e add on serial cards etc Most boards use switches or jumpers to set the addresses and interrupts Please check the documentation for the board for detai...

Страница 48: ...This is a blank page...

Страница 49: ...SMCREAD SOFTWARE...

Страница 50: ...This is a blank page...

Страница 51: ...3 2 6 P Read All Program Files 3 2 7 D Store a DLD Program File 4 2 8 E Erase Reset and Teat the Card 4 2 9 C Clear Data Area Quickly 5 2 10 S Show the Position and Size of the Files in the Card 5 2...

Страница 52: ...2 A 3 Adjusting Your CardServices Set up A 2 A 3 1 How to Choose Which Area of Memory to Allocate to CardServices A 2 A 3 2 SystemSoft s CardSoft Drivers A 3 A 3 3 Phoenix CardManager Card Services Dr...

Страница 53: ...able Up to date information on the tested drivers and tips on how to get them to work is given in Appendix A To install the SMCRead software simply copy all the files on the distribution disk into you...

Страница 54: ...ails You should only need to use this option when trying to diagnose problems with a corrupted card To obtain a summary of valid commands press F1 a second press of F1 displays a second screen To leav...

Страница 55: ...h the exception that it reads just the latest file in the card and the data is written to a specific file rather than one specified with a root file name 2 5 L Read One Data File Starting at a Specifi...

Страница 56: ...ion runs Press Y for yes or N for no as appropriate SMCRead runs the E option by issuing the 1248K command to the module and displaying the status of the process First a row of symbols is displayed On...

Страница 57: ...he Files in the Card This option asks SMCRead to scan through the card and report the position and types of files found in the card A listing is written to the screen which is similar to a DOS directo...

Страница 58: ...extension or specify no extension by terminating the file name with a For options where only one file can be read from or stored in the card e g the name of a program to be stored in the card SMCRead...

Страница 59: ...carriage return and line feed Comma delineated data is reasonably compact can be imported into most analysis packages and can also be read when printed see example in the PC208 manual 4 3 A As Stored...

Страница 60: ...read first The normal procedure for replacing the battery is outlined below Read all data remove the card replace the battery and then rerun SMCRead using the E option to reformat and test the card Wh...

Страница 61: ...e or the PIF file provided for the Ventura drivers The PIF files mentioned below must be linked to the Program Item manually using the Program Manager File Properties options and editing the working d...

Страница 62: ...x drivers do not perform correctly with DOS programs running under Windows To use SMCRead under Windows with these drivers you must use the PIF file provided SMC_TOS PIF This forces the program to run...

Страница 63: ...t with the PCMCIA Specification 2 10 If your drivers are prior to version 2 1 you must upgrade them Card Services 2 1 drivers are incompatible with Card Services 2 0 and so any programs written for 2...

Страница 64: ...equired drivers for SMCRead are shown as follows as they would appear in your CONFIG SYS file your PATH may differ DEVICE C PCMCIA CNFIGNAM EXE DEFAULT DEVICE C PCMCIA PCMSS EXE DEVICE C PCMCIA PCMCS...

Страница 65: ...looks something like EMM386Exclude D000 DFFF representing your exclude range A 3 1 How to Choose Which Area of Memory to Allocate to CardServices The address range used by CardServices can be from A00...

Страница 66: ...drivers ship on many Toshiba and IBM machines SMCRead has been tested with these drivers The standard install for these drivers does not provide a big enough range for SMCRead to work so Phoenix user...

Страница 67: ...good reason not to do so A 4 Using MemMaker supplied with MS DOS 6 xx This section does not apply specifically to SMCRead but you may wish to run MemMaker after adjusting the CardServices memory rang...

Страница 68: ...Appendix A PCMCIA Driver Software Notes A 6 This is a blank page...

Страница 69: ...stored in files with a root name of DFILES DAT in comma delineated format All the program files are then collected and stored in a series of files with a root name PFILES A new program stored in PROG...

Страница 70: ...ine Operation B 2 Critical This parameter is used when running SMCRead under Windows to prevent task switching see section 5 5 SMCRead has the same capability as GraphTerm CSMCOM and SMCOM to send cha...

Страница 71: ...y you have entered an invalid directory name No matching files found When requesting the program to display a list of files using a wildcard character no files of that type could be found Inadequate d...

Страница 72: ...isplayed when collecting several files This usually means a program file was encountered between two data files No data found in the card or file error After attempting to collect several files the pr...

Страница 73: ...This is a blank page...

Страница 74: ...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...

Отзывы: