IQM 60 V5 Pump Revision October 2010
35
* ZERO_INFO - 1 byte zero calibration status,
* ZERO_STATUS- 1 byte = 0x00, zero calibration finished or not zero calibration state,
else the zero calibration was processing.
22. AQM Monitor real time clock update command, 4 bytes, followed by 10 bytes real time data:
MONITOR, AQM_ID, SET_RTC, CHECKSUM
MONITOR, SET_RTC, RTC, CHECKSUM
* SET_RTC - 1 byte update Real Time Clock command.
* RTC - 7 bytes Real Time clock, ss:mm:hh dd/MM/YY WD(Week Day)
22A. Acknowledge reply command of updating real time clock, 4 bytes:
SENSOR, AQM_ID, SET_RTC, CHECKSUM
23.Get all logged file name list from SD card command, 4 bytes:
MONITOR, AQM_ID, GET_FILE_NAME_LIST, CHECKSUM
* GET_FILE_NAME_LIST - command to get file name list.
24.Reply of the above command is 20 bytes stream. The command requester could get many of this reply.
Each of them is a individual file. Until 3 seconds time up, without any reply:
SENSOR, AQM_ID, GET_FILE_NAME_LIST, FILE_NAME, FILE_SIZE, CHECKSUM
*FIlE_NAME - 12 bytes ASCII code of the full file name.
*FILE_SIZE - 4 bytes long integer value of the file size.
25 Download a logged file in SD card via serial port, the command is 4 bytes:
MONITOR, AQM_ID, DOWNLOAD_A_FILE, CHECKSUM
* DOWNLOAD_A_FILE - 1 byte command
Followed by 16 bytes stream with file name:
MONITOR, AQM_ID, DOWNLOAD_A_FILE, FILE_NAME, CHECKSUM
* FILE_NAME - 12 bytes ASCII code of a full file name.
Reply data stream is ASCII coded data record, with tab delimited (\t) and new line ends,
receiver just simply look for line ends (\n):
Example file data:
AQM ID: 255\n
Date
Time
Sensor1 Sensor2 ...
SensorX Inlet\n
*File header with tab
delimited
16/11/07
10:12:00 0.026 10.6
...
2.8
S\n
*Date, time and readings
with tab delimited
16/11/07
10:14:00 0.028 9.8
...
2.6
S\n
*Date, time and readings
with tab delimited
* Sensor1 ~ SensorX - sensor name ASCII with tab delimited.
* 16/11/07 - 8 bytes date ASCII, 16 Nov. 2007
* 10:12:00 - 8 bytes time ASCII, hour:minutes:seconds
* 0.26, 10.6 - 8 bytes decimal value in ASCII
* S - 1 byte inlet state, S for Sample, Z for Zero air scrubber on