file: hps24if_cmd.html
22 Feb 2013
HPS24IF SENSOR FRONT-END BOARD VERSION 2.x COMMAND SET Preliminary
See ASIMET MODULE OPERATIONS document for instructions
on how to hook up the comms link to your PC and RS-485 adapter. This board may be used both as a
front-end interface board in conjunction with an ASIPIC24 CPU board (and is compatible with older
VOS/ASIMET C51 CPU boards) or in a "standalone IMET-compatible module" mode.
This command set refers to HPS24IF front-end boards running xxx_HPS24IF v2.xx firmware. Currently
there are 3 variations:
HRH_HPS24IF v2.xx for HRH modules
PRC_HPS24IF v2.xx for PRC modules
SWR_HPS24IF v2.xx for SWR modules with Eppley sensors
Refer to Latest Version Information for
reference info on latest firmware version numbers.
Note: commands sent are indicated in BOLD, responses in normal text.
<crlf> represents ASCII carriage return and line feed.
Command Description
- A Address acknowledge
- returns address of module, terminated by <crlfetx>
- example:
#HPS01A HPS01<crlfetx>
- NOTE 1: HPS01 is the default address of the HPS module;
it may be changed by the 'U' command but any failure of
EEPROM will result in the use of the default address. In
addition, use of defaults is reported in the 'L' command.
- NOTE 2: All 3 ASIMET modules (HRH, PRC, SWR) based on
this board expect address HPS01 only.
- C Output calibrated data
- H Help
- #HPS01H - a multiple line response with text similar
to the first line of each command description in this
document as the help line, with each line terminated
<crlf> and final line terminated <crlfetx>, as follows:
Firmware HRH_HPS24IF v2.08
A - Address acknowledge
C - Calibrated data (and goto interval mode 1)
H - Display Help message
L - Report ID, serial #, cal info
M - Report cal constant set 1: A B C D
N - Report cal constant set 2: A B C D
O - Report onboard system values: 3.3V, Vbat
P - Calibrated data (and goto polled mode 0)
T - Enter test mode
U - Update EEPROM constants - password 'OK'
- A,Cxy,D,M,O,Q,S,WOK
- 'N' command is present on HRH version only.
- L Report ID, serial #, cal info, etc.
- M Output first set of calibration constants
- returns cal set #1 values A B C D without heading, space
separated (for easy access from ASIPIC24 Main CPU board)
- example:
#HPS01M -8.65600e-01 2.48100e-03 6.06600e-08 -1.24400e-12
- N Output second set of calibration constants
(HRH model only)
- returns cal set #2 values A B C D without heading, space
separated (for easy access from ASIPIC24 Main CPU board)
- example:
#HPS01N -2.98700e+01 3.25900e-03 -6.81500e-08 1.69600e-12
- P Output polled mode data; also switch
to polled mode if currently in 1 minute IMET-style interval mode
- outputs same info as 'T' command (but no colon between cal and raw values),
i.e. both calibrated and raw data, after slight delay to acquire new data.
- example (for HRH version):
#HPS01P 65.325 24.337 45123 23124<crlf>
- C language format: "%7.3f %7.3f %6d %6d\r\n\x03"
- sensor power is always ON in this mode.
- T Enter test mode
- UOK Update EEPROM contents
- enters the update mode after confirmation of 'OK' password.
New EEPROM values may be entered in this mode.
- upon initial entry, you must send the letters OK after the
command or the command is ignored, e.g. #HPS01UOK may be sent
as one. Upon receipt of the correct 'password', the response will
be OK if current parameters are valid, or NEW if parameters
have never been entered or are suspicious (i.e. EEPROM failure or
bad internal checksum).
- response to an unknown command is '?'
- IMPORTANT! command letter or letters A, Cxy, O, or S
will respond with the current setting when issued followed
by <cr> only . If followed by =xxxxx<cr>, where xxxxx is some
appropriate value, the EEPROM setting will be changed pending
receipt of 'WOK' command to make it permanent. Subsequent
requests for current settings will report the new value while
still in update mode. However, if update mode is exited with
'Q', the original settings of all parameters will remain intact.
- the following commands are available in EEPROM update mode:
- A - module Address (1 to 5 characters)
- Cxy - Cal Constants, where x is set 1 or 2, and y is
constant A to D
- O - Precip sensor ON time (1 - 30 seconds, default 5) before taking A/D reading
(only for IMET-style interval mode)
- Q - Quit without writing new info to EEPROM
- S - Serial number
- WOK - Write new info to EEPROM and exit
- Cal Constant Sets apply as follows:
- HRH only HPS model:
1 - RH%
2 - TMP
- PRC only HPS model:
1 - PRC
- SWR only HPS model:
1 - SWR
- Cal constants are used in a polynomial of form:
A + Bx + Cx^2 + Dx^3
- examples:
- To see the current module address:
A<cr>
- To change the current module address:
A=HRG01<cr>
- To see the current C2A cal constant (set 2, constant A):
C2A<cr>
- To change the current C2A cal constant:
C2A=1.5502<cr>
- NOTE: Upon completion, the newly updated module address
will not take effect until the next reset or power-up.
Revision history:
- Original Release 5 Oct 2011 - based on vhpscmnd.html
- Misc revisions - 22 Feb 2013
- Misc revisions - 22 May 2013