TWI459305B - Method and system for simulating tetminal machine - Google Patents

Method and system for simulating tetminal machine Download PDF

Info

Publication number
TWI459305B
TWI459305B TW099144064A TW99144064A TWI459305B TW I459305 B TWI459305 B TW I459305B TW 099144064 A TW099144064 A TW 099144064A TW 99144064 A TW99144064 A TW 99144064A TW I459305 B TWI459305 B TW I459305B
Authority
TW
Taiwan
Prior art keywords
card reader
server
command
card
host
Prior art date
Application number
TW099144064A
Other languages
Chinese (zh)
Other versions
TW201224946A (en
Inventor
Yuan Feng Chang
Charles Lee
Kun Ting Chiu
Original Assignee
Syscom Comp Engineering Co
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 Syscom Comp Engineering Co filed Critical Syscom Comp Engineering Co
Priority to TW099144064A priority Critical patent/TWI459305B/en
Publication of TW201224946A publication Critical patent/TW201224946A/en
Application granted granted Critical
Publication of TWI459305B publication Critical patent/TWI459305B/en

Links

Description

終端機模擬方法及系統Terminal machine simulation method and system

本發明是有關於一種終端機模擬方法及系統,且特別是有關於一種透過自動轉譯指令的方式,而能夠讓伺服器主機與晶片卡讀卡機進行溝通的終端機模擬方法及系統。The present invention relates to a terminal computer simulation method and system, and more particularly to a terminal computer simulation method and system capable of communicating between a server host and a chip card reader through an automatic translation instruction.

對於諸如像銀行、金融或電信服務的業者來說,多半必須提供消費者兼具穩定及可靠的服務內容,且業者與消費者對於這類服務的中斷容忍度都相當低。因此,大多數的業者會以同時具備了穩定、速度以及安全等特性的不停頓(Non-Stop)伺服器主機來做為提供服務的系統主機。For operators such as banking, finance or telecommunications services, it is often necessary to provide consumers with a stable and reliable service content, and both the industry and the consumer have a relatively low tolerance for such services. Therefore, most of the operators will use the non-stop server host with stability, speed and security as the system host to provide services.

以早期的天騰(Tandem)系統為例,其為一種Non-Stop伺服器主機,不但在今時今日仍是金融界系統主機的主流之一,同時也被廣泛地應用在其它需要全天候提供服務的行業中。為了增加使用操作上的便利性,許多能與Tandem伺服器主機溝通的終端機模擬系統也自然地應運而生,其中包括由Turbosoft所提供的Tandem 653X或Tandem 6530。這些終端機模擬系統可以直接在電腦主機上模擬終端機(例如櫃員機)的功能,據以和上述伺服器主機進行資料或指令的傳輸動作。Take the early Tiandem system as an example. It is a Non-Stop server host. It is still one of the mainstream of the financial system host system today, and is also widely used in other services that require 24/7 service. In the industry. In order to increase the convenience of operation, many terminal simulation systems that can communicate with the Tandem server host have naturally emerged, including the Tandem 653X or Tandem 6530 provided by Turbosoft. These terminal simulation systems can directly simulate the functions of a terminal (such as a teller machine) on a computer host, and accordingly perform data or command transmission operations with the above-mentioned server host.

然而,隨著科技產品不斷地推陳出新,這些早期的終端機模擬系統已經無法與興起的新應用銜接。圖1繪示為傳統銀行行員操作讀卡機的示意圖。如圖1所示,在讀卡機160~180分別與電腦主機130~150連接後,由於安裝在電腦主機130~150內的終端機模擬系統(未繪示)無法辨識讀卡機160~180,因此讀卡機160~180所讀取到的晶片卡資料只能透過網路先傳送至中途站120,並由中途站120對晶片卡資料進行格式轉換等處理後再傳送至伺服器主機110。然而,伺服器主機110在接收晶片卡資料後仍必需對其進行加密或解密等動作,因此銀行行員透過電腦主機130~150所送出的操作指令便無法立即被伺服器主機110所執行。However, as technology products continue to evolve, these early terminal simulation systems are no longer able to interface with emerging new applications. FIG. 1 is a schematic diagram of a conventional banker operating a card reader. As shown in FIG. 1, after the card readers 160-180 are respectively connected to the host computers 130-150, the terminal card simulation systems (not shown) installed in the host computers 130-150 cannot recognize the card readers 160-180. Therefore, the chip card data read by the card readers 160-180 can only be transmitted to the intermediate station 120 through the network, and processed by the intermediate station 120 to format the wafer card data, and then transmitted to the server host 110. However, the server host 110 must still encrypt or decrypt the chip card data after receiving the data, so that the operation instructions sent by the bank staff through the host computers 130-150 cannot be immediately executed by the server host 110.

除此之外,由讀卡機160~180所讀取的資料在傳送至伺服器主機110前,必須先由中途站120進行處理,故倘若中途站120目前正在處理讀卡機160所讀取的資料,那麼當電腦主機140~150將讀卡機170~180所讀取的資料傳送至中途站120時,中途站120必需先將目前進行的資料處理動作執行完畢後才能依序對其他資料進行處理。不難想見,中途站120在整個操作讀卡機的過程中無疑是造成處理速度低落的重大瓶頸,這將加長銀行行員等待伺服器主機110處理資料的時間,進而導致整個系統的效率低落。In addition, the data read by the card readers 160-180 must be processed by the intermediate station 120 before being transmitted to the server host 110, so that if the station 120 is currently processing the card reader 160, the data is read. The data, then when the host computer 140~150 transfers the data read by the card reader 170~180 to the intermediate station 120, the intermediate station 120 must first execute the current data processing action before the other data can be sequentially processed. Process it. It is not difficult to imagine that the midway station 120 is undoubtedly a major bottleneck in the process of operating the card reader, which will cause the bank staff to wait for the server host 110 to process the data, which leads to the inefficiency of the entire system.

本發明提供一種終端機模擬方法,透過自動轉譯指令的方式使得讀卡機與伺服器主機能夠直接辨識彼此所傳輸的資料,以降低伺服器主機對資料進行處理所耗費的時間。The invention provides a terminal machine simulation method, which enables the card reader and the server host to directly recognize the data transmitted by each other through the automatic translation instruction, so as to reduce the time taken by the server host to process the data.

本發明提供一種終端機模擬系統,透過此終端機模擬系統使讀卡機能與伺服器主機直接進行溝通,進而提升兩者間的溝通效率。The invention provides a terminal machine simulation system, through which the terminal machine simulation system enables the card reader machine to directly communicate with the server host, thereby improving the communication efficiency between the two.

本發明提出一種終端機模擬方法,用以透過電腦主機進行讀卡機與伺服器主機之間的溝通,其中讀卡機是用以讀取晶片卡。此方法在偵測到讀卡機後,接收由讀卡機所傳送之讀卡機指令,其中讀卡機指令包括讀卡機自晶片卡中所讀取到的晶片卡資料。接著,將讀卡機指令轉譯為伺服器主機所能識別之伺服器指令。最後,將伺服器指令傳送至伺服器主機以執行動作。The invention provides a terminal machine simulation method for communicating between a card reader and a server host through a computer host, wherein the card reader is used to read a wafer card. After detecting the card reader, the method receives the card reader command transmitted by the card reader, wherein the card reader command includes the card card data read by the card reader from the chip card. The card reader instructions are then translated into server instructions that are recognized by the server host. Finally, the server instructions are passed to the server host to perform the action.

依照本發明之一實施例所述之終端機模擬方法,其中在偵測讀卡機的步驟之前更包括建立與讀卡機之間的連線。A terminal emulation method according to an embodiment of the invention, wherein before the step of detecting the card reader, the connection between the card reader and the card reader is further included.

依照本發明之一實施例所述之終端機模擬方法,其中轉譯讀卡機指令為伺服器指令的步驟包括根據指令轉譯元件類別庫將讀卡機指令轉譯為伺服器指令。其中,指令轉譯元件類別庫包括讀卡機指令與伺服器指令的對應關係。A terminal emulation method according to an embodiment of the invention, wherein the step of translating the card reader command into a server command comprises translating the card reader command into a server command in accordance with the instruction translating component class library. The instruction translation component category library includes a correspondence between the card reader command and the server command.

依照本發明之一實施例所述之終端機模擬方法,其中轉譯讀卡機指令為伺服器指令的步驟包括對晶片卡資料進行資料處理動作,例如,加密晶片卡資料、解密晶片卡資料、驗證晶片卡資料或者轉換晶片卡資料之格式。而晶片卡資料包括身份識別碼。A terminal emulation method according to an embodiment of the present invention, wherein the step of translating the card reader command into a server command comprises performing data processing operations on the chip card data, for example, encrypting the chip card data, decrypting the chip card data, and verifying The format of the wafer card data or the conversion of the wafer card data. The chip card information includes an identification code.

依照本發明之一實施例所述之終端機模擬方法,其中將伺服器指令傳送至伺服器主機以執行動作的步驟包括伺服器主機根據晶片卡資料開啟資料存取權限。此後更包括由伺服器主機將對應資料存取權限的資料傳送至電腦主機。A terminal emulation method according to an embodiment of the present invention, wherein the step of transmitting a server command to a server host to perform an action comprises the server host initiating data access rights according to the chip card data. Thereafter, the server host transmits the data corresponding to the data access authority to the host computer.

依照本發明之一實施例所述之終端機模擬方法,其中讀卡機指令包括讀卡機與電腦主機溝通的高階程式指令,而伺服器指令包括電腦主機與伺服器主機溝通之低階程式指令。A terminal emulation method according to an embodiment of the present invention, wherein the card reader command includes a high-level program command that the card reader communicates with the host computer, and the server command includes a low-level program command that the host computer communicates with the server host. .

依照本發明之一實施例所述之終端機模擬方法,其中伺服器主機包括不停頓系統主機。A terminal emulation method according to an embodiment of the invention, wherein the server host comprises a non-stop system host.

從另一觀點來看,本發明提出另一種終端機模擬方法。此方法在偵測讀卡機後接收由伺服器主機所傳送之伺服器指令。接著將伺服器指令轉譯為讀卡機所能識別之讀卡機指令。最後,將讀卡機指令傳送至讀卡機以執行動作。From another point of view, the present invention proposes another terminal simulation method. This method receives the server command transmitted by the server host after detecting the card reader. The server instructions are then translated into card reader commands that the card reader can recognize. Finally, the card reader command is transmitted to the card reader to perform the action.

依照本發明之一實施例所述之終端機模擬方法,其中在偵測讀卡機的步驟之前更包括建立與讀卡機之間的連線。A terminal emulation method according to an embodiment of the invention, wherein before the step of detecting the card reader, the connection between the card reader and the card reader is further included.

依照本發明之一實施例所述之終端機模擬方法,其中轉譯伺服器指令為讀卡機指令的步驟包括根據指令轉譯元件類別庫將伺服器指令轉譯為讀卡機指令。其中,指令轉譯元件類別庫包括讀卡機指令與伺服器指令的對應關係。A terminal emulation method according to an embodiment of the invention, wherein the step of translating the server command into a card reader command comprises translating the server command into a card reader command according to the instruction translating component class library. The instruction translation component category library includes a correspondence between the card reader command and the server command.

依照本發明之一實施例所述之終端機模擬方法,其中將讀卡機指令傳送至讀卡機以執行動作的步驟包括驅動讀卡機以讀取晶片卡之晶片卡資料。A terminal emulation method according to an embodiment of the invention, wherein the step of transmitting the card reader command to the card reader to perform an action comprises driving the card reader to read the wafer card data of the wafer card.

依照本發明之一實施例所述之終端機模擬方法,其中讀卡機指令包括讀卡機與電腦主機溝通的高階程式指令,而伺服器指令包括電腦主機與伺服器主機溝通之低階程式指令。A terminal emulation method according to an embodiment of the present invention, wherein the card reader command includes a high-level program command that the card reader communicates with the host computer, and the server command includes a low-level program command that the host computer communicates with the server host. .

依照本發明之一實施例所述之終端機模擬方法,其中伺服器主機包括不停頓系統主機。A terminal emulation method according to an embodiment of the invention, wherein the server host comprises a non-stop system host.

從又一觀點來看,本發明提出一種終端機模擬系統,此系統包括第一傳輸介面、第二傳輸介面、指令轉譯元件類別庫以及轉譯單元。其中,第一傳輸介面用以連接至讀卡機並接收讀卡機所傳送之讀卡機指令,而讀卡機指令包括讀卡機自晶片卡所讀取的晶片卡資料。第二傳輸介面用以連接至伺服器主機並接收伺服器主機所傳送之伺服器指令。指令轉譯元件類別庫則用以記錄讀卡機指令與伺服器指令的對應關係。轉譯單元連接至第一傳輸介面、第二傳輸介面及指令轉譯元件類別庫,係用以根據指令轉譯元件類別庫轉譯讀卡機指令及伺服器指令。From another point of view, the present invention provides a terminal emulation system including a first transport interface, a second transport interface, a library of instruction translation component classes, and a translation unit. The first transmission interface is used to connect to the card reader and receive the card reader command transmitted by the card reader, and the card reader command includes the card card data read by the card reader from the chip card. The second transmission interface is used to connect to the server host and receive the server instructions transmitted by the server host. The instruction translation component class library is used to record the correspondence between the card reader command and the server command. The translation unit is coupled to the first transmission interface, the second transmission interface, and the instruction translation component category library for translating the card reader command and the server command according to the instruction translation component class library.

依照本發明之一實施例所述之終端機模擬系統,其中轉譯單元包括根據指令轉譯元件類別庫將讀卡機指令轉譯為伺服器指令,並透過第二傳輸介面將伺服器指令傳送至伺服器主機。另外,轉譯單元亦根據指令轉譯元件類別庫將伺服器指令轉譯為讀卡機指令,並透過第一傳輸介面將讀卡機指令傳送至讀卡機。A terminal simulation system according to an embodiment of the present invention, wherein the translation unit includes translating the card reader command into a server command according to the instruction translation component class library, and transmitting the server command to the server through the second transmission interface. Host. In addition, the translation unit translates the server instructions into card reader commands according to the instruction translation component class library, and transmits the card reader commands to the card reader through the first transmission interface.

依照本發明之一實施例所述之終端機模擬系統,其中轉譯單元更包括資料處理單元,用以對晶片卡資料進行資料處理動作。資料處理動作包括加密晶片卡資料、解密晶片卡資料、驗證晶片卡資料或轉換晶片卡資料之格式。According to an embodiment of the present invention, the translation unit further includes a data processing unit for performing data processing operations on the wafer card data. The data processing actions include encrypting the wafer card data, decrypting the wafer card data, verifying the wafer card data, or converting the format of the wafer card data.

依照本發明之一實施例所述之終端機模擬系統,其中讀卡機指令包括高階程式指令,而伺服器指令包括低階程式指令。A terminal emulation system according to an embodiment of the invention, wherein the card reader command comprises a high-level program command, and the server command comprises a low-level program command.

依照本發明之一實施例所述之終端機模擬系統,其中伺服器主機包括不停頓系統主機。A terminal emulation system according to an embodiment of the invention, wherein the server host comprises a non-stop system host.

本發明以自動轉譯指令的方式使得讀卡機與伺服器主機能夠直接辨識彼此所傳輸的資料。當終端機模擬系統偵測讀卡機已連線後,讀卡機可透過此終端機模擬系統與伺服器主機進行溝通。因此,伺服器主機不再需要對接收自讀卡機的資料進行額外處理,進而可以提升伺服器主機的處理效能。The invention enables the card reader and the server host to directly recognize the data transmitted by each other in the manner of automatic translation instructions. After the terminal analog system detects that the card reader is connected, the card reader can communicate with the server host through the terminal simulation system. Therefore, the server host no longer needs to perform additional processing on the data received from the card reader, thereby improving the processing performance of the server host.

為讓本發明之上述特徵和優點能更明顯易懂,下文特舉較佳實施例,並配合所附圖式,作詳細說明如下。The above described features and advantages of the present invention will be more apparent from the following description.

在透過電腦主機連接讀卡機以及伺服器主機時,若是能在送出讀卡機機所讀取的資料前,即先對資料進行處理,勢必能減輕伺服器主機的負擔,進而加快工作效率。本發明便是基於上述觀點進而發展出的一種終端境模擬方法及系統。為了使本發明之內容更為明瞭,以下特舉實施例作為本發明確實能夠據以實施的範例。When the card reader and the server host are connected through the host computer, if the data can be processed before the data read by the card reader machine is sent, the burden on the server host is reduced, and the work efficiency is accelerated. The present invention is a terminal environment simulation method and system developed based on the above viewpoints. In order to clarify the content of the present invention, the following specific examples are given as examples in which the present invention can be implemented.

圖2是依照本發明一實施例所繪示之終端機模擬系統的方塊圖。請參照圖2,終端機模擬系統200例如係安裝於一電腦主機(未繪示)上,其包括第一傳輸介面210、轉譯單元220、指令轉譯元件類別庫230以及第二傳輸介面240。其中,轉譯單元220更包括資料處理單元221。2 is a block diagram of a terminal system simulation system in accordance with an embodiment of the invention. Referring to FIG. 2, the terminal simulation system 200 is installed, for example, on a computer host (not shown), and includes a first transmission interface 210, a translation unit 220, an instruction translation component category library 230, and a second transmission interface 240. The translation unit 220 further includes a data processing unit 221.

終端機模擬系統200透過第一傳輸介面210與用以讀取晶片卡(未繪示)的讀卡機250相互連接,並接收讀卡機250所傳送之讀卡機指令,而讀卡機指令包括讀卡機250從晶片卡中所讀取的晶片卡資料。在本實施例中,第一傳輸介面210例如是通用串列匯流排(Universal Serial Bus,USB)。The terminal emulation system 200 is interconnected with the card reader 250 for reading a wafer card (not shown) through the first transmission interface 210, and receives the card reader command transmitted by the card reader 250, and the card reader command The wafer card data read by the card reader 250 from the wafer card is included. In this embodiment, the first transmission interface 210 is, for example, a Universal Serial Bus (USB).

轉譯單元220連接至第一傳輸介面210、指令轉譯元件類別庫230以及第二傳輸介面240,係用以根據指令轉譯元件類別庫230進行讀卡機指令及伺服器指令之間的轉換動作。其中,指令轉譯元件類別庫230記錄了讀卡機指令與伺服器指令的對應關係。在一實施例中,讀卡機250與電腦主機溝通所需要的讀卡機指令包括以高階程式語言(high level programming language)(例如C語言)所編寫之高階程式指令;而電腦主機與伺服器主機260溝通所需要的伺服器指令則包括由低階(low level)程式語言(例如機器語言,machine language)所編寫之低階程式指令。The translation unit 220 is coupled to the first transmission interface 210, the instruction translation component class library 230, and the second transmission interface 240 for performing a conversion operation between the card reader command and the server command according to the instruction translation component class library 230. The instruction translation component category library 230 records the correspondence between the card reader command and the server command. In an embodiment, the card reader command required for the card reader 250 to communicate with the host computer includes high-level program instructions written in a high level programming language (eg, C language); and the host computer and the server The server instructions required for communication by the host 260 include low-level program instructions written by a low level programming language (eg, machine language).

轉譯單元220中的資料處理單元221是用以對晶片卡資料進行資料處理動作。資料處理動作例如可以是加密晶片卡資料、解密晶片卡資料、驗證晶片卡資料或轉換晶片卡資料之格式等等。也就是說,本實施例是在電腦主機上便透過終端機模擬系統200先進行資料處理動作,因此伺服器主機260在接收資料後便能直接使用之。The data processing unit 221 in the translation unit 220 is configured to perform data processing operations on the wafer card data. The data processing action may be, for example, encrypting the chip card data, decrypting the chip card data, verifying the chip card data, or converting the format of the wafer card data. That is to say, in the embodiment, the data processing operation is first performed on the host computer through the terminal simulation system 200, so the server host 260 can directly use the data after receiving the data.

終端機模擬系統200透過第二傳輸介面240以連接至伺服器主機260,並得以接收伺服器主機260所傳送之伺服器指令。在本實施例中,伺服器主機260例如是不停頓(Non-Stop)系統主機,而第二傳輸介面240例如是網路介面,以藉由網路傳輸在電腦主機與伺服器主機260間傳遞伺服器指令。The terminal emulation system 200 is coupled to the server host 260 via the second transport interface 240 and is capable of receiving server commands transmitted by the server host 260. In this embodiment, the server host 260 is, for example, a non-stop system host, and the second transmission interface 240 is, for example, a network interface, and is transmitted between the host computer and the server host 260 by network transmission. Server instruction.

在以下的實施例中,則是以終端機模擬系統200的運作流程來說明伺服器主機260與讀卡機250之間溝通的詳細步驟,據以對本發明作更進一步的說明。圖3是依照本發明一實施例所繪示之終端機模擬方法的流程圖。請同時參照圖2及圖3,在讀卡機250連線至電腦主機後,首先如步驟S310所示,終端機模擬系統200透過第一傳輸介面210偵測此時讀卡機250已連接至電腦主機。In the following embodiments, the detailed steps of communication between the server host 260 and the card reader 250 will be described in terms of the operational flow of the terminal emulation system 200, and the present invention will be further described. FIG. 3 is a flow chart of a method for simulating a terminal according to an embodiment of the invention. Referring to FIG. 2 and FIG. 3, after the card reader 250 is connected to the computer host, first, as shown in step S310, the terminal simulation system 200 detects through the first transmission interface 210 that the card reader 250 is connected to the computer. Host.

接著,在步驟S320中,終端機模擬系統200藉由第一傳輸介面210接收由讀卡機250所傳送之讀卡機指令。此讀卡機指令例如記錄有讀卡機250自晶片卡中所讀取到的晶片卡資料(例如身份識別碼)。Next, in step S320, the terminal emulation system 200 receives the card reader command transmitted by the card reader 250 via the first transmission interface 210. The card reader command records, for example, the wafer card data (e.g., identification code) read by the card reader 250 from the wafer card.

在步驟S330中,透過終端機模擬系統200中的轉譯單元220,將讀卡機指令轉譯為伺服器主機260所能識別之伺服器指令。其中,轉譯單元220是根據指令轉譯元件類別庫230中所記錄之對應關係,將讀卡機指令轉譯為伺服器主機260可以直接識別的伺服器指令。In step S330, the card reader command is translated into a server command recognizable by the server host 260 through the translation unit 220 in the terminal emulation system 200. The translation unit 220 translates the card reader command into a server command that can be directly recognized by the server host 260 according to the correspondence recorded in the instruction translation component class library 230.

另外,轉譯單元220在進行轉譯動作時更包括藉由資料處理單元221對晶片卡資料進行加密、解密、驗證或格式轉換等資料處理動作。舉例來說,在取得晶片卡資料後透過資料處理單元221對其進行驗證,便可判定讀卡機250目前所讀取的晶片卡是否有效。In addition, the translation unit 220 further includes a data processing operation of encrypting, decrypting, verifying, or converting the wafer card data by the data processing unit 221 when performing the translation operation. For example, after the wafer card data is acquired and verified by the data processing unit 221, it can be determined whether the wafer card currently read by the card reader 250 is valid.

最後,在步驟S340中,透過第二傳輸介面240將由轉譯單元220所轉譯之伺服器指令傳送至伺服器主機260,據以讓伺服器主機260根據伺服器指令以執行特定動作。舉例來說,伺服器主機260將根據晶片卡資料中的身份識別碼,開啟對應此身份識別碼的資料存取權限。Finally, in step S340, the server command translated by the translation unit 220 is transmitted to the server host 260 through the second transmission interface 240, so that the server host 260 performs a specific action according to the server command. For example, the server host 260 will open the data access authority corresponding to the identification code according to the identification code in the chip card data.

值得注意的是,唯有將記錄有資料存取權限之身份識別碼的晶片卡放入讀卡機250,伺服器主機260才會將對應的資料傳送至電腦主機,使得終端機模擬系統200得以在資料存取權限範圍內進行資料存取等操作。It should be noted that only the chip card that records the identification code with the data access authority is placed in the card reader 250, and the server host 260 transmits the corresponding data to the host computer, so that the terminal simulation system 200 can be Data access and other operations within the scope of data access rights.

本發明之一實施例所述之終端機模擬系統220不僅可先行處理由讀卡機250所讀取的晶片卡資料,接著再將其傳送至伺服器主機260,同時亦可根據伺服器主機260所發送的指令對讀卡機250進行操作。以下即是轉譯伺服器主機260所傳送之伺服器指令,據以操作讀卡機250的詳細步驟。The terminal simulation system 220 according to an embodiment of the present invention can not only process the chip card data read by the card reader 250, but also transmit it to the server host 260, and can also be based on the server host 260. The transmitted instructions operate on the card reader 250. The following is the detailed steps of operating the card reader 250 by the server instructions transmitted by the translation server host 260.

圖4是依照本發明另一實施例所繪示之終端機模擬方法的流程圖。請同時參照圖2及圖4,由於步驟S410所執行的動作與上一實施例之步驟S310相同或相似,故在此不再詳述。在步驟S420中,終端機模擬系統200藉由第二傳輸介面240接收由伺服器主機260所傳送之伺服器指令。4 is a flow chart of a method for simulating a terminal according to another embodiment of the present invention. Referring to FIG. 2 and FIG. 4 simultaneously, since the action performed in step S410 is the same as or similar to step S310 in the previous embodiment, it will not be described in detail herein. In step S420, the terminal emulation system 200 receives the server command transmitted by the server host 260 via the second transmission interface 240.

接下來如步驟S430所示,終端機模擬系統200透過轉譯單元220將伺服器指令轉譯為讀卡機250所能識別之讀卡機指令。其中,指令轉譯動作例如是根據記錄在指令轉譯元件類別庫230中的指令對應關係,將伺服器指令轉譯為讀卡機指令。Next, as shown in step S430, the terminal simulation system 200 translates the server instructions into the card reader commands recognized by the card reader 250 through the translation unit 220. The instruction translation action translates the server instruction into a card reader instruction based on, for example, an instruction correspondence recorded in the instruction translation component class library 230.

最後,在步驟S440中,終端機模擬系統200透過第一傳輸介面210將轉譯單元220所轉譯之讀卡機指令傳送至讀卡機250以執行特定動作。在本實施例中,此動作例如是驅動讀卡機250以讀取晶片卡中的晶片卡資料。Finally, in step S440, the terminal emulation system 200 transmits the card reader command translated by the translation unit 220 to the card reader 250 through the first transmission interface 210 to perform a specific action. In the present embodiment, this action is, for example, driving the card reader 250 to read the wafer card data in the wafer card.

在另一實施例中,當伺服器主機260係根據使用者的身分以提供不同的服務時,首先,伺服器主機260將發出伺服器指令至電腦主機,並透過電腦主機上的終端機模擬系統200將其轉譯為讀卡機指令,以驅動讀卡機250進行資料讀取動作。In another embodiment, when the server host 260 provides different services according to the user's identity, first, the server host 260 will issue a server command to the host computer, and through the terminal emulation system on the computer host. The 200 translates it into a card reader command to drive the card reader 250 to perform a data reading operation.

接著,讀卡機250根據轉譯後的讀卡機指令讀取晶片卡上的晶片卡資料(即身份識別碼)。假設伺服器主機260所提供的服務僅供主管使用,那麼終端機模擬系統200在接收讀卡機250所傳送之晶片卡資料時,將藉由資料處理單元221取得晶片卡資料上的身分識別碼,以及驗證卡片持有人是否符合主管身份。Next, the card reader 250 reads the wafer card data (i.e., the identification code) on the wafer card according to the translated card reader command. Assuming that the service provided by the server host 260 is only used by the supervisor, the terminal simulation system 200 will obtain the identity identification code on the wafer card data by the data processing unit 221 when receiving the wafer card data transmitted by the card reader 250. And verify that the card holder is in compliance with the supervisor status.

在上述動作處理完畢後,終端模擬系統200中的轉譯單元220便將記錄有身分識別碼的讀卡機指令轉譯為伺服器指令,並將其傳送至伺服器主機260。據此,伺服器主機260便可根據晶片卡所對應的身份識別碼,開啟適當的資料存取權限,並將資料傳送至電腦主機以提供特定服務。After the above-described action processing is completed, the translation unit 220 in the terminal simulation system 200 translates the card reader command in which the identity identification code is recorded into a server command and transmits it to the server host 260. Accordingly, the server host 260 can open the appropriate data access rights according to the identity code corresponding to the chip card, and transmit the data to the computer host to provide a specific service.

圖5是依照本發明一實施例所繪示之使用讀卡機的示意圖。請參照圖5,在讀卡機550~570分別與安裝了終端機模擬系統的電腦主機520~540連接後,由讀卡機550~570所讀取之晶片卡資料皆會由電腦主機520~540上的終端機模擬系統先行轉譯,接著再傳送至伺服器主機510。反之,由伺服器主機510所傳送的指令或資料,也將各別由電腦主機520~540上的終端機模擬系統進行轉譯再傳送至讀卡機550~570。據此不難發現,透過電腦主機上的終端機模擬系統,在讀卡機與伺服器主機之間傳送資料時,不再需要中途站依照傳送資料的順序來進行處理,據此可以節省等待中途站處理資料所需要的時間。FIG. 5 is a schematic diagram of a card reader according to an embodiment of the invention. Referring to FIG. 5, after the card readers 550~570 are respectively connected to the computer hosts 520~540 with the terminal emulation system installed, the chip card data read by the card readers 550~570 will be from the computer host 520~540. The terminal emulation system on the top is translated first and then transferred to the server host 510. On the contrary, the instructions or data transmitted by the server host 510 are also translated and transmitted to the card readers 550-570 by the terminal emulation system on the host computers 520-540. According to this, it is not difficult to find that when the data is transmitted between the card reader and the server host through the terminal emulation system on the host computer, the intermediate station is no longer required to process in accordance with the order of the transmitted data, thereby saving the waiting station. The time required to process the data.

綜上所述,本發明之終端機模擬方法及系統至少具有下列優點:In summary, the terminal device simulation method and system of the present invention have at least the following advantages:

1.在電腦主機上以自動轉譯指令的方式,使得伺服器主機能直接識別讀卡機所傳送的資料,進而減輕伺服器主機處理資料的負擔,據以提昇工作效率。1. The automatic translation instruction on the host computer enables the server host to directly recognize the data transmitted by the card reader, thereby reducing the burden on the server host to process data, thereby improving work efficiency.

2.透過安裝終端機模擬系統的電腦主機,個別對相連之讀卡機所讀取的資料進行處理,以達到資料處理平行化的目的,進而加快資料處理的速度。2. Through the computer host of the terminal simulation system, the data read by the connected card reader is processed individually to achieve the purpose of data processing parallelization, thereby speeding up the data processing.

3.無需額外設置中途站來轉譯讀卡機所讀取的資料格式,據此將能省去對中途站進行維修所需要的經費,進而減低硬體建置的成本。3. There is no need to set up a midway station to translate the data format read by the card reader, which will save the cost of repairing the intermediate station, thereby reducing the cost of hardware construction.

雖然本發明已以較佳實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明之精神和範圍內,當可作些許之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。Although the present invention has been disclosed in the above preferred embodiments, it is not intended to limit the invention, and any one of ordinary skill in the art can make some modifications and refinements without departing from the spirit and scope of the invention. Therefore, the scope of the invention is defined by the scope of the appended claims.

110、260、510...伺服器主機110, 260, 510. . . Server host

120...中途站120. . . stop

130、140、150、520、530、540...電腦主機130, 140, 150, 520, 530, 540. . . Computer host

160、170、180、250、550、560、570...讀卡機160, 170, 180, 250, 550, 560, 570. . . Card reader

200...終端模擬系統200. . . Terminal simulation system

210...第一傳輸介面210. . . First transmission interface

220...轉譯單元220. . . Translation unit

221...資料處理單元221. . . Data processing unit

230...指令轉譯元件類別庫230. . . Instruction translation component class library

240...第二傳輸介面240. . . Second transmission interface

S310~S340...本發明一實施例所述之終端機模擬方法的各步驟S310~S340. . . Each step of the terminal machine simulation method according to an embodiment of the present invention

S410~S440...本發明另一實施例所述之終端機模擬方法的各步驟S410~S440. . . Each step of the terminal machine simulation method according to another embodiment of the present invention

圖1繪示為傳統銀行行員操作讀卡機的示意圖。FIG. 1 is a schematic diagram of a conventional banker operating a card reader.

圖2是依照本發明一實施例所繪示之終端機模擬系統的方塊圖。2 is a block diagram of a terminal system simulation system in accordance with an embodiment of the invention.

圖3是依照本發明一實施例所繪示之終端機模擬方法的流程圖。FIG. 3 is a flow chart of a method for simulating a terminal according to an embodiment of the invention.

圖4是依照本發明另一實施例所繪示之終端機模擬方法的流程圖。4 is a flow chart of a method for simulating a terminal according to another embodiment of the present invention.

圖5是依照本發明一實施例所繪示之使用讀卡機的示意圖。FIG. 5 is a schematic diagram of a card reader according to an embodiment of the invention.

S310~S340...本發明一實施例所述之終端機模擬方法的各步驟S310~S340. . . Each step of the terminal machine simulation method according to an embodiment of the present invention

Claims (28)

一種終端機模擬方法,用以透過一電腦主機進行一讀卡機與一伺服器主機之間的溝通,其中該讀卡機用以讀取一晶片卡,該方法包括下列步驟:偵測該讀卡機;接收由該讀卡機所傳送之一讀卡機指令,其中該讀卡機指令包括該讀卡機自該晶片卡中所讀取之一晶片卡資料;轉譯該讀卡機指令為該伺服器主機所能識別之一伺服器指令;以及傳送該伺服器指令至該伺服器主機以執行一動作。A terminal machine simulation method for communicating between a card reader and a server host through a computer host, wherein the card reader is configured to read a wafer card, the method comprising the steps of: detecting the reading a card reader; receiving a card reader command transmitted by the card reader, wherein the card reader command includes one of the wafer card data read by the card reader from the chip card; and the translation of the card reader command is The server host can identify one of the server instructions; and transmit the server command to the server host to perform an action. 如申請專利範圍第1項所述之終端機模擬方法,其中在偵測該讀卡機的步驟之前更包括:建立與該讀卡機之間的連線。The method for simulating a terminal according to claim 1, wherein before the step of detecting the card reader, the method further comprises: establishing a connection with the card reader. 如申請專利範圍第1項所述之終端機模擬方法,其中轉譯該讀卡機指令為該伺服器主機所能識別之該伺服器指令的步驟包括:根據一指令轉譯元件類別庫轉譯該讀卡機指令為該伺服器指令。The terminal simulation method of claim 1, wherein the step of translating the card reader command into the server command that the server host can recognize comprises: translating the card according to an instruction translation component class library; The machine command is the server command. 如申請專利範圍第3項所述之終端機模擬方法,其中該指令轉譯元件類別庫包括該讀卡機指令與該伺服器指令的對應關係。The terminal simulation method of claim 3, wherein the instruction translation component category library includes a correspondence between the reader command and the server instruction. 如申請專利範圍第1項所述之終端機模擬方法,其中轉譯該讀卡機指令為該伺服器主機所能識別之該伺服器指令的步驟更包括:對該晶片卡資料進行一資料處理動作。The terminal device simulation method of claim 1, wherein the step of translating the card reader command into the server command that the server host can recognize further comprises: performing a data processing operation on the chip card data. . 如申請專利範圍第5項所述之終端機模擬方法,其中該資料處理動作包括加密該晶片卡資料、解密該晶片卡資料、驗證該晶片卡資料及轉換該晶片卡資料之格式其中之一。The terminal device simulation method according to claim 5, wherein the data processing action comprises one of encrypting the chip card data, decrypting the wafer card data, verifying the chip card data, and converting the wafer card data. 如申請專利範圍第1項所述之終端機模擬方法,其中該動作包括該伺服器主機根據該晶片卡資料開啟一資料存取權限。The terminal simulation method according to claim 1, wherein the action comprises the server host opening a data access authority according to the chip card data. 如申請專利範圍第7項所述之終端機模擬方法,其中在執行該動作的步驟之後更包括:該伺服器主機傳送對應該資料存取權限的資料至該電腦主機。The method for simulating a terminal according to claim 7, wherein after the step of performing the action, the method further comprises: the server host transmitting the data corresponding to the data access authority to the computer host. 如申請專利範圍第1項所述之終端機模擬方法,其中該讀卡機指令包括該讀卡機與該電腦主機溝通之一高階程式指令。The terminal emulation method of claim 1, wherein the card reader command comprises a high-level program command that the card reader communicates with the host computer. 如申請專利範圍第1項所述之終端機模擬方法,其中該伺服器指令包括該電腦主機與該伺服器主機溝通之一低階程式指令。The terminal simulation method according to claim 1, wherein the server instruction comprises a low-level program instruction that the computer host communicates with the server host. 如申請專利範圍第1項所述之終端機模擬方法,其中該晶片卡資料包括身份識別碼。The method for simulating a terminal according to claim 1, wherein the chip card data comprises an identification code. 如申請專利範圍第1項所述之終端機模擬方法,其中該伺服器主機包括不停頓(Non-Stop)系統主機。The terminal emulation method of claim 1, wherein the server host comprises a non-stop system host. 一種終端機模擬方法,用以透過一電腦主機進行一讀卡機與一伺服器主機之間的溝通,其中該讀卡機用以讀取一晶片卡,該方法包括下列步驟:偵測該讀卡機;接收由該伺服器主機所傳送之一伺服器指令;轉譯該伺服器指令為該讀卡機所能識別之一讀卡機指令;以及傳送該讀卡機指令至該讀卡機以執行一動作。A terminal machine simulation method for communicating between a card reader and a server host through a computer host, wherein the card reader is configured to read a wafer card, the method comprising the steps of: detecting the reading a card machine; receiving a server command transmitted by the server host; translating the server command to be a card reader command recognized by the card reader; and transmitting the card reader command to the card reader Perform an action. 如申請專利範圍第13項所述之終端機模擬方法,其中在偵測該讀卡機的步驟之前更包括:建立與該讀卡機之間的連線。The method for simulating a terminal according to claim 13 , wherein before the step of detecting the card reader, the method further comprises: establishing a connection with the card reader. 如申請專利範圍第13項所述之終端機模擬方法,其中轉譯該伺服器指令為該讀卡機所能識別之該讀卡機指令的步驟包括:根據一指令轉譯元件類別庫轉譯該伺服器指令為該讀卡機指令。The terminal simulation method according to claim 13, wherein the step of translating the server instruction into the card reader command recognized by the card reader comprises: translating the server according to an instruction translation component class library The instruction is the reader command. 如申請專利範圍第15項所述之終端機模擬方法,其中該指令轉譯元件類別庫包括該讀卡機指令與該伺服器指令的對應關係。The terminal simulation method of claim 15, wherein the instruction translation component category library includes a correspondence between the reader command and the server instruction. 如申請專利範圍第13項所述之終端機模擬方法,其中該動作包括驅動該讀卡機以讀取該晶片卡之一晶片卡資料。The terminal simulation method of claim 13, wherein the action comprises driving the card reader to read one of the wafer card data of the wafer card. 如申請專利範圍第13項所述之終端機模擬方法,其中該讀卡機指令包括該讀卡機與該電腦主機溝通之一高階程式指令。The terminal emulation method of claim 13, wherein the card reader command comprises a high-level program command communicated by the card reader with the host computer. 如申請專利範圍第13項所述之終端機模擬方法,其中該伺服器指令包括該電腦主機與該伺服器主機溝通之一低階程式指令。The terminal device emulation method of claim 13, wherein the server command comprises a low-level program instruction that the computer host communicates with the server host. 如申請專利範圍第13項所述之終端機模擬方法,其中該伺服器主機包括不停頓系統主機。The terminal emulation method of claim 13, wherein the server host comprises a non-stop system host. 一種終端機模擬系統,包括:一第一傳輸介面,用以連接至一讀卡機並接收該讀卡機所傳送之一讀卡機指令,其中該讀卡機指令包括該讀卡機自一晶片卡所讀取的一晶片卡資料;一第二傳輸介面,用以連接至一伺服器主機並接收該伺服器主機所傳送之一伺服器指令一指令轉譯元件類別庫,用以記錄該讀卡機指令與該伺服器指令的對應關係;以及一轉譯單元,連接至該第一傳輸介面、該第二傳輸介面及該指令轉譯元件類別庫,用以根據該指令轉譯元件類別庫轉譯該讀卡機指令及該伺服器指令。A terminal simulation system includes: a first transmission interface for connecting to a card reader and receiving a card reader command transmitted by the card reader, wherein the card reader command comprises the card reader a chip card data read by the chip card; a second transmission interface for connecting to a server host and receiving a server command-transfer component class library transmitted by the server host for recording the read Corresponding relationship between the card machine instruction and the server instruction; and a translation unit connected to the first transmission interface, the second transmission interface, and the instruction translation component class library for translating the component class library according to the instruction Card machine instructions and the server instructions. 如申請專利範圍第21項所述之終端機模擬系統,其中該轉譯單元更包括根據該指令轉譯元件類別庫轉譯該讀卡機指令為該伺服器指令,並透過該第二傳輸介面傳送該伺服器指令至該伺服器主機。The terminal emulation system of claim 21, wherein the translating unit further comprises: translating the card reader command into the server command according to the instruction translating component class library, and transmitting the servo through the second transmission interface Command to the server host. 如申請專利範圍第21項所述之終端機模擬系統,其中該轉譯單元更包括根據該指令轉譯元件類別庫轉譯該伺服器指令為該讀卡機指令,並透過該第一傳輸介面傳送該讀卡機指令至該讀卡機。The terminal simulation system of claim 21, wherein the translation unit further comprises: translating the server instruction according to the instruction component library to the card reader command, and transmitting the read through the first transmission interface. The card machine commands to the card reader. 如申請專利範圍第21項所述之終端機模擬系統,其中該轉譯單元更包括:一資料處理單元,用以對該晶片卡資料進行一資料處理動作。The terminal emulation system of claim 21, wherein the translating unit further comprises: a data processing unit configured to perform a data processing operation on the chip card data. 如申請專利範圍第24項所述之終端機模擬系統,其中該資料處理動作包括加密該晶片卡資料、解密該晶片卡資料、驗證該晶片卡資料及轉換該晶片卡資料之格式其中之一。The terminal simulation system of claim 24, wherein the data processing operation comprises one of encrypting the wafer card data, decrypting the wafer card data, verifying the wafer card data, and converting the wafer card data. 如申請專利範圍第21項所述之終端機模擬系統,其中該讀卡機指令包括高階程式指令。The terminal simulation system of claim 21, wherein the reader command comprises a high-level program instruction. 如申請專利範圍第21項所述之終端機模擬系統,其中該伺服器指令包括低階程式指令。The terminal simulation system of claim 21, wherein the server instruction comprises a low-level program instruction. 如申請專利範圍第21項所述之終端機模擬系統,其中該伺服器主機包括不停頓系統主機。The terminal emulation system of claim 21, wherein the server host comprises a non-stop system host.
TW099144064A 2010-12-15 2010-12-15 Method and system for simulating tetminal machine TWI459305B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW099144064A TWI459305B (en) 2010-12-15 2010-12-15 Method and system for simulating tetminal machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW099144064A TWI459305B (en) 2010-12-15 2010-12-15 Method and system for simulating tetminal machine

Publications (2)

Publication Number Publication Date
TW201224946A TW201224946A (en) 2012-06-16
TWI459305B true TWI459305B (en) 2014-11-01

Family

ID=46726017

Family Applications (1)

Application Number Title Priority Date Filing Date
TW099144064A TWI459305B (en) 2010-12-15 2010-12-15 Method and system for simulating tetminal machine

Country Status (1)

Country Link
TW (1) TWI459305B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5757918A (en) * 1995-01-20 1998-05-26 Tandem Computers Incorporated Method and apparatus for user and security device authentication
WO1999046881A1 (en) * 1998-03-11 1999-09-16 Guardtech Technologies Ltd. Transaction card security system
US20030159053A1 (en) * 2002-02-19 2003-08-21 Charles Fauble Secure reconfigurable input device with transaction card reader
TW200816099A (en) * 2006-09-19 2008-04-01 Infothink Technology Co Ltd Internet transaction system and method with chip credit card

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5757918A (en) * 1995-01-20 1998-05-26 Tandem Computers Incorporated Method and apparatus for user and security device authentication
WO1999046881A1 (en) * 1998-03-11 1999-09-16 Guardtech Technologies Ltd. Transaction card security system
US20030159053A1 (en) * 2002-02-19 2003-08-21 Charles Fauble Secure reconfigurable input device with transaction card reader
TW200816099A (en) * 2006-09-19 2008-04-01 Infothink Technology Co Ltd Internet transaction system and method with chip credit card

Also Published As

Publication number Publication date
TW201224946A (en) 2012-06-16

Similar Documents

Publication Publication Date Title
US6769622B1 (en) System and method for simulating universal serial bus smart card device connected to USB host
TWI488130B (en) Fingerprint identification and verification system and method thereof
CN101882096B (en) The detection of the damage control character transmitted between SATA master control set and SATA peripheral unit and modification method
CN107145311B (en) IO data processing method and system
US20200260277A1 (en) Method for wireless access authentication
CN105068910A (en) Testing method and apparatus for smart card
CN103427989A (en) Data encryption and identity authentication method oriented in environment of internet of things
CN106126465A (en) A kind of data transmission method and device
CN111124985A (en) Read-only control method and device for mobile terminal
WO2015131553A1 (en) Data transmission method and system
TWI459305B (en) Method and system for simulating tetminal machine
CN117544334A (en) Device access method, data exchange method, device and storage medium
US7185119B2 (en) Method and apparatus for checking and analyzing the state of peripherals wherein state information is converted into a pattern of identification information
JP2013045163A (en) Computer system, information processing system, virtual media method, and program
CN102542696A (en) Security information interaction system and method
WO2014106464A1 (en) Sd card and device and method for accessing sd card
TWM586390U (en) A system for performing identity verification according to the service instruction to execute the corresponding service
CN110187685A (en) A kind of data transmission method, device, electronic equipment and storage medium
CN104156761A (en) ID card data transmission system and method
KR101502147B1 (en) Method, apparatus and computer readable medium for communication between USB host and USB device through network
US9762574B2 (en) Techniques for providing software support for a hardware component of a computing device
CN104102619B (en) Method and system of first operating system operating DSP (digital signal processing) of second operating system
TWI783465B (en) Method for transmitting data and data processing circuit
JP2006127128A (en) Slave apparatus of information processing system, operation control program for slave apparatus and operation control method for slave apparatus
CN102421004A (en) Debugging method and device for television software system