
EA-1 User Manual
48
Details of Binary Mode:
In Binary Mode, data is delivered in large blocks. A block consists of a 16-byte header followed by multiple data
packages (8-bytes each). The header contains information about the number of bytes included in the block, a
counter, and some fixed value bytes which allow the user to synchronize the data.
A data block containing “N” data packages looks like this:
Header (16 bytes)
Data package #1 (8 bytes)
Data package #2 (8 bytes)
Data package #3 (8 bytes)
….
Data package #N-1 (8 bytes)
Data package #N (8 bytes)
The header looks like this:
Byte #
0
1
2
3
4
5
6
7
Content
0xFE
0xFE
0xFE
0xFE
0xFE
0xFE
0xFE
0xFE
Byte #
8
9
10
11
12
13
14
15
Content
0x55
0xAA
0x55
0xAA
CS mode
Block byte count (*)
Counter
where “Block byte count” is the number of bytes contained in the block excluding the header, a two-byte value. This
should be equivalent to N x 8 where “N” is the number of packages in the block.
“CS mode” is the CS mode number being used, in this case “4”, as a binary value.
“Counter” is the block number (incremented for each block delivered) 0 to 255 and cycling back to zero.
The data package looks like this (N such packages in each block):
Byte #
0
1
2
3
4
5
6
7
Content
Status byte
Timestamp in us (3 byte integer)
Data value in Joules or Hz (4-byte float)
Details of data package format:
Byte_0 (status byte)
0x00 = regular energy value
0x01 = energy value OVER (out of range)
0x0A = frequency value
Byte_1
Timestamp byte 0 (LSB)
Byte_2
Timestamp byte 1
Byte_3
Timestamp byte 2 (MSB)
Byte_4 (FLOAT)
Value (energy or frequency) byte 0 (Least significant)
Byte_5 (FLOAT)
Value (energy or frequency) byte 1
Byte_6 (FLOAT)
Value (energy or frequency) byte 2
Byte_7 (FLOAT)
Value (energy or frequency) byte 3 (Most significant)
4. OTHER MODES:
At present the CS modes defined are as described above. In addition there are other options that could be added in
the future according to customer requirements. Please be in contact with Ophir via your local sales agent or directly
to the R&D Department (contact details below in Appendix 4) if you need assistance or if you have a request for a
special measurement mode that is not currently supported.