3. The “Max temperature since cartridge loaded” value is ASCII encoded in bytes 22–29 of the
incoming data.
Example SCSI trace:
SendDiagnostic |1D 11 00 00 08 00 |00008|00|00|
Data Out |93 00 00 04 00 00 20 2A |
ReceiveDiagResults |1C 01 93 01 00 00 |0009C|00|00|
Data In |93 00 00 98 30 30 30 30 31 41 31 32 20 30 30 30 |
Data In |30 31 41 31 32 20 30 30 30 30 31 41 37 34 20 30 |
Data In |30 30 30 31 39 31 37 20 0D 0A 30 30 30 30 30 30 |
Data In |30 30 20 30 30 30 30 30 30 30 30 20 30 30 30 30 |
Data In |33 32 30 30 20 30 30 30 30 30 35 30 30 20 0D 0A |
Data In |46 46 46 46 38 30 30 30 20 46 46 46 46 38 30 30 |
Data In |30 20 46 46 46 46 38 30 30 30 20 46 46 46 46 38 |
Data In |30 30 30 20 0D 0A 46 46 46 46 38 30 30 30 20 46 |
Data In |46 46 46 38 30 30 30 20 30 30 30 30 30 35 30 30 |
Data In |20 30 30 30 30 30 35 30 30 20 0D 0A |
4. Translate each character received from ASCI to hex numbers.
For the example above: 30 30 30 30 31 41 37 34 = 00001A74h
5. Convert this number to decimal = 6772
6. Divide this number by 256 to give the temperature in °C = 26.4°C
Volume 1: hardware integration 19