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

Linux 6.18.37 · Hardware Monitoring

Kernel driver sht21

Sensirion SHT20·SHT21·SHT25의 I2C 온습도와 전자 식별 코드를 제공합니다.

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

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

1. 요약·해설

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

요약·해설

sht21.rst:1-72

주소 0x40의 SHT2x를 기본 해상도로 측정하고 활성 듀티를 10% 이하로 제한해 자체 발열을 0.1°C 아래로 유지합니다.

문서 개요
항목
SourceDocumentation/hwmon/sht21.rst
분량72 source lines
주소0x40
측정 예초당 최대 2회

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

운영 흐름
모델 등록기본 해상도 적용온습도 측정활성 듀티 제한EIC 확인

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

2. 영어 원문 전체

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

원문 전체 펼치기
1 Kernel driver sht21
2 ===================
3
4 Supported chips:
5
6 * Sensirion SHT20
7
8 Prefix: 'sht20'
9
10 Addresses scanned: none
11
12 Datasheet: Publicly available at the Sensirion website
13
14 https://www.sensirion.com/file/datasheet_sht20
15
16 * Sensirion SHT21
17
18 Prefix: 'sht21'
19
20 Addresses scanned: none
21
22 Datasheet: Publicly available at the Sensirion website
23
24 https://www.sensirion.com/file/datasheet_sht21
25
26 * Sensirion SHT25
27
28 Prefix: 'sht25'
29
30 Addresses scanned: none
31
32 Datasheet: Publicly available at the Sensirion website
33
34 https://www.sensirion.com/file/datasheet_sht25
35
36 Author:
37
38 Urs Fleisch <urs.fleisch@sensirion.com>
39
40 Description
41 -----------
42
43 The SHT21 and SHT25 are humidity and temperature sensors in a DFN package of
44 only 3 x 3 mm footprint and 1.1 mm height. The difference between the two
45 devices is the higher level of precision of the SHT25 (1.8% relative humidity,
46 0.2 degree Celsius) compared with the SHT21 (2.0% relative humidity,
47 0.3 degree Celsius).
48
49 The devices communicate with the I2C protocol. All sensors are set to the same
50 I2C address 0x40, so an entry with I2C_BOARD_INFO("sht21", 0x40) can be used
51 in the board setup code.
52
53 sysfs-Interface
54 ---------------
55
56 =================== ============================================================
57 temp1_input Temperature input
58 humidity1_input Humidity input
59 eic Electronic Identification Code
60 =================== ============================================================
61
62 Notes
63 -----
64
65 The driver uses the default resolution settings of 12 bit for humidity and 14
66 bit for temperature, which results in typical measurement times of 22 ms for
67 humidity and 66 ms for temperature. To keep self heating below 0.1 degree
68 Celsius, the device should not be active for more than 10% of the time,
69 e.g. maximum two measurements per second at the given resolution.
70
71 Different resolutions, the on-chip heater, and using the CRC checksum
72 are not supported yet.
73

3. 한국어 전문 번역

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

Sensirion SHT20·SHT21·SHT25

1-39

`sht21` 드라이버는 Sensirion SHT20, SHT21, SHT25를 지원합니다. 각 접두사는 `sht20`, `sht21`, `sht25`이며 세 모델 모두 주소를 자동 검색하지 않습니다. 모델별 공개 데이터시트 링크가 문서에 제공됩니다.

문서 작성자는 Sensirion의 Urs Fleisch입니다.

SHT21 드라이버 지원 모델
모델접두사주소 검색데이터시트
SHT20sht20없음공개
SHT21sht21없음공개
SHT25sht25없음공개

지원 칩과 명시적 등록에 사용하는 접두사입니다.

SHT2x 등록 준비
SHT20·SHT21·SHT25 모델 확인모델별 접두사 선택I2C 버스 확인주소 0x40에 장치 등록온도·습도·식별 코드 확인

모델명을 확인하고 공통 주소 0x40에 장치를 생성합니다.

Kernel driver sht21
===================

Supported chips:

  * Sensirion SHT20

    Prefix: 'sht20'

    Addresses scanned: none

    Datasheet: Publicly available at the Sensirion website

    https://www.sensirion.com/file/datasheet_sht20

  * Sensirion SHT21

    Prefix: 'sht21'

    Addresses scanned: none

    Datasheet: Publicly available at the Sensirion website

    https://www.sensirion.com/file/datasheet_sht21

  * Sensirion SHT25

    Prefix: 'sht25'

    Addresses scanned: none

    Datasheet: Publicly available at the Sensirion website

    https://www.sensirion.com/file/datasheet_sht25

Author:

  Urs Fleisch <urs.fleisch@sensirion.com>

소형 DFN 패키지와 정밀도 차이

40-52

SHT21과 SHT25는 온도·습도 센서이며 크기 3×3 mm, 높이 1.1 mm의 DFN 패키지를 사용합니다.

SHT25의 정밀도는 상대 습도 1.8%, 온도 0.2°C이고 SHT21은 상대 습도 2.0%, 온도 0.3°C이므로 SHT25가 더 정밀합니다.

장치는 I2C 프로토콜로 통신하며 모든 센서의 주소는 `0x40`입니다. 보드 설정 코드에서 `I2C_BOARD_INFO("sht21", 0x40)`을 사용할 수 있습니다.

SHT21·SHT25 비교
항목SHT21SHT25
패키지 바닥면3×3 mm3×3 mm
높이1.1 mm1.1 mm
상대 습도 정밀도2.0%1.8%
온도 정밀도0.3°C0.2°C
I2C 주소0x400x40

패키지와 대표 정밀도를 비교합니다.

SHT2x I2C 결합
센서가 연결된 I2C 버스 확인주소 0x40 중복 여부 확인I2C_BOARD_INFO 또는 장치 트리 작성sht21 계열 드라이버 결합측정 채널 생성 확인

공통 주소를 사용하므로 버스별로 모델 인스턴스를 명시합니다.

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

The SHT21 and SHT25 are humidity and temperature sensors in a DFN package of
only 3 x 3 mm footprint and 1.1 mm height. The difference between the two
devices is the higher level of precision of the SHT25 (1.8% relative humidity,
0.2 degree Celsius) compared with the SHT21 (2.0% relative humidity,
0.3 degree Celsius).

The devices communicate with the I2C protocol. All sensors are set to the same
I2C address 0x40, so an entry with I2C_BOARD_INFO("sht21", 0x40) can be used
in the board setup code.

기본 해상도·측정 시간·자체 발열 제한

53-72

sysfs의 `temp1_input`은 온도, `humidity1_input`은 습도, `eic`는 전자 식별 코드(Electronic Identification Code)를 제공합니다.

드라이버는 기본 해상도인 습도 12비트와 온도 14비트를 사용합니다. 대표 측정 시간은 습도 22 ms, 온도 66 ms입니다.

자체 발열을 0.1°C 아래로 유지하려면 장치 활성 시간은 전체의 10%를 넘지 않아야 합니다. 현재 해상도에서는 예를 들어 초당 최대 두 번만 측정해야 합니다.

다른 해상도, 칩 내장 히터, CRC 체크섬 사용은 아직 지원되지 않습니다.

SHT21 인터페이스와 제한
항목값·상태
temp1_input온도 입력
humidity1_input습도 입력
eic전자 식별 코드
습도 해상도·시간12비트, 대표 22 ms
온도 해상도·시간14비트, 대표 66 ms
활성 듀티10% 이하
측정 빈도 예초당 최대 2회
미지원다른 해상도, 히터, CRC

기본 측정 설정과 발열 제한을 정리합니다.

자체 발열 억제 측정
습도 12비트·온도 14비트 사용습도 22 ms 측정온도 66 ms 측정활성 시간 10% 이하로 제한초당 최대 두 측정 수준으로 스케줄링

기본 해상도에서 활성 시간을 제한해 센서 가열 오차를 줄입니다.

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

=================== ============================================================
temp1_input         Temperature input
humidity1_input     Humidity input
eic                 Electronic Identification Code
=================== ============================================================

Notes
-----

The driver uses the default resolution settings of 12 bit for humidity and 14
bit for temperature, which results in typical measurement times of 22 ms for
humidity and 66 ms for temperature. To keep self heating below 0.1 degree
Celsius, the device should not be active for more than 10% of the time,
e.g. maximum two measurements per second at the given resolution.

Different resolutions, the on-chip heater, and using the CRC checksum
are not supported yet.