fix ( script : nicsensor.sh) 去掉unicode字符

This commit is contained in:
Missing 2024-09-12 15:50:57 +08:00
parent 9c62eeb8b6
commit ae225d5395
2 changed files with 8 additions and 8 deletions

@ -188,7 +188,7 @@ set_configuration_5468m7(){
fi fi
} }
# 根据输入信息调整选通芯片的配置PCA9641 PCA9548 # 根据输入信息调整选通芯片的配置(PCA9641 PCA9548)
# 20240912 - 更新脚本:支持通过服务器型号进行配置 # 20240912 - 更新脚本:支持通过服务器型号进行配置
set_configuration(){ set_configuration(){

@ -3,19 +3,19 @@
一、脚本使用方法 V1.1 一、脚本使用方法 V1.1
1、针对不同项目请先修改脚本中的部分变量ADC128电压传感器的分压系数,INA3221的分流精密电阻阻值 1、针对不同项目请先修改脚本中的部分变量(ADC128电压传感器的分压系数,INA3221的分流精密电阻阻值)
针对不同服务器产品,请对应修改server_type变量 针对不同服务器产品,请对应修改server_type变量
2、为脚本增加可执行权限 chmod +x ./nicsensor.sh 2、为脚本增加可执行权限 chmod +x ./nicsensor.sh
3、脚本命令格式 ./nicsensor.sh <pcie_slot> <chip_type> <chip_slave> 3、脚本命令格式 ./nicsensor.sh <pcie_slot> <chip_type> <chip_slave>
参数说明 参数说明:
pcie_slot : 网卡所在的PCIE槽位, 填数字0,1,2,3,4,5 pcie_slot : 网卡所在的PCIE槽位, 填数字0,1,2,3,4,5
chip_type : 传感器芯片的类型, emc1413,adc128,ina3221 chip_type : 传感器芯片的类型, emc1413,adc128,ina3221
chip_slave: 传感器芯片的I2C地址(7bit) chip_slave: 传感器芯片的I2C地址(7bit)
举例说明读取PCIE 1 上网卡的adc128芯片, 芯片slave地址为0x1f 举例说明:读取PCIE 1 上网卡的adc128芯片, 芯片slave地址为0x1f
./nicsensor.sh 1 adc128 0x1f ./nicsensor.sh 1 adc128 0x1f
4、特殊命令 4、特殊命令
@ -26,14 +26,14 @@
4.2 读取fru信息 4.2 读取fru信息
命令 ./nicsensor.sh <pcie_slot> fru <chip_slave> read 命令: ./nicsensor.sh <pcie_slot> fru <chip_slave> read
举例说明读取Ravel板卡的EEPROM中的FRU0x57 举例说明:读取Ravel板卡的EEPROM中的FRU0x57
- ./nicsensor.sh 5 fru 0x57 read - ./nicsensor.sh 5 fru 0x57 read
4.3 读取芯片寄存器 4.3 读取芯片寄存器
命令 ./nicsensor.sh <pcie_slot> chip <chip_slave> <i2c_cmd> 命令: ./nicsensor.sh <pcie_slot> chip <chip_slave> <i2c_cmd>
举例说明读取cpld的寄存器 0x00 ,读2个byte 举例说明: 读取cpld的寄存器 0x00 ,读2个byte
- ./nicsensor.sh 5 chip 0x10 "i2ctransfer -y 13 w1@0x10 0x00 r2" - ./nicsensor.sh 5 chip 0x10 "i2ctransfer -y 13 w1@0x10 0x00 r2"
5、DEBUG模式 5、DEBUG模式