8 Commands and responses
8.9 Simulation commands
The following simulation commands help to determine the results of
mag
arcsec
2
readings derived from the light and temperature
sensors.
When using the Simulation mode of the SQM-LU-DL-V, make sure that nothing else interrupts the sequence of readings
such as external programs reading from the SQM-LU-DL-V, or settings of Interval reporting inside the SQM-LU-DL-V.
To read the internal simulation values, issue the “
sx
” command, the response is shown in table 8.46:
Table 8.46: Response of request for internal simulation values
Column
Example value
Description
0
s
Confirmation of the command.
1
,
Separation character.
2-12
0000000360c
Number of counts.
13
,
Separation character.
14-24
0000000360f
Frequency in Hz.
25
,
Separation character.
26-37
0000000244t
Temperature ADC value as seen by the CPU. See Equation 8.1 .
38-39
Carriage return (0x0d), Line feed (0x0a).
An example response is:
s,0000000360c,0000000360f,0000000360t
0123456789 123456789 123456789 12345678
To convert raw temperature value to degrees C:
DegC
=
raw
×
3
.
3
1024
−
0
.
5
0
.
01
(8.1)
To convert degrees C value to raw temperature:
raw
=
(
DegC
×
0
.
01 + 0
.
5)
×
1024
3
.
3
(8.2)
To set the internal simulation values and read the calculated response, issue the “
S...x
” command as detailed in Table
8.47. The result of that command is shown in Table 8.48.
Table 8.47: Request simulation (S....x)
Column
Example value
Description
0-1
S,
Initiation of Sx command.
2-11
0000000360
Simulated counts.
12
,
Separation character (can be anything except x).
13-22
0000000360
Simulated Frequency in Hz
23
,
Separation character (can be anything except x).
24-33
00244
Simulated Temperature ADC value. See Equation 8.1 .
34
x
Terminating character.
90
Unihedron SQM-LU-DL-V Operator’s Manual -
20211013
Summary of Contents for SQM-LU-DL-V
Page 2: ......
Page 104: ...14 Glossary 104 Unihedron SQM LU DL V Operator s Manual 20211013...