Page | 75
Aeroqual AQM60 User Guide
* SET_GAIN_FACTOR - 1 byte command to change the gain value
* GAIN_VALUE - 4 bytes floating point data, specified the sensor gain factor value
Example: 0x55 01 17 93
0x55 01 17 30 00 00 80 3F A4
* Set gain factor 1.0 for O3 sensor
16A. Acknowledge reply command of setting gain value, 4 bytes:
MONITOR, AQM_ID, SET_GAIN_FACTOR, CHECKSUM
17. AQM Monitor real time clock update command, 4 bytes, followed by 10 bytes real time data:
RECEIVER, AQM_ID, SET_RTC, CHECKSUM
RECEIVER, 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)
17A. Acknowledge reply command of updating real time clock, 4 bytes:
MONITOR, AQM_ID, SET_RTC, CHECKSUM
18.Get all logged file name list from SD card command, 4 bytes:
RECEIVER, AQM_ID, GET_FILE_NAME_LIST, CHECKSUM
* GET_FILE_NAME_LIST - command to get file name list.
19.Reply of the above command is 20 bytes stream. The command requester could get many of this reply.
Each of them is an individual file. Until 3 seconds time up, without any reply:
MONITOR, 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.
20 Download a logged file in SD card via serial port, the command is 4 bytes:
RECEIVER, AQM_ID, DOWNLOAD_A_FILE, CHECKSUM
* DOWNLOAD_A_FILE - 1 byte command
Followed by 16 bytes stream with file name:
RECEIVER, 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
Year Month Date
Time
Sensor1
Sensor2
...
SensorX
Inlet\n
*File header with tab delimited
09
01
18
10:12:00 0.026 10.6
...
2.8
S\n
*Date, time and readings
with tab delimited
Summary of Contents for AQM60
Page 1: ...Aeroqual AQM60 User Guide ...