CN108765703A - Clocking method, device, storage medium and self-service device - Google Patents

Clocking method, device, storage medium and self-service device Download PDF

Info

Publication number
CN108765703A
CN108765703A CN201810506890.1A CN201810506890A CN108765703A CN 108765703 A CN108765703 A CN 108765703A CN 201810506890 A CN201810506890 A CN 201810506890A CN 108765703 A CN108765703 A CN 108765703A
Authority
CN
China
Prior art keywords
time
self
timer
timer time
service device
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.)
Pending
Application number
CN201810506890.1A
Other languages
Chinese (zh)
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 CN201810506890.1A priority Critical patent/CN108765703A/en
Publication of CN108765703A publication Critical patent/CN108765703A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F9/00Details other than those peculiar to special kinds or types of apparatus
    • G07F9/02Devices for alarm or indication, e.g. when empty; Advertising arrangements in coin-freed apparatus
    • G07F9/026Devices for alarm or indication, e.g. when empty; Advertising arrangements in coin-freed apparatus for alarm, monitoring and auditing in vending machines or means for indication, e.g. when empty

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Electric Clocks (AREA)

Abstract

An embodiment of the present invention provides a kind of clocking method, device, storage medium and self-service devices, are related to self-service device technical field.Method is applied to a self-service device, the method includes:When determining that reaching setting timing starts condition, after the first timer time for obtaining system timer in the self-service device, when determination reaches setting timing termination condition, obtain the second timer time of system timer in the self-service device, the correcting value summation that system clock correction is carried out between first timer time and second timer time is obtained again, it is then based on first timer time, the second timer time and the correcting value summation, obtains timing result.Timing result is more acurrate, ensure that the normal operation of business and safe operation on self-service device.

Description

Clocking method, device, storage medium and self-service device
Technical field
The present invention relates to self-service device field, in particular to a kind of clocking method, device, storage medium and self-service Equipment.
Background technology
Self-service device and service server design that there are many application scenario that time-out judges and a critically important technology machine System, if the time-out of each process step judges, each page of user interface stops or the time-out of page layout switch judges, The time-out of the used time of each interim used time or entire business of business judges that the time-out that user takes withdrawal note output away is sentenced Disconnected, user takes the time-out judgement that deposit refuses paper money away, and the time-out that user takes bank card away judges that the time-out that user takes voucher away is sentenced Breaking and connecting cash register row response bag whether time-out etc..It is existing at present in financial terminal and applied business server service operational process Clocking method it is inaccurate.
Invention content
The purpose of the present invention is to provide a kind of clocking method, device, storage medium and self-service devices, to improve above-mentioned ask Topic.To achieve the goals above, the technical solution adopted by the present invention is as follows:
In a first aspect, an embodiment of the present invention provides a kind of clocking method, it is applied to a self-service device, the method packet It includes:When determining that reaching setting timing starts condition, the first timer time of system timer in the self-service device is obtained;? When determination reaches setting timing termination condition, the second timer time of system timer in the self-service device is obtained;It obtains The correcting value summation of system clock correction is carried out between first timer time and second timer time;Based on described One timer time, the second timer time and the correcting value summation obtain timing result.
Optionally, it is based on first timer time, the second timer time and the correcting value summation, obtains timing knot Fruit, including:
Second timer time is subtracted into the first timer time and the correcting value summation successively, obtains difference and by institute It states difference and is determined as the timing result.
Optionally, when determining that reaching setting timing starts condition, the of system timer in the self-service device is obtained Before one timer time, the method further includes:
Obtain system start-up time, system operation time length and the current time in the self-service device;
Judge the current time whether be equal to the system start-up time and the system operation time length and, if It is equal to, determines the self-service device and business service server time synchronization.
Optionally, it obtains and carries out system clock correction between first timer time and second timer time Correcting value summation, including:
Obtain the clock correction number occurred between first timer time and second timer time and every time Correct corresponding correcting value;
Corresponding correcting value is corrected based on the clock correction number and every time, obtains the correcting value summation.
Second aspect, an embodiment of the present invention provides a kind of time sets, run on a self-service device, described device packet It includes:First acquisition unit, second acquisition unit, third acquiring unit and computing unit.First acquisition unit, for being reached in determination When starting condition to setting timing, the first timer time of system timer in the self-service device is obtained.Second acquisition unit, For when determination reaches setting timing termination condition, obtaining the second timer time of system timer in the self-service device. Third acquiring unit carries out system clock correction for obtaining between first timer time and second timer time Correcting value summation.Computing unit, for being based on first timer time, the second timer time and the correcting value summation, Obtain timing result.
Optionally, the computing unit, for second timer time to be subtracted the first timer time and described successively Correcting value summation obtains difference and the difference is determined as the timing result.
Optionally, the computing unit, for obtaining system start-up time, system operation time in the self-service device Length and current time;Judge whether the current time is equal to the system start-up time and the system operation time is long The sum of degree determines the self-service device and business service server time synchronization if being equal to.
Optionally, the third acquiring unit, for obtain first timer time and second timer time it Between the clock correction number that occurs and correct corresponding correcting value every time;Based on the clock correction number and each correction Corresponding correcting value obtains the correcting value summation.
The third aspect, an embodiment of the present invention provides a kind of storage medium, the storage medium has program stored therein code, institute Program code is stated when being read out by the processor and running, executes above-mentioned method.
Fourth aspect, an embodiment of the present invention provides a kind of self-service device, including processor and memory, the processors It is electrically connected by bus with the memory;Have program stored therein code in the memory;The processor, for by described Bus reads from the memory and runs said program code, executes above-mentioned method.
An embodiment of the present invention provides a kind of clocking method, device, storage medium and self-service device, method is applied to one certainly Equipment is helped, the method includes:When determining that reaching setting timing starts condition, system timer in the self-service device is obtained The first timer time after, determine reach setting timing termination condition when, obtain system timer in the self-service device Second timer time, then obtain and carry out system clock correction between first timer time and second timer time Correcting value summation is then based on first timer time, the second timer time and the correcting value summation, obtains timing knot Fruit.Timing result is more acurrate, ensure that the normal operation of business and safe operation on self-service device.
Other features and advantages of the present invention will be illustrated in subsequent specification, also, partly be become from specification It is clear that by implementing understanding of the embodiment of the present invention.The purpose of the present invention and other advantages can be by saying what is write Specifically noted structure is realized and is obtained in bright book, claims and attached drawing.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the application environment of the embodiment of the present invention;
Fig. 2 is the structure diagram that can apply self-service device provided in an embodiment of the present invention;
Fig. 3 is the flow chart of clocking method provided in an embodiment of the present invention;
Fig. 4 is the structure diagram of time set provided in an embodiment of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings is implemented The component of example can be arranged and be designed with a variety of different configurations.Therefore, below to the reality of the present invention provided in the accompanying drawings The detailed description for applying example is not intended to limit the range of claimed invention, but is merely representative of the selected implementation of the present invention Example.Based on the embodiments of the present invention, those of ordinary skill in the art are obtained without creative efforts Every other embodiment, shall fall within the protection scope of the present invention.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined, then it further need not be defined and explained in subsequent attached drawing in a attached drawing.Meanwhile the present invention's In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Present inventor has found that the prior art is during invention the application:Financial terminal and application server business In operational process, existing clocking method generally comprises two kinds, and one is call operation system times to come to service operation duration It is counted.But since the operating system time of financial self-service equipment and application server needs timing to be taken with banking Business device synchronizes calibration, and prodigious financial business security risk is had using this timing technology.
Another clocking method carries out timing statistics by the timer that system carries.With target service run time For timing course, the timer time of system timer is obtained in target service Startup time, in target service end of run The timer time for obtaining system timer again is carved, and using when the timer time of rear acquisition subtracts the timing formerly obtained It carves, as a result as the run time of target service.For financial terminal, it is possible to which some financial business, which is abnormal, needs weight Open the processing for continuing business after operating system, as after powering off rush positive service, or power-off after need to continue with last time industry At this moment business uses the overtime mode of second of prior art, can not meet the needs of business processing.
Moreover, system timer, generally there are time-count cycle, system timer is since 0 after timing arrival value time-count cycle 0, and the timing again since 0 can be reset to.The size of time-count cycle is limited by the storage of timing numerical value, with Windows systems It is illustrated for timer, timing numerical value is 32 double word type DWORD storages, and the greatest measure that can be stored is (2 ^32-1) ms, about 49.71 days.That is, value time-count cycle of Windows system timers is 49.71 days, timer time reaches 0 and the timing since 0 again will be reset to after time-count cycle value.
For the financial terminal application server of existing B/S patterns, usually concentrates and dispose in national head office, if preceding Between the timer time for obtaining system timer twice afterwards, reset operation has occurred in system timer, then will appear timing result Abnormal situation.It is 1 day in the timer time of rear acquisition if the timer time formerly obtained is 49 days, the timing after subtracting each other As a result it is negative.For avoid the generation of such case, the prior art is usually soon to be reached in the timer time of system timer Before to time-count cycle value, system is restarted.But this processing mode can influence the normal operation of the row whole nation financial business, Thus can not this kind of overtime technology of simple application, need to be improved.Further, present inventor has found existing finance The timing of terminal judges inaccurate technical problem.This application provides a kind of clocking method, device, storage medium and electronics to set It is standby, to improve the above problem.
The following each embodiments of the present invention can be applied in environment as shown in Figure 1 unless otherwise instructed, as shown in Figure 1, Self-service device 100 is connect by network 200 with service server 210.The network 200 can be wired or wireless network.This In inventive embodiments, self-service device 100 and service server 210 can be directly connected to by communication network.Self-service device 100, Service server 210 can establish communication connection in Wi-Fi (Wireless Fidelity) network, 2G/3G/4G networks or LAN.
Referring to Fig. 2, showing a kind of structure diagram for the self-service device 100 that can be applied in the embodiment of the present invention.From It may include memory 102, storage control 104, one or more (one is only shown in Fig. 2) processors to help equipment 100 106, Peripheral Interface 108, input/output module 110, audio-frequency module 112, display module 114, radio-frequency module 116 and timing dress It sets.
Memory 102, storage control 104, processor 106, Peripheral Interface 108, input/output module 110, audio mould Directly or indirectly be electrically connected between block 112, display module 114,116 each element of radio-frequency module, with realize data transmission or Interaction.For example, can realize electrical connection by one or more communication bus or signal bus between these elements.Clocking method Respectively include at least one software function mould that can be stored in the form of software or firmware (firmware) in memory 102 Block, such as software function module or computer program that the time set includes.
Memory 102 can store various software programs and module, such as clocking method provided by the embodiments of the present application and Corresponding program instruction/the module of device.Software program and module of the processor 106 by operation storage in the memory 102, To perform various functions application and data processing, that is, realize the clocking method in the embodiment of the present application.
Memory 102 can include but is not limited to random access memory (Random Access Memory, RAM), only Read memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Processor 106 can be a kind of IC chip, have signal handling capacity.Above-mentioned processor can be general Processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable Gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.It can To realize or execute disclosed each method, step and the logic diagram in the embodiment of the present application.General processor can be micro- Processor or the processor can also be any conventional processor etc..
The Peripheral Interface 108 couples various input/output devices to processor 106 and memory 102.At some In embodiment, Peripheral Interface 108, processor 106 and storage control 104 can be realized in one single chip.Other one In a little examples, they can be realized by independent chip respectively.
The interaction that input/output module 110 is used to that user input data to be supplied to realize user and self-service device 100.It is described Input/output module 110 may be, but not limited to, mouse and keyboard etc..
Audio-frequency module 112 provides a user audio interface, may include that one or more microphones, one or more raises Sound device and voicefrequency circuit.
Display module 114 provides an interactive interface (such as user interface) between self-service device 100 and user Or it is referred to user for display image data.In the present embodiment, the display module 114 can be liquid crystal display or touch Control display.Can be that the capacitance type touch control screen or resistance-type of single-point and multi-point touch operation is supported to touch if touch control display Control screen etc..Single-point and multi-point touch operation is supported to refer to touch control display and can sense on the touch control display one or more The touch control operation generated simultaneously at a position, and transfer to processor 106 to be calculated and handled the touch control operation that this is sensed.
Radio-frequency module 116 is used to receive and transmit electromagnetic wave, realizes the mutual conversion of electromagnetic wave and electric signal, thus with Communication network or other equipment are communicated.
It is appreciated that structure shown in Fig. 2 is only to illustrate, self-service device 100 may also include it is more than shown in Fig. 2 or Less component, or with the configuration different from shown in Fig. 2.Each component shown in Fig. 2 may be used hardware, software or its Combination is realized.
In the embodiment of the present invention, which includes financial terminal.
Referring to Fig. 3, an embodiment of the present invention provides a kind of clocking method, it is applied to a self-service device, the method packet It includes:Step S300, step S310, step S320 and step S330.
Step S300:When determining that reaching setting timing starts condition, system timer in the self-service device is obtained First timer time.
Step S310:When determination reaches setting timing termination condition, system timer in the self-service device is obtained Second timer time.
For example, the self-service device 100 is financial terminal.The user of user interface on financial terminal takes withdrawal away The time-out of note output judges, when the user clicks when withdrawal operation, financial terminal opens cash dispensing port, i.e. financial terminal determination reaches setting Timing starts condition, and when financial terminal detects that cash dispensing port does not have banknote, i.e. financial terminal determination reaches setting timing and terminates Condition.
Step S320:Acquisition carries out system clock correction between first timer time and second timer time Correcting value summation.
Step S330:Based on first timer time, the second timer time and the correcting value summation, timing knot is obtained Fruit.
As an implementation, step S330 may include:
Second timer time is subtracted into the first timer time and the correcting value summation successively, obtains difference and by institute It states difference and is determined as the timing result.
Optionally, before step S300, the method further includes:
Obtain system start-up time, system operation time length and the current time in the self-service device;
Judge the current time whether be equal to the system start-up time and the system operation time length and, if It is equal to, determines the self-service device and service server time synchronization.
In the present embodiment, when user opens self-service device, self-service device obtains system start-up time SystimeStart, After a period of time, when using self-service device opening time copyrighted product, self-service device obtains system operation time length GetTickCount, meanwhile, obtain present system time SystimeUsr;Judging whether current time SystimeUsr is equal to is System start time SystimeStart+ system operation time length GetTickCount, if being equal to, determine the self-service device with Business service server time synchronization, illustrates that system time is correct, if current time SystimeUsr starts not equal to system Between SystimeStart+ system operation times GetTickCount, then it is assumed that user has modified system time, determines the first timing Moment, the failure of the second timer time, it is impossible to be used in time-out calculates.
In the present embodiment, if subtracting each other progress time-out using two times i.e. the first timer time and the second timer time The judgement of time, between taking two times, upper layer ATMC is synchronous into row clock with bank host, may change system time, Judge so as to cause time-out inaccurate.Therefore, all time-out in SP drivings, ATMC upper layer software (applications)s judge, cannot be simple Using this overtime computational methods.Another is exactly to be passed through (elapsed) using the slave os starting got Millisecond number, come after calculating duration, but unexpected progress system reboot occurs during a certain business, this kind time-out judges just to fail ?.If Windows systems use GetTickCount () API, pay attention to:The return Value Types of the function are DWORD. GetTickCount is a kind of function.GetTickCount returns to (retrieve) to be passed through from os starting (elapsed) millisecond number, its return value are DWORD.GetTickcount functions:It is returned from os starting to working as Preceding passed through millisecond number is usually used to judge the time that some method executes, and function prototype is DWORD GetTickCount (void), return value is stored with 32 double word type DWORD, therefore the maximum value that can be stored is (2^ 32-1) ms is about 49.71 days, if therefore system operation time when being more than 49.71 days, this number will return also clear in 0, MSDN Refer to:"Retrieves the number of milliseconds that have elapsed since the system was started,up to 49.7days.".Therefore, it if it is server is write, avoids causing accident Situation (if you need to avoid such situation that the Ctime classes either SYSTEMTIME of system API can be used to be judged).It is as follows:
Error example:
Optionally, step S320 may include:
Obtain the clock correction number occurred between first timer time and second timer time and every time Correct corresponding correcting value;
Corresponding correcting value is corrected based on the clock correction number and every time, obtains the correcting value summation.
The related parameter values of time synchronization are carried out to nearest n times system, if correcting value is not 0, record and preservation are originally The corrected time and correcting value of secondary time adjustment, composition type is such as:(T1,Δt1),(T2,Δt2)...,(Tn,Δtn) sequence, At the time of middle Ti is that nearest ith carries out time synchronization, Δ tiThe correcting value of time synchronization is carried out for nearest ith.Such as from i-th Secondary clock correction amounts to m clock correction to the i-th+m-1 time and is happened at the first timer time T1 to second timer time T2 this section In time, then correcting value summation is:
An embodiment of the present invention provides a kind of clocking methods, are applied to a self-service device, the method includes:It is reached in determination When starting condition to setting timing, after the first timer time for obtaining system timer in the self-service device, reach in determination When setting timing termination condition, the second timer time of system timer in the self-service device is obtained, then is obtained described the The correcting value summation that system clock correction is carried out between one timer time and second timer time, is then based on described first Timer time, the second timer time and the correcting value summation obtain timing result.Timing result is more acurrate, ensure that self-service The normal operation of business and safe operation in equipment.
Referring to Fig. 4, an embodiment of the present invention provides a kind of time set 400, a self-service device, described device are run on 400 include:First acquisition unit 410, second acquisition unit 420, third acquiring unit 430 and computing unit 440.
First acquisition unit 410, for when determining that reaching setting timing starts condition, obtaining in the self-service device and being First timer time of system timer.
Second acquisition unit 420, for determine reach setting timing termination condition when, obtain in the self-service device and be Second timer time of system timer.
Third acquiring unit 430 is carried out for obtaining between first timer time and second timer time The correcting value summation of system clock correction.
Computing unit 440 is obtained for being based on first timer time, the second timer time and the correcting value summation Obtain timing result.
Optionally, the computing unit 440, for second timer time to be subtracted the first timer time and institute successively Correcting value summation is stated, difference is obtained and the difference is determined as the timing result.
Optionally, the computing unit 440, for obtaining the system start-up time in the self-service device, system operation Time span and current time;When judging whether the current time is equal to the system start-up time with the system operation Between the sum of length determine the self-service device and service server time synchronization if being equal to.
Optionally, the third acquiring unit 430, for obtaining first timer time and second timer time Between the clock correction number that occurs and correct corresponding correcting value every time;Based on the clock correction number and each school Just corresponding correcting value obtains the correcting value summation.
The above each unit can be by software code realization, at this point, above-mentioned each unit can be stored in memory 102. The above each unit can equally be realized by hardware such as IC chip.
The technique effect and preceding method of time set 400 provided in an embodiment of the present invention, realization principle and generation are real It is identical to apply example, to briefly describe, device embodiment part does not refer to place, can refer to corresponding contents in preceding method embodiment.
An embodiment of the present invention provides a kind of storage medium, the storage medium has program stored therein code, described program generation Code executes above-mentioned method when being read out by the processor and running.
An embodiment of the present invention provides a kind of self-service device, including processor and memory, the processor and described deposit Reservoir is electrically connected by bus;Have program stored therein code in the memory;The processor, for by the bus from institute It states and said program code is read and run in memory, execute above-mentioned method.
An embodiment of the present invention provides a kind of clocking method, device, storage medium and self-service device, method is applied to one certainly Equipment is helped, the method includes:When determining that reaching setting timing starts condition, system timer in the self-service device is obtained The first timer time after, determine reach setting timing termination condition when, obtain system timer in the self-service device Second timer time, then obtain and carry out system clock correction between first timer time and second timer time Correcting value summation is then based on first timer time, the second timer time and the correcting value summation, obtains timing knot Fruit.Timing result is more acurrate, ensure that the normal operation of business and safe operation on self-service device.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, the flow chart in attached drawing and block diagram Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product, Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code Part, a part for the module, section or code, which includes that one or more is for implementing the specified logical function, to be held Row instruction.It should also be noted that at some as in the realization method replaced, the function of being marked in box can also be to be different from The sequence marked in attached drawing occurs.For example, two continuous boxes can essentially be basically executed in parallel, they are sometimes It can execute in the opposite order, this is depended on the functions involved.It is also noted that every in block diagram and or flow chart The combination of box in a box and block diagram and or flow chart can use function or the dedicated base of action as defined in executing It realizes, or can be realized using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each function module in each embodiment of the present invention can integrate to form an independent portion Point, can also be modules individualism, can also two or more modules be integrated to form an independent part.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module It is stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be People's computer, service server or network equipment etc.) execute all or part of step of each embodiment the method for the present invention Suddenly.And storage medium above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), is deposited mobile hard disk at random The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic disc or CD.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (10)

1. a kind of clocking method is applied to a self-service device, which is characterized in that the method includes:
When determining that reaching setting timing starts condition, the first timer time of system timer in the self-service device is obtained;
When determination reaches setting timing termination condition, the second timer time of system timer in the self-service device is obtained;
Obtain the correcting value summation that system clock correction is carried out between first timer time and second timer time;
Based on first timer time, the second timer time and the correcting value summation, timing result is obtained.
2. according to the method described in claim 1, it is characterized in that, based on first timer time, the second timer time and The correcting value summation obtains timing result, including:
Second timer time is subtracted into the first timer time and the correcting value summation successively, obtains difference and by the difference Value is determined as the timing result.
3. according to the method described in claim 1, it is characterized in that, when determining that reaching setting timing starts condition, institute is obtained Before the first timer time for stating system timer in self-service device, the method further includes:
Obtain system start-up time, system operation time length and the current time in the self-service device;
Judge the current time whether be equal to the system start-up time and the system operation time length and, if waiting In determining the self-service device and service server time synchronization.
4. according to the method described in claim 1, it is characterized in that, obtaining in first timer time and second timing The correcting value summation of system clock correction is carried out between moment, including:
Obtain the clock correction number occurred between first timer time and second timer time and every time correction Corresponding correcting value;
Corresponding correcting value is corrected based on the clock correction number and every time, obtains the correcting value summation.
5. a kind of time set, which is characterized in that run on a self-service device, described device includes:
First acquisition unit, for when determining that reaching setting timing starts condition, obtaining system timing in the self-service device First timer time of device;
Second acquisition unit, for when determination reaches setting timing termination condition, obtaining system timing in the self-service device Second timer time of device;
Third acquiring unit carries out system clock for obtaining between first timer time and second timer time The correcting value summation of correction;
Computing unit obtains timing knot for being based on first timer time, the second timer time and the correcting value summation Fruit.
6. device according to claim 5, which is characterized in that the computing unit is used for second timer time The first timer time and the correcting value summation are subtracted successively, obtain difference and the difference is determined as the timing result.
7. device according to claim 5, which is characterized in that the computing unit, for obtaining in the self-service device System start-up time, system operation time length and current time;Judge whether the current time is equal to the system Start time and the system operation time length and, if being equal to, determine that the self-service device and service server time are same Step.
8. device according to claim 5, which is characterized in that the third acquiring unit, by obtaining based on described first When moment and second timer time between the clock correction number that occurs and correct corresponding correcting value every time;Based on institute It states clock correction number and corrects corresponding correcting value every time, obtain the correcting value summation.
9. a kind of storage medium, which is characterized in that the storage medium has program stored therein code, and said program code is being handled When device reads and runs, the method as described in any claims of claim 1-4 is executed.
10. a kind of self-service device, which is characterized in that including processor and memory, the processor and the memory pass through Bus is electrically connected;Have program stored therein code in the memory;The processor, for by the bus from the memory Middle reading simultaneously runs said program code, executes the method as described in any claims of claim 1-4.
CN201810506890.1A 2018-05-23 2018-05-23 Clocking method, device, storage medium and self-service device Pending CN108765703A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810506890.1A CN108765703A (en) 2018-05-23 2018-05-23 Clocking method, device, storage medium and self-service device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810506890.1A CN108765703A (en) 2018-05-23 2018-05-23 Clocking method, device, storage medium and self-service device

Publications (1)

Publication Number Publication Date
CN108765703A true CN108765703A (en) 2018-11-06

Family

ID=64006494

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810506890.1A Pending CN108765703A (en) 2018-05-23 2018-05-23 Clocking method, device, storage medium and self-service device

Country Status (1)

Country Link
CN (1) CN108765703A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110699863A (en) * 2019-09-24 2020-01-17 杰克缝纫机股份有限公司 Timing method, system, computer readable storage medium and server
CN113098939A (en) * 2021-03-25 2021-07-09 深圳市轱辘车联数据技术有限公司 Data transmission method, data transmission device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1294471A (en) * 1999-10-20 2001-05-09 索尼国际(欧洲)股份有限公司 Mobile terminal with accuracy real time generator for radio telecommunicating system
KR20080000724A (en) * 2006-06-28 2008-01-03 노틸러스효성 주식회사 Method for adjusting screen conversion time in automatic teller machine and automatic teller machine using the same
CN103248614A (en) * 2012-02-09 2013-08-14 上海新华解放数字阅读传媒有限公司 Implementation method of safety time of client
CN106251508A (en) * 2016-07-22 2016-12-21 深圳怡化电脑股份有限公司 The method for processing business of a kind of self-aided terminal and system
CN106788957A (en) * 2016-12-30 2017-05-31 广州华多网络科技有限公司 A kind of method and device of check timer time error

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1294471A (en) * 1999-10-20 2001-05-09 索尼国际(欧洲)股份有限公司 Mobile terminal with accuracy real time generator for radio telecommunicating system
KR20080000724A (en) * 2006-06-28 2008-01-03 노틸러스효성 주식회사 Method for adjusting screen conversion time in automatic teller machine and automatic teller machine using the same
CN103248614A (en) * 2012-02-09 2013-08-14 上海新华解放数字阅读传媒有限公司 Implementation method of safety time of client
CN106251508A (en) * 2016-07-22 2016-12-21 深圳怡化电脑股份有限公司 The method for processing business of a kind of self-aided terminal and system
CN106788957A (en) * 2016-12-30 2017-05-31 广州华多网络科技有限公司 A kind of method and device of check timer time error

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110699863A (en) * 2019-09-24 2020-01-17 杰克缝纫机股份有限公司 Timing method, system, computer readable storage medium and server
CN110699863B (en) * 2019-09-24 2022-02-25 杰克科技股份有限公司 Timing method, system, computer readable storage medium and server
CN113098939A (en) * 2021-03-25 2021-07-09 深圳市轱辘车联数据技术有限公司 Data transmission method, data transmission device and electronic equipment
CN113098939B (en) * 2021-03-25 2023-06-02 深圳市轱辘车联数据技术有限公司 Data transmission method, data transmission device and electronic equipment

Similar Documents

Publication Publication Date Title
CN106294125B (en) Core banking system data processing method
CN108765703A (en) Clocking method, device, storage medium and self-service device
CN110210900B (en) Reference product determination method, device and equipment based on transaction relevance
CN107767236A (en) A kind of order method for pushing, device, server and computer-readable recording medium
CN110009365B (en) User group detection method, device and equipment for abnormally transferring electronic assets
CN108111554A (en) A kind of control method and device of access queue
CN102089790B (en) Vending machine and control method thereof
US20060112308A1 (en) Selection of status data from synchronous redundant devices
CN107743164A (en) A kind of exception falls the processing method and terminal of card
CN107770281A (en) A kind of method, server and computer-readable recording medium for notifying trade company's reimbursement information
CN112241615B (en) Method and system for detecting data balance time sequence and electronic equipment
CN107909747B (en) Method and device for acquiring paper money information and terminal equipment
CN108921532A (en) transaction request processing method, device and server
CN109544188B (en) User behavior monitoring method based on guarantee transaction, terminal and readable storage medium
CN110689333B (en) Block chain automatic account checking method, device, system and storage medium
CN109155745B (en) Payment gateway is connected to the network detection method and terminal device
CN108132803A (en) Timing keep-alive and awakening method, system, terminal and medium based on mobile terminal
CN110766402A (en) Transaction sequence dependency vulnerability detection method, system, electronic device and storage medium
WO2014078352A1 (en) Protected communications vending machine system
CN108053255A (en) The method and device of a kind of information processing
JP6823618B2 (en) Access method estimation system and access method estimation method
CN108599981A (en) Management method, service card and the communication equipment of service card
JP6578685B2 (en) Relationship estimation method, relationship estimation program, and information processing apparatus
CN115048355B (en) Updating method, device, equipment and medium of identification model
CN107316181A (en) Obtain the method, device and mobile terminal of position market emolument

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181106

RJ01 Rejection of invention patent application after publication