CashCode
NET
Interface
CashCode Company Inc Page 1 of 61
PT# MAN_CCNET Rev.2.2.4 APR 2002
CashCode Company Inc Page 2 of 61
PT# MAN_CCNET Rev.2.2.4 APR 2002
Contents
1 General Information............................................................................................................. 4
1.1 Introduction ....................................................................................................................................................4
1.2 Operational and Application Notes................................................................................................................4
2 Communication Format. ..................................................................................................... 5
2.1 Data format ....................................................................................................................................................5
2.2 Message Format............................................................................................................................................5
2.3 Transmission and reception message formats .............................................................................................7
2.4 Peripheral Addresses ....................................................................................................................................8
2.5 Software Operational Rules ..........................................................................................................................8
2.6 Typical Session Examples.............................................................................................................................9
2.7 Timing Definitions ........................................................................................................................................11
2.8 Timing Specifications...................................................................................................................................11
3 CONTROLLER/BILL-TO-BILL UNIT Communication Specification ............................... 12
3.1 Introduction ..................................................................................................................................................12
3.2 Command Protocol......................................................................................................................................12
3.3 Controller Commands..................................................................................................................................12
3.4 Controller Command Format.......................................................................................................................13
4 CONTROLLER/COIN CHANGER Communication Specification.................................... 24
4.1 Introduction. .................................................................................................................................................24
4.2 Command Protocol......................................................................................................................................24
4.3 Controller Commands..................................................................................................................................24
4.4 Controller Command Format.......................................................................................................................24
5 CONTROLLER/BILL VALIDATOR Communication Specification.................................. 31
5.1 Introduction. .................................................................................................................................................31
5.2 Command Protocol......................................................................................................................................31
5.3 Controller Commands..................................................................................................................................31
5.4 Controller Command Format.......................................................................................................................32
6 CONTROLLER/ Card Reader Communication Specification ......................................... 46
6.1 Introduction ..................................................................................................................................................46
6.2 Card Reader States.....................................................................................................................................46
6.3 Command Protocol......................................................................................................................................47
6.4 Controller Commands..................................................................................................................................47
6.5 Controller Command Format.......................................................................................................................47
6.6 Non-Response Time....................................................................................................................................54
7 APPENDIX Example CCNET Message Sequences........................................................ 55
CashCode Company Inc Page 3 of 61
PT# MAN_CCNET Rev.2.2.4 APR 2002
7.1 Power Up & Reset sequence ......................................................................................................................56
7.2 Enable sequence.........................................................................................................................................56
7.3 Disable sequence ........................................................................................................................................57
7.4 Bill Accept sequence (Bill stacked). ............................................................................................................57
7.5 Bill Accept sequence (Bill returned) ............................................................................................................58
7.6 Bill Dispense sequence (Bill dispensed). ....................................................................................................59
7.7 Bill Unload sequence (Bill unloaded)...........................................................................................................60
7.8 Set cassette type sequence ........................................................................................................................61
1
General Information
1.1 Introduction
This document defines a serial network interface. The interface is Master-Slave arrangement where all
peripherals are Slave to a Master Controller.
1.2 Operational and Application Notes
The serial network interface, or serial bus interface, is configured for Master- Slave operation. There is one
Master with the capability of communicating with some peripherals. The Master is defined as Controller
and Slave as Peripheral.
Each peripheral is assigned a unique address and command set. The Controller will “poll” the Bus for
Peripheral activity. That is, each Peripheral is asked for activity, and responds with either acknowledge,
negative acknowledge, invalid command acknowledge, or specific data dependent on its current activity. If
a Peripheral does not respond within a predefined time, (t-non-response as defined in the peripheral
sections) it is assumed that it is not present on the Bus.
Bus interference or “crashes” are prevented because each Peripheral only responds upon being polled.
Since there is only one Master, and all communication is initiated by the Master, bus “crashes” are easily
precluded.
CashCode Company Inc Page 4 of 61
PT# MAN_CCNET Rev.2.2.4 APR 2002
2
Communication Format.
2.1 Data format
Baud Rate: 9600 bps/19200 bps (no negotiation, hardware selectable)
Start bit: 1
Data bit: 8 (bit 0 = LSB, bit 0 sent first)
Parity: Parity none
Stop bit: 1
2.2 Message Format
SYNC ADR LNG CMD DATA CRC
SYNC:
1 byte Message transmission start code [02H], fixed
ADR :
1 byte Peripheral address
LNG :
1 byte* Data length (Total number of bytes including SYNC and CRC)
CMD :
1 byte Command
DATA
0 to 250 bytes Data necessary for command (omitted if not required by CMD)
CRC:
2 bytes Check code by CRC method, MSB first
Object section to be from and including SYNC to end of DATA
(Initial value = 0)
Error control method: Error detection CRC method
CRC - CCITT using whole byte shifting into a two-byte frame
P
(
X
) = X
16
+ X
12
+ X
5
+
l
* if a package may not be fitted into 250-byte frame a wider frame may be used by setting LNG to 0; the
actual packet length is inserted into DATA block bytes 0 and 1, MSB
first. This allows accommodation of
data packages of up to 65528 bytes; please keep in mind that lengthy exchanges compromise bus
bandwindth.
CashCode Company Inc Page 5 of 61
PT# MAN_CCNET Rev.2.2.4 APR 2002