Johnathan Mantey Howitzer105mm
  • Joined on 2023年10月25日
Howitzer105mm commented on pull request IPMITool/ipmitool#14 2024年02月06日 22:14:32 +01:00
Allow Sensor Data records to use 6-bit ASCII encoding

Created two constants per your suggestion.

d1945af984 Allow Sensor Data records to use 6-bit ASCII encoding
Howitzer105mm commented on pull request IPMITool/ipmitool#14 2024年02月06日 22:00:29 +01:00
Allow Sensor Data records to use 6-bit ASCII encoding

Restored the formatting.

Howitzer105mm commented on pull request IPMITool/ipmitool#14 2024年02月06日 21:59:01 +01:00
Allow Sensor Data records to use 6-bit ASCII encoding

I prefer returning the already calculated string length. The function has already determined the size of the string. This makes using strlen() unnecessary. Why recalculate the string length using...

Howitzer105mm commented on pull request IPMITool/ipmitool#14 2024年02月06日 21:55:03 +01:00
Allow Sensor Data records to use 6-bit ASCII encoding

Looks like I need to update this PR. I did not adjust for the six bits of the FRU Type/Len record.

Howitzer105mm commented on pull request IPMITool/ipmitool#14 2024年02月06日 21:51:41 +01:00
Allow Sensor Data records to use 6-bit ASCII encoding

Modified to be less temporal

43ecd96baf Allow Sensor Data records to use 6-bit ASCII encoding
Howitzer105mm commented on pull request IPMITool/ipmitool#14 2024年02月02日 21:13:32 +01:00
Allow Sensor Data records to use 6-bit ASCII encoding

Cleaned formatting

5975f17ef4 Allow Sensor Data records to use 6-bit ASCII encoding
Howitzer105mm commented on pull request IPMITool/ipmitool#14 2023年12月20日 23:37:47 +01:00
Allow Sensor Data records to use 6-bit ASCII encoding

I have added the string length #define, and described why that number is being used. It is also being used for the FRU records as well. There is bug in the OpenBMC IPMI code. The Type encoding...

d39e8fcbae Allow Sensor Data records to use 6-bit ASCII encoding
Howitzer105mm commented on pull request IPMITool/ipmitool#14 2023年12月14日 00:04:43 +01:00
Allow Sensor Data records to use 6-bit ASCII encoding

This is one of those places where the Type/Len already allowed 31 bytes:

` memset(desc, 0, sizeof(desc)); memcpy(desc, fru->id_string, __min(fru->id_code & 0x01f, sizeof(desc))); desc[fru->i...

Howitzer105mm commented on pull request IPMITool/ipmitool#14 2023年12月14日 00:00:43 +01:00
Allow Sensor Data records to use 6-bit ASCII encoding

FWIW, I avoided creating the #defines you recommended, as there were already bunches of hard coded values. I was not certain creating the #defines would have been approved, so I left the code with...

Howitzer105mm commented on pull request IPMITool/ipmitool#14 2023年12月13日 23:57:52 +01:00
Allow Sensor Data records to use 6-bit ASCII encoding

The reason for using 42 is due to using non-integer math:

The assumption is that the Type/Len can/will be assigned 0x1F. There is already ample code within ipmitool allowing this, for example...

Howitzer105mm commented on pull request IPMITool/ipmitool#14 2023年11月06日 18:03:22 +01:00
Allow Sensor Data records to use 6-bit ASCII encoding

Do you have any additional feedback Alexander?

a434ad0c8b Merge branch 'master' into feature/9023b5b-allow-6-bit-encoded-sdr-strings
ab5ce5baff dcmi: update parameters to read temperature sensors
ed6baeb4c3 fru: Refactor for future use
652ad2ff85 channel: Fix Set User Access boolean options (#11)
Compare 4 commits »
Howitzer105mm commented on pull request IPMITool/ipmitool#14 2023年11月01日 14:44:40 +01:00
Allow Sensor Data records to use 6-bit ASCII encoding

Implemented.

c518141baa Allow Sensor Data records to use 6-bit ASCII encoding
Howitzer105mm commented on pull request IPMITool/ipmitool#1 2023年10月30日 21:26:35 +01:00
Fru: Fix edit field not checking area existence

The Multi-record byte 3 is the length of the current record. You have to check bit 7 of byte 2 to see if this is the last record. If it isn't you will find an appended multi-record entry. The...

Howitzer105mm commented on pull request IPMITool/ipmitool#14 2023年10月30日 20:43:52 +01:00
Allow Sensor Data records to use 6-bit ASCII encoding

Pushed a new version with the change you requested.