18c2ecf20Sopenharmony_ciWhat: /sys/bus/w1/devices/.../alarms 28c2ecf20Sopenharmony_ciDate: May 2020 38c2ecf20Sopenharmony_ciContact: Akira Shimahara <akira215corp@gmail.com> 48c2ecf20Sopenharmony_ciDescription: 58c2ecf20Sopenharmony_ci (RW) read or write TH and TL (Temperature High an Low) alarms. 68c2ecf20Sopenharmony_ci Values shall be space separated and in the device range 78c2ecf20Sopenharmony_ci (typical -55 degC to 125 degC), if not values will be trimmed 88c2ecf20Sopenharmony_ci to device min/max capabilities. Values are integer as they are 98c2ecf20Sopenharmony_ci stored in a 8bit register in the device. Lowest value is 108c2ecf20Sopenharmony_ci automatically put to TL. Once set, alarms could be search at 118c2ecf20Sopenharmony_ci master level, refer to Documentation/w1/w1-generic.rst for 128c2ecf20Sopenharmony_ci detailed information 138c2ecf20Sopenharmony_ciUsers: any user space application which wants to communicate with 148c2ecf20Sopenharmony_ci w1_term device 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciWhat: /sys/bus/w1/devices/.../eeprom 188c2ecf20Sopenharmony_ciDate: May 2020 198c2ecf20Sopenharmony_ciContact: Akira Shimahara <akira215corp@gmail.com> 208c2ecf20Sopenharmony_ciDescription: 218c2ecf20Sopenharmony_ci (WO) writing that file will either trigger a save of the 228c2ecf20Sopenharmony_ci device data to its embedded EEPROM, either restore data 238c2ecf20Sopenharmony_ci embedded in device EEPROM. Be aware that devices support 248c2ecf20Sopenharmony_ci limited EEPROM writing cycles (typical 50k) 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci * 'save': save device RAM to EEPROM 278c2ecf20Sopenharmony_ci * 'restore': restore EEPROM data in device RAM 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ciUsers: any user space application which wants to communicate with 308c2ecf20Sopenharmony_ci w1_term device 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ciWhat: /sys/bus/w1/devices/.../ext_power 348c2ecf20Sopenharmony_ciDate: May 2020 358c2ecf20Sopenharmony_ciContact: Akira Shimahara <akira215corp@gmail.com> 368c2ecf20Sopenharmony_ciDescription: 378c2ecf20Sopenharmony_ci (RO) return the power status by asking the device 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_ci * '0': device parasite powered 408c2ecf20Sopenharmony_ci * '1': device externally powered 418c2ecf20Sopenharmony_ci * '-xx': xx is kernel error when reading power status 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ciUsers: any user space application which wants to communicate with 448c2ecf20Sopenharmony_ci w1_term device 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci 478c2ecf20Sopenharmony_ciWhat: /sys/bus/w1/devices/.../resolution 488c2ecf20Sopenharmony_ciDate: May 2020 498c2ecf20Sopenharmony_ciContact: Akira Shimahara <akira215corp@gmail.com> 508c2ecf20Sopenharmony_ciDescription: 518c2ecf20Sopenharmony_ci (RW) get or set the device resolution (on supported devices, 528c2ecf20Sopenharmony_ci if not, this entry is not present). Note that the resolution 538c2ecf20Sopenharmony_ci will be changed only in device RAM, so it will be cleared when 548c2ecf20Sopenharmony_ci power is lost. Trigger a 'save' to EEPROM command to keep 558c2ecf20Sopenharmony_ci values after power-on. Read or write are : 568c2ecf20Sopenharmony_ci 578c2ecf20Sopenharmony_ci * '9..14': device resolution in bit 588c2ecf20Sopenharmony_ci or resolution to set in bit 598c2ecf20Sopenharmony_ci * '-xx': xx is kernel error when reading the resolution 608c2ecf20Sopenharmony_ci * Anything else: do nothing 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ci Some DS18B20 clones are fixed in 12-bit resolution, so the 638c2ecf20Sopenharmony_ci actual resolution is read back from the chip and verified. Error 648c2ecf20Sopenharmony_ci is reported if the results differ. 658c2ecf20Sopenharmony_ciUsers: any user space application which wants to communicate with 668c2ecf20Sopenharmony_ci w1_term device 678c2ecf20Sopenharmony_ci 688c2ecf20Sopenharmony_ci 698c2ecf20Sopenharmony_ciWhat: /sys/bus/w1/devices/.../temperature 708c2ecf20Sopenharmony_ciDate: May 2020 718c2ecf20Sopenharmony_ciContact: Akira Shimahara <akira215corp@gmail.com> 728c2ecf20Sopenharmony_ciDescription: 738c2ecf20Sopenharmony_ci (RO) return the temperature in 1/1000 degC. 748c2ecf20Sopenharmony_ci 758c2ecf20Sopenharmony_ci * If a bulk read has been triggered, it will directly 768c2ecf20Sopenharmony_ci return the temperature computed when the bulk read 778c2ecf20Sopenharmony_ci occurred, if available. If not yet available, nothing 788c2ecf20Sopenharmony_ci is returned (a debug kernel message is sent), you 798c2ecf20Sopenharmony_ci should retry later on. 808c2ecf20Sopenharmony_ci * If no bulk read has been triggered, it will trigger 818c2ecf20Sopenharmony_ci a conversion and send the result. Note that the 828c2ecf20Sopenharmony_ci conversion duration depend on the resolution (if 838c2ecf20Sopenharmony_ci device support this feature). It takes 94ms in 9bits 848c2ecf20Sopenharmony_ci resolution, 750ms for 12bits. 858c2ecf20Sopenharmony_ci 868c2ecf20Sopenharmony_ciUsers: any user space application which wants to communicate with 878c2ecf20Sopenharmony_ci w1_term device 888c2ecf20Sopenharmony_ci 898c2ecf20Sopenharmony_ci 908c2ecf20Sopenharmony_ciWhat: /sys/bus/w1/devices/.../w1_slave 918c2ecf20Sopenharmony_ciDate: May 2020 928c2ecf20Sopenharmony_ciContact: Akira Shimahara <akira215corp@gmail.com> 938c2ecf20Sopenharmony_ciDescription: 948c2ecf20Sopenharmony_ci (RW) return the temperature in 1/1000 degC. 958c2ecf20Sopenharmony_ci *read*: return 2 lines with the hexa output data sent on the 968c2ecf20Sopenharmony_ci bus, return the CRC check and temperature in 1/1000 degC 978c2ecf20Sopenharmony_ci *write*: 988c2ecf20Sopenharmony_ci 998c2ecf20Sopenharmony_ci * '0' : save the 2 or 3 bytes to the device EEPROM 1008c2ecf20Sopenharmony_ci (i.e. TH, TL and config register) 1018c2ecf20Sopenharmony_ci * '9..14' : set the device resolution in RAM 1028c2ecf20Sopenharmony_ci (if supported) 1038c2ecf20Sopenharmony_ci * Anything else: do nothing 1048c2ecf20Sopenharmony_ci 1058c2ecf20Sopenharmony_ci refer to Documentation/w1/slaves/w1_therm.rst for detailed 1068c2ecf20Sopenharmony_ci information. 1078c2ecf20Sopenharmony_ciUsers: any user space application which wants to communicate with 1088c2ecf20Sopenharmony_ci w1_term device 1098c2ecf20Sopenharmony_ci 1108c2ecf20Sopenharmony_ci 1118c2ecf20Sopenharmony_ciWhat: /sys/bus/w1/devices/w1_bus_masterXX/therm_bulk_read 1128c2ecf20Sopenharmony_ciDate: May 2020 1138c2ecf20Sopenharmony_ciContact: Akira Shimahara <akira215corp@gmail.com> 1148c2ecf20Sopenharmony_ciDescription: 1158c2ecf20Sopenharmony_ci (RW) trigger a bulk read conversion. read the status 1168c2ecf20Sopenharmony_ci 1178c2ecf20Sopenharmony_ci *read*: 1188c2ecf20Sopenharmony_ci * '-1': 1198c2ecf20Sopenharmony_ci conversion in progress on at least 1 sensor 1208c2ecf20Sopenharmony_ci * '1' : 1218c2ecf20Sopenharmony_ci conversion complete but at least one sensor 1228c2ecf20Sopenharmony_ci value has not been read yet 1238c2ecf20Sopenharmony_ci * '0' : 1248c2ecf20Sopenharmony_ci no bulk operation. Reading temperature will 1258c2ecf20Sopenharmony_ci trigger a conversion on each device 1268c2ecf20Sopenharmony_ci 1278c2ecf20Sopenharmony_ci *write*: 1288c2ecf20Sopenharmony_ci 'trigger': trigger a bulk read on all supporting 1298c2ecf20Sopenharmony_ci devices on the bus 1308c2ecf20Sopenharmony_ci 1318c2ecf20Sopenharmony_ci Note that if a bulk read is sent but one sensor is not read 1328c2ecf20Sopenharmony_ci immediately, the next access to temperature on this device 1338c2ecf20Sopenharmony_ci will return the temperature measured at the time of issue 1348c2ecf20Sopenharmony_ci of the bulk read command (not the current temperature). 1358c2ecf20Sopenharmony_ciUsers: any user space application which wants to communicate with 1368c2ecf20Sopenharmony_ci w1_term device 1378c2ecf20Sopenharmony_ci 1388c2ecf20Sopenharmony_ci 1398c2ecf20Sopenharmony_ciWhat: /sys/bus/w1/devices/.../conv_time 1408c2ecf20Sopenharmony_ciDate: July 2020 1418c2ecf20Sopenharmony_ciContact: Ivan Zaentsev <ivan.zaentsev@wirenboard.ru> 1428c2ecf20Sopenharmony_ciDescription: 1438c2ecf20Sopenharmony_ci (RW) Get, set, or measure a temperature conversion time. The 1448c2ecf20Sopenharmony_ci setting remains active until a resolution change. Then it is 1458c2ecf20Sopenharmony_ci reset to default (datasheet) conversion time for a new 1468c2ecf20Sopenharmony_ci resolution. 1478c2ecf20Sopenharmony_ci 1488c2ecf20Sopenharmony_ci *read*: 1498c2ecf20Sopenharmony_ci Actual conversion time in milliseconds. 1508c2ecf20Sopenharmony_ci 1518c2ecf20Sopenharmony_ci *write*: 1528c2ecf20Sopenharmony_ci * '0': 1538c2ecf20Sopenharmony_ci Set the default conversion time from the datasheet. 1548c2ecf20Sopenharmony_ci * '1': 1558c2ecf20Sopenharmony_ci Measure and set the conversion time. Make a single 1568c2ecf20Sopenharmony_ci temperature conversion, measure an actual value. 1578c2ecf20Sopenharmony_ci Increase it by 20% for temperature range. A new 1588c2ecf20Sopenharmony_ci conversion time can be obtained by reading this 1598c2ecf20Sopenharmony_ci same attribute. 1608c2ecf20Sopenharmony_ci * other positive value: 1618c2ecf20Sopenharmony_ci Set the conversion time in milliseconds. 1628c2ecf20Sopenharmony_ci 1638c2ecf20Sopenharmony_ciUsers: An application using the w1_term device 1648c2ecf20Sopenharmony_ci 1658c2ecf20Sopenharmony_ci 1668c2ecf20Sopenharmony_ciWhat: /sys/bus/w1/devices/.../features 1678c2ecf20Sopenharmony_ciDate: July 2020 1688c2ecf20Sopenharmony_ciContact: Ivan Zaentsev <ivan.zaentsev@wirenboard.ru> 1698c2ecf20Sopenharmony_ciDescription: 1708c2ecf20Sopenharmony_ci (RW) Control optional driver settings. 1718c2ecf20Sopenharmony_ci Bit masks to read/write (bitwise OR): 1728c2ecf20Sopenharmony_ci 1738c2ecf20Sopenharmony_ci == ============================================================ 1748c2ecf20Sopenharmony_ci 1 Enable check for conversion success. If byte 6 of 1758c2ecf20Sopenharmony_ci scratchpad memory is 0xC after conversion, and 1768c2ecf20Sopenharmony_ci temperature reads 85.00 (powerup value) or 127.94 1778c2ecf20Sopenharmony_ci (insufficient power) - return a conversion error. 1788c2ecf20Sopenharmony_ci 1798c2ecf20Sopenharmony_ci 2 Enable poll for conversion completion. Generate read cycles 1808c2ecf20Sopenharmony_ci after the conversion start and wait for 1's. In parasite 1818c2ecf20Sopenharmony_ci power mode this feature is not available. 1828c2ecf20Sopenharmony_ci == ============================================================ 1838c2ecf20Sopenharmony_ci 1848c2ecf20Sopenharmony_ci *read*: 1858c2ecf20Sopenharmony_ci Currently selected features. 1868c2ecf20Sopenharmony_ci 1878c2ecf20Sopenharmony_ci *write*: 1888c2ecf20Sopenharmony_ci Select features. 1898c2ecf20Sopenharmony_ci 1908c2ecf20Sopenharmony_ciUsers: An application using the w1_term device 191