BS.txt 619 B

1234567891011121314151617181920212223
  1. 2009-09-12bn
  2. This document describes the protocol for the brightness sensor BS.
  3. Datagram is of FS20 sensor message type:
  4. 81 0c 04 ?? 01 01 a0 01 a5 cf xx 00 yy zz
  5. 81: begin of FS20/FHT communication
  6. 0c: remaining length of datagram (12 bytes)
  7. 04: type of datagram
  8. ??: checksum
  9. 01 01 a0 01: FS20 fix sequence, always 01 01 a0 01
  10. a5 cf: FS20 housecode, always a5cf for brightness sensor BS
  11. xx: sensor #
  12. 00: always 00
  13. yy zz: code, see below
  14. yy zz
  15. 76543210 76543210
  16. | ++ ++++++++----- 10 bit resolution brightness value (0..1023)
  17. |
  18. +------------------- 0x20 always 1 (= value byte follows)