A kind of self checking method of finance device, device, electronic equipment and storage mediumTechnical field
The present embodiments relate to equipment self-inspection technical field, more particularly to a kind of self checking method of finance device, device,Electronic equipment and storage medium.
Background technology
Just whether finance device (such as ATM) be generally both needed to carry out self-test, to confirm finance device when powering onOften, with the case of definite finance device is normal, just into normal operating conditions.
At present for the self-test of finance device, usually when finance device powers on, self-checking command is generated, it is each to controlThe equipment such as the motor in module (such as prostitution module, temporary storage module or currency checking module module) run certain time, and then are transportingWhen the row time reaches, whether detection breaks down in the process of running.
But in the above method, every time after the power is turned on, it is required to carry out the self-test of certain time, the self-test time is longer, causesSelf-test is less efficient.
The content of the invention
The embodiment of the present invention provides a kind of self checking method of finance device, device, electronic equipment and storage medium, to realizeAfter the power-up, quickly it is detected, reduces the self-test time.
In a first aspect, an embodiment of the present invention provides a kind of self checking method of finance device, this method includes:
When detecting the power down information of finance device, the finance device status information in memory is stored to memory;
When detecting the upper power information of the finance device, the finance device state letter is read from the memoryBreath, and by the finance device state information updating into the memory;
If generate the finance there are fault message in the finance device status information after being updated in the memory and setStandby self-checking command.
Second aspect, the embodiment of the present invention additionally provide a kind of detection device of finance device, which includes:
Status information of equipment memory module, for when detecting the power down information of finance device, by the finance in memoryStatus information of equipment is stored to memory;
Status information of equipment update module, for when detecting the upper power information of the finance device, from the storageThe finance device status information is read in device, and by the finance device state information updating into the memory;
First self-checking command generation module, if for existing in the finance device status information after being updated in the memoryFault message, then generate the self-checking command of the finance device.
The third aspect, the embodiment of the present invention additionally provide a kind of electronic equipment, which includes:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are performed by one or more of processors so that one or more of processingDevice realizes the self checking method for the finance device that any embodiment of the present invention provides.
Fourth aspect, the embodiment of the present invention additionally provide a kind of storage medium, are stored thereon with computer program, the programThe self checking method for the finance device that any embodiment of the present invention provides is realized when being executed by processor.
The embodiment of the present invention is by the way that when detecting the power down information of finance device, the finance device state in memory is believedBreath is stored to memory;When detecting the upper power information of finance device, finance device status information is read from memory, andBy finance device state information updating into memory;If in the finance device status information after being updated in memory, there are failure letterBreath, then generate the self-checking command of finance device, solve when finance device powers on every time and generate self-checking command, causes on every timeThe problem of longer self-test time is both needed to after electricity, realizes in finance device power down, and finance device status information is preserved to depositingIn reservoir, and then when finance device powers on, finance device status information during last power down can be got from memory,And in the finance device status information in once power down in confirmation there are fault message in the case of, just generate self-checking command intoRow self-test, if confirming fault message is not present in finance device status information during last power down, is confirming finance device justOften, without carrying out self-test by self-checking command, self-test time when finance device powers on thus is substantially reduced.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the self checking method of finance device in the embodiment of the present invention one;
Fig. 2 is a kind of flow chart of the self checking method of finance device in the embodiment of the present invention two;
Fig. 3 is a kind of structure diagram of the self-checking unit of finance device in the embodiment of the present invention three;
Fig. 4 is the structure diagram of a kind of electronic equipment in the embodiment of the present invention four.
Embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouchedThe specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that in order to justIt illustrate only part related to the present invention rather than entire infrastructure in description, attached drawing.
Embodiment one
Fig. 1 is a kind of flow chart of the self checking method for finance device that the embodiment of the present invention one provides, and the present embodiment can fitThe situation of self-test need to be carried out for finance device, this method can be performed by the self-checking unit of finance device, which can be bySoftware and or hardware composition, which can generally be integrated in finance device.Referring to Fig. 1, method provided in this embodiment is specificInclude the following steps:
Step 110, determine whether to detect the power down information of finance device or the upper power information of finance device.
Preferably, it can detect whether finance device power down or powers on by hardware detecting circuit, when finance device power downWhen (in such as finance device operational process, power-off or attaching plug are unplugged suddenly), hardware detecting circuit can detect power downSignal, it is determined that detect the power down information of finance device;When finance device is powered on and (powered on), hardware detecting circuitDetectable power on signal, it is determined that detect the upper power information of finance device.
Specifically, finance device can be the finance devices such as self-service automatic teller machine or cash inspecting machine.
If step 120, the power down information for detecting finance device, the finance device status information in memory is storedInto memory.
Since memory has the characteristics that power down is easy to be lost, if detecting the power down information of finance device, by memoryIn finance device status information store into memory so that the finance device status information in this operational process to be protectedDeposit.
Exemplary, in finance device operational process, in the event of failure (such as card paper money failure), then by the failure of generationCorresponding failure information (such as error code) store into memory, and then finance device run during, can be real-time in memoryPreserve the current fault message of finance device.
Optionally, other status informations may also include in addition to fault message is included in finance device status information.WithExemplified by self-service automatic teller machine, the modules in self-service automatic teller machine are may also include in finance device status information (as received lodgersThe modules such as module, temporary storage module or currency checking module) in digital sensor state, analog sensor state, motor status and changeTo status information of equipment such as device states.Wherein, digital sensor state, analog sensor state, motor status and commutator shapeThe status informations such as state can pass through corresponding data pick-up, analog sensor, motor and commutation in finance device operational processDevice Real-time Feedback obtains, and the status information of acquisition is stored into memory, so in memory can also real-time storage other are variousStatus information.
Wherein, memory can be the external memorizer or internal storage of finance device, without limit in the present embodimentIt is fixed.
If step 130, the upper power information for detecting finance device, finance device state letter is read from memoryBreath, and by financial status information updating into memory.
If detecting the upper power information of finance device, finance device status information is read from memory, and by financeState information updating is believed into memory with when finance device powers on, obtaining the finance device state in last operational processBreath.
Step 140, confirm to whether there is fault message in the finance device status information after updating in memory;If so, thenPerform step 150;If it is not, then perform step 160.
Preferably, after the completion of renewal, then confirm to whether there is failure in the finance device status information after updating in memoryInformation is to confirm whether break down in finance device last time operational process.
Step 150, the self-checking command for generating finance device.
If confirm that finance device is last there are fault message in the finance device status information after being updated in memoryBreak down in operational process, then generate the self-checking command of finance device, to confirm that current financial equipment is by self-checking commandIt is no normal.
Exemplary, after the self-checking command for generating finance device, then finance device is resetted, and runs setting time,Then when setting time reaches, confirm to whether there is fault message in the finance device status information in memory, if there is eventHinder information, then confirm that finance device is abnormal, if there is no fault message, then confirm that finance device is normal.
Exemplary, after confirming finance device exception, failure can be carried out and reported an error, such as show fault message, or control eventIt is bright to hinder indicator light, or control buzzer sounding etc., in order to which maintenance personnel is safeguarded in time.
Step 160, confirm that finance device is normal.
If fault message is not present in the finance device status information after being updated in memory, confirm one on finance deviceDo not break down in secondary operational process, then confirm that finance device is normal, without carrying out self-test by self-checking command, and then drop significantlyThe self-test time of low finance device after the power is turned on.
The present embodiment is by the way that when detecting the power down information of finance device, the finance device status information in memory is depositedStore up to memory;When detecting the upper power information of finance device, finance device status information is read from memory, and by goldMelt status information of equipment to be updated in memory;If there are fault message in the finance device status information after being updated in memory,The self-checking command of finance device is then generated, solves when finance device powers on every time and generates self-checking command, cause to power on every timeThe problem of being both needed to the longer self-test time afterwards, realizes in finance device power down, finance device status information is preserved to storageIn device, and then when finance device powers on, finance device status information during last power down can be got from memory, andIn finance device status information in once power down in confirmation there are fault message in the case of, just generate self-checking command carry outSelf-test, if confirming fault message is not present in finance device status information during last power down, confirms that finance device is normal,Without carrying out self-test by self-checking command, self-test time when finance device powers on thus is substantially reduced.
Embodiment two
Fig. 2 is a kind of flow chart of the self checking method of finance device provided by Embodiment 2 of the present invention.The present embodiment beFurther optimized on the basis of above-described embodiment.Finance device status information will be being read from memory in the present embodimentBefore, it is optimized for further including:Confirm not to be the upper power information for detecting finance device for the first time;The method is optimized for also wrappingInclude:If confirming as detecting the upper power information of finance device for the first time, the self-checking command of finance device is generated;Will be in generation goldBefore the self-checking command for melting equipment, it is optimized for further including:Confirm the generation number of the self-checking command of finance device not less than defaultNumber;The method is optimized for further including:If confirming, the generation number of the self-checking command of finance device exceedes preset times,Failure is carried out to report an error.
Referring to Fig. 2, method provided in this embodiment specifically comprises the following steps:
Step 210, determine whether to detect the power down information of finance device or the upper power information of finance device.
If step 220, the power down information for detecting finance device, the finance device status information in memory is storedInto memory.
If step 230, the upper power information for detecting finance device, it is confirmed whether it is and detects that power down is believed for the first timeBreath;If so, then perform step 260;If it is not, then perform step 240.
When being first powered on due to finance device, finance device state letter during last time operation can not be obtained from memoryBreath, therefore, if detecting the upper power information of finance device, is confirmed whether it is and detects power down information for the first time to confirm financeWhether equipment is to first power on.
Exemplary, can be by powering on whether identity validation is to detect power down information for the first time.Such as powering on mark can beFinance device is initialized as 0 before first powering on, and when detecting power down information, can confirm to power on and identifies whether as 0;If so,Then confirm as detecting power down information for the first time, and mark will be powered on and be set to 1;If it is not, then confirm not detect for first timePower information.
Preferably, if confirming as detecting power down information for the first time, the life of the self-checking command of generation finance device is confirmedWhether exceed preset times into number, if not less than preset times, the self-checking command of generation finance device, with first timeWhen electric, self-test is carried out by self-checking command.
Preferably, if confirming not to detect power down information for the first time, finance device state letter is read from memoryBreath, and by financial status information updating into memory, set with finance when obtaining once power down from memory when powering onStandby status information.
Step 240, read finance device status information from memory, and by financial status information updating into memory.
Step 250, confirm to whether there is fault message in the finance device status information after updating in memory;If so, thenPerform step 260;If it is not, then perform step 290.
Whether step 260, the generation number for confirming to generate the self-checking command of finance device exceed preset times;If so, thenPerform step 270;If it is not, then perform step 280.
Preferably, if confirming to confirm finance there are fault message in the finance device status information after updating in memoryWhether the generation number of the self-checking command of equipment exceedes preset times;If it exceeds preset times, then carry out failure and report an error;IfNot less than the self-checking command of preset times, then generation finance device.Hereby it is achieved that in the case where confirming finance device exception,The self-test of preset times is carried out to improve the accuracy of self-test.
Wherein, preset times can be 2 times, 3 times or 4 times, without limiting in the present embodiment.
Step 270, progress failure report an error.
Step 280, the self-checking command for generating finance device.
Exemplary, after generating self-checking command, then finance device is resetted, and runs setting time, in setting timeDuring arrival, confirm that the finance device status information in memory whether there is fault message, if confirming there are fault message, performStep 260;If fault message is not present in confirmation, step 290 is performed.
Step 290, confirm that finance device is normal.
If the present embodiment detects power down information for the first time by confirming as, the self-checking command of finance device is generated, it is realWhen first powering on now, self-test is carried out by self-checking command;Believed by the finance device state after being updated in confirming memoryIn breath there are fault message after, if confirming the generation number of the self-checking command of finance device not less than preset times, generation goldMelt the self-checking command of equipment, realize and in the case where confirming finance device exception, carry out the self-tests of preset times to improve self-testAccuracy;If the generation number of the self-checking command by confirming finance device exceedes preset times, carry out failure and report an error, it is realIn the case that the self-test of present preset times confirms finance device exception, the automatic failure that carries out reports an error.
Embodiment three
Fig. 3 is a kind of structure diagram of the self-checking unit for finance device that the embodiment of the present invention three provides.The device can be bySoftware and or hardware composition, can generally be integrated in finance device.Referring to Fig. 3, device provided in this embodiment specifically includes:Status information of equipment memory module 310,320 and first self-checking command generation module 330 of status information of equipment update module, itsIn,
Status information of equipment memory module 310, for when detecting the power down information of finance device, by the gold in memoryMelt status information of equipment to store to memory;
Status information of equipment update module 320, for when detecting the upper power information of the finance device, being deposited from describedThe finance device status information is read in reservoir, and by the finance device state information updating into the memory;
First self-checking command generation module 330, if in the finance device status information after being updated in the memoryThere are fault message, then the self-checking command of the finance device is generated.
The present embodiment by status information of equipment memory module when detecting the power down information of finance device, by memoryFinance device status information store to memory, status information of equipment update module is when the upper power information that detect finance deviceWhen, finance device status information is read from memory, and by finance device state information updating into memory, the first self-test refers toIf made in the finance device status information after being updated in generation module memory there are fault message, generation finance device fromInspection instruction, solves when finance device powers on every time and generates self-checking command, when causing to be both needed to longer self-test after the power is turned on every timeBetween the problem of, realize in finance device power down, finance device status information preserved into memory, and then in finance deviceWhen powering on, finance device status information during last power down can be got from memory, and in once power down in confirmationFinance device status information in there are fault message in the case of, just generate self-checking command and carry out self-test, if confirming lastFault message is not present in finance device status information during power down, then confirms that finance device is normal, without passing through self-checking commandSelf-test is carried out, thus substantially reduces self-test time when finance device powers on.
In such scheme, optionally, described device further includes:Validation of information module is powered on, for from the storageBefore the finance device status information is read in device, confirm as detecting the upper power information of the finance device for the first time.
In such scheme, optionally, described device further includes:Second self-checking command generation module, if for confirming asThe upper power information of the finance device is detected for the first time, then generates the self-checking command of the finance device.
In such scheme, optionally, described device further includes:Preset times confirm module, for generating the goldBefore the self-checking command for melting equipment, confirm the generation number of self-checking command of the finance device not less than preset times.
In such scheme, optionally, described device further includes:Failure reports an error module, if for confirming that the finance is setThe generation number of standby self-checking command exceedes preset times, then carries out failure and report an error.
Example IV
Fig. 4 is the structure diagram for a kind of electronic equipment that the embodiment of the present invention four provides, as shown in figure 4, the electronics is setIt is standby to include processor 410, memory 420, input unit 430 and output device 440;The quantity of processor 410 in electronic equipmentCan be one or more, in Fig. 4 by taking a processor 410 as an example;It is processor 410, memory 420 in electronic equipment, defeatedEnter device 430 to connect by bus or other modes with output device 440, in Fig. 4 exemplified by connecting by bus.
Memory 420 is used as a kind of computer-readable recording medium, and journey is can perform available for storage software program, computerSequence and module, as the finance device in any embodiment of the present invention the corresponding programmed instruction/module of self checking method (for example,Status information of equipment memory module 310, status information of equipment update module 320 in the self checking method device of finance device andOne self-checking command generation module 330).Processor 410 by operation be stored in software program in memory 420, instruction andModule, so as to perform various function application and the data processing of electronic equipment, that is, realizes the above-mentioned behaviour for electronic equipmentMake.
Memory 420 can mainly include storing program area and storage data field, wherein, storing program area can store operation systemApplication program needed for system, at least one function;Storage data field can be stored uses created data according to electronic equipmentDeng.In addition, memory 420 can include high-speed random access memory, nonvolatile memory can also be included, for example, at leastOne disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 420 canFurther comprise that relative to the remotely located memory of processor 410, these remote memories network connection to electricity can be passed throughSub- equipment.The example of above-mentioned network includes but not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Input unit 430 can be used for the numeral or character information for receiving input, and produces and set with the user of electronic equipmentPut and the input of key signals that function control is related.Output device 440 may include the display devices such as display screen.
Embodiment five
The embodiment of the present invention five also provides a kind of storage medium for including computer executable instructions, is stored thereon with calculatingMachine program, realizes the self checking method for the finance device that any embodiment of the present invention provides when which is executed by processor.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present inventionIt can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but the former is more in many casesGood embodiment.Based on such understanding, what technical scheme substantially in other words contributed the prior artPart can be embodied in the form of software product, which can be stored in computer-readable recording mediumIn, floppy disk, read-only storage (Read-Only Memory, ROM), random access memory (Random such as computerAccess Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is setStandby (can be personal computer, server, or network equipment etc.) performs the method described in any embodiment of the present invention.
It is worth noting that, in the embodiment of the self checking method device of above-mentioned finance device, included unit andModule is simply divided according to function logic, but is not limited to above-mentioned division, as long as corresponding function can be realized;In addition, the specific name of each functional unit is also only to facilitate mutually distinguish, the protection being not intended to limit the inventionScope.
Above device can perform the method that any embodiment of the present invention is provided, and possesses and performs the corresponding function of the above methodModule and beneficial effect.Not ins and outs of detailed description in the present embodiment, reference can be made to any embodiment of the present invention is providedMethod.
Note that it above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art thatThe invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes,Readjust and substitute without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present inventionIt is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, alsoIt can include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.