Controller system, data acquisition method, domain controller and storage medium
By introducing classification and acquisition cycle mechanisms into the controller system, periodically calling the underlying API and updating the local cache, the system is not smooth due to delayed calling of the underlying API in the existing technology, and more efficient data acquisition and system stability are achieved.
Patent Information
- Application Number
- CN202010860660.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-25
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2040-08-25
AI Technical Summary
In the prior art, there is a high delay when calling the underlying API directly, resulting in poor system operation, which is especially unsatisfied in application scenarios where high-speed operation or high real-time performance is high.
A controller system is provided, including a driver layer, a service layer, a bus, an information management layer, and an application layer. The service layer classifies the underlying API according to the preset classification method, sets the acquisition cycle according to the classification type, and periodically calls the underlying API to collect valid data and send it to the bus. The information management layer obtains data from the bus according to the preset update cycle and updates the local cache. When a data acquisition request is received, it obtains the corresponding data from the local cache and returns.
By periodically calling the underlying API and updating the local cache, the timeliness of data acquisition are improved, the system delay is reduced, and the system operation is improved.
Smart Images

Figure CN114090276B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer technology, and in particular relates to a controller system, a data acquisition method, a domain controller and a storage medium. Background Art
[0002] In the prior art, when the upper layer of the domain controller calls the underlying API (Application Program Interface), since the amount of information data processed by different APIs may be different, the time consumed when calling the underlying API is also different, resulting in the upper-layer application being unable to obtain the data information obtained by calling the underlying API in a timely manner. When the amount of data processed by the underlying API to be called is large, the call consumes a long time, which cannot meet the needs of high-speed running or high-real-time applications. In addition, when completing the API call operation corresponding to a certain application, other applications may also need to obtain the same or partially the same data information as the application. At this time, it is necessary to call the underlying API again to re-acquire the data information, which results in untimely acquisition of data information, and then causes the entire system to become stuck. Summary of the invention
[0003] The purpose of the present invention is to provide a controller system, a data acquisition method, a domain controller and a storage medium, aiming to solve the problem of unsmooth system operation caused by high latency when directly calling the underlying API in the prior art.
[0004] In one aspect, the present invention provides a controller system, the controller system comprising a driver layer, a service layer, a bus, an information management layer and an application layer, wherein:
[0005] The driver layer is used to provide the underlying API;
[0006] The service layer is used to classify the underlying API according to a preset classification method, set a collection period for the underlying API according to the classification type, call the underlying API corresponding to each classification type according to the collection period corresponding to each classification type to collect valid data, and send the collected valid data to the bus;
[0007] The application layer is used to send a data acquisition request;
[0008] The information management layer is used to obtain the valid data from the bus according to a preset update cycle, and to update the locally cached data based on the acquired valid data. When the data acquisition request is received, it is also used to obtain the data corresponding to the data acquisition request from the locally cached data and return it to the application layer.
[0009] Preferably, the system further comprises a cache layer, and the cache layer is used to store the valid data.
[0010] Preferably, the service layer is also used to encapsulate the underlying API for direct calling by the application layer.
[0011] On the other hand, the present invention provides a data acquisition method, which is applied to a controller system, wherein the controller system includes a driver layer, a service layer, a bus, an information management layer and an application layer, and the method includes the following steps:
[0012] The service layer calls the underlying API corresponding to each classification type provided by the driver layer according to the preset collection cycle corresponding to each classification type to collect valid data, and sends the collected valid data to the bus;
[0013] The information management layer obtains the valid data from the bus according to a preset update cycle, and updates the locally cached data according to the obtained valid data;
[0014] When the information management layer receives the data acquisition request sent by the application layer, the information management layer acquires data corresponding to the data acquisition request from the locally cached data and returns the data to the application layer.
[0015] Preferably, before the step of calling the underlying API corresponding to each classification type provided by the driver layer according to the preset collection cycle corresponding to each classification type, the service layer includes:
[0016] The service layer classifies the underlying API according to a preset classification method to obtain the underlying API corresponding to each classification type;
[0017] The collection period is set for the underlying API according to the classification type.
[0018] Preferably, after the step of sending the collected valid data to the bus, the method further comprises:
[0019] The service layer determines whether the valid data is sent successfully;
[0020] If the sending of the valid data fails, the service layer calls the underlying API again according to a preset recollection cycle to recollect the valid data, and sends the recollected valid data to the bus.
[0021] Preferably, the step of updating the locally cached data according to the acquired valid data includes:
[0022] Determine whether there is a difference between the valid data and the locally cached data;
[0023] If there is a difference, the locally cached data is updated.
[0024] Preferably, before the step of the information management layer acquiring data corresponding to the data acquisition request from the locally cached data and returning the data to the application layer, the step includes:
[0025] The application layer determines whether the data acquisition request meets a preset condition, wherein the preset condition is that the real-time requirement of data acquisition is high;
[0026] If the conditions are met, the application layer directly calls the API encapsulated by the service layer to obtain data corresponding to the data acquisition request;
[0027] If not satisfied, the application layer sends the data acquisition request to the information management layer.
[0028] On the other hand, the present invention further provides a domain controller, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0029] On the other hand, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0030] The present invention is applied to a controller system, which includes a driver layer, a service layer, a bus, an information management layer and an application layer. The service layer calls a bottom-level API corresponding to each classification type provided by the driver layer according to a preset collection cycle corresponding to each classification type to collect valid data, and sends the collected valid data to the bus. The information management layer obtains valid data from the bus according to a preset update cycle, and updates locally cached data according to the obtained valid data. When the information management layer receives a data acquisition request sent by the application layer, the information management layer obtains data corresponding to the data acquisition request from the locally cached data and returns it to the application layer, thereby improving the timeliness of data acquisition, and further improving the fluency and smoothness of the system during operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1A is a schematic diagram of the structure of a controller system provided in Embodiment 1 of the present invention;
[0032] Figure 1B is an example diagram of a data acquisition process based on the controller system provided in the first embodiment of the present invention;
[0033] Figure 2 is a flow chart of the implementation of the data acquisition method provided in the second embodiment of the present invention; and
[0034] Figure 3 It is a schematic diagram of the structure of a domain controller provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0036] The specific implementation of the present invention is described in detail below in conjunction with specific embodiments:
[0037] Embodiment 1:
[0038] Figure 1A The structure of the controller system provided in the first embodiment of the present invention is shown. For the convenience of description, only the parts related to the embodiment of the present invention are shown. The system 1 includes a driver layer 10, a service layer 11, a bus 12, an information management layer 13 and an application layer 14, wherein:
[0039] The driver layer 10 is used to provide a bottom layer API.
[0040] The service layer 11 is used to classify the underlying API according to a preset classification method, set a collection period for the underlying API according to the classification type, call the underlying API corresponding to each classification type according to the collection period corresponding to each classification type to collect valid data, and send the collected valid data to the bus.
[0041] Specifically, considering that different underlying APIs have different complexities, the amount of information data they process may be different, and accordingly, the time consumed when calling the underlying API is also different. Therefore, before collecting valid data, the service layer classifies the underlying API according to a preset classification method, and sets a collection cycle for the underlying API according to the classification type, so that underlying APIs of different classification types use different collection cycles, and then the service layer periodically calls the underlying API under each classification type according to the collection cycle corresponding to the classification type, thereby improving the timeliness of data acquisition. Among them, the collection cycle can be arbitrarily set according to the needs of the application layer. In order to ensure the timeliness of data acquisition and improve the refresh frequency, the collection cycle setting should meet the minimum time interval requirements for data acquisition by the application layer; the classification method can be a classification method based on the complexity of the underlying API, for example, the classification method can be classified according to the interface type of the underlying API, and accordingly, the classification type is the interface type, and the interface type can include IO (Input / Output), PWM (Pulse width modulation) and CAN (Controller Area Network), etc.
[0042] In the embodiment of the present invention, when valid data is collected, the service layer calls the system clock once to obtain the timestamp corresponding to the time when the valid data is collected, packages the collected valid data and the timestamp to obtain a real-time data packet, and sends the real-time data packet to the bus. When packaging the data, the valid data and the corresponding timestamp collected by calling each underlying API can be packaged separately. Preferably, all valid data and the corresponding timestamps under the same classification type are packaged to improve data processing efficiency.
[0043] After the step of sending the collected valid data to the bus, preferably, the service layer is also used to determine whether the valid data is sent successfully. If the valid data fails to be sent, the service layer calls the underlying API again according to the preset recollection cycle to recollect the valid data, and sends the recollected valid data to the bus to prevent data loss, thereby improving the timeliness of the information management layer to update data, and further improving the fluency and smoothness of the system during operation. Among them, the recollection cycle is shorter than the collection cycle.
[0044] Preferably, the service layer is also used to encapsulate the underlying API so that the application layer can directly call it.
[0045] The bus 12 is used to transmit valid data.
[0046] Specifically, the bus can be used to store real-time data packets. Preferably, the controller system further includes a cache layer, and the cache layer is used to store real-time data packets to increase the cache capacity.
[0047] The information management layer 13 is used to obtain valid data from the bus according to a preset update cycle, and to update the locally cached data based on the obtained valid data. When a data acquisition request is received, it is used to obtain data corresponding to the data acquisition request from the locally cached data and return it to the application layer.
[0048] Specifically, when updating the locally cached data according to the acquired valid data, the information management layer is used to compare the acquired valid data with the locally cached data to determine whether there is a difference between the valid data and the locally cached data. If there is a difference, the locally cached data is updated. If there is no difference, the locally cached data is not updated. In a specific implementation, the timestamp and data identifier corresponding to the valid data in the real-time data packet can be obtained, and the locally cached data packet corresponding to the data identifier can be obtained at the same time, and the timestamp corresponding to the data in the data packet can be obtained to determine whether the timestamp corresponding to the valid data is the same as the timestamp corresponding to the data in the data packet. If they are the same, it is determined that there is no difference between the valid data and the locally cached data, and the locally cached data packet is not updated. If they are different, it is determined that there is a difference between the valid data and the locally cached data, and the locally cached data packet is updated. Among them, the preset update cycle can also be set arbitrarily according to the needs of the application layer. The update cycle is usually set to be much smaller than the collection cycle to increase the refresh frequency of the data. The data identifier can include the above-mentioned classification type and may also include specific device information. If the data identifier in the real-time data packet includes the above-mentioned classification type, the locally cached data packet can establish a mapping relationship with the above-mentioned classification type, so as to quickly find the corresponding data packet in the local cache according to the data identifier in the real-time data packet.
[0049] The application layer 14 is used to send a data acquisition request.
[0050] Preferably, the application layer is also used to determine whether the data acquisition request meets the preset conditions. If so, the application layer directly calls the API encapsulated by the service layer to obtain the data corresponding to the data acquisition request. If not, the application layer sends a data acquisition request to the information management layer so that the application layer directly calls the API encapsulated by the service layer to collect data. Among them, the preset condition is that the real-time requirement of data acquisition is high.
[0051] It should be noted here that since most of the upper-layer applications of the controller system use the same underlying data, the service layer does not have too many tasks. Since the valid data collected by the service layer each time calling the underlying API can be supplied to multiple upper-layer applications, the system resources are effectively saved. In addition, in the process of product development, as the progress of development progresses, the cost is compressed in the later stage. When the chip solution is replaced, only the underlying driver of the corresponding chip needs to be updated, which can be used for the entire controller system, making the development efficiency higher.
[0052] like Figure 1B As shown, the application layer includes n applications, and the service layer divides the underlying API into m categories according to the interface type of the underlying API, including IO, PWM and CAN. Before the system runs, a corresponding update period Tup is set for the information management layer, so that the information management layer periodically updates the locally cached data according to the update period Tup. A corresponding collection period Tc is set for the underlying API of each interface type, so that the service layer periodically calls the underlying API to collect valid data according to the collection period Tc. For the convenience of explanation, the collection period corresponding to the underlying API of the interface type IO is represented by Tc1, the collection period corresponding to the underlying API of the interface type PWM is represented by Tc2, and the collection period corresponding to the underlying API of the interface type CAN is represented by The collection cycle is represented by Tcm. During the operation of the system, the service layer periodically calls the underlying API with an interface type of IO according to Tc1, periodically calls the underlying API with an interface type of PWM according to Tc2, and periodically calls the underlying API with an interface type of CAN according to Tcm. When valid data is collected, the valid data and the corresponding timestamp when the valid data is collected are sent to the bus. The information management layer periodically obtains valid data from the bus according to the update cycle Tup, and updates the locally cached data based on the obtained valid data. The locally cached data can be supplied to n applications in the application layer. When the information management layer receives a data acquisition request from an application in the application layer, it obtains the corresponding data from the locally cached data and returns it.
[0053] In an embodiment of the present invention, a controller system includes a driver layer, a service layer, a bus, an information management layer and an application layer. The driver layer is used to provide an underlying API. The service layer is used to classify the underlying API according to a preset classification method, set a collection period for the underlying API according to the classification type, call the underlying API corresponding to each classification type according to the collection period corresponding to each classification type to collect valid data, and send the collected valid data to the bus. The application layer is used to send a data acquisition request. The information management layer is used to obtain valid data from the bus according to a preset update period, and update the locally cached data according to the acquired valid data. When a data acquisition request is received, it is used to obtain data corresponding to the data acquisition request from the locally cached data and return it to the application layer, thereby improving the timeliness of data acquisition, and then improving the fluency and smoothness of the system during operation.
[0054] Embodiment 2:
[0055] Figure 2 The implementation process of the data acquisition method provided in the second embodiment of the present invention is shown. For the convenience of description, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:
[0056] In step S201, the service layer calls the underlying API corresponding to each classification type provided by the driver layer according to the preset collection period corresponding to each classification type to collect valid data, and sends the collected valid data to the bus.
[0057] The embodiment of the present invention is applicable to the controller system described in the first embodiment, and the controller system includes a driver layer, a service layer, a bus, an information management layer and an application layer. Considering that the complexity of different underlying APIs is different, the amount of information data processed by them may be different, and accordingly, the time consumed when calling the underlying API is also different. Therefore, before collecting valid data, the service layer classifies the underlying API according to a preset classification method, and sets a collection cycle for the underlying API according to the classification type, so that the underlying APIs of different classification types use different collection cycles, and then the service layer periodically calls the underlying API under each classification type according to the collection cycle corresponding to the classification type, thereby improving the timeliness of data acquisition. Among them, the collection cycle can be arbitrarily set according to the needs of the application layer. In order to ensure the timeliness of data acquisition and improve the refresh frequency, the collection cycle setting should meet the minimum time interval requirements for data acquisition by the application layer; the classification method can be a classification method based on the complexity of the underlying API, for example, the classification method can be classified according to the interface type of the underlying API, and accordingly, the classification type is the interface type, and the interface type can include IO (Input / Output), PWM (Pulse width modulation) and CAN (Controller Area Network), etc.
[0058] In the embodiment of the present invention, when valid data is collected, the service layer calls the system clock once to obtain the timestamp corresponding to the time when the valid data is collected, packages the collected valid data and the timestamp to obtain a real-time data packet, and sends the real-time data packet to the bus. When packaging the data, the valid data and the corresponding timestamp collected by calling each underlying API can be packaged separately. Preferably, all valid data and the corresponding timestamps under the same classification type are packaged to improve data processing efficiency.
[0059] After the step of sending the collected valid data to the bus, preferably, the service layer determines whether the valid data is sent successfully. If the valid data fails to be sent, the service layer calls the underlying API again according to the preset recollection cycle to recollect the valid data, and sends the recollected valid data to the bus to prevent data loss, thereby improving the timeliness of the information management layer to update data, and further improving the fluency and smoothness of the system during operation. Among them, the recollection cycle is shorter than the collection cycle.
[0060] In step S202, the information management layer obtains valid data from the bus according to a preset update period, and updates the locally cached data according to the obtained valid data.
[0061] In the embodiment of the present invention, the bus can be used to store real-time data packets. Preferably, the controller system further includes a cache layer, which is used to store real-time data packets to increase the cache capacity. If the bus is used to store real-time data packets, the information management layer obtains the real-time data packets from the bus according to a preset update cycle. If the controller system includes a cache layer, the information management layer obtains the real-time data packets from the cache layer through the bus according to a preset update cycle.
[0062] When updating the locally cached data according to the acquired valid data, the information management layer compares the acquired valid data with the locally cached data to determine whether there is a difference between the valid data and the locally cached data. If there is a difference, the locally cached data is updated. If there is no difference, the locally cached data is not updated. Specifically, the timestamp and data identifier corresponding to the valid data in the real-time data packet can be obtained, and the locally cached data packet corresponding to the data identifier can be obtained at the same time, and the timestamp corresponding to the data in the data packet can be obtained to determine whether the timestamp corresponding to the valid data is the same as the timestamp corresponding to the data in the data packet. If they are the same, it is determined that there is no difference between the valid data and the locally cached data, and the locally cached data packet is not updated. If they are different, it is determined that there is a difference between the valid data and the locally cached data, and the locally cached data is updated according to the valid data and the timestamp corresponding to the valid data. Among them, the preset update cycle can also be set arbitrarily according to the needs of the application layer. The update cycle is usually set to be much smaller than the collection cycle to increase the refresh frequency of the data. The data identifier can include the above-mentioned classification type and may also include specific device information. If the data identifier in the real-time data packet includes the above-mentioned classification type, the locally cached data packet can establish a mapping relationship with the above-mentioned classification type, so as to quickly find the corresponding data packet in the local cache according to the data identifier in the real-time data packet.
[0063] In step S203, when the information management layer receives the data acquisition request sent by the application layer, the information management layer acquires data corresponding to the data acquisition request from the locally cached data and returns it to the application layer.
[0064] In an embodiment of the present invention, when the information management layer receives a data acquisition request sent by the application layer, the data acquisition request is parsed. The parsing result usually includes a type identifier of the data to be acquired. According to the parsing result, the data corresponding to the data acquisition request is obtained from the locally cached data and returned to the application layer.
[0065] Before the information management layer obtains the data corresponding to the data acquisition request from the locally cached data and returns it to the application layer, preferably, the application layer determines whether the data acquisition request meets the preset conditions. If so, the application layer directly calls the API encapsulated by the service layer to obtain the data corresponding to the data acquisition request. If not, the application layer sends a data acquisition request to the information management layer, and the information management layer obtains the data corresponding to the data acquisition request from the locally cached data and returns it to the application layer, so that the application layer directly calls the API encapsulated by the service layer to collect data. Among them, the preset condition is that the real-time requirement for data acquisition is high.
[0066] It should be noted here that since most of the upper-layer applications of the controller system use the same underlying data, the service layer does not have too many tasks. Since the valid data collected by the service layer each time calling the underlying API can be supplied to multiple upper-layer applications, the system resources are effectively saved. In addition, in the process of product development, as the progress of development progresses, the cost is compressed in the later stage. When the chip solution is replaced, only the underlying driver of the corresponding chip needs to be updated, which can be used for the entire controller system, making the development efficiency higher.
[0067] In an embodiment of the present invention, the service layer calls the underlying API corresponding to each classification type provided by the driver layer according to a preset collection period corresponding to each classification type to collect valid data, and sends the collected valid data to the bus. The information management layer obtains valid data from the bus according to a preset update period, and updates the locally cached data based on the obtained valid data. When the information management layer receives a data acquisition request sent by the application layer, the information management layer obtains the data corresponding to the data acquisition request from the locally cached data and returns it to the application layer, thereby improving the timeliness of data acquisition and further improving the fluency and smoothness of the system during operation.
[0068] Embodiment three:
[0069] Figure 3 The structure of a domain controller provided in the third embodiment of the present invention is shown. For the convenience of description, only the part related to the embodiment of the present invention is shown.
[0070] The domain controller 3 of the embodiment of the present invention includes a processor 30, a memory 31, and a computer program 32 stored in the memory 31 and executable on the processor 30. When the processor 30 executes the computer program 32, the functions of each layer in the above system embodiment are realized, such as Figure 1A Alternatively, when the processor 30 executes the computer program 32, the steps in the above method embodiment are implemented, for example Figure 2 Steps S201 to S203 are shown.
[0071] In an embodiment of the present invention, the controller system includes a driver layer, a service layer, a bus, an information management layer and an application layer. The service layer calls the underlying API corresponding to each classification type provided by the driver layer according to a preset collection cycle corresponding to each classification type to collect valid data, and sends the collected valid data to the bus. The information management layer obtains valid data from the bus according to a preset update cycle, and updates the locally cached data based on the obtained valid data. When the information management layer receives a data acquisition request sent by the application layer, the information management layer obtains the data corresponding to the data acquisition request from the locally cached data and returns it to the application layer, thereby improving the timeliness of data acquisition, and further improving the fluency and smoothness of the system during operation.
[0072] Embodiment 4:
[0073] In an embodiment of the present invention, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the functions of each layer in the above system embodiment are realized, such as Figure 1A Alternatively, when the computer program is executed by a processor, the steps in the above method embodiment are implemented, for example Figure 2 Steps S201 to S203 are shown.
[0074] In an embodiment of the present invention, the controller system includes a driver layer, a service layer, a bus, an information management layer and an application layer. The service layer calls the underlying API corresponding to each classification type provided by the driver layer according to a preset collection cycle corresponding to each classification type to collect valid data, and sends the collected valid data to the bus. The information management layer obtains valid data from the bus according to a preset update cycle, and updates the locally cached data based on the obtained valid data. When the information management layer receives a data acquisition request sent by the application layer, the information management layer obtains the data corresponding to the data acquisition request from the locally cached data and returns it to the application layer, thereby improving the timeliness of data acquisition, and further improving the fluency and smoothness of the system during operation.
[0075] The computer-readable storage medium of the embodiment of the present invention may include any entity or device or recording medium capable of carrying computer program code, for example, ROM / RAM, magnetic disk, optical disk, flash memory and other memories.
[0076] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A controller system, characterized in that: The controller system includes a driver layer, a service layer, a bus, an information management layer and an application layer, wherein: The driver layer is used to provide the underlying API; The service layer is used to classify the underlying API according to a preset classification method, set a collection period for the underlying API according to the classification type, call the underlying API corresponding to each classification type according to the collection period corresponding to each classification type to collect valid data, and send the collected valid data to the bus; The application layer is used to send a data acquisition request; The information management layer is used to obtain the valid data from the bus according to a preset update cycle, and to update the locally cached data based on the acquired valid data. When the data acquisition request is received, it is also used to obtain the data corresponding to the data acquisition request from the locally cached data and return it to the application layer.
2. The system according to claim 1, characterized in that The system also includes a cache layer, and the cache layer is used to store the valid data.
3. The system according to claim 1, characterized in that The service layer is also used to encapsulate the underlying API for direct calling by the application layer.
4. A data acquisition method, applied to a controller system, characterized in that: The controller system includes a driver layer, a service layer, a bus, an information management layer and an application layer, and the method includes the following steps: The service layer calls the underlying API corresponding to each classification type provided by the driver layer according to the preset collection cycle corresponding to each classification type to collect valid data, and sends the collected valid data to the bus; The information management layer obtains the valid data from the bus according to a preset update cycle, and updates the locally cached data according to the obtained valid data; When the information management layer receives the data acquisition request sent by the application layer, the information management layer acquires data corresponding to the data acquisition request from the locally cached data and returns the data to the application layer.
5. The method according to claim 4, characterized in that Before the step of calling the underlying API corresponding to each classification type provided by the driver layer according to the preset collection cycle corresponding to each classification type, the step includes: The service layer classifies the underlying API according to a preset classification method to obtain the underlying API corresponding to each classification type; The collection period is set for the underlying API according to the classification type.
6. The method according to claim 4, characterized in that After the step of sending the collected valid data to the bus, the method further includes: The service layer determines whether the valid data is sent successfully; If the sending of the valid data fails, the service layer calls the underlying API again according to a preset recollection cycle to recollect the valid data, and sends the recollected valid data to the bus.
7. The method according to claim 4, characterized in that The step of updating the locally cached data according to the acquired valid data includes: Determine whether there is a difference between the valid data and the locally cached data; If there is a difference, the locally cached data is updated.
8. The method according to claim 4, characterized in that Before the step of the information management layer acquiring data corresponding to the data acquisition request from the locally cached data and returning the data to the application layer, the step includes: The application layer determines whether the data acquisition request meets a preset condition, wherein the preset condition is that the real-time requirement of data acquisition is high; If the conditions are met, the application layer directly calls the API encapsulated by the service layer to obtain data corresponding to the data acquisition request; If not satisfied, the application layer sends the data acquisition request to the information management layer.
9. A domain controller, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 4 to 8 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 4 to 8 are implemented.
Citation Information
Patent Citations
Application program processing method and device, storage medium and electronic equipment
CN107632697A
Signal processing method and device, computer equipment and storage medium
CN111294261A