CN105045759B - Control communication method of financial self-service equipment - Google Patents
Control communication method of financial self-service equipment Download PDFInfo
- Publication number
- CN105045759B CN105045759B CN201510437685.0A CN201510437685A CN105045759B CN 105045759 B CN105045759 B CN 105045759B CN 201510437685 A CN201510437685 A CN 201510437685A CN 105045759 B CN105045759 B CN 105045759B
- Authority
- CN
- China
- Prior art keywords
- service equipment
- financial self
- packet
- control
- equipment
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
- G06F13/4286—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a handshaking protocol, e.g. RS232C link
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Communication Control (AREA)
Abstract
The invention belongs to the technical field of financial self-service equipment, and discloses a control communication method of financial self-service equipment, which comprises the following steps of 1) establishing connection, 2) idle time communication; 3) a control command sending step, in which a control party sends a control command to the financial self-service equipment, the financial self-service equipment replies a confirmation packet to the financial self-service equipment after receiving the control command, the control party sends a handshake request packet to the financial self-service equipment, the financial self-service equipment replies a handshake response packet to the financial self-service equipment, and then the financial self-service equipment starts to execute the command; 4) and a working state obtaining step, wherein the controller periodically sends a handshake request packet to the financial self-service equipment, and 5) a connection and disconnection step. Under the communication method, the control party and the financial self-service equipment keep real-time communication, the control party can know the current state of the financial self-service equipment in real time, and the control party can know the fault information at most 1 second after the equipment is in fault, so that clients and workers can be informed in time, and the waiting time of the users is reduced.
Description
Technical Field
The invention relates to the technical field of financial self-service equipment, in particular to a control communication method of financial self-service equipment.
Background
In the application of the financial self-service device, a controller, such as a PC, generally sends a command to the financial self-service device, such as a cycle core, and the financial self-service device executes a corresponding action after receiving the command. And the controller enters a waiting state after sending the command, and sends response information to the controller after the financial self-service equipment is executed. For each command, a time limit of about 3 minutes exists, and the controller considers that the financial self-service equipment fails if the controller does not receive a response after the time limit in the process of waiting for the response. Under the communication method, if the self-service financial equipment fails in the command executing process, the control party can find the problem after sending the command for 3 minutes, so that the waiting time of a user is long, and the use experience is reduced.
Disclosure of Invention
The invention aims to provide a control communication method of financial self-service equipment, aiming at the technical defects in the prior art.
The technical scheme adopted for realizing the purpose of the invention is as follows:
a control communication method of financial self-service equipment comprises the following steps,
1) establishing connection: the control party sends a handshake request packet to the financial self-service equipment, the financial self-service equipment replies a handshake response packet to the control party after receiving the handshake request packet, the process is carried out twice, and then the communication connection between the control party and the financial self-service equipment is successfully established,
2) and idle time communication step: the control party periodically sends a handshake request packet to the financial self-service equipment, and the equipment replies a handshake response packet to the control party after receiving the handshake request packet;
3) a control command sending step, in which a control party sends a control command to the financial self-service equipment, the financial self-service equipment replies a confirmation packet to the financial self-service equipment after receiving the control command, the control party sends a handshake request packet to the financial self-service equipment, the financial self-service equipment replies a handshake response packet to the financial self-service equipment, and then the financial self-service equipment starts to execute the command;
4) and a step of acquiring a working state, wherein the controller periodically sends a handshake request packet to the financial self-service equipment, and when:
(1) when the financial self-service equipment works normally, the financial self-service equipment returns a handshake response packet to the financial self-service equipment;
(2) when the financial self-service equipment is abnormal, the financial self-service equipment returns an equipment abnormal packet to the financial self-service equipment;
(3) when the financial self-service equipment finishes executing the command, the financial self-service equipment returns a command response packet to the financial self-service equipment;
after receiving the equipment exception packet or the command response packet sent by the financial self-service equipment, the control party sends a confirmation packet to the financial self-service equipment, and after receiving the confirmation packet, the financial self-service equipment sends a handshake response packet to the control party;
5) and a connection disconnection step, namely when the financial self-service equipment is powered off or crashes, the controller does not receive a response after sending any message packet, the controller retransmits the message packet for multiple times at intervals, and if no response is received, the equipment is considered to be in failure and the connection is disconnected.
The period in step 2) and step 4) is 250ms every 150-.
The communication medium of the communication can be RS-232 or USB.
The step 5) is that the control party sends the message packet three times, four times or five times every 150-250 ms.
Compared with the prior art, the invention has the beneficial effects that:
under the communication method, the control party and the financial self-service equipment keep real-time communication, the control party can know the current state of the financial self-service equipment in real time, and the control party can know the fault information at most 1 second after the equipment is in fault, so that clients and workers can be informed in time, and the waiting time of the users is reduced.
Drawings
FIG. 1 is a process for a controller to establish a communication connection with a financial self-service device.
FIG. 2 is a communication process when a controller and a financial self-service device are idle.
FIG. 3 is a process for controlling the sending of commands to a financial self-service device.
FIG. 4 is a process for controlling the direction to ask for the operating status of the financial self-service device.
FIG. 5 is a process for a controlling party to disconnect communication with a financial self-service device.
Detailed Description
The invention is described in further detail below with reference to the figures and specific examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1 to 5, the control communication method of the financial self-service device of the invention comprises the following steps,
1) establishing connection: the control side sends a handshake request packet to the financial self-service equipment, the financial self-service equipment replies a handshake response packet to the control side after receiving the handshake request packet, the communication connection between the control side and the financial self-service equipment is successfully established after the process is carried out twice, and the next handshake has the function of confirming the successful reception of the 'reply handshake response packet' sent in the front, so that the normal and smooth establishment of the connection is ensured; the communication medium for the communication between the control party and the financial self-service equipment can be in any form of RS-232 or USB and the like;
2) and idle time communication step: the control party sends a handshake request packet to the financial self-service equipment periodically, for example, every 150-250ms, and the equipment replies a handshake response packet to the control party after receiving the handshake request packet; the intermittent communication during idle can ensure that the controller can know the running state of the financial self-service equipment in real time,
3) a control command sending step, in which a control party sends a control command to the financial self-service equipment, the financial self-service equipment replies a confirmation packet to the financial self-service equipment after receiving the control command, the control party sends a handshake request packet to the financial self-service equipment, the financial self-service equipment replies a handshake response packet to the financial self-service equipment, and then the financial self-service equipment starts to execute the command; the purpose of multiple handshaking before the transmission of the control command is to ensure the success of communication certainty, prevent misoperation, command missending and the like; meanwhile, multiple handshakes require that communication contents are completely correct, so that actions such as wrong information or malicious attacks can be effectively avoided.
4) A step of obtaining the working state, during the execution of the control command by the financial self-service device, the control party periodically sends a handshake request packet to the financial self-service device, for example, every 150 plus 250ms, when:
(1) when the financial self-service equipment works normally, the financial self-service equipment returns a handshake response packet to the financial self-service equipment;
(2) when the financial self-service equipment is abnormal, the financial self-service equipment returns an equipment abnormal packet to the financial self-service equipment; the equipment exception packet comprises an exception error code, and a controller can respectively process the exception packet according to error information;
(3) when the financial self-service equipment finishes executing the command, the financial self-service equipment returns a command response packet to the financial self-service equipment;
after receiving the equipment exception packet or the command response packet sent by the financial self-service equipment, the control party sends a confirmation packet to the financial self-service equipment to indicate that the equipment exception packet or the command response packet is received, and the financial self-service equipment sends a handshake response packet to the control party after receiving the confirmation packet; meanwhile, the control party performs corresponding processing according to the error or abnormal information, such as information reporting, link disconnection, or operation of restarting the financial self-service equipment, and the like, wherein each packet has a fixed data format, so that personnel can be prevented from simulating communication according to the data format, and the circulating machine core is directly controlled;
5) and a disconnection step, namely when the financial self-service equipment is powered off or crashes, the control party does not receive a response after sending any message packet, and at the moment, the control party retransmits the message packet for multiple times at intervals, such as three times, four times or five times at intervals of 250ms, and if no response is received, the equipment is considered to be in failure, and the connection is disconnected.
The beneficial effects are that: under the communication method, the control party and the financial self-service equipment keep real-time communication, the control party can know the current state of the financial self-service equipment in real time, and the control party can know fault information at most 1 second after the equipment breaks down, so that clients and workers can be informed in time, and the waiting time of the users is reduced.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
Claims (4)
1. A control communication method of financial self-service equipment is characterized by comprising the following steps,
1) establishing connection: the control side sends a handshake request packet to the financial self-service equipment, the financial self-service equipment replies a handshake response packet to the control side after receiving the handshake request packet, and the communication connection between the control side and the financial self-service equipment is successfully established after the process is carried out twice;
2) and idle time communication step: the control party periodically sends a handshake request packet to the financial self-service equipment, and the equipment replies a handshake response packet to the control party after receiving the handshake request packet;
3) a control command sending step, in which a control party sends a control command to the financial self-service equipment, the financial self-service equipment replies a confirmation packet to the financial self-service equipment after receiving the control command, the control party sends a handshake request packet to the financial self-service equipment, the financial self-service equipment replies a handshake response packet to the financial self-service equipment, and then the financial self-service equipment starts to execute the command;
4) and a step of acquiring a working state, wherein the controller periodically sends a handshake request packet to the financial self-service equipment, and when:
(1) when the financial self-service equipment works normally, the financial self-service equipment returns a handshake response packet to the financial self-service equipment;
(2) when the financial self-service equipment is abnormal, the financial self-service equipment returns an equipment abnormal packet to the financial self-service equipment;
(3) when the financial self-service equipment finishes executing the command, the financial self-service equipment returns a command response packet to the financial self-service equipment;
after receiving the equipment exception packet or the command response packet sent by the financial self-service equipment, the control party sends a confirmation packet to the financial self-service equipment, and after receiving the confirmation packet, the financial self-service equipment sends a handshake response packet to the control party;
5) and a connection disconnection step, namely when the financial self-service equipment is powered off or crashes, the controller does not receive a response after sending any message packet, the controller retransmits the message packet for multiple times at intervals, and if no response is received, the equipment is considered to be in failure and the connection is disconnected.
2. The control communication method for financial self-service equipment as claimed in claim 1, wherein the periodicity in the idle time communication step and the working state acquisition step is 250ms every 150-.
3. The control communication method of financial self-service equipment according to claim 1, wherein the communication medium of the communication can be RS-232 or USB.
4. The method for controlling communication of financial self-service equipment as claimed in claim 1, wherein the step of disconnecting is that the controller transmits the message packet three times, four times or five times every 150-250 ms.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510437685.0A CN105045759B (en) | 2015-07-23 | 2015-07-23 | Control communication method of financial self-service equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510437685.0A CN105045759B (en) | 2015-07-23 | 2015-07-23 | Control communication method of financial self-service equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105045759A CN105045759A (en) | 2015-11-11 |
CN105045759B true CN105045759B (en) | 2020-10-27 |
Family
ID=54452317
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510437685.0A Active CN105045759B (en) | 2015-07-23 | 2015-07-23 | Control communication method of financial self-service equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105045759B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112002083B (en) * | 2020-10-27 | 2021-02-19 | 恒银金融科技股份有限公司 | Business blockage early warning system applied to bank self-service equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1510864A (en) * | 2002-12-21 | 2004-07-07 | 深圳市中兴通讯股份有限公司 | Method and system for charge data transmission |
CN101541038A (en) * | 2009-04-27 | 2009-09-23 | 杭州华三通信技术有限公司 | Method and device for strengthening upper layer application stability loaded by wireless local area network |
CN101567130A (en) * | 2008-04-23 | 2009-10-28 | 中国科学院自动化研究所 | Method and system for remote fault detection of traffic signal controller |
CN102291441A (en) * | 2011-08-02 | 2011-12-21 | 杭州迪普科技有限公司 | Method and security agent device for protecting against attack of synchronize (SYN) Flood |
CN102664958A (en) * | 2012-04-27 | 2012-09-12 | 中山大学 | Transparent computing system |
CN103685188A (en) * | 2012-09-17 | 2014-03-26 | 中国科学院沈阳计算技术研究所有限公司 | Communication method of control command data interaction protocol for mine transportation |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8510492B2 (en) * | 2010-09-08 | 2013-08-13 | Integrated Device Technology Inc. | System and method for communication handshaking between a master processors and a slave processor |
-
2015
- 2015-07-23 CN CN201510437685.0A patent/CN105045759B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1510864A (en) * | 2002-12-21 | 2004-07-07 | 深圳市中兴通讯股份有限公司 | Method and system for charge data transmission |
CN101567130A (en) * | 2008-04-23 | 2009-10-28 | 中国科学院自动化研究所 | Method and system for remote fault detection of traffic signal controller |
CN101541038A (en) * | 2009-04-27 | 2009-09-23 | 杭州华三通信技术有限公司 | Method and device for strengthening upper layer application stability loaded by wireless local area network |
CN102291441A (en) * | 2011-08-02 | 2011-12-21 | 杭州迪普科技有限公司 | Method and security agent device for protecting against attack of synchronize (SYN) Flood |
CN102664958A (en) * | 2012-04-27 | 2012-09-12 | 中山大学 | Transparent computing system |
CN103685188A (en) * | 2012-09-17 | 2014-03-26 | 中国科学院沈阳计算技术研究所有限公司 | Communication method of control command data interaction protocol for mine transportation |
Also Published As
Publication number | Publication date |
---|---|
CN105045759A (en) | 2015-11-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111031565B (en) | Method and device for identifying off-line state of ZigBee device | |
CN106773749B (en) | Internet of things equipment control method, control end and system | |
EP3331197A1 (en) | A method and system for monitoring a connection status of a device | |
CN111866141A (en) | Robot monitoring method, system, device, storage medium and processor | |
CN102902653A (en) | Serial communication protocol for controller | |
CN110493775A (en) | The communication means and system being adapted to by ATT and abnormality processing | |
CN103034552A (en) | Method for implementing software watchdog in software system | |
CN105812176A (en) | Client-initiative and concurrent upgrade-supporting remote upgrade method | |
CN103685398B (en) | Communication connection method for building up and communication system | |
CN110809262B (en) | COAP protocol-based operation and maintenance management method for Internet of things equipment | |
CN107104822B (en) | Server disaster recovery processing method and device, storage medium and electronic equipment | |
CN116699964A (en) | Redundant operation method and system for industrial process controller | |
CN107508916A (en) | Server link management method for intelligent robot | |
CN105045759B (en) | Control communication method of financial self-service equipment | |
CN103297449B (en) | A kind of document transmission method, instant communication terminal and system | |
CN104243473B (en) | A kind of method and device of data transmission | |
CN112839106A (en) | Communication method and apparatus, electronic device, and medium | |
CN114826981B (en) | System and method for realizing application resident in cloud mobile phone | |
CN103746842A (en) | Method and system for detecting fault restarting of line card | |
CN110474953A (en) | Terminal control method, apparatus and system based on cloud SIM | |
CN103139276A (en) | Method and system of both-way communication between Web page and graphical user interface (GUI) client | |
CN102710666B (en) | RADIUS (remote authentication dial in user service) client overtime treating method in WLAN (wireless local area network) system | |
CN109391656B (en) | Method and device for recovering equipment management session, client and server | |
CN112187408A (en) | Data processing method, system, device, storage medium and processor | |
CN110446221B (en) | Railway private network communication guarantee method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |