Skip to content

WistronNetwork/wistron-net-ipmi-oem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wistron IPMI OEM Commands (0x30)

  • This series of commands are mainly used for diagnostic.

Set Fan Speed Control Command: 0x21

  • This Command is used to set fan control mode and fan PWM.

Request

Byte Data
1 Control Mode
1h = Manually Control
0h = Auto Control (follow fan control algorithm)
2 Fan PWM Duty Cycle
00h ~ 64h for 0% ~ 100% PWM duty cycle
This field is valid only if the request data byte #1 equals to 01h

Response

Byte Data
1 Completion code(0x00).

Get Fan Speed Control Command: 0x22

  • This Command is used to get fan control mode and fan PWM.

Request

Byte Data
NA NA

Response

Byte Data
1 Completion code(0x00).
2 Control Mode
1h = Manually Control
0h = Auto Control (follow fan control algorithm)
3 Fan PWM Duty Cycle
00h ~ 64h for 0% ~ 100% PWM duty cycle

I2C Read Write Command: 0x25

  • Because standard IPMI Master Write-Read command only support 8 buses (ID 0 ~ 7).
  • This OEM command is created to write-read all I2C buses of the BMC.

Request

Byte Data
1 Bus ID, 0-based (count from 0)
2 Slave Address
[7:1] Slave Address (7-bit)
[0] Reserved. Write as 0.
3 Read Count
Number of bytes to read, 1-based.
According to work as designed, the max read count is 255.
0 = no bytes to read.
4 Offset Data Offset
(5:N) Data to write
Keep empty for this field if no data to write.
According to work as designed, the max write data length is 255 bytes.

Response

Byte Data
1 Completion code(0x00).
(2:N) Data read from specified salve address.

Set GPIO Command: 0x26

  • This Command is used to set in/out direction and high/low level for a specific GPIO.
  • GPIO number = port number * 8 + pin order of the port.

Request

Byte Data
1 GPIO Number
2 GPIO Direction
0 = Input
1 = Output
3 GPIO Level
0 = Low
1 = high
Note: If data byte 2 is 0, data byte 3 will be ignored

Response

Byte Data
1 Completion code(0x00).

Get GPIO Command: 0x27

  • This Command is used to get in/out direction and high/low level for a specific GPIO.
  • GPIO number = port number * 8 + pin order of the port.

Request

Byte Data
1 GPIO Number

Response

Byte Data
1 Completion code(0x00).
2 GPIO Direction
0 = Input
1 = Output
3 GPIO Level
0 = Low
1 = high

Get All GPIO Command: 0x28

  • This Command is used to get direction and level of all GPIOs of BMC.

Request

Byte Data
NA NA

Response

Byte Data
1 Completion code(0x00).
2N Byte 2N: GPIO Direction of Port18E
2N+1 Byte 2N+1: GPIO Level of Port18E

Get All GPIO Command: 0x3f

  • This Command is used to set fru date.

Request

Byte Data
1 Time byte 1 (LSB)
2 Time byte 2
3 Time byte 3 (MSB)

Response

Byte Data
1 Completion code(0x00).

Wistron-net IPMI OEM Commands (0x32)

  • This series of commands are mainly used for diagnostic.

Read diag log Command: 0x80

  • Read logs from BMC directory '/tmp/ipmi_log'.
  • The maximun response 'N' is 1024.

Request

Byte Data
NA NA

Response

Byte Data
1 Completion code(0x00).
(2:N) Response ascii code which reads from '/tmp/ipmi_log'.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published