Skip to content

v1.4 – stall stop, receiver update over the display

Latest

Choose a tag to compare

@Steppge Steppge released this 14 Nov 22:58

Gamepad plugin 1.4, receiver sketch 1.6: the receiver can be updated over the CrowPanel ESP32-P4 display, a stalled Bluetooth link stops the jog at once.

Plugin 1.4 (gamepad_plugin.c)

  • Older or repeated packets (UDP over WiFi through the Octopus-Bridge) are dropped.
  • Jog directions in my_machine.h: GAMEPAD_INVERT_X/Y/Z (defaults 1, 1, 0).
  • |Pad: in the status report is off by default (GAMEPAD_DEBUG 1 switches it on).
  • The connection watchdog allows 300 ms for WiFi gaps; the jog enable is reported to the display (Bluetooth symbol).

Receiver sketch 1.6 (esp32/)

  • A DualShock 4 / DualSense that sends nothing new for 200 ms counts as "no controller": the jog stops at once instead of after the Bluetooth timeout.
  • A full allow list (8 controllers) drops the oldest one when a new controller pairs.
  • Update over the P4 display: copy grblhal-gamepad-esp32-v1.4-app.bin as gamepad.bin to the display's SD card and switch the display off and on (about 15 s). Blocks with acknowledge, CRC32, the image check of the ESP32 and app rollback; a block with lost bytes is sent again, a failure reason shows on the display console. Needs the P4 display firmware 1.3 or newer (in release v1.2 of grblHAL-Plugin-Display).
  • New partition table partitions_ota.csv with two app partitions (nvs unchanged).

Baud rate: directly at the BTT Octopus Pro at most 460800 (921600 on USART1 froze the Octopus now and then during SD card access). With the P4 display and the bridge the 921600 stays between receiver and display, the bridge sends 230400 to the Octopus. See the README.

The whole P4 setup (Octopus, bridge, display, receiver) and its order: FLASHING.md.

Upgrading from v1.3 or older

The partition table changed: flash the full image once over USB at 0x0. It also clears the stored controllers, pair the controller again afterwards. From then on the receiver is updated with the app image over the display card.

Files

For a classic ESP32 (ESP32-WROOM-32 DevKit or D1 Mini ESP32):

File Use
grblhal-gamepad-esp32-v1.4-full.bin Over USB, written at 0x0 (bootloader, partition table, app). Clears the stored controllers.
grblhal-gamepad-esp32-v1.4-app.bin Update over the P4 display: as gamepad.bin on its SD card. Not for 0x10000 as in v1.3: the app slots are at 0x20000 / 0x1C0000 and change with every update.
esptool.py --chip esp32 write_flash 0x0 grblhal-gamepad-esp32-v1.4-full.bin

or in the browser with ESP Tool. Wiring and pairing: esp32/README.md.

SHA-256

0ca8c7b4b2097a0aba07c949d2a83eb3cfc9197bca270524aaa687c16fd8a9a0  grblhal-gamepad-esp32-v1.4-full.bin
ba03d11466349a4c17dceb620d01b8c0905f306522f8ee2225610380933e4921  grblhal-gamepad-esp32-v1.4-app.bin

🤖 Generated with Claude Code