Page 3 - Guarantee; Batteries
Guarantee This equipment is guaranteed against defects in materials, workmanship,and software. This guarantee applies for twelve months from date ofdelivery. We will repair or replace products which prove to be defectiveduring the guarantee period provided they are returned to us prepaid. Theguarant...
Page 5 - Contents; Section 3. Understanding How the SDM-SIO4 Handles
i Contents Section 1. Introduction ..................................................... 1-1 1.1 What is the SDM-SIO4? .................................................................................1-11.2 Specifications .................................................................................
Page 6 - Figures
ii 5.2.6 Command 5: Status ............................................................................. 5-45.2.7 Command 6: Flush Transmit Buffer.................................................... 5-55.2.8 Command 7: Activate Command Line ................................................ 5-55.2.9 C...
Page 7 - Section 1. Introduction; NOTE
1-1 Section 1. Introduction The SDM-SIO4 has four configurable serial RS232 ports which allow it to be connectedto intelligent serial sensors, display boards, printers or satellite links. It can also be usedin many other applications where the data is transferred in a serial fashion. This deviceis d...
Page 8 - PORT; Command Line; K K K
SDM-SIO4 4-Channel Serial I/O Interface User Guide 1-2 ¿ ¾ ½ ¾ ¿ À ¿ À ¾ Switches - Go to 1 if command line active ½ ½ ½ ¾ ¾ ¿ ¿ ¿ ¿ ¿ ¿ ¿ À À À À À ¿ ¿ To Other Ports To Other Ports 1 À PORT Handshake Control Tx Buffer Rx Buffer Command Line Control Datalogger Command Control CRC/SIG Driver Format ...
Page 9 - Specifications; Serial Ports; Table 1 SDM-SIO4 Serial Port Pin Configuration; Serial Port Buffers
Section 1 . Introduction 1-3 1.2 Specifications 1.2.1 Serial Ports The SDM-SIO4 has four serial ports which can be configured independentlyto use different serial data formats and baud rates (from 25 to 115,200baud). These ports are 0-5V logic or ±5V for RS232 and are configuredsimilar to a PC ‘AT’ ...
Page 11 - Other Key Features
Section 1 . Introduction 1-5 1.2.6 Other Key Features • An internal lithium battery which retains configuration information(estimated life 10 years) • A built-in system watchdog which will reset the processor in the eventof a crash caused by transients, etc. • A multi-tasking operating system allowi...
Page 13 - Setting the SDM Address; Table 2 Address Settings
2-1 Section 2. Installation and HardwareSet-Up The SDM - SIO4 is designed to be mounted on an enclosure chassis plate using the two mounting holes in the tabs on the side of the case . Before installation, it is necessary to set up the address of the SDM-SIO4 and also the modeof operation of each se...
Page 14 - Selecting RS232 or 5V Logic for Each Port; Transient Protection and Grounding
SDM-SIO4 User Guide 2-2 2.2 Selecting RS232 or 5V Logic for Each Port The output voltage levels of each serial port can be set to either: • Logic level output: +5V (high) / 0V (low) or • RS232 output: +5V (high) / -5V (low) (compatible with RS232 driver requirements). The logic level output is used ...
Page 15 - Table 3 Status LED Error Codes
Section 2. Installation and Hardware Set-Up 2-3 • Electrical noise causing possible loss or corruption of serial data. • Electrical noise being transferred back to the datalogger causing errors onanalogue measurements. • Long term damage in the form of corrosion caused by current flowing alongelectr...
Page 18 - Simple Filters
SDM-SIO4 User Guide 3-2 The hex. number must always be two ASCII characters. Control characters can be entered for all commands in a similar way: • ^M is carriage return, ^J line feed etc. • ^^ means ^ • "" means " • ]] means ] • && means & • &0d means line feed • &he...
Page 19 - Filter Strings
Section 3. Understanding How the SDM-SIO4 Handles Data 3-3 See Section 5 – ‘Programming the Datalogger’. Filter Strings These are used to define how to filter incoming data from a port into a format thedatalogger can use. This is done by having a user-defined filter string pre-stored inthe battery-b...
Page 21 - Predefined Filter Strings; Output Formatting
Section 3. Understanding How the SDM-SIO4 Handles Data 3-5 2. n8 discards everything up to 12.65V. 3. F converts the number to Campbell Scientific floating point. If a valid numberis not found -99999 is sent to the datalogger. 4. i[c] waits for the trigger character ‘c’ of ‘current’. 5. n8 discards ...
Page 23 - CR10X Program Example
Section 3. Understanding How the SDM-SIO4 Handles Data 3-7 Table 4 Fixed Strings Currently Allocated String number String (enclosed in quotes) 256 ‘+0000000000123.45670000000000CrLf’ 257 ‘Voltage’ 258 ‘Amps’ 259 ‘Watts’ 260 ‘Joules’ 261 ‘Temperature’ 262 ‘Pressure’ 263 ‘Speed’ 264 ‘Power’ 265 ‘Depth...
Page 25 - Command Line Operation and Structure; Entering Commands
4-1 Section 4. Programming the SDM-SIO4 This section gives both the basic commands and advanced command line options which allowtesting and advanced configuration of the SDM-SIO4. 4.1 Command Line Operation and Structure To use the command line mode, connect a computer to port 1 of the SDM-SIO4.The ...
Page 27 - exit; Advanced Commands; version; status
Section 4. Programming the SDM-SIO4 4-3 because they are compiled. exit This command exits the command line and returns port 1 of the SDM-SIO4 tonormal operation. 4.4 Advanced Commands version This returns the internal EPROM part number, signature and the string signature ifgood or 0 if bad. This wi...
Page 28 - hexdump
SDM-SIO4 User Guide 4- 4 WD n WDERR n WDADDR n WD n is a count of the number of watchdog resets, WDERR is the number of thelast task that crashed and WDADDR is the address at which the crash was found. NC 0-9 This is the number of SDM commands the datalogger sent to the SDM-SIO4 thatthe SDM-SIO4 did...
Page 31 - Section 5. Programming the Datalogger; Description
5-1 Section 5. Programming the Datalogger The datalogger instruction specific to the SDM-SIO4 is P113 (CR7 and CR10/10X only).(Please check with Campbell Scientific to see if your version of the operating system supportsthis.) The instruction has the following format: Parameter No. Description 01 Re...
Page 33 - Understanding Parameter Options and Returned Values
Section 5. Programming the Datalogger 5-3 5.2.1 Understanding Parameter Options and Returned Values In the following examples, ‘ x ’ indicates a single digit from 0 to 9. When the command requires or returns values, each digit, or combination ofdigits, can signify either a value, flag or setting. Us...
Page 38 - First Value Returned
SDM-SIO4 User Guide 5-8 ;set flag one so that set-up will only be done once. P86 11 ;end of set-up. P95 If you use the RAMTEST command you will have to wait aminimum of 6 seconds for it to complete before you try to executeanother P113. Some Dataloggers do not support P65 Bulk Load. In that case you...
Page 39 - Second Value Returned; Third Value Returned
Section 5. Programming the Datalogger 5-9 Second Value Returned CTS status (0=CTS low, 1=CTS high)| DSR status (0=DSR low, 1=DSR high)| | RI status (see below)| | | DCD status (0=DCD low, 1=DCD high)| | | |x x x x For the RI (Ring Indicator): 0 = no trailing edge seen since last read 1 = trailing ed...
Page 43 - String Number or Character Code
Section 5. Programming the Datalogger 5-13 Output Mode:0 No output format string 1 Convert location to ASCII floating point. Add character/delimiter betweenvalues if enabled. The last value will not have a delimiter after it. 2 Convert location to ASCII hex pair. Add character/delimiter between valu...
Page 44 - Example CR10X Program
SDM-SIO4 User Guide 5-14 5.2.22 Command 2305: Transmit Byte(s) By using P113 command 2305 it is possible to transmit either one or two bytesfrom the command options. If any command option is set to 999 then the byte willnot be sent. The number range for each command option is 0-255 and 999. Anexampl...
Page 46 - Example CR10X Program Using Instruction P113 Command 4
SDM-SIO4 User Guide 5-16 *Table 2 Program 02: 0.0000 Execution Interval (seconds) *Table 3 Subroutines End Program The normal configuration would include setting the speed and serial data formatby calling the datalogger instruction with command 2049 and the relevantparameters. For the majority of se...
Page 48 - Sensors Which Send Data Out Without Prompting
SDM-SIO4 User Guide 5-18 ;get data from SDM-SIO4 and put into locations 1 and 2. 3: SDM-SIO4 (P113) 1: 1 Reps 2: 0 Address 3: 1 Send/Receive Port 1 4: 4 Command 5: 0 1st Parameters 6: 0 2nd Parameters 7: 2 Values per Rep 8: 1 Loc [ number ] 9: 1.0 Mult 10: 0.0 Offset ;At zero minutes into a 10 minut...
Page 49 - Example CR10X Program without Polling or Interrupts
Section 5. Programming the Datalogger 5-19 Example CR10X Program without Polling or Interrupts This simple program is an example for sensors that send data at random intervals.If no data was available when the datalogger asked for it then -99999 will be putinto locations 1 and 2. An IF THEN structur...
Page 50 - Example CR10X Program using the Polling Method
SDM-SIO4 User Guide 5-20 ;end of set up. 5: End (P95) ;get the two floating point values from the SDM-SIO4. 6: SDM-SIO4 (P113) 1: 1 Reps 2: 0 Address 3: 1 Send/Receive Port 1 4: 4 Command 5: 0 1st Parameters 6: 0 2nd Parameters 7: 2 Values per Rep 8: 1 Loc [ Voltage ] 9: 1.0 Mult 10: 0.0 Offset ;Onl...
Page 52 - Example CR10X Program using Interrupts
SDM-SIO4 User Guide 5-22 ;if value returned from poll is >=1 then data must be available. 7: IF (X<=>F) (P89) 1: 2 X Loc [ poll ] 2: 3 >= 3: 1 F 4: 30 Then Do ;get voltages into locations 3 and 4 if poll was true. 8: SDM-SIO4 (P113) 1: 1 Reps 2: 0 Address 3: 1 Send/Receive Port 1 4: 4 Co...
Page 55 - Outputting Datalogger Data
Section 5. Programming the Datalogger 5-25 5.4 Outputting Datalogger Data The SDM-SIO4 can be used to drive displays, printout devices and other output-only systems. In this case after the initial configuration (as above) either simpledata can be sent using commands 0320, 1025 or just data strings u...
Page 56 - Flushing the Input and Output Buffers
SDM-SIO4 User Guide 5-26 *Table 2 Program 02: 0.0000 Execution Interval (seconds) *Table 3 Subroutines End Program 5.5 Flushing the Input and Output Buffers One important aspect of the SDM-SIO4 is that it will continue to collect data andstore it in its buffers even if the datalogger program stops r...
Page 57 - Section 6. Data Error Detection
6-1 Section 6. Data Error Detection Error detection by checksum, CRC or signatures is a way of detecting errors in data, eithertransmitted or received. This section gives details on how to use filter strings together withdatalogger program examples to implement error detection methods. 6.1 Error Det...
Page 59 - Example of Using Received Data Filters
Section 6. Data Error Detection 6-3 6.2.1 Example of Using Received Data Filters If a sensor transmitted the following string: Frequency=12.34567HzBB3DCrLf then a user defined filter string would have to be used. The BB3D part of thestring is the CRC sent in hex. from the sensor. To produce a filter...
Page 62 - Transmitted Data
SDM-SIO4 User Guide 6-6 1,2 CRC16 and CRC16-CCITT 0.159ms/char. 3 CRC16-CCITT-IBM 0.159ms/char. 4 CRC32 0.369ms/char. 5 CSI Signature 0.077ms/char. 6 Checksum using modulo 256 0.066ms/char. 7 Checksum using modulo 8192 0.071ms/char. c The time for the different data types is shown below. Note that t...
Page 63 - Example of Using Transmitted Data Filters
Section 6. Data Error Detection 6-7 5 CSI Signature (CR10X user manual section C-4). 6 Check sum using modulo 256. 7 Check sum using modulo 8192 (CR10X user manual section 5-2). 8-255 reserved for future use. Gn This formatter type can be put into the formatter string to mark the end of thestring an...
Page 69 - Appendix A. ASCII Table
A-1 Appendix A. ASCII Table American Standard Code for Information Interchange Decimal Values and Characters (X3.4-1968) Dec. Char. Dec. Char. Dec. Char. Dec. Char. 0 CONTROL @ 32 SPACE 64 @ 96 ` 1 CONTROL A 33 ! 65 A 97 a 2 CONTROL B 34 " 66 B 98 b 3 CONTROL C 35 # 67 C 99 c 4 CONTROL D 36 $ 68...
Page 72 - B.5 Serial Handshake Modes
SDM-SIO4 4-Channel Serial I/O Interface B-2 B.4 Parity Bits Parity can be enabled and set to either odd or even.0. No parity set 1. Odd parity set 2. Even parity set B.5 Serial Handshake Modes You can select different kinds of handshaking from none at all, hardware (DTR,CTS etc.) and XON/XOFF. On mo...