# Demodulator data format - spectrum :id=top

------

> _Doc Ver:_ 1.7  
_App Ver:_ 2.6.6.53  
_Date:_ 09/13/2026

------

> Spectrum frames for SA1 2.x (`sa-di`). The binary layout below is unchanged. On-disk files: [Data save](data_save.md). To find an etalon, look at intensity (even comb, threshold ≥ 200); switch back to wavelength afterwards. See [Precise wavelength](precise_wl.md).

## Spectrum data format :id=title

|#|Number|Field name|Bytes|Value|Description|
|:-:|:-:|----------|:-:|:------:|--------------------|
1|1|Start identifier|4|0xFFFFFFFF|
2|2|Data version|1|0x00|Wavelength mode
3||Spectrum data uses this value||0x01|Spectrum mode (4096 voltage type)
4||||0x02|Combined wavelength and spectrum mode
5||||0x03|Physical value mode
6||||0x04|Wavelength and physical value
7||||0x05|Wavelength, physical value, and virtual physical value
8||||0x20|Standard sensor configuration
9||||0x21|Standard sensor and virtual sensor configuration
10||||0x22|Sensor precision calibration parameter configuration
11||||0x23|Sensor warning and alarm configuration
12|3|Checksum|1|0x00|Checksum reserved
13|4|Device serial number|4||If there is no serial number, these 4 bytes are 0.
14|5|Device time|4|Second|Unix Time seconds format. If there is no built-in time, these 4 bytes are 0.
15|||4|Microsecond|
16|6|Counter|4|Counter|Internal counter; wraps to zero when it increments past the maximum.
17|7|Device status|4|0x00000000|No sensor data, no fault. If there is no sensor data, fields after item 7 are not output except the end identifier.
18||||0x00000001|Sensor data present, device normal
20||||0x00000002|Built-in laser thermometer fault
21||||0x00000004|Laser temperature abnormal
22||||0x00000008|Laser fault
24||||0x00000010|Device thermometer fault
25||||0x00000020|Device temperature abnormal
26||||0x00000040|Device hygrometer fault
27||||0x00000080|Device humidity abnormal
28||||0x00000100|Device vibration sensor fault
29||||0x00000200|Device excessive vibration fault
30||||0x00000400|Device temperature-control abnormal
31||||0x00000800|Device supply voltage abnormal
33||||0x00001000|Detector fault; fault channels are reported in '8 Device status 2'.
34||||0x00002000|Fiber optical-path fault; fault channels are reported in '8 Device status 2'.
35||||0x00004000|Channel threshold adjustment abnormal; fault channels are reported in '8 Device status 2'.
37||||0x00010000|Insufficient CPU computing power
38||||0x00020000|Data output busy/blocked
39||||0x00040000|Insufficient computing space
40||||0x00080000|Insufficient storage space
42||||0x00100000|Data serial-port fault
43||||0x00200000|Network-port fault
44||||0x00400000|Indicator-lamp fault; indicator type is reported in '8 Device status 2'.
45||||0x00800000|Key fault; key type is reported in '8 Device status 2'.
46||||0x01000000|Display output device fault
48||||0x10000000|FBG sensor missing alarm; missing count is reported in '8 Device status 2'.
49||||0x20000000|FBG sensor warning; warning count is reported in '8 Device status 2'.
50||||0x40000000|FBG sensor critical alarm; alarm count is reported in '8 Device status 2'.
52||||0x80000000|Unknown fault
53|8|Device status 2|4||Supplements the device status information, for example which detector has a problem and how many sensor alarms.
54|9|Laser temperature|4||4byte float
55|10|System current channel|1||
56|11|Spectrum data length of a single channel|2||
57|12|Spectrum data of a single channel|2*N||
58|13|End identifier|4|0xFEFEFEFE|


## Change log :id=changelog

|Version|Date|Description|
|:--:|----|----------|
|1.7|09/09/2026|1. Stamp SA1 265.x. Binary layout unchanged.|
|1.6|03/03/2022|1. Created help using the new file format.|

------

[Top](#top)
