CN108022383B - Method, device and equipment for controlling sensor data and storage medium - Google Patents

Method, device and equipment for controlling sensor data and storage medium Download PDF

Info

Publication number
CN108022383B
CN108022383B CN201711456655.XA CN201711456655A CN108022383B CN 108022383 B CN108022383 B CN 108022383B CN 201711456655 A CN201711456655 A CN 201711456655A CN 108022383 B CN108022383 B CN 108022383B
Authority
CN
China
Prior art keywords
sensor
sensor data
transmission protocol
data transmission
lost
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
Application number
CN201711456655.XA
Other languages
Chinese (zh)
Other versions
CN108022383A (en
Inventor
赵玉民
邹衡君
王文华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
Original Assignee
Shenzhen Yihua Computer Co Ltd
Shenzhen Yihua Time Technology Co Ltd
Shenzhen Yihua Financial Intelligent Research Institute
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 Shenzhen Yihua Computer Co Ltd, Shenzhen Yihua Time Technology Co Ltd, Shenzhen Yihua Financial Intelligent Research Institute filed Critical Shenzhen Yihua Computer Co Ltd
Priority to CN201711456655.XA priority Critical patent/CN108022383B/en
Publication of CN108022383A publication Critical patent/CN108022383A/en
Application granted granted Critical
Publication of CN108022383B publication Critical patent/CN108022383B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F19/00Complete banking systems; Coded card-freed arrangements adapted for dispensing or receiving monies or the like and posting such transactions to existing accounts, e.g. automatic teller machines
    • G07F19/20Automatic teller machines [ATMs]
    • G07F19/209Monitoring, auditing or diagnose of functioning of ATMs
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F19/00Complete banking systems; Coded card-freed arrangements adapted for dispensing or receiving monies or the like and posting such transactions to existing accounts, e.g. automatic teller machines
    • G07F19/20Automatic teller machines [ATMs]
    • G07F19/211Software architecture within ATMs or in relation to the ATM network

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for controlling sensor data, wherein the method comprises the following steps: when a transaction operation instruction is obtained, obtaining a sensor data transmission protocol of at least one preset component; when the acquired information in at least one sensor data transmission protocol is lost, determining that the sensor data in the corresponding preset component is lost; the lost sensor data are retrieved according to the sensor data transmission protocol losing the sensor data in the preset assembly, wherein the sensor data transmission protocol comprises a transmission serial number used for marking the serial number of the sensor data transmission protocol, so that the problem of sensor data loss caused by sensor data communication faults is solved, the reliability and the stability of sensor data transmission are improved, the normal operation of equipment is guaranteed, and the manual maintenance cost is reduced.

Description

Method, device and equipment for controlling sensor data and storage medium
Technical Field
The embodiment of the invention relates to the technical field of data processing, in particular to a method, a device, equipment and a storage medium for controlling sensor data.
Background
In the existing depositing and dispensing apparatus, a sensor is provided inside the depositing and dispensing apparatus to check and determine the real-time position of the bill by the state of the sensor. If the sensor is blocked indicating that the banknote is at the sensor location, the sensor is in the OFF state. When the state of the sensor is OFF, it indicates that the banknote triggered the sensor. If the paper money is separated from the sensor position, the state of the sensor is ON state. Therefore, the information on the number of banknotes in the depositing and dispensing apparatus can be determined by the number of times of triggering of the sensor. The reliability and stability of the sensor data is therefore of great importance for the depositing and dispensing device.
Currently, in the existing depositing and withdrawing device, a sensor data transmission protocol adopted by the sensor only contains the number and the state information of the current sensor. The number of the sensor is used to determine the position of the sensor in the depositing and dispensing device, and the sensor status is used to indicate whether the sensor is blocked or unblocked by the banknote. The sensor data transmission protocol adopted by the sensor in the existing depositing and withdrawing equipment is simple in structure and small in data quantity, but stability and reliability are low, and once the sensor data are lost, the lost data are difficult to retrieve through the existing sensor data transmission protocol, so that sensor counting is abnormal, and transaction failure is finally caused.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for controlling sensor data, so as to solve a problem of sensor data loss caused by a sensor data communication fault, thereby improving reliability and stability of sensor data transmission, ensuring normal operation of the device, and reducing labor maintenance cost.
In a first aspect, an embodiment of the present invention provides a method for controlling sensor data, including:
when a transaction operation instruction is obtained, obtaining a sensor data transmission protocol of at least one preset component;
when the acquired information in at least one sensor data transmission protocol is lost, determining that the sensor data in the corresponding preset component is lost;
and retrieving the lost sensor data according to a sensor data transmission protocol in the preset assembly losing the sensor data, wherein the sensor data transmission protocol comprises a transmission serial number used for marking the serial number of the sensor data transmission protocol.
In a second aspect, an embodiment of the present invention further provides an apparatus for controlling sensor data, including:
the protocol acquisition module is used for acquiring a sensor data transmission protocol of at least one preset component when a transaction operation instruction is acquired;
the data loss determining module is used for determining that the corresponding sensor data in the preset component is lost when the acquired information in at least one sensor data transmission protocol is lost;
and the data retrieving module is used for retrieving the lost sensor data according to the sensor data transmission protocol in the preset assembly losing the sensor data, wherein the sensor data transmission protocol comprises a transmission serial number and is used for marking the serial number of the sensor data transmission protocol.
In a third aspect, an embodiment of the present invention further provides an apparatus for controlling sensor data, where the apparatus includes:
one or more processors;
storage means for storing one or more programs;
a sensor for collecting data;
when executed by the one or more processors, cause the one or more processors to implement the method of controlling sensor data of the first aspect.
In a fourth aspect, the present invention further provides a computer storage medium, on which a computer program is stored, which when executed by a processor implements the method for controlling sensor data according to the first aspect.
According to the embodiment of the invention, when the information in at least one acquired sensor data transmission protocol is determined to be lost, the lost sensor data is retrieved according to the sensor data transmission protocol in the preset component losing the sensor data, so that the problem of low reliability of the sensor data caused by too small data volume of the sensor data transmission protocol in the prior art is solved, the reliability and stability of sensor data transmission are improved, the normal operation of equipment is ensured, and the manual maintenance cost is reduced.
Drawings
FIG. 1a is a flow chart of a method for controlling sensor data according to an embodiment of the present invention;
FIG. 1b is a schematic structural diagram of a depositing and dispensing apparatus according to an embodiment of the present invention;
FIG. 1c is a schematic structural diagram of a depositing and dispensing apparatus according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for controlling sensor data according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for controlling sensor data according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for controlling sensor data according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1a is a flowchart of a method for controlling sensor data according to an embodiment of the present invention, where the embodiment is applicable to a situation where reliability of sensor data in a device is improved, and the method may be performed by an apparatus for controlling sensor data, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a depositing and dispensing device, and the method includes the following operations:
and step 110, when the transaction operation instruction is obtained, obtaining a sensor data transmission protocol of at least one preset component.
The transaction operation instruction can be a withdrawal instruction and a deposit instruction received by the depositing and withdrawing device. The preset components can be temporary storage modules, currency detection modules, customer reception modules, currency taking port modules, currency boxes and other components in the depositing and withdrawing equipment, and corresponding analog sensors or digital sensors are arranged in the components. The analog sensor is mainly used for recording the number of paper money, judging the paper jam position of the paper money, detecting the form of the paper money and other functions; the digital sensor is mainly used for identifying position information (such as position information of a receiving and releasing platform, a money separating roller, a separating roller and the like in the money box). The sensor data transmission protocol is used to identify the corresponding data of the sensor. For example, if the sensor is blocked, the sensor status is OFF, and the current status information of the sensor in the sensor data transmission protocol is 1, which indicates that the paper money just blocks the sensor. If the sensor is not shielded, the state of the sensor is ON, and the current state information of the sensor in the sensor data transmission protocol is 0, which indicates that no paper money (or other objects such as a receiving and releasing table) exists at the position of the sensor at the moment. Correspondingly, when the state of the sensor is changed from ON-OFF-ON, the situation that one piece of paper money passes through the sensor is indicated.
For example, as shown in fig. 1b, fig. 1b is a schematic structural diagram of a depositing and dispensing device according to an embodiment of the present invention, where a main control module in the depositing and dispensing device is configured to acquire and execute a transaction operation instruction, and control each sub-control module to execute a corresponding process (for example, an instruction for sending out bills to a bill cassette), the sub-control module generally includes a customer receiving module, a channel module, a temporary storage module, a bill cassette module, a bill picking port module, and the like, and each sub-control module includes a certain number of sensors. During the transaction process, each sub-control module reports the real-time information of related components (sensors, commutators, motors and the like) to the main control module. The main control module can uniformly analyze the real-time information reported by each sub-control module. The real-time information generally includes sensor information, commutator switching information, motor operating state information, and the like. Among these pieces of real-time information, the sensor information data amount is the largest. Optionally, the real-time information reported by each sub-control module may also be obtained by the remote server.
And step 120, when the acquired information in at least one sensor data transmission protocol is lost, determining that the sensor data in the corresponding preset component is lost.
In the embodiment of the invention, the sensor data transmission protocol carries relevant data of the sensors in the corresponding components, such as the numbers, the states and the like of the sensors. Therefore, whether the sensor data is lost or not can be judged according to the related information in the sensor data transmission protocol.
In an optional embodiment of the present invention, when the acquired information in at least one of the sensor data transmission protocols is lost, determining that the sensor data in the corresponding preset component is lost includes: when the acquired transmission serial numbers included in the sensor data transmission protocol sent by the same preset component are not continuous, determining that the sensor data of the corresponding preset component is lost, wherein the transmission serial numbers in the sensor data transmission protocol corresponding to the same sensor in the preset component are continuously numbered.
Specifically, a transmission sequence number field may be set in the sensor data transmission protocol to distinguish the sensor data transmission protocol representing each frame. It should be noted that each preset component may include a plurality of sensors, and each sensor data transmission protocol corresponding to each sensor includes a transmission serial number with a consecutive number. When the transmission serial number corresponding to the same sensor in the preset assembly is interrupted, the data loss of the sensor is indicated.
For example, the transmission sequence numbers in the 5-frame sensor data transmission protocol continuously reported to the main control module by the same sensor in the preset component are 1, 2, 4, 5 and 6 in sequence, the sequence numbers are not continuous numbers, and the transmission sequence number 3 is lacked in the middle, which indicates that the 3 rd frame sensor data is lost in the reported 5-frame sensor data transmission protocol.
And step 130, retrieving the lost sensor data according to a sensor data transmission protocol in the preset component, in which the lost sensor data is lost, wherein the sensor data transmission protocol includes a transmission serial number used for marking the serial number of the sensor data transmission protocol.
It should be noted that the transmission sequence numbers need to be numbered in the form of accumulated positive integers, for convenience of data management, the transmission sequence number in the sensor data transmission protocol of the first frame may be numbered as 0, and each subsequent frame of sensor data transmission protocol is added with 1. Thus, the format of the complete transmission sequence number where no sensor data loss occurs may be: 0. 1, 2, 3, 4 … n (n is a natural number). In the embodiment of the present invention, if it is determined that the sensor data in the preset component is lost, the lost data may be retrieved according to a transmission sequence number included in the sensor data transmission protocol.
In an optional embodiment of the present invention, the sensor data transmission protocol further comprises a current change sensor number, sensor current status information, at least one historical change sensor number, and at least one sensor historical status information; the current change sensor number is used for marking the sensor number of which the sensor state changes; the current state information of the sensor is used for marking whether the current sensor is triggered by a medium or not; the historical change sensor number is the current change sensor number in the sensor data transmission protocol sent before the current sensor data transmission protocol; the sensor historical state information is the sensor current state information in the sensor data transmission protocol sent before the current sensor data transmission protocol.
For example, FIG. 1c is a schematic structural diagram of a depositing and dispensing device according to a first embodiment of the invention. As shown in fig. 1c, the depositing and dispensing apparatus includes a customer receiving module that receives a customer's paper money, a banknote verifying module that verifies the denomination and authenticity of the inserted paper money, a temporary storage module that temporarily retains the inserted paper money, a bill picking port module that collects the paper money picked up from a bill box, and a plurality of bill boxes (a-F bill boxes) that hold the paper money by denomination. The individual modules in the depositing and dispensing device are connected by channels, and the analog sensors of the SC series are distributed in the individual modules and in the channels. Each sensor has a corresponding sensor transmission protocol, and the sensor transmission protocol includes a current change sensor number, a transmission serial number, current state information of the sensor, at least one historical change sensor number, and at least one historical state information of the sensor.
For example, table 1 is a sensor data transmission protocol field table provided in an embodiment of the present invention, and may be applied to each sensor in a sub-control module in the depositing and dispensing device shown in fig. 1 c. Specifically, as shown in table 1, the current change sensor number is a number indicating that a sensor in the depositing and dispensing equipment reports sensor data to the main control module (for example, SC105 indicates a first sensor in the banknote cassette a), and when the state of each sensor changes, it indicates that the sensor is triggered by a banknote, and the triggered sensor reports the sensor data. The current state information of the sensor mainly comprises two information of 0 and 1, wherein 1 represents that the sensor is shielded by paper money, namely the paper money triggers the sensor, and 0 represents that the sensor is not shielded. The historical change sensor number and the sensor historical state information record the current change sensor number and the current state information of the sensor of one frame or a plurality of frames before the current frame sensor data transmission protocol. The historical change sensor number and the historical state information of the sensor can be designed according to the performance and the actual requirement of the sensor. It should be noted that, besides the above fields, other field information may be set in the sensor data transmission protocol, for example, a design module number field is used to indicate each different module: the system comprises a customer receiving module, a channel module, a temporary storage module, a cash box module, a cash taking port module and the like, wherein the customer receiving module is 0, the channel module is 1, the temporary storage module is 2, the cash box module is 3, and the cash taking port module is 4. The module number can be used to know to which module the sensor data included in the sensor data transmission protocol belongs. The design of other fields can further improve the reliability of sensor data transmission, and when the sensor data transmission protocol is applied to the depositing and withdrawing equipment, the position of paper jam of paper money can be quickly positioned through the sensor data transmission protocol, so that the paper money jamming rate of the equipment is reduced, and the manual maintenance cost is reduced.
TABLE 1 sensor data transfer protocol field Table
0 Module numbering
1 Transmission sequence number
2 Current change sensor number
3 Current state information of sensor
4 Sensor number of last frame change
5 Sensor state of last frame change
6 Sensor numbering for penultimate frame changes
7 Sensor state of penultimate frame changes
8 ..........
It should be noted that, in the sensor data transmission protocol, the more data recorded by the historical change sensor number and the historical state information of the sensor, the higher the reliability of the sensor data, but at the same time, the complexity of the sensor data transmission protocol is increased. Therefore, in practical applications, the sensor data transmission protocol needs to be designed specifically in consideration of reliability and complexity.
In an optional embodiment of the present invention, retrieving lost sensor data according to a sensor data transmission protocol in the preset component that lost sensor data, comprises: and retrieving lost sensor data according to at least one historical change sensor number and at least one historical sensor state in the currently received sensor data transmission protocol.
In the embodiment of the invention, because the historical change sensor number and the historical sensor state information record the relevant information of the one-frame or multi-frame sensor data transmission protocol before the current frame sensor data transmission protocol, the relevant information of the one-frame or multi-frame sensor data transmission protocol lost before the current frame sensor data transmission protocol can be found back according to the historical change sensor number and the historical sensor state, so that the lost sensor data can be obtained.
According to the embodiment of the invention, when the information in at least one acquired sensor data transmission protocol is determined to be lost, the lost sensor data is retrieved according to the sensor data transmission protocol in the preset component losing the sensor data, so that the problem of low reliability of the sensor data caused by too small data volume of the sensor data transmission protocol in the prior art is solved, the reliability and stability of sensor data transmission are improved, the normal operation of equipment is ensured, and the manual maintenance cost is reduced.
Example two
Fig. 2 is a flowchart of a method for controlling sensor data according to a second embodiment of the present invention, which is embodied on the basis of the second embodiment, and the retrieving of lost sensor data according to a sensor data transmission protocol in the preset component for lost sensor data includes: retrieving the sensor data of the previous frame of the sensor data transmission protocol according to the number of the sensor which changes from the previous frame in the sensor data transmission protocol and the state of the sensor which changes from the previous frame; and retrieving the sensor data of the previous two frames of the sensor data transmission protocol according to the number of the sensor changed by the last but one frame in the sensor data transmission protocol and the state of the sensor changed by the last but one frame. As shown in fig. 2, the method includes the following operations:
step 210, when the transaction operation instruction is obtained, obtaining a sensor data transmission protocol of at least one preset component.
Step 220, when the acquired information in at least one sensor data transmission protocol is lost, determining that the sensor data in the corresponding preset component is lost.
Step 230, retrieving the sensor data of the previous frame of the sensor data transmission protocol according to the number of the sensor changed from the previous frame and the state of the sensor changed from the previous frame in the sensor data transmission protocol.
Specifically, the sensor number of the previous frame change and the sensor state of the previous frame change in the sensor data transmission protocol belong to a historical change sensor number and a historical sensor state of the current frame sensor data transmission protocol, and the current change sensor number and the current sensor state information and the like in the previous frame data transmission protocol corresponding to the current frame sensor data can be retrieved accordingly.
And 240, retrieving the sensor data of the previous two frames of the sensor data transmission protocol according to the number of the sensor changed by the last but one frame in the sensor data transmission protocol and the state of the sensor changed by the last but one frame.
Specifically, the sensor number of the last-but-one frame change and the sensor state of the last-but-one frame change in the sensor data transmission protocol also belong to a historical change sensor number and a historical sensor state of the current frame sensor data transmission protocol, and the current change sensor number and the sensor current state information and the like in the previous two frame data transmission protocol corresponding to the current frame sensor data can be retrieved accordingly.
Illustratively, in table 1, only the sensor number and the changed sensor status of the previous frame and the sensor number and the changed sensor status of the last frame are recorded, so the sensor data transmission protocol designed in table 1 can retrieve the lost sensor data of two consecutive frames. For example, if the transmission serial numbers 1, 2, 5, and 6 in the sensor data continuously sent by the same sensor are received by the master control module, the current change sensor number and the current state information of the sensor in the sensor data transmission protocol of the frame with the transmission serial number 4 are retrieved according to the sensor number and the sensor state changed in the previous frame in the sensor data transmission protocol of the frame with the transmission serial number 5; and retrieving the current change sensor number and the current state information of the sensor in the sensor data transmission protocol of the frame with the transmission serial number of 3 according to the sensor number of the change of the last frame and the sensor state of the change of the second frame in the sensor data transmission protocol of the frame with the transmission serial number of 5. Therefore, the sensor data transmission protocol provided by the embodiment of the invention can effectively control the problem of sensor data loss, and even if the sensor data loss occurs, equipment can automatically solve the problem without manual intervention, so that the manual maintenance cost is reduced.
According to the embodiment of the invention, the lost sensor data is found back according to the at least one history change sensor number and the at least one history sensor state in the currently received sensor data transmission protocol, so that the problem of low sensor data reliability caused by too small data amount of the sensor data transmission protocol in the prior art can be effectively solved, the reliability and stability of sensor data transmission are improved, the normal operation of equipment is ensured, and the manual maintenance cost is reduced.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an apparatus for controlling sensor data according to a third embodiment of the present invention, which is capable of executing a method for controlling sensor data according to any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
The device comprises:
the protocol acquisition module 310 is configured to acquire a sensor data transmission protocol of at least one preset component when the transaction operation instruction is acquired;
a data loss determining module 320, configured to determine that sensor data in the corresponding preset component is lost when the acquired information in the at least one sensor data transmission protocol is lost;
the data retrieving module 330 is configured to retrieve the lost sensor data according to the sensor data transmission protocol in the preset component, where the lost sensor data transmission protocol includes a transmission serial number, and is used to mark a serial number of the sensor data transmission protocol.
According to the embodiment of the invention, when the information in at least one acquired sensor data transmission protocol is determined to be lost, the lost sensor data is retrieved according to the sensor data transmission protocol in the preset component losing the sensor data, so that the problem of low reliability of the sensor data caused by too small data volume of the sensor data transmission protocol in the prior art is solved, the reliability and stability of sensor data transmission are improved, the normal operation of equipment is ensured, and the manual maintenance cost is reduced.
Optionally, the sensor data transmission protocol further includes a current change sensor number, current state information of the sensor, at least one historical change sensor number, and at least one historical state information of the sensor; wherein,
the current change sensor number is used for marking the sensor number of which the sensor state changes;
the current state information of the sensor is used for marking whether the current sensor is triggered by a medium or not;
the historical change sensor number is the current change sensor number in the sensor data transmission protocol sent before the current sensor data transmission protocol;
the sensor historical state information is the sensor current state information in the sensor data transmission protocol sent before the current sensor data transmission protocol.
Optionally, the data loss determining module 320 is further configured to determine that the sensor data of the corresponding preset component is lost when the acquired transmission sequence numbers included in the sensor data transmission protocol sent by the same preset component are not consecutive, where the transmission sequence numbers in the sensor data transmission protocol corresponding to the same sensor in the preset component are consecutive numbers.
Optionally, the data retrieving module 330 is further configured to retrieve lost sensor data according to at least one history change sensor number and at least one history sensor state in the currently received sensor data transmission protocol.
Optionally, the data retrieving module 330 is further configured to retrieve the sensor data of the previous frame of the sensor data transmission protocol according to the sensor number of the previous frame change and the sensor state of the previous frame change in the sensor data transmission protocol that are currently received;
and retrieving the sensor data of the previous two frames of the sensor data transmission protocol according to the number of the sensor changed by the last but one frame in the sensor data transmission protocol and the state of the sensor changed by the last but one frame.
The device for controlling sensor data can execute the method for controlling sensor data provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method. For technical details not elaborated in this embodiment, reference may be made to a method of controlling sensor data provided by any embodiment of the invention.
Example four
Fig. 4 is a schematic structural diagram of an apparatus for controlling sensor data according to a fourth embodiment of the present invention. Fig. 4 shows a block diagram of a device 40 suitable for implementing an embodiment of the invention. The device 40 shown in fig. 4 is only an example and should not bring any limitation to the function and scope of use of the embodiments of the present invention.
As shown in FIG. 4, device 40 is embodied in a general purpose computing device. The components of device 40 may include, but are not limited to: one or more processors 412, a storage device 414, and a bus 416 that couples the various system components (including the storage device 414 and the processors 412).
Bus 416 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 40 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by device 40 and includes both volatile and nonvolatile media, removable and non-removable media.
Storage 414 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 418 and/or cache Memory 420. Device 40 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, the storage system 422 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk such as a Compact disk-Read Only Memory (CD-ROM), Digital Video disk (DVD-ROM), or other optical media may be provided. In these cases, each drive may be connected to the bus 416 by one or more data media interfaces. Storage 414 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Program 426 having a set (at least one) of program modules 424 may be stored, for example, in storage 414, such program modules 424 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which may comprise an implementation of a network environment, or some combination thereof. The program modules 424 generally perform the functions and/or methodologies of the described embodiments of the invention.
The device 40 may also communicate with one or more external devices 428 (e.g., a keyboard, a pointing device, a camera, a display 430, etc.), and in embodiments of the present invention, the device 40 is further coupled to the sensor 432 and, when the sensor 432 has collected data, transmits the data to the device 40 so that the device 40 processes the data collected by the sensor 432. Additionally, device 40 may also communicate with one or more devices that enable a user to interact with device 40, and/or with any devices (e.g., network cards, modems, etc.) that enable device 40 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interface 434. Also, the device 40 may communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network, such as the internet) via the Network adapter 436. As shown, the network adapter 436 communicates with the other modules of the device 40 via the bus 416. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with device 40, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive Arrays, Redundant Array of Independent Disks (RAID) systems, tape drives, and data backup storage systems, to name a few.
The processor 412 executes various functional applications and data processing by executing programs stored in the storage device 414, for example, implementing the method for controlling sensor data provided by the above-described embodiment of the present invention:
when a transaction operation instruction is obtained, obtaining a sensor data transmission protocol of at least one preset component;
when the acquired information in at least one sensor data transmission protocol is lost, determining that the sensor data in the corresponding preset component is lost;
and retrieving the lost sensor data according to a sensor data transmission protocol in the preset assembly losing the sensor data, wherein the sensor data transmission protocol comprises a transmission serial number used for marking the serial number of the sensor data transmission protocol.
When the device determines that the information in the acquired at least one sensor data transmission protocol is lost, the lost sensor data is retrieved according to the sensor data transmission protocol in the preset assembly losing the sensor data, so that the problem of low reliability of the sensor data caused by too small data volume of the sensor data transmission protocol in the prior art is solved, the reliability and stability of sensor data transmission are improved, normal operation of the device is guaranteed, and the manual maintenance cost is reduced.
EXAMPLE five
An embodiment five of the present invention further provides a computer storage medium storing a computer program, which when executed by a computer processor is configured to perform the method for controlling sensor data according to any one of the above embodiments of the present invention:
when a transaction operation instruction is obtained, obtaining a sensor data transmission protocol of at least one preset component;
when the acquired information in at least one sensor data transmission protocol is lost, determining that the sensor data in the corresponding preset component is lost;
and retrieving the lost sensor data according to a sensor data transmission protocol in the preset assembly losing the sensor data, wherein the sensor data transmission protocol comprises a transmission serial number used for marking the serial number of the sensor data transmission protocol.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a RAM, a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM) or flash Memory), an optical fiber, a portable compact disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (8)

1. A method of controlling sensor data, comprising:
when a transaction operation instruction is obtained, obtaining a sensor data transmission protocol of at least one preset component;
when the acquired information in at least one sensor data transmission protocol is lost, determining that the sensor data in the corresponding preset component is lost;
retrieving lost sensor data according to a sensor data transmission protocol in the preset component for losing the sensor data, wherein the sensor data transmission protocol comprises a transmission serial number for marking the serial number of the sensor data transmission protocol;
the sensor data transmission protocol also comprises a current change sensor number, sensor current state information, at least one historical change sensor number and at least one sensor historical state information; wherein,
the current change sensor number is used for marking the sensor number of which the sensor state changes;
the current state information of the sensor is used for marking whether the current sensor is triggered by a medium or not;
the historical change sensor number is the current change sensor number in the sensor data transmission protocol sent before the current sensor data transmission protocol;
the sensor historical state information is the sensor current state information in the sensor data transmission protocol sent before the current sensor data transmission protocol.
2. The method of claim 1, wherein determining that the sensor data in the corresponding preset component is lost when the acquired information in the at least one sensor data transmission protocol is lost comprises:
when the acquired transmission serial numbers included in the sensor data transmission protocol sent by the same preset component are not continuous, determining that the sensor data of the corresponding preset component is lost, wherein the transmission serial numbers in the sensor data transmission protocol corresponding to the same sensor in the preset component are continuously numbered.
3. The method of claim 2, wherein retrieving missing sensor data according to a sensor data transmission protocol in the predetermined component that lost sensor data comprises:
and retrieving lost sensor data according to at least one historical change sensor number and at least one historical sensor state in the currently received sensor data transmission protocol.
4. The method of claim 3, wherein retrieving missing sensor data based on at least one historical change sensor number and at least one historical sensor status in the currently received sensor data transmission protocol comprises:
retrieving the sensor data of the previous frame of the sensor data transmission protocol according to the number of the sensor which changes from the previous frame in the sensor data transmission protocol and the state of the sensor which changes from the previous frame;
and retrieving the sensor data of the previous two frames of the sensor data transmission protocol according to the number of the sensor changed by the last but one frame in the sensor data transmission protocol and the state of the sensor changed by the last but one frame.
5. An apparatus for controlling sensor data, comprising:
the protocol acquisition module is used for acquiring a sensor data transmission protocol of at least one preset component when a transaction operation instruction is acquired;
the data loss determining module is used for determining that the corresponding sensor data in the preset component is lost when the acquired information in at least one sensor data transmission protocol is lost;
the data retrieving module is used for retrieving lost sensor data according to a sensor data transmission protocol in the preset assembly, wherein the lost sensor data transmission protocol comprises a transmission serial number and is used for marking the serial number of the sensor data transmission protocol;
the sensor data transmission protocol also comprises a current change sensor number, sensor current state information, at least one historical change sensor number and at least one sensor historical state information; wherein,
the current change sensor number is used for marking the sensor number of which the sensor state changes;
the current state information of the sensor is used for marking whether the current sensor is triggered by a medium or not;
the historical change sensor number is the current change sensor number in the sensor data transmission protocol sent before the current sensor data transmission protocol;
the sensor historical state information is the sensor current state information in the sensor data transmission protocol sent before the current sensor data transmission protocol.
6. The apparatus of claim 5, wherein the data loss determination module is specifically configured to:
when the acquired transmission serial numbers included in the sensor data transmission protocol sent by the same preset component are not continuous, determining that the sensor data of the corresponding preset component is lost, wherein the transmission serial numbers in the sensor data transmission protocol corresponding to the same sensor in the preset component are continuously numbered;
the data retrieving module is specifically configured to retrieve lost sensor data according to at least one history change sensor number and at least one history sensor state in the currently received sensor data transmission protocol, and specifically includes:
retrieving the sensor data of the previous frame of the sensor data transmission protocol according to the number of the sensor which changes from the previous frame in the sensor data transmission protocol and the state of the sensor which changes from the previous frame;
and retrieving the sensor data of the previous two frames of the sensor data transmission protocol according to the number of the sensor changed by the last but one frame in the sensor data transmission protocol and the state of the sensor changed by the last but one frame.
7. An apparatus for controlling sensor data, the apparatus comprising:
one or more processors;
storage means for storing one or more programs;
a sensor for collecting data;
when executed by the one or more processors, cause the one or more processors to implement a method of controlling sensor data as recited in any of claims 1-4.
8. A computer storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method of controlling sensor data according to any one of claims 1-4.
CN201711456655.XA 2017-12-28 2017-12-28 Method, device and equipment for controlling sensor data and storage medium Active CN108022383B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711456655.XA CN108022383B (en) 2017-12-28 2017-12-28 Method, device and equipment for controlling sensor data and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711456655.XA CN108022383B (en) 2017-12-28 2017-12-28 Method, device and equipment for controlling sensor data and storage medium

Publications (2)

Publication Number Publication Date
CN108022383A CN108022383A (en) 2018-05-11
CN108022383B true CN108022383B (en) 2020-09-15

Family

ID=62071948

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711456655.XA Active CN108022383B (en) 2017-12-28 2017-12-28 Method, device and equipment for controlling sensor data and storage medium

Country Status (1)

Country Link
CN (1) CN108022383B (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101547144B (en) * 2008-12-29 2011-11-23 华为技术有限公司 Method and device for improving data transmission quality
US20140107836A1 (en) * 2012-10-08 2014-04-17 Diebold Self Service Systems, Division Of Diebold, Incorporated Automated banking machine that can detect servicing actions
US9972157B2 (en) * 2013-04-25 2018-05-15 Glory Ltd. Paper sheet handling system and paper sheet handling method
CN105245317A (en) * 2015-10-20 2016-01-13 北京小鸟听听科技有限公司 Data transmission method, transmitting end, receiving end and data transmission system
CN105513220B (en) * 2015-11-24 2018-02-09 深圳怡化电脑股份有限公司 Currency examination data fault-tolerant processing method based on ATM
CN106603357A (en) * 2016-11-11 2017-04-26 深圳怡化电脑股份有限公司 Sensor data reporting method, device and system
CN106773999B (en) * 2017-01-16 2019-01-25 东方通信股份有限公司 A kind of dcs and control method for the automatic teller machine circulatory system
CN107481398B (en) * 2017-08-03 2020-08-04 恒银金融科技股份有限公司 Automatic teller machine with cash-out continuous processing function

Also Published As

Publication number Publication date
CN108022383A (en) 2018-05-11

Similar Documents

Publication Publication Date Title
US9014419B2 (en) Valuable document identification method and identification system thereof
CN111008805B (en) Method and device for determining time to throw, storage medium and electronic equipment
US9489790B2 (en) Data processing device and data processing system
CN105023349A (en) Bank note box and bank note box selecting method in depositing and withdrawing processes
US9589410B2 (en) Paper money handling apparatus
CN107193723A (en) Processing method, device, ATM and the storage medium of abnormal log
CN103971447A (en) Paper currency recognition device, handling method implemented by same and paper currency handling status recording method
CN104838397A (en) Information-processing device and cash-processing terminal
US10698615B2 (en) Trigger event detection for automatic log collection in an automated data storage library
CN108022383B (en) Method, device and equipment for controlling sensor data and storage medium
CN106408751A (en) Stocktaking method and system of ATM (automatic teller machine)
US20110131117A1 (en) Method and administration system for monitoring of disposal processes for money
JP6556222B2 (en) Inspection device and inspection system
CN109240747A (en) A kind of information inspection method and its relevant apparatus of multistage server management system
CN104809824A (en) Cash box adaptation method and device based on self-service equipment
US10713126B2 (en) Automatic log collection for an automated data storage library
US10223192B2 (en) Automated data storage library snapshot for host detected errors
KR20140055160A (en) Apparatus and method for managing failure of financial device and failure management system
EP1515281A2 (en) Paper money processor
CN107170107A (en) Method, device, equipment and the storage medium of sensor gathered data
CN107958535B (en) Method and device for acquiring paper money information and terminal equipment
CN112884581A (en) Method and device for processing errors of automatic teller machine, electronic equipment and storage medium
CN107146322B (en) Control method, device and equipment for paper money feeding and storage medium
JP6224245B2 (en) Automatic transaction apparatus, automatic transaction system, and money handling cassette
CN113837568B (en) Risk order identification method, apparatus, electronic device and machine-readable storage medium

Legal Events

Date Code Title Description
PB01 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