background image

Support

 

 10

XP2i Programming Instruction Manual

    

BootLoader SIGnature

A quick note about the Bootloader Signature: This string contains a 19 character, product-specific string (whose contents may vary with product revision), 
followed by a carriage return (CR), making the total string length 20 bytes. However, a reset turns the RS-232 interface on and off, so it may be subject to 
noise; a 

NULL

 may be received before the signature is sent, and the first character or so of the Bootloader Signature may be corrupted. A framing error is 

also possible. The procedure above will deal with this situation properly. Should you want to parse the bootloader signature, it has the following format: 

=xxxxxxxxxxxxxxxxx=”

 where 

x

 will vary with product revision. The bootloader signature is used by the firmware upgrade tool, but should NOT be 

used to identify the firmware version; use the “

?VER

” command for that purpose. If you have a system that may have Crystal DTG or XP2i units attached, you 

can use this signature to determine which device is in use.

Note: 

Any time you detect the Bootloader Signature, the unit has been reset, or disconnected from and reconnected to power; turning the unit on and off 
with the button will not send the Bootloader Signature. You can use this behavior to detect a battery change, or a problem with the XP2i.

Some commands may take up to 500 milliseconds to return a reply. You should always wait at least 50 milliseconds after each reply is received before sending 
the next command. After a reset command it may take up to 15 seconds before the gauge resumes normal operation.

Data transmitted from the XP2i will always be 7-bit ASCII. Any high-ASCII characters indicate a line-noise problem, or a problem with the XP2i or PC.

The XP2i has very thorough integrity checks to catch corruption of program or calibration data memory. Should the data memory integrity check fail, the unit 
displays “

ERR 1

” on the display as the value line of the serial output. It is important to check for this, or you may mis-parse that line as “1 PSI”, depending on 

your program. Should the program memory integrity check fail, the unit will continuously reset, blinking the LCD on and off, and the serial output will alter-
nate between the bootloader signature and a line reading “

CRC FAIL

”. This condition can be recovered from in the field by reloading the unit’s firmware; 

contact technical support for details.

    

contact uS

Phone

 . . . . . . . . . . . . . . . . . . . . . . . . . . (805) 595-5477

Toll-Free

 . . . . . . . . . . . . . . . . . . . . . . . . (800) 444-1850

Fax

 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . (805) 595-5466

Email

 . . . . . . . . . . . . . . . . . . . . . . . . . . .

[email protected]

Web

 . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

crystalengineering.net

If calling, have ready the model number, serial number, date of purchase, and reason for return. You will receive instructions for returning the device to us.

Summary of Contents for XP2i

Page 1: ...Programming Instructions For the XP2i Digital Test Gauge ...

Page 2: ...tion Format 2 Query Instructions 2 Commands 5 General Commands 5 Acknowledgment of a Command 7 Support 8 Troubleshooting the Digital Interface 8 Effects of Password Protection on Commands 9 Programming Tips 9 Bootloader Signature 10 Contact Us 10 ...

Page 3: ...y of water factor 4 C 60 F or 68 F Store a 12 digit ID or tag number in non volatile memory Adjust calibration values We hope your XP2i meets your expectations and we re interested in any comments or suggestions you may have You can send us a note at crystal ametek com Many features in this and our other products are a direct result of your comments The XP2i can be connected to a personal computer...

Page 4: ...mark Any pressure values returned are split across two lines the first contains a floating point value and the second contains the name of the measurement unit Each line is right justified in a fixed width 10 character field Since each line is terminated with a CR LF pair this means the total length of the response to a measurement query is 24 bytes A decimal point will always be included with the...

Page 5: ...e pressure units currently being displayed 10 7 mmH2O Range RNG Range returns the pressure range of the gauge It is returned in two 10 character lines The first line is the value the second line is the pressure unit For example a 100 PSI XP2i would return 100 00 PSI Return Average Pressure P A Using the same format as the P U command the average pressure is returned If averaging is disabled X 0 is...

Page 6: ...use only Example version number R0101 Water Density H2O Applies only to models that include inches of water Water density returns the current setting for the density of water in terms of temperature with one of three values possible _4C 60F 68F Zero Check Z U Zero Check reveals how much was subtracted from the reading to zero the gauge in the pressure units currently being displayed When batteries...

Page 7: ... PKS Enables peak button operation default Message Store MSGx Up to 12 characters usually tag or ID can be stored in EEPROM Set the message with MSGx where x is the message Next Pressure Unit I P This command is acknowledged with a simple A Ø To check which units were selected send the command P U to return the pressure value and the current pressure units No Auto Off NAO Prevents automatic shutdo...

Page 8: ... technical support Set the Average Window Size AVS x Sets the number of pressure reading to be averaged The valid range is from 1 through 10 i e AVS 5 CR or AVS 10 CR If an invalid size is entered or averaging is disabled X 0 is returned Averaging is enabled with ConfigXP only Streaming Data On Off SP1 Displayed pressure is sent out of the serial port after each new reading at a rate of approximat...

Page 9: ...derstood the command and acted on it N The XP2i did not understand the command due to either syntax or reception errors X The command was understood but is not implemented or supported at this time Following an A N or X the single digits mean the following Ø There were no reception errors 2 Buffer overflow 4 Framing error 6 There were both buffer overflow and framing errors Example acknowledgment ...

Page 10: ... X X Possible reason Not enough time allowed between commands Check the communication parameters N 4 Framing error Bytes were lost Therefore the command could not be matched A framing error can sometimes occur after power on after reset or when the batteries are changed see the Programming Tips on page 9 for suggestions on handling this X X Possible reasons Noise on the line either created a false...

Page 11: ... by sending the RST command 2 Wait 15 seconds 3 Read the Bootloader Signature even if you ignore it to clear it from the PC s input buffer see below for more details 4 Send a carriage return to clear any noise in the XP2i s input buffer 5 An error code either N Ø or N 4 will be returned this is normal you have sent an empty command read it to clear it The buffers are now reset 6 Use the P U and I ...

Page 12: ...e You can use this behavior to detect a battery change or a problem with the XP2i Some commands may take up to 500 milliseconds to return a reply You should always wait at least 50 milliseconds after each reply is received before sending the next command After a reset command it may take up to 15 seconds before the gauge resumes normal operation Data transmitted from the XP2i will always be 7 bit ...

Page 13: ... 2013 Crystal Engineering Corporation 708 Fiero Lane Suite 9 San Luis Obispo California 93401 8701 3984 E ...

Reviews: