w1_ds2423 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Kernel driver w1_ds2423
  2. =======================
  3. Supported chips:
  4. * Maxim DS2423 based counter devices.
  5. supported family codes:
  6. W1_THERM_DS2423 0x1D
  7. Author: Mika Laitio <lamikr@pilppa.org>
  8. Description
  9. -----------
  10. Support is provided through the sysfs w1_slave file. Each opening and
  11. read sequence of w1_slave file initiates the read of counters and ram
  12. available in DS2423 pages 12 - 15.
  13. Result of each page is provided as an ASCII output where each counter
  14. value and associated ram buffer is outpputed to own line.
  15. Each lines will contain the values of 42 bytes read from the counter and
  16. memory page along the crc=YES or NO for indicating whether the read operation
  17. was successful and CRC matched.
  18. If the operation was successful, there is also in the end of each line
  19. a counter value expressed as an integer after c=
  20. Meaning of 42 bytes represented is following:
  21. - 1 byte from ram page
  22. - 4 bytes for the counter value
  23. - 4 zero bytes
  24. - 2 bytes for crc16 which was calculated from the data read since the previous crc bytes
  25. - 31 remaining bytes from the ram page
  26. - crc=YES/NO indicating whether read was ok and crc matched
  27. - c=<int> current counter value
  28. example from the successful read:
  29. 00 02 00 00 00 00 00 00 00 6d 38 00 ff ff 00 00 fe ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff crc=YES c=2
  30. 00 02 00 00 00 00 00 00 00 e0 1f 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff crc=YES c=2
  31. 00 29 c6 5d 18 00 00 00 00 04 37 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff crc=YES c=408798761
  32. 00 05 00 00 00 00 00 00 00 8d 39 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff crc=YES c=5
  33. example from the read with crc errors:
  34. 00 02 00 00 00 00 00 00 00 6d 38 00 ff ff 00 00 fe ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff crc=YES c=2
  35. 00 02 00 00 22 00 00 00 00 e0 1f 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff crc=NO
  36. 00 e1 61 5d 19 00 00 00 00 df 0b 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff 00 00 ff ff crc=NO
  37. 00 05 00 00 20 00 00 00 00 8d 39 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff crc=NO