Terminal data service control method, device, electronic device and storage medium
By introducing a terminal agent into the server-client architecture, the direct communication between the business management and control platform and the terminal is decoupled, simplifying business development, solving the development complexity problem when there are a large number of terminals, and achieving efficient synchronization and management of data services.
Patent Information
- Application Number
- CN202111258326.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-27
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-10-27
AI Technical Summary
In the server-client business management and control architecture, when there are a large number of terminals, the business management and control platform needs to establish communication links with each terminal for management and control, resulting in increased development complexity and bloated business. In particular, the task or policy queue management of offline terminals is complicated. sex.
By building a terminal agent between the management and control platform and the terminal, you only need to establish a communication link with the terminal agent. The terminal agent receives data service instructions, queries and updates the data services to be executed, realizing the decoupling of the terminal and the management and control platform, and simplifying business development tasks.
It reduces the development complexity and cost of the business management and control platform, improves development efficiency, and achieves efficient synchronization and management of terminal data services.
Smart Images

Figure CN114090237B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of server-side business development, and in particular to a terminal data business management method, device, electronic equipment and storage medium. Background Art
[0002] Currently, most business management and control platforms control terminals connected through long links or short connections according to business needs. Business management and control platforms directly issue tasks or policies to online and offline terminals, but the business system needs to separately record task or policy queues for offline terminals so that the backlog of tasks can be synchronized to the terminals for execution after the offline terminals come online.
[0003] The above-mentioned server-client based management and control architecture, when encountering a large number of terminals, the business management and control platform needs to establish a communication link with each terminal for management and control, or record tasks or policy queues for offline terminals separately, which brings a lot of complexity to the business development of the management and control platform and easily causes business bloat. Summary of the invention
[0004] In view of this, the embodiments of the present invention provide a terminal data service management method, device, electronic device and storage medium, which can achieve decoupling between the management and control platform and the terminal, thereby simplifying the service development tasks of the service management and control platform to a certain extent.
[0005] In the first aspect, an embodiment of the present invention provides a terminal data service management method, including the steps of: receiving a data service instruction issued by a service management and control platform; the data service instruction is used to indicate the type of data service issued by the service management and control platform to a first terminal, and the data service instruction contains first terminal identification information; querying and obtaining the to-be-executed data service cached by the first terminal currently stored in an endpoint object list according to the first terminal identification information; the endpoint object list at least stores the to-be-executed data service cached by the first terminal; updating the to-be-executed data service cached by the first terminal currently stored in the endpoint object list according to the type of data service issued by the service management and control platform to the first terminal indicated by the data service instruction; when a request to execute a data service of the corresponding type is received from the first terminal, the to-be-executed data service cached by the first terminal currently stored in the updated endpoint object list is sent to the first terminal.
[0006] In combination with the first aspect, in a first implementation of the first aspect, the updating of the to-be-executed data service cached by the first terminal currently stored in the endpoint object list according to the data service type issued by the service control platform to the first terminal indicated by the data service instruction includes: determining whether the data service type issued by the service control platform is the same as the type of the to-be-executed data service cached by the first terminal currently stored;
[0007] If they are the same, the to-be-executed data service cached by the first terminal currently stored in the endpoint object list is updated according to the task conflict strategy.
[0008] In combination with the first aspect and the first implementation method of the first aspect, in the second implementation method of the first aspect, the update processing of the to-be-executed data service cached by the first terminal currently stored in the endpoint object list according to the task conflict strategy includes: adding the data service type issued by the service management platform to the queue of to-be-executed data services cached by the first terminal in the endpoint object list; or, overwriting the to-be-executed data service cached by the first terminal in the endpoint object list with the data service type issued by the service management platform, and filtering out the to-be-executed data service cached by the first terminal in the endpoint object list; or, retaining the to-be-executed data service cached by the first terminal in the endpoint object list, and filtering out the data service type issued by the service management platform.
[0009] In combination with the first aspect, in a third implementation of the first aspect, the data service type includes obtaining asset information, operating status information, configuration information of the terminal, and a task required to be performed by the terminal.
[0010] In combination with the third implementation of the first aspect, in the fourth implementation of the first aspect, after the to-be-executed data service cached by the first terminal currently stored in the updated endpoint object list is sent to the first terminal, the method also includes: receiving the execution result returned by the first terminal, and reporting the execution result to the business management and control platform.
[0011] In combination with the third implementation of the first aspect, in the fifth implementation of the first aspect, after the to-be-executed data service cached by the first terminal currently stored in the updated endpoint object list is sent to the first terminal, the method also includes: receiving the execution result returned by the first terminal, and reporting the execution result to the business management and control platform.
[0012] In a second aspect, an embodiment of the present invention provides a terminal data service management and control device, comprising: a receiving program module, used to receive a data service instruction issued by a service management and control platform; the data service instruction is used to indicate the data service type issued by the service management and control platform to a first terminal, and the data service instruction contains first terminal identification information; a query program module, used to query and obtain the to-be-executed data service cached by the first terminal currently stored in the endpoint object list according to the first terminal identification information; the endpoint object list at least stores the to-be-executed data service cached by the first terminal; an updating program module, used to update the to-be-executed data service cached by the first terminal currently stored in the endpoint object list according to the data service type issued to the first terminal by the service management and control platform indicated by the data service instruction; a sending program module, used to send the to-be-executed data service cached by the first terminal currently stored in the updated endpoint object list to the first terminal when receiving an uplink request for executing a data service of the corresponding type from the first terminal.
[0013] In combination with the second aspect, in a first implementation of the second aspect, the update program module includes: a judgment program unit, used to judge whether the data service type issued by the business management platform is the same as the type of the data service to be executed in the currently stored first terminal cache; an update program unit, used to update the data service to be executed in the currently stored first terminal cache in the endpoint object list according to the task conflict strategy if it is judged to be the same.
[0014] In combination with the second aspect and the first implementation method of the second aspect, in the second implementation method of the second aspect, the update program unit is specifically used to add the data service type issued by the business management platform to the queue of pending data services cached by the first terminal in the endpoint object list; or, overwrite the pending data services cached by the first terminal in the endpoint object list with the data service type issued by the business management platform, and filter out the pending data services cached by the first terminal in the endpoint object list; or, retain the pending data services cached by the first terminal in the endpoint object list, and filter out the data service types issued by the business management platform.
[0015] In combination with the second aspect, in a third implementation of the second aspect, the data service type includes obtaining asset information, operating status information, configuration information of the terminal, and tasks required to be performed by the terminal.
[0016] In combination with the third implementation of the second aspect, in the fourth implementation of the second aspect, the device also includes: a reporting program module, which is used to receive the execution result returned by the first terminal after sending the to-be-executed data service cached by the first terminal currently stored in the updated endpoint object list to the first terminal, and report the execution result to the business management and control platform.
[0017] In combination with the third implementation of the second aspect, in the fifth implementation of the second aspect, the device also includes a storage program module, which is used to receive and store the execution result returned by the first terminal after sending the to-be-executed data service cached by the first terminal currently stored in the updated endpoint object list to the first terminal.
[0018] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a housing, a processor, a memory, a circuit board and a power supply circuit, wherein the circuit board is placed inside a space enclosed by the housing, and the processor and the memory are arranged on the circuit board; a power supply circuit is used to supply power to various circuits or devices of the above-mentioned electronic device; the memory is used to store executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the method described in any embodiment of the first aspect.
[0019] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method described in any embodiment of the first aspect.
[0020] In the present invention, by building a terminal agent between the management and control platform and the terminal, when the management and control platform needs to send a data service type to the terminal, it only needs to send a data service instruction of the corresponding type to the terminal agent. The terminal agent receives the data service instruction sent by the business management and control platform, queries and obtains the data service to be executed of the first terminal cache currently stored in the endpoint object list; according to the data service type sent by the business management and control platform to the first terminal indicated by the data service instruction, the data service to be executed of the first terminal cache currently stored in the endpoint object list is updated; when the first terminal receives an upstream request to execute the corresponding type of data service, the updated data service to be executed of the first terminal cache currently stored in the endpoint object list is sent to the first terminal to control the terminal; in this way, the business management and control platform only needs to establish a communication link with the terminal agent to control the terminal agent; a communication link is established between the terminal agent and the real controlled terminal to achieve data service synchronization; the business management and control end and the real controlled terminal are decoupled, even if the number of terminals increases, only new business development needs to be carried out for the terminal agent, and there is no need to develop new business for the business management and control platform, thereby simplifying the business development tasks of the business management and control platform to a certain extent and reducing the development cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0022] Figure 1 This is a flow chart of an embodiment of a method for controlling terminal data services of the present invention;
[0023] Figure 2 It is a task execution flow diagram of an embodiment of the terminal data service control method of the present invention between the service control platform and the terminal agent;
[0024] Figure 3 It is a schematic diagram of a task execution flow between a terminal and a terminal agent in an embodiment of the terminal data service control method of the present invention;
[0025] Figure 4 It is a structural schematic block diagram of an embodiment of a terminal data service control device of the present invention;
[0026] Figure 5 It is a schematic structural block diagram of another embodiment of the terminal data service control device of the present invention;
[0027] Figure 6 It is a schematic structural block diagram of another embodiment of the terminal data service control device of the present invention;
[0028] Figure 7 It is a structural schematic block diagram of another embodiment of the terminal data service control device of the present invention;
[0029] Figure 8 The figure is a schematic structural diagram of an embodiment of an electronic device of the present invention. DETAILED DESCRIPTION
[0030] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0031] It should be clear that the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0032] Figure 1 FIG. 1 is a flow chart of an embodiment of a terminal data service control method of the present invention. Figure 1As shown, the terminal data service control method provided by the embodiment of the present invention can be applied to the terminal data service control scenario, for example, obtaining terminal information, sending virus scanning and killing tasks to the terminal, etc. It should be noted that the method can be solidified in a certain manufactured product in the form of software, and when the user uses the product, the method flow of the present application can be reproduced.
[0033] For example, the terminal data service management method provided in this embodiment is installed in the form of an application on a computer or other electronic device with data calculation, processing and execution functions. When the user triggers the product to run on the computer and realizes the data service control of the terminal with which the communication link is established, the method previously solidified in the electronic product is mechanically reproduced to play the role of a transit for data service control between the server and the terminal.
[0034] See also Figure 1 As shown, the terminal data service control method provided in this embodiment is applied to a terminal proxy (Proxy), and the method may include the following steps:
[0035] 110. Receive a data service instruction issued by a service control platform; the data service instruction is used to indicate a data service type issued by the service control platform to the first terminal, and the data service instruction includes identification information of the first terminal.
[0036] The business control platform is actually a backend server, and the terminal agent is also generally named as a proxy server. In this article, its essence is a virtual application running on the business control platform; the terminal is installed with client software that provides services from the backend server.
[0037] It is understandable that in the traditional client terminal-server based data service management and control model, when the service management platform needs to send data services such as tasks or policies to the terminal, it usually establishes a communication link directly with the terminal to directly send data services. When the terminal is offline, the service management platform needs to separately cache the data services sent to the offline terminal, which will inevitably increase the operating load of the service management platform.
[0038] In this application, any data services such as configurations, rules, and tasks issued by the service management platform are not sent directly to the terminal, and it no longer cares about the status of the terminal. Instead, it sends a data service instruction to the terminal agent, and the terminal agent performs routing and communication with the terminal according to the data service instruction, which can reduce the operating load of the service management platform. Accordingly, when developing or updating new services of the service management platform, the terminal management platform services will become simple, which can reduce development costs.
[0039] In this embodiment, the data service type may include but is not limited to: obtaining asset information, operating status information, configuration information of the terminal, and tasks required to be performed by the terminal. Figure 4 As shown, in some embodiments, the terminal agent has the following basic units: a communication unit, an operation unit, an object management unit and a storage unit.
[0040] Among them, the communication unit: unified communication entrance; the operation unit: unified issuance of operation entrance; the object management unit: saves terminal information, including: operating status, configuration, attributes, etc.; the storage unit is used to store data services.
[0041] 120. Query and obtain the to-be-executed data service of the first terminal cache currently stored in the endpoint object list according to the first terminal identification information; the endpoint object list at least stores the to-be-executed data service of the first terminal cache.
[0042] The terminal agent creates an endpoint object for each terminal and establishes an endpoint object list to store the current data services to be executed by each terminal, such as obtaining the terminal's asset information, operating status information, configuration information, and other tasks performed by the terminal.
[0043] After the terminal completes the above tasks, the terminal's asset information, operating status information, configuration information, asset information, etc. can be stored, so that when the business management and control platform has the need to obtain the above data services, it can directly send the corresponding type of data service instructions to the terminal agent, and the terminal agent can report the corresponding data service of the stored corresponding terminal to the business management platform. The entire process does not require the business management and control platform to communicate directly with the real terminal, which reduces the operating load of the business management and control platform.
[0044] 130. Update the to-be-executed data service cached by the first terminal currently stored in the endpoint object list according to the data service type sent to the first terminal by the service management and control platform indicated by the data service instruction.
[0045] Continue to view Figure 2 As shown, in some embodiments, the data service type sent by the business control platform to the first terminal according to the indication of the data service instruction, updates the to-be-executed data service cached by the first terminal currently stored in the endpoint object list (step 130) including: determining whether the data service type sent by the business control platform is the same as the type of the to-be-executed data service cached by the first terminal currently stored; if they are the same, updating the to-be-executed data service cached by the first terminal currently stored in the endpoint object list according to the task conflict strategy.
[0046] If they are different, the data service type issued by the service management and control platform is cached in the queue of data services to be executed in the first terminal cache in the endpoint object list ( Figure 2 Not shown), that is, if the data service type sent by the service control platform is different from the type of the data service to be executed in the currently stored first terminal cache, the data service type sent by the service control platform is added to the cache queue.
[0047] Among them, the conflict strategies include: abandoning the data services to be executed in the current cache queue, retaining the data service types issued by the service management and control platform, abandoning the data service types issued by the service management and control platform, retaining the data services to be executed in the current cache queue, and retaining the data service types issued by the service management and control platform and the data services to be executed in the current cache queue.
[0048] Therefore, as an optional embodiment, the updating processing of the to-be-executed data service cached by the first terminal currently stored in the endpoint object list according to the task conflict strategy includes: adding the data service type issued by the service management and control platform to the queue of the to-be-executed data service cached by the first terminal in the endpoint object list; or, overwriting the to-be-executed data service cached by the first terminal in the endpoint object list with the data service type issued by the service management and control platform, and filtering out the to-be-executed data service cached by the first terminal in the endpoint object list; or, retaining the to-be-executed data service cached by the first terminal in the endpoint object list, and filtering out the data service type issued by the service management and control platform.
[0049] 140. When receiving an uplink request from the first terminal to execute a data service of a corresponding type, the data service to be executed that is currently stored in the cache of the first terminal and is stored in the updated endpoint object list is sent to the first terminal.
[0050] like Figure 3 As shown, the real terminal will periodically exchange data with the terminal agent running on the management platform in the form of heartbeats. When receiving an upstream request to execute a data service of the corresponding type from the first terminal, the terminal agent will uniformly send the data services to be executed in the cache of the first terminal stored in the updated endpoint object list to the first terminal.
[0051] In the present invention, by building a terminal agent between the management and control platform and the terminal, when the management and control platform needs to send a data service type to the terminal, it only needs to send a data service instruction of the corresponding type to the terminal agent. The terminal agent receives the data service instruction sent by the business management and control platform, queries and obtains the data service to be executed of the first terminal cache currently stored in the endpoint object list; according to the data service type sent by the business management and control platform to the first terminal indicated by the data service instruction, the data service to be executed of the first terminal cache currently stored in the endpoint object list is updated; when the first terminal receives an uplink request to execute the corresponding type of data service, the updated data service to be executed of the first terminal cache currently stored in the endpoint object list is sent to the first terminal, so that the terminal can be managed; in this way, the business management and control platform only needs to establish a communication link with the terminal agent to control the terminal agent; a communication link is established between the terminal agent and the real controlled terminal to realize information routing and data service synchronization; the business management and control end and the real controlled terminal are decoupled, even if the number of terminals increases, only new business development needs to be carried out for the terminal agent, and there is no need to develop new business for the business management and control platform, thereby simplifying the business development tasks of the business management and control platform to a certain extent and reducing the development cost.
[0052] In some embodiments, after sending the to-be-executed data service cached by the first terminal currently stored in the updated endpoint object list to the first terminal, the method further includes: receiving an execution result returned by the first terminal, and reporting the execution result to the service management and control platform.
[0053] In this embodiment, after the first terminal executes the to-be-executed data service cached by the first terminal stored in the updated endpoint object list, the first terminal only needs to return the execution result to the terminal agent. When the service management and control platform needs to obtain the execution result, it only needs to send an instruction to the terminal agent, and the terminal agent reports the execution result to the service management and control platform. In this way, the service management and control platform does not need to establish a communication link directly with the terminal to obtain the execution result from the terminal, and the terminal data service can be simply controlled through the terminal agent.
[0054] like Figure 3 As shown, in order to facilitate the business management and control platform to obtain terminal data services simply and efficiently when it needs to, in other embodiments, after the to-be-executed data service of the first terminal cache currently stored in the updated endpoint object list is sent to the first terminal, the method also includes: receiving and storing the execution result returned by the first terminal.
[0055] In this embodiment, the first terminal executes the corresponding data service task after receiving the instruction, and after completion, it will feedback the execution result to the terminal agent, and the terminal agent will save the execution result into the database; when the business management platform needs to obtain terminal information, the terminal's business data can be obtained from the terminal agent and displayed.
[0056] In order to help understand the technical solutions and technical effects provided by the embodiments of the present invention, some specific types of data services are now described in detail as follows:
[0057] For example, take the case where the business management and control platform needs to obtain the asset information data of the first terminal, such as Figure 2 As shown, a communication link is established between the terminal agent and the business management and control platform. After receiving the business instruction for obtaining the asset information data of the first terminal issued by the business management and control platform, the terminal agent queries whether there is corresponding terminal information in the storage unit according to the first terminal identification information carried in the instruction. If not, the asset information data service of the first terminal is cached in the endpoint object list.
[0058] like Figure 3 As shown, after the terminal user successfully establishes a communication link between the terminal and the terminal agent through client login, the client of the first terminal receives the instruction sent by the terminal agent, and the client obtains the local asset information, including basic terminal information, software assets, hardware assets, etc., and then uploads the data to the terminal agent, which stores the terminal asset information returned by the first terminal. Among them, the client updates the asset data in the form of real-time reporting data, periodic reporting data, or sends the asset data to the terminal agent when the update conditions are met (for example, after receiving the instruction sent by the terminal agent), and the terminal agent updates the asset information of the first terminal stored in the memory after receiving it to ensure data consistency.
[0059] After completing the above steps, when the business management and control platform needs to use the client asset data, it can obtain it from the terminal agent.
[0060] Exemplarily, let's take the example of the business management and control platform issuing a request to the first terminal to perform tasks such as virus scanning or vulnerability scanning: when the client is performing virus detection tasks, such as virus scanning, vulnerability scanning, etc., or the execution status of the task changes, such as starting, in progress, ending, etc., it reports its own operating status to the terminal agent, and the terminal agent updates the memory information of the client endpoint object in the storage unit.
[0061] When the business control platform needs to obtain the client status, it can obtain the corresponding information from the terminal agent. When the business control platform issues a request to the terminal to perform a virus scan or vulnerability scan task to the terminal agent, the terminal agent decides whether to put the task into the queue of pending tasks based on the actual status of the first terminal stored in the updated storage unit, so as to avoid task conflicts and ensure the atomicity of task execution.
[0062] The client can take tasks from the to-be-executed task queue cached at the terminal proxy for execution periodically or when receiving instructions from the terminal proxy.
[0063] For example, the updating of configuration information data on the terminal agent and the process of the business control platform obtaining the configuration data are described as follows: after the client logs in to the terminal agent running on the business control platform, it reports its own business configuration information, such as the scan file type, the number of compression package scanning layers, the log switch, etc., to the terminal agent, and the terminal agent stores the configuration information data;
[0064] When the client configuration information is changed (client operation itself, control platform sends operation instructions), it is reported to the terminal agent again, so that the terminal agent updates the stored configuration information data according to the reported client identification information.
[0065] When the business control platform needs to know the current configuration status of the client, it can directly obtain it from the storage unit of the control platform.
[0066] According to the above exemplary description, after using the terminal data service control method provided in the embodiment of the present invention, the control platform controls the client terminal through the terminal agent, and the control end only needs to manipulate the terminal agent. The service control platform can be self-closed for development, and no longer needs to pay attention to the service requirements of the controlled terminal for development. This can speed up the iterative development speed and facilitate the subsequent expansion of platform functions.
[0067] Embodiment 2
[0068] Figure 5 FIG. 1 is a schematic diagram of the structure of an embodiment of a terminal data service control device of the present invention. Figure 5As shown, the device of this embodiment includes a receiving program module 210, a query program module 220, an update program module 230 and a sending program module 240; wherein the receiving program module 210 is used to receive a data service instruction sent by a business control platform; the data service instruction is used to indicate the data service type sent by the business control platform to the first terminal, and the data service instruction contains the first terminal identification information; the query program module 220 is used to query and obtain the data service to be executed of the first terminal cache currently stored in the endpoint object list according to the first terminal identification information; the endpoint object list at least stores the data service to be executed of the first terminal cache; the updating program module 230 is used to update the data service to be executed of the first terminal cache currently stored in the endpoint object list according to the data service type sent by the business control platform to the first terminal indicated by the data service instruction; the sending program module 240 is used to send the data service to be executed of the first terminal cache currently stored in the updated endpoint object list to the first terminal when receiving a request to execute the corresponding type of data service from the first terminal.
[0069] The device of this embodiment can be used to perform Figure 1 The technical solution of the method embodiment shown has similar implementation principles and technical effects, which will not be repeated here.
[0070] In some embodiments, the update program module 230 includes: a judgment program unit, which is used to judge whether the data service type issued by the business management and control platform is the same as the type of the data service to be executed currently stored in the first terminal cache; an update program unit, which is used to update the data service to be executed currently stored in the first terminal cache in the endpoint object list according to the task conflict strategy if it is judged to be the same; and a new program unit, which is used to cache the data service type issued by the business management and control platform into the queue of the data service to be executed in the first terminal cache in the endpoint object list if it is judged to be different.
[0071] In some other embodiments, the update program unit is specifically used to: add the data service type issued by the business management and control platform to the queue of pending data services cached by the first terminal in the endpoint object list; or, overwrite the pending data services cached by the first terminal in the endpoint object list with the data service type issued by the business management and control platform, and filter out the pending data services cached by the first terminal in the endpoint object list; or, retain the pending data services cached by the first terminal in the endpoint object list, and filter out the data service types issued by the business management and control platform.
[0072] In still other embodiments, the data service type includes obtaining asset information, operating status information, configuration information of the terminal, and tasks required to be performed by the terminal.
[0073] See also Figure 6 As shown, the device also includes: a reporting program module 250A, which is used to receive the execution result returned by the first terminal after sending the to-be-executed data service cached by the first terminal currently stored in the updated endpoint object list to the first terminal, and report the execution result to the service management and control platform.
[0074] See also Figure 7 As shown, in some embodiments, the device further includes a storage program module 250B, which is used to receive and store the execution result returned by the first terminal after sending the to-be-executed data service currently stored in the first terminal cache in the updated endpoint object list to the first terminal. .
[0075] The implementation principle and technical effects of the device of this embodiment are similar to those of the corresponding method embodiments described above. For details not described in detail, reference can be made to each other and will not be repeated here.
[0076] Figure 8 FIG. 1 is a schematic diagram of a structure of an electronic device according to an embodiment of the present invention. Based on the method provided in the first embodiment and the device provided in the second embodiment, the present invention also provides an electronic device, such as Figure 8 As shown, the process of any embodiment described in Embodiment 1 of the present invention can be implemented, such as Figure 8 As shown, the above-mentioned electronic device may include: a shell 41, a processor 42, a memory 43, a circuit board 44 and a power supply circuit 45, wherein the circuit board 44 is arranged inside the space enclosed by the shell 41, and the processor 42 and the memory 43 are arranged on the circuit board 44; the power supply circuit 45 is used to supply power to various circuits or devices of the above-mentioned electronic device; the memory 43 is used to store executable program codes; the processor 42 runs the program corresponding to the executable program code by reading the executable program code stored in the memory 43, so as to execute the terminal data service management and control method described in any of the above-mentioned embodiments.
[0077] The specific execution process of the above steps by the processor 42 and the steps further executed by the processor 42 by running the executable program code can be found in the description of the first embodiment of the present invention, which will not be repeated here.
[0078] This electronic device exists in many forms, including but not limited to:
[0079] (1) Mobile communication devices: These devices are characterized by their mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
[0080] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, such as iPad.
[0081] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as iPods), handheld game consoles, e-books, smart toys, and portable car navigation devices.
[0082] (4) Server: A device that provides computing services. The server consists of a processor, hard disk, memory, system bus, etc. The server is similar to a general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.
[0083] (5) Other electronic devices with data interaction functions.
[0084] An embodiment of the present invention also provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the terminal data service management method described in any of the above-mentioned embodiments.
[0085] According to the detailed description of the technical solution provided by the present embodiment, the terminal data service control method provided by the embodiment of the present invention and the service control platform or system applying the control method, by building a terminal agent on the service control platform, enable the service control platform to be developed for the terminal agent. The terminal agent is responsible for establishing a communication link with the terminal to realize information routing and data service synchronization. Compared with the traditional server-client control model, the decoupling between the service control end and the actual controlled terminal is realized. Even if the number of terminals increases, it is only necessary to develop new services for the terminal agent, and there is no need to develop new services for the service control platform. Therefore, the service development tasks of the service control platform can be simplified to a certain extent, and the development cost is reduced.
[0086] Furthermore, in this embodiment, by building a terminal agent on the business management and control platform, the business management and control platform manages the client through the terminal agent, and creates an endpoint object for each client in the terminal agent. The client's data service, including asset information, status information, configuration information, etc., is synchronized to the endpoint object stored in the terminal agent in a regular or real-time manner; when the business management and control platform wants to obtain the client status or issue a task, it only needs to establish a communication link with the terminal agent and issue instructions to simply and quickly obtain the client terminal's data service from the terminal agent.
[0087] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0088] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0089] In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0090] For the convenience of description, the above device is described by dividing the functions into various units / modules. Of course, when implementing the present invention, the functions of each unit / module can be implemented in the same or multiple software and / or hardware.
[0091] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0092] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A terminal data service management and control method, characterized in that: Includes steps: Receiving a data service instruction issued by the service control platform; the data service instruction is used to indicate the type of data service issued by the service control platform to the first terminal, and the data service instruction includes the first terminal identification information; Query and obtain the to-be-executed data service of the first terminal cache currently stored in the endpoint object list according to the first terminal identification information; The endpoint object list stores at least the to-be-executed data service cached by the first terminal; According to the data service type sent to the first terminal by the service control platform indicated by the data service instruction, updating the data service to be executed currently stored in the endpoint object list and cached by the first terminal; When receiving an uplink request from the first terminal to execute a data service of a corresponding type, sending the to-be-executed data service of the first terminal cache currently stored in the updated endpoint object list to the first terminal; The updating of the data service to be executed cached by the first terminal currently stored in the endpoint object list according to the data service type issued by the service control platform to the first terminal indicated by the data service instruction comprises: determining whether the data service type issued by the service control platform is the same as the type of the data service to be executed cached by the first terminal currently stored; If they are the same, updating the to-be-executed data service cached by the first terminal currently stored in the endpoint object list according to the task conflict strategy; The updating process of the to-be-executed data service currently stored in the first terminal cache in the endpoint object list according to the task conflict strategy includes: adding the data service type issued by the service management and control platform to the to-be-executed data service queue of the first terminal cache in the endpoint object list; or Overwrite the data service to be executed in the first terminal cache in the endpoint object list with the data service type issued by the service management and control platform, and filter out the data service to be executed in the first terminal cache in the endpoint object list; or The data services to be executed in the cache of the first terminal in the endpoint object list are retained, and the data service types issued by the service management and control platform are filtered out.
2. The data service control method according to claim 1, characterized in that: The data service types include obtaining asset information, operating status information, configuration information of the terminal, and tasks required to be performed by the terminal.
3. The data service control method according to claim 2, characterized in that: After sending the to-be-executed data service cached by the first terminal currently stored in the updated endpoint object list to the first terminal, the method further includes: receiving an execution result returned by the first terminal, and reporting the execution result to the service management and control platform.
4. The data service control method according to claim 2, characterized in that: After sending the to-be-executed data service cached by the first terminal currently stored in the updated endpoint object list to the first terminal, the method further includes: receiving and storing the execution result returned by the first terminal.
5. A terminal data service control device, characterized in that: include: A receiving program module, used to receive a data service instruction issued by the service control platform; the data service instruction is used to indicate the type of data service issued by the service control platform to the first terminal, and the data service instruction includes the first terminal identification information; A query program module, used for querying and acquiring the to-be-executed data service of the first terminal cache currently stored in the endpoint object list according to the first terminal identification information; The endpoint object list stores at least the to-be-executed data service cached by the first terminal; An update program module, configured to update the data service to be executed in the first terminal cache currently stored in the endpoint object list according to the data service type sent to the first terminal by the service control platform indicated by the data service instruction; A sending program module, configured to send the to-be-executed data service of the first terminal cached and currently stored in the updated endpoint object list to the first terminal when receiving an uplink request for executing a data service of a corresponding type from the first terminal; The update program module includes: A judgment program unit, used to judge whether the data service type issued by the service management and control platform is the same as the type of the data service to be executed in the currently stored first terminal cache; An update program unit, used for updating the to-be-executed data service cached by the first terminal currently stored in the endpoint object list according to the task conflict strategy if the judgment is the same; The update program unit is specifically used for: Add the data service type issued by the service management and control platform to the queue of data services to be executed in the first terminal cache in the endpoint object list; or, Overwrite the data service to be executed in the first terminal cache in the endpoint object list with the data service type issued by the service management and control platform, and filter out the data service to be executed in the first terminal cache in the endpoint object list; or The data services to be executed in the cache of the first terminal in the endpoint object list are retained, and the data service types issued by the service management and control platform are filtered out.
6. The terminal data service control device according to claim 5, characterized in that: The data service types include obtaining asset information, operating status information, configuration information of the terminal, and tasks required to be performed by the terminal.
7. The terminal data service control device according to claim 6, characterized in that: The device also includes: a reporting program module, which is used to receive the execution result returned by the first terminal after sending the to-be-executed data service currently stored in the first terminal cache in the updated endpoint object list to the first terminal, and report the execution result to the service management and control platform.
8. The terminal data service control device according to claim 6, characterized in that: The device further comprises a storage program module, which is used for receiving and storing the execution result returned by the first terminal after sending the to-be-executed data service currently stored in the first terminal cache in the updated endpoint object list to the first terminal.
9. An electronic device, characterized in that: The electronic device comprises: a housing, a processor, a memory, a circuit board and a power supply circuit, wherein the circuit board is placed inside the space enclosed by the housing, and the processor and the memory are arranged on the circuit board; the power supply circuit is used to supply power to various circuits or devices of the above-mentioned electronic device; the memory is used to store executable program codes; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the method described in any one of claims 1 to 4 above.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method of any one of claims 1 to 4.
