fix(batm3): get cash-in working — EBDS escrow latch + correct serial device paths #79

Merged
padreug merged 3 commits from fix/ebds-escrow-stack-latch into dev 2026-07-29 23:56:24 +00:00
Showing only changes of commit 2c71d9d823 - Show all commits

fix(config): use stable /dev/ttyF56 symlink for batm3 dispenser

The batm3 dispenser used the raw /dev/ttyUSB0, which is
enumeration-order dependent — a re-plug or reboot could reassign
ttyUSB0 to a different adapter. Switch to the stable udev symlink
/dev/ttyF56 (batm3.nix, serial DDDLb103Y23), matching the validator's
/dev/ttyMEI, so both peripherals bind by identity and survive
re-enumeration (incl. on an internal-SATA flash). Per-box override:
VITE_LAMASSU_DISPENSER_DEVICE.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Patrick Mulligan 2026-07-30 01:14:11 +02:00

View file

@ -148,7 +148,12 @@ export const MACHINE_PRESETS: Record<MachineModel, Omit<DeviceConfig, 'fiatCode'
},
dispenser: {
type: 'f56',
device: '/dev/ttyUSB0',
// Fujitsu F56 on a USB-serial bridge, via the stable udev symlink
// /dev/ttyF56 (batm3.nix, serial DDDLb103Y23). Avoids the raw
// /dev/ttyUSB0, which is enumeration-order dependent and could point at
// the wrong adapter after a re-plug/reboot. Per-box override:
// VITE_LAMASSU_DISPENSER_DEVICE.
device: '/dev/ttyF56',
cassettes: [
{ denomination: 20, count: 400 },
{ denomination: 1, count: 400 },