Repository navigation
v5.1.1 (internal development build)
Internal development build, never posted for download. Everything in it ships in 5.1.2, the build to install.
5.1.1 adds shift lockout, a setting that refuses the paddles while the car sits still at idle so a bumped paddle cannot put a gear in. It also makes the compressor droop correction safer, makes logging and settings saves more robust, and rebuilds large parts of the GCU Utility: a new Logs page with plain-language event cards, a Live Data dash, a status bar, and a Settings page where each setting is edited in place.
Shift lockout
- New shift lockout, on by default as
shift_lockout(CAN cars only). While the car sits still at idle with the throttle closed, the paddles are refused, so a bumped paddle cannot put a gear in while the car warms up or is pushed. Finding neutral from 1st or 2nd is not affected, and any missing or stale input turns the lockout off. - On a car with the dash's ClutchSW channel (
0x712byte 6) and a proven clutch switch (pressed once since power-on, orclutch_switch_fittedset to 1), the lockout arms whenever the clutch is out, and pulling the clutch lets the paddles shift. On a car with no proven clutch switch, it arms in a trusted Neutral and stays off once the car is in gear. - Ways out: hold the N button and pull a paddle to shift out of Neutral on any car, or pull either paddle three times within 5 seconds (any mix of up and down) to turn the lockout off until the next power cycle. A car with an auto clutch that idles in gear with the clutch out turns it off by itself after 2 seconds when the gear is measured. An auto-clutch car with no valid gear source should set
shift_lockoutto 0. - If the dash stops sending its frames, the clutch reading now goes stale after 300 ms instead of 5 seconds, so a stale "clutch released" reading cannot keep the paddles refused.
DUMP_STATUSreports the lockout asSHIFT_LOCKOUT, the flash log recordsSHIFT_BLOCK_LOCKOUTandSHIFT_LOCKOUT_ESCAPED, and the GCU Utility shows both settings.
Shifting and the gear sensor
- The compressor droop correction can no longer be set by one bad compressor reading, and it will not report a gear the reading does not settle. When the fixed correction and the learned correction disagree about which gear a reading means, the GCU refuses paddle shifts and neutral commands, stops an active neutral search, and logs
SHIFT_BLOCK_UNSETTLEDuntil the gear sensor confirms a reading. The car does not drop into passive mode. - A 1-2 or 2-1 that read its target but ran out of time before the settle dwell ended now gets the same
post_shift_validate_msbounce watch as a clean shift. A bounce that the retry rescues replaces the timeout it booked, so one shift records one verdict. - When a shift ends with no reading from the gear sensor, the reported gear now falls back to the CAN gear at once instead of staying at the previous shift's landing. Before, a second shift finishing within 200 ms of the first could be read as the first shift's gear for up to about 45 ms.
- Auto-downshift: letting go of the paddle in 1st or neutral during a walk now ends the walk cleanly (the next hold could fail to start a walk), and switching the feature off during a downshift and back on no longer counts that old downshift as a fresh one.
- A shift the GCU refuses (over-rev, bad CAN data, an inferred gear, no gear to go to) no longer throws away the previous shift's trace, and a neutral shift started while another shift is running is refused like every other start.
Settings and logging
- Each closed-loop shift now writes one outcome record, the final verdict. A shift that reached its gear, bounced out and failed the retry logs one failure whose reason starts with "bounce:", where before it logged both a success and a failure. Time-based shifts (no GP sensor, or passive mode) now log their own target and timeout on the start line.
- A session that spans more than 8 log files now lists and sends every file. Before, the session list and download stopped at the first 8 yet reported the transfer as complete, so later files could be pruned without ever being imported. This affects cars that ran 5.0.x boots between 5.1 boots.
- Logging holds up better when flash misbehaves. A failed delete of old sessions is retried on every later write until it works, so logs cannot grow past their flash budget. A failing prune or session index write is retried at most once every 30 seconds, and
DUMP_STATUSshows a stuck prune asLOG_PRUNE. Logging reports ready only after the boot header is written, and a boot whose flash log cannot start still loads your saved settings and car identity. RESET_CONSTSnow answersERR RESET_CONSTS_FAILEDwhen the saved settings file could not be removed or rewritten, or flash is not mounted. It used to answer OK regardless, so the next boot reloaded the file it claimed to have deleted. A reset that cannot persist now keeps the file, which can be the only copy of the hardware facts.- If the GCU cannot read its hardware record (GP sensor fitted, relay flyback) at boot, Save no longer overwrites it. The other settings are saved, the GCU answers
OK SAVE_CONSTS held=hardware, and the Utility tells you to restart the GCU first. If it cannot read the saved chassis identity, assigning a new one is refused instead of writing over it. Restore Factory Settings lifts either hold, and a board with no identity saved yet is not affected. - Serial: a command typed while a log dump is still closing no longer prints inside the dump. One-line replies wait until the dump ends, and a command that answers with its own block (help, constants, status and the like) is refused with
ERR DUMP_FRAME_OPENuntil the dump is done. The end of a command line longer than 64 characters is now always discarded instead of possibly running as a command of its own. With the engine off, the framed replies (SESSION_LIST,HIST_GET,GET_CONSTSand others) wait longer for a slow reader, so a Utility that stops reading for a moment no longer gets a truncated session list.FLUSH_LOGSwrites a pending session-index change as soon as it is sent. A heartbeat legend lost while a log dump held the serial output open is written again right after the dump instead of waiting out another 10 seconds.
Updating and downloads
- GCU Flasher for Mac now needs macOS 26 or newer, and says so to macOS, so an older system refuses it up front instead of failing inside the app. The GCU Utility app declares the same floor.
- The post-flash check now compares the build the GCU reports with the image that was written. A mismatch ends in "Wrote the image but the GCU reports something else: Build" with Retry, instead of a success on version alone. An update whose connection drops during the final version check ends in "could not confirm the version" after 30 seconds, with Retry, and the Utility reopens the board's new port if the first open is refused.
GCU Utility: Logs
- Logs can import a saved GCU log file from disk (Import a Log File...), with no GCU needed. Its report, flags and cleanup work like any session's, and a refused file says "Could not import" with the file name, the reason and a way to choose another.
- Important events now lists one card per thing that happened instead of one row per log record. A missed downshift reads "Requested 2nd. Reported Neutral." with the firmware's explanation, "Cause: Not established by this log.", "Next step: Save the report for your mechanic.", an Export report... button that saves an HTML report, and the measurements behind a Technical details button. View this shift in timeline opens the report on the event's rows. Summary counts now count events, so three retries on one miss read as one missed shift.
- Reports are honest about partial logs. A log that stops early says "No problems found in the available portion", a log that lost shift records while logging says "in the records that were kept", and a saved log whose top-tier records were evicted no longer reads "No problems recorded".
- The page is quieter and easier to scan. The Sources column is gone, replaced by one top row with a button that hides or shows the session list, a drop-down (On This GCU, All Sessions, Recent, Flagged) and the Sessions and Safety & Fault History tabs. Picking a session no longer hides the list, which can fold to a narrow rail. Rows show the title, then date, length and shift count, then where the session lives and what it recorded. Getting sessions off the car now says Download, and a laptop with no logs gets one block of steps for getting them off the car. Delete empty saved sessions is its own task behind Clean up saved sessions..., showing how many saved copies match, with flagged and unfinished copies kept. A session with a warning or critical event is never offered.
- Safety & Fault History says what it covers, names the connected GCU, uses the same wording as the events list ("Missed downshift"), has a Back to history list control, and no longer sticks on "loading" when the GCU never answers or the link dies. A watchdog or brownout reset reads as "GCU reset", and a gear sensor dropout mid-shift reads as a sensor fault, not a CAN bus error.
- Sessions from each GCU are now kept apart: a second GCU whose
S0-1is a different log no longer reads as already saved on this laptop. A session download that ends without an outcome is rejected as truncated and can be retried, and retrying a stalled download from 5.1.0-rc1 to rc3 firmware no longer saves heartbeat or status lines in place of session data. - A GCU reset during an import no longer leaves Logs stuck: the transfer fails with a reason, the rest of the batch stops with a note, and Import comes back once the GCU restarts. Logs also lists the GCU's sessions again after a reset. Layout fixes keep the NOT COMPLETE banner, buttons and tiles inside the window at the smallest size, and Logs and the session report open faster.
GCU Utility: Live Data, Settings and connection
- Live Data opens on a dash showing gear, RPM, GPS speed, tank pressure, front and rear brake, throttle and the car's clock, with CAN health and warnings on one line. Only a caution or critical value is coloured, and it always carries a word too. Detailed panels are behind Show details. The status bar now shows the connected car's gear, RPM and tank pressure on every page, with a symbol as well as a colour for a compressor fault or RPM at the redline.
- Settings is rebuilt so each setting is edited where it is listed, with its plain name and description, factory and saved values, a control that fits it (checkbox, dropdown, or number box with its range), a Saved, Temporary or Applying status, and its own Apply Temporarily button. Values are checked before they are sent, and each setting reports its own result in plain words. When the GCU restarts and loses temporary changes, Settings says so. With no GCU connected, it lists settings in the GCU's own order so related ones sit together.
- Settings warns when the car's timezone (
tz_offset) and the laptop's zone disagree, and Set from Laptop applies the laptop's zone, so a car left on UTC no longer writes every session with the wrong local time unnoticed.tz_offsetrefuses 15 through 98, which the GCU treats as "not set", and says "-12 to 14, or 99 for not set". - Connection handling is sturdier. When the link to the GCU wedges, the Utility shows Disconnected with the reason and reconnects on its own. A late answer to a timed-out command can no longer be taken as the answer to the next one. A stalled session list is asked for once more before the Update page refuses to flash. On Windows, a leftover or busy port listed beside a GCU no longer stops one-click connect.
- Advanced bench test: shift and brake labels now wait for the GCU's own reading ("unconfirmed" if none arrives), and a refused shift names the GCU's reason instead of "refused (shifting=1)". The Hold to Run button no longer leaves the compressor on when you hold Space on Windows, and releases if focus leaves it mid-hold.