Repository navigation
Card Terminals
POS communicates with card terminals via the Hardware Driver. Some parts of this may only apply to the ID Tech terminal as opposed to all terminals but future hardware support should try to use similar messages where feasible.
There are two different modes of communication. In Messages (or Coodinated) mode, the terminal sends data to POS and then waits for POS to respond before moving to the next screen. This is the default and recommended mode. In Direct mode, the terminal sends data to POS then immediately proceeds to the next screen without waiting for acknowledgement. This is no longer a compile time setting. Well behave driver modules will print information on their mode at startup.
Transaction flow would look like this:
- Terminal is at swipe card screen.
- Customer swipes card
- Message TERM => POS "PANCACHE:[data]"
- Message POS => TERM "termGetTypeWithFS"
- If EBT is disabled, this would instead be "termGetType"
- Terminal displays the card type selection screen
- Customer selects type
- Message TERM => POS "TERM:[card type]"
- Credit case
- Message POS => TERM "termWait"
- Terminal displays wait for cashier screen.
- Debit/EBT case
- Message POS => TERM "termPin"
- Terminal displays PIN entry screen
- Customer enters pin
- Message TERM => POS "PINCACHE:[data]"
- Message POS => TERM "termWait"
- Terminal displays wait for cashier screen
- Credit case
- Cashier enters "CCFROMCACHE" directly or via menus
- POS formats data and submits to processor
- Processor sends back response
- Approval case
- Message POS => TERM "termApproved"
- Terminal displays approved screen
- If signature required
- Message POS => TERM "termSig[optional caption]"
- Terminal displays signature screen w/ caption
- Customer signs
- Message TERM => POS "TERMBMP[bitmap filename]"
- Message POS => TERM "termReset"
- Decline/Error case
- Message POS => TERM "termReset"
- Terminal returns to swipe card screen
- Approval case
In direct mode, all the POS => TERM messages prior to processing would be omitted. The post-processing ones would still be there.
- Message POS => TERM flows over UDP. The PHP side sends UDP packet(s) to a port the pos.exe driver is listening on
- Message TERM => POS goes through the filesystem (unless using RabbitMQ). The pos.exe driver writes a file in the ss-output directory and the PHP side picks it up via ajax-poll-scale.php and NewMagellan.php
For simple troubleshooting, I'd first close the browser window so the ss-output files persist. If the driver shows a read but doesn't create an output file, then there's a C# problem. If the driver does create an output file, there's a PHP problem. In the latter case I'd set aside the output file, manually copy/paste the content into the POS browser input to see what happens. pos/is4c-nf/test/parsingTest.php might give you a clearer picture of exactly what happens when POS receives a block of encrypted card data.