Repository navigation
Expand file tree
/
Copy pathopcodes.json
More file actions
66 lines (66 loc) · 2.92 KB
/
Copy pathopcodes.json
File metadata and controls
66 lines (66 loc) · 2.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
"_source": "webpack module 40877, export S4, extracted at runtime from drive.nuphy.io",
"_evidence": "SOURCED (T4) for the names; the ones marked verified are also T1/T2",
"commands": {
"0x2F": "GetDongelName",
"0xA0": "GetBase",
"0xA1": "GetFirmwareInfo",
"0xB1": "GetDefaultKeys [verified: returns FACTORY matrix, not active]",
"0xB2": "GetUseKeys [verified: bulk read of active keymap]",
"0xB3": "SetUseKeys [verified: writes keycodes, arbitrary length]",
"0xB4": "RestoreUseLayers [verified: restores layer defaults]",
"0xB5": "GetSOCD",
"0xB6": "SetSOCD [verified]",
"0xB7": "ResetSOCD",
"0xB8": "GetTapDance",
"0xB9": "SetTapDance [verified]",
"0xBA": "ResetTapDance",
"0xBB": "GetTGL",
"0xBC": "SetTGL [verified]",
"0xBD": "ResetTGL",
"0xC1": "SetKeyUpload [verified: macro record start/stop]",
"0xC2": "GetMacro",
"0xC3": "SetMacro [verified: macro block upload]",
"0xD1": "GetLightCount",
"0xD2": "GetKeyLightColor [verified: polled read of rendered LED state, 357 bytes - PROTOCOL 54]",
"0xD5": "GetLightState",
"0xD6": "SetLightState [verified: effect/brightness/speed/colour]",
"0xE1": "GetKeyboardFunc",
"0xE2": "SetKeyboardFunc [verified: mode settings; per Mac/Win via pad byte; UNBOUNDED past byte 3 - PROTOCOL 84]",
"0xE3": "SetDebounceTime [NO-OP ack in fw 1.0.6.6; real debounce is func[0] x10 ms via 0xE2 - PROTOCOL 84]",
"0xE4": "TestDelayTime [HAZARD: payload byte1!=0 TYPES an Enter key; measures nothing - PROTOCOL 84]",
"0xE5": "SetTouchBarConfig [NO-OP ack; this model has no touch bar/slider - PROTOCOL 76]",
"0xE6": "GetTouchBarConfig [NO-OP ack - PROTOCOL 76]",
"0xEE": "SetSecretKey [verified: THE HANDSHAKE - confirms session-key model]",
"0xEF": "SetIapMode [*** BOOTLOADER ENTRY - this is what my opcode sweep hit ***]",
"0xF1": "RestoreFactory",
"0xF3": "GetSleepInfo",
"0xF5": "SetSleepCfg",
"0xFA": "GetAppDefineSize",
"0xFB": "GetAppDefine [what the app polls on panel open]",
"0xFC": "SetAppDefine",
"0xFD": "GetDebugEnable",
"0xFE": "SetDebugLog"
},
"reportTypes_module40877_P3": {
"0xA2": "ModeStateChange",
"0xC1": "KeyUpload",
"0xD7": "LightStateChange",
"0xF2": "KeyboardReset",
"0xF4": "SleepCfgChange",
"0xFE": "LogUpload"
},
"keycodeRangePrefixes_module40877_Ih": {
"0x77": "Macro",
"0x7F": "ADVANCED"
},
"constants_module40877_Hc": {
"PACKET_SIZE": "0x40",
"DATA_INDEX": "0x08"
},
"hidden_in_firmware_not_in_app_enum": {
"0xC4": "zero-fills BOTH macro buffers in flash (destructive) - PROTOCOL 76/84",
"0xD8": "SetKeyLightColor: per-key RGB, renders under effect >= 21 - PROTOCOL 76-78",
"0xF4": "RAM-only auto-sleep toggle - PROTOCOL 79"
}
}