Skip to content

add POS register linkage over LAN - #2

Merged
soltia48 merged 1 commit into
soltia48:mainfrom
CDCVM:main
Jul 20, 2026
Merged

add POS register linkage over LAN#2
soltia48 merged 1 commit into
soltia48:mainfrom
CDCVM:main

Conversation

@CDCVM

@CDCVM CDCVM commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a POS-linked mode alongside the existing standalone keypad. A POS register
drives the terminal over the LAN, while the card tap and the Melon relay stay on
the terminal. Standalone behaviour is unchanged.

See docs/POS-Protocol.md for the full protocol.

Changes

  • Add a POS-linked mode, switchable from the header, shown full screen.
  • Discover terminals via UDP broadcast (65024); send commands as newline-delimited
    JSON over TCP (65025).
  • Report state by polling: every command returns the same status message.
  • Support payment, topup, balance, refund_query, refund_execute,
    status, cancel and info.
  • Add the kiosk screen: an idle splash, and a transaction face with card-touch
    status rectangles, amount and status text.
  • Refuse cancellation once processing has started, to avoid a terminal/POS mismatch.
  • Reserve alg and sig in the frame for future authentication or encryption.
  • Add docs/POS-Protocol.md and a POS section in the README.

Screenshots

Waiting for card Payment complete Insufficient funds

@soltia48
soltia48 self-requested a review July 19, 2026 12:39

@soltia48 soltia48 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@soltia48
soltia48 merged commit db95b88 into soltia48:main Jul 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants