CN110245016B - Data processing method, system, device and terminal equipment - Google Patents

Data processing method, system, device and terminal equipment Download PDF

Info

Publication number
CN110245016B
CN110245016B CN201910386333.5A CN201910386333A CN110245016B CN 110245016 B CN110245016 B CN 110245016B CN 201910386333 A CN201910386333 A CN 201910386333A CN 110245016 B CN110245016 B CN 110245016B
Authority
CN
China
Prior art keywords
data
access controller
server
sending
receiving
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
CN201910386333.5A
Other languages
Chinese (zh)
Other versions
CN110245016A (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.)
Xiamen Entropy Technology Co Ltd
Original Assignee
Xiamen Entropy Technology 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 Xiamen Entropy Technology Co Ltd filed Critical Xiamen Entropy Technology Co Ltd
Priority to CN201910386333.5A priority Critical patent/CN110245016B/en
Publication of CN110245016A publication Critical patent/CN110245016A/en
Application granted granted Critical
Publication of CN110245016B publication Critical patent/CN110245016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/20Individual registration on entry or exit involving the use of a pass
    • G07C9/27Individual registration on entry or exit involving the use of a pass with central registration
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/30Individual registration on entry or exit not involving the use of a pass
    • G07C9/38Individual registration on entry or exit not involving the use of a pass with central registration

Abstract

The invention is suitable for the technical field of computers, and provides a data processing method, a system, a device, a terminal device and a computer readable storage medium, wherein the data processing method is used for a main control device and comprises the following steps: receiving a data processing instruction sent by a server; processing pre-stored specified data according to the data processing instruction, wherein the pre-stored specified data is acquired from the server; and sending the processed specified data to the access controller. By the method, the data processing pressure and the data issuing pressure of the server can be reduced.

Description

Data processing method, system, device and terminal equipment
Technical Field
The present invention belongs to the field of computer technologies, and in particular, to a data processing method, system, device, terminal device, and computer-readable storage medium.
Background
Servers, also known as servers, are devices that provide computing services.
In the field of security control, the general data issuing process is as follows: the server processes data according to the data processing instruction, then directly sends the processed data to the access controllers, and if a plurality of access controllers request data to be issued, the server needs to send the processed data to the corresponding access controllers for many times. Therefore, the data processing pressure and the data issuing pressure of the server are overlarge.
Disclosure of Invention
In view of this, embodiments of the present invention provide a data processing method, system, apparatus, terminal device and computer readable storage medium, so as to solve the problem that data processing pressure and data issuing pressure of a server in the prior art are too large.
A first aspect of an embodiment of the present invention provides a data processing method, where the data processing method is used for a master control device, and includes:
receiving a data processing instruction sent by a server;
processing pre-stored specified data according to the data processing instruction, wherein the pre-stored specified data is acquired from the server;
and sending the processed specified data to the access controller.
A second aspect of an embodiment of the present invention provides a data processing system, including: the system comprises a server, a master control device and an access controller;
the server is used for sending a data processing instruction to the main control equipment;
the main control equipment is used for receiving a data processing instruction sent by the server, processing pre-stored specified data according to the data processing instruction, acquiring the pre-stored specified data from the server, and sending the processed specified data to the access controller;
the entrance guard controller is used for receiving the processed specified data.
A third aspect of an embodiment of the present invention provides a data processing apparatus, including:
the receiving unit is used for receiving a data processing instruction sent by the server;
the processing unit is used for processing pre-stored specified data according to the data processing instruction, and the pre-stored specified data is acquired from the server;
and the sending unit is used for sending the processed specified data to the access controller.
A fourth aspect of an embodiment of the present invention provides a terminal device, including: a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the data processing method as described when executing the computer program.
A fifth aspect of embodiments of the present invention provides a computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the steps of the data processing method as described.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: the data processing method is used for the main control device, and comprises the steps of receiving a data processing instruction sent by a server, processing pre-stored specified data according to the data processing instruction, obtaining the pre-stored specified data from the server, and sending the processed specified data to the access controller. The main control equipment can process the pre-stored designated data according to the data processing instruction and then send the processed designated data to the access controller, so that the server is not required to process the designated data and send the processed designated data, and the data processing pressure and the data sending pressure of the server are greatly reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present invention;
FIG. 2 is a flow diagram of a data processing system according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples. It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In particular implementations, the terminal devices described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the devices described above are not portable communication devices, but rather are desktop computers having touch-sensitive surfaces (e.g., touch screen displays and/or touch pads).
In the discussion that follows, a terminal device that includes a display and a touch-sensitive surface is described. However, it should be understood that the terminal device may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The terminal device supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the terminal device may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
The first embodiment is as follows:
fig. 1 shows a schematic flowchart of a data processing method provided in an embodiment of the present application, where the data processing method is used for a master device, and details are as follows:
in step S11, a data processing instruction sent by the server is received.
Optionally, the data processing instructions include, but are not limited to: data adding instructions, data deleting instructions, data modifying instructions and data inquiring instructions.
Optionally, the step S11 includes: and receiving a data processing instruction sent by the server according to a transmission Control Protocol/Internet Protocol (TCP/IP).
Optionally, before the step S11, the method includes: receiving an identity registration request sent by an access controller; sending an authority endowing request to a server according to the identity registration request; receiving an authority endowing result sent by the server; and determining an identity registration result according to the permission giving result, and sending the identity registration result to the access controller.
Wherein the identity registration result comprises: identity registration pass or identity registration fail.
Specifically, an identity registration request sent by an access controller is received according to a TCP/IP network protocol or RS485, identity information of the access controller is determined according to the identity registration request, an authority endowing request is sent to a server according to the TCP/IP network protocol and the identity information of the access controller, an authority endowing result sent by the server is received, an identity registration result is determined according to the authority endowing result, and the identity registration result is sent to the access controller.
Optionally, the permission assignment result includes: the permission assignment is successful or the permission assignment is failed, and correspondingly, the determining the identity registration result according to the permission assignment result comprises: judging whether the permission endowing result is successful in permission endowing, and if the permission endowing result is successful in permission endowing, determining the identity registration result as identity registration pass; and if the permission endowing result is that permission endowing fails, determining the identity registration result as that identity registration fails.
The identity registration result can be determined according to the permission giving result, so that the subsequent main control equipment can perform data interaction with the access controller through which the identity registration passes, and the security of the data interaction is improved.
Optionally, after the sending the identity registration result to the access controller: receiving data uploaded by the access controller; and sending an uploading result corresponding to the data uploaded by the access controller to the access controller.
Specifically, if a data receiving request sent by the access controller is detected, whether an identity registration result corresponding to the access controller passes the identity registration is judged according to the data receiving request, if so, the data uploaded by the access controller is received according to a TCP/IP network protocol or RS485, and an uploading result corresponding to the data uploaded by the access controller is sent to the access controller.
After receiving the permission giving result sent by the server, if the server is abnormal, the main control equipment can receive data uploaded by the access controller registered through the identity so as to ensure normal operation of partial functions of the access controller, and after the server recovers to be normal, the main control equipment uploads the received data to the server, so that the data of the access controller is stored in time.
In some embodiments, after the receiving the data uploaded by the access controller, the method further comprises: and immediately sending the data uploaded by the access controller to the server, and receiving a server receiving result sent by the server.
Because the data uploaded by the access controller can be immediately sent to the server, the data storage pressure of the main control equipment is greatly relieved.
In some embodiments, after the receiving the data uploaded by the access controller, the method further comprises: judging whether the main control equipment is in an idle state currently; and if the master control equipment is in an idle state currently, sending the data uploaded by the access controller to the server.
The idle state refers to a state in which a ratio of occupied databases of the master control device is smaller than a preset database occupation threshold and a ratio of occupied Central Processing Units (CPUs) is smaller than a preset CPU occupation threshold.
Specifically, whether the main control device is in an idle state at present is judged, if the main control device is in the idle state at present, a data part which is not sent to the server in data uploaded by the access controller is determined, the data part is sent to the server, and a server receiving result corresponding to the data part sent by the server is received.
Because when master control equipment is in idle state, just will the data transmission that access control ware uploaded to the server, so, just alleviateed master control equipment and uploaded the burden of data, improved the rationality that master control equipment utilized equipment resource.
Optionally, before the determining whether the master device is currently in the idle state, the method includes: acquiring the equipment resource use information of the current master control equipment; correspondingly, the judging whether the main control device is currently in an idle state includes: and judging whether the main control equipment is in an idle state currently or not according to the equipment use information.
Wherein the device resource usage information includes: database usage information and CPU usage information.
Specifically, querying the database usage information and the CPU usage information of the current master control device, and correspondingly, the determining whether the master control device is currently in an idle state includes: and judging whether the main control equipment is in an idle state currently or not according to the database use information and the CPU use information.
Optionally, the determining, by the database usage information, whether the main control device is currently in an idle state according to the database usage information and the CPU usage information includes: determining the occupied proportion of the database of the current master control equipment, and judging whether the occupied proportion of the database is smaller than a preset database occupation threshold value or not; determining the occupied proportion of the CPU of the main control equipment at present, judging whether the occupied proportion of the CPU is smaller than a preset CPU occupation threshold value or not, and if the occupied proportion of the database is smaller than the preset database occupation threshold value and the occupied proportion of the CPU is smaller than the preset CPU occupation threshold value, judging that the main control equipment is in an idle state at present.
And step S12, processing the pre-stored specified data according to the data processing instruction, wherein the pre-stored specified data is acquired from the server.
For example, if the data processing instruction is a data adding instruction, the data to be added sent by the receiving server is acquired, and the data to be added is added to the pre-stored designated data according to the data adding instruction.
Optionally, the pre-stored specified data includes but is not limited to: pre-stored user information, pre-stored biometric information.
Specifically, the step S12 includes: and processing pre-stored specified data according to the data processing instruction, assembling the specified data in a data packet mode, and sending a processing result corresponding to the specified data to the server.
Optionally, the data processing instruction is specifically a data modification instruction, and correspondingly, the step S12 includes: and extracting keywords corresponding to the data modification instruction, modifying pre-stored specified data according to the keywords, assembling the modified specified data into a data packet form, and sending the assembled specified data to the server.
And step S13, sending the processed specified data to the access controller.
The number of the access controllers is equal to or larger than one.
Specifically, the identity registration result is determined to be the access controller that the identity registration passes, and the processed specified data is sent to the access controller that the identity registration result passes according to a TCP/IP network protocol or RS 485.
Optionally, before the step S13, the method includes: receiving a data downloading instruction sent by an access controller; correspondingly, the appointed data after will handling include to access controller: and sending the processed specified data corresponding to the data downloading instruction to the access controller.
Specifically, receive the data download instruction that access controller sent, correspondingly, appointed data send to access controller after will handling includes: and judging whether the identity registration result corresponding to the access controller passes the identity registration according to the data receiving request, if so, sending the processed specified data corresponding to the data downloading instruction to the access controller, and receiving the access controller receiving result sent by the access controller.
In the embodiment of the invention, the data processing method is used for the main control equipment, and the data processing instruction sent by the server is received, the pre-stored specified data is processed according to the data processing instruction, and the processed specified data is sent to the access controller. The main control equipment can process the pre-stored designated data according to the data processing instruction and then send the processed designated data to the access controller, so that the server is not required to process the designated data and send the processed designated data, and the data processing pressure and the data sending pressure of the server are greatly reduced.
Example two:
fig. 2 shows a schematic flow chart of a data processing system provided in an embodiment of the present application, which is detailed as follows:
the data processing system includes: server 21, main control equipment 22 and access controller 23.
And the server 21 is configured to send a data processing instruction to the main control device 22.
Optionally, the data processing instructions include, but are not limited to: data adding instructions, data deleting instructions, data modifying instructions and data inquiring instructions.
Optionally, when the server 21 executes the data processing instruction sent to the main control device 22, the server is specifically configured to: the data processing instruction is sent to the main Control device 22 according to a transmission Control Protocol/Internet Protocol (TCP/IP).
And the main control device 22 is configured to receive the data processing instruction, process pre-stored specified data according to the data processing instruction, acquire the pre-stored specified data from the server 21, and send the processed specified data to the access controller 23.
The server 21 is also configured to: before the main control device 22 processes the pre-stored designated data according to the data processing instruction, the designated data is sent to the main control device 22.
Optionally, when the main control device 22 executes the data processing instruction, it is specifically configured to: and receiving the data processing instruction according to a TCP/IP network protocol.
Optionally, before executing the data processing instruction, the main control device 22 is specifically configured to: receiving an identity registration request sent by the access controller 23; sending a permission granting request to the server 21 according to the identity registration request; receiving the authority giving result sent by the server 21; and determining an identity registration result according to the permission giving result, and sending the identity registration result to the access controller 23.
Wherein the identity registration result comprises: identity registration pass or identity registration fail.
Optionally, the master control device 22 executes the identity registration request sent by the receiving access controller 23; sending an authority endowing request to the server 21 according to the identity registration request, receiving an authority endowing result sent by the server 21, determining an identity registration result according to the authority endowing result, and sending the identity registration result to the access controller 23, wherein the authority endowing request is specifically used for: receiving an identity registration request sent by an access controller 23 according to a TCP/IP network protocol or RS485, determining identity information of the access controller 23 according to the identity registration request, sending an authority endowing request to a server 21 according to the TCP/IP network protocol and the identity information of the access controller 23, receiving an authority endowing result sent by the server 21, determining the identity registration result according to the authority endowing result, and sending the identity registration result to the access controller 23.
The main control device 22 can determine the identity registration result according to the permission giving result, so that the subsequent main control device can perform data interaction with the access controller through which the identity registration passes, and the security of the data interaction is improved.
Optionally, after the master device 22 performs the sending of the identity registration result to the access controller 23, the master device is configured to: receiving data uploaded by the access controller 23; and sending an uploading result corresponding to the data uploaded by the access controller 23 to the access controller 23.
Optionally, the main control device 22 executes the receiving of the data uploaded by the access controller 23, and when the uploading result corresponding to the data uploaded by the access controller 23 is sent to the access controller 23, the main control device is specifically configured to: if a data receiving request sent by the access controller 23 is detected, whether an identity registration result corresponding to the access controller 23 passes the identity registration is judged according to the data receiving request, if so, the data uploaded by the access controller 23 is received according to a TCP/IP network protocol or RS485, and an uploading result corresponding to the data uploaded by the access controller 23 is sent to the access controller 23.
After the master control equipment receives the transmission permission giving result sent by the server, if the server is abnormal, the master control equipment can receive data uploaded by the access controller registered through identity so as to ensure normal operation of partial functions of the access controller, and after the server recovers to be normal, the master control equipment uploads the received data to the server, so that the data of the access controller is stored in time.
In some embodiments, after the master control device 22 performs the receiving of the data uploaded by the access controller 23, the master control device 22 is configured to: the data uploaded by the access controller 23 is immediately sent to the server 21, and the server receiving result sent by the server 21 is received.
Because the master control equipment can immediately send the data uploaded by the access controller to the server, the data storage pressure of the master control equipment is greatly relieved.
In some embodiments, after the master control device 22 performs the receiving of the data uploaded by the access controller 23, the master control device 22 is configured to: determining whether the master device 22 is currently in an idle state; if the main control device 22 is currently in the idle state, the data uploaded by the access controller 23 is sent to the server 21.
The idle state refers to a state in which a ratio of occupied databases of the master control device is smaller than a preset database occupation threshold and a ratio of occupied Central Processing Units (CPUs) is smaller than a preset CPU occupation threshold.
Optionally, the main control device 22 performs the determining whether the main control device 22 is currently in an idle state; if the main control device 22 is currently in the idle state, when the data uploaded by the access controller 23 is sent to the server 21, the main control device is specifically configured to: determining whether the master device 22 is currently in an idle state; if the main control device 22 is currently in an idle state, determining a data part which is not sent to the server 21 in the data uploaded by the access controller 23, sending the data part to the server 21, and receiving a server receiving result corresponding to the data part sent by the server 21.
Because when the main control equipment is in an idle state, the main control equipment sends the data uploaded by the access controller to the server, the burden of the main control equipment on uploading the data is reduced, and the rationality of the main control equipment for utilizing equipment resources is improved.
Optionally, before performing the determining whether the master device 22 is currently in the idle state, the master device 22 is configured to: acquiring the device resource use information of the current master control device 22; correspondingly, the determining whether the master device 22 is currently in the idle state includes: and judging whether the main control device 22 is in an idle state currently according to the device use information. Wherein the device resource usage information includes: database usage information and CPU usage information.
Specifically, when the main control device 22 performs the above-mentioned obtaining of the device resource usage information of the current main control device 22, and determines whether the main control device 22 is currently in the idle state according to the device usage information, the method includes: querying the database usage information and the CPU usage information of the current main control device 22, and correspondingly, the determining whether the main control device 22 is currently in the idle state includes: and judging whether the main control device 22 is in an idle state currently according to the database use information and the CPU use information.
Optionally, the database usage information is a ratio of occupied databases, the CPU usage information is a ratio of occupied CPUs, and correspondingly, when the main control device 22 executes the judgment of whether the main control device 22 is currently in the idle state according to the database usage information and the CPU usage information, the method specifically includes: determining the occupied proportion of the database of the current master control device 22, and judging whether the occupied proportion of the database is smaller than a preset database occupation threshold value; determining the occupied proportion of the CPU of the current main control device 22, determining whether the occupied proportion of the CPU is smaller than a preset CPU occupation threshold, and if the occupied proportion of the database is smaller than the preset database occupation threshold and the occupied proportion of the CPU is smaller than the preset CPU occupation threshold, determining that the main control device 22 is currently in an idle state.
Optionally, when the main control device 22 executes the processing of the pre-stored specified data according to the data processing instruction, the main control device is specifically configured to: and processing the pre-stored specified data according to the data processing instruction, assembling the specified data in a data packet mode, and sending a processing result corresponding to the specified data to the server 21.
Optionally, the data processing instruction is specifically a data modification instruction, and correspondingly, when the main control device 22 executes the processing on the pre-stored specified data according to the data processing instruction, the main control device is specifically configured to: extracting keywords corresponding to the data modification instruction, modifying pre-stored specified data according to the keywords, assembling the modified specified data into a data packet form, and sending the assembled specified data to the server 21.
Optionally, when the main control device 22 executes the sending of the processed specified data to the access controller 23, the main control device is specifically configured to: and determining that the identity registration result is the access controller 23 passing the identity registration, and sending the processed specified data to the access controller 23 passing the identity registration according to a TCP/IP network protocol or RS 485.
Optionally, before the main control device 22 performs the sending of the processed specific data to the access controller 23, the main control device is configured to: receiving a data downloading instruction sent by the access controller 23; correspondingly, the sending the processed specified data to the access controller 23 includes: and sending the processed specified data corresponding to the data downloading instruction to the access controller 23.
And the access controller 23 is used for receiving the processed specified data.
The number of the access controllers 23 is equal to or greater than one.
Optionally, the access controller 23 is specifically configured to, when executing the receiving of the processed specified data: and receiving the processed specified data, determining a receiving result of the access controller 23 corresponding to the processed specified data, and sending the receiving result of the access controller to the main control device 22.
In the embodiment of the invention, the data processing system comprises a server, a main control device and an access controller, wherein the server is used for sending a data processing instruction to the main control device, the main control device is used for receiving the data processing instruction, processing pre-stored specified data according to the data processing instruction, the pre-stored specified data is obtained from the server, the processed specified data is sent to the access controller, and the access controller is used for receiving the processed specified data. The main control equipment can process the pre-stored designated data according to the data processing instruction and then send the processed designated data to the access controller, so that the server is not required to process the designated data and send the processed designated data, and the data processing pressure and the data sending pressure of the server are greatly reduced.
Example three:
corresponding to the above embodiments, fig. 3 shows a schematic structural diagram of a data processing apparatus provided in an embodiment of the present application, and for convenience of description, only the parts related to the embodiment of the present application are shown.
The data processing apparatus includes: a receiving unit 31, a processing unit 32, and a transmitting unit 33.
The receiving unit 31 is configured to receive a data processing instruction sent by the server.
Optionally, the data processing instructions include, but are not limited to: data adding instructions, data deleting instructions, data modifying instructions and data inquiring instructions.
Optionally, the receiving unit 31 is specifically configured to: and receiving a data processing instruction sent by the server according to the TCP/IP network protocol.
Optionally, the data processing apparatus further comprises: and an identity registration unit.
The identity registration unit is used for: before the receiving unit 31 executes the data processing instruction sent by the receiving server, receiving an identity registration request sent by an access controller; sending an authority endowing request to a server according to the identity registration request; receiving an authority endowing result sent by the server; and determining an identity registration result according to the permission giving result, and sending the identity registration result to the access controller.
Wherein the identity registration result comprises: identity registration pass or identity registration fail.
Optionally, the identity registration unit is specifically configured to: receiving an identity registration request sent by an access controller according to a TCP/IP network protocol or RS485, determining identity information of the access controller according to the identity registration request, sending an authority endowing request to a server according to the TCP/IP network protocol and the identity information of the access controller, receiving an authority endowing result sent by the server, determining the identity registration result according to the authority endowing result, and sending the identity registration result to the access controller.
Optionally, the permission assignment result includes: correspondingly, when the identity registration unit executes the identity registration result determined according to the authority assignment result, the identity registration unit is specifically configured to: judging whether the permission endowing result is successful in permission endowing, and if the permission endowing result is successful in permission endowing, determining the identity registration result as identity registration pass; and if the permission endowing result is that permission endowing fails, determining the identity registration result as that identity registration fails.
The identity registration result can be determined according to the permission giving result, so that the subsequent main control equipment can perform data interaction with the access controller through which the identity registration passes, and the security of the data interaction is improved.
Optionally, the data processing apparatus further comprises: and an upload result sending unit.
The upload result sending unit is configured to: after the identity registration unit executes the sending of the identity registration result to the access controller, receiving data uploaded by the access controller; and sending an uploading result corresponding to the data uploaded by the access controller to the access controller.
Optionally, the upload result sending unit is specifically configured to: the identity registration unit executes the identity registration result and sends the identity registration result to the access controller, if a data receiving request sent by the access controller is detected, whether the identity registration result corresponding to the access controller passes the identity registration is judged according to the data receiving request, if yes, the data uploaded by the access controller is received according to a TCP/IP network protocol or RS485, and the uploading result corresponding to the data uploaded by the access controller is sent to the access controller.
After receiving the permission giving result sent by the server, if the server is abnormal, the main control equipment can receive data uploaded by the access controller registered through the identity so as to ensure normal operation of partial functions of the access controller, and after the server recovers to be normal, the main control equipment uploads the received data to the server, so that the data of the access controller is stored in time.
Optionally, the data processing apparatus further comprises: and a data transmitting unit.
In some embodiments, the data transmitting unit is configured to: and after the uploading result sending unit executes the receiving of the data uploaded by the access controller, immediately sending the data uploaded by the access controller to the server, and receiving a server receiving result sent by the server.
Because the data uploaded by the access controller can be immediately sent to the server, the data storage pressure of the main control equipment is greatly relieved.
In some embodiments, the data transmitting unit is configured to: after the uploading result sending unit executes the receiving of the data uploaded by the access controller, judging whether the main control equipment is in an idle state currently; and if the master control equipment is in an idle state currently, sending the data uploaded by the access controller to the server.
The idle state refers to a state in which a ratio of occupied databases of the master control device is smaller than a preset database occupation threshold and a ratio of occupied Central Processing Units (CPUs) is smaller than a preset CPU occupation threshold.
Because when master control equipment is in idle state, just will the data transmission that access control ware uploaded to the server, so, just alleviateed master control equipment and uploaded the burden of data, improved the rationality that master control equipment utilized equipment resource.
Optionally, the data processing apparatus further comprises: a device resource usage information acquisition unit.
The device resource usage information acquisition unit is configured to: before the data sending unit executes the judgment of whether the main control equipment is in an idle state currently, acquiring equipment resource use information of the current main control equipment; correspondingly, when the data sending unit performs the judgment whether the main control device is currently in the idle state, the data sending unit is specifically configured to: and judging whether the main control equipment is in an idle state currently or not according to the equipment use information.
Wherein the device resource usage information includes: database usage information and CPU usage information.
And the processing unit 32 is configured to process pre-stored specified data according to the data processing instruction, where the pre-stored specified data is obtained from the server.
Optionally, the pre-stored specified data includes but is not limited to: pre-stored user information, pre-stored biometric information.
The processing unit 32 is specifically configured to: and processing pre-stored specified data according to the data processing instruction, assembling the specified data in a data packet mode, and sending a processing result corresponding to the specified data to the server.
Optionally, the data processing instruction is specifically a data modification instruction, and correspondingly, when the processing unit 32 executes the processing on the pre-stored specified data according to the data processing instruction, the processing unit is specifically configured to: and extracting keywords corresponding to the data modification instruction, modifying pre-stored specified data according to the keywords, assembling the modified specified data into a data packet form, and sending the assembled specified data to the server.
And a sending unit 33, configured to send the processed specified data to the access controller.
The number of the access controllers is equal to or larger than one.
The sending unit 33 is specifically configured to: and determining that the identity registration result is the access controller passing the identity registration, and sending the processed specified data to the access controller passing the identity registration result according to a TCP/IP network protocol or RS 485.
Optionally, the data processing apparatus further comprises: and a data download instruction receiving unit.
The data downloading instruction receiving unit is used for: before the sending unit 33 executes the processed designated data to be sent to the access controller, a data download instruction sent by the access controller is received, and correspondingly, the sending unit 33 is executing when the processed designated data is sent to the access controller, and is specifically used for: and sending the processed specified data corresponding to the data downloading instruction to the access controller.
In the embodiment of the invention, the data processing instruction sent by the server is received, the pre-stored specified data is processed according to the data processing instruction, and the processed specified data is sent to the access controller. The main control equipment can process the pre-stored designated data according to the data processing instruction and then send the processed designated data to the access controller, so that the server is not required to process the designated data and send the processed designated data, and the data processing pressure and the data sending pressure of the server are greatly reduced.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Example four:
fig. 4 is a schematic diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 4, the terminal device 4 of this embodiment includes: a processor 40, a memory 41 and a computer program 42 stored in said memory 41 and executable on said processor 40. The processor 40, when executing the computer program 42, implements the steps in the various data processing method embodiments described above, such as the steps S11-S13 shown in fig. 1. Alternatively, the processor 40, when executing the computer program 42, implements the functions of the units in the device embodiments described above, such as the functions of the units 31 to 33 shown in fig. 3.
Illustratively, the computer program 42 may be partitioned into one or more modules/units that are stored in the memory 41 and executed by the processor 40 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 42 in the terminal device 4. For example, the computer program 42 may be divided into a receiving unit, a processing unit, and a transmitting unit, and the specific functions of each unit are as follows:
and the receiving unit is used for receiving the data processing instruction sent by the server.
And the processing unit is used for processing the pre-stored specified data according to the data processing instruction, and the pre-stored specified data is acquired from the server.
And the sending unit is used for sending the processed specified data to the access controller.
The terminal device 4 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is merely an example of a terminal device 4 and does not constitute a limitation of terminal device 4 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the terminal device may also include input-output devices, network access devices, buses, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the terminal device 4, such as a hard disk or a memory of the terminal device 4. The memory 41 may also be an external storage device of the terminal device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal device 4. The memory 41 is used for storing the computer program and other programs and data required by the terminal device. The memory 41 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (8)

1. A data processing method is used for a main control device, and comprises the following steps:
receiving a data processing instruction sent by a server, wherein the data processing instruction comprises: a data adding instruction, a data deleting instruction, a data modifying instruction and a data inquiring instruction;
processing pre-stored specified data according to the data processing instruction, wherein the pre-stored specified data is acquired from the server;
will handle appointed data transmission after to access control ware, specifically include: determining that the identity registration result is the access controller passing the identity registration, and sending the processed specified data to the access controller passing the identity registration result;
after sending the identity registration result to the access controller: receiving data uploaded by the access controller;
sending an uploading result corresponding to the data uploaded by the access controller to the access controller;
judging whether the main control equipment is in an idle state currently, wherein the idle state refers to a state that the occupied proportion of a database of the main control equipment is smaller than a preset database occupied threshold value and the occupied proportion of a CPU is smaller than a preset CPU occupied threshold value;
if the main control equipment is in an idle state currently, determining a data part which is not sent to the server in the data uploaded by the access controller, sending the data part to the server, and receiving a server receiving result corresponding to the data part sent by the server.
2. The data processing method of claim 1, wherein prior to receiving the data processing instruction sent by the server, comprising:
receiving an identity registration request sent by an access controller;
sending an authority endowing request to a server according to the identity registration request;
receiving an authority endowing result sent by the server;
and determining an identity registration result according to the permission giving result, and sending the identity registration result to the access controller.
3. The data processing method of claim 1, wherein before the determining whether the master device is currently in an idle state, comprising:
acquiring the equipment resource use information of the current master control equipment;
correspondingly, the judging whether the main control device is currently in an idle state includes:
and judging whether the main control equipment is in an idle state currently or not according to the equipment use information.
4. The data processing method of claim 1, wherein before sending the processed specific data to the access controller, the method comprises:
receiving a data downloading instruction sent by an access controller;
correspondingly, the appointed data after will handling include to access controller:
and sending the processed specified data corresponding to the data downloading instruction to the access controller.
5. A data processing system is characterized by comprising a server, a master control device and an access controller;
the server is configured to send a data processing instruction to the master control device, where the data processing instruction includes: a data adding instruction, a data deleting instruction, a data modifying instruction and a data inquiring instruction;
the main control equipment is used for receiving a data processing instruction sent by the server, processing pre-stored specified data according to the data processing instruction, acquiring the pre-stored specified data from the server, and sending the processed specified data to the access controller, and specifically comprises: determining that the identity registration result is the access controller passing the identity registration, and sending the processed specified data to the access controller passing the identity registration result; after the master control equipment executes the sending of the identity registration result to the access controller, the master control equipment is used for: receiving data uploaded by an access controller; sending an uploading result corresponding to the data uploaded by the access controller to the access controller; after the master control equipment executes the receiving of the data uploaded by the access controller, the master control equipment is used for: judging whether the main control equipment is in an idle state currently, wherein the idle state refers to a state that the occupied proportion of a database of the main control equipment is smaller than a preset database occupied threshold value and the occupied proportion of a CPU is smaller than a preset CPU occupied threshold value; if the master control equipment is in an idle state currently, determining a data part which is not sent to a server in the data uploaded by the access controller, sending the data part to the server, and receiving a server receiving result corresponding to the data part sent by the server;
the entrance guard controller is used for receiving the processed specified data.
6. A data processing apparatus, comprising:
a receiving unit, configured to receive a data processing instruction sent by a server, where the data processing instruction includes: a data adding instruction, a data deleting instruction, a data modifying instruction and a data inquiring instruction;
the processing unit is used for processing pre-stored specified data according to the data processing instruction, and the pre-stored specified data is acquired from the server;
the sending unit is used for sending the processed designated data to the access controller, and specifically comprises: determining that the identity registration result is the access controller passing the identity registration, and sending the processed specified data to the access controller passing the identity registration result;
the uploading result sending unit is used for receiving the data uploaded by the access controller after the identity registration unit executes sending of the identity registration result to the access controller; sending an uploading result corresponding to the data uploaded by the access controller to the access controller;
the data sending unit is used for judging whether the main control equipment is in an idle state at present after the uploading result sending unit executes the receiving of the data uploaded by the access controller, wherein the idle state refers to a state that the occupied proportion of a database of the main control equipment is smaller than a preset database occupied threshold value and the occupied proportion of a CPU is smaller than a preset CPU occupied threshold value; if the main control equipment is in an idle state currently, determining a data part which is not sent to the server in the data uploaded by the access controller, sending the data part to the server, and receiving a server receiving result corresponding to the data part sent by the server.
7. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 4 when executing the computer program.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN201910386333.5A 2019-05-09 2019-05-09 Data processing method, system, device and terminal equipment Active CN110245016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910386333.5A CN110245016B (en) 2019-05-09 2019-05-09 Data processing method, system, device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910386333.5A CN110245016B (en) 2019-05-09 2019-05-09 Data processing method, system, device and terminal equipment

Publications (2)

Publication Number Publication Date
CN110245016A CN110245016A (en) 2019-09-17
CN110245016B true CN110245016B (en) 2021-09-14

Family

ID=67883987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910386333.5A Active CN110245016B (en) 2019-05-09 2019-05-09 Data processing method, system, device and terminal equipment

Country Status (1)

Country Link
CN (1) CN110245016B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112929191B (en) * 2019-12-05 2023-08-15 马上消费金融股份有限公司 Service monitoring method, system, related equipment and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103516794A (en) * 2013-09-24 2014-01-15 武汉誉德合同能源管理有限公司 Distributed-server network architecture and achieving method thereof
CN103530314A (en) * 2013-07-26 2014-01-22 苏州亿倍信息技术有限公司 Data processing method and system
CN106960491A (en) * 2017-04-25 2017-07-18 上海亦源智能科技有限公司 Mobile fingerprint access control system and control method
CN108259460A (en) * 2017-11-24 2018-07-06 新华三信息安全技术有限公司 Apparatus control method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7895371B2 (en) * 2007-03-09 2011-02-22 Kabushiki Kaisha Toshiba System and method for on demand logging of document processing device status data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530314A (en) * 2013-07-26 2014-01-22 苏州亿倍信息技术有限公司 Data processing method and system
CN103516794A (en) * 2013-09-24 2014-01-15 武汉誉德合同能源管理有限公司 Distributed-server network architecture and achieving method thereof
CN106960491A (en) * 2017-04-25 2017-07-18 上海亦源智能科技有限公司 Mobile fingerprint access control system and control method
CN108259460A (en) * 2017-11-24 2018-07-06 新华三信息安全技术有限公司 Apparatus control method and device

Also Published As

Publication number Publication date
CN110245016A (en) 2019-09-17

Similar Documents

Publication Publication Date Title
CN110225104B (en) Data acquisition method and device and terminal equipment
CN108038112B (en) File processing method, mobile terminal and computer readable storage medium
CN107390983B (en) Service instruction execution method, client and storage medium
CN110244963B (en) Data updating method and device and terminal equipment
CN109309735B (en) Connection processing method, server, system and storage medium
CN113468515A (en) User identity authentication method and device, electronic equipment and storage medium
CN107317928B (en) Information processing method, mobile terminal and computer readable storage medium
CN110417789B (en) Server connection method, electronic device, system and medium
CN109657485B (en) Authority processing method and device, terminal equipment and storage medium
CN111142799A (en) Distributed storage method and device, network node and storage medium
CN110245016B (en) Data processing method, system, device and terminal equipment
CN107679222B (en) Picture processing method, mobile terminal and computer readable storage medium
CN109271266B (en) File transmission method and device and terminal equipment
CN109104481B (en) File integrity detection method, file integrity detection device and terminal equipment
CN109298956B (en) File transmission method and device and terminal equipment
CN108536512B (en) Interface switching method and device and terminal equipment
CN108521460B (en) Information pushing method and device, mobile terminal and computer readable storage medium
CN110874729A (en) Switching method and switching device for electronic red packet identification strategy and mobile terminal
CN107609119B (en) File processing method, mobile terminal and computer readable storage medium
CN110492935B (en) Data processing system, method and device and terminal equipment
CN109799715B (en) Data receiving method, device and terminal equipment
CN113360916A (en) Risk detection method, device, equipment and medium for application programming interface
CN111614675B (en) Request execution method, device, system and medium
CN111352357B (en) Robot control method and device and terminal equipment
CN110007878B (en) Memory card processing method, memory card processing device and mobile terminal

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
CB02 Change of applicant information

Address after: Room 1301, No.132, Fengqi Road, phase III, software park, Xiamen City, Fujian Province

Applicant after: Xiamen Entropy Technology Co., Ltd

Address before: 361000, Xiamen three software park, Fujian Province, 8 North Street, room 2001

Applicant before: XIAMEN ZKTECO BIOMETRIC IDENTIFICATION TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant