KR100354887B1 - Vendingmachine for unmemed polling control fee menage system - Google Patents

Vendingmachine for unmemed polling control fee menage system Download PDF

Info

Publication number
KR100354887B1
KR100354887B1 KR1020000005386A KR20000005386A KR100354887B1 KR 100354887 B1 KR100354887 B1 KR 100354887B1 KR 1020000005386 A KR1020000005386 A KR 1020000005386A KR 20000005386 A KR20000005386 A KR 20000005386A KR 100354887 B1 KR100354887 B1 KR 100354887B1
Authority
KR
South Korea
Prior art keywords
character
code
command
response
record
Prior art date
Application number
KR1020000005386A
Other languages
Korean (ko)
Other versions
KR20010077536A (en
Inventor
정주영
Original Assignee
미산메카트로닉스 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 미산메카트로닉스 주식회사 filed Critical 미산메카트로닉스 주식회사
Priority to KR1020000005386A priority Critical patent/KR100354887B1/en
Publication of KR20010077536A publication Critical patent/KR20010077536A/en
Application granted granted Critical
Publication of KR100354887B1 publication Critical patent/KR100354887B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F9/00Details other than those peculiar to special kinds or types of apparatus
    • G07F9/006Details of the software used for the vending machines

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)

Abstract

제어 컴퓨터(10)와 교신하며 컴퓨터의 제어를 받는 스테이션 제어부(11)는 화폐처리부와 약속된 명령 테이블을 보유하고, 하나이상의 화폐처리기를 각각 제어하기 위한 스테이션 제어부의 명령문에 명령코드를 수록하기 위한 명령문자와, 명령수행에 사용될 데이터를 수록하기 위한 하나이상의 데이터 수록문자와, 데이터 길이 정보를 전달하기 위한 데이터 길이 수록문자를 포함하며, 스테이션 제어부에 명령에 응답하여 전송하는 화폐처리기의 응답문에 화폐처리기의 각종 상태를 회신하기 위한 하나이상의 비트맵 상태수록 문자와, 응답에 대응된 명령 코드를 수록하기 위한 명령코드 수록문자와, 회신에 필요한 데이터를 수록하기 위한 데이터 수록문자와, 데이터 길이를 수록하기 위한 데이터 길이 수록문자를 포함하는 자판기의 폴링제어 요금처리장치이다.The station control unit 11, which communicates with the control computer 10 and is under computer control, holds a command table promised with the money processing unit, and stores a command code in a statement of a station control unit for controlling one or more currency processors, respectively. It includes a statement, one or more data carriers for storing data to be used for command execution, and a data length carrier for conveying data length information, and in response to a currency processor that transmits in response to a command to a station controller. One or more bitmap state recording characters for returning various states of the currency processor, command code recording characters for recording the command code corresponding to the response, data recording characters for storing the data required for the reply, and data length. Polling control request of vending machine including data length A processing unit.

Description

자판기의 폴링제어 요금 처리 장치 { VENDINGMACHINE FOR UNMEMED POLLING CONTROL FEE MENAGE SYSTEM }VENDINGMACHINE FOR UNMEMED POLLING CONTROL FEE MENAGE SYSTEM}

이 발명은 무인 자판기(서비스 시스템)을 위한 폴링(polling) 제어 요금처리장치에 관한 것이다.The present invention relates to a polling control tariff for an unmanned vending machine (service system).

종래 자동판매기의 요금처리제어는 대체로 제어가 간편하고 제어 효율이 높은 인터럽트제어를 채용하고 있다. 인터럽트 요금처리 제어는 지폐 수납기, 지폐지급기, 동전 수납기, 동전지급기 등 자동판매기에 장착된 단말 화폐처리기들이 서비스 이용자의 요구에 반응하여 인터럽트 신호를 발생시킬 때 주 제어부에서 인터럽트 신호를 검출하고 신호에 응답하는 제어를 수행하도록 하는 것으로서 제어부는 화폐처리 단말기들의 구체적인 구성에 대응하는 제어를 수행해야 하는 것으로서 다양한 서비스시스템의 요금처리장치로서 적합치 못한 것이었다.In the conventional vending machine, the fee processing control adopts the interrupt control which is generally easy to control and high in control efficiency. Interrupt fee processing control detects and responds to interrupt signal from main controller when terminal money processors installed in vending machines such as bill acceptor, bill dispenser, coin acceptor, coin dispenser generate interrupt signal in response to service user's request The control unit to perform the control corresponding to the specific configuration of the currency processing terminals, which was not suitable as a charge processing device of various service systems.

최근 무인 판매시스템(KIOSK)의 서비스 기능은 무인 증명서 발급처리 분야에 응용되고 있다. 주목받는 예로서 정부 또는 지방자치 단체들은 대민 서비스 업무 전반에 걸쳐 무인서비스 시스템을 구축하기 위한 투자를 계획하고 있는 것이다. 이 결과 아마도 가까운 장래에 은행, 백화점, 전시장과 같은 사람이 많고 시민이 이용하기 편리한 장소에서 중앙정부 또는 지방정부의 무인 행정 서비스를 받게 될 것이다. 이러한 서비스는 전자 대민 창구로서 터치스크린과 사운드, 그래픽, 통신카드 등 멀티 미디어 기기를 포함하는 시스템에 의해 증명서 발급은 물론 음성 응답서비스, 화상 응답서비스의 형태로 질이 높은 대민 서비스로 제공 될 것이다.Recently, the service function of the unmanned sales system (KIOSK) has been applied to the field of issuing unmanned certificate. As a notable example, the government or local governments are planning to invest in establishing an unmanned service system across civil service operations. As a result, perhaps in the near future, they will receive unattended administrative services from central or local governments in places where many people, such as banks, department stores and exhibition halls, are convenient to citizens. This service will be provided as a high-quality citizen service in the form of voice response service, video response service as well as certificate issuance by a system including multimedia devices such as touch screen, sound, graphics, and communication card as an electronic people's counter.

이와 같은 종합 정보 단말기에 공통으로 포함되는 하나의 장치는 서비스 비용을 수납하고 거스름돈을 돌려주기 위한 요금처리 제어장치이다. 상술한바와 같이 요금처리 장치들은 다양한 서비스 장치간에 호환되지 못하고 있으므로 자판기 또는 정보 단말기들의 제작비용을 증대시키고 운용 관리를 어렵게 하는 한 요인이 되고 있는 것이었다.One device commonly included in such a comprehensive information terminal is a fee processing control device for storing service costs and returning change. As described above, since the fee processing devices are not compatible with various service devices, they are one of the factors that increase the manufacturing cost of the vending machine or the information terminals and make operation management difficult.

이 발명은 자판기 또는 다양한 무인 자판기(서비스시스템)에서 요금수납 처리에 범용적으로 사용할 수 있는 폴링 제어 요금처리 장치를 제공함에 목적이 있다.An object of the present invention is to provide a polling control fee processing apparatus that can be used universally for bill payment processing in a vending machine or various unmanned vending machines (service systems).

구체적으로 이 발명은 주 제어장치에 단말 장치들을 RS232C 통신 케이블로접속하고 주 제어장치가 복수의 단말장치들에 대하여 순차로 제어 명령을 전달하고 서비스요구를 문의하여 제어를 행함으로써 주 제어장치가 다양한 단말장치들을 제어할 수 있게 함을 특징으로 하는 것이다.Specifically, the present invention provides a variety of main control devices by connecting terminal devices to the main control device via an RS232C communication cable, and the main control device sequentially transmits control commands to a plurality of terminal devices and performs a request for service requests. It is characterized in that the terminal devices can be controlled.

도 1은 이 발명 요금처리장치의 블록도1 is a block diagram of the charge processing apparatus of the present invention;

< 도면 주요 부호의 설명 ><Description of Drawing Major Symbols>

10:제어 컴퓨터 11:스테이션 제어부 12:화폐처리기10: control computer 11: station control unit 12: money processor

이 발명을 상세하게 설명하면 다음과 같다.This invention is demonstrated in detail as follows.

제어 컴퓨터(10)와 교신하며 컴퓨터의 제어를 받는 스테이션 제어부(11)는 지폐 수납기(12a), 동전 수납기(12b), 지폐지급기(12c), 동전지급기(12d), 지폐판독기(12e), 등 하나 이상의 화폐처리기(12)들과 각각 직렬통신케이블로 접속되고, 스테이션 제어부(11)는 화폐처리기(12)의 상태를 문의하여 화폐처리기에 제어 명령을 전송하고, 화폐처리기(12)는 제어 명령을 해독하고 명령을 수행한 후 수행 결과를 스테이션 제어부(11)에 전송하도록 하며, 스테이션 제어부(11)는 응답을 해독하여 화폐처리기의 상태를 파악 하도록 하는것에 있어서,The station control unit 11 which communicates with the control computer 10 and is controlled by the computer includes a bill acceptor 12a, a coin acceptor 12b, a bill dispenser 12c, a coin dispenser 12d, a bill reader 12e, and the like. Each of the one or more currency processors 12 is connected with a serial communication cable, and the station controller 11 inquires about the state of the money processor 12 to transmit a control command to the money processor, and the money processor 12 controls the command. In order to decode and perform the command and transmit the result to the station control unit 11, the station control unit 11 to decode the response to determine the state of the currency processor,

스테이션 제어부는 화폐처리부와 약속된 명령 테이블을 보유하고,The station controller holds a command table promised with the currency processor,

하나이상의 화폐처리기를 각각 제어하기 위한 스테이션 제어부의 명령문에 명령코드를 수록하기 위한 명령문자와, 명령수행에 사용될 데이터를 수록하기 위한 하나이상의 데이터 수록문자와, 데이터 길이 정보를 전달하기 위한 데이터 길이 수록문자를 포함하며,A statement for recording the command code in a statement of a station controller for controlling one or more currency processors, one or more data bearing characters for storing data to be used for command execution, and a data length for transmitting data length information Character,

스테이션 제어부에 명령에 응답하여 전송하는 화폐처리기의 응답문에 화폐처리기의 각종 상태를 회신하기 위한 하나이상의 비트맵 상태수록 문자와, 응답에 대응된 명령 코드를 수록하기 위한 명령코드 수록문자와, 회신에 필요한 데이터를 수록하기 위한 데이터 수록문자와, 데이터 길이를 수록하기 위한 데이터 길이 수록문자를 포함하도록 함을 특징으로 하는 자판기의 폴링제어 요금처리장치이다.One or more bitmap state recording characters for returning various states of the currency processor to the response message of the currency processor in response to the command transmitted to the station control unit, command code recording characters for storing the command code corresponding to the response, and replying. Polling control fee processing apparatus of the vending machine, characterized in that it comprises a data recording character for recording the data required for the data length data character for recording the data length.

이 발명을 실시예로서 더욱 상세하게 설명한다.This invention is demonstrated in more detail as an Example.

이 발명 폴링제어 명령문과 응답문에 포함되는 ASCⅡ 직렬통신 제어코드를 인용하면 다음과 같다.Citing the ASCII serial communication control code included in the present invention polling control statement and response message is as follows.

기호 코드 기능Symbol code function

SOH 0x01 데이터의 시작 표지코드문자SOH 0x01 Starting cover code character of data

STX 0x02 데이터 블록의 선두 표지코드문자Leading code character of STX 0x02 data block

ETX 0x03 데이터 블록의 종단표지 코드문자End cover code character in ETX 0x03 data block

EOT 0x04 전송상태 종료표지 코드문자EOT 0x04 Transmission status end sign code character

ENQ 0x05 확인 또는 정보요구코드문자ENQ 0x05 acknowledgment or information request code character

ACK 0x06 긍정응답코드문자ACK 0x06 positive response code character

DC1 0x11 사용자정의 문자DC1 0x11 user-defined characters

DC2 0x12 사용자정의 문자DC2 0x12 user-defined characters

DC3 0x13 사용자정의 문자DC3 0x13 user-defined characters

DC4 0x14 사용자정의 문자DC4 0x14 user-defined characters

NAK 0x15 부정응답코드문자NAK 0x15 Negative Response Code Character

ETB 0X17 전송블럭의 경계표지코드문자ETB 0X17 Landmark code character of transmission block

CAN0 0X18 전송한 것의 무시를 요구하는 코드문자CAN0 0X18 Code character requesting to ignore transmission

이 발명에서 폴링제어 명령문과 응답문에 포함되는 추가코드는 다음과 같다.In the present invention, additional code included in a polling control statement and a response is as follows.

기호 설명Symbol Description

CMD 명령코드수록문자CMD command code character

KND 화폐의 권종코드 수록문자Characters contained in the KND currency code

SA 스테이션주소 수록문자SA station address

UA 유니트주소 수록문자Character of UA unit address

BCC 패리티 수록문자BCC Parity Character

SST1 비트맵 상태 수록문자SST1 Bitmap Status Carrier

SST2 명령코드 수록문자SST2 Command Code Carrier

SST3 비트맵 상태 수록문자SST3 Bitmap Status Carrier

SST4 비트맵 상태 수록문자SST4 Bitmap Status Carrier

SST5 비트맵 상태 수록문자BDP 지폐지불기 플래그 문자KWA 지폐인식기 플래그 문자LGS 동전선별기 플래그 문자HOP 동전지급기 식별문자HOP10 10원권 동전지불기 플래그 문자HOP50 50원권 동전지불기 플래그 문자HOP100 100원권 동전지불기 플래그 문자HOP500 500원권 동전지불기 플래그 문자SST5 Bitmap State Carrier BDP Banknote Flag Flag Character KWA Banknote Recognizer Flag Character LGS Coin Selector Flag Character HOP Coin Dispenser Identifier HOP10 10won Coin Dupper Flag Character HOP50 50won Vol. Text HOP500 500 Won Coin Flag Flag Text

1. 이 발명 폴링제어 명령문 및 응답문을 기능별 항목마다 문자열 구성표를 인용하여 상세하게 설명하면 다음과 같다. 다만 아스키코드에서 기술하고있는 통신 코드에 대한 일반적 기능에 대한 설명은 생략한다.1. The present invention polling control statement and response statement will be described in detail by quoting a string scheme for each function item. However, description of general functions of communication code described in ASCII code is omitted.

2. 스테이션 제어부에서 화폐처리기를 제어하기 위하여 폴링제어로 명령문을 화폐처리기에 전송한다.2. The station controller sends the statement to the currency processor with polling control to control the currency processor.

2.0. 명령문의 기본 구성은 아래와 같다.2.0. The basic structure of the statement is as follows:

STXSTX DC1DC1 CMDCMD 길101 10 1 이100 This10 0 place this foundation ETXETX BCCBCC

사용자정의문자(DC1)에 0x11을 기입(고정)한다. 명령코드문자(CMD)에 해당 명령 코드를 기입한다. 2바이트 '길이'영역 문자에 데이터의 길이를 바이트 수(디지트값)로 기입한다. 데이터가 없을 경우 두 바이트에 제로 값 0x30을 각각 기입한다. 데이터 영역에 명령과 함께 전달하기위한 정보를 기입한다. 패리티문자(BCC)에 사용자정의문자(DC1)로 부터 데이터블록 종단표지문자(ETX)까지 문자열의 비트값을 배타적 논리합의 값으로 연산하여 기입한다. 화폐처리장치에서 패리티 체크는 같은 문자열의 같은 논리연산으 값을 산출한 후 패리티문자(BCC)의 값과 비교하여 행한다. 후술하는 명령문과 응답문에기 기재된 코드는 앞서의 설명과 같이 기재한다. 특히 그 기재의 방법을 달리하거나 새로운 명령문 또는 응답문은 개별 명령문 또는 응답문에서 설명한다.Write (fix) 0x11 to the user-defined character DC1. Enter the command code in the command code character (CMD). Write the length of the data in the number of bytes (digit value) in the 2-byte 'length' area character. If there is no data, zero values 0x30 are written in two bytes. Fill in the data area with information to pass along with the command. In the parity character BCC, the bit value of the character string from the user-defined character DC1 to the data block end marker character ETX is calculated and written as an exclusive logical sum value. The parity check in the money processing device calculates the value of the same logical operation of the same character string and compares it with the value of the parity character (BCC). Codes described in the later-described statements and response statements are described as described above. In particular, the method of description or a new statement or response is described in a separate statement or response.

3. 화폐처리기는 스테이션 제어부의 폴링제어로서 전달하는 명령에 반응하여명령을 실행한 한 후 실행결과를 다음 응답문에 기입하여 스테이션 제어부에 전송한다.3. The money processor executes the command in response to the command transmitted as the polling control of the station controller, and then writes the result in the next response and transmits it to the station controller.

3.0. 화폐처리기 응답문의 기본 구성은 아래와 같다.3.0. The basic composition of a currency processor response is shown below.

STXSTX SASA SST1SST1 SST2SST2 SST3SST3 SST4SST4 SST5SST5 길101 10 1 이100 This10 0 place this foundation ETXETX BCCBCC

공통사항으로 화폐처리기에서 이전 명령의 실행하는 중이거나 또는 서비스이용자의 요구에 반응하여 작업중일 때 새로운 선택명령문(EOT+SA+UA+ENQ)이 수신되면 그 명령을 실행하지 않고 비트맵 상태기입문자 SST1의 비트0에 플레그 1을 기입한 후 부정응답문자 NAK, NAK를 회송 한다.In general, if a new optional statement (EOT + SA + UA + ENQ) is received while executing a previous command or working in response to a request from a service user, the bitmap state writer does not execute the command. After writing flag 1 to bit 0 of SST1, NAC and NAK are returned.

응답문에서 스테이션주소문자 (SA)에 할당된 스테이션 주소(0x4F)를 수록한다. 스테이션 주소는 복수의 스테이션이 화폐처리기를 공유할 때 스테이션을 식별하기위한 코드이다. 패리티 문자(BCC)에 상술한 패리티 값을 기입한다.The response contains the station address (0x4F) assigned to the station casing (SA). The station address is a code for identifying a station when multiple stations share a currency processor. The parity value described above is written in the parity character BCC.

4. 이 발명 스테이션 제어부와 화폐처리기의 제어부에 포함되는 폴링제어를 위한 명령과 응답 코드는 아래와 같다.4. The command and response code for polling control included in the controller of the invention station control unit and the money processor are as follows.

4.a. 명령 및 응답코드표4.a. Command and Response Code Table

명 령Command 응 답answer CODECODE 1One 리셋명령Reset command 리셋 응답Reset response 0x410x41 22 잠금명령Lock command 잠금 응답Lock response 0x420x42 33 설정명령Setting command 설정응답Response 0x430x43 44 제1정보일기명령First Information Diary Order 제1정보읽기응답First read response 0x440x44 55 제2정보읽기명령Second read information command 제2정보읽기응답Second information reading response 0x450x45 66 정산명령Settlement order 정산응답Settlement response 0x460x46 77 최대투입금액설정 명령Maximum input amount setting command 최대투입금액설정설정 응답Maximum input amount setting response 0x470x47 88 준비금설정명령Reserve money order 준비금 설정응답Reserve fund response 0x480x48 99 준비금가산명령Reserve Addition Order 준비금 가산응답Reserve money addition response 0x490x49 1010 준비금감산명령Reserve deduction order 준비금 감산응답Reserve money reduction response 0x4A0x4A 1111 동전지급기(호퍼)테스트명령Coin dispenser (hopper) test order 동전지급기 호퍼지불 응답Coin dispenser hopper payment response 0x4B0x4B 1212 준비금없음 예보설정명령No Reserves Forecast Setting Order 예보설정응답Forecast setting response 0x4C0x4C 1313 환경설정명령Preferences command 환경설정응답Preferences response 0x4D0x4D 1414 지불금액설정명령Payment amount setting order 지불응답Payment response 0x4E0x4E

4.b. 폴링응답(0x40)문을 아래와 같이 구성한다.4.b. Configure the polling response (0x40) as shown below.

4.b.0. 화폐처리기와 스테이션제어부에서 작업상태를 기입하고 작업상태를 차악하기위하여 상태기술문자 SST1 ~ SST2에 다음 상태를 할당하였다.4.b.0. The following states are assigned to the state descriptors SST1 to SST2 to fill in the work status and to grasp the work status in the currency processor and station control unit.

4.b.1. SST1의 비트맵4.b.1. Bitmap of SST1

비트beat 상태condition 내 용Contents 00 1One 리셋reset 1One 1One 작업중Working 22 1One 지폐 지급기 에러Banknote Error 33 1One 10원동전 지급기 에러10coin dispenser error 44 1One 50원동전 지급기 에러50 nuclear power dispenser error 55 1One 100원동전 지급기 에러100kW dispenser error 66 1One 500원동전 지급기 에러500 Won Coin Dispenser Error 77 1One 비사용('1'로 고정)Unused (fixed to '1')

4.b.2. SST2 수신된 명령코드 수록문자4.b.2. SST2 Received Command Code Character

코 드code 내 용Contents 0x400x40 폴링응답Polling response 0x410x41 레셋(응답 다시 요구)Reset (request response again) 0x420x42 잠금(응답 금지)명령Lock (No Response) Command 0x430x43 설정Set 0x440x44 제1정보취득First Information Acquisition 0x450x45 제2정보취득Second Information Acquisition 0x460x46 정산calculate 0x470x47 최대금액투입Maximum amount input 0x480x48 준비금설정Reserve 0x490x49 준비금가산Reserve money addition 0x4A0x4A 주비금감산Cost reduction 0x4B0x4B 동전지급기 테스트Coin dispenser test 0x4C0x4C 준비금없음 예보설정Reserve No Forecast Setting 0x4D0x4D 환경설정Preferences 0x4E0x4E 지불금액설정Payment amount setting

4.b.3 SST3문자 비트맵4.b.3 SST3 character bitmap

거스름돈(반환하는돈 포함)지불장치의 상태리스트Status list of change (including returning money) payment devices

비트beat 상태condition 내 용Contents 00 1One 지폐 지급기 설치안됨 (지급기 / 센서)Banknote dispenser not installed (Paper / Sensor) 1One 1One 불량 지폐 정장용 상자 가득참 (지급기)Bad Bank Dress Box Full (Paper) 22 1One 거스름돈 지폐(반환하는지폐 포함) 지불 완료(지급기)Changed banknotes (including return or deceased) Payment completed (payment machine) 33 1One 거스름돈 지폐 지급기 셔터열림 (지폐지급기)Change Banknotes Machine Shutter Opened (Paper Machine) 44 1One 10원 동전기급기 비어있음 (센서)10 won coin dispenser empty (sensor) 55 1One 50원 동전지급기 비어있음 (센서)50 won coin dispenser empty (sensor) 66 1One 100원 동전지급기 비어있음 (센서)100 won coin dispenser empty (sensor) 77 1One 500원 동전지급기 비어있음 (센서)500 won coin dispenser empty (sensor)

4.b.4. SST4문자의 비트맵4.b.4. Bitmap of SST4 Characters

비트beat 내 용Contents 00 1 = 지폐 디스펜서가 장착됨을 제어부에 알려줌1 = Tells the control unit that the bill dispenser is installed 1One 지폐식별기 종별구분 / 1 = KWA-26, 0 = EBA-10Banknote identifier Classification / 1 = KWA-26, 0 = EBA-10 22 동전선별기 종별구분 / 1 = LG SELECTOR, '0'= SS SELECTORCoin Selector Classification / 1 = LG SELECTOR, '0' = SS SELECTOR 33 지폐나 동전 반환기능/ 1 = 잠금, 0 = 열림Return bills or coins / 1 = lock, 0 = open 44 1 = 반환기능 동작중1 = Return function is in operation 55 1 = 유저에 의한 반환 스위치 눌림1 = user presses return switch 66 1 = 판매기에서 돈을받을 수 있는상태, 0 = 돈을받을수 없는상태1 = the state that can receive money from the vending machine, 0 = the state that can not receive money 77 1 = 지폐받을 수 없는상태, 0 = 지폐받을 수 없는상태1 = Unacceptable Banknote, 0 = Unacceptable Banknote

4.b.5. S0ST5문자 비트맵에 할당된 상태리스트4.b.5. Status list assigned to S0ST5 character bitmap

비트beat 상태condition 내 용Contents 00 1One 10원 동전없음 예보중Under 10 won coin no forecast 1One 1One 50원 동전없음 예보중50 won No coin Forecast 22 1One 100원 동전없음 예보중Under 100 won coin no forecast 33 1One 500원 동전없음 예보중500 won No coin Forecast 44 1One 1000원 지폐없음 예보중Under 1,000 won bill 55 1One 지폐식별가 동작될수없음Banknote Identification Can't Work 66 1One 동전 선별기 동작될수 없음Coin selector cannot be operated 77 1One

4.0.1. 폴링 응답에서 에러코드를 삽입하면 아래와같다.4.0.1. Inserting the error code in the polling response looks like this:

STXSTX SASA SST1SST1 SST2SST2 SST3SST3 SST4SST4 SST5SST5 길"0"Street "0" 이"6"This "6" 현(만)Prefecture (only) 재(천)Ash (cloth) 금(백)Gold (white) 액(십)(Ten) EE RR ETXETX BCCBCC

화폐처리기는 명령수행 후 스테이션주소수록문자(SA)에 할당된 주소(0x4F)를, 상태 수록문자 SST1, SST3, SST4, SST5의 비트맵에 명령 수행결과를 수록한다. 개별 비트맵에 대응되는 화폐처리기의 기능 또는 처리과정이 없을 경우 해당비트맵의 플레그는 무의미하므로 '0'으로 수록한다. 명령코드수록문자(SST2)에 폴링응답코드 0x40을, 4바이트 데이터영역("현제금액")에 10단위 이상의 현재금액 디지트 값을, 나머지 2바이트(ER)에 에러코드를 수록한다. 에러가 없을 경우 에러코드문자 2바이트에 제로문자 값(0x30)을 수록한다.The currency processor stores the address (0x4F) assigned to the station address record character SA after the command is executed and the result of the command execution in the bitmap of the state record characters SST1, SST3, SST4, and SST5. If there is no function or processing of the currency processor corresponding to the individual bitmap, the flag of the bitmap is meaningless and is recorded as '0'. The polling response code 0x40 is stored in the command code recording character SST2, the present value digit value of 10 or more units is stored in the 4-byte data area ("current amount"), and the error code is stored in the remaining two bytes (ER). If there is no error, the zero character value (0x30) is stored in two bytes of error code characters.

이와같은 응답문의 형식은 화폐체리기가 명령코드로 식별되는 명령을 수신하고, 그 명령을 해독하고, 데이터를 수신하여(데이터가 있는 경우) 명령을 수행한 후 수행 결과를 수록하여 스테이션 제어부에 제공하기 위한 것이다.This form of the response is that the money manager receives the command identified by the command code, decodes the command, receives the data (if there is data), executes the command, and stores the execution result and provides it to the station controller. It is for.

스테이션 제어부는 응답문을 수신하여 해독하고 수행결과를 분석하여 실형결과가 만족되면 다음명령을 수행하고 아니면 수행결과를 보정하기위한 명령을 화폐처리기에 전송한다.The station controller receives and decodes the response message, analyzes the performance result, and executes the next command if the actual result is satisfied, or sends a command to the money processor to correct the performance result.

4.1. 리셋(0x41) 명령문을 아래와같이 구성한다.4.1. Configure the reset (0x41) statement as follows:

4.1.0. 레셋 명령문4.1.0. Reset statement

STXSTX DC1DC1 CMDCMD 길"0"Street "0" 이"0"This "0" ETXETX BCCBCC

명령문자(CMD)에 리셋명령코드(0x41)를 수록한다.The reset command code (0x41) is stored in the statement (CMD).

이 명령이 전달되면 명령을 수신한 화폐처리기는 가) 화폐처리기의 보드를 리셋시키고, 나) 화폐처리기가 지폐지급기라면 지폐지급기를 인스톨 시키고, 다) 에러상태를 크리어한다.When this command is delivered, the money processor receiving the command: a) resets the board of the money processor; b) if the money processor is a bill dispenser, installs a bill dispenser; and c) clears the error condition.

4.1.1. 리셋 명령에 대한 응답문(0x41)4.1.1. Response to Reset Command (0x41)

STXSTX SASA SST1SST1 SST2SST2 SST3SST3 SST4SST4 SST5SST5 길"0"Street "0" 이"0"This "0" ETXETX BCCBCC

화폐처리기는 명령수행 후 스테이션주소수록문자(SA)에 할당된 주소 0x4F를 기입한다. 명령코드수록문자(SST2)에 해당 명령코드 0x41을 기입한다. 비트맵 상태수록문자에 당해 명령수행결과를 수록한다. 이 응답문을 다음번 폴링 문의시에 전송한다.The currency processor writes the address 0x4F assigned to the station address carrier character (SA) after executing the command. The command code 0x41 is written in the command code containing character SST2. The result of the instruction execution is stored in the bitmap state recording character. Send this response the next time you poll.

4.2. 잠금(0x42) 명령문을 다음과같이 구성한다.4.2. Construct the lock (0x42) statement as follows:

4.2.0. 명령문4.2.0. Statement

STXSTX DC1DC1 CMDCMD 길"0"Street "0" 이"1"This "1" 데이터data ETXETX BCCBCC

명령문자(CMD)에 잠금명령코드(0x42)를 수록한다. 데이터 문자에 언록요구시 '0'을 록 요구시 '1'을 수록한다. 데이터길이를 1바이트로 수록한다.The lock command code (0x42) is stored in the statement (CMD). The data character contains '0' for unlock request and '1' for request. The data length is stored in 1 byte.

4.2.1. 응답문4.2.1. Response

STXSTX SASA SST1SST1 SST2SST2 SST3SST3 SST4SST4 SST5SST5 길"0"Street "0" 이"2"This "2" 데이터data 데이터data ETXETX BCCBCC

화폐처리기는 명령수행 후 스테이션주소수록문자(SA)에 할당장치의 주소값(0x4F)를 수록한다. 명령코드수록문자 SST2에 잠금응답코드(0x42)를 수록한다. 비트맵 상태수록문자에 당해 명령수행결과를 수록한다.The currency processor stores the address value (0x4F) of the allocation device in the station address record character (SA) after the command is executed. The lock response code (0x42) is stored in the command code recording character SST2. The result of the instruction execution is stored in the bitmap state recording character.

가) 이 응답문은 폴링시에 반송한다. 나) 비트맵상태수록문자 SST4의 비트 3 잠금플레그를 확인한다. 다) 데이터문자에 에러코드를 수록한다. 에러가없을 경우 제로문자 0x30을 수록한다.A) This response shall be returned at the time of polling. B) Check the bit 3 lock flag of the character map SST4. C) The error code is stored in the data character. If there is no error, zero character 0x30 is stored.

4.3. 설정(0x43) 명령문을 다음과 같이 구성한다.4.3. Configure the Set (0x43) statement as follows:

4.3.0. 명령문4.3.0. Statement

STXSTX DC1DC1 CMDCMD 길"0"Street "0" 이"1"This "1" 데이터data ETXETX BCCBCC

명령문자(CMD)에 할당된 코드(0x43)을 기입한다.Write the code (0x43) assigned to the statement (CMD).

가) 입수가능, 입수 불가능, 잔돈반환 및 매상플레그를 크리어한다.(A) Clear available, unavailable, change returns and sales flags.

나) 데이터에 다음 구별에 따라 디지트 값을 수록한다.B) The digits are stored in the data according to the following distinction.

'0' = 입수불가, '1' = 입수가능, '2' = 잔돈반환, '3' = 매상크리어, '4' = 지폐반환( 지폐식별기 내의 지폐반환 )'0' = not available, '1' = available, '2' = change of return, '3' = sales clear, '4' = return of bills (returns of bills in bill identifier)

4.3.1. 응답문4.3.1. Response

STXSTX SASA SST1SST1 SST2SST2 SST3SST3 SST4SST4 SST5SST5 길"0"Street "0" 이"2"This "2" 데이터data 데이터data ETXETX BCCBCC

화폐처리기는 명령수행 후 명령코드수록문자(SST2)에 항달된 설정명령코드(0x43)를 수록한다. 비트맵 상태수록문자에 당해 명령수행결과를 수록한다. 스테이션주소기술문자(SA)에 할당된 스테이션 주소(0x4f)를 수록한다.The money processor stores the setting command code (0x43) delivered to the command code recording character (SST2) after the command is executed. The result of the instruction execution is stored in the bitmap state recording character. Contains the station address (0x4f) assigned to the station address descriptor (SA).

가) 이 응답은 다음의 폴링시 전송한다. 나) 비트맵상태수록문자(SST4)의 해당 비트플레그를 확인한다. 다) 데이터에 에러코드를 수록한다. 에러가 없을 경우 제로문자 값을(0x30) 수록한다.A) This response is sent during the next poll. B) Check the corresponding bit flag of the bitmap status recording character (SST4). C) The error code is stored in the data. If there is no error, zero character value (0x30) is stored.

4.4. 제1정보취득명령 (0x44)4.4. First Information Acquisition Order (0x44)

4.4.0. 명령문4.4.0. Statement

STXSTX DC1DC1 CMDCMD 길"0"Street "0" 이"0"This "0" ETXETX BCCBCC

명령문자(CMD)에 할당된 코드값 0x44를 수록하여 응답문의 b,c에 해당하는 정보를 요구한다.The code value 0x44 assigned to the statement (CMD) is included to request information corresponding to b and c of the response.

4.4.1. 응답4.4.1. answer

(a)(a)

STXSTX SASA SST1SST1 SST2SST2 SST3SST3 SST4SST4 SST5SST5 길"4"Way "4" 이"2"This "2"

(b)(b)

총판매금액(8)Total sales amount (8) 총판매매수(4)Total sales (4) 만원권입수매수(4)Purchase of 10,000 Won (4) 오천원권입수매수(4)Purchase of 5,000 won ticket (4) 천원권입수매수(4)Purchase of 1,000 won ticket (4)

(c)(c)

500원동전입수매수(4)Purchase of 500 Won (4) 100원동전입수매수(4)Purchase of 100 Won (4) 50원동전입수매수(4)Purchase of 50 Won (4) 10원동전입수매수(4)Purchase of 10 Won Dong (4) ETXETX BCCBCC

이 응답문의 a,b,c는 계속 연결된 명령문이다. b,c의 괄호속에 쓰인 문자는 바이트 수 이다.The a, b, and c in this response are the statements that are still connected. The characters in parentheses in b and c are the number of bytes.

화폐처리기는 명령수행 후 스테이션주소수록문자(SA)에 할당된 스테이션 주소값(0x4F)을 수록한다. 명령코드수록문자 SST2에 명령코드 0x44를 수록한다. 비트맵 상태수록문자에 당해 명령수행결과를 수록한다.The currency processor stores the station address value (0x4F) assigned to the station address register character (SA) after the command is executed. The command code 0x44 is stored in the command code recording character SST2. The result of the instruction execution is stored in the bitmap state recording character.

가) 이 응답문은 다음의 폴링시에 전송한다. 나) 데이터는 각각 총판매 금액, 총판매 매수, 각각 만원권,오천원권,천원권의 입수매수, 동전 500원, 100원, 50원, 10원의 입수매수와 에러코드를 반환한다. 에러가 없을 경우 제로값 0x30을 반환한다.A) This response is sent during the next poll. B) The data will return the total sales amount, total sales, purchases of 10,000 won, 5,000 won, 1,000 won, 500 won, 100 won, 50 won, and 10 won, respectively, and an error code. If there is no error, 0x30 is returned.

4.5. 제2정보취득명령(0x45)4.5. Second Information Acquisition Order (0x45)

4.5.0. 명령문4.5.0. Statement

STXSTX DC1DC1 CMDCMD 길"0"Street "0" 이"0"This "0" ETXETX BCCBCC

명령문자(CMS)에 0x45를 수록하여 응답문의 b,c에 해당하는 정보를 요구한다.0x45 is included in the statement (CMS) to request information corresponding to b and c in the response.

4.5.1. 응답문4.5.1. Response

(a)(a)

STXSTX SASA SST1SST1 SST2SST2 SST3SST3 SST4SST4 SST5SST5 길"4"Way "4" 이"2"This "2"

(b)(b)

준비매수천원권(4)Thousands of won tickets (4) 준비매수500원(4)Reserve 500 won (4) 준비매수100원(4)Purchase Order100KRW (4) 준비매수50원(4)Reserved purchase50 won (4) 준비매수10원(4)Purchase Order10KRW (4)

(c)(c)

지불매수천원권(4)Thousand Won Payment (4) 지불매수500원(4)Purchase amount500KRW (4) 지불매수100원(4)Purchase amount100KRW (4) 지불매수50원(4)50 purchase (4) 지불매수10원(4)10 purchase (4) ETXETX BCCBCC

이 응답문의 a,b,c는 계속 연결된 명령문이다. b,c의 괄호속에 쓰인 문자는 바이트 수를 나타낸다.The a, b, and c in this response are the statements that are still connected. The characters in parentheses in b and c represent the number of bytes.

화폐처리기는 명령수행 후 스테이션주소수록문자(SA)에 할당된 장치의 주소값(0x4F)을 수록한다. 명령코드수록문자 SST2에 명령코드 0x45를 수록한다. 비트맵 상태수록문자에 당해 명령수행결과를 수록한다.The money processor stores the address value (0x4F) of the device assigned to the station address sign character (SA) after the command is executed. The command code 0x45 is stored in the command code recording character SST2. The result of the instruction execution is stored in the bitmap state recording character.

가) 이 응답문은 다음의 폴링시에 반송한다. 나) 데이터는 각각 총판매금액, 총판매 매수, 각각 만원권,오천원권,천원권의 입수매수, 동전 500원, 100원, 50원, 10원의 입수매수와 에러코드를 반환한다. 에러가 없을 경우 제로값 0x30을 수록한다.This response shall be returned at the next polling. B) The data will return the total sales amount, total sales, purchases of 10,000 won, 5,000 won, 1,000 won, 500 won, 100 won, 50 won, and 10 won, respectively, and an error code. If there is no error, zero value 0x30 is stored.

4.6. 정산명령4.6. Settlement order

4.6.0. 정산 명령문4.6.0. Settlement Statement

STXSTX DC1DC1 CMDCMD 길"0"Street "0" 이"4"This "4" d정(만)d tablets (only) a산(천)a mountain (cloth) t금(백)t gold (white) a액(십)a sum (ten) ETXETX BCCBCC

명령문자(CMD)에 해당 명령 코드 0x46을 수록하여 정산요구임을 나타낸다.The command code 0x46 is included in the statement (CMD) to indicate the settlement request.

1)을 수록한다.Contains 1).

4.6.1. 정산 응답문4.6.1. Settlement Response

STXSTX SASA SST1SST1 SST2SST2 SST3SST3 SST4SST4 길"0"Street "0" 이"6"This "6" 정(만)(Only) 산(천)Mountain (cloth) 금(백)Gold (white) 액(십)(Ten) EE RR ETXETX BCCBCC

화폐처리기는 명령수행 후 스테이션주소수록문자(SA)에 할당된 주소값 0x4F를 수록한다. 명령코드수록문자 SST2에 정산 코드 0x46을 수록한다. 비트맵 상태수록문자에 당해 명령수행결과를 수록한다. 4바이트 데이터문자에 10자리 이상의 정산금액을 수록한다. 이 응답문은 다음의 폴링시에 반송한다. 정산금액에 이어진 2바이트 문자 ER에 에러코드를 수록하고 에러가 없을 경우 제로문자를 수록한다.The currency processor contains the address value 0x4F assigned to the station address register character (SA) after executing the command. The settlement code 0x46 is stored in the instruction code recording character SST2. The result of the instruction execution is stored in the bitmap state recording character. The settlement amount of 10 digits or more is stored in the 4-byte data character. This response is returned at the next poll. The error code is stored in the 2-byte character ER following the settlement amount, and zero characters if there is no error.

4.7. 최대투입금액 제한명령4.7. Maximum Input Amount Restriction Order

4.7.0 최대투입금액 제한 명령문4.7.0 Limiting Maximum Input Amount Statement

STXSTX DC1DC1 CMDCMD 길"0"Street "0" 이"8"This "8" 최(만)(Only) 대(천)Large 금(백)Gold (white) 액(십)(Ten) 금(만)Gold (only) 지(천)Ground (cloth) 금(백)Gold (white) 액(십)(Ten) ETXETX BCCBCC

이 명령문은 최대투입금액을 제한한다. 명령문자(CMD)에 할당된 코드 0x47을 수록하여 최대투입금액 제한 명령임을 나타낸다.This statement limits the maximum input amount. The code 0x47 assigned to the statement (CMD) is included to indicate that the maximum input amount is restricted.

4문자 최대금액문자에 10단위 이상의 최대금액을, 4문자 금지금액문자에 10단위 이상의 금지금액을 수록한다.The maximum amount of 10 units or more is included in the 4-character maximum amount text, and the maximum amount of 10 units or more is included in the 4-character prohibited amount character.

4.7.1. 최대 투입금액 제한 응답문4.7.1. Maximum input limit response

STXSTX SASA SST1SST1 SST2SST2 SST3SST3 SST4SST4 길"0"Street "0" 이"2"This "2" EE RR ETXETX BCCBCC

화폐처리기는 명령수행 후 스테이션주소문자(SA)에 주소값0x4f를 수록하고, 명령코드수록문자 SST2에 해당코드 0x47을 수록한다. 비트맵 상태수록문자에 당해 명령수행결과를 수록한다.The currency processor stores the address value 0x4f in the station main character (SA) after executing the command and the corresponding code 0x47 in the command code recording character SST2. The result of the instruction execution is stored in the bitmap state recording character.

이 응답은 다음의 폴링시에 전송한다. 에러가 발생했을 때 2바이트 에러문자(ER)에 에러코드를 수록하고 에러가없으면 제로값을 수록한다.This response is sent at the next poll. When an error occurs, the error code is stored in the two-byte error character (ER). If there is no error, zero value is stored.

4.8. 준비금설정(0x48)동작4.8. Reserve money setting (0x48) operation

4.8.0. 준비금설정 명령문4.8.0. Reserve statement

STXSTX DC1DC1 CMDCMD 길"0"Street "0" 이"5"This "5" KNDKND 설(천)Snow 정(백)Tablet (white) 매(십)Every ten 수(일)Number of days ETXETX BCCBCC

명령문자(CMD)에 해당코드 0x48을 수록한다. 권종식별문자(KND)에 권종 코드를 기입한다. 권종코드 0은 10원권, 1은 50원권, 2는 100원권, 3은 500원권, 4는 1000원권으로한다. 4바이트 설정매수(설정매수 0000-9999)를 디지트 값으로 기입한다.The code 0x48 is included in the statement (CMD). Enter the winding code in the winding identifier (KND). Volume code 0 is 10 won, 1 is 50 won, 2 is 100 won, 3 is 500 won and 4 is 1000 won. Enter the 4-byte number of sets (number of sets 0000-9999) as the digit value.

4.8.1. 준비금설정 응답문4.8.1. Reserve Setting Response

STXSTX SASA SST1SST1 SST2SST2 SST3SST3 SST4SST4 길"0"Street "0" 이"2"This "2" EE RR ETXETX BCCBCC

화폐처리기는 명령수행 후 스테이션주소문자(SA)에 주소값 0x4F를 수록한다.The currency processor stores the address value 0x4F in the station main character (SA) after executing the command.

명령문자(CMD)에 해당코드 0x48을 기입힌다. 비트맵 상태수록문자에 당해 명령수행결과를 수록한다.Write the code 0x48 in the statement (CMD). The result of the instruction execution is stored in the bitmap state recording character.

가) 이 응답문은 다음의 폴링시에 반송한다. 나) 2바이트 ER 문자에 에러코드를 기입한다. 에러가 없을 때 제로값을 기입한다.This response shall be returned at the next polling. B) Write the error code in the 2-byte ER character. Enter zero value when there is no error.

4.9. 준비금 가산 (0x49)4.9. Reserve amount added (0x49)

4.9.0. 준비금가산 명령문4.9.0. Reserve statement

STXSTX DC1DC1 CMDCMD 길"0"Street "0" 이"5"This "5" KNDKND 가(천)Ga (cloth) 산(백)Mountain (white) 매(십)Every ten 수(일)Number of days ETXETX BCCBCC

명령문자 CMD에 해당코드 0x49를 기입한다. 권종식별문자 KND에 권종식별코드를 기입한다. 권종코드 0은 10원권, 1은 50원권, 2는 100원권, 3은 500원권, 4는 1000원권으로 구분한다. 4바이트 데이터문자에 가산매수 값을 기입한다.Write the corresponding code 0x49 in the statement CMD. Enter the volume identification code in the KND identification character KND. Volume code 0 is divided into 10 won, 1 for 50, 2 for 100, 3 for 500 and 4 for 1000. Write the addition number value into the four-byte data character.

4.9.1. 준비금가산 응답문4.9.1. Reserve statement

STXSTX SASA SST1SST1 SST2SST2 SST3SST3 SST4SST4 길"0"Street "0" 이"2"This "2" EE RR ETXETX BCCBCC

화폐처리기는 명령수행 후 스테이션주소문자 SA에 주소값 0x4F를 기입한다. 명령코드수록문자 SST2에 준비금가산코드 0x49를 기입한다. 비트맵 상태수록문자에 당해 명령수행결과를 수록한다.The currency processor writes the address value 0x4F in the station capital letter SA after executing the command. Write the reserve money addition code 0x49 in the command code recorded character SST2. The result of the instruction execution is stored in the bitmap state recording character.

가) 이 응답문은 다음의 폴링시 반송한다. 나) 에러코드문자 ER에 에로코드를 기입한다. 에러가 없으면 제로값을 기입한다.This response shall be returned at the next polling. B) Write the error code in the error code character ER. Enter zero if there is no error.

4.10. 준비금 감산 (0x4A)4.10. Reserve reduction (0x4A)

4.10.0. 준비금감산 명령문4.10.0. Reserve Deduction Statement

STXSTX DC1DC1 CMDCMD 길"0"Street "0" 이"5"This "5" KNDKND 감(천)Persimmon (cloth) 산(백)Mountain (white) 매(십)Every ten 수(일)Number of days ETXETX BCCBCC

화폐처리기는 명령수행 후 명령문자 CMD에 해당코드 0x4A를 기입한다. 권종식별문자 KND에 권종코드를 기입한다. 권종코드 0은 10원권, 1은 50원권, 2는 100원권, 3은 500원권, 4는 1000원권으로 구분한다. 4바이트 감산매수 문자에 감산 수 값을 기입한다.The currency processor writes the code 0x4A in the statement CMD after executing the command. Enter the band code in the band identifier KND. Volume code 0 is divided into 10 won, 1 for 50, 2 for 100, 3 for 500 and 4 for 1000. Write the subtraction value in the 4-byte subtraction character.

4.10.1. 준비금감산 응답문4.10.1. Reserve Reduction Response

STXSTX SASA SST1SST1 SST2SST2 SST3SST3 SST4SST4 길"0"Street "0" 이"2"This "2" EE RR ETXETX BCCBCC

화폐처리기는 명령수행 후 스테이션주소문자 SA에 스테이션 주소값 0x4F를 기입한다. 명령코드수록문자 SST2에 준비금간산코드 0x4A를 기입한다. 비트맵 상태수록문자에 당해 명령수행결과를 수록한다.The currency processor writes the station address value 0x4F in the station capital letter SA after executing the command. Write the reserve money calculation code 0x4A in the command code recorded character SST2. The result of the instruction execution is stored in the bitmap state recording character.

가) 이 응답문은 다음의 폴링시에 전송한다. 나) 에러코드문자 ER에 에로코드를 기입한다. 에러가 없으면 제로값을 기입한다.A) This response is sent during the next poll. B) Write the error code in the error code character ER. Enter zero if there is no error.

4.11. 동전지급기(호퍼) 테스트 (0x4B)4.11. Coin dispenser (hopper) test (0x4B)

4.11.0. 동전지급기 테스트 명령문4.11.0. Coin Dispenser Test Statement

STXSTX DC1DC1 CMDCMD 길"0"Street "0" 이"1"This "1" HOPHOP ETXETX BCCBCC

명령문자 CMD에 동전지급기 테스트명령 코드 0x4B를 기입한다. 다종의 동전지급기를 테스트 할 수 있도록 동전지급기 식별문자 HOP에 식별코드를 기입한다. 동전지급기 식별코드 0은 10원권, 1은 50원권, 2는 100원권, 3은 500원권 동전지급이로 한다.Enter the coin dispenser test command code 0x4B in the statement CMD. Write the identification code on the coin dispenser identifier HOP to test multiple coin dispensers. Coin dispenser identification code 0 is 10 won, 1 is 50 won, 2 is 100 won and 3 is 500 won.

4.11.1. 동전지급기 테스트 응답문4.11.1. Coin Dispenser Test Response

STXSTX SASA SST1SST1 SST2SST2 SST3SST3 SST4SST4 길"0"Street "0" 이"7"This "7" HOPHOP 지(천)Ground (cloth) 불(백)Fire (white) 갯(십)(Ten) 수(일)Number of days EE RR ETXETX BCCBCC

화폐처리기는 명령수행 후 스테이션주소문자 SA에 주소값 0x4F를 기입한다. 명령코드수록문자 SST2에 해당코드 0x4B를 기입한다. 비트맵 상태수록문자에 당해 명령수행결과를 수록한다.The currency processor writes the address value 0x4F in the station capital letter SA after executing the command. Write the corresponding code 0x4B to the command code recorded character SST2. The result of the instruction execution is stored in the bitmap state recording character.

가) 이 응답문은 다음의 폴링시에 전송한다. 데이터 영역에 실제 지불갯수를 기입하고 에러문자 영역에 에러코드를 기입한다. 에러가 없으면 제로값을 기입한다.A) This response is sent during the next poll. Enter the actual number of payments in the data area and the error code in the error text area. Enter zero if there is no error.

4.12. 준비금없음 예보설정 (0x4C)4.12. Reserve No Forecast Forecast (0x4C)

4.12.0. 준비금없음 예보설정 명령문4.12.0. Reserve No Forecast Statement

STXSTX DC1DC1 CMDCMD 길"0"Street "0" 이"5"This "5" KNDKND 예(천)Yes (thousands) 보(백)Bo (back) 매(십)Every ten 수(일)Number of days ETXETX BCCBCC

명령문자 CMD에 해당코드 0x4C를 기입한다.Write the corresponding code 0x4C in the statement CMD.

권종코드수록문자 KND에 권종코드를 기입한다.Write the winding code in the writing code KND.

권종코드 0은 10원권, 1은 50원권, 2는 100원권, 3은 500원권, 4는 1000원권으로 구분한다.Volume code 0 is divided into 10 won, 1 for 50, 2 for 100, 3 for 500 and 4 for 1000.

4.12.1. 준비금 없음예보 응답문4.12.1. No Reserves Forecast Response

STXSTX SASA SST1SST1 SST2SST2 SST3SST3 SST4SST4 길"0"Street "0" 이"2"This "2" EE RR ETXETX BCCBCC

화폐처리기는 명령수행 후 스테이션주소수록문자 SA에 해당주소값 0x4F를 기입한다. 명령코드수록문자 SST2에 해당코드값 0x4C를 기입한다. 비트맵 상태수록문자에 당해 명령수행결과를 수록한다.The currency processor writes the address value 0x4F in the station address bearer SA after executing the command. Write the code value 0x4C to the command code recorded character SST2. The result of the instruction execution is stored in the bitmap state recording character.

가) 이 응답문은 다음 폴링시에 전송한다. 나) 데이터로서 에러코드수록문자 ER에 에러코드를 수록한다. 다) 에러가 없을때에 제로문자 0x30을 기입한다.A) This response is sent at the next poll. B) The error code is stored in the error code recording character ER as data. C) Enter zero character 0x30 when there is no error.

4.13. 환경설정 (0x4D)4.13. Preferences (0x4D)

4.13.0. 환경설정 명령문4.13.0. Preferences statement

STXSTX DC1DC1 CMDCMD 길"0"Street "0" 이"5"This "5" BDPBDP KWAKWA LGSLGS 잠(분)Sleep minutes 금(0.1분)Gold (0.1 minutes) HOP10HOP10 HOP50HOP50 HOP100HOP100 HOP500HOP500 ETXETX BCCBCC

명령수록문자 CMD에 환경설정코드 0x4D를 기입한다. 지폐지불기수록문자 BDP에 지폐지불기를 사용할 경우 값 1을 사용하지 않을 경우 값 0을 기입한다. 지폐인식기수록문자 KWA에 지폐인식기를 사용할 경우 값 1을 사용하지 않을 경우 값 0을 기입한다. 동전선별기수록문자 LGS에 사용할 경우 값 1을 사용하지 않을 경우 값 0을 기입한다. 잠금기능 수록문자 첫 바이트에 잠금을 해제하는 개방시간을 분단위로, 둘째 바이트에 10분지1분의 단위로 기입한다. 10원권동전지불기 수록문자 HOP-10에 사용할 경우 값 1을 사용하지 않을 경우 값 0을 기입한다. 50원권동전지불기 수록문자 HOP-50에 사용할 경우 값 1을 사용하지 않을 경우 값 0을 기입한다. 100원권동전지불기 수록문자 HOP-100에 사용할 경우 값 1을 사용하지 않을 경우 값 0을 기입한다. 500원권동전지불기 수록문자 HOP-500에 사용할 경우 값 1을 사용하지 않을 경우 값 0을 기입한다. 이 명령 수행후 반드시 리셋 명령을 수행한다.Write the configuration code 0x4D to the command containing character CMD. Enter the value 0 if the bill payment machine does not use the value 1 when the bill payment machine uses the BDP. Enter the value 0 when the bill acceptor is used for the bill acceptor KWA. Enter a value of 0 if not used in the coin selector LGS. The opening time to release the lock on the first byte of the lock character is written in minutes, and the second byte is written in tenths of minutes. Enter a value of 0 if no value 1 is used for the HOP-10 character set. Enter the value 0 if you do not use the value 1 if you are using the HOP-50. Enter the value 0 if you do not use the value 1 if you are using the HOP-100. Enter the value 0 if you do not use the value 1 if you are using the HOP-500. After executing this command, reset command must be executed.

4.13.1. 환경설정 응답문4.13.1. Preferences response

STXSTX SASA SST1SST1 SST2SST2 SST3SST3 SST4SST4 길"0"Street "0" 이"2"This "2" EE RR ETXETX BCCBCC

화폐처리기는 명령수행 후 스테이션주소수록문자 SA에 할당주소 0x4F를 기입한다. 명령코드수록문자 SST2에 해당 코드 0x4D를 기입한다. 비트맵 상태수록문자에 당해 명령수행결과를 기입한다.The currency processor writes the assigned address 0x4F in the station address bearer SA after executing the command. Write the corresponding code 0x4D to the command code recorded character SST2. The result of the instruction execution is written in the bitmap status recorded character.

이 응답문은 다음의 폴링시에 전송한다. 에러수록문자 ER에 에러코드를 기입한다. 에러가 없으면 제로값 0x30을 기입한다.This response is sent at the next poll. Write the error code in the error code character ER. If there is no error, enter zero value 0x30.

4.14. 지불금액 설정 (0x4E)4.14. Set payment amount (0x4E)

4.14.0. 지불금액 설정명령4.14.0. Payment amount setting order

STXSTX DC1DC1 CMDCMD 길"0"Street "0" 이"4"This "4" 지(만)but) 불(천)Fire (cloth) 금(백)Gold (white) 액(십)(Ten) ETXETX BCCBCC

명령수록문자 CMD에 지불금액설정코드 0x4E를 기입한다. 4 바이트 데이터 문자열에 지불금액의 10단위 이상 수자를 기입한다.Enter the payment amount setting code 0x4E in the command-recording character CMD. Write at least 10 digits of the payment amount in the 4-byte data string.

4.14.1. 지불금액설정 응답문4.14.1. Payment Setting Response

STXSTX SASA SST1SST1 SST2SST2 SST3SST3 SST4SST4 길"0"Street "0" 이"6"This "6" 지(만)but) 출(천)Exodus 금(백)Gold (white) 액(십)(Ten) EE RR ETXETX BCCBCC

화폐처리기는 명령수행 후 스테이션주소수록문자 SA에 할당된 주소값 0x4F를 기입한다. 명령수록문자 CMD에 지불금액설정 코드 0x4E를 기입한다. 비트맵 상태수록문자에 당해 명령수행결과를 수록한다.The currency processor writes the address value 0x4F assigned to the station address bearer SA after executing the command. Write the payment amount setting code 0x4E in the command-embedded character CMD. The result of the instruction execution is stored in the bitmap state recording character.

이 응답은 다음의 폴링시에 전송한다. 4바이트 지불금액 수록영역에 10단위 이상의 지불금액을 기입한다. 2바이트 에러 수록영역에 에러코드를 기입한다. 에러가 없을 때 공백문자 0x30을 기입한다.This response is sent at the next poll. Enter a payment amount of 10 units or more in the 4-byte payment amount recording area. Write the error code in the 2-byte error storage area. When there is no error, enter the space character 0x30.

이와같이 이 발명은 자판기 또는 다양한 무인 서비스시스템에서 요금수납 처리에 범용적으로 사용할 수 있는 폴링 제어 요금처리 장치를 제공하는 것이며, 주 제어장치에 단말 장치들을 RS232C 통신 케이블로 접속하고 주 제어장치가 복수의 단말장치들에 대하여 순차로 제어 명령을 전달하고 서비스요구를 문의하여 제어를행함으로써 주 제어장치가 다양한 단말장치들을 제어할 수 있게 하는 자판기의 폴링 제어 요금처리 장치를 제공하는 것이다.As such, the present invention provides a polling control fee processing device that can be used universally for billing processing in a vending machine or various unmanned service systems, and the terminal devices are connected to the main control device with an RS232C communication cable, It is to provide a polling control fee processing device of a vending machine that allows the main control device to control various terminal devices by sequentially transmitting control commands to the terminal devices and inquiring a service request.

Claims (2)

제어 컴퓨터(10)와 교신하며 컴퓨터의 제어를 받는 스테이션 제어부(11)는 지폐 수납기, 동전 수납기, 지폐지급기, 동전지급기, 지폐판독기, 동전계수기 등 하나 이상의 화폐처리기(12)들과 각각 직렬통신케이블로 접속되고, 스테이션 제어부(11)는 화폐처리기(12)의 상태를 문의하여 화폐처리기에 제어 명령을 전송하고, 화폐처리기(12)는 제어 명령을 해독하고 명령을 수행한 후 수행 결과를 스테이션 제어부(11)에 전송하도록 하며, 스테이션 제어부(11)는 응답을 해독하여 화폐처리기의 상태를 파악 하도록 하는것에 있어서,The station control unit 11 that communicates with the control computer 10 and is controlled by the computer has a serial communication cable with one or more currency processors 12, such as a bill acceptor, a coin acceptor, a bill dispenser, a coin dispenser, a bill reader, and a coin counter. The station controller 11 inquires the state of the money processor 12 and transmits a control command to the money processor, and the money processor 12 decodes the control command and performs the command and then outputs the result of the station controller. (11), the station control unit 11 to decode the response to determine the state of the currency processor, 스테이션 제어부는 화폐처리부와 약속된 명령 테이블을 보유하고, 하나이상의 화폐처리기를 각각 제어하기 위한 스테이션 제어부의 명령문에 명령코드를 수록하기 위한 명령문자와, 명령수행에 사용될 데이터를 수록하기 위한 하나이상의 데이터 수록문자와, 데이터 길이 정보를 전달하기 위한 데이터 길이 수록문자를 포함하며, 스테이션 제어부에 명령에 응답하여 전송하는 화폐처리기의 응답문에 화폐처리기의 각종 상태를 회신하기 위한 하나이상의 비트맵 상태수록 문자와, 응답에 대응된 명령 코드를 수록하기 위한 명령코드 수록문자와, 회신에 필요한 데이터를 수록하기 위한 데이터 수록문자와, 데이터 길이를 수록하기 위한 데이터 길이 수록문자를 포함하는 자판기의 폴링제어 요금처리장치.The station control unit holds a command table promised with the money processing unit, a statement for recording a command code in a statement of a station control unit for controlling one or more currency processors, and one or more data for storing data to be used for command execution. One or more bitmap status recording characters for returning various states of the currency processor to a response message of a currency processor including a record character and a data length record character for conveying data length information, and transmitting in response to a command to a station controller; Polling fee processing of a vending machine including a command code recording character for recording a command code corresponding to the response, a data recording character for storing data necessary for a reply, and a data length recording character for storing a data length Device. 제1항에 있어서, 응답문에 화폐의 권종코드 수록문자(KND), 스테이션주소 수록문자(SA), 유니트주소 수록문자(UA), 수신된 명령코드 수록문자(SS0T2), 비트맵 상태 수록문자(SST1, SST3, SST4, SST5)를 필요에 따라 포함하며,2. The response code according to claim 1, wherein the currency code code character (KND), station address character (SA), unit address character (UA), received command code character (SS0T2), and bitmap status bearer (SST1, SST3, SST4, SST5) as needed, 리셋명령문, 제1정보취득명령문, 제2정보취득명령문, 준비금설정명령문은 각각 "STX(데이터블록 선두표지 코드문자) + DC1(사용자정의 문자) + CMD(명령코드수록문자) + 길이수록문자 + ETX(데이터블록 종단표지 코드문자) + BCC(패리티 수록문자)"로서 구성하고,The reset statement, the first information acquisition command, the second information acquisition command, and the reserve fund setting statement are respectively "STX (data block head cover code character) + DC1 (user defined character) + CMD (command code recording character) + length recording character + ETX (data block end cover code character) + BCC (parity record character) " 잠금명령문, 설정명령문, 정산명령문, 최대투입금액명령문, 준비금가산명령문, 준비금감산명령문, 지불금액설정명령문은 각각 "STX(데이터블록 선두표지 코드문자) + DC1(사용자정의 문자) + CMD(명령코드수록문자) + 길이수록문자 + 데이터수록문자 + ETX(데이터블록 종단표지 코드문자) + BCC(패리티 수록문자)"로서 구성하고,The lock statement, the setting statement, the settlement statement, the maximum input amount statement, the reserve payment addition statement, the reserve payment reduction statement, and the payment amount setting statement are respectively "STX (data block head cover code letter) + DC1 (custom character) + CMD (command code). Recorded text) + length recorded text + data recorded text + ETX (data block end cover code text) + BCC (parity recorded text), 동전지급기(호퍼) 테스트명령문은 "STX(데이터블록 선두표지 코드문자) + DC1(사용자정의 문자) + CMD(명령코드수록문자) + 길이수록문자 + HOP(데이의 시작표지 코드 문자) + ETX(데이터블록 종단표지 코드문자) + BCC(패리티 수록문자)"로서 구성하고,Coin dispenser (Hopper) test command is "STX (data block leading cover code character) + DC1 (custom character) + CMD (command code record character) + length record character + HOP (day start cover code character) + ETX ( Data block end cover code character) + BCC (parity record character) " 준비금없음예보설정명령문은 "STX(데이터블록 선두표지 코드문자) + DC1(사용자정의 문자) + CMD(명령코드수록문자) + 길이수록문자 + KND(화폐의 권종코드 수록문자) + 데이터수록문자 + ETX(데이터블록 종단표지 코드문자) + BCC(패리티 수록문자)"로서 구성하고,Reserved no forecast setting command is "STX (data block leading cover code character) + DC1 (custom character) + CMD (command code record character) + length record character + KND (currency code record character) + data record character + ETX (data block end cover code character) + BCC (parity record character) " 환경설정명령문은 "STX(데이터블록 선두표지 코드문자) + DC1(사용자정의 문자) + CMD(명령코드수록문자) + 길이수록문자 + BDP(지폐지불기 플래그문자) + KWA(지폐인식기 플래그 문자) + LGS(동전선별기 플래그 문자) + 데이터수록문자 + HOP10(10원권 동전지불기 플래그 문자) + HOP50(50원권 동전지불기 플래그 문자) + HOP100(100원권 동전지불기 플래그 문자) + HOP500(500원권 동전지불기 플래그 문자) + ETX(데이터블록 종단표지 코드문자) + BCC(패리티 수록문자)"로서 구성하고,The configuration command is "STX (data block head cover code character) + DC1 (user defined character) + CMD (command code record character) + length record character + BDP (bank note flag character) + KWA (bank note flag character) + LGS (coin selector flag character) + data recording character + HOP10 (10-won coin coin flag character) + HOP50 (50-won coin coin flag character) + HOP100 (100-won coin coin flag character) + HOP500 (500-won coin Coin flag character) + ETX (data block end cover code character) + BCC (parity bearer) ", 리셋 응답문은 "STX(데이터블록 선두표지 코드문자) + AS(스테이션주소 수록 문자) + SST1(비트맵상태 수록문자) + SST2(명령코드 수록문자) + SST3(비트맵상태 수록문자) + SST4(비트맵상태 수록문자) + SST5(비트맵상태 수록문자) + 길이수록문자 + ETX(데이터블록 종단표지 코드문자) + BCC(패리티 수록문자)"로서 구성하며,The reset response is "STX (Data Block Leading Code Character) + AS (Station Address Recording Character) + SST1 (Bitmap Status Character) + SST2 (Command Code Character) + SST3 (Bitmap Status Character) + SST4 (Bitmap status record character) + SST5 (bitmap state record character) + length record character + ETX (data block end cover code character) + BCC (parity record character) " 잠금응답문, 설정응답문, 정산응답문, 최대투입금액응답문, 준비금설정응답문, 준비금가산응답문, 준비금감산응답문, 준비금없음예보설정응답문, 환경설정응답문, 지불금액설정응답문은 각각 "STX(데이터블록 선두표지 코드문자) + AS(스테이션주소 수록 문자) + SST1(비트맵상태 수록문자) + SST2(명령코드 수록문자) + SST3(비트맵상태 수록문자) + SST4(비트맵상태 수록문자) + SST5(비트맵상태 수록문자) + 길이수록문자 + 데이터수록문자 + 에러수록문자 + ETX(데이터블록 종단표지 코드문자) + BCC(패리티 수록문자)"로서 구성하며,Lock Response, Set Response, Settlement Response, Maximum Input Amount Response, Reserve Setting Response, Reserve Addition Response, Reserve Decrease Response, Reserve No Prediction Response, Configuration Response, Payment Amount Response "STX (Data Block Leading Code Character) + AS (Station Address Recording Character) + SST1 (Bitmap Status Character) + SST2 (Command Code Character) + SST3 (Bitmap Status Character) + SST4 (Bit) Map status record character) + SST5 (bitmap state record character) + length record character + data record character + error record character + ETX (data block end cover code character) + BCC (parity record character) " 제1정보응답문은 "STX(데이터블록 선두표지 코드문자) + AS(스테이션주소 수록 문자) + SST1(비트맵상태 수록문자) + SST2(명령코드 수록문자) + SST3(비트맵상태 수록문자) + SST4(비트맵상태 수록문자) + SST5(비트맵상태 수록문자) + 길이수록문자 + 총판매금액수록문자 + 총판매 매수 수록문자 + 만원권 입수 매수 수록문자 + 오천원권 입수 매수 수록문자 + 천원권 입수 매수 수록문자 + 오백원권 입수 매수 수록문자 + 백원권 입수 매수 수록문자 + 오십원권 입수 매수 수록문자 + 십원권 입수 매수 수록문자 + 데이터수록문자 + ETX(데이터블록 종단표지 코드문자) + BCC(패리티 수록문자)"로서 구성하며,The first information response is "STX (Data Block Leading Code Character) + AS (Station Address Recording Character) + SST1 (Bitmap Status Character) + SST2 (Command Code Character) + SST3 (Bitmap Status Character) + SST4 (bitmap status recording character) + SST5 (bitmap status recording character) + length recording character + total sales amount recording character + total sales number recording character + 10,000 won ticket purchase text character + 5,000 won ticket purchase number character + thousand won ticket purchase number Text + 500 won ticket purchase text + 100 won ticket purchase text + 50 won ticket purchase text + 10 won ticket purchase text + data record character + ETX (data block end cover code character) + BCC (parity record character) " Configured as 제2정보응답문은 "STX(데이터블록 선두표지 코드문자) + AS(스테이션주소 수록 문자) + SST1(비트맵상태 수록문자) + SST2(명령코드 수록문자) + SST3(비트맵상태 수록문자) + SST4(비트맵상태 수록문자) + SST5(비트맵상태 수록문자) + 길이수록문자 + 천원권 준비매수 수록문자 + 오백원권 준비매수 수록문자 + 백원권 준비매수 수록문자 + 오십원권 준비매수 수록문자 + 십원권 준비매수 수록문자 + 천원권 지불매수 수록문자 + 오백원권 지불매수 수록문자 + 백원권 지불매수 수록문자 + 오십원권 지불매수 수록문자 + 십원권 지불매수 수록문자 + 데이터수록문자 + ETX(데이터블록 종단표지 코드문자) + BCC(패리티 수록문자)"로서 구성하며,The second information response is "STX (Data Block Leading Code Character) + AS (Station Address Recording Character) + SST1 (Bitmap Status Character) + SST2 (Command Code Character) + SST3 (Bitmap Status Character) + SST4 (bitmap status recording character) + SST5 (bitmap status recording character) + length recording character + thousand won ticket ready purchase record character + 500 won ticket ready purchase record character + hundred won ticket ready purchase record + character Book preparation number + Character purchase amount + Thousand ticket payment character + Character purchase amount + 100 won payment character + Five-won payment character + Ten-won payment character + Character data + ETX (Data block end cover code Character) + BCC (parity coded letter) " 동전지급기 테스트 응답문은 "STX(데이터블록 선두표지 코드문자) + AS(스테이션주소 수록 문자) + SST1(비트맵상태 수록문자) + SST2(명령코드 수록문자) + SST3(비트맵상태 수록문자) + SST4(비트맵상태 수록문자) + SST5(비트맵상태 수록문자) + 길이수록문자 + HOP(동전지급기 식별문자) + 데이터수록문자 + 에러수록문자 + ETX(데이터블록 종단표지 코드문자) + BCC(패리티 수록문자)"로서 구성한것을 특징으로하는 자판기의 폴링제어 요금처리장치.Coin Dispenser test response is "STX (data block head cover code character) + AS (station address record character) + SST1 (bitmap status bearer) + SST2 (command code bearer) + SST3 (bitmap state bearer) + SST4 (bitmap status recorder) + SST5 (bitmap state recorder) + length recorder + HOP (cell power supply identifier) + data recorder + error recorder + ETX (data block end cover code character) + BCC (Parity bearer) "
KR1020000005386A 2000-02-03 2000-02-03 Vendingmachine for unmemed polling control fee menage system KR100354887B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020000005386A KR100354887B1 (en) 2000-02-03 2000-02-03 Vendingmachine for unmemed polling control fee menage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020000005386A KR100354887B1 (en) 2000-02-03 2000-02-03 Vendingmachine for unmemed polling control fee menage system

Publications (2)

Publication Number Publication Date
KR20010077536A KR20010077536A (en) 2001-08-20
KR100354887B1 true KR100354887B1 (en) 2002-09-30

Family

ID=19644120

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020000005386A KR100354887B1 (en) 2000-02-03 2000-02-03 Vendingmachine for unmemed polling control fee menage system

Country Status (1)

Country Link
KR (1) KR100354887B1 (en)

Also Published As

Publication number Publication date
KR20010077536A (en) 2001-08-20

Similar Documents

Publication Publication Date Title
US8011588B2 (en) Electronic wallet device and method of using electronic value
US3588449A (en) Electronic check-cashing system
EP0933731A1 (en) Electronic transaction system
GB2172731A (en) Automatic vending machine
US8065236B2 (en) Coin currency conversion systems and methods
CN101320498B (en) Method and device for credit deposit
CN200941231Y (en) Automatic ticks sale machine
CN102844796B (en) Automatic trading apparatus
KR100354887B1 (en) Vendingmachine for unmemed polling control fee menage system
WO1994019777A1 (en) Electronic funds control system
CN106971127A (en) A kind of bank card and bank&#39;s card identification method and system
CN204204121U (en) A kind ofly contain public transport payment and IC-card is sold card, filled the public transport vehicle-mounted equipment of card function
JP2003135830A (en) Game ball lending machine and its system
JPS5958597A (en) Automatic deposit paying machine
JP2004054346A (en) Method and apparatus for controlling vending machine
CN203386308U (en) Vehicle-mounted public bus cash fee-paying, IC card reading and cash recharging terminal
KR101170567B1 (en) Automatic teller machine for providing user input information and method thereof
JPH097035A (en) Automatic teller machine system
KR101228832B1 (en) Apparatus for managing money which taxi drivers have to turn over to the company
KR100351112B1 (en) Goods selling system of vending machine and method the same
JPH01123390A (en) Automatic cash handler
RU112791U1 (en) AUTOMATIC MACHINE FOR SALE OF PRINTED PRODUCTS WITH TRANSPORT INFORMATION
JP2000251149A (en) Electronic money system and receiving device for payment
TW507171B (en) System for providing information on land administration
GB2324186A (en) Card charging systems

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee