요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
.. SPDX-License-Identifier: GPL-2.0
Kernel driver aht10
=====================
Supported chips:
* Aosong AHT10/AHT20
Prefix: 'aht10'
Addresses scanned: None
Datasheet(AHT10):
Chinese: http://www.aosong.com/userfiles/files/media/AHT10%E4%BA%A7%E5%93%81%E6%89%8B%E5%86%8C%20A3%2020201210.pdf
English: https://server4.eca.ir/eshop/AHT10/Aosong_AHT10_en_draft_0c.pdf
Datasheet(AHT20):
English: http://www.aosong.com/userfiles/files/media/Data%20Sheet%20AHT20.pdf
* Aosong DHT20
Prefix: 'dht20'
Addresses scanned: None
Datasheet: https://www.digikey.co.nz/en/htmldatasheets/production/9184855/0/0/1/101020932
Author: Johannes Cornelis Draaijer <jcdra1@gmail.com>
Description
-----------
The AHT10/AHT20 is a Temperature and Humidity sensor
The address of this i2c device may only be 0x38
Special Features
----------------
AHT20, DHT20 has additional CRC8 support which is sent as the last byte of the sensor
values.
Usage Notes
-----------
This driver does not probe for AHT10/ATH20 devices, as there is no reliable
way to determine if an i2c chip is or isn't an AHT10/AHT20. The device has
to be instantiated explicitly with the address 0x38. See
Documentation/i2c/instantiating-devices.rst for details.
Sysfs entries
-------------
=============== ============================================
temp1_input Measured temperature in millidegrees Celsius
humidity1_input Measured humidity in %H
update_interval The minimum interval for polling the sensor,
in milliseconds. Writable. Must be at
least 2000.
=============== ============================================
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
AHT10, AHT20, DHT20 지원
1-33이 GPL-2.0 문서의 driver는 Aosong `AHT10`과 `AHT20`을 prefix `aht10`으로 지원합니다. 주소는 검색하지 않으며 문서에는 AHT10의 중국어·영어 데이터시트와 AHT20의 영어 데이터시트 URL이 제공됩니다.
Aosong `DHT20`은 prefix `dht20`으로 지원합니다. 이 모델도 주소를 검색하지 않으며 DigiKey에 게시된 데이터시트 URL이 제공됩니다. 저자는 Johannes Cornelis Draaijer입니다.
모델, prefix, 주소 검색 정책을 정리합니다.
자동 검색 대신 확실한 board 정보를 사용합니다.
.. SPDX-License-Identifier: GPL-2.0
Kernel driver aht10
=====================
Supported chips:
* Aosong AHT10/AHT20
Prefix: 'aht10'
Addresses scanned: None
Datasheet(AHT10):
Chinese: http://www.aosong.com/userfiles/files/media/AHT10%E4%BA%A7%E5%93%81%E6%89%8B%E5%86%8C%20A3%2020201210.pdf
English: https://server4.eca.ir/eshop/AHT10/Aosong_AHT10_en_draft_0c.pdf
Datasheet(AHT20):
English: http://www.aosong.com/userfiles/files/media/Data%20Sheet%20AHT20.pdf
* Aosong DHT20
Prefix: 'dht20'
Addresses scanned: None
Datasheet: https://www.digikey.co.nz/en/htmldatasheets/production/9184855/0/0/1/101020932
Author: Johannes Cornelis Draaijer <jcdra1@gmail.com>
온습도 측정과 명시적 등록
34-53AHT10/AHT20은 temperature and humidity sensor입니다. 이 I2C 장치가 사용할 수 있는 주소는 `0x38`뿐입니다.
AHT20과 DHT20은 sensor value의 마지막 byte로 전송되는 추가 `CRC8` 검증을 지원합니다.
어떤 I2C chip이 AHT10/AHT20인지 신뢰성 있게 판별할 방법이 없으므로 driver는 AHT10/AHT20 장치를 probe하지 않습니다. 장치는 주소 `0x38`로 명시적으로 instantiate해야 합니다. 자세한 방법은 `Documentation/i2c/instantiating-devices.rst`를 참고합니다. 원문 50행의 `ATH20` 표기는 AHT20을 가리킵니다.
공통 주소와 모델별 무결성 검사를 보여 줍니다.
AHT20과 DHT20은 마지막 byte로 CRC8을 검증합니다.
Description
-----------
The AHT10/AHT20 is a Temperature and Humidity sensor
The address of this i2c device may only be 0x38
Special Features
----------------
AHT20, DHT20 has additional CRC8 support which is sent as the last byte of the sensor
values.
Usage Notes
-----------
This driver does not probe for AHT10/ATH20 devices, as there is no reliable
way to determine if an i2c chip is or isn't an AHT10/AHT20. The device has
to be instantiated explicitly with the address 0x38. See
Documentation/i2c/instantiating-devices.rst for details.
AHT10 sysfs 항목
54-64`temp1_input`은 측정 temperature를 millidegrees Celsius 단위로 제공합니다. `humidity1_input`은 측정 humidity를 `%H` 단위로 제공합니다.
`update_interval`은 sensor를 polling하는 minimum interval을 millisecond 단위로 나타냅니다. 이 attribute는 writable이며 최소 `2000`이어야 합니다.
측정값 단위와 polling 제약입니다.
너무 잦은 센서 접근을 막도록 최소값을 검증합니다.
Sysfs entries
-------------
=============== ============================================
temp1_input Measured temperature in millidegrees Celsius
humidity1_input Measured humidity in %H
update_interval The minimum interval for polling the sensor,
in milliseconds. Writable. Must be at
least 2000.
=============== ============================================
요약·해설
aht10.rst:1-64고정 주소 0x38의 온습도 센서를 명시적으로 등록하고, AHT20/DHT20의 CRC8과 최소 polling interval을 적용합니다.
원문 분량과 핵심 지원 범위입니다.
장치를 구성하고 측정·제어하는 기본 순서입니다.