MAKCU API
V4.126 official API · Current text commands and binary protocol, with legacy compatibility references.
Last updated 2026-11-15 · V4.126 official API compatibility update · Firmware version & capability matrix →
Legacy connection compatibility · V4.126
Use USB2 CH343, 8N1, no flow control and one reader/writer. Probe 4000000 and 115200 separately. V27/V29 are not V4.027/V4.029.
Probe with km.version() plus a line ending. V27/V29 echo the queried line; current V4 returns km.MAKCU and a prompt, even with echo enabled. Parse the result line and consume the prompt. Enable streams only after discovery.
V4.073+: km.baud() queries the applied baud; km.baud(115200|4000000|0) changes it; 0 means 115200. Volatile; send at the working rate, reopen at the new rate. Earlier V4 does not implement text baud.
km.serial, km.info, km.help and km.catch_* remain unsupported text commands. Physical serial adapters and third-party application compatibility require hardware validation.
Firmware V4 · V4.126 (official)
— commands and per-build notes
The reference below is V3.x. Current V4 has its own names[] command table plus the separately parsed km.lock_* family. Device settings (LED, polling and controller processing) remain in app.makcu.com.
V4 uses MAK_API (DE AD | LEN | CMD | PAYLOAD), a different opcode space from the legacy V2/AIO protocol below. See /api/versions for binary payloads and per-build availability.
Default interpolation: AUTO (255) — follows the interval between injection commands; a value saved by the user (0–100) is restored at power-up. Read with binary 0x1F.
51 km names, plus km.lock_*
| Command | Signature / reply | Since (default line) |
|---|---|---|
km.versionDevice identity query | km.version() -> km.MAKCU followed by CRLF and prompt; never echoed on V4.039+, even with echo on. V27/V29 echo the queried line. Parse the identity result, not the whole response.km.MAKCU\r\n>>> ; never echoed on V4.039+; V27/V29 prepend the queried line | V4.024 |
km.deviceRoute and report-period query | km.device() -> route and report-period string, e.g. R:MK;M:8uf;K:8uf;C:0ufQueries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.echoQuery or set command echo | km.echo() query, km.echo(enabled) 0 or 1; echo also governs query replies since V4.018Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.buttonsQuery or configure input change streaming | km.buttons() query; km.buttons(mode[,period]) mode 0 off, 1/2 prefixed km. + mask + CRLF, 3 bare mask byte; period accepted and ignored (V4.036+).Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.baudLegacy get-baud frame | V4.073+: km.baud() queries the applied baud; km.baud(115200|4000000|0) changes it; 0 means 115200. Volatile; send at the working rate, reopen at the new rate. Earlier V4 does not implement text baud.Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.073 |
km.leftInject a mouse button or query physical/injected ownership | km.left() -> 0 none, 1 physical, 2 injected, 3 both; km.left(state) 0 release, 1 press, 2 legacy silent release (V4.039+)Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.rightInject a mouse button or query physical/injected ownership | km.right() -> 0 none, 1 physical, 2 injected, 3 both; km.right(state) 0 release, 1 press, 2 legacy silent release (V4.039+)Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.middleInject a mouse button or query physical/injected ownership | km.middle() -> 0 none, 1 physical, 2 injected, 3 both; km.middle(state) 0 release, 1 press, 2 legacy silent release (V4.039+)Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.side1Inject a mouse button or query physical/injected ownership | km.side1() -> 0 none, 1 physical, 2 injected, 3 both; km.side1(state) 0 release, 1 press, 2 legacy silent release (V4.039+)Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.side2Inject a mouse button or query physical/injected ownership | km.side2() -> 0 none, 1 physical, 2 injected, 3 both; km.side2(state) 0 release, 1 press, 2 legacy silent release (V4.039+)Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.move_maskBlock physical mouse movement per direction (V4). | km.move_mask(left,right,down,up) - each 0 or 1Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.wheel_maskBlock physical wheel movement per direction (V4). | km.wheel_mask(down,up) - each 0 or 1Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.moveInjected relative move (x:i16 y:i16) | km.move(x,y), -32768..32767; V4.039+ accepts legacy extra path parameters without using them; spread by mouse injection interpolate (about 4 ms up to 25%, 17 ms at 50%, 42 ms at 80% at 1000 Hz)Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.wheelInjected wheel (delta:i16) | km.wheel(delta) -32768..32767Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.move_nowRequest immediate movement; see the V4.086 test-only timing fix | km.move_now(x,y), -32768..32767; requests a one-report horizon. V4.085 can still smooth over several reports. V4.086 test-only changes this to the next free report, with overflow in following reports.Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR Also available on the V4.030 lineage; absent on V4.032/V4.035. Since denotes continuous availability on the default line. | V4.036 |
km.left_maskBlock the physical left button; software can still press it (V4). | km.left_mask(enabled) - 0 or 1Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.right_maskBlock the physical right button (V4). | km.right_mask(enabled) - 0 or 1Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.middle_maskBlock the physical middle button (V4). | km.middle_mask(enabled) - 0 or 1Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.side1_maskBlock the physical side1 button (V4). | km.side1_mask(enabled) - 0 or 1Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.side2_maskBlock the physical side2 button (V4). | km.side2_mask(enabled) - 0 or 1Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.downPress a HID key | km.down(key)Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.upRelease a HID key | km.up(key)Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.initClear injected keyboard state | km.init()Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.pressPress+release with optional hold | km.press(key[,hold_ms[,random_range]])Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.stringType an ASCII string | km.string("text") double-quoted ASCII, 0..256 bytesQueries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.isdownQuery injected key state | km.isdown(key) -> physical state 0 or 1Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.multidownPress several keys (V4). | km.multidown(key1,key2,...)Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.multiupRelease several keys (V4). | km.multiup(key1,key2,...)Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.multipressPress and release several keys (V4). | km.multipress(key1,key2,...)Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.maskBlock or allow a physical keyboard key (V4). | km.mask(key,enabled) - key: HID code or quoted nameQueries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.remapRemap a physical key | km.remap(source,target) two keysQueries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.keysQuery or configure input change streaming | km.keys(enabled) - 0 or 1Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.streamInput change streams per kind (V4). Events are framed records. | km.stream(kind) query or km.stream(kind,enabled) - kind: mouse, keyboard, controllerQueries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR test-only: | V4.024 |
km.controller_stateInject a complete controller state into the attached game controller (V4). Stick +Y is down. | km.controller_state() query or km.controller_state(low,high,lt,rt,lx,ly,rx,ry); digital words u32, triggers u16 (normalized state uses 0..1023), sticks i16; +Y downQueries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.controllerQuery or configure input change streaming | km.controller(enabled) - 0 or 1Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR test-only: | V4.024 |
km.controller_maskMask a controller control (V4). | km.controller_mask(control,mode) - control name or idQueries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.controller_physicalRead the physical state of the attached controller (V4). | km.controller_physical()Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.024 |
km.clickScheduled click(s) (km.click) | V4.026+: km.click(button[,count[,hold_ms]]) button 1..5, count 1..255, hold 1..5000 ms or random 35-75 ms; hold and gap equalQueries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.026 |
km.movetoAbsolute move on virtual screen (km.moveto) | km.moveto(x,y[,segments,cx1,cy1,cx2,cy2]); x/y 0..32766 on the virtual screen; extra path parameters accepted and ignoredQueries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.026 |
km.getposRead tracked pointer position (km.getpos) | V4.026+: km.getpos() -> km.getpos(x,y); estimate from every mouse report the PC accepted, clamped to the screenQueries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.026 |
km.screenGet/set virtual screen size (km.screen) | V4.026+: km.screen() -> km.screen(w,h); km.screen(w,h) 1..32767 sets the size and centres the pointer; default 1920x1080Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.026 |
km.silentMove, click, move back (km.silent) | V4.026+: km.silent(x,y) moveto, left click (random 35-75 ms hold), then move back by the same distanceQueries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.026 |
km.movingQuery pending injected movement | km.moving() -> 1 while injected movement is still being sent, 0 when doneQueries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR Also available on the V4.030 lineage; absent on V4.032/V4.035. Since denotes continuous availability on the default line. | V4.039 |
km.ms1Inject a mouse button or query physical/injected ownership | km.ms1() -> 0 none, 1 physical, 2 injected, 3 both; km.ms1(state) 0 release, 1 press, 2 legacy silent release (V4.039+)Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR Also available on the V4.030 lineage; absent on V4.032/V4.035. Since denotes continuous availability on the default line. | V4.039 |
km.ms2Inject a mouse button or query physical/injected ownership | km.ms2() -> 0 none, 1 physical, 2 injected, 3 both; km.ms2(state) 0 release, 1 press, 2 legacy silent release (V4.039+)Queries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR Also available on the V4.030 lineage; absent on V4.032/V4.035. Since denotes continuous availability on the default line. | V4.039 |
km.lock_*Lock an axis/button (km.lock_*) | V4.026+: targets ml mr mm ms1 ms2 mx my mw mx+ mx- my+ my- mw+ mw-; km.lock_*(1|0) set, km.lock_*() -> 0 or 1; same state as the *_mask commandsQueries: <result>\r\n>>> ; mutations silent with echo off; errors: ERR | V4.026 |
km.autoreleaseRelease injected mouse buttons after a period with no API commands (test builds) | km.autorelease() queries the timeout in ms; km.autorelease(ms) sets it, 0..60000, 0 = off. Volatile: off after every power-up. Binary 0x6E: empty payload = query, u32 LE = set; reply u32 LE current value.Queries: <result> >>> ; mutations silent with echo off; errors: ERR | V4.103 |
km.heartbeatKeep-alive for km.autorelease (test builds) | km.heartbeat(), no arguments; restarts the km.autorelease timer and does nothing else. Binary 0x6F: empty payload; no reply on success, FF on error.Silent with echo off; errors: ERR | V4.103 |
km.api_versionInteger API version so software can check which commands and reply formats are available (test builds; V4.105 reports 1) | km.api_version(), no arguments; returns the firmware API version as a decimal integer. Binary 0x70: empty payload; reply u32 LE.Queries: <result> >>> ; mutations silent with echo off; errors: ERR | V4.105 |
km.controller_clearDrop all controller injection at once: every control returns to the physical value and all holds are cancelled. Takes effect after commands already sent. Does not change km.controller_mask or km.autorelease (test builds) | km.controller_clear(), no arguments. Binary 0x72: empty payload; no reply on success, FF on error.Silent with echo off; errors: ERR | V4.105 |
km.controller_axesStream the physical controller triggers and sticks (canonical ids 10-15). Sampled every period, only changed values are sent, normalized like km.controller_physical (triggers 0..1023, sticks -32768..32767). Text event: km.controller_axes(id,value). Binary event: DE AD 04 00 75, kind=1, id, value u16 LE. id 255 means the controller snapshot is unavailable. Off by default and after reconnect (test builds) | km.controller_axes() queries "mode,period"; km.controller_axes(mode[,period_ms]) sets it. mode 0 = off, 1 = text events, 2 = binary events; period 1..1000 ms, default 10. Binary 0x73: empty payload = query (reply mode u8 + period u16 LE); set payload mode u8 + period u16 LE.Queries: <result> >>> ; mutations silent with echo off; errors: ERR | V4.105 |
km.controller_buttonsStream the physical controller buttons and D-pad (canonical digital ids, value 0/1). Sampled every period, only changes are sent. Text event: km.controller_buttons(id,value). Binary event: DE AD 04 00 75, kind=2, id, value u16 LE. id 255 means the controller snapshot is unavailable. Off by default and after reconnect (test builds) | km.controller_buttons() queries "mode,period"; km.controller_buttons(mode[,period_ms]) sets it. mode 0 = off, 1 = text events, 2 = binary events; period 1..1000 ms, default 10. Binary 0x74: empty payload = query (reply mode u8 + period u16 LE); set payload mode u8 + period u16 LE.Queries: <result> >>> ; mutations silent with echo off; errors: ERR | V4.105 |
Per-build notes
V4.073 — formerly official / superseded
V4.073 official: adds km.baud query/set and binary A4 applied-baud discovery. Supports 115200 and 4000000; baud(0) selects 115200. Existing version reply, boot defaults and passthrough are unchanged. Software tests pass; third-party serial applications remain unverified.
V4.074 — test
V4.074 test: opt-in raw relative mouse movement with explicit asynchronous receipts. Binary 0x69 submits one relative XY request; 0x6A queries and acknowledges its result. Raw movements preserve FIFO ordering and bypass AUTO interpolation. Existing KM movement and AUTO behavior remain unchanged. Use strictly increasing nonzero request IDs per device boot and read terminal results before acknowledging them. Up to 16 live or unread results; unavailable targets, out-of-range values, resets and timeouts are reported explicitly. Timeout starts when the request reaches the processing head, not at enqueue. Host regression and dual-chip build validation only; physical UART/USB, throughput and long-run stability require hardware testing. No new settings, persistent format or bootloader changes. V4.073 remains the official rollback.
V4.075 — test
V4.075 test: improves legacy A4/A5 baud-handshake compatibility after upgrading from V3 firmware. Over-long declared payloads are fully consumed so trailing bytes cannot desynchronize the next km.version() or binary command. Standard frames and the short-A5 compatibility behavior remain unchanged. USB identity, version reply, boot and persistent baud settings, Raw API and bootloaders are unchanged. Host tests and a clean dual-chip build pass; closed-source application detection still requires physical validation. V4.073 remains the official rollback.
V4.076 — formerly official / superseded
Improves detection by some programs after a firmware update. Fixes repeated mouse movement and movement continuing after a cancelled request in specific control modes. Existing settings and everyday controls are retained. Compatibility with every third-party program is not guaranteed.
V4.077 — test
V4.077 DualSense / DualSense Edge compatibility test. Temporarily disables controller USB audio to investigate disconnects during gameplay. Controller speaker, microphone, headset audio and USB audio-based haptics are unavailable through MAKCU. Buttons, sticks and HID output remain supported; please test vibration and adaptive triggers in your game. Includes V4.076 API compatibility fixes. This is a test release; report whether disconnects, stuck input or continuous vibration persist. Your previously working firmware can be restored if needed.
V4.078 — formerly official / superseded
Fixes mouse button release after changing button locks while the mouse is stationary. Includes V4.076 Raw movement and legacy detection fixes, and V4.077 DualSense/Edge USB audio isolation. Controller speaker, microphone, headset audio and USB audio-based haptics are unavailable. Saved settings and bootloaders are unchanged.
V4.079 — test
V4.079 targeted test: fixes km/API mouse and keyboard injection stopping after the PC restarts or resumes while MAKCU stays powered (previously only replugging USB1 restored it), and fixes some high-speed mice (for example Rapoo VT3 Max Gen-2) whose km commands returned ERR. Includes V4.078; DualSense/Edge USB audio remains disabled. Saved settings and bootloaders are unchanged. Software regression and signed paired build verified; real-device result requires your feedback.
V4.080 — test
V4.080 targeted test: fixes USB hubs on MAKCU USB3 that reject the hub status request (for example some Anker hubs); MAKCU no longer tears down and re-enumerates the whole hub every second or two, so controllers, P5 General and other devices behind the hub can connect. Includes V4.079 and V4.078; DualSense/Edge USB audio remains disabled. Saved settings and bootloaders are unchanged. Software regression and signed paired build verified; real-device result requires your feedback.
V4.081 (PS5 A/B diagnostic) — diagnostic test
V4.081 PS5 A/B diagnostic build for one targeted test: DualSense/DualSense Edge USB audio interfaces are NOT hidden (V4.076 behaviour), so a PS5 sees the original controller configuration. Otherwise identical to V4.080 (USB hub fix, V4.079/V4.078 fixes). On a PC, DualSense may show the older connection problems; return to V4.080 after the test. Saved settings and bootloaders are unchanged.
V4.082 — test
V4.082 targeted diagnostic test for stuck mouse buttons / a frozen mouse: reports now show which side holds each mouse button, the last accepted and rejected button commands, and whether the USB input from your mouse stopped. No change to how MAKCU handles input or output. Includes V4.080 (USB hub fix) and V4.079/V4.078. DualSense/Edge USB audio remains disabled. Saved settings and bootloaders are unchanged.
V4.083 — test
V4.083 targeted diagnostic test for controllers the host does not accept: reports now record the host's last USB setup requests and how MAKCU answered (with timing), and why the USB3 port removed a device (unplug, port error, over-current, power off, timeout). No change to how MAKCU handles devices, input or output. Includes V4.082 diagnostics and V4.080/V4.079 fixes. DualSense/Edge USB audio remains disabled. Saved settings and bootloaders are unchanged.
V4.084 — diagnostic test
V4.084 PS5 diagnostic build for one targeted test: DualSense/DualSense Edge USB audio interfaces are NOT hidden (V4.076 behaviour), so a PS5 sees the original controller configuration; reports also record the host USB setup requests and why the USB3 port removed a device (V4.083 diagnostics). Otherwise identical to V4.083. On a PC the DualSense may again not be recognised; go back to V4.083 after the test.
V4.085 — formerly official / superseded
Fixes km/API mouse movement not reaching the PC on mice that expose duplicate mouse reports, such as ATK 373B mice. Mouse and keyboard injection keep working after the PC restarts or resumes while MAKCU stays powered. Fixes some wireless receivers, such as Rapoo, not working through MAKCU, and a USB hub that rejects a status request no longer drops every device behind it. Adds diagnostics to support reports. Includes V4.078; DualSense/Edge USB audio remains unavailable. Saved settings and bootloaders are unchanged.
V4.086 — test
Fixes km.move_now / MOVE_NOW and interpolation 0 still being smoothed over several USB reports (aim tools could overshoot or circle): the move now goes out in the next free USB report, and any part that does not fit one report follows in the next reports. AUTO interpolation behaves the same way when commands arrive faster than the mouse reports. Nonzero interpolation values are unchanged; choose a nonzero value if you want smoothing. This build is based on V4.085 and includes its fixes.
V4.087 — test
Adds optional physical mouse wheel reporting to the button event stream for telemetry tools: enable it with km.stream(mouse,1,1) (or km.stream(mouse,1,1,8) to combine scrolling every 8 ms, recommended at 115200 baud); each scroll is sent as a 9-byte event DE AD 04 00 53 01 20 followed by the signed 16-bit wheel delta. It is off by default, so existing programs see no change. Based on the official V4.085.
V4.088 — test
Controller stick blend test for third-party aim tools: stick values sent through MAKCU are now added on top of your physical stick instead of replacing it, and a centered command no longer snaps the stick back to your own position, which removes the small mechanical jumps. Triggers, buttons and D-pad are unchanged. For this test keep the right stick dead zone at 0 and the response curve off. This build turns the blend on at power-up; it is based on the official V4.085.
V4.089 — test
Controller pulse-hold test for aim tools that send a short correction and re-centre a few milliseconds later: the correction is now held for at least 12 ms before the stick returns to centre, so it is no longer swallowed as a small twitch. Includes the V4.088 stick blend (sent values are added on top of your physical stick). Triggers, buttons and D-pad are unchanged. Keep the right stick dead zone at 0 and the response curve off for this test. Based on the official V4.085.
V4.090 — test
Controller pulse-hold test without stick blending: sent stick values replace your stick as in the official firmware, but a short correction that is re-centred a few milliseconds later is now held for at least 12 ms, so it is no longer swallowed as a small twitch. Triggers, buttons and D-pad are unchanged. Based on the official V4.085.
V4.091 — diagnostic test
Xbox controller headset audio diagnostic build: V4.088 (stick blend on at power-up) with the extra internal diagnostics added in V4.079-V4.083 removed from the USB data path, to check whether they cause headset audio to crackle or stop on Xbox. Support reports from this build contain fewer diagnostics. Based on the official V4.085.
V4.092 — diagnostic test
Diagnostic test build for USB3 disconnects and power loss: MAKCU keeps a short record of why the USB3 port removed a device (including an over-current power cut) and of the PC or console resetting MAKCU, so the evidence is still in the support report after power is lost. No change to how MAKCU handles devices, input or output. Based on the official V4.085.
V4.093 — diagnostic test
Diagnostic test build for USB3 disconnects and power loss (replaces V4.092): MAKCU keeps a short record of why the USB3 port removed a device (including an over-current power cut) and of the PC or console resetting MAKCU, so the evidence is still in the support report after power is lost. The routine link reset at power-on no longer uses up the record. No change to how MAKCU handles devices, input or output. Based on the official V4.085.
V4.094 — formerly official / superseded
Adds an optional controller stick blend mode (off by default): when switched on in the Toolkit controller settings, aim or assist software adds its correction to your own stick movement instead of taking the stick over, and the setting is kept after power-off. If your aim software also blends the physical stick itself (for example Blurred Joystick Blend), set its blend to 0 when using this mode. Support reports show corrected USB3 connect and disconnect counts. Includes all V4.085 fixes; saved settings and bootloaders are unchanged.
Adds an optional additive stick mode for injected controller sticks, off by default. Enable it by setting bit 2 (value 4) of the controller-behavior byte (settings image byte 397) in a 0x1D controller-section write. When enabled, injected left/right stick values are applied as an offset from centre added to the physical stick (clamped to the axis range) instead of replacing it, and a centred value means a zero offset rather than forcing the stick to centre. Triggers, buttons and D-pad are unchanged. Saving the controller section keeps this bit across power-off; bits 0 and 1 remain runtime-only. A controller-section write with bit 2 clear turns the mode off. Otherwise the API is the same as V4.085.
V4.095 — formerly official / superseded
Fixes controller aim or assist injection being refused on controllers that also expose an unused mouse interface (for example the GameSir G7 8K Pro in XInput mode): a command sent to that never-used mouse no longer blocks the controller commands behind it. Includes the optional controller stick blend mode (off by default) and all V4.094 fixes; saved settings and bootloaders are unchanged.
V4.096 — test
Test build. Fixes MAKCU not starting after a firmware update on some boards (a "USB JTAG" device keeps appearing and disappearing on USB1 and the Toolkit cannot read the version): if the one-time USB setup step inside the chip fails, MAKCU now keeps running instead of restarting in a loop. Adds a 0x6C batch command (up to 16 raw mouse moves per message) for API developers. Otherwise the same as the official V4.095. Not yet tested on hardware.
Adds 0x6C RAW_BATCH (test builds only): one frame carries up to 16 RAW_MOVE (0x69) records and returns one combined receipt, which cuts round trips for high-rate network or serial senders. Each record is admitted with exactly the same rules, IDs and reject reasons as 0x69; admission stops at the first rejected record and the records before it stay queued. An optional cumulative acknowledgement in the same frame frees finished records up to a given ID, replacing separate 0x6A acknowledgements. 0x69 and 0x6A replies are byte-for-byte unchanged.
When a button, wheel or release override targets a mouse interface that has never sent a report, the first command still waits up to 250 ms before being rejected with reason 22; later commands to the same target are now rejected with reason 22 immediately, so they no longer delay controller commands queued behind them. The state clears as soon as that mouse sends a real report or the target changes. XY moves, RAW_MOVE and policy commands are unaffected.
V4.097 — formerly official / superseded
Keeps MAKCU running on boards where a one-time USB setup step inside the chip fails at start-up (previously such boards restarted in a loop after a firmware update; Windows showed a "USB JTAG" device appearing and disappearing). MOVE_NOW and mouse moves with interpolation 0 are now sent in the next report instead of being spread over four or more reports. The BOOT button must be held for 3 seconds to switch the start-up serial speed, so a short accidental press no longer disconnects your software. Adds a 0x6C batch command (up to 16 raw mouse moves per message) for API developers. Includes all V4.095 fixes; saved settings and bootloaders are unchanged.
km.move_now / MOVE_NOW and interpolation 0 now send the move in the next free USB report instead of spreading it over four or more reports; any part that does not fit one report follows in the next reports. AUTO interpolation behaves the same way when commands arrive faster than the mouse reports. Nonzero interpolation values and RAW_MOVE (0x69/0x6C) are unchanged; closed-loop tools tuned for the old behaviour may need retuning. Includes all V4.096 API changes.
V4.098 — test
Test build for boards where MAKCU stops working after a while and only recovers when unplugged (the USB3 side goes silent): if the USB3 side gets stuck in a USB error state it now restarts itself (at most 3 times in a row) instead of staying dead until you replug; each restart is noted in the support report. Otherwise the same as the official V4.097. Not yet tested on hardware.
V4.099 — formerly official / superseded
Fixes software mouse moves sometimes being held back after the mouse has been idle for a while (roughly 9 to 18 seconds, most often with wireless receivers) and then arriving all at once; continuous movement is unchanged. If the USB3 side gets stuck in a USB error state, it now restarts itself (at most 3 times in a row) instead of staying dead until you replug; each restart is noted in the support report. Includes all V4.097 fixes; saved settings and bootloaders are unchanged.
V4.100 — test
Test build: the Toolkit can read the support history in batches of up to 8 records (and only the new ones) instead of one record per request, so making a support report holds up your software for much less time once the Toolkit supports it. Older Toolkit versions work as before. Otherwise the same as the official V4.099. Not yet tested on hardware.
V4.101 — test
Test build: with an ordinary mouse, software mouse moves now work right after MAKCU is plugged in or reconnected, without having to move the physical mouse once first. Game controllers keep the previous protection. Also includes the faster support-history reading from V4.100. Otherwise the same as the official V4.099. Not yet tested on hardware.
With an ordinary mouse, injected mouse input (moves and buttons) now takes effect right after MAKCU is plugged in or the mouse re-enumerates, before the physical mouse has sent its first report. This applies only when the device has a single unambiguous primary mouse interface and no game-controller interface; game controllers, composite devices and devices whose descriptors cannot be fully parsed keep the previous behaviour (injection waits for the first physical mouse report). Once any physical mouse report arrives, target selection is the same as before.
V4.102 — formerly official / superseded
If the USB3 side keeps getting stuck in a USB error again and again, MAKCU now stops restarting it after a few attempts (one more attempt after 10 minutes of normal use) instead of restarting it forever. With an ordinary mouse, software mouse moves work right after MAKCU is plugged in, without moving the physical mouse once first (game controllers keep the previous protection). The Toolkit can read the support history faster once it supports it. Includes all V4.099 fixes; saved settings and bootloaders are unchanged.
With an ordinary mouse, injected mouse input (moves and buttons) now takes effect right after MAKCU is plugged in or the mouse re-enumerates, before the physical mouse has sent its first report. This applies only when the device has a single unambiguous primary mouse interface and no game-controller interface; game controllers, composite devices and devices whose descriptors cannot be fully parsed keep the previous behaviour (injection waits for the first physical mouse report). Once any physical mouse report arrives, target selection is the same as before. Otherwise the API is the same as V4.099.
V4.103 — test
Test build: optional protection against stuck mouse buttons. If your software presses a mouse button and then stops sending anything (for example it crashed), MAKCU can release that button by itself after a time you choose (km.autorelease(ms), off by default and after every power-up; km.heartbeat() keeps it alive). Your physical buttons are never affected. Otherwise the same as the official V4.102. Not yet tested on hardware.
Adds km.autorelease(ms) / binary 0x6E (test build): if any injected mouse button is held, or a km.click is in progress, and no accepted API command has arrived for ms milliseconds, MAKCU cancels the click and releases the injected mouse buttons. 0 turns it off; the range is 0 to 60000. It is off by default, is not saved, and returns to off after every power-up. Any accepted command (moves, queries, km.heartbeat()) restarts the timer; rejected or malformed commands do not. Physical buttons and keyboard input are never affected. The timer is shared by every program talking to the same MAKCU.
Adds km.heartbeat() / binary 0x6F (test build): a no-op that only restarts the km.autorelease timer. Takes no arguments. Otherwise the API is the same as V4.102.
V4.104 — test
Test build: MAKCU now keeps statistics about how evenly it sends mouse reports and how long software moves wait before they go out, so the Toolkit debug mode can tell whether stutter comes from your software or from MAKCU. Statistics only; mouse output is unchanged. Includes everything in V4.103. Not yet tested on hardware.
V4.105 — test
Test build for developers: adds km.api_version() so software can check which commands this firmware supports, controller commands that set a single button, trigger or stick with an optional hold time (km.controller(id,value[,hold_ms])), km.controller_clear() to drop all controller injection at once, and live controller stick/button readouts (km.controller_axes / km.controller_buttons). Existing commands behave exactly as before. Includes everything in V4.104. Not yet tested on hardware.
Adds km.api_version() / binary 0x70 (test build): returns an integer API version so software can check which commands and reply formats this firmware supports. V4.105 reports 1; the number increases whenever API behaviour or a reply format changes.
Adds km.controller(id,value[,hold_ms]) / binary 0x71 (test build): sets a single button, trigger or stick by canonical id. hold_ms 0 keeps it until changed or cleared; 1 to 60000 returns it to the physical value when the time runs out. D-pad ids 4-7 act as one group. A full-state controller write (0x40) cancels these holds. km.controller(enabled) and other existing forms are unchanged.
Adds km.controller_clear() / binary 0x72 (test build): returns every controller control to its physical value and cancels all holds, after any commands already sent. km.controller_mask and km.autorelease are not changed.
Adds km.controller_axes(mode[,period_ms]) / 0x73 and km.controller_buttons(mode[,period_ms]) / 0x74 (test build): stream physical trigger/stick values or button states, sampled every 1-1000 ms (default 10) and sent only when they change. mode 1 sends text events, mode 2 binary events with opcode 0x75; id 255 marks an unavailable snapshot. Off by default. When none of the new commands are used, all existing commands and replies behave exactly as in V4.104.
V4.106 — test
Test build: game controllers pass through MAKCU with about 1 ms of added delay instead of about 11 ms (1 ms controller polling, on by default, can be switched off in controller settings; switching off takes effect after replugging the USB3 device or restarting MAKCU). Reading the physical controller state is more reliable. Mice and keyboards unchanged. Not for general release yet.
Game controllers now pass through MAKCU with 1 ms polling by default (about 1 ms added delay instead of about 11 ms). The 400-byte device tuning image read and written through the management connection (0x3E) record 0x1D gains a controller field at the end: byte 398 = 0xA6 tag, byte 399 = 0 (1 ms polling off) or 1 (on). Bytes 398/399 = 00/00 leave the setting unchanged, so existing software that writes zeros keeps working. READ always returns 0xA6 plus the current value, which software can use to detect this feature. Other values are rejected as invalid only when the controller section is selected. APPLY changes the setting in memory; SAVE persists it. Switching from off to on re-enumerates the USB1 device once immediately; switching from on to off takes effect at the next USB1 enumeration (replug the USB3 device or restart MAKCU). Note: a tuning image exported from V4.106 (byte 398 = 0xA6) is rejected as invalid by a controller APPLY on V4.105 and older.
Reading the physical controller state (km.controller_physical / binary 0x54, and the physical values used by km.controller_axes / km.controller_buttons) now retries internally up to 32 times when the state is being updated at the same moment, instead of failing immediately. Replies and error codes are unchanged; software only sees fewer rejected reads. Mouse and keyboard commands are unchanged from V4.105.
V4.107 — test
Test build: fixes the stick-translation anti-deadzone setting that could not be read or saved; reading the physical controller state from software is much less likely to be refused. Includes everything in V4.106. Not for general release yet.
Fixes the anti-deadzone setting of the two mouse/keyboard-to-stick translation channels, which has answered with error (0xFF) since V4.023 because the management connection (0x3E) routed the 2- and 3-byte 0x1C record to the wrong handler. [0x1C, channel] reads and [0x1C, channel, percent] stages a value; channel is 0 or 1 and percent 0 to 50 (percent of full stick travel). The reply is 4 bytes [0x1C, channel, percent, pending]: percent is the current value (0 when never set, meaning off) and pending is 1 until the setting has been written to flash. Out-of-range channel or percent still answers 0xFF, and the same ready/error gating as records 0x1A/0x1B applies. 0x1C with other lengths (6 or 7 bytes), records 0x1A/0x1B/0x1D/0x1E and the stored settings format are unchanged.
Reading the physical controller state (km.controller_physical / binary 0x54, and the physical values used by km.controller_axes / km.controller_buttons) is much less likely to be refused while the state is being updated. The firmware now prepares the new state before opening the update window, so the window is only a few atomic writes long, and the reader retries with short pauses for up to about 100 microseconds instead of 32 immediate retries. Replies and error codes are unchanged; an empty state is still refused immediately. Software is unaffected except for fewer rejected reads and, worst case, about 100 microseconds extra latency on one reply. Diagnostics only: snapshot kind 14 (format 2) grows from 80 to 85 32-bit words, the last five being cumulative read-failure counters; software that parses this snapshot must accept the longer record. Mouse and keyboard commands are unchanged from V4.106.
V4.108 — formerly official / superseded
Game controllers now pass through MAKCU with much lower added delay: the controller is polled every 1 ms (this can be switched off in Toolkit 1.15.68 or later; switching it off takes effect after replugging the USB3 device or restarting MAKCU). Fixes the stick anti-deadzone setting that could not be read or saved. Software reading of the physical controller state is refused far less often. Includes all earlier fixes; saved settings and bootloaders are unchanged.
Compatibility change to the 400-byte device tuning image read and written through the management connection (0x3E) record 0x1D. READ (subcommand 01) now returns bytes 398 and 399 as 00/00 on the wire for any chunk that covers them, instead of the 0xA6 tag plus current value introduced in V4.106; software that requires these two bytes to be zero (all Toolkit 1.x versions) can open the tuning image again. The controller 1 ms polling switch is now queried with a new read-only subcommand: request [0x1D, 0x07] (exactly 2 bytes), reply 9 bytes [0x1D, 0x07, 0x00, revision (4 bytes), 0xA6, value] where value is 0 (off) or 1 (on). It does not open or touch a staging transaction and does not require a controller to be attached. Status codes follow the record: 2 busy and 6 storage are passed through, a request of another length is rejected as invalid (4), and 5 (unsupported) is answered if the stored image does not carry a valid switch. Firmware up to V4.107 does not know subcommand 07 and answers status 3 (stale), which software can use to detect this build; V4.106 and V4.107 can additionally be recognised by READ returning 0xA6 at byte 398. Write semantics are unchanged: 0xA6/00 or 0xA6/01 in bytes 398/399 sets the switch, 00/00 leaves it unchanged, so reading the whole image and writing it back keeps the current setting. The revision value still reflects the internal switch state. Mouse and keyboard commands are unchanged from V4.107.
V4.109 — test
Test build: when a mouse or other device on USB3 answers the first descriptor request only partly, MAKCU now resets it once more with a longer pause before giving up, and records what the device sent so support can see why it was not recognized. Devices that are already recognized are not affected. Includes everything in V4.108. Not yet tested on hardware.
V4.110 — test
Lab test build (not for customers): adds a temporary switch for the mouse 1 ms polling rewrite so it can be compared on and off. On by default and identical to V4.108; the switch is not saved. Not yet tested on hardware.
Lab test build only. Record 0x1D of the management connection (0x3E) gains subcommand 08, a temporary switch for the mouse 1 ms polling rewrite introduced in V4.108. Request [0x1D, 0x08] queries it; [0x1D, 0x08, value] sets it, where value is 0 (present the mouse with its native polling interval) or 1 (rewrite to 1 ms, the default). The reply is 5 bytes [0x1D, 0x08, 0x00, allowed, presented]: allowed is the current switch value and presented is 1 when the mouse is currently presented to the PC with the rewritten 1 ms interval. A request of another length or a value above 1 is answered with the 3-byte reply [0x1D, 0x08, 0x03]. The switch lives in RAM only: it is not saved by SAVE, does not change the tuning revision, and returns to 1 after power-off. Changing it re-enumerates the USB1 device once when a mouse whose native interval is above 1 ms is attached. With the default value the firmware behaves exactly like V4.108; all other commands are unchanged.
V4.111 — test
Lab test build (not for customers): while software injection is active, MAKCU no longer slows down how often it reads the physical mouse, which removes the extra jitter seen with automatic interpolation or very high command rates. Controllers and keyboards are unchanged. Not yet tested on hardware.
V4.112 — test
Test build: some 2.4 GHz receivers that fail to answer the first long configuration request through USB3 are now asked again in two shorter steps, so they can be recognized. Devices that already work are not affected. Includes everything in V4.108. Not yet tested on hardware.
V4.113 — diagnostic test
Lab diagnostic build (not for customers): V4.111 plus internal counters for the mouse polling investigation. Not yet tested on hardware.
Lab diagnostic build only. Record 0x1D of the management connection (0x3E) gains subcommand 09, which reads internal diagnostic counters used for laboratory investigation of mouse polling. Its request and reply layout is internal, may change between builds, and is not intended for applications. Requests that do not start with [0x1D, 0x09] are handled exactly as in V4.111, and all other commands are unchanged. Builds without the lab diagnostics do not have this subcommand.
V4.114 — test
Lab test build (not for customers): physical mouse reports are confirmed between the two chips sooner while software injection is active, so the physical mouse keeps being read at full rate. Includes internal diagnostic counters. Not yet tested on hardware.
V4.115 — test
Lab evidence build (not for customers): early version of the V4.119 fix, superseded by V4.119.
V4.116 — diagnostic test
Lab diagnostic build (not for customers): automatic recovery when the physical mouse stops being read, plus extra internal diagnostics. Not yet tested on hardware.
Lab diagnostic build only. The internal diagnostic subcommand 09 of record 0x1D (management connection 0x3E), introduced in V4.113, can additionally return a read-only snapshot of the physical mouse input state for laboratory analysis. The layout remains internal and is not intended for applications. All other commands are unchanged.
V4.117 — diagnostic test
Lab diagnostic build (not for customers): V4.116 plus more internal diagnostics for the case where the mouse is not detected again after a restart. Not yet tested on hardware.
Lab diagnostic build only. The internal diagnostic subcommand 09 of record 0x1D (management connection 0x3E) can additionally return read-only snapshot pages describing the downstream USB host state and its automatic recovery counters, for laboratory analysis. The layout remains internal and is not intended for applications. All other commands are unchanged.
V4.118 — diagnostic test
Lab diagnostic build (not for customers): V4.117 plus an internal event log for the case where the mouse is not detected again after a restart. Not yet tested on hardware.
Lab diagnostic build only. The internal diagnostic subcommand 09 of record 0x1D (management connection 0x3E) can additionally return read-only pages of a small internal event log of the downstream USB host, for laboratory analysis. The layout remains internal and is not intended for applications. All other commands are unchanged.
V4.119 — test
Withdrawn test build (not for customers): replaced by V4.122.
V4.120 — diagnostic test
Lab diagnostic build (not for customers): V4.118 plus internal timing of how long the mouse input waits for confirmation between the two MAKCU chips, and extra USB controller register samples for the case where the mouse stops being read. Not yet tested on hardware.
Lab diagnostic build only. Based on V4.118. The internal diagnostic subcommand 09 of record 0x1D (management connection 0x3E) can additionally return read-only timing of how long downstream mouse input waits for confirmation between the two MAKCU chips, and a second delayed sample of USB controller registers, for laboratory analysis. The layout remains internal and is not intended for applications. All other commands are unchanged.
V4.121 — test
Withdrawn test build (not for customers): replaced by V4.122.
V4.122 — formerly official / superseded
If the USB3 device stops working after MAKCU restarts while it stays plugged in, MAKCU now reconnects it by itself (up to three tries, about half a second apart) instead of leaving it dead until you unplug it. The mouse also recovers by itself when its input briefly stops after a lost internal acknowledgement, and unplugging a USB3 device can no longer leave MAKCU waiting indefinitely. Physical mouse input under high-rate injection is the same as V4.108. Includes all earlier fixes; saved settings and bootloaders are unchanged.
V4.123 — test
Test build based on V4.122: if your mouse or other USB3 device suddenly stops responding while it stays plugged in (the kind of freeze that previously needed an unplug), MAKCU now notices within about two seconds and reconnects it by itself, usually in about three seconds in total. Idle devices are checked only with a standard status request every 30 seconds; nothing is written to them. Everything else is the same as V4.122.
V4.124 — test
Test build based on V4.122: if your mouse or other USB3 device suddenly stops responding while it stays plugged in (the kind of freeze that previously needed an unplug), MAKCU now notices within about a second and reconnects it by itself, usually in three to four seconds in total, even when it happens again shortly after. Devices are only checked with a standard status request; nothing is written to them. Everything else is the same as V4.122.
V4.125 — test
Test build based on V4.122: if your mouse or other USB3 device suddenly stops responding while it stays plugged in (the kind of freeze that previously needed an unplug), MAKCU now notices within about a second and reconnects it by itself, usually in three to four seconds in total, including when it happens several times in a row. If a device still does not come back after repeated reconnects, MAKCU pauses these attempts for ten minutes. Devices are only checked with a standard status request; nothing is written to them. Everything else is the same as V4.122.
V4.126 — official
V4.126 preserves the V4.122 command names, opcodes, parameters and reply formats. Movement pacing with the default AUTO interpolation is improved while software sends mouse movement. Saved settings and bootloaders are unchanged.
V4.501 — test
Internal lab test build (controller latency): the controller input endpoint is presented to the PC with a 1 ms polling interval. Not for customer use.
V4.502 — test
Internal lab test build (controller latency, second attempt): the controller input endpoint is presented to the PC with a 1 ms polling interval, now also for controllers such as DualSense. Not for customer use.
MAKXD firmware (0.2.0+): behaves like MAKCU V4 here: queries answer result\r\n>>> and repeat the command only with km.echo(1) (earlier MAKXD firmware always repeated it); km.left()…km.side2() answer 0–3 and text km.buttons(1) streams one mask byte per change; stick +Y is down on every controller family, including the axis mask modes (earlier MAKXD passed Xbox-protocol/XInput Y through, positive up); mouse/keyboard-to-controller translation is off by default, also on devices upgraded without saved settings; third-party Xbox-protocol (GIP) and XInput pads are recognised by their interface, and generic HID controllers take their right stick and triggers from the report descriptor, with any 16-bit range. MAKXD version numbers: up to V24 they are Vn; from 0.1.0 major.minor.patch, reported as major×10000 + minor×100 + patch (0.2.0 is 200), so numeric comparisons with the old releases keep working.
Legacy API (ASCII)
km. and end withCRLF followed by the prompt>>> .\r\n>>> .- Command format: Start with . and end with ). The km. prefix is no longer required.
- Other values (such as km, \r\n, etc.) are ignored. Example: .move(1,1,)
- Optional binary frame: DE AD <lenLE:2> <ASCII or binary payload>
- Format: km.payload\r\n>>> (the km. prefix is retained for compatibility)
- Setters echo the input as ACK unless suppressed byecho(0).
- Some streaming replies carry binary after the km. prefix:km.mouse<8 bytes> andkm.buttons<1-byte mask>. Lines still terminate with CRLF and the prompt.
Mouse
Click Scheduling (SET)
km.click(1,3) >>>
Echo ACK.
turbo([button[,delay_ms]]) — GET/SET
Enable rapid-fire mode for mouse buttons. When the button is held down, it automatically triggers rapid press/release cycles at the specified interval. Multiple buttons can have turbo enabled simultaneously, each with its own delay setting.
- button: 1-5 (mouse buttons: 1=left, 2=right, 3=middle, 4=side1, 5=side2), 0=disable all turbo
- delay_ms: 1-5000ms (0=disable). If omitted, uses random 35-75ms. The delay is the time between each press/release toggle (e.g., 500ms = press for 500ms, release for 500ms, repeat)
- Delay is automatically rounded to the mouse endpoint's bInterval for USB synchronization
- turbo() - Returns only active turbo settings as (m1=200, m2=400) (only shows what's set, not zeros)
- turbo(button) - Sets turbo with random 35-75ms delay (auto-rounded to bInterval)
- turbo(button, delay_ms) - Sets turbo with specified delay (auto-rounded to bInterval)
- turbo(button, 0) - Disables turbo for that specific button
- turbo(0) - Disables all turbo
km.turbo(1, 500) >>>
km.turbo(2, 250) >>>
km.turbo(1) >>>
km.turbo() >>>
Mouse Movement
move(dx,dy[,segments[,cx1,cy1[,cx2,cy2]]]) — SET
dx,dy: relative move distance; segments: segment count (optional, default 1, max 512); cx1,cy1,cx2,cy2: cubic Bézier control points (optional)
km.move(10,-3) >>>
km.move(100,50,8,40,25,80,10) >>>
Echo ACK.
moveto(x,y[,segments[,cx1,cy1[,cx2,cy2]]]) — SET
Move pointer to absolute position. Internally calculates the needed x,y movement to reach the requested position on the screen. Parameters align with km.move().
x,y: absolute coordinates; segments: segment count (optional, default 1, max 512); cx1,cy1,cx2,cy2: cubic Bézier control points (optional)
km.moveto(640,360) >>>
km.moveto(100,50,8,40,25,80,10) >>>
Echo ACK.
wheel(delta) — SET
Windows does not allow multiple scroll steps in a single command. The delta value is clamped to ±1 step (positive for scroll up, negative for scroll down). Values greater than 1 are treated as 1, values less than -1 are treated as -1.
km.wheel(-1) >>>
km.wheel(1) >>>
Echo ACK. Note: km.wheel(-5) will only scroll down 1 step, km.wheel(5) will only scroll up 1 step.
pan([steps]) — GET/SET
km.pan(3) >>>
tilt([steps]) — GET/SET
km.tilt(2) >>>
getpos() — GET
km.getpos() >>> km.getpos(123,456) >>>
Returns current pointer position as (x,y).
silent(x,y) — SET
km.silent(400,300) >>>
Echo ACK.
Mouse Advanced
mo(buttons,x,y,wheel,pan,tilt) — SET
Send complete raw mouse frame (SET only, no GET). (0) clears all; x,y,wheel,pan,tilt are one-shots; button mask mirrors button states.
km.mo(1,10,5,0,0,0) >>>
lock_<target>(state) — GET/SET
Lock button or axis. The target is part of the command name, not a parameter. state: 1=lock, 0=unlock. Call with `()` to read lock state.
Buttons: ml/mm/mr/ms1/ms2
- ml - Left mouse button
- mm - Middle mouse button
- mr - Right mouse button
- ms1 - Side button 1
- ms2 - Side button 2
Axes: mx/my/mw/mx+/mx-/my+/my-/mw+/mw-
- mx/my/mw - Full lock (blocks all movement in that axis)
- mx+/my+/mw+ - Positive direction lock (blocks positive movement only)
- mx-/my-/mw- - Negative direction lock (blocks negative movement only)
km.lock_mx() >>> km.lock_mx(1) >>>
Returns: 1=locked, 0=unlocked
km.lock_mx(1) >>>
Lock all X-axis movement
km.lock_mx+(1) >>>
Lock only positive X movement (right)
km.lock_mx-(1) >>>
Lock only negative X movement (left)
km.lock_my(1) >>>
Lock all Y-axis movement
km.lock_mw(1) >>>
Lock all wheel movement
km.lock_mw+(1) >>>
Lock only positive wheel movement (scroll up)
km.lock_mw-(1) >>>
Lock only negative wheel movement (scroll down)
km.lock_ml(1) >>>
Lock left mouse button
catch_<target>(mode) — GET/SET
Enable catch on a locked button. The target is part of the command name, not a parameter. Note: Catch only works for buttons, not axes. Requires corresponding km.lock_<target> to be set first.
km.catch_ml() >>>
Use `()` to query catch state
km.catch_ml(1) >>>
Enable manual catch for left mouse button
km.catch_ml(0) >>>
Enable auto catch for left mouse button
Mouse Remap (Physical)
remap_axis([inv_x,inv_y,swap]) — GET/SET
Remap mouse axes (physical only). Set all three flags at once.
- () - Show current settings, e.g., (invert_x=0,invert_y=1,swap_xy=0)
- (0) - Reset all axis remaps
- (inv_x,inv_y,swap) - Set all three flags (0 or 1)
km.remap_axis() >>>
km.remap_axis(0,1,0) >>>
km.remap_axis(0) >>>
invert_x([state]) — GET/SET
km.invert_x(1) >>>
invert_y([state]) — GET/SET
km.invert_y(1) >>>
swap_xy([state]) — GET/SET
km.swap_xy(1) >>>
Keyboard Commands
down(key) — SET
km.down('shift')
>>> up(key) — SET
km.up("ctrl")
>>> press(key[,hold_ms[,rand_ms]]) — SET
- key: HID code (0-255) or quoted key name
- hold_ms: Optional hold duration in milliseconds. If omitted, uses random 35-75ms (value is logged)
- rand_ms: Optional randomization range added to hold_ms (0 = no randomization)
- Note: Duration is automatically rounded to the keyboard's bInterval for USB synchronization
km.press('a')
>>> Press 'a' with random 35-75ms hold (logged)
km.press('d', 50)
>>> Press 'd' with exactly 50ms hold
km.press('d', 50, 10)
>>> Press 'd' with 50ms base + random 0-10ms
string(text) — SET
Type an ASCII string using queued key presses with automatic timing. Automatically handles Shift for uppercase letters and symbols. Uses timed queue system (no timer slot limits).
- text: ASCII string to type (max 256 characters)
- Each character uses random 35-75ms hold time (internal timing, not logged)
- Inter-character delay: 10ms between characters
km.string("Hello")
>>> km.string("Test123!")
>>> km.string("hello")
>>> init() — SET
km.init() >>>
isdown(key) — GET
km.isdown("ctrl")
>>> km.isdown(1)
>>> Returns 1 if key is down, 0 if released.
disable([key1,key2,...] | [key,mode]) — GET/SET
Disable/enable keyboard keys to block them from being sent to the host.
- () - List all currently disabled keys in format (a,c,f,) (shows key names when available, HID codes otherwise)
- (key1,key2,...) - Disable multiple keys at once. Keys can be HID codes or quoted key names (e.g., 'a', 'f1', 'ctrl')
- (key,mode) - Enable or disable a single key. mode: 1=disable, 0=enable
km.disable() >>> km.disable(a,c,f,) >>>
km.disable('a','c','f')
>>> km.disable('f1','alt','win')
>>> km.disable('a', 0)
>>> km.disable('a', 1)
>>> km.disable(4,6,9) >>>
mask(key[,mode]) — GET/SET
km.mask('a',1)
>>> remap(source,target) — GET/SET
km.remap('a','b')
>>> km.remap('a',0)
>>> Complete Keyboard Key Reference
Complete keyboard key reference table. All keys support HID codes or string names. Single character letters are case-sensitive (lowercase types lowercase, uppercase automatically uses Shift to type uppercase). Multi-character special keys are case-insensitive.
| Key Names | HID | Normal Output | Shift Output |
|---|---|---|---|
| 'a' | 4 | a | A |
| 'b' | 5 | b | B |
| 'c' | 6 | c | C |
| 'd' | 7 | d | D |
| 'e' | 8 | e | E |
| 'f' | 9 | f | F |
| 'g' | 10 | g | G |
| 'h' | 11 | h | H |
| 'i' | 12 | i | I |
| 'j' | 13 | j | J |
| 'k' | 14 | k | K |
| 'l' | 15 | l | L |
| 'm' | 16 | m | M |
| 'n' | 17 | n | N |
| 'o' | 18 | o | O |
| 'p' | 19 | p | P |
| 'q' | 20 | q | Q |
| 'r' | 21 | r | R |
| 's' | 22 | s | S |
| 't' | 23 | t | T |
| 'u' | 24 | u | U |
| 'v' | 25 | v | V |
| 'w' | 26 | w | W |
| 'x' | 27 | x | X |
| 'y' | 28 | y | Y |
| 'z' | 29 | z | Z |
km.press('a') # types "a" (HID 4)
km.press('A') # types "A" (HID 4 + Shift)| Key Names | HID | Normal Output | Shift Output |
|---|---|---|---|
| '1' | 30 | 1 | ! |
| '2' | 31 | 2 | @ |
| '3' | 32 | 3 | # |
| '4' | 33 | 4 | $ |
| '5' | 34 | 5 | % |
| '6' | 35 | 6 | ^ |
| '7' | 36 | 7 | & |
| '8' | 37 | 8 | * |
| '9' | 38 | 9 | ( |
| '0' | 39 | 0 | ) |
km.press('1') # types "1" (HID 30)
km.down('shift')
km.press('1') # types "!" (HID 30 + Shift)
km.up('shift')| Key Names | HID | Normal Output | Shift Output |
|---|---|---|---|
| 'enter', 'return' | 40 | Enter | - |
| 'escape', 'esc' | 41 | Escape | - |
| 'backspace', 'back' | 42 | Backspace | - |
| 'tab' | 43 | Tab | - |
| 'space', 'spacebar' | 44 | - |
km.press('enter') # Enter key (HID 40)| Key Names | HID | Normal Output | Shift Output |
|---|---|---|---|
| 'minus', 'dash', 'hyphen' | 45 | - | _ |
| 'equals', 'equal' | 46 | = | + |
| 'leftbracket', 'lbracket', 'openbracket' | 47 | [ | { |
| 'rightbracket', 'rbracket', 'closebracket' | 48 | ] | } |
| 'backslash', 'bslash' | 49 | \ | | |
| 'nonus_hash' | 50 | # | - |
| 'semicolon', 'semi' | 51 | ; | : |
| 'quote', 'apostrophe', 'singlequote' | 52 | ' | " |
| 'grave', 'backtick', 'tilde' | 53 | ` | ~ |
| 'comma' | 54 | , | < |
| 'period', 'dot' | 55 | . | > |
| 'slash', 'forwardslash', 'fslash' | 56 | / | ? |
| 'capslock', 'caps' | 57 | Caps Lock | - |
km.press('minus') # types "-" (HID 45)
km.down('shift')
km.press('minus') # types "_" (HID 45 + Shift)
km.up('shift')| Key Names | HID | Normal Output | Shift Output |
|---|---|---|---|
| 'f1' | 58 | F1 | - |
| 'f2' | 59 | F2 | - |
| 'f3' | 60 | F3 | - |
| 'f4' | 61 | F4 | - |
| 'f5' | 62 | F5 | - |
| 'f6' | 63 | F6 | - |
| 'f7' | 64 | F7 | - |
| 'f8' | 65 | F8 | - |
| 'f9' | 66 | F9 | - |
| 'f10' | 67 | F10 | - |
| 'f11' | 68 | F11 | - |
| 'f12' | 69 | F12 | - |
km.press('f1') # F1 key (HID 58)| Key Names | HID | Normal Output | Shift Output |
|---|---|---|---|
| 'printscreen', 'prtsc', 'print' | 70 | Print Screen | - |
| 'scrolllock', 'scroll' | 71 | Scroll Lock | - |
| 'pause', 'break' | 72 | Pause/Break | - |
| 'insert', 'ins' | 73 | Insert | - |
| 'home' | 74 | Home | - |
| 'pageup', 'pgup' | 75 | Page Up | - |
| 'delete', 'del' | 76 | Delete | - |
| 'end' | 77 | End | - |
| 'pagedown', 'pgdown', 'pgdn' | 78 | Page Down | - |
| 'right', 'rightarrow' | 79 | Right Arrow | - |
| 'left', 'leftarrow' | 80 | Left Arrow | - |
| 'down', 'downarrow' | 81 | Down Arrow | - |
| 'up', 'uparrow' | 82 | Up Arrow | - |
| 'numlock', 'num' | 83 | Num Lock | - |
km.press('home') # Home key (HID 74)| Key Names | HID | Normal Output | Shift Output |
|---|---|---|---|
| 'kpdivide', 'npdivide' | 84 | / | - |
| 'kpmultiply', 'npmultiply' | 85 | * | - |
| 'kpminus', 'npminus' | 86 | - | - |
| 'kpplus', 'npplus' | 87 | + | - |
| 'kpenter', 'npenter' | 88 | Enter | - |
| 'kp1', 'np1' | 89 | 1 | - |
| 'kp2', 'np2' | 90 | 2 | - |
| 'kp3', 'np3' | 91 | 3 | - |
| 'kp4', 'np4' | 92 | 4 | - |
| 'kp5', 'np5' | 93 | 5 | - |
| 'kp6', 'np6' | 94 | 6 | - |
| 'kp7', 'np7' | 95 | 7 | - |
| 'kp8', 'np8' | 96 | 8 | - |
| 'kp9', 'np9' | 97 | 9 | - |
| 'kp0', 'np0' | 98 | 0 | - |
| 'kpperiod', 'kpdot', 'npperiod', 'npdot' | 99 | . | - |
km.press('kp1') # Numpad 1 (HID 89)| Key Names (aliases) | HID | Normal Output | Shift Output |
|---|---|---|---|
| 'leftctrl', 'lctrl', 'leftcontrol', 'lcontrol', 'ctrl', 'control' | 224 | Left Ctrl | - |
| 'leftshift', 'lshift', 'shift' | 225 | Left Shift | - |
| 'leftalt', 'lalt', 'alt' | 226 | Left Alt | - |
| 'leftgui', 'lgui', 'leftwin', 'lwin', 'gui', 'win', 'windows', 'super', 'meta', 'cmd', 'command' | 227 | Left GUI | - |
| 'rightctrl', 'rctrl', 'rightcontrol', 'rcontrol' | 228 | Right Ctrl | - |
| 'rightshift', 'rshift' | 229 | Right Shift | - |
| 'rightalt', 'ralt' | 230 | Right Alt | - |
| 'rightgui', 'rgui', 'rightwin', 'rwin', 'rightwindows' | 231 | Right GUI | - |
Note: Generic names ('ctrl', 'shift', 'alt', 'gui') default to the left variant
km.down('ctrl') # Left Ctrl (HID 224)
km.up('ctrl')Streaming
keyboard([mode[,period]]) — GET/SET
Stream keyboard keys with human-readable names. Mode 1=raw (physical input), 2=constructed frame (after remapping/masking); period clamped 1-1000 frames.
Output format: keyboard(raw,shift,'h') or keyboard(constructed,ctrl,shift,'a') - modifiers and keys shown as names (e.g., 'shift', 'ctrl', 'h', 'a') instead of HID numbers.
km.keyboard(2,50) >>>
km.keyboard(1,100) >>>
axis([mode[,period_ms]]) — GET/SET
Output format: raw(x,y,w) or mut(x,y,w) where w is the wheel delta.
km.axis(1,25) >>>
km.axis(2,10) >>>
mouse([mode[,period_ms]]) — GET/SET
km.mouse(2,25) >>>
km.mouse(1,10) >>>
Device emits 8-byte binary frame (x,y as int16):
km.mouse<8 bytes> >>>
Misc
help() — GET
km.help() >>>
info() — GET
km.info() >>>
version() — GET
km.version() >>>
device() — GET
km.device() >>>
fault() — GET
Returns stored parse fault information including ESP32 MAC address, failed endpoint address, interface number, failure reason, and raw HID descriptor bytes. Useful for debugging devices that fail to parse.
km.fault() >>>
reboot() — SET
km.reboot() >>>
serial([text]) — GET/SET
Used to change the serial number of an attached mouse or keyboard while connected to MAKCU. This change is persistent and remains even after future firmware changes. Note: MAKCU does not allow changing serial numbers for a device that does not contain one.
km.serial()
>>> km.serial("MAKCU001")
>>> Returns current serial number.
km.serial("MAKCU001")
>>> km.serial(0) >>>
Echo ACK. The change is persistent across firmware updates.
log([level]) — GET/SET
km.log(3) >>>
echo([enable]) — GET/SET
km.echo(1) >>>
baud([rate]) — GET/SET
km.baud(115200) >>>
km.baud(921600) >>>
Applies immediately; host must re-open serial at new speed.
bypass([mode]) — GET/SET
Blocks the mouse endpoint from being sent to USB 1, all other endpoints will pass without issues. Works without USB device attached.
- () - Query current state
- (0) - Off (restore USB write, disable telemetry)
- (1) - Mouse bypass (enables km.mouse(1,1) and disables USB write)
- (2) - Keyboard bypass (enables km.keyboard(1,1) and disables USB write)
km.bypass() >>> km.bypass(0) >>>
Warns (no mouse) or (no keyboard) if device not detected
km.bypass(1) >>>
km.bypass(2) >>>
km.bypass(0) >>>
hs([enable]) — GET/SET
km.hs(1) >>>
led([target[,mode[,times,delay_ms]]]) — GET/SET
Control LED and RGB state for both device and host sides. Supports query, control, and flash functionality.
- led() - Query device LED state (backward compatible)
- led(1) - Query device LED state
- led(2) - Query host LED state (via UART)
- Returns: (device,off), (device,on), (device,slow_blink), (device,fast_blink), (host,off), (host,on), etc.
- led(0) - Turn device LED off (backward compatible)
- led(1) - Turn device LED on (backward compatible, but conflicts with query - use led(1,1) for explicit control)
- led(1, 0) - Turn device LED off
- led(1, 1) - Turn device LED on
- led(2, 0) - Turn host LED off (via UART)
- led(2, 1) - Turn host LED on (via UART)
- Target: 1 = device LED, 2 = host LED (USB host side, controlled via UART)
- Mode: 0 = off, 1 = on
- led(1, times, delay_ms) - Flash device LED (e.g., led(1, 3, 200) = 3 flashes at 200ms)
- led(2, times, delay_ms) - Flash host LED (e.g., led(2, 5, 100) = 5 flashes at 100ms)
- Flash parameters: times = number of flashes (default 1), delay_ms = delay between flashes in milliseconds (default 100ms, max 5000ms)
km.led() >>> km.led(device,on) >>>
km.led(2) >>> km.led(host,off) >>>
km.led(1, 0) >>>
km.led(2, 1) >>>
km.led(1, 3, 200) >>>
km.led(2, 5, 100) >>>
release([timer_ms]) — GET/SET
Auto-release monitoring system. Continuously monitors independent lock, button, and key states. When the timer expires, it releases only the corresponding values that remain active (not all at once). This setting is persistently saved to storage and automatically enabled on startup/boot. `()` get status (0=disabled, else time ms); `(timer_ms)` set timer 500-300000ms (5 min), (0) disables.
km.release() >>>
km.release(5000) >>>
km.release(0) >>>
screen([W,H]) — GET/SET
km.screen(1920,1080) >>>
km.screen(2560,1440) >>>
Baud Rate Change (Legacy)
DE AD 05 00 A5 00 C2 01 00
Breakdown: DE AD | 05 00(len=5) | A5 (cmd) |00 C2 01 00 (115200 LE)
V2 API (Binary)
- Frame format: [0x50] [CMD] [LEN_LO] [LEN_HI] [PAYLOAD...]
- 0x50 - Frame start byte (fixed)
- CMD - Command byte (0x01-0xFF)
- LEN_LO / LEN_HI - Payload length in bytes (little-endian, 16-bit)
- PAYLOAD - Command-specific data (variable length)
- Setters: Return [0x50] [CMD] [LEN_LO] [LEN_HI] [status:u8] where 0x00 = OK (success) and 0x01 = ERR (error)
- Getters: Return [0x50] [CMD] [LEN_LO] [LEN_HI] [PAYLOAD...] with raw value bytes or structured data
- Streaming: Return raw HID frame bytes (no text formatting) as [0x50] [CMD] [LEN_LO] [LEN_HI] [PAYLOAD...]
- Data Types: Multi-byte values use little-endian byte order. Example: Query baud rate (command 0xB1, no payload) returns [0x50] [0xB1] [0x04] [0x00] [0x00] [0xC2] [0x01] [0x00] where 0x00C20100 = 115200 (little-endian)
- In subsequent command examples, we show only: [CMD] [PAYLOAD...]
Mouse
Click Scheduling (SET)
[0x04] [button:u8] [count:u8] [delay_ms:u8] Response: [0x04] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
turbo() (GET/SET)
[0x17] Response: [0x17] [btn1-5_delay:u16×5]
Returns 10 bytes: 5 delays (u16 each) for buttons 1-5.
[0x17] [button:u8] [delay_ms:u16] Response: [0x17] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
Mouse Movement
move(dx,dy[,segments[,cx1,cy1]]) — SET (0x0D)
[0x0D] [x:i16] [y:i16] [segments:u8] [cx1:i8] [cy1:i8] Response: [0x0D] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
moveto(x,y[,segments[,cx1,cy1[,cx2,cy2]]]) — SET (0x0E)
[0x0E] [x:i16] [y:i16] [segments:u8] [cx1:i16] [cy1:i16] [cx2:i16] [cy2:i16] Response: [0x0E] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
wheel(delta) — SET (0x18)
[0x18] [delta:i8] Response: [0x18] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
pan([steps]) — GET/SET (0x0F)
[0x0F] Response: [0x0F] [pending:i8]
[0x0F] [steps:i8] Response: [0x0F] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
swap_xy([enable]) — GET/SET (0x15)
[0x15] Response: [0x15] [enabled:u8]
Returns 0=disabled, 1=enabled.
[0x15] [enable:u8] Response: [0x15] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
tilt([steps]) — GET/SET (0x16)
[0x16] Response: [0x16] [pending:i8]
[0x16] [steps:i8] Response: [0x16] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
silent(x,y) — SET (0x14)
[0x14] [x:i16] [y:i16] Response: [0x14] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
Mouse Advanced
catch_<target>([mode]) — GET/SET (0x03)
[0x03] Response: [0x03] [mode:u8]
[0x03] [mode:u8] Response: [0x03] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
getpos() — GET (0x05)
[0x05] Response: [0x05] [x:i16] [y:i16]
Returns current pointer position as int16 coordinates.
invert_x([enable]) — GET/SET (0x06)
[0x06] Response: [0x06] [enabled:u8]
Returns 0=disabled, 1=enabled.
[0x06] [enable:u8] Response: [0x06] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
invert_y([enable]) — GET/SET (0x07)
[0x07] Response: [0x07] [enabled:u8]
Returns 0=disabled, 1=enabled.
[0x07] [enable:u8] Response: [0x07] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
lock_<target>([state]) — GET/SET (0x09)
[0x09] Response: [0x09] [locked:u8]
Returns 1=locked, 0=unlocked.
[0x09] [state:u8] Response: [0x09] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
mo(buttons,x,y,wheel,pan,tilt) — SET (0x0B)
[0x0B] [buttons:u8] [x:i16] [y:i16] [wheel:i8] [pan:i8] [tilt:i8] Response: [0x0B] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
remap_axis([inv_x,inv_y,swap]) — GET/SET (0x19)
- () - Query current settings
- (0) - Reset all axis remaps
- (inv_x,inv_y,swap) - Set all three flags (each 0 or 1)
[0x19] Response: [0x19] [inv_x:u8] [inv_y:u8] [swap:u8]
Returns 3 bytes: inv_x, inv_y, swap (each 0=disabled, 1=enabled).
[0x19] [inv_x:u8] [inv_y:u8] [swap:u8] Response: [0x19] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error. Sets all three flags atomically.
[0x19] [0x00] Response: [0x19] [status:u8]
Reset all axis remaps (sets all flags to 0).
Keyboard
disable([key1,key2,...] | [key,mode]) — GET/SET (0xA1)
[0xA1] Response: [0xA1] [disabled_keys:u8×N]
Returns list of disabled HID codes.
[0xA1] [key1:u8]...[keyN:u8] Response: [0xA1] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
down(key) — SET (0xA2)
[0xA2] [key:u8] Response: [0xA2] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
init() — SET (0xA3)
[0xA3] Response: [0xA3] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
isdown(key) — GET (0xA4)
[0xA4] [key:u8] Response: [0xA4] [is_down:u8]
Returns 0=up, 1=down.
mask(key[,mode]) — SET (0xA6)
[0xA6] [key:u8] [mode:u8] Response: [0xA6] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
press(key[,hold_ms[,rand_ms]]) — SET (0xA7)
[0xA7] [key:u8] [hold_ms:u8] [rand_ms:u8] Response: [0xA7] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
remap(source,target) — SET (0xA8)
[0xA8] [source:u8] [target:u8] Response: [0xA8] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
string(text) — SET (0xA9)
[0xA9] [text:u8×N] Response: [0xA9] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
up(key) — SET (0xAA)
[0xAA] [key:u8] Response: [0xAA] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
Streaming
axis([mode[,period_ms]]) — GET/SET (0x01)
[0x01] Response: [0x01] [mode:u8] [period:u8]
[0x01] [mode:u8] [period:u8] Response: [0x01] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
Device emits 6-byte binary frame when axes change:
[0x01] [dx:i16] [dy:i16] [wheel:i8]
mouse([mode[,period_ms]]) — GET/SET (0x0C)
[0x0C] Response: [0x0C] [mode:u8] [period:u8]
[0x0C] [mode:u8] [period:u8] Response: [0x0C] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
Device emits 8-byte binary frame when mouse data changes:
[0x0C] [buttons:u8] [dx:i16] [dy:i16] [wheel:i8] [pan:i8] [tilt:i8]
keyboard([mode[,period_ms]]) — GET/SET (0xA5)
[0xA5] Response: [0xA5] [mode:u8] [period:u8]
[0xA5] [mode:u8] [period:u8] Response: [0xA5] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
Device emits 15-byte binary frame when keyboard data changes:
[0xA5] [modifiers:u8] [keys:u8×14]
Modifiers byte: bit flags for ctrl, shift, alt, gui, etc. Keys array: up to 14 HID codes.
Misc
baud([rate]) — GET/SET (0xB1)
[0xB1] Response: [0xB1] [rate:u32]
Returns current baud rate as uint32 (little-endian).
[0xB1] [rate:u32] Response: [0xB1] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error. Change is persistent.
bypass([mode]) — GET/SET (0xB2)
[0xB2] Response: [0xB2] [mode:u8]
[0xB2] [mode:u8] Response: [0xB2] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
echo([enable]) — GET/SET (0xB4)
[0xB4] Response: [0xB4] [enabled:u8]
[0xB4] [enable:u8] Response: [0xB4] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error. When echo is disabled, most setter commands won't echo their input.
hs([enable]) — GET/SET (0xB7)
[0xB7] Response: [0xB7] [enabled:u8]
[0xB7] [enable:u8] Response: [0xB7] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error. Setting is persistent across reboots.
led([...]) — GET/SET (0xB9)
Query device: [0xB9] Query host: [0xB9] [0x02] Response: [0xB9] [target:u8] [state:u8]
State: 0=off, 1=on, 2=slow_blink, 3=fast_blink
Set: [0xB9] [target:u8] [mode:u8] Response: [0xB9] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
Flash: [0xB9] [target:u8] [times:u32] [delay_ms:u32] Response: [0xB9] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error. Controls both LED and RGB. Times: 1-255, delay_ms: 100-5000ms
log([level]) — GET/SET (0xBA)
[0xBA] Response: [0xBA] [level:u8]
[0xBA] [level:u8] Response: [0xBA] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
release([timer_ms]) — GET/SET (0xBC)
[0xBC] Response: [0xBC] [timer_ms:u32]
Returns 0 if disabled, else time in milliseconds.
[0xBC] [timer_ms:u32] Response: [0xBC] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
screen([W,H]) — GET/SET (0xBD)
[0xBD] Response: [0xBD] [width:i16] [height:i16]
[0xBD] [width:i16] [height:i16] Response: [0xBD] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error.
serial([text]) — GET/SET (0xBE)
[0xBE] Response: [0xBE] [serial:u8×N]
Returns current serial number as ASCII bytes.
[0xBE] [text:u8×N] Response: [0xBE] [status:u8]
Returns 0x00 (OK) on success, 0x01 (ERR) on error. The change is persistent across firmware updates.
device() — GET (0xB3)
[0xB3] Response: [0xB3] [type:u8]
Type: 0=none, 1=keyboard, 2=mouse
fault() — GET (0xB5)
[0xB5] Response: [0xB5] [parse_fault_t struct]
Returns parse_fault_t structure with MAC, endpoint, reason, and raw descriptor bytes.
info() — GET (0xB8)
[0xB8] Response: [0xB8] [field_count:u8] [fields...]
Returns structured binary data with system/device info key-value pairs. Device info cached after first fetch.
reboot() — SET (0xBB)
[0xBB] Response: [0xBB] [status:u8]
Always returns 0x00 (success). Device reboots after sending response.
version() — GET (0xBF)
[0xBF] Response: [0xBF] [version:u8×N]
Returns firmware version as ASCII bytes.