{ "release": "escargot.20261108.a052f2cd.7a2304", "set": "2026-11-08T15:59:14Z", "entries": { "app": [ { "text": "A rear camera for the dash, from a camera board with ESCargot Express firmware that has one (the Waveshare ESP32-S3-SIM7670G): a REAR CAMERA piece sized and placed like the other widgets, and an option to fill the background behind the dash, dimmed. It has its own connection to the camera board, by address (192.168.71.1 with the phone on that board's hotspot) or through the hub by the name it was paired under, so the dash's connection to the bike is untouched; when the dash is connected to the camera board itself, the camera uses that connection instead. Only the board's owner may watch through the hub: a friend is refused. One picture is asked for at a time, a few times a second at best, and only while the camera is on a dash that is shown with the app in front; the board is told when the viewer is done. A picture that stops coming turns grey and says how old it is, so a frozen one never looks live. The settings (CAMERA in arrange mode, or hold the camera piece) say plainly that it is a glance aid, not a mirror to ride by.", "level": 1 }, { "text": "Log every ride while connected, off until turned on (Simple's Rides page: \"Record every ride\"; the phone's Logs settings; desktop Preferences > Paths): whenever the Tool connects to a controller, directly or through an Express with one on its CAN bus, it starts the same ride log the Logs page records, GPS from the phone included, and saves it when the connection ends. A reconnect to the same vehicle within a minute carries on in the same log. These logs are named ride-DATE_TIME.csv, are kept under a size limit you set (500 MB to start with) by deleting the oldest of them first, and open in Log Analysis and Rides like any other log; a log started by hand is never deleted.", "level": 0 }, { "text": "A firmware upload no longer gives up on a board that is slow to answer: a chunk with no reply is sent again, to the same address and with a longer wait each time, until about a minute has gone by without progress, and the status and log say how many retries it took. It gave up after three 3 s waits, which a VESC Express busy with a TLS connection could exceed, leaving the upload at \"Firmware upload timed out\" part way. A reply that arrives late is no longer taken as the answer for the next chunk, and a failed upload says which chunk it stopped at.", "level": 1 } ], "firmware": [ { "text": "A firmware update keeps the motor and app configurations, the scripts' EEPROM settings (eeprom-store-i) and the hardware variables. The bootloader erases flash sectors 0 to 7 before writing the new firmware, and the emulated EEPROM is sectors 1 and 2, so every update, even to the same build, left all of them at their defaults (no fault is logged, as an empty EEPROM passes the CRC check) and only a Tool that restored its own copy afterwards hid it; upstream carries only the odometer, run time, CAN ID and baud rate across. The jump to the bootloader now copies the EEPROM to the backup SRAM, and the new firmware's first boot writes back what the bootloader erased. A configuration goes back only into a firmware with the same signature and size; otherwise it is reset to defaults as before. The copy names the update it was made for (the staged image's size and CRC) and is used by that one only, so a copy left by an update to firmware without this cannot put back older settings at a later update. It takes effect from the update after the one that installs this firmware, and a power cut during the update loses the copy. Seen on the bench since 2026-10-29; swapping the board's bootloader for upstream's generic one did not help, as both erase the same sectors. Twenty-two boards without the room for it (make/flash-trim.mk, CONF_STASH_TRIM_BOARDS, HW_NO_CONF_STASH) still lose their EEPROM at every update. Host test tests/conf_stash.", "level": 1 }, { "text": "Dual-motor boards keep motor 2's configuration. The emulated EEPROM copies only the variables in its table to the fresh page when one fills up, and upstream's table (conf_general_init) listed motor 1's configuration and not motor 2's, although NB_OF_VAR leaves room for both: motor 2 was reset to defaults at the boot after the first page swap following a store. Host test tests/ee_vartab.", "level": 1 }, { "text": "Asking without taking the print port: COMM_QUIET (167, private to ESCargot) wraps a packet, which is processed and answered on the port it came from, without making that port the one prints and unasked packets go to. A board polling the controller through its BLE module (vesc_express's ble_link) uses it, so the controller's prints stay where they were instead of following every poll onto the radio. Plain packets take the port as before. Host test tests/reply_port.", "level": 0 } ], "express": [ { "text": "tcp-connect gives up after 3 s. Upstream's waited out the network stack's retries, about 20 s against an address nobody answers from, and held every script on the board meanwhile.", "level": 1 }, { "text": "A WiFi hotspot over LTE on the Waveshare board: wifi_hotspot on (kept) keeps the configured access point up and routes its clients out through the house WiFi when the station has it, or else the modem. Its clients are IPv4, and an IPv6-only network such as Google Fi's carries them through a CLAT (the client side of 464XLAT, RFC 6877): IPv4 NAT'd to 192.0.0.2 leaves as IPv6 to the carrier's NAT64 at 64:ff9b::/96, sized for IPv6's 1280-byte minimum; the board's own IPv4 goes the same way. The modem's UART runs at 921600 rather than 115200, which carried about 10 kB/s each way and left a phone on the hotspot with no internet. modem_status shows the translator's counters; wifi_hotspot shows the clients and NAT. Only in builds with NAPT (sdkconfig.board.ws_s3_sim7670g).", "level": 1 }, { "text": "CAN bridge (CONFIG_ESCARGOT_CAN_BRIDGE, on the Waveshare board): can_bridge on (kept) makes the board a node on a CAN bus it is not wired to, through an Express that is on it running pkg/can_bridge, over TCP 65110 on WiFi -- the Waveshare's hotspot or any shared network. Frames from the bus enter its receive path as if from a wire, and what it sends goes back over the bridge; the bus end lets only the node's own broadcasts and pings onto the bus, and commands to a controller only if allowed there. Telemetry only. The hotspot moves to 192.168.71.1/24, away from the 192.168.4.1 every Express gives its own access point.", "level": 1 }, { "text": "BLE link to a motor controller (CONFIG_ESCARGOT_BLE_LINK, on the Waveshare board), for a vehicle with no Express: ble_link connect (kept) finds the controller's BLE serial module by scanning, connects as a central and speaks the VESC packet protocol over it, framed as on a UART, the way VESC Tool's mobile app does; reconnects after a drop. Nordic UART, HM-10 (FFE0), FFF0 and Microchip transparent UART modules; ble_link scan lists what is in range. The controller is reached as a CAN node would be: a buffer for its id goes as one packet and its answer comes back as over CAN, so forwarding from the Tool and the hub, scripts' can-cmd and the crash collector reach it unchanged; a ping for it is answered; its values are polled at 5 Hz and enter the CAN receive path as its status 1-5 frames, so the logger, ha_mqtt and canget-* read it. Reads, to the controller or as COMM_FORWARD_CAN through it to other ids; settings only with ble_link cmds on; setpoints, detection, code, shutdown, reboot and CAN baud never. Run on the bench through a VESC NRF51 module on a 75_100_V2. Experimental: with pkg/can_bridge_uart on the controller the rest of its bus crosses too, as the CAN bridge's records in app data; on an NRF51 module this hung the module within minutes, so it needs an NRF52-class module, or a controller with no script that evaluates app data.", "level": 1 }, { "text": "With bldc firmware that knows COMM_QUIET (167), the link wraps its polls and the packets it passes on in it, so the controller's prints stay where they were instead of following the polls onto the radio. Found out on each connection: with older firmware it polls plainly. A link that hears nothing for 10 s while polling is dropped and redialled, for a module that hangs while its radio keeps the connection.", "level": 2 }, { "text": "Camera (CONFIG_ESCARGOT_CAMERA, on the Waveshare ESP32-S3-SIM7670G): its DVP connector through Espressif's esp32-camera, pulled in for that board only. The sensor is found at run time (an OV5640 on the board here; the OV2640 and the others esp32-camera knows are untested), one JPEG at a time: the driver is started for each picture and stopped after it, the sensor put in its own standby (the board wires neither PWDN nor RESET to a GPIO), the frame buffer in PSRAM. Its SCCB is a second device on the battery gauge's I2C bus rather than a bus of its own. Sizes qqvga to 5mp as the sensor allows, quality 1-100; about 1.3 s a picture at VGA and 3.5 s at UXGA, 0.75 s of it starting the sensor; 12 kB at VGA, 40 kB at SXGA and 55 kB at UXGA, quality 80. XCLK is 10 MHz: at 20 the pixel clock outran the DMA into PSRAM and larger pictures came out garbled.", "level": 0 }, { "text": "LispBM: (camera-snap \"/sdcard/x.jpg\" [size] [quality]) writes the file and gives its length; (camera-snap [nil size quality]) gives the JPEG as a byte array, refused as too-large over 96 kB or a third of the longest free block of LispBM memory; (camera-info) gives the sensor, its state and the last picture. Only the calling context waits for a picture. Errors are symbols: no-camera, timeout, no-memory, bad-size, file-error, too-large, busy, driver-error.", "level": 1 }, { "text": "Lua: vesc.camera_snap(path|nil, size, quality) and vesc.camera_info(), the same, with nil and the error's name.", "level": 1 }, { "text": "Terminal: camera_snap [path|auto] [size] [quality], auto being the next free /sdcard/cam/IMG_nnnn.jpg; camera_info.", "level": 1 }, { "text": "The board's VSYNC is IO42, which its CAN also uses for RX: fine with no transceiver wired (the CAN bridge needs none), and a clash with one. The header says so.", "level": 1 }, { "text": "A viewer's feed, COMM_CAMERA (168), for ESCargot Tool's camera widget: one request, one picture, read in chunks under the 512-byte packet limit with as many requests in flight as the viewer likes; nothing is ever sent unasked. While requests keep coming the sensor stays running, so a picture costs a sensor frame instead of its 0.75 s start; 5 s after the last request, or at once when the viewer says it is done, it goes back to standby. A frame the driver has sat on, older than a sensor frame and 150 ms more, is thrown away for a fresh one, and each reply says how old its picture is. The last two pictures are kept, so a second viewer shares the first one's when it is under 100 ms old. The stream stops by itself if internal DMA memory falls under the 6 kB the board keeps for WiFi, BLE and the modem. A script's camera-snap at the stream's size takes its picture from the running sensor; at another size the stream gives way and restarts on the viewer's next request. Through the hub only the owner may watch: a friend is refused, a camera showing more than a position does.", "level": 1 }, { "text": "A virtual Express, tests/vexpress: the firmware's script and command layers built unchanged as a Linux program, over a platform layer that implements the ESP-IDF and FreeRTOS calls they make on POSIX. It runs real packages with either engine, on a chosen board (Dash16, VDisp 900, Express, P4 and S3 display boards); draws every panel driver into a framebuffer saved as PNG; puts simulated controllers, bldc's vescsim and other processes on a virtual CAN bus; keeps NVS and the code partitions in a state directory and the SD card in a directory; and serves the VESC protocol on a TCP port, so ESCargot Tool connects to it, installs packages and uses the REPL and terminal. Hardware the host does not have (UART, I2C, GPIO, PWM, LED strips, ESP-NOW, firmware upload) answers \"not available\". check.sh runs a smoke test; tests/vexpress/shots.sh renders dash16, dash35b and the Lua P4 dash through a simulated ride.", "level": 1 } ], "packages": [ { "text": "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.", "level": 0 }, { "text": "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.", "level": 0 }, { "text": "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.", "level": 0 }, { "text": "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.", "level": 0 }, { "text": "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.", "level": 0 }, { "text": "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.", "level": 0 }, { "text": "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.", "level": 0 } ] } }