CN108073408B - System updating method and device of self-service terminal - Google Patents

System updating method and device of self-service terminal Download PDF

Info

Publication number
CN108073408B
CN108073408B CN201611005952.8A CN201611005952A CN108073408B CN 108073408 B CN108073408 B CN 108073408B CN 201611005952 A CN201611005952 A CN 201611005952A CN 108073408 B CN108073408 B CN 108073408B
Authority
CN
China
Prior art keywords
self
service terminal
service
updating
update
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
CN201611005952.8A
Other languages
Chinese (zh)
Other versions
CN108073408A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201611005952.8A priority Critical patent/CN108073408B/en
Publication of CN108073408A publication Critical patent/CN108073408A/en
Application granted granted Critical
Publication of CN108073408B publication Critical patent/CN108073408B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The invention relates to a system updating method of a self-service terminal, which comprises the following steps: the method comprises the steps that a server receives initial connection requests sent by a plurality of self-service terminals, wherein the initial connection requests comprise terminal identifications and system numbers of the self-service terminals; counting the self-service terminals and the number of the self-service terminals in the plurality of self-service terminals, which need to be updated, according to the system number; generating corresponding delay time for each self-service terminal needing to update the system according to the number; calculating the updating time of the self-service terminal of the corresponding system needing to be updated according to the delay time; inquiring updating data corresponding to the self-service terminal of the system to be updated; and when the system time is detected to reach or exceed the updating time, the self-service terminal needing to update the system obtains the corresponding updating data and updates the data. The method can reduce the data transmission pressure of the server and improve the overall system updating efficiency of the self-service terminal. In addition, a system updating device of the self-service terminal is correspondingly provided.

Description

System updating method and device of self-service terminal
Technical Field
The invention relates to the technical field of information processing, in particular to a system updating method and device of a self-service terminal.
Background
The self-service terminal is mainly used for relieving the problem of large people flow in business halls and improving the speed of business handling, and is mainly applied to the industries of banks, telecommunications, electric power, medical treatment, aviation, retail and the like. The self-service terminals are usually distributed in various business places, and are connected to a background system of the self-service terminals at fixed time points every day to start operation.
To improve the software performance of the self-service device, the operating system of the self-service device often needs to be updated or upgraded. In the conventional method, system update data of the self-service terminal is set in a background system, and when the self-service device is connected to the background system at the fixed time point, the system update data is sent to the self-service terminal so as to update the system. Because the number of the self-service devices is huge and the operating systems of the self-service devices of the same type are the same, the traditional method needs to occupy a large amount of resources when the self-service devices are updated, and even causes the crash of a background system, so that the updating efficiency is not high.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a system updating method and apparatus for a self-service terminal, which can improve the system updating efficiency of the self-service terminal.
A system updating method of a self-service terminal, the method comprising the steps of:
the method comprises the steps that a server receives initial connection requests sent by a plurality of self-service terminals, wherein the initial connection requests comprise terminal identifications and system numbers of the self-service terminals;
counting the self-service terminals and the number of the self-service terminals needing to be updated in the plurality of self-service terminals according to the system number;
inquiring updating data corresponding to the self-service terminal of the system needing to be updated;
distributing corresponding delay time for each self-service terminal needing to update the system according to the number of the self-service terminals needing to update the system and the update data;
calculating the updating time of each self-service terminal needing to update the system according to the delay time;
and when the updating time is up, controlling the self-service terminal of the system needing to be updated to download the updating data from the server and updating.
In one embodiment, the step of counting, according to the system number, the self-service terminals of the system and the number thereof that need to be updated in the plurality of self-service terminals includes:
acquiring a latest system number preset in a server;
detecting whether the system number of each self-service terminal is the same as the corresponding latest system number;
if a self-service terminal with a system number different from the corresponding latest system number exists, judging that the self-service terminal is a self-service terminal needing to update the system;
and calculating the number of the self-service terminals needing to update the system.
In one embodiment, the method further comprises:
and when the system updating of the self-service terminal needing to update the system is completed, updating the system number of the self-service terminal into the corresponding latest system number.
In one embodiment, the step of querying update data corresponding to the self-service terminal of the system needing to be updated includes:
determining the type of the self-service terminal needing to update the system according to the system number, and classifying;
querying, from the server, update data corresponding to different categories of self-service terminals;
the step of allocating corresponding delay time to each self-service terminal needing to update the system according to the number of the self-service terminals needing to update the system and the update data comprises the following steps:
according to the size of the updating data, calculating the downloading time length required by the self-service terminals of different types to download the corresponding updating data;
and distributing the delay time length for the self-service terminals of different types according to the downloading time length.
In one embodiment, the delay durations allocated to the different classes of self-service terminals are the same delay duration or different delay durations; and if the delay time lengths are the same, the same delay time length is not less than the maximum value of the download time lengths of the self-service terminals of different types.
A system update apparatus for a self-service terminal, the apparatus comprising:
the system comprises an initial connection request receiving module, a connection request receiving module and a connection request sending module, wherein the initial connection request receiving module is used for receiving initial connection requests sent by a plurality of self-service terminals, and the initial connection requests comprise terminal identifications and system numbers of each self-service terminal;
the number counting module is used for counting the self-service terminals of the system and the number of the self-service terminals needing to be updated in the plurality of self-service terminals according to the system number;
the updating data query module is used for querying updating data corresponding to the self-service terminal of the system needing to be updated;
the updating time calculation module is used for distributing corresponding delay time for each self-service terminal of the system to be updated according to the number of the self-service terminals of the system to be updated and the updating data; calculating the updating time of each self-service terminal needing to update the system according to the delay time;
and the system updating module is used for controlling the self-service terminal of the system needing to be updated to download the updating data from the server and update the updating data when the updating time is up.
In one embodiment, the quantity statistics module comprises:
the detection unit is used for acquiring the latest system number preset in the server; detecting whether the system number of each self-service terminal is the same as the corresponding latest system number;
the self-service terminal is used for updating the system if the self-service terminal with the system number different from the corresponding latest system number exists;
and the quantity calculating unit is used for calculating the quantity of the self-service terminals needing to update the system.
In one embodiment, the apparatus further comprises:
and the system number updating module is used for updating the system number of the self-service terminal to the corresponding latest system number when the system updating of the self-service terminal of which the system needs to be updated is completed.
In one embodiment, the update data query module is further configured to determine the category of the self-service terminal of the system to be updated according to the system number, and classify the self-service terminal; querying, from the server, update data corresponding to different categories of self-service terminals;
the updating time calculation module is also used for calculating the downloading time length required by the self-service terminals of different types to download the corresponding updating data according to the size of the updating data; and distributing the delay time length for the self-service terminals of different types according to the downloading time length.
In one embodiment, the delay durations allocated to the different classes of self-service terminals are the same delay duration or different delay durations; and if the delay time lengths are the same, the same delay time length is not less than the maximum value of the download time lengths of the self-service terminals of different types.
According to the self-service terminal system updating method and device, whether the corresponding self-service terminal is the self-service terminal needing system updating is determined by detecting the system number of the self-service terminal, the number and the updating data of the self-service terminals needing system updating are determined, the corresponding delay time is set for each self-service terminal needing system updating according to the number and the updating data, the updating time of the corresponding self-service terminal is determined according to the delay time and the current system time, the self-service terminal needing system updating obtains the corresponding updating data and updates when the updating time is up, the number of the self-service terminals needing system updating at the same time can be reduced, the data transmission pressure of a server is reduced, and the whole system updating efficiency of the self-service terminal is improved.
Drawings
FIG. 1 is a diagram of an application environment of a system update method of a self-service terminal in one embodiment;
FIG. 2 is a diagram illustrating an internal architecture of a server according to an embodiment;
FIG. 3 is a flow diagram of a system update method for a self-service terminal in one embodiment;
FIG. 4 is a flowchart illustrating steps of counting, according to the system number, which are required to update the number of self-service terminals of the system among the plurality of self-service terminals in one embodiment;
FIG. 5 is a flowchart of the steps for querying for update data corresponding to a self-service terminal that requires an update to the system in one embodiment;
FIG. 6 is a block diagram of a system update apparatus of a self-service terminal in one embodiment;
FIG. 7 is a block diagram of a quantity statistics module in one embodiment;
FIG. 8 is a block diagram of a system update apparatus of a self-service terminal in another embodiment;
FIG. 9 is a block diagram that illustrates the structure of the update data query module, in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a diagram of an application environment of a system updating method of a self-service terminal in an embodiment. The application environment includes a self-service terminal 110 and a server 120. The self-service terminal 110 may be any self-service terminal machine such as an ATM machine, an automatic payment machine, an automatic ticket machine, an automatic vending machine, a self-service fuel dispenser, a self-service registration machine, a self-service ticket dispenser, and the like. An operating system runs on the self-service terminal, and business handling of the user is achieved through connection with the server. The server 120 is a background system server corresponding to the self-service terminal, and stores system data of the self-service terminal operating system. The server 120 may communicate with the self-service terminals 110 through a preset interface, and receive initial connection requests of a plurality of self-service terminals 110, where the initial connection requests include terminal identifiers and system numbers of the self-service terminals; counting the self-service terminals and the number of the self-service terminals in the plurality of self-service terminals, which need to be updated, according to the system number; inquiring updating data corresponding to the self-service terminal of the system to be updated; distributing corresponding delay time for each self-service terminal needing to update the system according to the number of the self-service terminals needing to update the system and the update data; calculating the updating time of each self-service terminal needing to update the system according to the delay time; and when the updating time is up, controlling the self-service terminal needing to update the system to download the updating data from the server and updating.
Fig. 2 is a schematic diagram of an internal structure of the server 120 in one embodiment. The server 120 includes a processor, a non-volatile storage medium, an internal memory, and a network interface connected by a system bus. The system updating device comprises a server, a nonvolatile storage medium and a system updating device, wherein the nonvolatile storage medium of the server stores an operating system and a database, and the system updating device of the self-service terminal. The database stores system data of the self-service terminal operating system, and the system updating device of the self-service terminal is used for realizing a system updating method of the self-service terminal. The processor is used for providing calculation and control capacity and supporting the operation of the whole server. The internal memory in the server provides an environment for the operation of the system updating device of the self-service terminal in the nonvolatile storage medium, and the internal memory can store computer readable instructions which can be executed by the processor, so that the processor can execute a system updating method of the self-service terminal. The network interface is used for carrying out network communication with the self-service terminal.
Those skilled in the art will appreciate that the architecture shown in fig. 2 is a block diagram of only a portion of the architecture associated with the subject application, and does not constitute a limitation on the servers to which the subject application applies, as a particular server may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, as shown in fig. 3, a system updating method of a self-service terminal is provided, which can be applied to the environment shown in fig. 1, and can be specifically executed on the server shown in fig. 2. The method comprises the following steps:
step 302, the server receives initial connection requests sent by a plurality of self-service terminals, wherein the initial connection requests comprise terminal identifications and system numbers of each self-service terminal.
In this embodiment, the server may call a preset interface to connect with the plurality of self-service terminals. The self-service terminals comprise a plurality of self-service terminals, and the server can set an initial connection period with the self-service terminals. For example, the initial linking period may be one period of 24 hours. The initial connection request is a connection request which is made by the self-service terminal with the server for the first time in each period. The initial link request sent by each self-service terminal comprises a terminal identification and a system number of the self-service terminal. The terminal identification and the system number can be respectively composed of numbers, letters and other characters with preset digits and are respectively used for uniquely identifying the corresponding self-service terminal and the operating system running on the self-service terminal.
And 304, counting the self-service terminals and the number of the self-service terminals in the plurality of self-service terminals which need to be updated according to the system number.
In this embodiment, the plurality of self-service terminals are initially connected to the server at the same time. After receiving initial link requests of a plurality of self-service terminals, the server determines whether an operating system running on the self-service terminal needs to perform system updating according to a system number carried in each initial link request, and counts the number of the self-service terminals needing to perform system updating.
Step 306, inquiring updating data corresponding to the self-service terminal needing to update the system.
In this embodiment, the server establishes a correspondence between different system numbers and update data in advance, and queries, according to the correspondence, update data corresponding to the latest operating system stored in the database, where the update data is update data required when the system is updated by the corresponding self-service terminal.
And 308, distributing corresponding delay time for each self-service terminal needing to update the system according to the number of the self-service terminals needing to update the system and the update data.
The delay time is related to the number of self-service terminals needing to update the system and the updating data. The larger the data of the update data is, the more the number of the self-service terminals of the system needs to be updated, and the longer the delay time is set relatively. Specifically, when the number of the self-service terminals that need to be updated is larger, the set maximum delay time is also larger. The larger the data of the updated data, the larger the time interval between the average adjacent delay periods.
Further, the set interval durations between adjacent delay durations may be the same or different. For example, the interval duration between each two adjacent delay durations may be set to half an hour, that is, the delay durations are set to 0 minute, 30 minutes, 60 minutes, 90 minutes, and the like, respectively. The number of the set delay time periods can be determined by the number of the self-service terminals needing to update the system, and the number can be less than or equal to the number of the self-service terminals needing to update the system. The terminal can distribute the set delay time length to the corresponding self-service terminals according to the determined sequence of the self-service terminals needing to update the system, so that each self-service terminal needing to update the system is distributed with one delay time length.
For example, if the number of self-service terminals needing to update the system is 100 (respectively counted as terminals 1 to 100), and the size of the update data is 500M, the adjacent delay time intervals may be set to 10 minutes, and the delay times may be set to 0 minute, 10 minutes, 20 minutes, 30 minutes, and 40 minutes, respectively. Allocating the delay time of the terminals 1-20 to be 0 minute, allocating the delay time of the terminals 21-40 to be 10 minutes, allocating the delay time of the terminals 41-60 to be 20 minutes, allocating the delay time of the terminals 61-80 to be 30 minutes, and allocating the delay time of the terminals 81-100 to be 30 minutes.
And 310, calculating the updating time of each self-service terminal corresponding to the system to be updated according to the delay time.
The delay time allocated to each self-service terminal needing to update the system can be summed with the current system time, and the obtained sum is the updating time of the self-service terminal.
And step 312, when the updating time is up, controlling the self-service terminal needing to update the system to download the updating data from the server and update.
In this embodiment, the server may call a time calculation function module such as a relevant timer, and detect whether the current time reaches the update time allocated to the corresponding self-service terminal that needs to update the system in real time. When the system time does not reach the update time, the server can respond to the initial connection request and point to a preset value, and the preset value points to corresponding preset data. The preset value may be a default value. The default value may refer to predetermined data that returns a system update pending for the initial connection request.
And when the system time is detected to reach or exceed the updating time, the self-service terminal needing to update the system can acquire corresponding updating data. Specifically, the server can actively send the update data to the corresponding self-service terminal, and the self-service terminal receives the update data sent by the server and performs system update according to the received update data. Or the self-service terminal actively acquires corresponding update data from the server to carry out system update so as to reduce the data transmission pressure of the server.
In this embodiment, whether the corresponding self-service terminal is a self-service terminal that needs to perform system update is determined by detecting a system number of the self-service terminal, the number and the update data of the self-service terminals that need to perform system update are determined, a corresponding delay time is set for each self-service terminal that needs to perform system update according to the number and the update data, and the update time of the corresponding self-service terminal is determined according to the delay time and the current system time, so that the self-service terminal that needs to update the system obtains the corresponding update data and performs update when the update time is reached, thereby reducing the number of the self-service terminals that perform system update at the same time, reducing the data transmission pressure of a server, and improving the overall system update efficiency of the self-service terminal.
In one embodiment, the system number of the self-service terminal can be automatically changed by the server, and the system numbers corresponding to the same operating system on different self-service terminals can be different. Therefore, the self-service terminal needing to be updated can be determined by adjusting the system number, and the updating diversity of the self-service terminal is improved.
In an embodiment, as shown in fig. 4, the step of counting, according to the system number, the self-service terminals and the number thereof in the plurality of self-service terminals that need to be updated includes:
step 402, acquiring the latest system number preset in the server.
In this embodiment, one or more system data may be stored in the server, and a corresponding system number is set for each system data, where the latest system number is a system number corresponding to the latest system data. Generally, the time set by each system number is detected, and the system number corresponding to the latest set time is the latest system number.
Step 404, detecting whether the system number of each self-service terminal is the same as the corresponding latest system number.
In this embodiment, after the initial connection between the server and each self-service terminal is successful, the server compares whether the system number of the self-service terminal is the same as the preset latest system number.
Step 406, if there is a self-service terminal with a system number different from the corresponding latest system number, determining that the self-service terminal is a self-service terminal that needs to update the system.
In this embodiment, if the system number of the self-service terminal is the same as the latest system number, it is indicated that the operating system running on the self-service terminal is the latest operating system, and system updating is not required. And if the system number of the self-service terminal is different from the latest system number, the fact that the updated operating system is set for the self-service terminal on the server is indicated, and the self-service terminal is judged to be the self-service terminal needing to update the system.
Step 408, calculating the number of self-service terminals needing to update the system.
In this embodiment, the server may calculate the number of self-service terminals that are determined to need to update the system among the self-service terminals currently connected to the server by calling a module having a calculation function, such as an accumulator.
In one embodiment, when the system update of the self-service terminal needing to update the system is completed, the system number of the self-service terminal is updated to the corresponding latest system number.
In this embodiment, the self-service terminal may send a message of successful update to the server after completing the system update, and the server changes the system number of the self-service terminal to the corresponding latest system number after receiving the message of successful update of the self-service terminal, so that when the self-service terminal performs initial connection again, the self-service terminal that does not need to perform system update may be determined according to the updated system number.
In one embodiment, as shown in fig. 5, the step of querying the update data corresponding to the self-service terminal needing to update the system includes:
step 502, a plurality of system sub-numbers corresponding to the system numbers are obtained.
In this embodiment, the server sets a system sub-number corresponding to each system number, where the system sub-number includes a plurality of system sub-numbers. After the system number of the self-service terminal is determined, a plurality of system sub-numbers corresponding to the system number can be inquired and obtained. Each system sub-number is associated with one or more system module data, and the system module data is corresponding to one or more system function modules in the whole operating system.
Step 504, a plurality of latest system sub-numbers corresponding to the latest system number are obtained.
In general, when a new operating system is set up, not all system data of the old system is modified, but only a part of the system data is modified or a new part of the system data is added. At this time, the modified or added part of the system data may be set with a corresponding new system sub-number, while the unmodified part of the system data may be kept unchanged with the corresponding system sub-number. That is, the system sub-number corresponding to the latest system number is the latest system sub-number added or modified on the basis of the system sub-number corresponding to the last system number.
Step 506, the system sub-number is compared with the corresponding latest system sub-number, and the latest system sub-number different from the system sub-number is determined.
In this embodiment, it may be detected whether each latest system sub-number is the same as the system sub-number of the self-service terminal. That is, whether each system sub-number is also one of the plurality of system sub-numbers corresponding to the system number of the self-service terminal is detected. If yes, the latest system sub-number is judged to be the same, and the corresponding system module data is not the updating data. If not, the latest system sub-number is judged to be different latest system sub-numbers, that is, the latest system sub-number is the added or modified system sub-number, and the corresponding system module data is also the added or modified data, that is, the updated data.
And acquiring system module data corresponding to different latest system sub-numbers, wherein the system module data is update data corresponding to the self-service terminal of which the system needs to be updated.
In this embodiment, the corresponding system module data can be searched and obtained according to the association relationship between the different latest system sub-numbers and the corresponding system module data, where the system module data is the update data corresponding to the self-service terminal that needs to update the system.
For example, as shown in table 1 below, the system number of the self-service terminal in one embodiment is a system sub-number comparison table corresponding to the latest system number. Comparing the system sub-number with the corresponding latest system sub-number, determining that the latest system sub-number different from the system sub-number is 123463, and obtaining the system module data corresponding to the latest system sub-number 123463 as the update data corresponding to the self-service terminal needing to update the system.
TABLE 1 System number of self-service terminal and System sub-number comparison Table of latest System number
Figure 397854DEST_PATH_IMAGE001
In this embodiment, the system data is convenient to manage and update by setting the corresponding system sub-number and the corresponding system module data for each system number in advance. And then comparing the latest system sub-number of the latest system number with the system sub-number corresponding to the system number of the self-service terminal, determining the latest system sub-number different from the system sub-number, and taking the system module data corresponding to the different latest system sub-numbers as the updating data corresponding to the self-service terminal needing to update the system. Because the system module data is the data corresponding to one or more system function modules in the whole operating system, the transmission quantity of the updated data becomes smaller, and the data transmission pressure of the server and the terminal is reduced.
In one embodiment, before the step of determining that the corresponding self-service terminal is a self-service terminal that needs to update the system, the method further includes: detecting whether the latest system number is a trial-run number or not, and detecting whether the self-service terminal is a trial-run self-service terminal or not; and when the latest system number is the trial-run number and the self-service terminal is the trial-run self-service terminal, judging that the corresponding self-service terminal is the self-service terminal needing to update the system.
In this embodiment, the system number may be further set as a trial number. The operating system corresponding to the test point number is the operating system for trial use. Namely, when a new operating system is developed, the system can be tried on part of the self-service terminals. When the system number of the self-service terminal is different from the latest system number, the server can further detect whether the latest system number is a trial number. Specifically, whether the latest system number carries a test point mark or not can be detected, and if so, the latest system number is determined to be the test point number.
And when the latest system number is judged to be the trial-run number, further detecting whether the self-service terminal belongs to the trial-run self-service terminal. The server is further provided with a test point self-service terminal list, and terminal identifications set as test point self-service terminals are stored in the list. The server can detect whether the terminal identification of the self-service terminal exists in the examination point self-service terminal list or not, and if yes, the self-service terminal is judged to be the examination point self-service terminal.
When the latest system number is a trial number and the self-service terminal is a trial self-service terminal, the server can determine that the corresponding self-service terminal is the self-service terminal needing to update the system.
In this embodiment, through setting up the examination number and the self-service terminal of examination, be convenient for try on the operating system who updates, still can improve self-service terminal operation's stability and variety on the whole.
In one embodiment, the step of querying update data corresponding to self-service terminals that need to update the system comprises: determining the type of the self-service terminal needing to update the system according to the system number, and classifying; the server is queried for update data corresponding to different categories of self-service terminals.
In this embodiment, the server may be classified according to one or more factors of a manufacturer of the self-service terminal, hardware information, a device model, a system type of installation, and the like. And the self-service terminals of different categories correspond to different system numbers. For example, naming rules of system numbers of self-service terminals of different types can be preset, so that the type of the corresponding self-service terminal can be known according to the system number, and the self-service terminals of the same type, of which the system is to be updated, can be classified.
The system data corresponding to the self-service terminals of different categories are different, and the server can inquire the updating data corresponding to the self-service terminals of the system number, wherein the updating data correspond to the categories of the self-service terminals.
The method comprises the following steps of updating the number of the self-service terminals of the system and updating data according to needs, and allocating corresponding delay time for each self-service terminal of the system to be updated, wherein the steps comprise: according to the size of the updated data, calculating the downloading time length required by the self-service terminals of different types to download the corresponding updated data; and allocating delay time lengths to different types of self-service terminals according to the downloading time lengths.
In this embodiment, after querying the corresponding update data, the server may determine the size of the update data, and predict, according to the size of the update data, a download duration required by the corresponding self-service terminal to download the update data. The downloading time length can be determined according to factors such as the data receiving speed of the self-service terminal and/or the data issuing speed of the server. The delay time allocated by the self-service terminal pole may be determined according to the download time.
In this embodiment, by further determining corresponding update data and delay time according to the category of the terminal, the stability and diversity of the operation of the self-service terminal can be improved as a whole.
In one embodiment, the delay time lengths allocated to the different classes of self-service terminals are the same delay time length or different delay time lengths; if the delay time lengths are the same, the same delay time length is not less than the maximum value of the download time lengths of the self-service terminals of different categories.
For example, there are two types of kiosks requiring system update, labeled as type A and type B, with the number of types being 100 and 60, respectively, and the size of the corresponding update data being 200M and 300M, respectively, and the corresponding kiosks are labeled as terminals A1-A100 and terminals B1-B60. The server calculates the time length of each category of self-service terminals for completing downloading the corresponding updated data to be 5 minutes and 10 minutes respectively.
Then, according to the download duration, the delay duration can be set to be 0 minute, 5 minutes, 10 minutes, 15 minutes for the terminals A1-A30, A31-A60, A61-A90, A91-A100. The delay time lengths of 15 minutes, 25 minutes and 35 minutes are set for the terminals B1-B20, B21-B50 and B51-B60.
By setting the delay time length to be not less than the maximum value of the download time lengths of the self-service terminals, each self-service terminal can have sufficient time to download required update data, and the number of the self-service terminals downloading the update data from the server at the same time can be controlled, so that the data transmission pressure of the server can be reduced, and the operation stability of the self-service terminals is integrally improved.
FIG. 6 is a block diagram of a system update apparatus of a self-service terminal in one embodiment. As shown in fig. 6, a system updating apparatus of a self-service terminal, which runs on a server as shown in fig. 2, includes:
an initial connection request receiving module 602, configured to receive an initial connection request sent by multiple self-service terminals, where the initial connection request includes a terminal identifier and a system number of each self-service terminal.
The number counting module 604 is configured to count, according to the system number, self-service terminals of the system and the number of the self-service terminals that need to be updated.
And the update data query module 606 is used for querying update data corresponding to the self-service terminal of the system needing to be updated.
The update time calculation module 608 is configured to allocate a corresponding delay time to each self-service terminal that needs to update the system according to the number of the self-service terminals that need to update the system and the update data; and calculating the updating time of each self-service terminal needing to update the system according to the delay time.
And the system updating module 610 is used for controlling the self-service terminal needing to update the system to download and update the update data from the server when the update time is up.
In one embodiment, as shown in FIG. 7, the quantity statistics module 604 includes:
a detecting unit 702, configured to obtain a latest system number preset in a server; and detecting whether the system number of each self-service terminal is the same as the corresponding latest system number.
A determining unit 704, configured to determine that a self-service terminal needs to update the system if there is a self-service terminal whose system number is different from a corresponding latest system number.
A number calculating unit 706 for calculating the number of self-service terminals that need to update the system.
In one embodiment, as shown in fig. 8, another system updating apparatus of a self-service terminal is provided, the apparatus further comprising:
the system number updating module 612 is configured to update the system number of the self-service terminal of the system to a corresponding latest system number when the system update of the self-service terminal is completed.
In one embodiment, the update data query module 606 is further configured to determine the category of the self-service terminal that needs to update the system according to the system number, and classify the category; the server is queried for update data corresponding to different categories of self-service terminals.
The update time calculation module 608 is further configured to calculate download time durations required by different types of self-service terminals to download corresponding update data according to the size of the update data; and allocating delay time lengths to different types of self-service terminals according to the downloading time lengths.
In one embodiment, the delay time lengths allocated to the different classes of self-service terminals are the same delay time length or different delay time lengths; if the delay time lengths are the same, the same delay time length is not less than the maximum value of the download time lengths of the self-service terminals of different categories.
In one embodiment, as shown in FIG. 9, update data query module 606 includes:
a system sub-number obtaining unit 902, configured to obtain a plurality of system sub-numbers corresponding to system numbers; and acquiring a plurality of latest system sub-numbers corresponding to the latest system number.
A determining unit 904, configured to compare the system sub-number with the corresponding latest system sub-number, and determine the latest system sub-number different from the system sub-number.
The system module data query unit 906 is configured to query system module data corresponding to different latest system sub-numbers, where the system module data is update data corresponding to a self-service terminal that needs to update the system.
In one embodiment, the quantity statistics module 604 is further configured to detect whether the latest system number is a trial number, and detect whether the self-service terminal is a trial self-service terminal; and when the latest system number is the trial-run number and the self-service terminal is the trial-run self-service terminal, judging that the corresponding self-service terminal is the self-service terminal needing to update the system.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (8)

1. A system updating method of a self-service terminal is characterized by comprising the following steps:
the method comprises the steps that a server receives initial connection requests sent by a plurality of self-service terminals, wherein the initial connection requests comprise terminal identifications and system numbers of each self-service terminal, and latest system numbers are preset in the server;
counting the self-service terminals and the number of the self-service terminals needing to be updated in the plurality of self-service terminals according to the system number;
inquiring updating data corresponding to the self-service terminal of the system needing to be updated;
distributing corresponding delay time for each self-service terminal needing to update the system according to the number of the self-service terminals needing to update the system and the update data;
calculating the updating time of each self-service terminal needing to update the system according to the delay time;
when the updating time is up, controlling the self-service terminal of the system needing to be updated to download the updating data from the server and updating;
the step of counting the self-service terminals and the number thereof needing to be updated in the plurality of self-service terminals according to the system number comprises the following steps:
acquiring a latest system number preset in a server;
detecting whether the latest system number is a trial-run number or not, and detecting whether the self-service terminal is a trial-run self-service terminal or not, wherein the system number of each self-service terminal is the same as the corresponding latest system number or not;
if a self-service terminal with a system number different from the corresponding latest system number exists, the latest system number is a trial point number, and the self-service terminal is a trial point self-service terminal, judging that the self-service terminal is the self-service terminal needing to update the system;
and calculating the number of the self-service terminals needing to update the system.
2. The method of claim 1, further comprising:
and when the system updating of the self-service terminal needing to update the system is completed, updating the system number of the self-service terminal into the corresponding latest system number.
3. The method according to any one of claims 1 to 2, wherein the step of querying update data corresponding to the self-service terminal of the system requiring updating comprises:
determining the type of the self-service terminal needing to update the system according to the system number, and classifying;
querying, from the server, update data corresponding to different categories of self-service terminals;
the step of allocating corresponding delay time to each self-service terminal needing to update the system according to the number of the self-service terminals needing to update the system and the update data comprises the following steps:
according to the size of the updating data, calculating the downloading time length required by the self-service terminals of different types to download the corresponding updating data;
and distributing the delay time length for the self-service terminals of different types according to the downloading time length.
4. The method according to claim 3, wherein the delay times allocated to the different classes of self-service terminals are the same delay time or different delay times; and if the delay time lengths are the same, the same delay time length is not less than the maximum value of the download time lengths of the self-service terminals of different types.
5. A system updating apparatus of a self-service terminal, the apparatus comprising:
the system comprises an initial connection request receiving module, a connection request receiving module and a connection request sending module, wherein the initial connection request receiving module is used for receiving initial connection requests sent by a plurality of self-service terminals, and the initial connection requests comprise terminal identifications and system numbers of each self-service terminal;
the number counting module is used for counting the self-service terminals of the system and the number of the self-service terminals needing to be updated in the plurality of self-service terminals according to the system number;
the updating data query module is used for querying updating data corresponding to the self-service terminal of the system needing to be updated;
the updating time calculation module is used for distributing corresponding delay time for each self-service terminal of the system to be updated according to the number of the self-service terminals of the system to be updated and the updating data; calculating the updating time of each self-service terminal needing to update the system according to the delay time;
the system updating module is used for controlling the self-service terminal of the system needing to be updated to download the updating data from the server and update when the updating time is up;
the quantity counting module comprises:
the detection unit is used for acquiring the latest system number preset in the server; detecting whether the latest system number is a trial-run number or not, and detecting whether the self-service terminal is a trial-run self-service terminal or not, wherein the system number of each self-service terminal is the same as the corresponding latest system number or not;
the self-service terminal comprises a judging unit and a judging unit, wherein the judging unit is used for judging that the self-service terminal is a self-service terminal needing to update a system if the self-service terminal has a system number different from a corresponding latest system number, the latest system number is a trial number, and the self-service terminal is a trial self-service terminal;
and the quantity calculating unit is used for calculating the quantity of the self-service terminals needing to update the system.
6. The apparatus of claim 5, further comprising:
and the system number updating module is used for updating the system number of the self-service terminal to the corresponding latest system number when the system updating of the self-service terminal of which the system needs to be updated is completed.
7. The device according to any one of claims 5 to 6, wherein the update data query module is further configured to determine a category of the self-service terminal of the system to be updated according to the system number, and classify the category; querying, from the server, update data corresponding to different categories of self-service terminals;
the updating time calculation module is also used for calculating the downloading time length required by the self-service terminals of different types to download the corresponding updating data according to the size of the updating data; and distributing the delay time length for the self-service terminals of different types according to the downloading time length.
8. The apparatus of claim 7, wherein the delay times allocated to the different classes of self-service terminals are the same delay time or different delay times; and if the delay time lengths are the same, the same delay time length is not less than the maximum value of the download time lengths of the self-service terminals of different types.
CN201611005952.8A 2016-11-15 2016-11-15 System updating method and device of self-service terminal Active CN108073408B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611005952.8A CN108073408B (en) 2016-11-15 2016-11-15 System updating method and device of self-service terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611005952.8A CN108073408B (en) 2016-11-15 2016-11-15 System updating method and device of self-service terminal

Publications (2)

Publication Number Publication Date
CN108073408A CN108073408A (en) 2018-05-25
CN108073408B true CN108073408B (en) 2020-11-24

Family

ID=62162598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611005952.8A Active CN108073408B (en) 2016-11-15 2016-11-15 System updating method and device of self-service terminal

Country Status (1)

Country Link
CN (1) CN108073408B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108846951A (en) * 2018-05-31 2018-11-20 深圳友宝科斯科技有限公司 Automatic vending machine long-range control method, device, storage medium and system
CN108846952A (en) * 2018-05-31 2018-11-20 深圳友宝科斯科技有限公司 Automatic vending machine long-range control method, device, storage medium and system
CN109257219A (en) * 2018-09-21 2019-01-22 Oppo广东移动通信有限公司 Update method, device, storage medium and server
CN110750283B (en) * 2019-10-15 2023-05-02 青岛易触科技有限公司 Remote upgrade method and system for vending machine driver

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1763713A (en) * 2004-10-22 2006-04-26 华为技术有限公司 Mobile terminal software edition updating method
CN103580887A (en) * 2012-07-25 2014-02-12 中兴通讯股份有限公司 Clients, updating method and updating system
CN103955381A (en) * 2014-04-04 2014-07-30 京信通信系统(中国)有限公司 Method and system for management server to perform batch software update on terminal equipment
CN104717636A (en) * 2013-12-13 2015-06-17 成都鼎桥通信技术有限公司 Software upgrading method, terminal device and over-the-air download server

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634665B (en) * 2013-12-04 2017-03-08 乐视致新电子科技(天津)有限公司 A kind of version upgrading method and device
CN103685495B (en) * 2013-12-05 2019-08-16 金蝶软件(中国)有限公司 The upgrade method and system of software
US20160274887A1 (en) * 2015-03-19 2016-09-22 Zynga Inc. Modifying client device game applications

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1763713A (en) * 2004-10-22 2006-04-26 华为技术有限公司 Mobile terminal software edition updating method
CN103580887A (en) * 2012-07-25 2014-02-12 中兴通讯股份有限公司 Clients, updating method and updating system
CN104717636A (en) * 2013-12-13 2015-06-17 成都鼎桥通信技术有限公司 Software upgrading method, terminal device and over-the-air download server
CN103955381A (en) * 2014-04-04 2014-07-30 京信通信系统(中国)有限公司 Method and system for management server to perform batch software update on terminal equipment

Also Published As

Publication number Publication date
CN108073408A (en) 2018-05-25

Similar Documents

Publication Publication Date Title
CN108073408B (en) System updating method and device of self-service terminal
CN109242500B (en) Block chain transaction validity verification method and device and storage medium
CN107679718B (en) List allocation method, apparatus and computer-readable storage medium
CN109104336B (en) Service request processing method and device, computer equipment and storage medium
CN107889069B (en) Short message gateway selection method, device, server and readable storage medium
CN107404541B (en) Method and system for selecting neighbor node in peer-to-peer network transmission
CN109152061B (en) Channel allocation method, device, server and storage medium
CN112839067B (en) Data synchronization method and device
CN107819797B (en) Access request processing method and device
US20130311662A1 (en) Cloud resource allocation system and method
CN113127168A (en) Service distribution method, system, device, server and medium
CN112016030B (en) Message pushing method, device, server and computer storage medium
CN110933178B (en) Method for adjusting node configuration in cluster system and server
CN113055877A (en) Cloud card distribution method and device, electronic equipment and storage medium
CN109697117B (en) Terminal control method, terminal control device and computer-readable storage medium
CN113377817A (en) Data processing method, system, device and storage medium
CN110830978B (en) User data processing method, device, equipment and medium based on region
CN110209166B (en) Cooperative control method and device for multiple mobile service robots and storage medium
CN116703071A (en) Resource sharing method, device and equipment and storage medium
CN111343101B (en) Server current limiting method, device, electronic equipment and readable storage medium
CN108173689B (en) Output system of load balancing data
CN111784461A (en) Order processing method and device, electronic equipment and storage medium
CN106507224B (en) Method and related device for acquiring target file
CN107094297B (en) Equipment identification method and device
CN110750551A (en) Identity recognition method and device

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