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

Linux 6.18.37 · Hardware Monitoring

Kernel driver ina3221

INA3221의 3채널 high-side 측정, 합산 전류 경보, 평균·변환 시간 계산입니다.

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

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

1. 요약·해설

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

요약·해설

ina3221.rst:1-74

세 전원 채널을 감시하고 shunt 저항이 같을 때 합산 전류를 제공하며 변환 주기는 C x S x (BC + SC)입니다.

문서 개요
항목
SourceDocumentation/hwmon/ina3221.rst
분량74 source lines
채널3
주소I2C 0x40-0x43

원문 분량과 핵심 기능입니다.

측정 흐름
채널 활성화Bus·shunt 변환전류·전력 계산합산·경보 게시

설정에서 hwmon 게시까지의 핵심 순서입니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 Kernel driver ina3221
2 =====================
3
4 Supported chips:
5
6 * Texas Instruments INA3221
7
8 Prefix: 'ina3221'
9
10 Addresses: I2C 0x40 - 0x43
11
12 Datasheet: Publicly available at the Texas Instruments website
13
14 https://www.ti.com/
15
16 Author: Andrew F. Davis <afd@ti.com>
17
18 Description
19 -----------
20
21 The Texas Instruments INA3221 monitors voltage, current, and power on the high
22 side of up to three D.C. power supplies. The INA3221 monitors both shunt drop
23 and supply voltage, with programmable conversion times and averaging, current
24 and power are calculated host-side from these.
25
26 Sysfs entries
27 -------------
28
29 ======================= =======================================================
30 in[123]_label Voltage channel labels
31 in[123]_enable Voltage channel enable controls
32 in[123]_input Bus voltage(mV) channels
33 curr[123]_input Current(mA) measurement channels
34 shunt[123]_resistor Shunt resistance(uOhm) channels
35 curr[123]_crit Critical alert current(mA) setting, activates the
36 corresponding alarm when the respective current
37 is above this value
38 curr[123]_crit_alarm Critical alert current limit exceeded
39 curr[123]_max Warning alert current(mA) setting, activates the
40 corresponding alarm when the respective current
41 average is above this value.
42 curr[123]_max_alarm Warning alert current limit exceeded
43 in[456]_input Shunt voltage(uV) for channels 1, 2, and 3 respectively
44 in7_input Sum of shunt voltage(uV) channels
45 in7_label Channel label for sum of shunt voltage
46 curr4_input Sum of current(mA) measurement channels,
47 (only available when all channels use the same resistor
48 value for their shunt resistors)
49 curr4_crit Critical alert current(mA) setting for sum of current
50 measurements, activates the corresponding alarm
51 when the respective current is above this value
52 (only effective when all channels use the same resistor
53 value for their shunt resistors)
54 curr4_crit_alarm Critical alert current limit exceeded for sum of
55 current measurements.
56 samples Number of samples using in the averaging mode.
57
58 Supports the list of number of samples:
59
60 1, 4, 16, 64, 128, 256, 512, 1024
61
62 update_interval Data conversion time in millisecond, following:
63
64 update_interval = C x S x (BC + SC)
65
66 * C: number of enabled channels
67 * S: number of samples
68 * BC: bus-voltage conversion time in millisecond
69 * SC: shunt-voltage conversion time in millisecond
70
71 Affects both Bus- and Shunt-voltage conversion time.
72 Note that setting update_interval to 0ms sets both BC
73 and SC to 140 us (minimum conversion time).
74 ======================= =======================================================
75

3. 한국어 전문 번역

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

INA3221 3채널 high-side 모니터

1-25

`ina3221` 드라이버는 Texas Instruments INA3221을 지원합니다. I2C 주소 범위는 `0x40`부터 `0x43`, 접두사는 `ina3221`이며 데이터시트는 TI 웹사이트에서 공개됩니다. 작성자는 Andrew F. Davis입니다.

INA3221은 최대 세 개의 직류 전원 공급 장치 high side에서 전압, 전류, 전력을 감시합니다. Shunt 전압 강하와 전원 전압을 측정하고 변환 시간과 평균을 프로그래밍할 수 있습니다. 전류와 전력은 이 측정값을 사용해 호스트에서 계산합니다.

INA3221 기본 정보
항목
Texas Instruments INA3221
접두사ina3221
주소I2C 0x40-0x43
채널최대 3개 high-side DC supply
직접 측정Shunt drop·supply voltage
호스트 계산Current·power

3채널 측정 범위와 계산 위치를 정리했습니다.

INA3221 측정 경로
활성 채널 선택Bus·shunt 전압 변환샘플 평균Shunt 저항으로 전류 계산호스트에서 전력 계산

세 채널의 전압 측정으로 전류와 전력을 계산합니다.

Kernel driver ina3221
=====================

Supported chips:

  * Texas Instruments INA3221

    Prefix: 'ina3221'

    Addresses: I2C 0x40 - 0x43

    Datasheet: Publicly available at the Texas Instruments website

               https://www.ti.com/

Author: Andrew F. Davis <afd@ti.com>

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

The Texas Instruments INA3221 monitors voltage, current, and power on the high
side of up to three D.C. power supplies. The INA3221 monitors both shunt drop
and supply voltage, with programmable conversion times and averaging, current
and power are calculated host-side from these.

채널별 전압·전류와 합산 경보

26-55

채널 1~3에는 레이블 `in[123]_label`, 활성화 제어 `in[123]_enable`, mV 단위 bus 전압 `in[123]_input`, mA 단위 전류 `curr[123]_input`, uOhm 단위 shunt 저항 `shunt[123]_resistor`가 있습니다.

각 채널의 `curr[123]_crit`는 전류가 값을 넘을 때 critical 경보를 발생시키고 `curr[123]_crit_alarm`이 초과 상태를 나타냅니다. `curr[123]_max`는 평균 전류가 값을 넘을 때 warning 경보를 발생시키며 `curr[123]_max_alarm`이 그 상태를 나타냅니다.

`in[456]_input`은 채널 1·2·3의 shunt 전압을 각각 uV로 제공합니다. `in7_input`과 `in7_label`은 shunt 전압 합계와 레이블입니다. `curr4_input`은 세 전류 측정값 합계지만 모든 채널의 shunt 저항값이 같을 때만 사용할 수 있습니다.

`curr4_crit`와 `curr4_crit_alarm`은 합산 전류의 critical 한계와 초과 경보입니다. 이 합산 임계 기능도 모든 채널이 같은 shunt 저항값을 사용할 때만 유효합니다.

INA3221 채널 속성
범위속성의미·조건
채널 1-3in[123]_label / in[123]_enable / in[123]_input레이블·활성화·bus 전압 mV
채널 1-3curr[123]_input / shunt[123]_resistor전류 mA·shunt 저항 uOhm
Criticalcurr[123]_crit / curr[123]_crit_alarm현재 전류 상한과 초과 경보
Warningcurr[123]_max / curr[123]_max_alarm평균 전류 상한과 초과 경보
Shuntin[456]_input채널 1-3 shunt 전압 uV
합산 전압in7_input / in7_labelShunt 전압 합계와 레이블
합산 전류curr4_input동일 shunt 저항일 때만 가능
합산 경보curr4_crit / curr4_crit_alarm동일 shunt 저항일 때만 유효

개별 채널과 합산 채널의 조건을 구조화했습니다.

합산 채널 사용
세 shunt 저항값 비교동일하면 curr4 합산 활성채널별 전류 합산curr4_crit와 비교초과 시 curr4_crit_alarm 설정

세 채널의 shunt 저항이 같을 때만 전류 합산과 경보가 정확합니다.

Sysfs entries
-------------

======================= =======================================================
in[123]_label           Voltage channel labels
in[123]_enable          Voltage channel enable controls
in[123]_input           Bus voltage(mV) channels
curr[123]_input         Current(mA) measurement channels
shunt[123]_resistor     Shunt resistance(uOhm) channels
curr[123]_crit          Critical alert current(mA) setting, activates the
                        corresponding alarm when the respective current
                        is above this value
curr[123]_crit_alarm    Critical alert current limit exceeded
curr[123]_max           Warning alert current(mA) setting, activates the
                        corresponding alarm when the respective current
                        average is above this value.
curr[123]_max_alarm     Warning alert current limit exceeded
in[456]_input           Shunt voltage(uV) for channels 1, 2, and 3 respectively
in7_input               Sum of shunt voltage(uV) channels
in7_label               Channel label for sum of shunt voltage
curr4_input             Sum of current(mA) measurement channels,
                        (only available when all channels use the same resistor
                        value for their shunt resistors)
curr4_crit              Critical alert current(mA) setting for sum of current
                        measurements, activates the corresponding alarm
                        when the respective current is above this value
                        (only effective when all channels use the same resistor
                        value for their shunt resistors)
curr4_crit_alarm        Critical alert current limit exceeded for sum of
                        current measurements.

샘플 평균과 update_interval 계산

56-74

`samples`는 평균 모드에서 사용하는 샘플 수입니다. 지원값은 `1, 4, 16, 64, 128, 256, 512, 1024`입니다.

`update_interval`은 millisecond 단위 데이터 변환 시간이며 `update_interval = C x S x (BC + SC)`로 계산합니다. `C`는 활성 채널 수, `S`는 샘플 수, `BC`는 millisecond 단위 bus 전압 변환 시간, `SC`는 millisecond 단위 shunt 전압 변환 시간입니다.

이 설정은 bus 전압과 shunt 전압 변환 시간 양쪽에 영향을 줍니다. `update_interval`을 0ms로 설정하면 `BC`와 `SC`가 모두 최소 변환 시간인 140us로 설정됩니다.

INA3221 갱신 시간 인자
기호·속성의미
samples1·4·16·64·128·256·512·1024
C활성 채널 수
S샘플 수
BCBus-voltage conversion time, ms
SCShunt-voltage conversion time, ms
update_intervalC x S x (BC + SC), ms
0ms 설정BC와 SC를 각각 140us로 설정

원문의 계산식과 지원 샘플 수를 보존했습니다.

갱신 간격 산정
활성 채널 수 C 결정지원 샘플 수 S 선택BC와 SC 설정C x S x (BC + SC) 계산0ms 요청은 BC·SC 140us 적용

채널 수, 평균 샘플 수, 두 변환 시간을 곱해 전체 주기를 구합니다.

samples                 Number of samples using in the averaging mode.

                        Supports the list of number of samples:

                          1, 4, 16, 64, 128, 256, 512, 1024

update_interval         Data conversion time in millisecond, following:

                          update_interval = C x S x (BC + SC)

                          * C:        number of enabled channels
                          * S:        number of samples
                          * BC:        bus-voltage conversion time in millisecond
                          * SC:        shunt-voltage conversion time in millisecond

                        Affects both Bus- and Shunt-voltage conversion time.
                        Note that setting update_interval to 0ms sets both BC
                        and SC to 140 us (minimum conversion time).
======================= =======================================================