Data information sending method and device, storage medium, and electronic device

By obtaining the target processor when the operating system is started and sending data information step by step, the problem of resource waste caused by the operating system receiving a large number of irrelevant messages is solved, and data processing is simplified and logically improved.

CN112579314BActive Publication Date: 2025-03-21BEIJING GRIDSUM TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201910944616.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-30
Publication Date
2025-03-21
Estimated Expiration
2039-09-30

AI Technical Summary

Technical Problem

The operating system receives a large number of irrelevant messages, resulting in waste of resources, and there is no reasonable solution to the existing technology.

Method used

At the start of the operating system, a target processor communicating with the operating system is obtained, which includes N-stage-by-step processors. According to the category of data information and the processing rules of the target processor, data information is distributed step by step, and filtered according to the rules of the subordinate processor each time it is issued.

Benefits of technology

By filtering data step by step, we ensure that the data received by the operating system is basically needed, solving the problem of resource waste, simplifying the data processing process, and improving logic and process standardization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112579314B_ABST
    Figure CN112579314B_ABST
Patent Text Reader

Abstract

An embodiment of the present application provides a method and device for sending data information, a storage medium, and an electronic device, wherein the method includes: during the process of operating system startup, obtaining a target processor that communicates with the operating system, wherein the target processor includes N levels of processors connected in sequence, N is an integer greater than 1, and the target processor is used to implement step-by-step processing of data information; according to the category of the data information and the processing rules corresponding to the target processor, the data information is sent to the target processor step by step, wherein the processing rules are used to indicate the category of the data information to be processed by the target processor, and each time the data information is sent, the messages to be sent are filtered according to the processing rules of the lower-level processor as the recipient, thereby solving the problem in the related art that the operating system may receive a large number of irrelevant messages, resulting in a waste of operating system resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method and device for sending data information, a storage medium, and an electronic device. Background Art

[0002] The operating system obtains specific business messages (possibly obtained from databases, MQ programming components, or other interfaces). The message types are different and they are all full messages. The following situation may occur: the business messages required by the final consumer of each message actually account for a very small proportion of the original message. In this way, the amount of business messages sent to the message consumer is large, and most of the business messages are not needed by the final message processor, that is, they are not related to the current operating system.

[0003] Regarding the problem in related technologies that the operating system receives a large number of irrelevant messages, resulting in a waste of operating system resources, there is currently no reasonable solution. Summary of the invention

[0004] The embodiments of the present application provide a method and device for sending data information, a storage medium, and an electronic device to at least solve the problem in the related art that the operating system may receive a large number of irrelevant messages, resulting in a waste of operating system resources.

[0005] According to one embodiment of the present application, a method for sending data information is provided, comprising: during the process of operating system startup, obtaining a target processor that communicates with the operating system, wherein the target processor includes N levels of processors connected in sequence, N is an integer greater than 1, and the target processor is used to implement step-by-step processing of data information; according to the category of the data information and the processing rules corresponding to the target processor, sending the data information to the target processor step by step, wherein the processing rules are used to indicate the category of the data information to be processed by the target processor, and each time the data information is sent, the message to be sent is filtered according to the processing rules of the lower-level processor as the recipient.

[0006] Optionally, during the process of starting the operating system, obtaining the target processor that communicates with the operating system includes: during the process of starting the operating system, searching for a processor connected to the operating system; among the processors connected to the operating system, searching for the processor including a target interface, wherein the target interface is configured according to preset rules, and the preset rules are used to implement step-by-step processing of the data information; and determining that the processor including the target interface is the target processor.

[0007] Optionally, after determining that the processor containing the target interface is the target processor, the method further includes: saving a topological structure diagram of the target processor according to the level at which the target processor processes the data information, wherein the topological structure diagram includes first-level processors to N-th-level processors arranged from top to bottom; saving the processing rules corresponding to the target processor, wherein the processing rules include at least one of the following: reference information of the target processor, method call information of the target processor, judgment conditions of the target processor, and operation options of the target processor.

[0008] Optionally, before sending the data information to the target processor step by step according to the category of the data information and the processing rules corresponding to the target processor, the method also includes: determining the category of the data information, wherein the category of the data information corresponds to the target processor, the category of the data information includes M levels of categories subdivided step by step, M is an integer greater than or equal to 1, the i-th level category of the data information corresponds to the j-th level processor, wherein 1≤i≤M, 1≤j≤N.

[0009] Optionally, after acquiring the target processor that communicates with the operating system, the method includes: intercepting the data information before the data information reaches any level of processor.

[0010] Optionally, after obtaining the target processor that communicates with the operating system, the method includes: obtaining error information in the data information before the data information reaches any level of processor; recording the content of the error information, wherein the content of the error information includes at least one of the following: the source of the error information, the type of the error information, and the target processor corresponding to the error information; and processing the error information.

[0011] Optionally, the processing of the error information includes: initiating a retry operation on the error information, wherein the retry operation includes: reissuing the error information; and stopping the retry operation when the retry operation reaches a preset number of times.

[0012] According to another embodiment of the present application, a data information sending device is also provided, including: a first acquisition module, used to obtain a target processor that communicates with the operating system during the startup of the operating system, wherein the target processor includes N levels of processors connected in sequence, N is an integer greater than 1, and the target processor is used to implement step-by-step processing of data information; a sending module, used to send the data information to the target processor step by step according to the category of the data information and the processing rules corresponding to the target processor, wherein the processing rules are used to indicate the category of the data information to be processed by the target processor, and each time the data information is sent, the message to be sent is filtered according to the processing rules of the lower-level processor as the recipient.

[0013] Optionally, the acquisition module includes: a first search unit, used to search for a processor connected to the operating system during the startup of the operating system; a second search unit, used to search for the processor including a target interface among the processors connected to the operating system, wherein the target interface is configured according to preset rules, and the preset rules are used to implement step-by-step processing of the data information; a determination unit, used to determine that the processor including the target interface is the target processor.

[0014] Optionally, the device also includes: a first saving module, used to save a topological structure diagram of the target processor according to the level at which the target processor processes the data information, wherein the topological structure diagram includes first-level processors to N-th-level processors arranged from top to bottom; a second saving module, used to save the processing rules corresponding to the target processor, wherein the processing rules include at least one of the following: reference information of the target processor, method call information of the target processor, judgment conditions of the target processor, and operation options of the target processor.

[0015] Optionally, the device also includes: a determination module, used to determine the category of the data information, wherein the category of the data information corresponds to the target processor, the category of the data information includes M levels of categories subdivided step by step, M is an integer greater than or equal to 1, the i-th level category of the data information corresponds to the j-th level processor, wherein 1≤i≤M, 1≤j≤N.

[0016] Optionally, the device further comprises: an interception module, configured to intercept the data information before the data information reaches any level of processor.

[0017] Optionally, the device also includes: a second acquisition module, used to acquire error information in the data information before the data information reaches any level of processor; a recording module, used to record the content of the error information, wherein the content of the error information includes at least one of the following: the source of the error information, the type of the error information, and the target processor corresponding to the error information; a processing module, used to process the error information.

[0018] Optionally, the processing module includes: a retry unit, used to initiate a retry operation on the error information, wherein the retry operation includes: reissuing the error information; and a stop unit, used to stop the retry operation when the retry operation reaches a preset number of times.

[0019] According to another embodiment of the present application, a computer-readable storage medium is provided for storing a program, and when the program is executed, it is used to implement the method for sending data information described in any one of the above method embodiments.

[0020] According to another embodiment of the present application, an electronic device is also provided, comprising at least one processor, at least one memory, and a bus; wherein the processor and the memory communicate with each other through the bus; and the processor is used to call program instructions in the memory to execute the error log printing method described in any one of the above method embodiments.

[0021] Through the embodiments of the present application, during the startup of the operating system, a target processor that communicates with the operating system is obtained, wherein the target processor includes N levels of processors connected in sequence, N is an integer greater than 1, and the target processor is used to implement step-by-step processing of data information; the data information is received through the first-level processor; according to the category of the data information and the processing rules corresponding to the target processor, the data information is sent to the target processor step by step, and by setting a set of processors for step-by-step processing, the data sent to the operating system is filtered layer by layer to ensure that the data information finally received by the operating system is basically the data information required by the operating system, which solves the problem in the related technology that the operating system will receive a large number of irrelevant messages, resulting in a waste of operating system resources, greatly reduces the waste of operating system resources, simplifies the data processing process, and improves the logic and process standardization of data processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0023] Figure 1is a flowchart of an optional method for sending data information according to an embodiment of the present application;

[0024] Figure 2 It is a schematic diagram of the hardware environment of an optional method for sending data information according to an embodiment of the present disclosure;

[0025] Figure 3 is a structural block diagram of an optional device for sending data information according to an embodiment of the present application;

[0026] Figure 4 is a schematic diagram of an optional target processor topology structure according to an embodiment of the present application;

[0027] Figure 5 This is an optional device structure block diagram according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0030] An embodiment of the present application provides a method for sending data information. Figure 1 is a flowchart of an optional method for sending data information in an embodiment of the present application, such as Figure 1 As shown, the method includes:

[0031] Step S102, during the process of starting the operating system, obtaining a target processor (the processor here refers to a message processor) that communicates with the operating system, wherein the target processor includes N levels of processors connected in stages, N is an integer greater than 1, and the target processor is used to implement stage-by-stage processing of data information;

[0032] Step S104, according to the category of the data information and the processing rules corresponding to the target processor, the data information is sent to the target processor step by step, wherein the processing rules are used to indicate the category of the data information to be processed by the target processor, and each time the data information is sent, the message to be sent is filtered according to the processing rules of the lower-level processor as the recipient.

[0033] Through the above method, during the startup of the operating system, a target processor that communicates with the operating system is obtained, wherein the target processor includes N levels of processors connected in sequence, N is an integer greater than 1, and the target processor is used to realize step-by-step processing of data information; the data information is received through the first-level processor; according to the category of the data information and the processing rules corresponding to the target processor, the data information is sent to the target processor step by step, and by setting a set of processors for step-by-step processing, the data sent to the operating system is filtered layer by layer to ensure that the data information finally received by the operating system is basically the data information required by the operating system, which solves the problem in the related technology that the operating system will receive a large number of irrelevant messages, resulting in a waste of operating system resources, greatly reduces the waste of operating system resources, simplifies the data processing process, and improves the logic and process standardization of data processing.

[0034] It should be noted that the target processor includes multiple levels of processors. The top-level first-level processor is used to receive the total data. It can be understood that the processing rules of the first-level processor are that it can process data of all categories, and then send the corresponding category of data to the second-level processor according to the processing rules of the second-level processor (that is, the data category processed by the second-level processor). This is equivalent to performing a filtering process on the first-level processor and sending the filtered data to the second-level processor. The second-level processor can then filter the data again and send it to the corresponding third-level processor, and so on, until it is divided into the smallest category. The processor at the bottom level starts to process the data. The processing of the data may include modification, deletion, addition, forwarding, etc., which is not limited to the embodiments of the present application.

[0035] Figure 2 FIG. 1 is a schematic diagram of a hardware environment of an optional method for sending data information in an embodiment of the present disclosure. Optionally, in this embodiment, the filtering information configuration method can be applied to Figure 2 In the hardware environment composed of the server 202 and the operating system 204 shown in FIG. Figure 1 The execution subject of each step shown can be but is not limited to the server 202. Figure 2As shown, the server 202 may include a multi-level processor. After receiving the data information, the server 202 filters the data information step by step. The filtering operation here can be filtering by setting keywords, or filtering by any other filtering method used in data processing. Finally, the data corresponding to the operating system 204 is sent to the operating system 204, and the operating system 204 performs forwarding, receiving, modifying, adding, deleting and other processing. The above-mentioned server 202 and operating system 204 can, but are not limited to, realize data interaction through a network. The above-mentioned network may include, but are not limited to, a wireless network or a wired network. Among them, the wireless network includes: Bluetooth, WIFI and other networks that realize wireless communication. The above-mentioned wired network may include, but are not limited to: a wide area network, a metropolitan area network, and a local area network. The above-mentioned operating system 204 can be any system that executes a computer program. The above is only an example, and this embodiment does not make any limitation to this.

[0036] The processing steps in the server 202 include:

[0037] Step S202, during the process of starting the operating system, obtaining a target processor that communicates with the operating system, wherein the target processor includes N levels of processors connected in sequence, N being an integer greater than 1, and the target processor is used to implement the step-by-step processing of data information;

[0038] Step S204, according to the category of the data information and the processing rules corresponding to the target processor, the data information is sent to the target processor step by step, wherein the processing rules are used to indicate the category of the data information to be processed by the target processor, and each time the data information is sent, the message to be sent is filtered according to the processing rules of the lower-level processor as the recipient.

[0039] Optionally, during the process of starting the operating system, obtaining the target processor that communicates with the operating system includes:

[0040] S1, during the boot process of the operating system, searching for a processor connected to the operating system;

[0041] S2, searching for a processor including a target interface among processors connected to the operating system, wherein the target interface is configured according to a preset rule, and the preset rule is used to implement step-by-step processing of data information;

[0042] S3, determining that the processor including the target interface is the target processor.

[0043] It should be noted that the target processor can be responsible for processing a certain node in the server. The specific business code is written by the user of the component. The user only needs to implement the corresponding Process interface. In other words, the processor that implements the process interface can be considered to have added a standard specification and can be used as a target processor. It can be found by the operating system and set in the topology diagram of the target processor.

[0044] Optionally, after determining that the processor including the target interface is the target processor, the method further includes: saving a topological structure diagram of the target processor according to the level of data information processed by the target processor, wherein the topological structure diagram includes a first-level processor to an N-th-level processor arranged from top to bottom; and saving processing rules corresponding to the target processor, wherein the processing rules include at least one of the following: reference information of the target processor, method call information of the target processor, judgment conditions of the target processor, and operation options of the target processor.

[0045] It should be noted that when the system starts, all implementation classes that implement the process interface will be scanned. These classes are saved in a map (equivalent to a topology diagram) and saved in the form of a singleton. When the system starts, all target processor combinations are scanned and saved. Save it in a list (directory table). For each node, such as a process node, it is necessary to save the reference to the process and the call of the process method. When (equivalent to the judgment condition) and choice (equivalent to the operation option) are also processed similarly. For example, the reference function and the calling function and calling method of the process interface of the target processor are saved, and the judgment condition can be saved. When the first keyword is contained, the first operation in the operation option is executed, and when the second keyword is contained, the second operation in the operation option is executed. The operation options here may include forwarding, receiving, modifying, adding, deleting and other processing, which is not limited in the embodiments of the present application.

[0046] Optionally, according to the category of the data information and the processing rules corresponding to the target processor, before sending the data information to the target processor step by step, the method also includes: determining the category of the data information, wherein the category of the data information corresponds to the target processor, the category of the data information includes M levels of categories subdivided step by step, M is an integer greater than or equal to 1, the i-th level category of the data information corresponds to the j-th level processor, wherein 1≤i≤M, 1≤j≤N.

[0047] For example, the data information received by the first-level processor A includes "Zhang San XXX" and "Li Si XXX". "Zhang San" and "Li Si" are two categories, corresponding to the second-level processor B and processor C respectively. Then "Zhang San's brother" and "Zhang San's sister" correspond to the third-level processors under processor B, processor B1 and processor B2 respectively.

[0048] Optionally, after acquiring the target processor that communicates with the operating system, the method includes: intercepting the data information before the data information reaches any level of processor.

[0049] For all target processors, a global interceptor can be added uniformly before executing data processing by configuration. Just create a class and implement the GobalInteceptor interface. The global interceptor can discard data before the data information is sent to the target processor, or send it to the target processor after modification. This interception action can be performed before the first-level processor receives the data information, or before the data information is sent to the j-th level processor, and this embodiment of the application does not limit this.

[0050] Optionally, after obtaining the target processor that communicates with the operating system, the method includes: obtaining error information in the data information before the data information reaches any level of processor; recording the content of the error information, wherein the content of the error information includes at least one of the following: the source of the error information, the type of the error information, and the target processor corresponding to the error information; and processing the error information.

[0051] Optionally, processing the error information includes: initiating a retry operation on the error information, wherein the retry operation includes: reissuing the error information; and stopping the retry operation when the retry operation reaches a preset number of times.

[0052] By setting a global error catcher, you can catch errors at any time, catch errors of any processor, and record the source, type, etc. For all target processors, you can configure them to handle them uniformly when exceptions are thrown. Just create a class and implement the GobalError interface.

[0053] Through the message retry mechanism, retries are performed after errors, and the number of retries is configurable. To configure whether this message needs to be retried when errors occur, you can directly add a @ReTry annotation to the final processing class of this class. When this process sends an error, it will be retried.

[0054] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0055] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0056] In this embodiment, a device for sending data information is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0057] Figure 3 is a structural block diagram of an optional data information sending device according to an embodiment of the present application, such as Figure 3 As shown, the device comprises:

[0058] A first acquisition module 302 is used to acquire a target processor that communicates with the operating system during the startup of the operating system, wherein the target processor includes N levels of processors connected in stages, N is an integer greater than 1, and the target processor is used to implement stage-by-stage processing of data information;

[0059] The sending module 304 is used to send the data information to the target processor step by step according to the category of the data information and the processing rules corresponding to the target processor, wherein the processing rules are used to indicate the category of the data information to be processed by the target processor, and each time the data information is sent, the message to be sent is filtered according to the processing rules of the lower-level processor as the recipient.

[0060] Optionally, the first acquisition module includes: a first search unit, used to search for a processor connected to the operating system during the startup of the operating system; a second search unit, used to search for the processor including a target interface among the processors connected to the operating system, wherein the target interface is configured according to preset rules, and the preset rules are used to implement step-by-step processing of the data information; a determination unit, used to determine that the processor including the target interface is the target processor.

[0061] Optionally, the device also includes: a first saving module, used to save a topological structure diagram of the target processor according to the level at which the target processor processes the data information, wherein the topological structure diagram includes first-level processors to N-th-level processors arranged from top to bottom; a second saving module, used to save the processing rules corresponding to the target processor, wherein the processing rules include at least one of the following: reference information of the target processor, method call information of the target processor, judgment conditions of the target processor, and operation options of the target processor.

[0062] Optionally, the device also includes: a determination module, used to determine the category of the data information, wherein the category of the data information corresponds to the target processor, the category of the data information includes M levels of categories subdivided step by step, M is an integer greater than or equal to 1, the i-th level category of the data information corresponds to the j-th level processor, wherein 1≤i≤M, 1≤j≤N.

[0063] Optionally, the device further comprises: an interception module, configured to intercept the data information before the data information reaches any level of processor.

[0064] Optionally, the device also includes: a second acquisition module, used to acquire error information in the data information before the data information reaches any level of processor; a recording module, used to record the content of the error information, wherein the content of the error information includes at least one of the following: the source of the error information, the type of the error information, and the target processor corresponding to the error information; a processing module, used to process the error information.

[0065] Optionally, the processing module includes: a retry unit, used to initiate a retry operation on the error information, wherein the retry operation includes: reissuing the error information; and a stop unit, used to stop the retry operation when the retry operation reaches a preset number of times.

[0066] The data information sending device includes a processor and a memory. The first acquisition module 302, the sending module 304, etc. are stored in the memory as program units. The processor executes the program units stored in the memory to implement corresponding functions.

[0067] The processor includes a kernel, which retrieves the corresponding program unit from the memory. The kernel can be set to one or more, and obtains the error string in the programming component, checks whether the string contains a preset keyword, and when there is no preset keyword, determines that the current error is not an error that needs to be filtered, which solves the problem in the related art that only one operating system can establish a connection based on the received message when the programming component is deployed on multiple machines, and other operating systems that receive the message continue to report errors, causing resource waste.

[0068] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0069] An embodiment of the present application provides a storage medium on which a program is stored. When the program is executed by a processor, the method for sending data information is implemented.

[0070] An embodiment of the present application provides a processor, which is used to run a program, wherein the method for sending data information is executed when the program is running.

[0071] Figure 4 is a schematic diagram of an optional target processor topology structure according to an embodiment of the present application, such as Figure 4 As shown, the target processor may include processor A (first-level processor), processor B (second-level processor), processor C (second-level processor), processor B-1 (third-level processor) and processor B-2 (third-level processor). Data information is received by processor A, and after identifying the category of the data information, it is found that the data information is type B data. After corresponding to the processing rules of processor B and processor C, it is determined that processor B is used to process type B data, so the received data information is sent to processor B. Processor B further identifies the category of the data information and finds that the data information contains type B-1 data and type B-2 data. After filtering and classification by processor B, the type B-1 data is sent to processor B-1 for processing, and the type B-2 data is sent to processor B-2 for processing.

[0072] The above is merely a specific example according to the embodiment of the present application. Of course, the target processor may also include any number of stages, such as two stages or four stages, and may be configured according to specific application scenarios.

[0073] Figure 5 This is an optional device structure block diagram according to an embodiment of the present application. The embodiment of the present application provides a device, wherein the device 50 includes at least one processor 501, at least one memory 502 connected to the processor, and a bus 503; wherein the processor and the memory communicate with each other through the bus; the processor is used to call the program instructions in the memory to execute the above-mentioned method for sending data information. The device in this article can be a server, PC, PAD, mobile phone, etc.

[0074] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing the following method steps:

[0075] S1, during the process of starting the operating system, obtaining a target processor that communicates with the operating system, wherein the target processor includes N levels of processors connected in stages, N is an integer greater than 1, and the target processor is used to implement stage-by-stage processing of data information;

[0076] S2, according to the category of the data information and the processing rules corresponding to the target processor, the data information is sent to the target processor step by step, wherein the processing rules are used to indicate the category of the data information to be processed by the target processor, and each time the data information is sent, the messages to be sent are filtered according to the processing rules of the lower-level processor as the recipient.

[0077] Optionally, the computer program product provided by the present application is also suitable for executing a program having the following method steps:

[0078] During the startup of the operating system, a processor connected to the operating system is searched; among the processors connected to the operating system, a processor including a target interface is searched, wherein the target interface is configured according to preset rules, and the preset rules are used to implement step-by-step processing of the data information; and the processor including the target interface is determined to be the target processor.

[0079] Optionally, the computer program product provided by the present application is also suitable for executing a program having the following method steps:

[0080] A topological structure diagram of the target processor is saved according to the level at which the target processor processes the data information, wherein the topological structure diagram includes a first-level processor to an N-th-level processor arranged from top to bottom; and the processing rules corresponding to the target processor are saved, wherein the processing rules include at least one of the following: reference information of the target processor, method call information of the target processor, judgment conditions of the target processor, and operation options of the target processor.

[0081] Optionally, the computer program product provided by the present application is also suitable for executing a program having the following method steps:

[0082] Determine a category of the data information, wherein the category of the data information corresponds to the target processor, the category of the data information includes M levels of categories subdivided step by step, M is an integer greater than or equal to 1, the i-th level category of the data information corresponds to the j-th level processor, wherein 1≤i≤M, 1≤j≤N.

[0083] Optionally, the computer program product provided by the present application is also suitable for executing a program having the following method steps:

[0084] Before the data information reaches any level of processor, the data information is intercepted.

[0085] Optionally, the computer program product provided by the present application is also suitable for executing a program having the following method steps:

[0086] Before the data information reaches any level of processor, error information in the data information is obtained; the content of the error information is recorded, wherein the content of the error information includes at least one of the following: the source of the error information, the type of the error information, and the target processor corresponding to the error information; and the error information is processed.

[0087] Optionally, the computer program product provided by the present application is also suitable for executing a program having the following method steps:

[0088] Initiate a retry operation on the error information, wherein the retry operation includes: reissuing the error information; when the retry operation reaches a preset number of times, stop the retry operation.

[0089] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0090] In a typical configuration, the device includes one or more processors (CPU), memory and bus. The device may also include input / output interface, network interface and the like.

[0091] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.

[0092] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0093] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0094] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0095] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for sending data information, characterized in that: include: During the process of starting the operating system, a target processor communicating with the operating system is obtained, wherein the target processor includes N levels of processors connected in stages, N is an integer greater than 1, and the target processor is used to implement stage-by-stage processing of data information; According to the category of the data information and the processing rule corresponding to the target processor, the data information is sent to the target processor step by step, wherein the processing rule is used to indicate the category of the data information to be processed by the target processor, and each time the data information is sent, the message to be sent is filtered according to the processing rule of the lower-level processor as the recipient; Before sending the data information to the target processor step by step according to the category of the data information and the processing rule corresponding to the target processor, the method for sending the data information further includes: Determine a category of the data information, wherein the category of the data information corresponds to the target processor, the category of the data information includes M-level categories subdivided level by level, M is an integer greater than or equal to 1, the i-th level category of the data information corresponds to the j-th level processor, wherein 1≤i≤M, 1≤j≤N; After obtaining the target processor communicating with the operating system, the method includes: obtaining error information in the data information before the data information reaches any level of processor; recording the content of the error information, wherein the content of the error information includes at least one of the following: the source of the error information, the type of the error information, and the target processor corresponding to the error information; processing the error information; Wherein, processing the error information includes: initiating a retry operation on the error information, wherein the retry operation includes: reissuing the error information; and stopping the retry operation when the retry operation reaches a preset number of times.

2. The method according to claim 1, characterized in that In the process of starting the operating system, obtaining a target processor that communicates with the operating system includes: During the startup of the operating system, searching for a processor connected to the operating system; Searching for the processor including a target interface among the processors connected to the operating system, wherein the target interface is configured according to a preset rule, and the preset rule is used to implement step-by-step processing of the data information; A processor including the target interface is determined as the target processor.

3. The method according to claim 2, characterized in that After determining that the processor including the target interface is the target processor, the method further includes: Saving a topological structure diagram of the target processor according to the level at which the target processor processes the data information, wherein the topological structure diagram includes a first-level processor to an N-th-level processor arranged from top to bottom; The processing rule corresponding to the target processor is saved, wherein the processing rule includes at least one of the following: reference information of the target processor, method call information of the target processor, judgment condition of the target processor, and operation option of the target processor.

4. The method according to any one of claims 1 to 3, characterized in that: After acquiring the target processor communicating with the operating system, the method includes: Before the data information reaches any level of processor, the data information is intercepted.

5. A device for sending data information, characterized in that: include: An acquisition module, used for acquiring a target processor communicating with the operating system during the startup of the operating system, wherein the target processor includes N levels of processors connected in stages, N being an integer greater than 1, and the target processor is used for implementing stage-by-stage processing of data information; A sending module, used for sending the data information to the target processor step by step according to the category of the data information and the processing rule corresponding to the target processor, wherein the processing rule is used to indicate the category of the data information to be processed by the target processor, and each time the data information is sent, the message to be sent is filtered according to the processing rule of the lower-level processor as the recipient; a determination module, configured to determine a category of the data information, wherein the category of the data information corresponds to the target processor, the category of the data information includes M-level categories subdivided level by level, M is an integer greater than or equal to 1, the i-th level category of the data information corresponds to the j-th level processor, wherein 1≤i≤M, 1≤j≤N; The data information sending device further comprises: a second acquisition module, used for acquiring error information in the data information before the data information reaches any level of processor; a recording module, used for recording the content of the error information, wherein the content of the error information comprises at least one of the following: the source of the error information, the type of the error information, and the target processor corresponding to the error information; a processing module, used for processing the error information; Wherein, the processing module includes: a retry unit, used to initiate a retry operation on the error information, wherein the retry operation includes: reissuing the error information; and a stop unit, used to stop the retry operation when the retry operation reaches a preset number of times.

6. A computer-readable storage medium, characterized in that: Used to store a program, which, when executed, is used to implement the method for sending data information as described in any one of claims 1 to 4.

7. An electronic device, characterized in that: The invention comprises at least one processor, at least one memory, and a bus; wherein the processor and the memory are connected via the bus to complete the communication between each other; the processor is used to call the program instructions in the memory, To perform the method as claimed in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Task processing method, server and client

    CN106303610A

  • Data processing method, module and system, and construction method and apparatus for data processing system

    CN107797861A