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

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

Info

Publication number
CN116279215A
CN116279215A CN202310302259.0A CN202310302259A CN116279215A CN 116279215 A CN116279215 A CN 116279215A CN 202310302259 A CN202310302259 A CN 202310302259A CN 116279215 A CN116279215 A CN 116279215A
Authority
CN
China
Prior art keywords
data
processed
signal
data processing
signal data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310302259.0A
Other languages
Chinese (zh)
Inventor
揣孟洋
李长龙
孔祥明
李想
王达
张旭东
刘晓东
于立娇
冯舒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FAW Group Corp
Original Assignee
FAW Group Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by FAW Group Corp filed Critical FAW Group Corp
Priority to CN202310302259.0A priority Critical patent/CN116279215A/en
Publication of CN116279215A publication Critical patent/CN116279215A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • B60R16/023Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for transmission of signals between vehicle parts or subsystems
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a data processing method, a data processing device, electronic equipment and a storage medium. The data processing method specifically comprises the following steps: acquiring data to be processed; wherein the data to be processed comprises signal data to be processed and element data to be processed; under the condition that the data to be processed is the signal data to be processed, performing first data processing on the data to be processed to send a first data processing result to an application program; and under the condition that the data to be processed is the element data to be processed, performing second data processing on the data to be processed, and sending a second data processing result to a data bus. The technical scheme of the embodiment of the invention can avoid the waste of calculation force and improve the calculation efficiency and calculation performance, thereby improving the timeliness of vehicle control.

Description

Data processing method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a data processing method, a data processing device, electronic equipment and a storage medium.
Background
With the popularity of car intellectualization and networking, cars are gradually entering a distributed architecture of SOA (Service Oriented Architecture, a service oriented architecture) of a central computing platform+regional controller. Therefore, intelligent control of the vehicle can be realized through communication between the central computing platform and the application programs corresponding to the regional controllers.
However, when data is transmitted to an application program through a data bus in a central computing platform, the application program needs to first perform data processing (such as precision calculation or offset calculation) on the data to apply the data. Moreover, when data is transmitted to a data bus in a central computing platform by an application program, the application program needs to perform data processing on the data before the data is transmitted to the data bus.
However, with the development of the intelligence of the automobile, the number of application programs corresponding to the regional controllers is increasing, when the same data is sent to the application programs corresponding to the regional controllers through the data bus in the central computing platform, the application programs are required to perform data processing independently, and each application program is required to perform data processing on the data to send the data to the data bus. That is, as the number of applications increases, the same data needs to be processed multiple times, resulting in a waste of computation power, and thus, the computation efficiency and computation performance are reduced.
Disclosure of Invention
The embodiment of the invention provides a data processing method, a data processing device, electronic equipment and a storage medium, which can avoid the waste of calculation force and improve the calculation efficiency and calculation performance, thereby improving the timeliness of vehicle control.
According to an aspect of the present invention, there is provided a data processing method including:
acquiring data to be processed; wherein the data to be processed comprises signal data to be processed and element data to be processed;
under the condition that the data to be processed is the signal data to be processed, performing first data processing on the data to be processed to send a first data processing result to an application program;
and under the condition that the data to be processed is the element data to be processed, performing second data processing on the data to be processed, and sending a second data processing result to a data bus.
According to another aspect of the present invention, there is provided a data processing apparatus comprising:
the data acquisition module to be processed is used for acquiring the data to be processed; wherein the data to be processed comprises signal data to be processed and element data to be processed;
the first data processing module is used for performing first data processing on the data to be processed under the condition that the data to be processed are determined to be the signal data to be processed, so as to send a first data processing result to an application program;
and the second data processing module is used for carrying out second data processing on the data to be processed under the condition that the data to be processed is determined to be the element data to be processed, so as to send a second data processing result to a data bus.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the data processing method according to any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute a data processing method according to any one of the embodiments of the present invention.
According to the technical scheme, the data to be processed is obtained, the first data processing is carried out on the data to be processed under the condition that the data to be processed is determined to be the signal data to be processed, so that the first data processing result is sent to an application program, the second data processing is carried out on the data to be processed under the condition that the data to be processed is determined to be the element data to be processed, and the second data processing result is sent to a data bus, so that the same data to be processed only needs to be processed once, the problems of low calculation force waste, low calculation efficiency and calculation performance and the like caused by the fact that the same data to be processed for a plurality of times in the prior art are solved, the waste of calculation force is avoided, the calculation efficiency and the calculation performance are improved, and the timeliness of vehicle control is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a data processing method according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a data processing method according to a second embodiment of the present invention;
FIG. 3 is a flowchart illustrating a data processing method according to a second embodiment of the present invention;
FIG. 4 is a schematic diagram of a data processing apparatus according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device implementing a data processing method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a data processing method according to an embodiment of the present invention, where the method is applicable to situations of avoiding waste of computing power and improving computing efficiency and computing performance, and the method may be performed by a data processing apparatus, where the apparatus may be implemented by software and/or hardware, and may generally be directly integrated into an electronic device for executing the method, and the embodiment of the present invention does not limit types of electronic devices for executing the data processing method. Specifically, as shown in fig. 1, the data processing method specifically may include the following steps:
S110, acquiring data to be processed; wherein the data to be processed comprises signal data to be processed and element data to be processed.
Wherein the data to be processed may be data to be processed. The signal data to be processed may be signal data to be processed, for example, vehicle speed signal data, rotation speed signal data, mileage signal data, or the like, which is not limited in the embodiment of the present invention. The element data to be processed may be element data to be processed. It will be appreciated that the signal data to be processed may be data sent by a data bus in the central computing platform to the application corresponding to the zone controller. The element data to be processed may be data sent by an application program corresponding to the zone controller to a data bus in the central computing platform.
In the embodiment of the invention, the data to be processed is obtained, and specifically, the obtained data to be processed may be signal data to be processed or element data to be processed.
And S120, under the condition that the data to be processed is the signal data to be processed, performing first data processing on the data to be processed, and sending a first data processing result to an application program.
The first data processing may be data processing performed on the signal data to be processed, for example, offset calculation may be performed on the signal data to be processed, or accuracy calculation may be performed on the signal data to be processed, which is not limited in the embodiment of the present invention. Alternatively, if the first data processing includes both offset calculation and precision calculation, the precision calculation may be performed on the signal data to be processed first, and then the offset calculation may be performed on the result data obtained by the precision calculation. The first data processing result may be a result obtained by performing first data processing on the signal data to be processed. The application program may be any application program corresponding to any area controller, which is not limited in this embodiment of the present invention.
In the embodiment of the invention, after the data to be processed is acquired, whether the data to be processed is the signal data to be processed can be further determined, and when the data to be processed is the signal data to be processed, the first data processing result is sent to the application program, so that the application program is not required to process the data of the signal data to be processed, the same data processing is avoided for a plurality of times, the waste of calculation power is avoided, and the calculation efficiency and the calculation performance are improved.
And S130, under the condition that the data to be processed is the element data to be processed, performing second data processing on the data to be processed, and sending a second data processing result to a data bus.
The second data processing may be data processing performed on the element data to be processed, for example, offset calculation may be performed on the element data to be processed, precision calculation may be performed on the element data to be processed, and the embodiment of the present invention is not limited to this. Alternatively, if the second data processing includes both offset calculation and precision calculation, the element data to be processed may be first subjected to offset calculation, and then the result data obtained by the offset calculation may be subjected to precision calculation. The second data processing result may be a result of performing second data processing on the element data to be processed. The data bus may be any data bus in a central computing platform, for example, may be a CAN (Controller Area Network ) bus, which is not limited by the embodiment of the present invention.
In the embodiment of the invention, after the data to be processed is acquired, whether the data to be processed is the element data to be processed can be further determined, and when the data to be processed is the element data to be processed, the second data processing result is sent to the data bus, so that the application program is not required to process the element data to be processed, the same data processing is not required to be performed on the same element data to be processed for multiple times, the waste of calculation power is avoided, and the calculation efficiency and the calculation performance are improved.
It should be noted that fig. 1 is only a schematic diagram of one implementation, and the execution sequence of step S120 and step S130 is not limited in the embodiment of the present invention.
According to the technical scheme, the data to be processed is obtained, first data processing is conducted on the data to be processed under the condition that the data to be processed is determined to be the signal data to be processed, so that a first data processing result is sent to an application program, second data processing is conducted on the data to be processed under the condition that the data to be processed is determined to be the element data to be processed, and the second data processing result is sent to a data bus, so that the same data to be processed only needs to be processed once, the problems that in the prior art, due to the fact that the same data to be processed for multiple times, the calculation force is wasted, the calculation efficiency is low, the calculation performance is low and the like are solved, the waste of the calculation force is avoided, the calculation efficiency and the calculation performance are improved, and the timeliness of vehicle control is improved.
Example two
Fig. 2 is a flowchart of a data processing method provided by a second embodiment of the present invention, where the foregoing technical solutions are further refined, and various specific alternative implementations of performing first data processing on the data to be processed when the data to be processed is determined to be the signal data to be processed, and performing second data processing on the data to be processed when the data to be processed is determined to be the element data to be processed are provided. The technical solution in this embodiment may be combined with each of the alternatives in one or more embodiments described above. As shown in fig. 2, the method may include the steps of:
S210, acquiring data to be processed, and executing S220 under the condition that the data to be processed is determined to be signal data to be processed; in case that the data to be processed is determined to be element data to be processed, S250 is performed.
S220, performing first data processing on the data to be processed, and sending a first data processing result to an application program.
Optionally, performing the first data processing on the data to be processed may include: determining attribute information of signal data to be processed corresponding to the signal data to be processed; performing 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 processing data corresponding to the signal data to be processed; determining output data attribute information, and performing 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 attribute information of the signal data to be processed may be attribute information of the signal data to be processed, for example, may be precision information of the signal data to be processed, or may be offset information of the signal data to be processed, which is not limited in the embodiment of the present invention. The first signal data processing may be signal data processing performed on the signal data to be processed according to attribute information of the signal data to be processed. The intermediate processing data may be intermediate data obtained after the first signal data processing. It is understood that the intermediate processing data may be data having a preset data attribute, where the preset data attribute may be preset according to a service requirement. The output data attribute information may be attribute information corresponding to data output after the first data processing is performed on the signal data to be processed. The second signal data processing may be signal data processing performed on the intermediate processing data according to the output data attribute information. The signal output data may be output data obtained after signal data processing is performed on the intermediate processing data according to the output data attribute information. It will be appreciated that the signal outputs data, i.e. the first data processing result.
Specifically, after the data to be processed is obtained, whether the data to be processed is the signal data to be processed or not can be further determined, and when the data to be processed is the signal data to be processed, attribute information of the signal data to be processed corresponding to the signal data to be processed is determined, so that first signal data processing is performed on the signal data to be processed according to the attribute information of the signal data to be processed to obtain intermediate processing data, and output data attribute information is determined, so that second signal data processing is performed on the intermediate processing data according to the attribute information of the output data to obtain signal output data. It will be appreciated that the output data attribute information may be attribute information corresponding to one or more output data, and one or more signal output data may be obtained. I.e. one signal data to be processed, may correspond to one or more signal output data.
For example, assuming that 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 the data a is 10% and the displacement of the data a is 3, the data a may be subjected to first signal data processing to obtain data B with precision of 0 and displacement of 0, and the data B is intermediate processing data. Assuming that the output data attribute information includes 1% precision and 2 shift, the second signal data processing may be performed on the data B to obtain data C with 1% precision and 2 shift, that is, signal output data.
Optionally, determining the output data attribute information may include: determining a target application program corresponding to the signal data to be processed; and determining output data attribute information according to the program data attribute information of the target application program.
The target application program may be a target application program in a plurality of application programs corresponding to the respective area controllers. It will be appreciated that the target application may be one or more, and the embodiments of the present invention are not limited in this respect. The program data attribute information may be attribute information corresponding to data required by the target application program. It is understood that different applications may correspond to different data attribute information.
Specifically, after the first signal data processing is performed on the signal data to be processed according to the attribute information of the signal data to be processed to obtain the intermediate processing data, a target application program corresponding to the signal data to be processed can be further determined, so that the output data attribute information is determined according to the program data attribute information of the target application program.
Optionally, performing first data processing on the data to be processed to send a result of the first data processing to the application program, and further includes: determining sub-signal data to be processed according to the signal data to be processed under the condition that the signal data to be processed comprises a plurality of signals; performing first data processing on each piece of sub-signal data to be processed to obtain a sub-signal data processing result corresponding to each piece of sub-signal data to be processed; and carrying out data encapsulation on the processing results of the sub-signal data to obtain encapsulated signal data, and sending the encapsulated signal data to an application program.
The sub-signal data to be processed may be data corresponding to different signals in the signal data to be processed. For example, assuming that the signal data to be processed includes a vehicle speed signal and a mileage signal, data corresponding to the vehicle speed signal and data corresponding to the mileage signal may be determined as sub-signal data to be processed, respectively. The sub-signal data processing result may be a result obtained by performing the first data processing on the sub-signal data to be processed. The package signal data may be data obtained by data-packaging the processing results of the respective sub-signal data.
Specifically, after determining that the to-be-processed data is to-be-processed signal data, whether the to-be-processed signal data includes a plurality of signals or not may be further determined, and when the to-be-processed signal data includes a plurality of signals, to-be-processed sub-signal data is determined according to the to-be-processed signal data, so as to perform first data processing on each to-be-processed sub-signal data to obtain a sub-signal data processing result corresponding to each to-be-processed sub-signal data, thereby performing data encapsulation on each sub-signal data processing result to obtain encapsulated signal data, and further sending the encapsulated signal data to an application program.
Alternatively, the data type of the first data processing result may be data of the structure type.
S230, determining the timing data of the timeout timer as default data, and performing timeout timing through the timeout timer.
The timeout timer may be a timer for determining whether acquisition of the communication data to be processed has timed out, among other things. The timing data may be time data obtained by counting using a timeout timer. The default data may be preset data, for example, may be 0. It will be appreciated that the data bus transmits the communication data to be processed at a fixed transmission frequency, and if the communication data to be processed is not acquired within a preset time period, it may be determined that the communication data in the time period is lost.
In the embodiment of the invention, after the data to be processed is acquired, whether the data to be processed is the signal data to be processed or not can be further determined, the timing data of the timeout timer is determined to be default data when the data to be processed is the signal data to be processed, and the timeout is performed through the timeout timer.
It should be noted that the embodiment of the present invention is not limited to the order of S220 and S230, that is, S220 and S230 may be performed synchronously.
And S240, generating timeout output data to send the timeout output data to the application program under the condition that the timing data of the timeout timer meets the timeout period of preset signal data.
The preset signal data timeout period may be a preset timeout period of allowed signal data to be processed. The timeout output data may be output data in the case where the signal data to be processed is not received within a preset signal data timeout period.
In the embodiment of the invention, after the timing data of the timeout timer is determined as default data, the timeout timer can be further used for performing timeout timing, and timeout output data is generated when the timing data of the timeout timer meets the timeout period of the preset signal data so as to send the timeout output data to the application program. Specifically, the timeout output data may include a timeout identifier, so that the application may identify the timeout output data through the timeout identifier. It can be understood that when the timing data of the timeout timer does not meet the timeout period of the preset signal data, whether the signal data to be processed is acquired or not can be determined, if the signal data to be processed is acquired, the timing data of the timeout timer is determined as default data, and if the signal data to be processed is not acquired, the timeout is continued.
For example, after the signal data to be processed is acquired, the timing data of the timeout timer is set to 0, and if the timeout period of the preset signal data is 10 seconds, the timing data of the timeout timer is more than 10 seconds, that is, when the signal data to be processed is not acquired within 10 seconds, the timeout output data is generated. It will be appreciated that if the timing data of the timeout timer does not exceed 10 seconds, i.e. the signal data to be processed is obtained within 10 seconds, the timing data of the timeout timer may be set to 0, and the timeout timer may be re-timed from 0.
S250, performing second data processing on the data to be processed, and sending a second data processing result to a data bus.
Optionally, performing second data processing on the data to be processed may include: determining bus data attribute information under the condition that the data to be processed is determined to be element data to be processed; and carrying out element data processing on the element data to be processed according to the bus data attribute information to obtain element output data.
The bus data attribute information may be attribute information of data set in a data bus protocol in the central computing platform. The element data processing may be to perform data processing on the element data to be processed according to the bus data attribute information. The element output data may be output data obtained after performing element data processing on the element data to be processed according to the bus data attribute information. It will be appreciated that the element outputs data, i.e. the second data processing result.
Specifically, after the data to be processed is obtained, whether the data to be processed is the element data to be processed or not can be further determined, and when the data to be processed is the element data to be processed, the attribute information of the bus data is determined, so that the element data to be processed is processed according to the attribute information of the bus data to obtain the element output data, and the element output data is sent to the data bus.
Optionally, performing second data processing on the data to be processed may further include: under the condition that the element data to be processed comprises a plurality of elements, splitting the element data to be processed to obtain sub-data of the element to be processed; and respectively carrying out second data processing on the sub-data of each element to be processed.
The element sub-data to be processed may be data corresponding to different elements in the element data to be processed. For example, assuming that the element data to be processed includes a vehicle speed element and a mileage element, data corresponding to the vehicle speed element and data corresponding to the mileage element may be determined as sub-data of the element to be processed, respectively.
Specifically, after determining that the to-be-processed data is to-be-processed element data, it may be further determined whether the to-be-processed element data includes a plurality of elements, and when the to-be-processed element data includes a plurality of elements, the to-be-processed element data is subjected to data splitting to obtain to-be-processed element sub-data, so that second data processing is performed on each to-be-processed element sub-data respectively, and each second data processing result is sent to the data bus.
In a specific example of the embodiment of the present invention, the data processing method may be executed by an intermediate component between the application program and the communication layer signal, specifically, the signal data to be processed may be communication signal data from the communication layer COM module to the RTE module, and the element data to be processed may be communication content between application program interfaces. Fig. 3 is an exemplary flowchart of a data processing method according to a second embodiment of the present invention, where, as shown in fig. 3, the data processing method may specifically include:
(1) When the data bus receives signals and sends the signals to the application component, namely when the data to be processed is the data of the signal to be processed, the data of the signal to be processed is firstly subjected to precision calculation in the middle component to obtain a correct actual value, then subjected to offset calculation to obtain data without offset values, namely the middle processing data is obtained, then the interface data is obtained according to the precision and offset calculation corresponding to the application program, namely the signal output data is obtained, and finally, when the interface data is a plurality of interface data, the structure body is packaged for RTE call.
(2) When the application component sends the data to the bus, namely when the data to be processed is the element data to be processed, if only one element data to be processed exists, the element data to be processed firstly carries out offset calculation in the intermediate component to obtain bus data 1, then carries out precision calculation to obtain bus data 2, and calls the RTE interface to output the bus data 2.
(3) When the application component sends the data to the bus, namely when the data to be processed is the element data to be processed, if a plurality of element data to be processed exist, splitting the element data to be processed into a plurality of sub-data in the intermediate component, then performing offset calculation to obtain a plurality of bus data 1, then performing precision calculation to obtain a plurality of bus data 2, and calling the RTE interface to output the plurality of bus data 2.
(4) When the data bus receives signals and sends the signals to the application component, namely when the data to be processed is the signal data to be processed, interface overtime operation is carried out, and a preset signal data overtime period is determined so as to monitor the loss of the signal data to be processed in the preset signal data overtime period, thereby generating overtime output data when the signal data to be processed is lost, and carrying out structure body encapsulation for RTE call.
According to the technical scheme, the intermediate component is used for carrying out unified processing on precision operation and offset operation which are required to be carried out simultaneously by a plurality of application programs, and then the integrated processing method is provided for the plurality of application programs to be received, so that the code operation efficiency and the operation performance of a chip are improved, and the output form of integrating a plurality of signals into a structure type can be supported to be sent out through SOME/IP (Scalable service-Oriented Middleware over IP, the communication protocol of the foremost core of an SOA architecture is realized in the automobile industry).
According to the technical scheme, first data processing is conducted on the data to be processed when the data to be processed is signal data to be processed, so that a first data processing result is sent to an application program, timing data of a timeout timer are determined to be default data, timeout timing is conducted through the timeout timer, timeout output data are generated when the timing data of the timeout timer meet the timeout period of preset signal data, and the timeout output data are sent to the application program. And when the data to be processed is the element data to be processed, performing second data processing on the data to be processed, so as to send a second data processing result to the data bus. Therefore, the same data to be processed only needs to be processed once, the problems of waste of calculation power, lower calculation efficiency and calculation performance and the like caused by the fact that the same data to be processed needs to be processed for multiple times in the prior art are solved, the waste of calculation power is avoided, the calculation efficiency and the calculation performance are improved, and therefore timeliness of vehicle control is improved.
Example III
Fig. 4 is a schematic diagram of a data processing apparatus according to a third embodiment of the present invention, as shown in fig. 4, where the apparatus includes: a pending data acquisition module 410, a first data processing module 420, and a second data processing module 430, wherein:
a data to be processed acquisition module 410, configured to acquire data to be processed; wherein the data to be processed comprises signal data to be processed and element data to be processed;
the first data processing module 420 is configured to perform first data processing on the data to be processed to send a first data processing result to an application program when the data to be processed is determined to be the signal data to be processed;
and the second data processing module 430 is configured to perform second data processing on the to-be-processed data to send a second data processing result to the data bus when the to-be-processed data is determined to be the to-be-processed element data.
According to the technical scheme, the data to be processed is obtained, first data processing is conducted on the data to be processed under the condition that the data to be processed is determined to be the signal data to be processed, so that a first data processing result is sent to an application program, second data processing is conducted on the data to be processed under the condition that the data to be processed is determined to be the element data to be processed, and the second data processing result is sent to a data bus, so that the same data to be processed only needs to be processed once, the problems that in the prior art, due to the fact that the same data to be processed for multiple times, the calculation force is wasted, the calculation efficiency is low, the calculation performance is low and the like are solved, the waste of the calculation force is avoided, the calculation efficiency and the calculation performance are improved, and the timeliness of vehicle control is improved.
Optionally, the first data processing module 420 may be specifically configured to: under the condition that the data to be processed is determined to be the signal data to be processed, determining attribute information of the signal data to be processed corresponding to the signal data to be processed; performing 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 processing data corresponding to the signal data to be processed; determining output data attribute information, and performing 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.
Optionally, the first data processing module 420 may be further configured to: determining a target application program corresponding to the signal data to be processed; and determining output data attribute information according to the program data attribute of the target application program.
Optionally, the first data processing module 420 may be further specifically configured to: determining sub-signal data to be processed according to the signal data to be processed under the condition that the signal data to be processed comprises a plurality of signals; performing first data processing on each piece of sub-signal data to be processed to obtain a sub-signal data processing result corresponding to each piece of sub-signal data to be processed; and carrying out data encapsulation on the processing results of the sub-signal data to obtain encapsulated signal data, and sending the encapsulated signal data to an application program.
Optionally, the second data processing module 430 may be specifically configured to: determining bus data attribute information under the condition that the data to be processed is determined to be element data to be processed; and carrying out element data processing on the element data to be processed according to the bus data attribute information to obtain element output data.
Optionally, the second data processing module 430 may be further specifically configured to: under the condition that the element data to be processed comprises a plurality of elements, splitting the element data to be processed to obtain sub-data of the element to be processed; and respectively carrying out second data processing on the sub-data of each element to be processed.
Alternatively, the device may also be used to: under the condition that the data to be processed is the signal data to be processed, determining the timing data of the timeout timer as default data, and performing timeout timing through the timeout timer; generating timeout output data to transmit the timeout output data to the application program under the condition that the timing data of the timeout timer meets the timeout period of the preset signal data; wherein the timeout output data includes a timeout identification.
The data processing device provided by the embodiment of the invention can execute the data processing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 5 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, 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 meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having 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 specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as data processing methods.
In some embodiments, the data processing method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. One or more of the steps of the data processing method described above may be performed when the computer program is loaded into RAM 13 and executed by processor 11. Alternatively, in other embodiments, the processor 11 may be configured to perform the data processing method in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out 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, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here 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 a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method of data processing, comprising:
acquiring data to be processed; wherein the data to be processed comprises signal data to be processed and element data to be processed;
under the condition that the data to be processed is the signal data to be processed, performing first data processing on the data to be processed to send a first data processing result to an application program;
and under the condition that the data to be processed is the element data to be processed, performing second data processing on the data to be processed, and sending a second data processing result to a data bus.
2. The method according to claim 1, wherein, in the case where the data to be processed is determined to be the signal data to be processed, performing first data processing on the data to be processed includes:
under the condition that the data to be processed is the signal data to be processed, determining attribute information of the signal data to be processed corresponding to the signal data to be processed;
performing 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 processing data corresponding to the signal data to be processed;
determining output data attribute information, and performing 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.
3. The method of claim 2, wherein the determining output data attribute information comprises:
determining a target application program corresponding to the signal data to be processed;
and determining the output data attribute information according to the program data attribute of the target application program.
4. The method according to claim 1 or 2, wherein, in the case where the data to be processed is determined to be the signal data to be processed, performing first data processing on the data to be processed to send a first data processing result to an application program, further comprising:
Under the condition that the signal data to be processed comprises a plurality of signals, determining sub-signal data to be processed according to the signal data to be processed;
performing the first data processing on each piece of sub-signal data to be processed to obtain a sub-signal data processing result corresponding to each piece of sub-signal data to be processed;
and carrying out data encapsulation on each sub-signal data processing result to obtain encapsulated signal data, and sending the encapsulated signal data to the application program.
5. The method according to claim 1, wherein, in the case where the data to be processed is determined to be the element data to be processed, performing second data processing on the data to be processed, includes:
determining bus data attribute information under the condition that the data to be processed is the element data to be processed;
and carrying out element data processing on the element data to be processed according to the bus data attribute information to obtain element output data.
6. The method according to claim 1 or 5, wherein, in the case where the data to be processed is determined to be the element data to be processed, performing second data processing on the data to be processed, further comprises:
Under the condition that the element data to be processed comprises a plurality of elements, carrying out data splitting on the element data to be processed to obtain element sub-data to be processed;
and respectively carrying out the second data processing on each element sub-data to be processed.
7. The method according to claim 1, characterized in that the method further comprises:
under the condition that the data to be processed is the signal data to be processed, determining the timing data of a timeout timer as default data, and performing timeout timing through the timeout timer;
generating timeout output data to send the timeout output data to the application program under the condition that the timing data of the timeout timer meets a preset signal data timeout period; wherein the timeout output data includes a timeout identification.
8. A data processing apparatus, comprising:
the data acquisition module to be processed is used for acquiring the data to be processed; wherein the data to be processed comprises signal data to be processed and element data to be processed;
the first data processing module is used for performing first data processing on the data to be processed under the condition that the data to be processed are determined to be the signal data to be processed, so as to send a first data processing result to an application program;
And the second data processing module is used for carrying out second data processing on the data to be processed under the condition that the data to be processed is determined to be the element data to be processed, so as to send a second data processing result to a data bus.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the data processing method of any one of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions for causing a processor to implement the data processing method of any one of claims 1-7 when executed.
CN202310302259.0A 2023-03-24 2023-03-24 Data processing method and device, electronic equipment and storage medium Pending CN116279215A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310302259.0A CN116279215A (en) 2023-03-24 2023-03-24 Data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310302259.0A CN116279215A (en) 2023-03-24 2023-03-24 Data processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116279215A true CN116279215A (en) 2023-06-23

Family

ID=86790228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310302259.0A Pending CN116279215A (en) 2023-03-24 2023-03-24 Data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116279215A (en)

Similar Documents

Publication Publication Date Title
CN117009283A (en) Multi-core multi-chip data processing method, device, chip and storage medium
CN116279215A (en) Data processing method and device, electronic equipment and storage medium
CN116126916A (en) Data query method, device and equipment based on intelligent network card
CN116527652A (en) Method, device, equipment and medium for determining file format conversion path
CN114915516A (en) Communication method and device
CN114051057A (en) Method and device for determining queuing time of cloud equipment, electronic equipment and medium
CN115525415B (en) Data processing method, device, equipment and medium
CN116756061A (en) External equipment adaptation method, device, equipment and storage medium
CN116596091B (en) Model training method, device, equipment and storage medium
CN116016724B (en) Message parsing method, device, equipment and medium
CN117827355A (en) Theme switching method and device, vehicle and medium
CN117033029A (en) Data transmission method, device, equipment and medium
CN116107763B (en) Data transmission method, device, equipment and storage medium
CN117194018A (en) Processing method and device of system temperature control algorithm in multi-core and multi-chip environment
CN117318670A (en) Data processing method, system, device, equipment and medium of multichannel filter
CN118250175A (en) Distributed computing implementation method and device, network card chip and medium
CN117687992A (en) Data migration method, device, equipment and storage medium
CN117193726A (en) Parallel design method and device of software, electronic equipment and medium
CN117201228A (en) Data recharging method and device, electronic equipment and storage medium
CN116166253A (en) Inter-vehicle domain communication method, data gateway, device and storage medium
CN117933353A (en) Reinforced learning model training method and device, electronic equipment and storage medium
CN115225556A (en) Detection method, device, equipment and storage medium
CN116340342A (en) Data filtering method and device, electronic equipment and storage medium
CN116737475A (en) Chip diagnosis method, device, equipment and storage medium
CN116795450A (en) Configuration method, device, equipment and medium of micro-grid edge computing terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination