Home
User Manual 2.0
Contents
1. All accepted coin values must be evenly divisible by this number For example this could be set to O5H for the USA nickel Buffer Input 31 Decimal Places 1 byte Copyright All rigth reserved ThinkChip User Interface EasyMDB RS232 TTL V2 0 Buffer Input 18 to Buffer Input 29 Buffer Input 30 Think Buffer Input 32 msb Buffer Input 33 Isb Buffer Input 34 to Buffer Input 49 Buffer Input 50 FC Buffer Input 51 CHK 2 8 2 Coin Poll HOST to SLAVE Buffer Output Buffer Output 0 0x02 Buffer Output 1 0x03 Buffer Output 2 FC Buffer Output 3 CHK CHECKSUM Indicates the number of decimal places ona credit display For example this could be set to 02H in the USA Country 2 bytes The packed BCD country currency code of the changer can be sent in two different forms depending on the value of the left most BCD digit If the left most digit is a O the international Telephone Code is used to indicate the country that the changer is set up for For example the USA code is 00 01H Buffer Input 31 00 and Buffer Input 32 01 Coin Value Accepted 16 bytes Indicates the value of coin types 0 to 15 Values must be sent in ascending order This number is the coin s monetary value divided by the coin scaling factor Unused coin types are sent as OOH Unsent coin types are assumed to be zero It is not necessary to send all coin types Coin type credits sent as FFH are assumed to be vend tokens Th
2. COIN and BILL 0x02 and 0x03 hexadecimal value respectively and ends with FC Oxff hexadecimal value which follows the 8 bit BCC checksum Besides the checksum is used for error checking character byte 2 5 Packet format There are two types of data packets Command Message is the packet Send from the Host to the SLAVE device The Reply Message is the packet Send from the reader to the Host Packet format for Command Message HOST to SLAVE SYSTEM 0x01 These describe The Data Field is FC Oxff Checksum is the COIN 0x02 the action that a stream of data last character to BILL 0x03 will be realized with variable be sent is For example length which calculated by COIN_INIT 0x01 depends on the adding all Command word character the There are also checksum is not some included in the COMMANDs summation have zero length of data field Copyright All rigth reserved ThinkChip User Interface EasyMDB RS232 TTL V2 0 Think Packet format for Reply Message SLAVE to HOST SYSTEM 0x01 These describe The Data Field is FC Oxff COIN 0x02 the action order a stream of data BILL 0x03 with variable length which depends on the Command word There are also some COMMANDs have zero length of data field 2 6 Command Set Checksum is the last character to be sent is calculated by adding all character the checksum is not included in the summation The commands are grouped to different categorie
3. Buffer Input 3 FC FC FC 0xff Buffer Input 4 CHK CHECKSUM Copyright All rigth reserved ThinkChip User Interface EasyMDB RS232 TTL V2 0 Think 2 10 Display MDB HOST to SLAVE Buffer Output Buffer Output 0 0x04 Display MDB Buffer Output 1 0x01 Display Value Buffer Output 2 msb Value 2 bytes Buffer Output 3 Isb The display has 4 digits the max value is 9999 that is 99 99 Buffer Output 4 FC FC Buffer Output 5 CHK CHECKSUM o SLAVE to HOST Buffer Input Buffer Input 0 0x04 Display MDB Buffer Input 1 0x01 Display Value Buffer Input 2 Display Value Confirmation 0x00 FAIL Ox01 OK Buffer Input 3 FC FC FC Oxff Buffer Input 4 CHK CHECKSUM Copyright All rigth reserved ThinkChip User Interface EasyMDB RS232 TTL V2 0 Think Chip 2 11 Example communication This chapter explains the way of communicating with MDB Devices The HOST send a function to the SLAVE the SLAVE try to communicate with Cash Device then wait for response send to HOST the response Now let s see an example with Init Coin Changer Function HOST SLAVE COIN CHANGER Send Init Coin Receive Init Coin Init Settings and Changer Changer Function start reading coins and start Send Information of communication with settings to SLAVE Coin Changer SLAVE Receive Init Coin HOST Changer Function Receive setting and start Information communication with Coin Changer Send Information Setting to HOST Copyright All rigth r
4. bill validator has escrow capability Decimal Places Bill Validator 1 byte Indicates the number of decimal places ona credit display For example this could be set to 02H in the USA Scaling Factor Bill Validator 2 bytes All accepted bill values must be evenly divisible by this number For example this could be set to 0064H for the USA Stacker Capacity Bill Validator 2 bytes Indicates the number of bills that the stacker will hold For example 400 bill capacity 0190H Buffer Input 30 Buffer Input 31 msb Buffer Input 32 Isb Buffer Input 33 msb Buffer Input 34 Isb Copyright All rigth reserved ThinkChip User Interface EasyMDB RS232 TTL V2 0 Think Buffer Input 35 to Bills Type Accepted 16 bytes Buffer Input 50 Indicates the value of the bill types O to 15 Values must be sent in ascending order This number is the bill s monetary value divided by the bill scaling factor Unused bill types are sent as OOH Unsent bill types are assumed to be zero FFH bills are assumed to be vend tokens Buffer Input 51 FC Buffer Input 52 CHK CHECKSUM 2 9 2 Bill Poll HOST to SLAVE Buffer Output Buffer Output 0 0x03 Device Bill Validator Poll Bill Validator FC Oxff CHECKSUM SLAVE to HOST Buffer Input Buffer Input 0 0x03 Device Bill Validator Buffer Input 1 0x02 Poll Bill Validator Buffer Input 2 msb Value Bills Inserted 2 bytes Buffer Input 3 Isb Indicate the value total o
5. more than one error in Coin Changer could be sent until Buffer Input 16 Buffer Input X FC FC Buffer Input X CHK CHECKSUM Copyright All rigth reserved ThinkChip Coin Changer Coin Accepted Coin Changer Confirmation PayOut Coin Changer 1 byte OK 0x01 FAIL 0x00 Coin Changer Error Coin Changer FC Oxff Coin Changer Error Coin Changer Error Status Coin Changer 2 bytes This command requests the changer to report its current state of operation The VMC should periodically transmit the command approximately every 1 to 10 seconds The changer reports its current state of operation in a 2 byte code msb is the main code and lsb is the sub code The code is reported as long as the condition exists and stops being reported as soon as the condition does not exist Multiple 2 byte codes may be sent in response to a single command which could result in a maximum of eight 2 byte codes 16 bytes total FC Oxff User Interface EasyMDB RS232 TTL V2 0 D Think 2 8 7 Dispense Coin HOST TO SLAVE Buffer Output Buffer Output 0 0x02 Coin Changer Buffer Output 1 0x0b Buffer Output 2 Coin Type Indicate coin type to be dispensed Valid codes are OH to FH to indicate coin types 0 to 15 Buffer Output 3 Numbers of coins Indicate the number of coins to be dispensed Range of 0 to 15 Buffer Output 4 FC FC FC Oxff Buffer Output 5 CHK CHECKSUM C iC SLAVE TO HOST Buffer Input Buffer In
6. 0b Possible Credited Bill Removal There has been an attempt to remove a credited stacked bill 2 9 3 Bill Stacker HOST to SLAVE Buffer Output Bill Validator Stacker Bill Validator FC Oxff SLAVE to HOST Buffer Input Buffer Input 0 0x03 Device Bill Validator Buffer Input 1 0x03 Stacker Bill Validator Buffer Input 2 msb Stacker Capacity 2 bytes Buffer Input 3 Isb Indicates stacker full condition and the number of bills in the stacker msb Isb FXXXXXXX XXXXXXXX F 1 if stacker is full O if not Copyright All rigth reserved ThinkChip User Interface EasyMDB RS232 TTL V2 0 Think XXXXXXXXXXXXXXX The number of bills in the stacker Buffer Input 4 FC_ FQ Buffer Input 4 FC FC Oxff Buffer Input 5 CHK CHECKSUM 2 9 4 Bill Accepted HOST to SLAVE Buffer Output Buffer Output 0 0x03 Bill Validator Buffer Output 1 0x04 Command Bills Accepted Buffer Output 2 msb Bill Enable 2 bytes Buffer Output 3 Isb Indicates what type of bills are accepted bi5 bi4 bi3 bi2 bi1 biO b9 b8 b7 b6 bS b4 b3 b2 bi bO Y1 Y2 Bill types are O to 15 A bit is set to indicate acceptance of bill type Sending 0x00 disables the bill validator Buffer Output 4 FC FC FC 0xff Buffer Output 5 CHK CHECKSUM SLAVE to HOST Buffer Input Buffer Input 0 0x03 Bill Validator Buffer Input 1 0x03 Command Stacker Bill Validator Buffer Input 2 Bill Enable Confirmation 0x00 FAIL 0x01 OK
7. Think Chip ae Reference Manual EasyMDB RS232 TTL 1 Introduction This document explains how to use the interface EasyMDB RS232 TTL and describe the connections and the necessary commands for communicating with Cash System MDB Coin Changer and Bill Validator uw GND RX TTL TXL EasyMDB RS232 8 lad p od 5s MDB Cable wniin g 7 Model C MDB M ale om _o_ cos g TU f E 06 ThinkChip cont RS232 Cable RH io Model C DB9 H Power 24VDC 48VDC The EasyMDB interface for RS232 or TTL permits to connect a device which operates according to the MDB protocol to the serial port of embedded system HOST SLAVE Embedded System EasyMDB interface Copyright All rigth reserved ThinkChip User Interface EasyMDB RS232 TTL V2 0 THINK Chip 2 Interfacing with EasyMDB The host has a number of functions to communicate with Vending Cash Devices 2 1 Coin Changer e Init Coin Changer e Coin Poll e Coin Error e Coin Tubes e Coin PayOut e Coin Accepted e Dispense Coin First we need call Function Init Coin Changer this function established if connected yes it is then give us all the information about Coin Changer as Model Serial Number Country etc Then we need Poll Coin Changer this function determines if there any change like coin inserted and error in mechanisms With function Coin Tubes tell us how much money is in it the function Coin Accepted we can enable and disable partic
8. at is their value is assumed to worth one vend The bytes position in the 16 byte string indicates the coin type s For example the first byte sent would indicate the value of coin type O the second byte sent would indicate the value of coin type 1 and so on For example the USA coin types may be Coin type 0 nickel Coin type 1 dime Coin type 2 quarter Coin type 3 dollar FC Oxff Coin Changer Poll Coin Changer FC 0xff CHECKSUM SSS Copyright All rigth reserved ThinkChip User Interface EasyMDB RS232 TTL V2 0 Think SLAVE to HOST Buffer Input Buffer Input 0 0x02 Device ss Coin Changer Buffer Input 1 0x03 Poll Coin Changer Buffer Input 2 msb Buffer Input 3 Isb Value Coin Inserted 2 bytes Amount of coins inserted should be divided between Scaling Factor Value Coin Routing 1 byte Coin routing OOb or 0x00 CASH BOX 01b or 0x01 TUBES 10b or 0x02 NOT USED 11b or 0x03 REJECT Coin Value Dispensed Manually 2 bytes Amount of cash dispensed manually by Operator of Coin Changer Buffer Input 7 Status Coin Changer O0000001b or 0x01 Escrow request An escrow lever activation has been detected 0O0000010b or 0x02 Changer Payout Busy The changer is busy activating payout devices 00000011b or 0x03 No Credit A coin was validated but did not get to the place in the system when credit is given 00000100b or 0x04 Defective Tube Sensor The changer has detec
9. eserved ThinkChip User Interface EasyMDB RS232 TTL V2 0 Think History version manual V1 0 Date 05 2014 e First revision manual V1 0 1 Date 06 2014 e Added Dispense Coin command e Add parameter Level in Init Coin command e Eliminate the Baudrate command V2 0 Date 08 2014 e Added Display command value e Rev 2 of PCB updated Copyright All rigth reserved ThinkChip User Interface EasyMDB RS232 TTL V2 0
10. f bills inserted the value should be divided between Scaling Factor Bill Validator for obtain the real value Buffer Input 4 Status Bill Validator 1 byte 00000000b OK 0O0000001b Defective Motor One of the motors has failed to perform its expected assignment 00000010b Sensor Problem One of the sensors has failed to provide its response 00000011b Validator Busy The validator is busy and can t answer a detailed command right now 00000100b ROM Checksum Error The validator internal checksum does not match the calculated checksum 00000101b Validator Jammed A bill s has jammed in the acceptance path Copyright All rigth reserved ThinkChip User Interface EasyMDB RS232 TTL V2 0 Buffer Input 5 FC Buffer Input 6 CHK CHECKSUM FC Oxff 00000110b Validator was reset The validator has been reset since the last POLL 00000111b Bill Removed A bill in the escrow position has been removed by an unknown means A BILL RETURNED message should also be sent 00001000b Cash Box out of position The validator has detected the cash box to be open or removed 00001001b Validator Disabled The validator has been disabled by the VMC or because of internal conditions 00001010b Invalid Escrow request An ESCROW command was requested for a bill not in the escrow position 00001011b Bill Rejected A bill was detected but rejected because it could not be identified 0000110
11. in Changer Buffer Input 2 msb Value Cash in Tubes of Coin Changer 2 bytes Butter mpata job __ Tot ameurt askin Tube ot Coin changer 2 8 4 Coin PayOut HOST to SLAVE Buffer Output Buffer Input 0 0x02 Device Coi Buffer Output 0 0x02 Device Coin Changer Buffer Output 1 0x07 PayOut Coin Changer Buffer Output 2 msb Amount PayOut Coin Changer 2 bytes Buffer Output 3 Isb This value is expressed as the number of coin scaling factors that would sum to the value For example in a USA system using a scaling factor of 05 if the change to be paid out is 75 cents then Y1 will equal fifteen That is the sum of fifteen nickels equal 75 cents The coin changer will determine which actual denominations of coins will be paid out In the 75 cent example the coins Copyright All rigth reserved ThinkChip User Interface EasyMDB RS232 TTL V2 0 Think re Butter Output a rc RC Buffer Output 4 FC may be 3 quarters or 7 dimes amp 1 nickel or 2 quarters amp 2 dimes amp 1 nickel etc FC Oxff Buffer Output 5 CHK CHECKSUM SLAVE to HOST Buffer Input Buffer Input 0 0x02 Coin Changer Buffer Input 1 0x07 PayOut Coin Changer Buffer Input 2 Confirmation PayOut Coin Changer 1 byte OK Ox01 FAIL 0x00 Buffer Input 3 FC FC Oxff Buffer Input 4 CHK CHECKSUM 2 8 5 Coin Accepted HOST to SLAVE Buffer Output Buffer Output 0 0x02 Buffer Output 1 0x08 Command Buffer Output 2 msb B
12. put 0 0x02 Coin Changer Buffer Input 1 0x0b Buffer Input 2 Response Data 1 OK Data 0 Fail Buffer Input 3 FC FC FC Oxff Buffer Input 4 CHK CHECKSUM Copyright All rigth reserved ThinkChip User Interface EasyMDB RS232 TTL V2 0 Think 2 9 Bill Validator commands 2 9 1 Init Bill Validator HOST to SLAVE Buffer Output Buffer Output 0 0x03 Bill Validator Buffer Output 1 0x01 Init Bill Validator Buffer Output 2 FC FC 0xff Buffer Output 3 CHK CHECKSUM SLAVE to HOST Buffer Input Buffer Input 0 0x03 Device Bill Validator Buffer Input 1 0x01 Init Bill Validator Buffer Input 2 to Manufacturer Code Bill Validator 3 bytes Buffer Input 4 Identification code for the equipment supplier Sent as ASCII characters Model Bill Validator 12 bytes Manufacturer assigned model number and tuning number All bytes must be sent as ASCII characters zeros 30H and blanks 20H are acceptable Each manufacturer should include information concerning the changer tuning revision Serial Number Bill Validator 12 bytes Factory assigned serial number All bytes must be sent as ASCII characters zeros 30H and blanks 20H are acceptable Buffer Input 29 Escrow Bill Validator 1 byte Indicates the escrow capability of the bill validator If Input Ox00 the bill validator does Buffer Input 5 to Buffer Input 16 Buffer Input 17 to Buffer Input 28 not have escrow capability If Input OxFF the
13. s Divided for the Devices the command represent an action to be realized Interface Settings 0x01 0x02 MDB Stop Stop all communication with MDB devices Coin Changer 0x02 0x01 Init Coin Changer To obtain changer level and configuration information activity tube for coin Coin PayOut PayOut Coin Changer 0x08 Coin Accepted Setting enable and disable coin type accepted 0x0a Coin Error This command requests the changer to report its current state of operation OxOb Coin Dispense Dispense coin this action is for coin changer level 1 for pay out Copyright All rigth reserved ThinkChip User Interface EasyMDB RS232 TTL V2 0 Think Bill Validator 0x03 0x01 Init Bill Validator To obtain bill configuration Bill Poll Indicate the bill activity bills in the stacker 0x04 Bill Accepted Setting enable and disable the bills type accepted Display MDB 0x04 0x04 Display Value Display value cash inserted Copyright All rigth reserved ThinkChip User Interface EasyMDB RS232 TTL V2 0 Think 2 7 System commands 2 7 1 MDB Stop HOST to SLAVE Buffer Output Buffer Output 0 0x01 Buffer Output 1 0x02 MDB Stop Buffer Output 2 FC FC Oxff Buffer Output 3 CHK CHECKSUM SLAVE to HOST Buffer Input Buffer Input 0 0x01 Buffer Input 1 0x02 MDB Stop Buffer Input 2 Response Ox01 OK 0x00 FAIL Buffer Input 3 FC FC FC Oxff Buffer Input 4 CHK CHECKSUM Copyright All rigth re
14. served ThinkChip User Interface EasyMDB RS232 TTL V2 0 Think 2 8 Coin Changer commands 2 8 1 Init Coin Changer HOST to SLAVE Buffer Output Buffer Output 0 0x02 Coin Changer Buffer Output 1 0x01 Init Coin Changer Buffer Output 2 FC FC 0xff Buffer Output 3 CHK CHECKSUM SLAVE to HOST Buffer Input Buffer Input 0 0x02 Device Coin Changer Buffer Input 1 0x01 Init Coin Changer Buffer Input 2 Level Changer Feature Level 1 byte Indicates the feature level of the changer This will distinguish the changers feature level to the VMC Current defined levels Level 2 Supports core command set These are RESET STATUS TUBE STATUS POLL COIN TYPE and DISPENSE Level 3 Supports level two and the EXPANSION command addition changer model number manufacturer code turning revision etc Manufacturer Code 3 bytes Identification code for the equipment supplier Sent as ASCII characters Buffer Input 6 to Model Coin Changer 12 bytes Buffer Input 17 Manufacturer assigned model number and tuning Buffer Input 3 to Buffer Input 5 number All bytes must be sent as ASCII characters zeros 30H and blanks 20H are acceptable Each manufacturer should include information concerning the changer tuning revision Serial Number Coin Changer 12 bytes Factory assigned serial number All bytes must be sent as ASCII characters zeros 30H and blanks 20H are acceptable Scaling Factor 1 byte
15. ted one of the tube sensors behaving abnormally 00000101b or 0x05 Double Arrival Two coins were detected too close together to validate either one 00000110b or 0x06 Acceptor Unplugged The changer has detected that the acceptor has been removed 00000111b or 0x07 Tube Jam A tube payout attempt has resulted in jammed condition 00001000b or 0x08 ROM checksum error The changers internal checksum does not match the calculated checksum 00001001b or 0x09 Coin Routing Error A coin has been validated but did not follow the intended routing 00001010b or Ox0a Changer Busy The Buffer Input 4 Buffer Input 5 msb Buffer Input 6 Isb changer is busy and can t answer a detailed command right now 00001011b or OxOb Changer was Reset The changer has detected a Reset condition and has returned to its power on idle condition Copyright All rigth reserved ThinkChip User Interface EasyMDB RS232 TTL V2 0 Think 00001100b or 0x0c Coin Jam A coin s has jammed in the acceptance path 00001101b or Ox0d Possible Credited Coin Removal There has been an attempt to remove a credited coin Buffer Input 8 FC FC Oxff Buffer Input 9 CHK CHECKSUM 2 8 3 Coin Tubes Buffer Output Buffer Output 0 0x02 Coin Changer Buffer Output 1 0x05 Tube Status Coin Changer Buffer Output 2 FC FC Oxff HOST to SLAVE Buffer Output 3 CHK CHECKSUM Buffer Input SLAVE to HOST Co
16. uffer OutPut 3 Isb Buffer Output 4 msb Buffer Output 5 Isb Buffer Output 6 FC FC Buffer Output 7 CHK CHECKSUM Copyright All rigth reserved ThinkChip Coin Changer Coin Accepted Coin Changer Coin Enable 2 bytes b15 bi4 bi3 bi2 bi1 b10 b9 b8 b7 b6 bS b4 b3 b2 bi bO Y1 v2 A bit is set to indicate a coin type is accepted For example bit 6 is set to indicate coin type 6 bit 15 is set to indicate coin type 15 and so on To disable the changer disable all coin types by sending a data block containing OOOOH All coins are automatically disabled upon reset Manually Coin Enable 2 bytes b15 b14 b13 b12 bi1 b10 b9 b8 b7 bE bS b4 b3 b2 bi bO Y1 Y2 A bit is set to indicate dispense enable For example bit 2 is set to enable dispensing of coin type 2 This command enables disables manual dispensing using optional inventory switches All manual dispensing switches are automatically enabled upon reset FC 0xff User Interface EasyMDB RS232 TTL V2 0 Think SLAVE to HOST Buffer Input Buffer Input 0 0x02 Buffer Input 1 0x08 Command Buffer Input 2 Buffer Input 3 FC FC Buffer Input 4 CHK CHECKSUM 2 8 6 Coin Error HOST to SLAVE Buffer Output Buffer Output 0 0x02 Buffer Output 1 0x0a Command Buffer Output 2 FC FC Buffer Output 3 CHK CHECKSUM SLAVE to HOST Buffer Input Buffer Input 0 0x02 Buffer Input 1 0x0a Command Buffer Input 2 msb Buffer Input 3 Isb If exist
17. ular currency Coin Payout is for give change to the user and MDB Stop is for stop all the MDB communication Init Coin Coin Error Changer Coin Accepted Coin Poll MDB Stop Dispense Coin Copyright All rigth reserved ThinkChip User Interface EasyMDB RS232 TTL V2 0 Think Chip 2 2 Bill Validator The function to establish communication with Bill Validator is e Init Bill Validator e Bill Poll e Bill Accepted e Bill Stacker e MDB Stop To star the communication we need call function Init Bill Validator this function established if connected yes it is then give us all the information about Bill Validator has Model Serial Number Scaling Country etc Once call Init Bill Validator we need poll the device with the function Bill Poll Init Bill Validator Bill Accepted Bill Poll MDB Stop Bill Stacker Copyright All rigth reserved ThinkChip User Interface EasyMDB RS232 TTL V2 0 a Think 2 3 Data Format The data format Start Bit Data Bits parity Stop Bit is software configurable BaudRate The general data format is defined as Parameter Description Baud Rate 9600 bauds By default 19200 bauds 34800 bauds 57600 bauds 115200 bauds 2 4 Link Layer The communication protocol is a packet oriented protocol all the data exchanged between two communication devices will be based on packet format The data packet starts with the control character there are two types of control character
Download Pdf Manuals
Related Search
Related Contents
T R A S H Avaya Audio Quality Tuning for IP Telephones User's Manual Dicota Slim Cover IPPBX IP02 User Manual - Inteligentne Produkty Scythe Mugen 4 Bosch CM12SD Use and Care Manual NR-20 は、TV カメラからの白黒ビデオ信号を多彩な画像処理によって Copyright © All rights reserved.
Failed to retrieve file