Skip to content

Reading Result

seneye edited this page Oct 21, 2016 · 2 revisions

Response

Byte Code
3-0 TS
4 FLAG1
5 FLAG2
6 reserved
7 reserved
8 - 9 pH
10 - 11 NH3
12 - 15 T
16 - 39 reserved
40 - 43 Kelvin
44 - 47 X
48 - 51 Y
52 - 55 PAR
56 - 59 LUX
60 PUR
61 0

TS

The unix timestamp at the moment of reading. More info

FLAG1

BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0
- - - SlideExpired SlideNotFitted InWater - -

InWater

The InWater bit indicates if the reading was taken with the SUD summerged

SlideNotFitted

The SlideNotFitted reports to the host whether the slide is not fitted correctly on the back of the SUD.

SlideExpired

The SlideExpired reports to the host whether the 30 days usage for each slide has expired. If true NH3 and pH results will not avaliable.

FLAG2

BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0
- - - IsKelvin ERROR - - -

ERROR

The flag indicates that SUD is not able to take readings. This might be solved by connecting the SUD to a seneye web server (SWS) or a windows computer with the Seneye Connect Application (SCA) insalled. This allows the device to synchronise with the servers if needed.

IsKelvin

The IsKelvin bit report if the light fit the Kelvin line on the CIE colorspace. More info

pH

The value of pH. It's a unsigned short. The value need to be dived by 100.

NH3

The value of NH3. It's a unsigned short. The value need to be dived by 1000.

T

The value of Temp. It's a signed integer. The value need to be dived by 1000.

Clone this wiki locally