# Changelog This file records ESCargot's changes relative to the upstream VESC® Packages repository. Each package also keeps its own changelog in its README. VESC® is a registered trademark of Benjamin Vedder; see [TRADEMARKS.md](TRADEMARKS.md). ### ESCargot #### Unreleased * meshtastic 0.1.0 → 0.2.0 and meshtastic_esc 0.1.0 → 0.2.0: the UART number, RX and TX pins and baud are settings, on the package page too, defaulting to an Express T's UART 0 on GPIO 20/21. Pins the board already uses are refused, so the UART can never take them: an Express T's CAN, LEDs and SD card, an ESP32-C3's flash and USB, an S3's USB, and on an Rmcore its CAN (GPIO 20/21, the Express T's defaults) and rmcore_io's In, Out and 5 V pins, which leaves an Rmcore no pair for a node. GNSS taken from another Express over CAN (the firmware fills the gnss-* state from CAN_PACKET_GNSS_* without a local receiver) documented. Settings of 0.1.0 kept. Host tests of the pin rules, the refusal at boot and the reopening; run against the node again with its channel 0 position precision at 0: positions allowed, a synthetic one sent on channel 1. * meshtastic 0.1.0 and meshtastic_esc 0.1.0 (new): off-grid vehicle status over a Meshtastic LoRa node on the UART, through Meshtastic's serial protobuf API (a small protobuf encoder and decoder in LispBM, unknown fields passed over): a status text on a private channel every 10 minutes (volts, battery, speed, odometer, parked or moving), the GNSS position, a "moved while parked" alert, and the status line in answer to "status" on that channel. Summaries only: nothing from the mesh drives the motor, changes a setting or runs code. Nothing is sent until the node's configuration shows the channel is a secondary one with its own 16- or 32-byte key, never channel 0 or the default key; a position also waits for the node's channel 0 position precision to be 0, since the node repeats a given position there, and a node with its own GPS sharing on channel 0 is warned about. meshtastic runs on an Express (the controller's values over CAN), meshtastic_esc on the controller itself, from one core.lisp. Host tests with FromRadio frames built by Meshtastic's own protobufs and the frames written decoded by them; run against a real node (XIAO nRF52840, 2.6.2) over USB, not yet on an Express or controller wired to one. Not in the package archive until then. * crsf_input 0.1.0 (new): an ExpressLRS or Crossfire receiver's CRSF serial output on the motor controller's UART (420000 baud by default) drives the controller through its ADC app's override, so that app's control type, deadband, curve, ramps, safe start and timeout apply. Steering for tank drive, a brake channel and an aux kill or reverse switch are mixed with the firmware's CPPM mixing's settings and formulas (ppm_mix.c). Failsafe after 250 ms without a channel frame, or below a set link quality: the throttle to rest and the firmware's kill switch on, and driving again only once the throttle is back at rest. Channels and link statistics for other code, and a package page showing them live. The PPM app cannot be driven this way: it brakes while its own pin has no pulses, override or not. Host tests on the LispBM repl, frames and mixing cases from an independent Python reference. Not in the package archive until it has driven a motor from a receiver. * can_bridge_uart 0.1.0 (new): the CAN bridge's bus end on the motor controller itself, for a vehicle with no Express: a board linked to the controller's BLE module (the Waveshare LTE board, ble_link connect) becomes a node on its bus. Frames cross in COMM_CUSTOM_APP_DATA packets holding can_bridge's 13-byte records, both ways over the controller's UART; broadcasts go at most every 0.2 s, the newest of each, and buffer frames for the node, pings and pongs at once. The filter is can_bridge's, the same file: buffer frames for other nodes are not forwarded, and from the node only its own status, boot notice and GNSS, pings and pongs, and buffer frames only with cb-allow-cmds. Host tests on the LispBM repl. Experimental and not in the package archive: over a VESC NRF51 module it hung the module within minutes on the bench, beside VESC's log package, which evaluates app data as code. * tools/display_sim (new): a fake display for s866_display (Protocol 2, 5S, 618U), kt_lcd_display and bafang_display. Each package runs on the host LispBM repl with its tests' stubs through a scripted ride (speeding up through the levels, light, braking, a motor fault, standing, walk, low battery), the display's side sending its frames and reading the answers with the package's new test/display.lisp, which the package tests also check; each step is drawn as a generic segment LCD, or a colour screen for the Bafang protocol, to PNGs, a GIF and a contact sheet. Its test reads the pictures back pixel by pixel against the decoded answers, and those against the ride; it runs in CI with the package tests. * ha_mqtt 0.1.0 → 0.2.0 and ha_mqtt_lua 0.1.0 → 0.2.0: a Camera entity and a "Take a picture" button, on a board whose firmware has camera-snap (the Waveshare ESP32-S3-SIM7670G, Express firmware 2026-11), found at run time. A press, or an interval set on the package page (off by default), takes a VGA JPEG and publishes it retained to the image topic, the payload after its header in 4 kB writes. Host tests in both, the Lua twin's camera JSON compared with the lisp twin's line for line; run on the Waveshare against Home Assistant over TLS. * can_bridge 0.1.0 (new): on an Express that is on a CAN bus, lets a board that is not (the Waveshare LTE board with its CAN bridge on) act as a node there over WiFi. Every extended frame goes to the node, but buffer frames addressed to others; from the node only its own status, boot notice and GNSS and pings reach the bus, and commands to a controller only with cb-allow-cmds. Run on the bench Express T on the Waveshare's hotspot: the node saw the bus, pinged a controller and, with commands allowed, the Tool read its firmware through the node. Host tests for the filter, the records and the linking. * ha_mqtt 0.1.0 (new): an Express puts the vehicle in Home Assistant over MQTT, by discovery, with no YAML: battery, pack voltage, charging, odometer, controller and motor temperature, fault, a device tracker (GNSS, or home while on WiFi), and a Find my bike button that beeps the motor at a current set on the package page, worked into volts from the motor's measured R and L, only standing still. A small MQTT 3.1.1 client over the Express's TCP extensions (login, last will, reconnect with backoff), plain or over TLS with the broker verified by a CA certificate or a pinned SHA-256 fingerprint (needs the Express firmware's script TLS, 2026-11). Run on the bench Express against a Home Assistant Mosquitto; host tests and an integration test against a real Mosquitto. * ha_mqtt_lua 0.1.0 (new): the ha_mqtt package for an Express running the Lua engine, at parity: the same device, topics, JSON, package page, TLS and eeprom slots, a state machine on the script timer instead of a thread. Its host tests run the lisp twin's cases and compare the JSON and controller commands with ha_mqtt.lisp's line for line; an integration test runs it against a real Mosquitto, plain and over TLS. * tone_seq_ha 0.1.0 (new): tone_seq and ha_mqtt as one LispBM script, for an Express that runs one script at a time: tunes from the SD card still play and the vehicle reports to Home Assistant. Written by combine.py from the two packages unchanged, but for one pacer for both senders to the controller's REPL, which drops a command within 0.5 s of the last; ha_mqtt keeps eeprom slots 0-6 and 16-511. A stopgap until a board runs several packages side by side. * Vehicle profiles for ESCargot Tool's Simple setup, read from the package archive; nothing installs on a controller. Every figure names its source, and tools/profile_check.py refuses one that does not. * escargot_parts: motors, batteries and wheels a profile names by id, which Simple's build-your-own setup offers one by one. * hub_ebike_profile (a 1000 W class direct-drive rear hub on 52 V), eskate_dual_profile (dual 6374 190 KV belt drive, 12S), surron_lbx_profile (Sur-Ron Light Bee X, stock motor and pack) and ubox_evg_profile (one owner's 72 V direct-drive e-bike on a Spintend Ubox 85/250, a worked example). * A profile's inputs can be a kill switch, a display (both UART pins) or a keyed ignition, on the UART or a board's power key; the Ubox profile has its owner's kill switch on PPM, display on the UART and ignition on IGN. * motor_temp_est 0.1.0 (new): estimates a motor's winding temperature with no sensor, from the FOC vq/iq/ERPM and the flux linkage (R = (vq - w*lambda)/iq, T from copper's tempco), low-passed on the thermal time scale; and, when a sensor is present, fuses the two with a complementary filter (sensor = slow truth, estimate = fast change) so a sensor dropout carries on with no jump. Report-only and unvalidated: it prints and sends the temperature, changes no limit. Idea from the Torp firmware's m_temp_sens_sl_base_* and a rider; host-tested against synthetic FOC values. * kt_lcd_display 0.1.0 (new): a Kunteng display (KT-LCD3 and others speaking Kunteng's protocol, C11 = 0) on the motor controller's UART at 9600 baud. Its levels 0-5 drive ESCargot's PAS assist scale as bafang_display's do, level 0 turns the throttle off, level 6 is walk (PAS's walk assist, ended by the brake or a quiet display), and the headlight can switch an AUX output. Speed (worked out for the display's own wheel size), battery current, bars, motor temperature, braking and faults go back to the display. The display's maximum speed and C5 current limit can only lower the controller's, and are off by default; its other P and C settings are not used. The display's per-display check key is learned from two frames in a row. Legal and unrestricted modes as in bafang_display. Protocol ported from the EBiCS firmware's display_kunteng.c and the BMSBattery S-series open firmware. Tested against a simulated display, not yet on a real one. * s866_display 0.3.0 (new): an S866 display, or another speaking UART No. 2 or King-Meter's KM5S ("Protocol 2" and "5S" on the S866's P20), or a King-Meter J-LCD in either of its protocols (5S or the older 618U), on the motor controller's UART at 9600 baud, answered in whichever the display speaks. Its levels drive ESCargot's PAS assist scale as bafang_display's do, level 0 turns the throttle off, walk is PAS's walk assist (ended by the brake or a quiet display), and the headlight can switch an AUX output. Speed (worked out for the display's own wheel size), battery current, braking and faults go back to the display. The display's speed and current limits can only lower the controller's, and are off by default. Legal and unrestricted modes as in bafang_display. 5S answers King-Meter's settings handshake, in EBiCS's frame layout and the older one of the Arduino Pedelec Controller. A 618U J-LCD's levels, walk, light, wheel size and speed limit are taken as Protocol 2's. Protocols ported from the EBiCS firmware's display_No_2.c and display_kingmeter.c and the Arduino Pedelec Controller's display_kingmeter.cpp. Tested against a simulated display, not yet on a real one. * bafang_display 0.1.0 (new): a Bafang-protocol display (DZ40, 500C, 850C, 860C, EggRider) on the motor controller's UART. Its assist levels drive ESCargot's PAS assist scale, so assist follows cadence, torque and speed; level 0 turns the throttle off; walk is PAS's walk assist; speed, battery, current, voltage and faults go back to the display. A sequence on the level buttons switches between a legal mode (assist and motor capped at 25 km/h, the default at every power-up) and unrestricted. The display's settings write is ignored. Protocol ported from bldc's Luna BBSHD display code (Marcos Chaparro). Tested against a simulated display, not yet on a bike. * dash_esc 2.4 → 2.8: * PAS telemetry on SID 26 and in SID 25, PAS channels in the log, walk assist passed through from a display, and kill switch and fan state reported to the displays. * Controller settings changed from a display, within limits held on the controller. The light command no longer clobbers Auxiliary Output Mode, and the light output is selectable. The PIN lock is held on the controller. * Takes the throttle, brakes, kill switch and pedal sensor from Rmcore IO nodes over CAN, and stops the motor when a fitted node is not heard. * Upstream's throttle mode, a dash16 lever on ADC1 instead of ADC2, at eeprom slot 24 and without upstream's settings reset. With a front Rmcore node a lever on ADC1 is ignored rather than merged into regen. * vbms32_micro, vbms32, vbms_harmony16 and vbms_harmony32: charging no longer starts on cells already past vc_charge_end. An idle BMS started a charge once the highest cell was below vc_charge_start, and VESC Tool allows that to be set above vc_charge_end. From vesc_pkg PR 100 by Mortificator, which fixes vbms32_micro; the same check was in the other three. * vesc_x3_bridge removed, as upstream's PR 135 from its maker asks: the bridge board is discontinued and its source archived. segway_x3_dash answers the same Segway X3 dashboards from the controller with no bridge. * rmcore_io 0.1.0 (new): an Rmcore as the front or rear IO node of a bike on CAN, reporting its inputs on SID 40 and 41 and driving the lamps. Needs dash_esc 2.8. * logui: an option to log only while riding, a ride being the wheel turning rather than current flowing, so a parked bike does not fill the card. * logui: logging CAN values works again. Their units ("A", "V") went through str-from-n as a format, which LispBM now refuses unless it has exactly one conversion, so a log with CAN values selected stopped at start with a type error. * dash16, dash35b and dash_vdisp, without dash_esc on the controller: speed shows as -- while the bike moves, instead of the motor's ERPM x 3.6 as km/h. On an Express canget-speed is the status frame's ERPM, and the display has no pole pairs, gear or wheel size to convert it with; the status frame's distance is a raw motor count there for the same reason, so it is no longer shown as the trip. Standing still still shows 0, and a firmware whose canget-speed is a speed is shown as before. Host tests for all three, and seen on the virtual Express against bldc's vescsim. With a GNSS fix under 2 s old, the speed without dash_esc is the GNSS's; and GNSS speed, there or with config-gnss-use-speed, is shown in km/h, where its m/s was shown as km/h. Host tests only. * vesc_scooter_support (1zun4's, carried from upstream): * Updated to its author's latest (0f127e2): a settings save fix, mph, the secret-mode button combination and the idle display picked in the UI, zero current on CAN slaves at stop. * Its settings carry over that update. The author's version resets every setting when the layout changes, which would have dropped every speed mode of a board on the copy upstream ships. * M365 frames are read at their length. The reader took one byte too many and summed one too few, so it answered each frame a frame late, lost the header after it, and refused a frame ending in a non-zero byte. * The frame header is found a byte at a time, so one or two bytes of line noise no longer put the reader out of step with every frame after. * The M365 headlight is on bit 6 of the light byte, where that dashboard reads it; it was sent on bit 0, as for a Ninebot. Found by lucidnx. * Says when the ADC app is set up so the levers do nothing -- the ADC app not in use, or a control type that ignores the brake -- in the console and in the package UI. The README had told people to choose the brakeless type. * A battery current scale per speed mode, normal and secret, beside the phase current one. * The battery bar shows the pack's own state of charge when a BMS reports on CAN. * Nothing is saved above walking pace: writing flash stops the controller while it writes. * Host tests: a fake M365 or G30 dashboard on a stubbed UART, frames built from the published protocol, and the settings migration. * scooter_dashboard_support (lucidnx's, carried from upstream): * Updated to its author's latest (9f28d22): uptime, trip and consumption counted per ride, and the lock brake on the alarm's speed threshold and on CAN slaves. * A package update keeps the model chosen for the controller. It went back to Slave on every settings-version change, so the controller wired to the dashboard showed nothing until its model was picked again. * Settings changed while riding are written once the scooter stops. * Host tests, including its G2 path against the frames TriWrite captured from a real G2. * garmr (new, unversioned, prototype): a set-and-forget assist level from a toggle switch, through the firmware's PAS walk keepalive. An example as much as a feature: the settings are constants at the top of the script. * garmr_lua (new, unversioned, prototype): garmr on the Lua script engine, for the release's Lua firmware (VESC_lua.bin), which has no LispBM. * In the release's package archive, not yet run on hardware (each has host tests; the READMEs say so). The LispBM libraries are packaged for import as pkg@://vesc_packages/lib_canmap/canmap.vescpkg and lib_oi_sdo/oi_sdo.vescpkg; their Lua versions are sources a script bundles: * tone_seq and tone_seq_lua (new): tunes on the motor from an Express's SD card, with no phone or computer: a startup tune when the bike turns on, or any tune on request. * lib_canmap and lib_canmap_lua (new): CAN signals packed and unpacked by bit, as a .dbc file describes them, for chargers, BMSs, dashboards and OEM inverters. * lib_oi_sdo and lib_oi_sdo_lua (new): reads and writes an OpenInverter's parameters over CAN. * throttle_check and throttle_check_lua (new): a two-potentiometer throttle cross-checked, output cut when they disagree or one leaves its range. * ant_bms and ant_bms_lua (new): an ANT BMS read over an Express's UART and sent on CAN as a VESC BMS, both ANT protocol generations, with opt-in charge-MOSFET and balancer writes. Decoding ported from syssi/esphome-ant-bms (Apache-2.0). * jk_bms and jk_bms_lua (new): a JK BMS (B- and BD-series boards, UART-TTL port) read over an Express's UART and sent on CAN as a VESC BMS. Read-only. A cell reading under 0.5 V (a missing reading or broken balance lead) is left out by default, so it can't cut the drive current. Decoding ported from syssi/esphome-jk-bms (Apache-2.0). * hub_speed (new): the wheel's speed from a hub motor's own speed sensor (the white wire in many geared hubs' hall plugs, Bafang G060-G063 among them), timed by input capture on the PPM pin, so it reads right while the hub freewheels and the motor is stopped. Learns the pulses per wheel turn while the motor drives, uses the motor configuration's wheel diameter, and sends "hubspeed " to ESCargot Tool as custom app data. Not yet run on a bike. * surron_dash (new): a Sur-Ron Light Bee's stock dash kept working with a VESC-based controller: the speed pulses on the dash's speed wire, from the servo pin, and the status frames on its RS485 bus (battery level and voltage from the BMS, faults as the nearest stock Er-codes), so it no longer shows Er-2. The BMS's 16 cell voltages, six temperatures, current, state of charge, health and remaining capacity show in ESCargot Tool's BMS page, and limit the current as a VESC BMS's would (bms-take-local). Its page in ESCargot Tool sets Sport and Eco limits, the Sport/Eco switch, the kickstand and tilt cutoffs, regen on throttle release at three levels (shown on the stock dash) and from a brake-lever switch, and an opt-in launch control, and writes the stock pack's settings in one go. Needs ESCargot firmware with pwm-set-freq. Frame format and recorded frames from patagonaa/surron-light-bee (CC0). * ninebot_bms and ninebot_bms_lua (new): a scooter's original Ninebot battery read over an Express's UART and sent on CAN as a VESC BMS. Read-only. * In this repository, not in the release's package archive (res_all.qrc) -- unfinished, or driving hardware and not yet run on it -- so not offered in VESC® Tool's package list: * dash_s3 0.1 (new): touch dash for the Waveshare ESP32-S3-Touch-LCD-4, 480x480. * dash_p4 0.1 (new): touch dash for the Waveshare ESP32-P4-WIFI6-Touch-LCD-4.3, 800x480. * Both share dash_common: Clay-described pages and controls, a quick shade, keypads, PIN lock, theming, a rolling chart, PAS and controller-settings pages, signal requests and a walk assist button. They need express firmware that tags its draw commands. * dash_common (new, unversioned): the shared LispBM source of the two touch dashes, with host-side tests, a linter and golden renders. * dash_p4_lua 0.1 (new): dash_p4 on the Lua script engine, needing firmware built with `-DSCRIPT_ENGINE=lua`. Held at parity with the lisp dash's layout from before its move to Clay controls. * dash_common_lua (new, unversioned): the Lua port of dash_common, with its unit tests, golden renders for both panels and the configuration-packet comparison against the lisp dash. * precharge and precharge_lua (new): closes a precharge relay at power-up, waits for the bus to charge, then closes the main contactor; if the bus does not charge in time both stay open and the motor stays off. * segway_x3_dash (new): a Segway X3 scooter's dashboard (G3, ZT3 and the rest) answered over CAN by the controller itself, with no bridge board. Frames ported from Finnn-glitch/VESC2X3Bridge (GPL-3.0), without its false-speed override of the control unit's limit. * xiaomi_leqi_dash (new, experimental): a newer Xiaomi dashboard on the LEQI protocol (Mi 5 Elite, Mi 5 Plus), written from the protocol's documentation. * precharge, segway_x3_dash and xiaomi_leqi_dash switch contactors or drive the motor, so they stay out until they have run on hardware; each has host tests. * Repository: * rmcore_io, garmr and garmr_lua added to the Makefile and res_all.qrc. The unfinished packages are kept out of both, so a broken one cannot fail a release build. * tools/: build_archive.sh builds the whole package archive, check_archive.py checks it against its package list, check_packages.py checks every package, and const_writes.py catches buffers written after @const-start. * CI lints every LispBM package, parses every Lua source, checks the package descriptors and the archive list, and audits contributions for provenance. * CI runs every package's own tests, LispBM and Lua, on a LispBM repl built from the ESCargot Express tree; a suite that skips fails the job. * README describes the fork; TRADEMARKS.md added; copyright headers and credits for upstream package authors added to the files this fork wrote or changed.