A data processing method and device, electronic equipment and storage medium
By differentiating the types of data to be processed and performing targeted data processing, the problem of wasted computing power caused by repeated processing is solved, and the computing efficiency and timeliness of vehicle control are improved.
Patent Information
- Application Number
- CN202310302259.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-03-24
AI Technical Summary
In the development of intelligent vehicles, as the number of applications corresponding to the regional controller increases, the same data processing is required multiple times when sending data through the data bus of the central computing platform, resulting in wasted computing power, low computing efficiency and performance, and affecting the timeliness of vehicle control.
By acquiring the data to be processed, it is divided into signal data to be processed and element data to be processed, and first and second data processing are performed separately. The data is sent to the application only when it is determined to be signal data, and sent to the data bus only when it is determined to be element data, thus avoiding duplicate processing.
It improves computational efficiency and performance, reduces wasted computing power, and enhances the timeliness of vehicle control.
Smart Images

Figure CN116279215B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a data processing method, apparatus, electronic device and storage medium. Background Technology
[0002] With the increasing intelligence and connectivity of automobiles, vehicles are gradually moving towards a distributed SOA (Service Oriented Architecture) architecture, consisting of a central computing platform and regional controllers. This allows for intelligent vehicle control through communication between the central computing platform and the corresponding applications on the regional controllers.
[0003] However, when data is sent to the application via the data bus in the central computing platform, the application needs to process the data (such as precision calculation or offset calculation) before it can use the data. Furthermore, when the application sends data to the data bus in the central computing platform, the application needs to process the data before sending it to the data bus.
[0004] However, with the development of automotive intelligence, the number of applications corresponding to area controllers is also increasing. When sending the same data to multiple applications corresponding to area controllers via the data bus in the central computing platform, each application needs to process the data individually before sending it to the data bus. In other words, as the number of applications increases, the same data needs to be processed multiple times, resulting in wasted computing power and reduced computing efficiency and performance. Summary of the Invention
[0005] This invention provides a data processing method, apparatus, electronic device, and storage medium that can avoid wasting computing power, improve computing efficiency and performance, and thus improve the timeliness of vehicle control.
[0006] According to one aspect of the present invention, a data processing method is provided, comprising:
[0007] Acquire the data to be processed; wherein the data to be processed includes signal data to be processed and element data to be processed;
[0008] If it is determined that the data to be processed is the signal data to be processed, the data to be processed is subjected to first data processing, and the result of the first data processing is sent to the application.
[0009] If the data to be processed is determined to be the data to be processed element, the data to be processed is subjected to a second data processing, and the result of the second data processing is sent to the data bus.
[0010] According to another aspect of the present invention, a data processing apparatus is provided, comprising:
[0011] A data acquisition module is used to acquire data to be processed; wherein, the data to be processed includes signal data to be processed and element data to be processed;
[0012] The first data processing module is used to perform first data processing on the data to be processed when it is determined that the data to be processed is the signal data to be processed, so as to send the first data processing result to the application.
[0013] The second data processing module is used to perform second data processing on the data to be processed when it is determined that the data to be processed is the data of the element to be processed, so as to send the second data processing result to the data bus.
[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0015] At least one processor; and
[0016] A memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the data processing method according to any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the data processing method described in any embodiment of the present invention.
[0019] The technical solution of this invention acquires data to be processed, performs a first data processing on the data to be processed when it is determined to be signal data to be processed, and sends the result of the first data processing to the application program. When it is determined to be element data to be processed, performs a second data processing on the data to be processed, and sends the result of the second data processing to the data bus. Thus, only one data processing is needed for the same data to be processed. This solves the problems of wasted computing power, low computing efficiency and performance caused by the need to perform the same data processing multiple times on the same data to be processed in the prior art. It avoids wasting computing power, improves computing efficiency and performance, and thus improves the timeliness of vehicle control.
[0020] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 This is a flowchart of a data processing method provided in Embodiment 1 of the present invention;
[0023] Figure 2 This is a flowchart of a data processing method provided in Embodiment 2 of the present invention;
[0024] Figure 3 This is an example flowchart of a data processing method provided in Embodiment 2 of the present invention;
[0025] Figure 4 This is a schematic diagram of a data processing device provided in Embodiment 3 of the present invention;
[0026] Figure 5 This is a schematic diagram of the structure of an electronic device that implements the data processing method of the present invention. Detailed Implementation
[0027] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0029] Example 1
[0030] Figure 1 This is a flowchart of a data processing method provided in Embodiment 1 of the present invention. This embodiment is applicable to situations where computing power is not wasted and computational efficiency and performance are improved. The method can be executed by a data processing device, which can be implemented through software and / or hardware, and can generally be directly integrated into the electronic device executing this method. The present invention does not limit the type of electronic device executing the data processing method. Specifically, as shown... Figure 1 As shown, this data processing method may specifically include the following steps:
[0031] S110. Obtain the data to be processed; wherein, the data to be processed includes signal data to be processed and element data to be processed.
[0032] The data to be processed can be data awaiting processing. The signal data to be processed can be signal data awaiting processing, such as vehicle speed signal data, engine speed signal data, or mileage signal data awaiting processing; this embodiment of the invention does not impose limitations on this. The element data to be processed can be element data awaiting processing. It is understood that the signal data to be processed can be data sent from the data bus in the central computing platform to the application program corresponding to the area controller. The element data to be processed can be data sent from the application program corresponding to the area controller to the data bus in the central computing platform.
[0033] In this embodiment of the invention, data to be processed is acquired. Specifically, the acquired data to be processed can be signal data to be processed or element data to be processed.
[0034] S120. If it is determined that the data to be processed is the signal data to be processed, the data to be processed is subjected to first data processing, and the first data processing result is sent to the application.
[0035] The first data processing can be any data processing performed on the signal data to be processed, such as offset calculation or precision calculation. This embodiment of the invention does not impose any limitations on this. Optionally, if the first data processing includes both offset calculation and precision calculation, precision calculation can be performed on the signal data to be processed first, and then offset calculation can be performed on the result data obtained from the precision calculation. The result of the first data processing can be the result obtained by performing the first data processing on the signal data to be processed. The application program can be any application program corresponding to any area controller. This embodiment of the invention does not impose any limitations on this.
[0036] In this embodiment of the invention, after acquiring the data to be processed, it can be further determined whether the data to be processed is signal data to be processed. If the data to be processed is signal data to be processed, the data to be processed is subjected to first data processing, and the result of the first data processing is sent to the application. This eliminates the need for the application to process the signal data to be processed, avoids performing the same data processing multiple times on the same signal data to be processed, avoids wasting computing power, and improves computing efficiency and performance.
[0037] S130. If it is determined that the data to be processed is the data to be processed element, the data to be processed is subjected to second data processing, and the result of the second data processing is sent to the data bus.
[0038] The second data processing can be data processing performed on the element data to be processed, such as offset calculation or precision calculation. This embodiment of the invention does not impose any limitations on this. Optionally, if the second data processing includes both offset calculation and precision calculation, the offset calculation can be performed on the element data to be processed first, and then the precision calculation can be performed on the result of the offset calculation. The result of the second data processing can be the result obtained by performing the second data processing on the element data to be processed. The data bus can be any data bus in the central computing platform, such as a CAN (Controller Area Network) bus. This embodiment of the invention does not impose any limitations on this.
[0039] In this embodiment of the invention, after acquiring the data to be processed, it can be further determined whether the data to be processed is the element data to be processed. If the data to be processed is the element data to be processed, a second data processing is performed on the data to be processed, and the result of the second data processing is sent to the data bus. This eliminates the need for the application program to process the element data to be processed, avoids performing the same data processing multiple times on the same element data to be processed, avoids wasting computing power, and improves computing efficiency and performance.
[0040] It should be noted that, Figure 1 This is merely a schematic diagram of one implementation method. The execution order of steps S120 and S130 is not limited in this embodiment of the invention.
[0041] The technical solution of this embodiment acquires the data to be processed, performs a first data processing on the data to be processed when it is determined that the data to be processed is signal data to be processed, and sends the first data processing result to the application program. When it is determined that the data to be processed is element data to be processed, performs a second data processing on the data to be processed, and sends the second data processing result to the data bus. Thus, only one data processing is needed for the same data to be processed. This solves the problems of wasted computing power, low computing efficiency and performance caused by the need to perform the same data processing multiple times on the same data to be processed in the prior art. It avoids wasting computing power, improves computing efficiency and performance, and thus improves the timeliness of vehicle control.
[0042] Example 2
[0043] Figure 2 This is a flowchart of a data processing method provided in Embodiment 2 of the present invention. This embodiment further refines the above-described technical solutions, providing various specific optional implementations for performing a first data processing on the data to be processed when it is determined that the data to be processed is the signal data to be processed, and performing a second data processing on the data to be processed when it is determined that the data to be processed is the element data to be processed. The technical solutions in this embodiment can be combined with various optional solutions in one or more of the above embodiments. For example... Figure 2 As shown, the method may include the following steps:
[0044] S210: Obtain the data to be processed, and if it is determined that the data to be processed is signal data to be processed, execute S220; if it is determined that the data to be processed is element data to be processed, execute S250.
[0045] S220. Perform first data processing on the data to be processed, and send the first data processing result to the application.
[0046] Optionally, the first data processing of the data to be processed may include: determining the attribute information of the signal data to be processed corresponding to the signal data to be processed; performing the first signal data processing on the signal data to be processed according to the attribute information of the signal data to be processed to obtain intermediate processed data corresponding to the signal data to be processed; determining the output data attribute information, and performing the second signal data processing on the intermediate processed data according to the output data attribute information to obtain the signal output data corresponding to the signal data to be processed.
[0047] The attribute information of the signal data to be processed can be attribute information of the signal data to be processed, such as the precision information or the offset information of the signal data to be processed, etc., and this embodiment of the invention does not limit this. The first signal data processing can be signal data processing performed on the signal data to be processed according to the attribute information of the signal data to be processed. The intermediate processing data can be the intermediate data obtained after the first signal data processing. It is understood that the intermediate processing data can be data with preset data attributes, wherein the preset data attributes can be pre-set according to business requirements. The output data attribute information can be the attribute information corresponding to the data output after the first data processing of the signal data to be processed. The second signal data processing can be signal data processing performed on the intermediate processing data according to the output data attribute information. The signal output data can be the output data obtained after the intermediate processing data is processed according to the output data attribute information. It is understood that the signal output data is also the result of the first data processing.
[0048] Specifically, after acquiring the data to be processed, it can be further determined whether the data to be processed is signal data to be processed. If the data to be processed is signal data to be processed, the corresponding signal data attribute information is determined. Based on the signal data attribute information, the signal data to be processed is subjected to first signal data processing to obtain intermediate processed data. Then, the output data attribute information is determined, and based on the output data attribute information, the intermediate processed data is subjected to second signal data processing to obtain signal output data. It can be understood that the output data attribute information can be attribute information corresponding to one or more output data, thus obtaining one or more signal output data. That is, one signal data to be processed can correspond to one or more signal output data.
[0049] For example, assuming the signal data to be processed is data A, and the attribute information of the signal data to be processed includes that the precision of data A is 10% and the displacement of data A is 3, then data A can be processed by the first signal data processing to obtain data B with a precision of 0 and a displacement of 0. Data B is also the intermediate processed data. Assuming the output data attribute information includes that the precision is 1% and the displacement is 2, then data B can be processed by the second signal data processing to obtain data C with a precision of 1% and a displacement of 2. Data C is also the signal output data.
[0050] Optionally, determining the output data attribute information may include: determining the target application corresponding to the signal data to be processed; and determining the output data attribute information based on the program data attribute information of the target application.
[0051] The target application can be one of multiple applications corresponding to each region controller. It is understood that there can be one or more target applications, and this embodiment of the invention does not impose any limitation on this. The program data attribute information can be the attribute information corresponding to the data required by the target application. It is understood that different applications can correspond to different data attribute information.
[0052] Specifically, after performing first signal data processing on the signal data to be processed based on the attribute information of the signal data to be processed to obtain intermediate processed data, the target application corresponding to the signal data to be processed can be further determined so as to determine the output data attribute information based on the program data attribute information of the target application.
[0053] Optionally, performing a first data processing on the data to be processed to send the first data processing result to the application may further include: if it is determined that the signal data to be processed includes multiple signals, determining the sub-signal data to be processed based on the signal data to be processed; performing the first data processing on each sub-signal data to obtain the sub-signal data processing result corresponding to each sub-signal data; and encapsulating the processing result of each sub-signal data to obtain encapsulated signal data to send the encapsulated signal data to the application.
[0054] The sub-signal data to be processed can be data corresponding to different signals within the signal data to be processed. For example, assuming the signal data to be processed includes vehicle speed and mileage signals, the data corresponding to the vehicle speed signal and the data corresponding to the mileage signal can be respectively determined as the sub-signal data to be processed. The sub-signal data processing result can be the result obtained by performing a first data processing on the sub-signal data to be processed. The encapsulated signal data can be the data obtained by encapsulating the processing results of each sub-signal data.
[0055] Specifically, after determining that the data to be processed is signal data to be processed, it can be further determined whether the signal data to be processed includes multiple signals. If the signal data to be processed includes multiple signals, the sub-signal data to be processed is determined based on the signal data to be processed. The first data processing is performed on each sub-signal data to obtain the sub-signal data processing result corresponding to each sub-signal data. The processing result of each sub-signal data is then encapsulated to obtain encapsulated signal data, which is then sent to the application.
[0056] Optionally, the data type of the first data processing result can be a structure type.
[0057] S230. Set the timing data of the timeout timer as the default data, and perform timeout timing through the timeout timer.
[0058] The timeout timer is used to determine whether the acquisition of communication data to be processed has timed out. The timing data can be the time obtained by timing using the timeout timer. The default data can be pre-set data, such as 0. It is understood that the data bus sends the communication data to be processed at a fixed transmission frequency; if the communication data to be processed is not acquired within the preset time, it can be determined that the communication data for that period is lost.
[0059] In this embodiment of the invention, after acquiring the data to be processed, it can be further determined whether the data to be processed is signal data to be processed, and when the data to be processed is signal data to be processed, the timing data of the timeout timer is determined as the default data, and the timeout timer is used to perform timeout timing.
[0060] It should be noted that the embodiments of the present invention do not limit the order of S220 and S230, that is, S220 and S230 can be performed simultaneously.
[0061] S240. If it is determined that the timing data of the timeout timer meets the preset signal data timeout period, timeout output data is generated and sent to the application.
[0062] The preset signal data timeout period can be a pre-defined timeout period for the signal data to be processed. The timeout output data can be the output data if no signal data to be processed is received within the preset signal data timeout period.
[0063] In this embodiment of the invention, after determining the timing data of the timeout timer as the default data, a timeout timer can be further used to perform timeout timing. When the timing data of the timeout timer meets the preset signal data timeout period, timeout output data is generated and sent to the application. Specifically, the timeout output data may include a timeout flag so that the application can identify the timeout output data through the timeout flag. It is understood that when the timing data of the timeout timer does not meet the preset signal data timeout period, it can be determined whether the signal data to be processed has been acquired. If the signal data to be processed is acquired, the timing data of the timeout timer is determined as the default data; otherwise, the timeout timing continues.
[0064] For example, after acquiring the signal data to be processed, the timeout timer is set to 0. Assuming the preset signal data timeout period is 10 seconds, if the timeout timer's count exceeds 10 seconds (i.e., if the signal data to be processed is not acquired within 10 seconds), timeout output data is generated. Conversely, if the signal data to be processed is acquired before the timeout timer's count exceeds 10 seconds (i.e., acquired within 10 seconds), the timeout timer's count can be set to 0, and the timeout timer can restart from 0.
[0065] S250. Perform a second data processing on the data to be processed, and send the second data processing result to the data bus.
[0066] Optionally, the second data processing of the data to be processed may include: determining bus data attribute information when it is determined that the data to be processed is element data to be processed; and performing element data processing on the element data to be processed based on the bus data attribute information to obtain element output data.
[0067] Here, the bus data attribute information can be the attribute information of the data defined in the data bus protocol of the central computing platform. Element data processing can be the processing of the element data to be processed according to the bus data attribute information. Element output data can be the output data obtained after processing the element data to be processed according to the bus data attribute information. It can be understood that the element output data is also the result of the second data processing.
[0068] Specifically, after acquiring the data to be processed, it can be further determined whether the data to be processed is element data to be processed, and if the data to be processed is element data to be processed, the bus data attribute information is determined, so as to process the element data to be processed according to the bus data attribute information to obtain element output data, and then send the element output data to the data bus.
[0069] Optionally, the second data processing of the data to be processed may further include: if it is determined that the data to be processed includes multiple elements, splitting the data to be processed into sub-data of the elements to be processed; and performing the second data processing on each sub-data of the elements to be processed.
[0070] The sub-data of the element to be processed can be data corresponding to different elements in the data of the element to be processed. For example, assuming that the data of the element to be processed includes vehicle speed and mileage elements, the data corresponding to the vehicle speed element and the data corresponding to the mileage element can be determined as sub-data of the element to be processed.
[0071] Specifically, after determining that the data to be processed is the element data to be processed, it can be further determined whether the element data to be processed includes multiple elements. If the element data to be processed includes multiple elements, the element data to be processed is split into sub-data to be processed, and each sub-data to be processed is subjected to second data processing, thereby sending the results of each second data processing to the data bus.
[0072] In a specific example of an embodiment of the present invention, the data processing method can be executed by an intermediate component between the application and the communication layer signal. Specifically, the signal data to be processed can be the communication signal data from the COM module to the RTE module in the communication layer, and the element data to be processed can be the communication content between application interfaces. Figure 3 This is an example flowchart of a data processing method provided in Embodiment 2 of the present invention, as follows: Figure 3 As shown, the data processing method may specifically include:
[0073] (1) When the data bus receives a signal and sends it to the application component, that is, when the data to be processed is the signal data to be processed, the signal data to be processed is first calculated in the intermediate component to obtain the correct actual value, and then the offset operation is performed to obtain the data without offset value, that is, the intermediate processing data is obtained. Then, according to the precision and offset corresponding to the application, the interface data is obtained, that is, the signal output data is obtained. Finally, when there are multiple interface data, the structure is encapsulated for RTE to call.
[0074] (2) When the application component sends the data to the bus, that is, when the data to be processed is the data to be processed element, if there is only one data to be processed element, the data to be processed element is first offset calculated in the intermediate component to obtain bus data 1, and then the accuracy is calculated to obtain bus data 2. The RTE interface is called to output bus data 2.
[0075] (3) When the application component sends the data to the bus, that is, when the data to be processed is the data to be processed element, if there are multiple data to be processed, the data to be processed is first split into multiple sub-data in the intermediate component, and then the offset is calculated to obtain multiple bus data 1, and then the precision is calculated to obtain multiple bus data 2. The RTE interface is called to output multiple bus data 2.
[0076] (4) When the data bus receives a signal and sends it to the application component, that is, when the data to be processed is the signal data to be processed, the interface timeout operation is performed and the preset signal data timeout period is determined to monitor the loss of the signal data to be processed within the preset signal data timeout period. In this way, timeout output data is generated when the signal data to be processed is lost, and the structure is encapsulated for RTE to call.
[0077] The above technical solution unifies the precision and offset calculations that need to be performed simultaneously by multiple applications through an intermediate component, and then provides them to multiple applications for reception, which improves code execution efficiency and chip computing performance. Moreover, it can support the output of multiple signals in a structure type through SOME / IP (Scalableservice-Oriented Middleware over IP, the core communication protocol for implementing SOA architecture in the automotive industry).
[0078] The technical solution of this embodiment acquires data to be processed. When the data to be processed is signal data, it performs first data processing on the data to be processed, and sends the result of the first data processing to the application. It also sets the timing data of a timeout timer as the default data and performs timeout timing. When the timing data of the timeout timer meets a preset signal data timeout period, it generates timeout output data and sends the timeout output data to the application. When the data to be processed is element data, it performs second data processing on the data to be processed, and sends the result of the second data processing to the data bus. Therefore, only one data processing is needed for the same data to be processed, solving the problems of wasted computing power, low computational efficiency, and low computational performance caused by performing the same data processing multiple times in the prior art. This avoids wasted computing power, improves computational efficiency and performance, and thus improves the timeliness of vehicle control.
[0079] Example 3
[0080] Figure 4 This is a schematic diagram of a data processing device provided in Embodiment 3 of the present invention, as shown below. Figure 4 As shown, the device includes: a data acquisition module 410, a first data processing module 420, and a second data processing module 430, wherein:
[0081] The data to be processed acquisition module 410 is used to acquire data to be processed; wherein, the data to be processed includes signal data to be processed and element data to be processed;
[0082] The first data processing module 420 is used to perform first data processing on the data to be processed when it is determined that the data to be processed is the signal data to be processed, so as to send the first data processing result to the application.
[0083] The second data processing module 430 is used to perform second data processing on the data to be processed when it is determined that the data to be processed is the data of the element to be processed, so as to send the second data processing result to the data bus.
[0084] The technical solution of this embodiment acquires the data to be processed, performs a first data processing on the data to be processed when it is determined that the data to be processed is signal data to be processed, and sends the first data processing result to the application program. When it is determined that the data to be processed is element data to be processed, performs a second data processing on the data to be processed, and sends the second data processing result to the data bus. Thus, only one data processing is needed for the same data to be processed. This solves the problems of wasted computing power, low computing efficiency and performance caused by the need to perform the same data processing multiple times on the same data to be processed in the prior art. It avoids wasting computing power, improves computing efficiency and performance, and thus improves the timeliness of vehicle control.
[0085] Optionally, the first data processing module 420 may be specifically used to: determine the attribute information of the signal data to be processed corresponding to the signal data to be processed when it is determined that the data to be processed is signal data to be processed; perform first signal data processing on the signal data to be processed according to the attribute information of the signal data to be processed to obtain intermediate processed data corresponding to the signal data to be processed; determine the output data attribute information, and perform second signal data processing on the intermediate processed data according to the output data attribute information to obtain signal output data corresponding to the signal data to be processed.
[0086] Optionally, the first data processing module 420 can be further used to: determine the target application corresponding to the signal data to be processed; and determine the output data attribute information based on the program data attributes of the target application.
[0087] Optionally, the first data processing module 420 may also be specifically used for: determining sub-signal data to be processed based on the signal data to be processed when it is determined that the signal data to be processed includes multiple signals; performing first data processing on each sub-signal data to obtain the sub-signal data processing result corresponding to each sub-signal data; encapsulating the processing result of each sub-signal data to obtain encapsulated signal data, and sending the encapsulated signal data to the application.
[0088] Optionally, the second data processing module 430 can be specifically used to: determine bus data attribute information when it is determined that the data to be processed is element data to be processed; and perform element data processing on the element data to be processed according to the bus data attribute information to obtain element output data.
[0089] Optionally, the second data processing module 430 can also be specifically used to: when it is determined that the element data to be processed includes multiple elements, split the element data to be processed into sub-data of the element to be processed; and perform second data processing on each sub-data of the element to be processed.
[0090] Optionally, the device can also be used to: when it is determined that the data to be processed is signal data to be processed, determine the timing data of the timeout timer as the default data, and perform timeout timing through the timeout timer; when it is determined that the timing data of the timeout timer meets the preset signal data timeout period, generate timeout output data and send the timeout output data to the application; wherein, the timeout output data includes a timeout flag.
[0091] The data processing apparatus provided in the embodiments of the present invention can execute the data processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.
[0092] Example 4
[0093] Figure 5 A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0094] like Figure 5 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0095] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0096] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as data processing methods.
[0097] In some embodiments, the data processing method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or mounted on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the data processing method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the data processing method by any other suitable means (e.g., by means of firmware).
[0098] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0099] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0100] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0101] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0102] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0103] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0104] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0105] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A data processing method, characterized in that, include: Acquire the data to be processed; wherein, the data to be processed includes signal data to be processed and element data to be processed; If it is determined that the data to be processed is the signal data to be processed, the data to be processed is subjected to first data processing, and the result of the first data processing is sent to the application. If it is determined that the data to be processed is the element data to be processed, the data to be processed is subjected to a second data processing, and the result of the second data processing is sent to the data bus. When it is determined that the data to be processed is the signal data to be processed, the first data processing on the data to be processed includes: If it is determined that the data to be processed is the signal data to be processed, the attribute information of the signal data to be processed corresponding to the signal data to be processed is determined; Based on the attribute information of the signal data to be processed, the signal data to be processed is subjected to first signal data processing to obtain intermediate processing data corresponding to the signal data to be processed. Determine the output data attribute information, and perform second signal data processing on the intermediate processing data according to the output data attribute information to obtain the signal output data corresponding to the signal data to be processed; When it is determined that the data to be processed is the element data to be processed, the second data processing on the data to be processed includes: If the data to be processed is determined to be the element data to be processed, the bus data attribute information is determined; Based on the bus data attribute information, the element data to be processed is processed to obtain element output data.
2. The method according to claim 1, characterized in that, The determination of output data attribute information includes: Determine the target application corresponding to the signal data to be processed; The output data attribute information is determined based on the program data attributes of the target application.
3. The method according to claim 1, characterized in that, The step of performing a first data processing on the data to be processed when it is determined that the data to be processed is the signal data to be processed, and sending the first data processing result to the application, further includes: If it is determined that the signal data to be processed includes multiple signals, the sub-signal data to be processed is determined based on the signal data to be processed. Perform the first data processing on each of the sub-signal data to be processed to obtain the sub-signal data processing result corresponding to each of the sub-signal data to be processed. The processing results of each sub-signal data are encapsulated to obtain encapsulated signal data, which is then sent to the application.
4. The method according to claim 1, characterized in that, The step of performing a second data processing on the data to be processed when it is determined that the data to be processed is the element data to be processed further includes: If it is determined that the data to be processed includes multiple elements, the data to be processed is split into sub-data of the elements to be processed. The second data processing is performed on each of the sub-data of the element to be processed.
5. The method according to claim 1, characterized in that, The method further includes: If it is determined that the data to be processed is the signal data to be processed, the timing data of the timeout timer is determined as the default data, and the timeout timer is used to perform timeout timing. If the timing data of the timeout timer meets the preset signal data timeout period, timeout output data is generated and sent to the application; wherein, the timeout output data includes a timeout identifier.
6. A data processing apparatus, characterized in that, include: A data acquisition module is used to acquire data to be processed; wherein, the data to be processed includes signal data to be processed and element data to be processed; The first data processing module is used to perform first data processing on the data to be processed when it is determined that the data to be processed is the signal data to be processed, so as to send the first data processing result to the application. The second data processing module is used to perform second data processing on the data to be processed when it is determined that the data to be processed is the data of the element to be processed, so as to send the second data processing result to the data bus. The first data processing module is specifically configured to: when it is determined that the data to be processed is the signal data to be processed, determine the signal data attribute information corresponding to the signal data to be processed; perform first signal data processing on the signal data to be processed according to the signal data attribute information to obtain intermediate processing data corresponding to the signal data to be processed; determine output data attribute information, and perform second signal data processing on the intermediate processing data according to the output data attribute information to obtain signal output data corresponding to the signal data to be processed; The second data processing module is specifically used for: determining bus data attribute information when it is determined that the data to be processed is element data to be processed; and performing element data processing on the element data to be processed according to the bus data attribute information to obtain element output data.
7. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the data processing method according to any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the data processing method according to any one of claims 1-5.
Citation Information
Patent Citations
Neurological Data Processing
US20200005932A1
Picture signal recording and reproducing apparatus and picture signal recording and reproducing method
US6339677B1
