From ae225d53958fb8a736b751c881806ecb4ca1dbdb Mon Sep 17 00:00:00 2001 From: Missing Date: Thu, 12 Sep 2024 15:50:57 +0800 Subject: [PATCH] =?UTF-8?q?fix=20(=20script=20:=20nicsensor.sh)=20?= =?UTF-8?q?=E5=8E=BB=E6=8E=89unicode=E5=AD=97=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 02.nicsensor/nicsensor.sh | 2 +- 02.nicsensor/readme.txt | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/02.nicsensor/nicsensor.sh b/02.nicsensor/nicsensor.sh index 163aa99..fe02143 100644 --- a/02.nicsensor/nicsensor.sh +++ b/02.nicsensor/nicsensor.sh @@ -188,7 +188,7 @@ set_configuration_5468m7(){ fi } -# 根据输入信息调整选通芯片的配置(PCA9641 PCA9548) +# 根据输入信息调整选通芯片的配置(PCA9641 PCA9548) # 20240912 - 更新脚本:支持通过服务器型号进行配置 set_configuration(){ diff --git a/02.nicsensor/readme.txt b/02.nicsensor/readme.txt index 121e6ea..734f4b5 100644 --- a/02.nicsensor/readme.txt +++ b/02.nicsensor/readme.txt @@ -3,19 +3,19 @@ 一、脚本使用方法 V1.1 - 1、针对不同项目,请先修改脚本中的部分变量(ADC128电压传感器的分压系数,INA3221的分流精密电阻阻值) + 1、针对不同项目,请先修改脚本中的部分变量(ADC128电压传感器的分压系数,INA3221的分流精密电阻阻值) 针对不同服务器产品,请对应修改server_type变量 2、为脚本增加可执行权限 chmod +x ./nicsensor.sh 3、脚本命令格式 ./nicsensor.sh - 参数说明: + 参数说明: pcie_slot : 网卡所在的PCIE槽位, 填数字0,1,2,3,4,5 chip_type : 传感器芯片的类型, emc1413,adc128,ina3221 chip_slave: 传感器芯片的I2C地址(7bit) - 举例说明:读取PCIE 1 上网卡的adc128芯片, 芯片slave地址为0x1f + 举例说明:读取PCIE 1 上网卡的adc128芯片, 芯片slave地址为0x1f ./nicsensor.sh 1 adc128 0x1f 4、特殊命令 @@ -26,14 +26,14 @@ 4.2 读取fru信息 - 命令: ./nicsensor.sh fru read - 举例说明:读取Ravel板卡的EEPROM中的FRU(0x57) + 命令: ./nicsensor.sh fru read + 举例说明:读取Ravel板卡的EEPROM中的FRU(0x57) - ./nicsensor.sh 5 fru 0x57 read 4.3 读取芯片寄存器 - 命令: ./nicsensor.sh chip - 举例说明:读取cpld的寄存器 0x00 ,读2个byte + 命令: ./nicsensor.sh chip + 举例说明: 读取cpld的寄存器 0x00 ,读2个byte - ./nicsensor.sh 5 chip 0x10 "i2ctransfer -y 13 w1@0x10 0x00 r2" 5、DEBUG模式