CN118295724A - Data processing method and device, electronic equipment and storage medium - Google Patents

Data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN118295724A
CN118295724A CN202211698225.XA CN202211698225A CN118295724A CN 118295724 A CN118295724 A CN 118295724A CN 202211698225 A CN202211698225 A CN 202211698225A CN 118295724 A CN118295724 A CN 118295724A
Authority
CN
China
Prior art keywords
instruction
processing
receiving terminal
plug
primary
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211698225.XA
Other languages
Chinese (zh)
Inventor
陈志超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks 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 Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN202211698225.XA priority Critical patent/CN118295724A/en
Publication of CN118295724A publication Critical patent/CN118295724A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The application discloses a data processing method, a data processing device, electronic equipment and a storage medium, which are used for reducing the complexity and development difficulty of networking of multiple manufacturers. In the embodiment of the application, a public plug-in is called to process the received primary instruction to obtain a secondary instruction; if the primary instruction is a public processing instruction, the secondary instruction is sent to a receiving terminal; and if the primary instruction is a public processing and differentiation processing instruction, calling a plug-in corresponding to the receiving terminal to process the secondary instruction to obtain a tertiary instruction, and sending the tertiary instruction to the receiving terminal. In the application, the common code processing logic of different receiving terminals is used as the common part to carry out common processing, and if the processing logic of a certain receiving terminal needs to be modified later, the service logic of the common part is not required to be modified, and only the service logic of the differentiated part of the receiving terminal is required to be modified, thereby reducing the complexity and the development difficulty of networking of a plurality of receiving terminals.

Description

Data processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data processing method, an apparatus, an electronic device, and a storage medium.
Background
In the related art, when a plurality of manufacturers perform networking, each manufacturer independently maintains one data and cannot process the cross-manufacturer service; therefore, the data is bloated, the complexity is high, and the later maintenance cost is high. If a new manufacturer wants to join the networking, the overall arrangement logic of the networking needs to be modified, which affects the original published functions and easily causes quality risks.
Disclosure of Invention
The application aims to provide a data processing method, a data processing device, electronic equipment and a storage medium, which are used for reducing the complexity and development difficulty of networking of multiple manufacturers.
In a first aspect, an embodiment of the present application provides a data processing method, applied to a terminal device, where the method includes:
Calling a public plug-in to process the received primary instruction to obtain a secondary instruction; the first-level instruction is used for indicating a command to be executed by the receiving terminal;
If the primary instruction is a public processing instruction, the secondary instruction is sent to the receiving terminal;
And if the primary instruction is a public processing and differentiation processing instruction, calling a plug-in unit corresponding to the receiving terminal to process the secondary instruction to obtain a tertiary instruction, and sending the tertiary instruction to the receiving terminal.
In the application, the common code processing logic of different receiving terminals is used as the common part to carry out common processing, and if the processing logic of a certain receiving terminal needs to be modified later, the service logic of the common part is not required to be modified, and only the service logic of the differentiated part of the receiving terminal is required to be modified, thereby reducing the complexity and the development difficulty of networking of a plurality of receiving terminals.
In some possible embodiments, before the calling the public plug-in processes the received primary instruction to obtain the secondary instruction, the method further includes:
Analyzing the primary instruction to obtain a uniform resource identifier (English: uniform Resource Identifier, abbreviated as URI) corresponding to the primary instruction;
And determining the primary instruction as a common processing instruction or a common processing and differential processing instruction according to the URI of the primary instruction.
In the application, the processing mode of the primary instruction is determined by the URI in the primary instruction, and the primary instruction is processed by the corresponding processing mode, so that the processing of the primary instruction is more accurate.
In some possible embodiments, before the calling the common plugin processes the received primary instruction, the method further includes:
And obtaining a plug-in corresponding to the pre-stored template equipment from a memory, and taking the plug-in of the template equipment as a public plug-in, wherein the template equipment is equipment with common characteristics with a plurality of receiving equipment.
In the application, the mode of carrying out public processing on the primary instruction is simpler and more convenient by storing the plug-in corresponding to the template equipment in advance.
In some possible embodiments, the calling the common plug-in to process the received primary instruction to obtain a secondary instruction includes:
Calling the public plug-in to process the primary instruction based on a secondary instruction processing logic to obtain a secondary instruction;
wherein the secondary instruction processing logic is fetched according to the following method:
acquiring the execution sequence of codes for processing the primary instructions from a memory, and the inherent logic of the codes for processing the primary instructions of the terminal equipment;
And taking the execution sequence of the code for processing the primary instruction and the inherent logic of the code for processing the primary instruction as the secondary instruction processing logic.
In the application, the primary instruction is processed according to the execution sequence of the codes and the inherent logic of the codes, thereby ensuring the accuracy of processing the primary instruction.
In some possible embodiments, after the sending the secondary instruction to the receiving terminal, the method further includes:
if the execution result sent by the receiving terminal is received within the preset time length, the receiving terminal is determined to be successfully controlled;
If the execution result sent by the receiving terminal is not received within the preset time length, determining that the control of the receiving terminal fails.
In the application, by determining whether the execution result sent by the receiving equipment is received or not, the control condition of the receiving terminal can be timely known.
In some possible embodiments, the calling the plugin corresponding to the receiving terminal to process the second-level instruction to obtain a third-level instruction includes:
obtaining a plug-in corresponding to the receiving terminal from a memory, and taking the plug-in of the receiving equipment as a differentiation processing plug-in;
Performing differential processing on the second-level instruction based on a third-level instruction processing logic by adopting the differential processing plug-in to obtain a third-level instruction; the second-level instruction is used for obtaining a third-level instruction which can be processed by the receiving terminal;
Wherein the three-level instruction processing logic is obtained according to the following method:
acquiring the execution sequence of the codes of the secondary instructions processed by the receiving terminal and the inherent logic of the codes of the secondary instructions processed by the receiving terminal from a memory;
And taking the execution sequence of the code for processing the secondary instruction and the inherent logic of the code for processing the secondary instruction as the tertiary instruction processing logic.
In the application, the accuracy of the processing of the secondary instructions is ensured by processing the secondary instructions according to the execution sequence of the codes and the inherent logic of the codes.
In some possible embodiments, after the sending the tertiary instruction to the receiving terminal, the method further includes:
if the execution result sent by the receiving terminal is received within the preset time length, the receiving terminal is determined to be successfully controlled;
If the execution result sent by the receiving terminal is not received within the preset time length, determining that the control of the receiving terminal fails.
In the application, by determining whether the execution result sent by the receiving equipment is received or not, the control condition of the receiving terminal can be timely known.
In a second aspect, the present application further provides a data processing apparatus, applied to a terminal device, where the apparatus includes:
the first-level instruction processing module is used for calling the public plug-in to process the received first-level instruction to obtain a second-level instruction; the first-level instruction is used for indicating a command to be executed by the receiving terminal;
The secondary instruction sending module is used for sending the secondary instruction to the receiving terminal if the primary instruction is a public processing instruction;
and the third-level instruction sending module is used for calling a plug-in unit corresponding to the receiving terminal to process the second-level instruction if the first-level instruction is a public processing and differentiation processing instruction, obtaining a third-level instruction and sending the third-level instruction to the receiving terminal.
In some possible embodiments, the primary instruction processing module is further configured to, before executing the calling common plug-in to process the received primary instruction to obtain the secondary instruction:
analyzing the primary instruction to obtain a Uniform Resource Identifier (URI) corresponding to the primary instruction;
And determining the primary instruction as a common processing instruction or a common processing and differential processing instruction according to the URI of the primary instruction.
In some possible embodiments, before the first-level instruction processing module executes the received first-level instruction, the first-level instruction processing module is further configured to:
And obtaining a plug-in corresponding to the pre-stored template equipment from a memory, and taking the plug-in of the template equipment as a public plug-in, wherein the template equipment is equipment with common characteristics with a plurality of receiving equipment.
In some possible embodiments, the primary instruction processing module executes and calls the common plug-in to process the received primary instruction, and is specifically configured to:
Calling the public plug-in to process the primary instruction based on a secondary instruction processing logic to obtain a secondary instruction;
wherein the secondary instruction processing logic is fetched according to the following method:
acquiring the execution sequence of codes for processing the primary instructions from a memory, and the inherent logic of the codes for processing the primary instructions of the terminal equipment;
And taking the execution sequence of the code for processing the primary instruction and the inherent logic of the code for processing the primary instruction as the secondary instruction processing logic.
In some possible embodiments, after the secondary instruction sending module executes the secondary instruction to send to the receiving terminal, the secondary instruction sending module is further configured to:
if the execution result sent by the receiving terminal is received within the preset time length, the receiving terminal is determined to be successfully controlled;
If the execution result sent by the receiving terminal is not received within the preset time length, determining that the control of the receiving terminal fails.
In some possible embodiments, the third-level instruction sending module executes and calls a plug-in corresponding to the receiving terminal to process the second-level instruction, so as to obtain a third-level instruction, which is specifically configured to:
obtaining a plug-in corresponding to the receiving terminal from a memory, and taking the plug-in of the receiving equipment as a differentiation processing plug-in;
Performing differential processing on the second-level instruction based on a third-level instruction processing logic by adopting the differential processing plug-in to obtain a third-level instruction; the second-level instruction is used for obtaining a third-level instruction which can be processed by the receiving terminal;
Wherein the three-level instruction processing logic is obtained according to the following method:
acquiring the execution sequence of the codes of the secondary instructions processed by the receiving terminal and the inherent logic of the codes of the secondary instructions processed by the receiving terminal from a memory;
And taking the execution sequence of the code for processing the secondary instruction and the inherent logic of the code for processing the secondary instruction as the tertiary instruction processing logic.
In some possible embodiments, after the third-level instruction sending module executes the third-level instruction to send to the receiving terminal, the third-level instruction sending module is further configured to:
if the execution result sent by the receiving terminal is received within the preset time length, the receiving terminal is determined to be successfully controlled;
If the execution result sent by the receiving terminal is not received within the preset time length, determining that the control of the receiving terminal fails.
In a third aspect, another embodiment of the present application also provides an electronic device, including at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any one of the methods provided by the embodiments of the first aspect of the present application.
In a fourth aspect, another embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores a computer program for causing a computer to perform any one of the methods provided by the embodiments of the first aspect of the present application.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments of the present application will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an application scenario of a data processing method according to an embodiment of the present application;
FIG. 2 is a schematic overall flow chart of a data processing method according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a method for determining a first level instruction according to the present application;
FIG. 4 is a flow chart of determining secondary instruction processing logic of a data processing method according to an embodiment of the present application;
FIG. 5 is a flowchart illustrating a data processing method according to an embodiment of the present application for determining a processing condition of a first-level instruction;
FIG. 6 is a schematic flow chart of a determining three-level instruction of a data processing method according to an embodiment of the present application;
FIG. 7A is a flow chart of determining three-level instruction processing logic of a data processing method according to an embodiment of the present application;
Fig. 7B is a schematic flow chart of user interaction with a terminal device in a data processing method according to an embodiment of the present application;
FIG. 8 is a schematic diagram of an apparatus for a data processing method according to an embodiment of the present application;
fig. 9 is a schematic diagram of an electronic device according to a data processing method in an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application. Embodiments of the application and features of the embodiments may be combined with one another arbitrarily without conflict. Also, while a logical order of illustration is depicted in the flowchart, in some cases the steps shown or described may be performed in a different order than presented.
The terms first and second in the description and claims of the application and in the above-mentioned figures are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the term "include" and any variations thereof is intended to cover non-exclusive protection. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus. The term "plurality" in the present application may mean at least two, for example, two, three or more, and embodiments of the present application are not limited.
In the technical scheme of the application, the data is collected, transmitted, used and the like, and all meet the requirements of national relevant laws and regulations.
The inventor researches and discovers that in the related technology, when a plurality of manufacturers carry out networking, each manufacturer independently maintains one piece of data and cannot process the cross-manufacturer business; therefore, the data is bloated, the complexity is high, and the later maintenance cost is high. If a new manufacturer wants to join the networking, the overall arrangement logic of the networking needs to be modified, which affects the original published functions and easily causes quality risks.
In view of the above, the present application proposes a data processing method, apparatus, electronic device and storage medium for solving the above-mentioned problems. The inventive concept of the present application can be summarized as follows: calling a public plug-in to process the received primary instruction to obtain a secondary instruction; the first-level instruction is used for indicating a command to be executed by the receiving terminal; if the primary instruction is a public processing instruction, the secondary instruction is sent to a receiving terminal; and if the primary instruction is a public processing and differentiation processing instruction, calling a plug-in corresponding to the receiving terminal to process the secondary instruction to obtain a tertiary instruction, and sending the tertiary instruction to the receiving terminal.
In order to facilitate understanding of a data processing method provided by an embodiment of the present application, the following details are described with reference to the accompanying drawings:
fig. 1 is an application scenario diagram of a data processing method according to an embodiment of the present application. The drawings include: a terminal device 10, a memory 20, a receiving terminal 30; wherein:
The terminal equipment 10 calls the public plug-in to process the received primary instruction to obtain a secondary instruction; the first-level instruction is used for indicating a command to be executed by the receiving terminal; wherein the common plug-in is stored in the memory 20; if the primary instruction is a common processing instruction, the secondary instruction is sent to the receiving terminal 30; if the primary instruction is a common processing and differential processing instruction, calling a plug-in corresponding to the receiving terminal 30 to process the secondary instruction, obtaining a tertiary instruction, and sending the tertiary instruction to the receiving terminal 30.
In the description of the present application, only a single terminal device 10, memory 20, receiving terminal 30 is described in detail, but it should be understood by those skilled in the art that the illustrated terminal device 10, memory 20, receiving terminal 30 are intended to represent the operations of the terminal device 10, memory 20, receiving terminal 30 to which the technical solution of the present application relates. And not implying a limitation on the number, type, or location of terminal devices 10, memories 20, receiving terminals 30, etc. It should be noted that the underlying concepts of the exemplary embodiments of this application are not altered if additional modules are added to or individual modules are removed from the illustrated environment. In addition, it will be appreciated by those skilled in the art that the above-mentioned data transmission and reception is also required to be implemented through a network.
It should be noted that, the memory in the embodiment of the present application may be, for example, a cache system, or may be hard disk storage, memory storage, or the like. In addition, the data processing method provided by the application is not only suitable for the application scene shown in fig. 1, but also suitable for any device with data processing requirements.
In order to facilitate understanding of a data processing method provided by an embodiment of the present application, an overall flow of the data processing method provided by the embodiment of the present application is described below with a terminal device as an execution body, as shown in fig. 2, where:
in step 201: calling a public plug-in to process the received primary instruction to obtain a secondary instruction;
The first-level instruction is used for indicating a command to be executed by the receiving terminal;
in step 202: if the primary instruction is a public processing instruction, the secondary instruction is sent to a receiving terminal;
In step 203: and if the primary instruction is a public processing and differentiation processing instruction, calling a plug-in corresponding to the receiving terminal to process the secondary instruction to obtain a tertiary instruction, and sending the tertiary instruction to the receiving terminal.
In the application, the common code processing logic of different receiving terminals is used as the common part to carry out common processing, and if the processing logic of a certain receiving terminal needs to be modified later, the service logic of the common part is not required to be modified, and only the service logic of the differentiated part of the receiving terminal is required to be modified, thereby reducing the complexity and the development difficulty of networking of a plurality of receiving terminals.
In order to facilitate further understanding of a data processing method provided by an embodiment of the present application, the following steps in fig. 2 are respectively described:
in some possible embodiments, in order to facilitate accurate determination of the processing manner of the primary instruction, after receiving the primary instruction, it is first necessary to perform the steps shown in fig. 3:
in step 301: analyzing the first-level instruction to obtain a URI corresponding to the first-level instruction;
in step 302: and determining the primary instruction as a common processing instruction or a common processing and differential processing instruction according to the URI of the primary instruction.
In the present application, since the URI is a string for identifying a certain internet resource name. Such identification allows the user to interoperate with any (including local and internet) resource via a particular protocol. Therefore, in the application, the processing mode of the primary instruction is determined by identifying the URI, and the primary instruction is processed by the corresponding processing mode, so that the processing of the primary instruction is more accurate.
In the embodiment of the application, before the common plug-in is called to process the received primary instruction, the common plug-in needs to be determined first, and the method can be specifically implemented as follows: and obtaining a plug-in corresponding to the pre-stored template equipment from the memory, and taking the plug-in of the template equipment as a public plug-in, wherein the template equipment is equipment with common characteristics with a plurality of receiving equipment.
For example: and (3) a technician determines that the step 1, the step 2 and the step 3 in each receiving terminal are the same as the processing procedure of the device 1 on the instruction in the plurality of receiving terminals by comparing the processing flows of the instructions on the plurality of receiving terminals, and takes the device 1 as a template device and takes the plug-in units for executing the step 1, the step 2 and the step 3 in the template device as public plug-in units.
In some possible embodiments, after the common plug-in is obtained, the common plug-in is called to process the received primary instruction, and when the secondary instruction is obtained, the method may be specifically implemented as follows: calling a public plug-in to process the primary instruction based on the secondary instruction processing logic to obtain a secondary instruction; wherein the secondary instruction processing logic is fetched according to the steps as shown in fig. 4:
In step 401: acquiring the execution sequence of the codes for processing the first-level instructions and the inherent logic of the codes for processing the first-level instructions of the terminal equipment from a memory;
In step 402: the execution sequence of the code and the inherent logic of the code are regarded as secondary instruction processing logic.
For example: the execution sequence of the code of the first-level instruction executed by the terminal equipment is that the step 1 is executed firstly, the step 2 is executed, the step 3 is executed finally, and the inherent logic of the code of the first-level instruction is inherent logic 1, so that when the common plug-in is called by the terminal equipment to process the first-level instruction, the first-level instruction is processed according to the step 1, the step 2, the step 3 and the inherent logic 1.
In other possible embodiments, in order to further make the process of calling the common plug-in to process the primary instruction more universal, in the application, when the execution sequence of the code of the primary instruction processed by the terminal device is acquired, only a part of the execution sequence may be acquired as the execution sequence of the primary instruction processing.
For example: the execution sequence of the code of the first-level instruction executed by the terminal equipment is that the step 1 is executed firstly, the step 2 is executed, the step 3 is executed finally, and the inherent logic of the code of the first-level instruction is inherent logic 1, so that when the common plug-in is called by the terminal equipment to process the first-level instruction, the first-level instruction can be processed only according to the step 1, the step 2 and the inherent logic 1.
If the primary instruction processing is completed, a secondary instruction is obtained, and the secondary instruction is determined to be the secondary instruction which is indicated to be sent to the receiving terminal, the secondary instruction is sent to the receiving terminal; in the present application, in order to ensure that the control situation of the receiving terminal can be known in time, after the secondary instruction is sent to the receiving terminal, the steps shown in fig. 5 need to be performed:
In step 501: determining whether an execution result sent by the receiving terminal is received within a preset duration, if so, entering a step 502, otherwise, entering a step 503;
In step 502: determining that the control on the receiving terminal is successful;
In step 503: and determining that the control of the receiving terminal fails.
In the application, by determining whether the execution result sent by the receiving equipment is received or not, the control condition of the receiving terminal can be timely known.
After obtaining the secondary instruction, if the secondary instruction is determined to be the type for obtaining the tertiary instruction that can be received by the receiving terminal, the plugin corresponding to the receiving terminal needs to be called to process the secondary instruction, so as to obtain the tertiary instruction, which can be specifically implemented as steps shown in fig. 6, where:
In step 601: obtaining a plug-in corresponding to a receiving terminal from a memory, and taking the plug-in of the receiving terminal as a differentiation processing plug-in;
in step 602: and carrying out differential processing on the second-level instruction based on the third-level instruction processing logic by adopting a differential processing plug-in unit to obtain the third-level instruction.
Wherein, the three-stage instruction processing logic may be obtained by the method shown in fig. 7A:
In step 701: acquiring the execution sequence of the code for processing the secondary instruction by the receiving terminal and the inherent logic of the code for processing the secondary instruction by the receiving terminal from the memory;
In step 702: the execution order of the code that processes the second-level instruction and the inherent logic of the code that processes the second-level instruction are taken as the third-level instruction processing logic.
For example: the execution sequence of the code of the second-level instruction executed by the receiving device is that the step 1 is executed firstly, the step 2 is executed, the step 3 is executed finally, and the inherent logic of the code of the second-level instruction is inherent logic 2, so that when the plug-in of the receiving device is called to process the second-level instruction, the terminal device processes the second-level instruction according to the step 1, the step 2, the step 3 and the inherent logic 1.
In the application, the accuracy of the processing of the secondary instructions is ensured by processing the secondary instructions according to the execution sequence of the codes and the inherent logic of the codes.
The following describes a floor implementation flow of the data processing method provided by the embodiment of the present application:
as shown in fig. 7B, the interaction flow between the user and the terminal device is as follows:
In step 711: the user creates network resources and determines template equipment based on the processing conditions of the instructions by a plurality of receiving terminals;
In step 712: the user takes the plug-in of the template equipment as a public plug-in and stores the public plug-in into a memory;
In step 713: storing the execution sequence of the codes for processing the primary instructions and the inherent logic of the codes for processing the primary instructions into a memory by a user;
In step 714: the terminal equipment calls the public plug-in unit from the memory to process the received primary instruction to obtain a secondary instruction;
In step 715: the terminal equipment calls a plug-in corresponding to the receiving terminal to process the second-level instruction to obtain a third-level instruction, and issues the third-level instruction to the receiving terminal (it is to be understood that the receiving terminal is not shown in fig. 7B);
In step 716: if the user determines that the newly added access equipment exists, the plug-in corresponding to the newly added access equipment is stored in the memory.
In some possible embodiments, the user as shown in fig. 7B may be an operation and maintenance person and developer who maintain the network and the device, and the plurality of receiving terminals (not shown in fig. 7B) are a plurality of different vendors, respectively; when processing the instruction, a technician uses the preselected template equipment and differentiated plug-ins corresponding to each receiving terminal as a public arrangement part, and the terminal equipment performs unified management, namely, the terminal equipment is used as a public arrangement server to process the instruction; the public arrangement part comprises two parts, namely public processing part and differential processing part, wherein the public processing part is provided with plug-ins of terminal equipment calling template equipment, the differential processing part is provided with plug-ins corresponding to each receiving terminal called by the terminal equipment, and the category of the specific receiving terminal is not limited in the application.
In the embodiment of the present application, after the three-level instruction is sent to the receiving terminal, in order to facilitate understanding of the control situation of the receiving terminal, the steps shown in fig. 5 are further implemented, and no further description is given here.
As shown in fig. 8, based on the same inventive concept, a data processing apparatus 800 is proposed, the apparatus comprising:
The primary instruction processing module 8001 is used for calling the public plug-in to process the received primary instruction to obtain a secondary instruction; the first-level instruction is used for indicating a command to be executed by the receiving terminal;
The secondary instruction sending module 8002 is configured to send the secondary instruction to the receiving terminal if the primary instruction is a common processing instruction;
And the third-level instruction sending module 8003 is configured to call a plug-in unit corresponding to the receiving terminal to process the second-level instruction if the first-level instruction is a common processing and differential processing instruction, obtain a third-level instruction, and send the third-level instruction to the receiving terminal.
In some possible embodiments, the primary instruction processing module 8001 is further configured to, before executing the call common plug-in to process the received primary instruction to obtain the secondary instruction:
analyzing the primary instruction to obtain a Uniform Resource Identifier (URI) corresponding to the primary instruction;
And determining the primary instruction as a common processing instruction or a common processing and differential processing instruction according to the URI of the primary instruction.
In some possible embodiments, before the primary instruction processing module 8001 executes the calling common plug-in to process the received primary instruction, the primary instruction processing module is further configured to:
And obtaining a plug-in corresponding to the pre-stored template equipment from a memory, and taking the plug-in of the template equipment as a public plug-in, wherein the template equipment is equipment with common characteristics with a plurality of receiving equipment.
In some possible embodiments, the primary instruction processing module 8001 performs calling on a common plug-in to process a received primary instruction, and is specifically configured to:
Calling the public plug-in to process the primary instruction based on a secondary instruction processing logic to obtain a secondary instruction;
wherein the secondary instruction processing logic is fetched according to the following method:
acquiring the execution sequence of codes for processing the primary instructions from a memory, and the inherent logic of the codes for processing the primary instructions of the terminal equipment;
And taking the execution sequence of the code for processing the primary instruction and the inherent logic of the code for processing the primary instruction as the secondary instruction processing logic.
In some possible embodiments, after the secondary instruction sending module 8002 performs sending the secondary instruction to the receiving terminal, it is further configured to:
if the execution result sent by the receiving terminal is received within the preset time length, the receiving terminal is determined to be successfully controlled;
If the execution result sent by the receiving terminal is not received within the preset time length, determining that the control of the receiving terminal fails.
In some possible embodiments, the third-level instruction sending module 8003 is configured to execute calling a plug-in corresponding to the receiving terminal to process the second-level instruction, and when obtaining the third-level instruction, specifically configured to:
obtaining a plug-in corresponding to the receiving terminal from a memory, and taking the plug-in of the receiving equipment as a differentiation processing plug-in;
Performing differential processing on the second-level instruction based on a third-level instruction processing logic by adopting the differential processing plug-in to obtain a third-level instruction; the second-level instruction is used for obtaining a third-level instruction which can be processed by the receiving terminal;
Wherein the three-level instruction processing logic is obtained according to the following method:
acquiring the execution sequence of the codes of the secondary instructions processed by the receiving terminal and the inherent logic of the codes of the secondary instructions processed by the receiving terminal from a memory;
And taking the execution sequence of the code for processing the secondary instruction and the inherent logic of the code for processing the secondary instruction as the tertiary instruction processing logic.
In some possible embodiments, after the third level instruction sending module 8003 performs sending the third level instruction to the receiving terminal, it is further configured to:
if the execution result sent by the receiving terminal is received within the preset time length, the receiving terminal is determined to be successfully controlled;
If the execution result sent by the receiving terminal is not received within the preset time length, determining that the control of the receiving terminal fails.
Having described the data processing method and apparatus of an exemplary embodiment of the present application, next, an electronic device according to another exemplary embodiment of the present application is described.
Those skilled in the art will appreciate that the various aspects of the application may be implemented as a system, method, or program product. Accordingly, aspects of the application may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
In some possible embodiments, an electronic device according to the application may comprise at least one processor and at least one memory. Wherein the memory stores program code which, when executed by the processor, causes the processor to perform the steps in the data processing method according to various exemplary embodiments of the application described in the specification above.
An electronic device 130 according to this embodiment of the application is described below with reference to fig. 9. The electronic device 130 shown in fig. 9 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present application.
As shown in fig. 9, the electronic device 130 is embodied in the form of a general-purpose electronic device. Components of electronic device 130 may include, but are not limited to: the at least one processor 131, the at least one memory 132, and a bus 133 connecting the various system components, including the memory 132 and the processor 131.
Bus 133 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, and a local bus using any of a variety of bus architectures.
Memory 132 may include readable media in the form of volatile memory such as Random Access Memory (RAM) 1321 and/or cache memory 1322, and may further include Read Only Memory (ROM) 1323.
Memory 132 may also include a program/utility 1325 having a set (at least one) of program modules 1324, such program modules 1324 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
The electronic device 130 may also communicate with one or more external devices 134 (e.g., keyboard, pointing device, etc.), one or more devices that enable a user to interact with the electronic device 130, and/or any device (e.g., router, modem, etc.) that enables the electronic device 130 to communicate with one or more other electronic devices. Such communication may occur through an input/output (I/O) interface 135. Also, electronic device 130 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 136. As shown, network adapter 136 communicates with other modules for electronic device 130 over bus 133. It should be appreciated that although not shown in fig. 9, other hardware and/or software modules may be used in connection with electronic device 130, including, but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
In some possible embodiments, aspects of a data processing method provided by the present application may also be implemented in the form of a program product comprising program code for causing a computer device to carry out the steps of a data processing method according to the various exemplary embodiments of the application as described in the present specification, when the program product is run on a computer device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The program product for data processing of embodiments of the present application may employ a portable compact disc read only memory (CD-ROM) and comprise program code and may run on an electronic device. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the consumer electronic device, partly on the consumer electronic device, as a stand-alone software package, partly on the consumer electronic device, partly on the remote electronic device, or entirely on the remote electronic device or server. In the case of remote electronic devices, the remote electronic device may be connected to the consumer electronic device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external electronic device (e.g., connected through the internet using an internet service provider).
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such a division is merely exemplary and not mandatory. Indeed, the features and functions of two or more of the elements described above may be embodied in one element in accordance with embodiments of the present application. Conversely, the features and functions of one unit described above may be further divided into a plurality of units to be embodied.
Furthermore, although the operations of the methods of the present application are depicted in the drawings in a particular order, this is not required or suggested that these operations must be performed in this particular order or that all of the illustrated operations must be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (10)

1. A data processing method, applied to a terminal device, the method comprising:
Calling a public plug-in to process the received primary instruction to obtain a secondary instruction; the first-level instruction is used for indicating a command to be executed by the receiving terminal;
If the primary instruction is a public processing instruction, the secondary instruction is sent to the receiving terminal;
And if the primary instruction is a public processing and differentiation processing instruction, calling a plug-in unit corresponding to the receiving terminal to process the secondary instruction to obtain a tertiary instruction, and sending the tertiary instruction to the receiving terminal.
2. The method of claim 1, wherein the calling the common plug-in processes the received primary instruction to obtain the secondary instruction, the method further comprising:
analyzing the primary instruction to obtain a Uniform Resource Identifier (URI) corresponding to the primary instruction;
And determining the primary instruction as a common processing instruction or a common processing and differential processing instruction according to the URI of the primary instruction.
3. The method of claim 1, wherein before the calling the common plug-in to process the received primary instruction, the method further comprises:
And obtaining a plug-in corresponding to the pre-stored template equipment from a memory, and taking the plug-in of the template equipment as a public plug-in, wherein the template equipment is equipment with common characteristics with a plurality of receiving equipment.
4. The method of claim 1, wherein the calling the common plug-in to process the received primary instruction to obtain the secondary instruction comprises:
Calling the public plug-in to process the primary instruction based on a secondary instruction processing logic to obtain a secondary instruction;
wherein the secondary instruction processing logic is fetched according to the following method:
acquiring the execution sequence of codes for processing the primary instructions from a memory, and the inherent logic of the codes for processing the primary instructions of the terminal equipment;
And taking the execution sequence of the code for processing the primary instruction and the inherent logic of the code for processing the primary instruction as the secondary instruction processing logic.
5. The method of claim 1, wherein after the sending the secondary instruction to the receiving terminal, the method further comprises:
if the execution result sent by the receiving terminal is received within the preset time length, the receiving terminal is determined to be successfully controlled;
If the execution result sent by the receiving terminal is not received within the preset time length, determining that the control of the receiving terminal fails.
6. The method of claim 1, wherein the calling the plugin corresponding to the receiving terminal to process the second-level instruction to obtain a third-level instruction includes:
obtaining a plug-in corresponding to the receiving terminal from a memory, and taking the plug-in of the receiving equipment as a differentiation processing plug-in;
Performing differential processing on the second-level instruction based on a third-level instruction processing logic by adopting the differential processing plug-in to obtain a third-level instruction; the second-level instruction is used for obtaining a third-level instruction which can be processed by the receiving terminal;
Wherein the three-level instruction processing logic is obtained according to the following method:
acquiring the execution sequence of the codes of the secondary instructions processed by the receiving terminal and the inherent logic of the codes of the secondary instructions processed by the receiving terminal from a memory;
And taking the execution sequence of the code for processing the secondary instruction and the inherent logic of the code for processing the secondary instruction as the tertiary instruction processing logic.
7. The method of claim 1, wherein after the sending the tertiary instruction to the receiving terminal, the method further comprises:
if the execution result sent by the receiving terminal is received within the preset time length, the receiving terminal is determined to be successfully controlled;
If the execution result sent by the receiving terminal is not received within the preset time length, determining that the control of the receiving terminal fails.
8. A data processing apparatus for application to a terminal device, the apparatus comprising:
the first-level instruction processing module is used for calling the public plug-in to process the received first-level instruction to obtain a second-level instruction; the first-level instruction is used for indicating a command to be executed by the receiving terminal;
The secondary instruction sending module is used for sending the secondary instruction to the receiving terminal if the primary instruction is a public processing instruction;
and the third-level instruction sending module is used for calling a plug-in unit corresponding to the receiving terminal to process the second-level instruction if the first-level instruction is a public processing and differentiation processing instruction, obtaining a third-level instruction and sending the third-level instruction to the receiving terminal.
9. An electronic device comprising at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to implement the method of any one of claims 1 to 7.
10. A computer storage medium, characterized in that the computer storage medium stores a computer program for enabling a computer to perform the method according to any one of claims 1-7.
CN202211698225.XA 2022-12-28 2022-12-28 Data processing method and device, electronic equipment and storage medium Pending CN118295724A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211698225.XA CN118295724A (en) 2022-12-28 2022-12-28 Data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211698225.XA CN118295724A (en) 2022-12-28 2022-12-28 Data processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN118295724A true CN118295724A (en) 2024-07-05

Family

ID=91676590

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211698225.XA Pending CN118295724A (en) 2022-12-28 2022-12-28 Data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN118295724A (en)

Similar Documents

Publication Publication Date Title
CN110505162B (en) Message transmission method and device and electronic equipment
CN110609755A (en) Message processing method, device, equipment and medium for cross-block chain node
CN111181758A (en) Configuration file generation method and device
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN113658351B (en) Method and device for producing product, electronic equipment and storage medium
CN113347060B (en) Method, device and system for detecting power network fault based on process automation
CN109683942B (en) Script management method, script management device, script management medium and electronic equipment
CN111324364A (en) Method, device, equipment and storage medium for equipment management
CN112887355A (en) Service processing method and device for abnormal server
CN118295724A (en) Data processing method and device, electronic equipment and storage medium
CN115291928A (en) Task automatic integration method and device of multiple technology stacks and electronic equipment
CN114244427A (en) Method and device for checking optical fiber network port resources and computer readable medium
CN108874625B (en) Information processing method and device, electronic equipment and storage medium
CN113760712A (en) Test evaluation method and device
CN112148324A (en) Method, apparatus and computer-readable storage medium for upgrading electronic device
CN112613955A (en) Order processing method and device, electronic equipment and storage medium
CN113704228B (en) Method, device, electronic equipment and storage medium for field self-addition
CN110716915A (en) Method and device for operating database, electronic equipment and storage medium
CN110908763A (en) Acceptance method, device, equipment and storage medium
CN117591104B (en) Model generation method and device, electronic equipment and storage medium
CN113190600A (en) Multi-system data fusion method and application platform
CN111680867B (en) Resource allocation method and device and electronic equipment
CN115774706A (en) Database creation method and device, electronic equipment and storage medium
CN115185965A (en) Code warehouse operation method, system, device, equipment and storage medium
CN117827630A (en) Method and device for generating test script

Legal Events

Date Code Title Description
PB01 Publication