ATMC How to operate the hardware?

Source: Internet
Author: User
Tags manual money back

In the domestic ATM industry a lot of people on ATMC software is how to operate hardware is unfamiliar. However, whether you are a hardware engineer, a software engineer, or a business sale, it can be helpful to work if you know how hardware and software interact. Many hardware engineers and business sales are not familiar with this aspect can be thought of, in fact, the vast majority of software engineers are also mengmengdongdong, because for the foreign companies like Diebold, NCR, operating the underlying hardware parts are packaged abroad, so will not really know, It is really necessary to strengthen the number of people who can understand both the upper and lower layers of the application and the underlying hardware.

In any case, if you know how the ATMC to operate the hardware, it will be a great help to your future work, many people may also urgently need this knowledge. This article refers to the ATMC under the ordinary Windows platform, where the process may differ from the machine you know, but will not affect your understanding. We do not consider special hardware, only for the equipment mentioned in Wosa/xfs, and think that ATMC is in line with WOSA/XFS standards.         

Terminology

 Hardware Instructions-refers to instructions sent by ATMC to the hardware. We use the reader IDC to do the example, for the reader manufacturer, it will provide a hardware manual, which involves a part of hardware instruction programming. Reader generally through the serial port, USB or other way to connect to the host box, if the ATMC to the USB port to send a stream of Word stream, you can achieve the purpose of operating the reader. The stream stream has a certain format, is defined by the hardware, such as the beginning of a starting character, followed by the type of command, followed by the corresponding command of the incoming information, and finally the check code. As long as the ATMC in accordance with the requirements of the card reader, organized a stream of bytes sent to the USB port, then a hardware instruction is completed. After the reader hardware receives the stream stream, it resolves itself and then carries out the corresponding hardware action.

Sp―― The SPS mentioned below refer to device drivers that conform to the WOSA/XFS specification.

Body

Okay, let's get to the chase. We will take a complete look at the power-up from the ATM to the normal service.

When the ATM is turned on, the machine is powered on and then into the Windows operating system, which is not very different from the normal PC. The general manufacturers will put ATMC into the Windows "self-launch", when the Windows start to complete, ATMC will automatically start.

ATMC first invokes the SP's Wfpopen interface, opening each device in turn, which is equivalent to ATMC connecting to each device and sending the initialized instruction characters to each device. You will see a similar screen on the ATM interface "System is starting, please wait", at this time you will hear the machine card reader, movement and other equipment is constantly ringing, this is the hardware in the power-up start to do the initialization action. When all the machine hardware initialization is finished, the machine enters the next process.

In the various hardware devices of ATM, there are several devices called "necessary equipment", generally card reader, water printer, keyboard, but may be different banks require "required equipment" different, more or less possible. In the end of the ATMC "necessary equipment" is what kind of, General ATMC will all the hardware number, in the configuration information is configured in which several numbers are, so that the "required device" will not be written to die, just change the configuration information can be changed "necessary equipment".

Why do you have to stress "required equipment"? Because ATMC want to enter the normal service of welcome screen, generally must meet the following conditions:

1, the network is through. ATMC will send the first packet to the host after the hardware initialization, the packet can be understood as "network status Test Package", if you receive a reply from the host, the network is good.

2, all the "necessary equipment" is good. ATMC after the hardware initialization, call the SPI interface Wfsgetinfo, get the hardware status of "required device", if all "required devices" are good, ATM can be used, as long as any one "required device" hardware status return value is not normal, ATM will not be able to access the normal service screen.

If the ATMC program is well written, you can see that the ATMC boot will stop in the suspended service state, the screen constantly prompts because of network failure or hardware failure to enter the service. Look at the above, you know why the ATM after the start of the normal service can not be entered. Of course, different ATMC have other judging conditions, but it doesn't matter to the hardware.

When all the conditions are good, ATMC will enter the normal service status, display "Welcome card" screen. One enters the picture, ATMC first sends the hardware instruction to the card reader, opens the gate of the reader gate, waits for enters the card, then sends the instruction to the reader above the indicator light, lets it blink, reminds the customer to insert the card. If the reader gate fails to open, the reader will be in the return information to fill in the appropriate error, the SP after the Open Gate command, will wait for the return of the command to send, analyze the return data to determine whether the hardware operation is successful. If the discovery is unsuccessful, ATMC will go to "pause service". This processing runs through the entire ATMC, that is, if the ATMC sends an instruction to a piece of hardware and finds that it returns an error, the follow-up will be processed and if the "required device" is wrong, go to "pause service".

At this time, ATMC has been welcome to the screen cycle, waiting for a customer card. If a customer card comes in and the reader sensor detects it, it notifies the SP that a card is coming in. The SP then sends a shut-off gate command to the card reader, turning the gate off and preventing other cards from plugging in. At the same time, the SP sends an instruction to turn off the indicator light. Then the SP sends an instruction to read the card, the reader hardware begins to read the card, and then the read results are placed in a stream of bytes, and returned to SP,SP will parse the return byte stream, because the format is defined in the hardware manual, which one indicates that everything is fixed. SP according to the meaning of each bit to analyze, and thus know whether the success, and the stream also includes 1, 2, 3 track data, SP according to the position of the byte stream can be taken out of the track, put in a variable to save up in order to use in ATMC. After reading the card, the reader will first stop, the card is kept inside, the other hardware work.

When the card is not inserted, the keyboard is not open, that is, you do not respond to the button. When the card is inserted, the SP sends a command to the keyboard informing it to open, waiting for the customer's key to be received. The keyboard is divided into two types of processing, one is to return a key value to ATMC each time a key is pressed, and the other is to return to AMTC (typically the input password) once a few keys have been pressed, which are referred to as GetData and Getpin, respectively, in the SP. The customer presses a key, the hardware immediately passes the key back to the SP, is also by the return byte stream way, the key information puts in the byte stream, thus the software only then knows the customer presses what key. As for you in the function selection screen, choose is "Query", "transfer", "withdrawal", "deposit" or "change", ATMC how to know it. In fact, the above several function keys in the ATM on the software, and the number of keyboards are no difference, if the customer presses a function key, the key hardware return byte stream may contain a "F1", if the customer presses the number keypad 1, the key hardware return byte stream may contain a "1", So the software can be distinguished by the function of the key or the number of keys. Simply put, the function keys and the numeric keys all have unique codes returned to the SP. If you confuse me by pressing "F1", how does the software know that I chose "query" instead of "withdraw"? This is a simple question, since the "Query" button is ATMC displayed on the screen that position, ATMC will certainly know which function key corresponds to that position of the button.

Then, the user into the function selection screen, "Query", "Transfer" and "Change the secret" nothing to say, purely with the host communication, belongs to pure software, and hardware does not matter. In all transactions, we have to remember that the flow of water and the printer is to continue to move. If ATMC feel the need to print water, it is simply to print the content in accordance with the format of the printer hardware required to organize a byte stream, and then send to the water printer through the serial port, water printer received this stream of stream, will be according to the beginning of several know this is a print command, the printed content in the following immediately after , so that the water will move the print head, non-stop printing back and forth, while the printer's feed machine module will be in line with the forward paper, in order to wrap. As for how the print head to move these controls, not the SP thing, is purely printer hardware things, SP just put the print instructions to the printer, the rest of the work is the printer hardware things, to know that the printer also has a control board and simple logic processing. The SP only cares if the printer returns to the SP after the Print command is sent. There is also a concept of asynchronous and synchronous printing, but not with hardware, you can put asynchronous processing in the printer hardware, or you can put it in the SP.

By the same line with water, generally just a lot of cut paper, paper Delivery command. There is no relationship between concepts like form and printer hardware.

Let's take a look at "withdrawals" and "deposits". When the customer chooses the "withdrawal", the customer enters the withdrawal amount, the ATMC will send a message to the host first, the customer's money is deducted, ATMC waits for the host to return the message, if the return information is all OK, then the ATM starts to make the note (we do not consider is the first text or the problem of digging the banknote, All the same for what we're talking about).

ATMC first sends the note-digging instructions to the movement hardware, which includes a few pieces of information to be dug in each banknote box. This information is the SP calculated, the SP will be based on their own saved banknote information, such as the remaining number, cash drawer denomination, cash drawer currency, etc., to carry out the corresponding banknote matching algorithm, that is to calculate which cash drawer should be out of a few money, and then these information group to synthesize the movement required by the text stream to the movement. The movement receives the instruction, starts to dig the money in the corresponding cash drawer, as for the digging the banknote discovery has the unqualified banknote, is the single-sheet recovery or the entire stack recovery, the vacuum digging the banknote friction digging the banknote and so on the characteristic, does not matter with the SP, is purely the movement own thing, SP regardless of these, It is only the final message that the movement returns is the success of the digging or the failure to dig the money, each cash drawer dug a few, recycled a few. The SP then sends a note to the movement, which is usually sent to the movement Stacker first, then the SP sends open the Cash Gate command, opens the banknote gate so that the customer can get the money, and the SP sends a command to send the banknote from the stacker to the door, waiting for the customer to take the money away. When the money comes to the door, ATMC will have a timeout, waiting for the money to be taken away. The SP will constantly send hardware instructions to detect if money is being taken away, and after the hardware receives the instruction, it will use the sensor to detect whether the money is still at the door. If an SP sends a hardware instruction, the movement returns information indicating that the money has been taken away, indicating that the movement's sensor has detected that the money is not at the door, when the SP sends an event to the upper ATMC,ATMC will invoke the command to close the note gate, which is passed to the underlying SP, SP directly through the serial port to the movement to send off the gate command, the gate closed, and then the SP sent the end of the withdrawal instructions, the movement will do some final recovery action. At this point you will hear the movement of each transmission mechanism to sound a moment, return to normal state.

If the customer does not take the money over time, the result is almost, but in front of the gate, the SP will first send the instructions to recover the money, and then close the gate. At this point, a complete withdrawal transaction is completed, if there are some hardware anomalies in the trading process, its hardware action is not much, just midway through the withdrawal operation, return an error message to the SP.

Take a look at "deposit" below. When the customer chooses "deposit", the SP first sends the instruction of opening the gate to the movement, the movement gate opens, waits for the customer to release the money. If the customer has the money to put in, press the "Confirm" button, the SP will send the command to close the gate, and then start sending instructions, let the movement of the banknote inspection module to work, the money-checking module began to verify the banknote. The whole process of banknote inspection, SP is also not concerned about, SP just check the results of the note, the movement after the banknote, the money is placed in the middle of the movement in the temporary buffer. If the banknote is passed, the ATMC sends a message to the host to account, and after receiving the confirmation from the host, the SP sends instructions to inform the movement to receive the cash drawer in the buffer. The movement sends money to the cash drawer through the transport mechanism. As for which cash box to send to which cash drawer, this is the movement hardware to judge, SP did not indicate which several money must be put into which cash drawer. When the money is placed in the cash drawer, the movement returns to the SP for a complete message, and the SP notifies the upper ATMC through the event, and the entire deposit process is complete.

When the customer finishes the deal he wants to do, he can choose to close the deal. At this point, the SP first sends a return card instruction to the card reader, and the card is exited. If the customer does not remove the card within the timeout period specified by ATMC, the SP sends an instruction for the recycle card to receive the card in the Recycle Bin. Whether the card is recycled or taken away by the customer, the reader will open the gate again, while the SP sends instructions to brighten the indicator and re-enter the next transaction.

OK, so far, a complete set of deals has been completed.

We finally take a look at some of the commonly used maintenance functions, which are often made by operators to add money, cleaning machine and so on. Clear machine is relatively simple, generally only the hardware and software in the various counts and other information to reset to 0. The process of adding money is as follows: the operator chooses to add the note, SP sends instructions to the movement, informs the movement to do some preparation, such as some cash drawer is locked, must first unlock before the cash drawer can not pull out, you cannot add money. The add-on corresponds to the Startexchange command inside the SP. At this point the operator can take out the cash drawer, then put the money back to put the cash drawer, the door closed. The SP then sends a command similar to the movement reset, which moves the movement and finally allows the movement to reach a normal state of use.

Here we should on the ATM hardware and software is how to match, so complete the transaction is clear, and then look at the ATM less mirrors feel it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.