← Documents Documentation/hwmon/sht3x.rst GitHub 원문 ↗

Linux 6.18.37 · Hardware Monitoring

Kernel driver sht3x

SHT3x·STS3x의 단발·주기 측정, 한계 경보, 히터, 반복성, 일련번호를 지원합니다.

Source pathDocumentation/hwmon/sht3x.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약·해설

sht3x.rst:1-112

비차단 단발 모드와 0.5~10 Hz 주기 모드를 선택하고 온습도 한계·히스테리시스·경보와 측정 반복성을 제어합니다.

문서 개요
항목
SourceDocumentation/hwmon/sht3x.rst
분량112 source lines
주기단발·0.5·1·2·4·10 Hz
1000배 스케일

원문 분량과 핵심 장치 구성을 정리합니다.

운영 흐름
제품군·주소 확인측정 모드 선택한계·히스테리시스 설정경보·히터 확인일련번호 식별

장치 식별부터 측정값 확인까지의 핵심 순서입니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 Kernel driver sht3x
2 ===================
3
4 Supported chips:
5
6 * Sensirion SHT3x-DIS
7
8 Prefix: 'sht3x'
9
10 Addresses scanned: none
11
12 Datasheets:
13 - https://sensirion.com/media/documents/213E6A3B/63A5A569/Datasheet_SHT3x_DIS.pdf
14 - https://sensirion.com/media/documents/051DF50B/639C8101/Sensirion_Humidity_and_Temperature_Sensors_Datasheet_SHT33.pdf
15
16 * Sensirion STS3x-DIS
17
18 Prefix: 'sts3x'
19
20 Addresses scanned: none
21
22 Datasheets:
23 - https://sensirion.com/media/documents/1DA31AFD/61641F76/Sensirion_Temperature_Sensors_STS3x_Datasheet.pdf
24 - https://sensirion.com/media/documents/292A335C/65537BAF/Sensirion_Datasheet_STS32_STS33.pdf
25
26 Author:
27
28 - David Frey <[email protected]>
29 - Pascal Sachs <[email protected]>
30
31 Description
32 -----------
33
34 This driver implements support for the Sensirion SHT3x-DIS and STS3x-DIS
35 series of humidity and temperature sensors. Temperature is measured in degrees
36 celsius, relative humidity is expressed as a percentage. In the sysfs interface,
37 all values are scaled by 1000, i.e. the value for 31.5 degrees celsius is 31500.
38
39 The device communicates with the I2C protocol. Sensors can have the I2C
40 addresses 0x44 or 0x45 (0x4a or 0x4b for sts3x), depending on the wiring. See
41 Documentation/i2c/instantiating-devices.rst for methods to instantiate the
42 device.
43
44 Even if sht3x sensor supports clock-stretch (blocking mode) and non-stretch
45 (non-blocking mode) in single-shot mode, this driver only supports the latter.
46
47 The sht3x sensor supports a single shot mode as well as 5 periodic measure
48 modes, which can be controlled with the update_interval sysfs interface.
49 The allowed update_interval in milliseconds are as follows:
50
51 ===== ======= ====================
52 0 single shot mode
53 2000 0.5 Hz periodic measurement
54 1000 1 Hz periodic measurement
55 500 2 Hz periodic measurement
56 250 4 Hz periodic measurement
57 100 10 Hz periodic measurement
58 ===== ======= ====================
59
60 In the periodic measure mode, the sensor automatically triggers a measurement
61 with the configured update interval on the chip. When a temperature or humidity
62 reading exceeds the configured limits, the alert attribute is set to 1 and
63 the alert pin on the sensor is set to high.
64 When the temperature and humidity readings move back between the hysteresis
65 values, the alert bit is set to 0 and the alert pin on the sensor is set to
66 low.
67
68 The serial number exposed to debugfs allows for unique identification of the
69 sensors. For sts32, sts33 and sht33, the manufacturer provides calibration
70 certificates through an API.
71
72 sysfs-Interface
73 ---------------
74
75 =================== ============================================================
76 temp1_input: temperature input
77 humidity1_input: humidity input
78 temp1_max: temperature max value
79 temp1_max_hyst: temperature hysteresis value for max limit
80 humidity1_max: humidity max value
81 humidity1_max_hyst: humidity hysteresis value for max limit
82 temp1_min: temperature min value
83 temp1_min_hyst: temperature hysteresis value for min limit
84 humidity1_min: humidity min value
85 humidity1_min_hyst: humidity hysteresis value for min limit
86 temp1_alarm: alarm flag is set to 1 if the temperature is outside the
87 configured limits. Alarm only works in periodic measure mode
88 humidity1_alarm: alarm flag is set to 1 if the humidity is outside the
89 configured limits. Alarm only works in periodic measure mode
90 heater_enable: heater enable, heating element removes excess humidity from
91 sensor:
92
93 - 0: turned off
94 - 1: turned on
95 update_interval: update interval, 0 for single shot, interval in msec
96 for periodic measurement. If the interval is not supported
97 by the sensor, the next faster interval is chosen
98 repeatability: write or read repeatability, higher repeatability means
99 longer measurement duration, lower noise level and
100 larger energy consumption:
101
102 - 0: low repeatability
103 - 1: medium repeatability
104 - 2: high repeatability
105 =================== ============================================================
106
107 debugfs-Interface
108 -----------------
109
110 =================== ============================================================
111 serial_number: unique serial number of the sensor in decimal
112 =================== ============================================================
113

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

SHT3x-DIS·STS3x-DIS 제품군

1-30

`sht3x` 드라이버는 Sensirion SHT3x-DIS 온습도 센서와 STS3x-DIS 온도 센서를 지원합니다. 각 접두사는 `sht3x`와 `sts3x`이고 주소 자동 검색은 하지 않습니다.

문서에는 SHT3x-DIS·SHT33과 STS3x·STS32·STS33의 데이터시트 링크가 제공됩니다. 작성자는 David Frey와 Pascal Sachs입니다.

SHT3x 드라이버 제품군
제품군접두사측정주소 검색
SHT3x-DIS·SHT33sht3x온도·상대 습도없음
STS3x-DIS·STS32·STS33sts3x온도없음

센서 종류와 접두사, 제공 자료를 구분합니다.

SHT3x 계열 선택
SHT 또는 STS 모델 확인sht3x 또는 sts3x 접두사 선택주소 선택 핀 배선 확인I2C 장치 명시적 생성지원 센서 채널 확인

습도 필요 여부와 배선 주소에 맞춰 제품군을 등록합니다.

Kernel driver sht3x
===================

Supported chips:

  * Sensirion SHT3x-DIS

    Prefix: 'sht3x'

    Addresses scanned: none

    Datasheets:
        - https://sensirion.com/media/documents/213E6A3B/63A5A569/Datasheet_SHT3x_DIS.pdf
        - https://sensirion.com/media/documents/051DF50B/639C8101/Sensirion_Humidity_and_Temperature_Sensors_Datasheet_SHT33.pdf

  * Sensirion STS3x-DIS

    Prefix: 'sts3x'

    Addresses scanned: none

    Datasheets:
        - https://sensirion.com/media/documents/1DA31AFD/61641F76/Sensirion_Temperature_Sensors_STS3x_Datasheet.pdf
        - https://sensirion.com/media/documents/292A335C/65537BAF/Sensirion_Datasheet_STS32_STS33.pdf

Author:

  - David Frey <[email protected]>
  - Pascal Sachs <[email protected]>

값 배율·I2C 주소·비차단 단발 측정

31-48

SHT3x-DIS는 온도와 상대 습도를, STS3x-DIS는 온도를 측정합니다. 온도는 섭씨, 상대 습도는 백분율로 정의되며 sysfs에서는 모든 값을 1000배로 표시합니다. 따라서 31.5°C는 `31500`입니다.

SHT3x 센서 주소는 배선에 따라 `0x44` 또는 `0x45`이고 STS3x는 `0x4a` 또는 `0x4b`입니다. 장치 생성 방법은 `Documentation/i2c/instantiating-devices.rst`를 참고합니다.

SHT3x는 단발 측정에서 클록 스트레치 기반 차단 모드와 비스트레치 비차단 모드를 모두 지원하지만 이 드라이버는 비차단 모드만 지원합니다.

SHT3x 통신 특성
제품군I2C 주소sysfs 배율단발 모드
SHT3x0x44 또는 0x45×1000비스트레치·비차단만 지원
STS3x0x4a 또는 0x4b×1000비스트레치·비차단

제품군별 I2C 주소와 사용자 공간 값 표현입니다.

비차단 단발 측정
비스트레치 단발 명령 전송I2C 버스 해제측정 완료 시간 대기온도·습도 결과 판독1000배 sysfs 값으로 변환

명령 후 버스를 놓고 변환 완료 시점에 값을 가져옵니다.

Description
-----------

This driver implements support for the Sensirion SHT3x-DIS and STS3x-DIS
series of humidity and temperature sensors. Temperature is measured in degrees
celsius, relative humidity is expressed as a percentage. In the sysfs interface,
all values are scaled by 1000, i.e. the value for 31.5 degrees celsius is 31500.

The device communicates with the I2C protocol. Sensors can have the I2C
addresses 0x44 or 0x45 (0x4a or 0x4b for sts3x), depending on the wiring. See
Documentation/i2c/instantiating-devices.rst for methods to instantiate the
device.

Even if sht3x sensor supports clock-stretch (blocking mode) and non-stretch
(non-blocking mode) in single-shot mode, this driver only supports the latter.

The sht3x sensor supports a single shot mode as well as 5 periodic measure
modes, which can be controlled with the update_interval sysfs interface.

측정 주기와 히스테리시스 경보

49-71

센서는 단발 모드와 다섯 가지 주기 측정 모드를 지원하며 `update_interval`로 제어합니다. 허용 값은 0, 2000, 1000, 500, 250, 100 ms이고 각각 단발, 0.5, 1, 2, 4, 10 Hz에 대응합니다.

주기 모드에서는 칩이 설정한 간격마다 측정을 자동으로 시작합니다. 온도나 습도가 설정 한계를 넘으면 해당 alarm 속성이 1이 되고 센서 alert 핀이 high가 됩니다.

온도와 습도가 히스테리시스 값 사이로 돌아오면 alarm 비트는 0이 되고 alert 핀은 low로 내려갑니다.

debugfs에 노출되는 일련번호는 센서를 고유하게 식별합니다. STS32, STS33, SHT33은 제조사가 API를 통해 보정 인증서를 제공합니다.

SHT3x 업데이트 간격
update_interval주파수모드
0 ms-단발 측정
2000 ms0.5 Hz주기 측정
1000 ms1 Hz주기 측정
500 ms2 Hz주기 측정
250 ms4 Hz주기 측정
100 ms10 Hz주기 측정

허용된 밀리초 값과 측정 모드·주파수입니다.

주기 측정 경보
update_interval로 주기 선택칩이 온도·습도 자동 측정설정 한계 초과 시 alarm=1·alert=high히스테리시스 범위로 복귀alarm=0·alert=low

한계 초과와 히스테리시스 복귀가 alarm 비트와 핀을 함께 제어합니다.

The allowed update_interval in milliseconds are as follows:

    ===== ======= ====================
       0          single shot mode
    2000   0.5 Hz periodic measurement
    1000   1   Hz periodic measurement
     500   2   Hz periodic measurement
     250   4   Hz periodic measurement
     100  10   Hz periodic measurement
    ===== ======= ====================

In the periodic measure mode, the sensor automatically triggers a measurement
with the configured update interval on the chip. When a temperature or humidity
reading exceeds the configured limits, the alert attribute is set to 1 and
the alert pin on the sensor is set to high.
When the temperature and humidity readings move back between the hysteresis
values, the alert bit is set to 0 and the alert pin on the sensor is set to
low.

The serial number exposed to debugfs allows for unique identification of the
sensors. For sts32, sts33 and sht33, the manufacturer provides calibration
certificates through an API.

한계·경보·히터·반복성 sysfs

72-105

`temp1_input`과 `humidity1_input`은 현재 온도와 습도입니다. 최대 한계는 `temp1_max`, `humidity1_max`, 최대 한계의 복귀 히스테리시스는 `temp1_max_hyst`, `humidity1_max_hyst`로 설정합니다.

최소 한계는 `temp1_min`, `humidity1_min`, 최소 한계 히스테리시스는 `temp1_min_hyst`, `humidity1_min_hyst`입니다.

`temp1_alarm`과 `humidity1_alarm`은 측정값이 설정 한계 밖이면 1이 됩니다. 이 경보는 주기 측정 모드에서만 동작합니다.

`heater_enable`은 센서의 과도한 습기를 제거하는 히터를 제어하며 0은 끔, 1은 켬입니다. `update_interval`은 0이면 단발 모드이고 주기 모드에서는 밀리초 간격입니다. 지원하지 않는 값을 쓰면 그보다 빠른 다음 지원 간격을 선택합니다.

`repeatability`는 반복성·측정 시간·잡음·에너지 소비의 절충을 정합니다. 0은 낮은 반복성, 1은 중간, 2는 높은 반복성입니다. 반복성이 높을수록 측정 시간과 에너지 소비가 늘고 잡음은 줄어듭니다.

SHT3x sysfs 속성
속성군속성동작
측정temp1_input, humidity1_input현재 온도·습도
최대 한계temp1_max, humidity1_max상한
최대 히스테리시스temp1_max_hyst, humidity1_max_hyst상한 경보 복귀점
최소 한계temp1_min, humidity1_min하한
최소 히스테리시스temp1_min_hyst, humidity1_min_hyst하한 경보 복귀점
경보temp1_alarm, humidity1_alarm주기 모드에서만 동작
히터heater_enable0=끔, 1=켬
주기update_interval0=단발, 그 외 밀리초
반복성repeatability0=낮음, 1=중간, 2=높음

측정·한계·경보·히터·주기·반복성 제어를 분류합니다.

SHT3x 운영값 적용
update_interval과 repeatability 선택온도·습도 min·max와 히스테리시스 설정필요하면 heater_enable 활성화측정값과 alarm 판독에너지·잡음·응답 시간 균형 재조정

측정 주기와 품질, 한계, 히터를 서로의 제약에 맞춰 설정합니다.

sysfs-Interface
---------------

=================== ============================================================
temp1_input:        temperature input
humidity1_input:    humidity input
temp1_max:          temperature max value
temp1_max_hyst:     temperature hysteresis value for max limit
humidity1_max:      humidity max value
humidity1_max_hyst: humidity hysteresis value for max limit
temp1_min:          temperature min value
temp1_min_hyst:     temperature hysteresis value for min limit
humidity1_min:      humidity min value
humidity1_min_hyst: humidity hysteresis value for min limit
temp1_alarm:        alarm flag is set to 1 if the temperature is outside the
                    configured limits. Alarm only works in periodic measure mode
humidity1_alarm:    alarm flag is set to 1 if the humidity is outside the
                    configured limits. Alarm only works in periodic measure mode
heater_enable:      heater enable, heating element removes excess humidity from
                    sensor:

                        - 0: turned off
                        - 1: turned on
update_interval:    update interval, 0 for single shot, interval in msec
                    for periodic measurement. If the interval is not supported
                    by the sensor, the next faster interval is chosen
repeatability:      write or read repeatability, higher repeatability means
                    longer measurement duration, lower noise level and
                    larger energy consumption:

                        - 0: low repeatability
                        - 1: medium repeatability
                        - 2: high repeatability
=================== ============================================================

고유 일련번호 debugfs

106-112

debugfs의 `serial_number`는 센서의 고유 일련번호를 십진수로 제공합니다. 이 값으로 동일 모델의 여러 센서를 구분하고 보정 인증서 API의 대상 장치를 식별할 수 있습니다.

SHT3x debugfs 속성
속성형식의미
serial_number십진수센서 고유 일련번호

진단용 고유 식별 값입니다.

센서 고유 식별
debugfs에서 sht3x 장치 찾기serial_number 판독십진수 일련번호 기록물리 센서 위치와 대응지원 모델은 보정 인증서 API 조회

일련번호를 읽어 물리 센서와 보정 자료를 연결합니다.


debugfs-Interface
-----------------

=================== ============================================================
serial_number:      unique serial number of the sensor in decimal
=================== ============================================================