15
Coin Acceptor
15
8. RS232 Protocol
1. Transmission Specification
Transmission Method : Full Duplex Transmission
Transmission Speed : 9600 Baud Rate
Synchronizing Method : Asynchronous Method
Data Format : Start bit 1, Data bit 8, Parity bit none, Stop bit 1
2. General Message Command Format
SYNC + LNG + CMD + DATA + EXT + CS
Name Byte Contents
SYNC 1 start code , [90H] fixed
LNG 1
Data Length (Total number of bytes from SYNC to
checksum)
CMD 1 Command
DATA 0~250 Data necessary for command( omitted by CMD )
EXT 1 End code , [03H] fixed
CS 1
checksum by SUM result method without carry ( from
SYNC to EXT )
There are 2 types of messages used :
Format-1 without DATA : SYNC + LNG + CMD + EXT + CS or SYNC + LNG +
CMD + CS
Format-2 with DATA : SYNC + LNG + CMD + DATA + EXT + CS or SYNC + LNG
+ CMD + DATA + CS
8-1. Enable or Disable
VMC to UCA2
90h 05h 01h 03h 99h Enable UCA
90h 05h 02h 03h 9Ah Disable UCA
UCA2 to VMC
90h 05h 50h 03h E8h ACK
90h 05h 4Bh 03h E3h NAK