Some external HDDs from Western Digital (WD) - e.g. the WD My Book Elite - have a display which shows some information, including a user customizable label. This display is an e-label display, thus the present display state persists when power is removed. The display content is updated with WD's software SmartWare which automatically updates the shown free space information. Furthermore it can be used to modify the customizable label.
LeetCmd v1.0 - PPA for Ubuntu 14.04/16.04 (i386/AMD64)
LeetCmd v1.0 - C source codeMODE SENSE command for reading and the MODE SELECT command for writing.
The flag resides in mode page 0x20, sub-page 0x00. The page content is 6 bytes long; the flag itself is the 22th bit within the page content.Mode page 0x20, sub-page 0x00 | |
|---|---|
| Byte offset | Meaning |
| 0 | |
| 1 | |
| 2 | b1 = Disable VCD flag |
| 3 | |
| 4 | |
| 5 | |
MODE SENSE command for reading and the MODE SELECT command for writing.
The flag resides in mode page 0x21, sub-page 0x00. The page content is 10 bytes long; the flag itself is the 71th bit within the page content.Mode page 0x21, sub-page 0x00 | |
|---|---|
| Byte offset | Meaning |
| 0 | |
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | b0 = Inverse Display flag |
| 9 | |
RECEIVE DIAGNOSTIC RESULTS command for reading and the SEND DIAGNOSTIC command for writing.
The data resides in diagnostic page 0x87. The page content is 32 bytes long; the label itself starts at offset 8 and uses two bytes per character.Diagnostic page 0x87 | |||
|---|---|---|---|
| Byte offset | Meaning | Byte offset | Meaning |
| 0 | 16 | Label char 5 | |
| 1 | 17 | ||
| 2 | 18 | Label char 6 | |
| 3 | 19 | ||
| 4 | 20 | Label char 7 | |
| 5 | 21 | ||
| 6 | 22 | Label char 8 | |
| 7 | 23 | ||
| 8 | Label char 1 | 24 | Label char 9 |
| 9 | 25 | ||
| 10 | Label char 2 | 26 | Label char 10 |
| 11 | 27 | ||
| 12 | Label char 3 | 28 | Label char 11 |
| 13 | 29 | ||
| 14 | Label char 4 | 30 | Label char 12 |
| 15 | 31 | ||
RECEIVE DIAGNOSTIC RESULTS command for reading (a meaningless default) and the SEND DIAGNOSTIC command for writing.
The data resides in diagnostic page 0x86. The page content is 16 bytes long.Diagnostic page 0x86 | |
|---|---|
| Byte offset | Meaning |
| 0 | (meaning unknown; must be 0x33!) |
| 1 | (meaning unknown; must be 0x0A!) |
| 2 | (meaning unknown; must be 0x03!) |
| 3 | (meaning unknown; must be 0x00!) |
| 4 | b7 = segment frame (needed for any segment!) |
| 5 | |
| 6 | b15-b6 = segments (MSB = most-left/top one) |
| 7 | |
| 8 | |
| 9 | |
| 10 | b4 = FREE indicator; b2 = TB indicator; b1 = GB indicator |
| 11 | b1 = decimal point between free space 100s and 10s |
| 12 | b7 = show digit; b3-b0 = BCD value (free space 100s) |
| 13 | b7 = show digit; b3-b0 = BCD value (free space 10s) |
| 14 | b7 = show digit; b3-b0 = BCD value (free space 1s) |
| 15 | |