Token dispenser with subscription

Smart Token Dispenser & RFID Subscription Hub

High-performance, scriptable self-service kiosk for automated token dispensing, closed-loop loyalty media, and coin-pulse emulation retrofits.

Overview

Engineered as a compact, all-in-one automation terminal, this configuration combines an industrial ventilated ABS chassis, dedicated GalaxyVend control boards, internal industrial power staging, and an integrated panel PC running a reactive HTMX/B4J application core.

The architecture decouples low-level bus determinism (MDB, ccTalk, and SPIFFS flash execution) from high-level transaction orchestration. Communicating with the internal electronics over high-speed USB serial (115,200 baud) or MQTT, the panel PC manages multi-channel payments, hopper payouts, RFID account balances, and automated cloud sync without missing a single hardware interrupt or financial event.

1. Multi-Payment & ccTalk Token Dispensing

The kiosk handles cash, contactless cards, and change handling within a unified hardware state machine:

  • MDB Currency Ecosystem: Fully controls MDB bill validators (escrow, stacking, and multi-note recyclers), multi-tube coin changers, and dual MDB contactless cashless readers (EMV, debit, Apple Pay, Google Pay).
  • 3-Channel ccTalk Hoppers: Drives up to three independent ccTalk hoppers (addresses 3, 4, and 5) for simultaneous distribution of standard brass tokens, specialty tokens, or cash change.
  • Real-Time Stock & Optic Telemetry: Continuously queries high/low optoelectronic sensors (CCTHHILOSTAT) to detect low stock or bin saturation before an outage occurs, with instant short-pay (CCTHPARTPAID) and jam protection.
  • Auditing & Tamper Security: Non-volatile internal hardware counters record lifetime bills, coins, cashless totals, and dispensed units, mirrored locally to database telemetry tables and relayed upward to cloud monitoring.

2. Scriptable Product Flows & Dynamic Workflows (Lua Engine)

Unlike rigid kiosks constrained by hardcoded purchase sequences, every product and change operation is powered by a sandboxed, event-driven execution engine:

  • Programmable Lua State Machines: Define multi-step product journeys directly inside the admin console using custom Lua scripts (execute_stage(stage)).
  • Non-Blocking Branching: Seamlessly handle timeouts (tmt), positive confirmations (posans), negative fallbacks (negans), delays (beforesleep/aftersleep), and conditional stage jumps based on real-time peripheral feedback.
  • Hardware & UI Binding: Directly synchronize hardware opcodes (GETCASH, BILLACCEPT, CCTHDISPENSE, RELAY) with reactive UI message fragments and localized prompt keys (insert_cash, remaining_time, select_payment).
  • Custom Change Policies: Script customized change payout workflows, setting absolute change caps (max_change), auto-inhibition thresholds, or alternative cashless credit returns.

3. RFID Loyalty Subscriptions & On-Terminal Recharging

Scale recurring revenue by transforming one-way token buyers into balance-holding subscription members:

  • Hopper-Dispensed RFID Media: Vend pre-coded RFID proximity keyfobs or cards straight from a dedicated ccTalk hopper channel.
  • Contactless Account Recharging: Customers present their RFID tag to the front-panel reader to inspect current balances and top up funds via cash or credit card.
  • Tamper-Proof Closed-Loop Security: Employs hardware-enforced sector authentication (RDRPASS), anti-collision filters, and physical presence sensing (RDRBEGIN / RDRLEAVING) to prevent fraudulent balance manipulation or double-reads.
  • Automated Accounting Ledgers: Balance top-ups and deductions are audited instantly in local database ledgers and synchronized via secure WebSockets to central management.

4. Field Device Integration: Pulse Coin Acceptor Emulation

Modernize legacy equipment already in the field without costly machine upgrades or harness rewiring. The GalaxyVend Pulse Emulation Board bridges the gap:

  • Drop-In Mechanical Retrofit: Compact modules install directly behind existing mechanical coin slots in car wash bays, vacuum stations, laundromat washers, dryers, and amusement machines.
  • Dual Operating Modes:

    • Automated Vend Controller (for_external = 0): Reads the presented RFID tag, calculates the targeted pulse count based on configured pricing, checks host credit authorization (RDRSUBCREDIT), deducts the balance, and fires the precise coin pulse train to the machine.
    • Passthrough Reader Mode (for_external = 1): Operates as a transparent scanner, relaying raw tag UIDs over local serial or MQTT back to the central panel PC for centralized vend decisions.
  • Self-Healing Field Reliability: Built-in safeguards abort transactions if network communication drops (RDRNOCOMM), automatically disarming pulses if unconfigured price indices or unauthorized sector tags are detected.

System Architecture & Administration

  • Frontend & Admin Suite: Built-in web administration suite powered by HTMX and B4J, providing real-time telemetry tables, sales reporting by payment method, category/product builders, and multilingual interface options (EN, RO, DE, FR, IT, ES, BG).
  • Connectivity & Bus Architecture: Deterministic master/slave bus handling over native USB serial (115,200 baud) and local/cloud MQTT broker connections (Mosquitto).
  • Continuous Cloud Telemetry: Dedicated background WebSocket engine streams real-time CASHSALE, CARDSALE, and COINAPDONE telemetry, system heartbeats (ALIVEOK), and lifetime audits to remote enterprise management.
  • Industrial Construction: High-impact, convection-cooled ABS casing tailored for surface or recess mounting, featuring integrated cable containment and front-panel PC access.

Ideal Applications

  • Self-Service Car Washes & Vacuum Islands: Sell brass tokens, dispense RFID subscription keyfobs, and drive bay timers directly via pulse emulation without replacing bay control heads.
  • Commercial Laundromats: Centralize coin and cashless card acceptance into a single wall-mounted station while retrofitting legacy washers and dryers.
  • Amusement & Arcades: Modernize ticket and gaming token counters with integrated loyalty revaluation.
  • Controlled Industrial Access: Secure automated issuance of tool crib tokens, consumable credits, and access badges with real-time audit trails.