CN115982052A - Data processing method - Google Patents

Data processing method Download PDF

Info

Publication number
CN115982052A
CN115982052A CN202310094115.0A CN202310094115A CN115982052A CN 115982052 A CN115982052 A CN 115982052A CN 202310094115 A CN202310094115 A CN 202310094115A CN 115982052 A CN115982052 A CN 115982052A
Authority
CN
China
Prior art keywords
data
interface
original
sending
packed
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
CN202310094115.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.)
Shanghai Yingheng Electronic Co ltd
Original Assignee
Shanghai Yingheng Electronic Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Yingheng Electronic Co ltd filed Critical Shanghai Yingheng Electronic Co ltd
Priority to CN202310094115.0A priority Critical patent/CN115982052A/en
Publication of CN115982052A publication Critical patent/CN115982052A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a data processing method. The method comprises the steps of obtaining update data of an interface to be processed of the automobile SWC, and packaging the update data to obtain packaged data; sending the packed data to an upper computer to realize data recording; responding to a playback instruction of the upper computer for the packed data, and determining data to be played back, an original sending interface and an original receiving interface which are matched with the packed data; and disabling the original sending interface, and sending the data to be played back to the original receiving interface to realize data playback. The technical scheme of the invention provides a new data processing method, which effectively meets the online debugging requirement of software functions in automobile driving.

Description

Data processing method
Technical Field
The invention relates to the technical field of software, in particular to a data processing method.
Background
With the great popularization and use of Autosar (automatic Open System Architecture) tools and methods in Automotive electronics, especially the successful application of Classic Autosar (CP for short) to the conventional MCU (micro controller Unit) end. The Autosar methodology has become the standard method for the current MCU-side automotive electronic software development. When a conventional controller is developed by using a CP, because a SWC (Software Component) of a conventional ECU (Electronic Control Unit) is relatively single, algorithm data of a function is relatively small, and thus there is no problem of debugging an interface between SWCs.
However, as the CP is used in the intelligent driving direction, the number of the SWCs running at the CP end is increased, and the data amount of the interface between the SWCs is exponentially increased along with the increase of the sensors. Meanwhile, many algorithm logics and algorithm performances of intelligent driving cannot be debugged on line in real time, and many functions can be completed only by offline debugging. In order to meet the demands of increasing interface data, online debugging of functions, and the like, it is necessary to record and play back interface data between SWCs.
Disclosure of Invention
The invention provides a data processing method, and provides a new data processing method, which effectively meets the online debugging requirement of software functions in automobile driving.
According to an aspect of the present invention, there is provided a data processing method, the method including:
acquiring update data of an interface to be processed of the automobile SWC, and packaging the update data to obtain packaged data;
sending the packed data to an upper computer to realize data recording;
responding to a playback instruction of the upper computer for the packed data, and determining data to be played back, an original sending interface and an original receiving interface which are matched with the packed data;
and disabling the original sending interface, and sending the data to be played back to the original receiving interface to realize data playback.
According to another aspect of the present invention, there is provided a data processing apparatus comprising:
the system comprises a packed data acquisition module, a data processing module and a data processing module, wherein the packed data acquisition module is used for acquiring the update data of an interface to be processed of the automobile SWC and packing and processing the update data to obtain packed data;
the data recording realization module is used for sending the packed data to an upper computer to realize data recording;
the data and interface determining module is used for responding to a playback instruction of the upper computer aiming at the packed data and determining to-be-played back data, an original sending interface and an original receiving interface which are matched with the packed data;
and the data playback realization module is used for forbidding the original sending interface and sending the data to be played back to the original receiving interface to realize data playback.
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 content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the data processing method according to any of the embodiments of the 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 implement a data processing method according to any one of the embodiments of the present invention when the computer instructions are executed.
According to the technical scheme of the embodiment of the invention, the update data of the interface to be processed of the automobile SWC is obtained, and the update data is packaged to obtain the packaged data; sending the packed data to an upper computer to realize data recording; responding to a playback instruction of the upper computer for the packed data, and determining data to be played back, an original sending interface and an original receiving interface which are matched with the packed data; the original sending interface is forbidden, the data to be played back is sent to the original receiving interface to realize data playback, the problem that a plurality of algorithm logics and algorithm performances of intelligent driving cannot be debugged on line in real time due to the fact that SWC interface data are increased in the prior art is solved, a new data processing method is provided, and the online debugging requirements of software functions in automobile driving are effectively met.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1a is a flowchart of a data processing method according to an embodiment of the present invention;
fig. 1b is a schematic diagram of an SWC interface implementing data interaction through an RTE according to an embodiment of the present invention;
fig. 2a is a flowchart of another data processing method according to a second embodiment of the present invention;
fig. 2b is a schematic diagram of a specific application of a data recording method according to a second embodiment of the present invention;
fig. 2c is a schematic diagram of a specific application of a data playback method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a data processing apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device implementing the data processing method according to the embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "current", "original", and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Moreover, 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 one
Fig. 1a is a flowchart of a data processing method according to an embodiment of the present invention, where the present embodiment is applicable to a case of processing interactive data between interfaces of functional modules of an automobile, and the method may be executed by a data processing device, where the data processing device may be implemented in a form of hardware and/or software, and the data processing device may be configured in a chip with a data processing function. As shown in fig. 1a, the method comprises:
and S110, obtaining the updated data of the interface to be processed of the automobile SWC, and packaging the updated data to obtain packaged data.
Wherein the data recording and playback module may be configured on a chip having a data processing function to perform the data processing method of the present invention. The interface to be processed may be the interface of the currently detected SWC. The update data may be data generated by interaction between the SWC interfaces, for example, the SWC _ a sends the collected real-time vehicle speed data to the SWC _ B (such as a vehicle control module), and at this time, the update data may be the real-time vehicle speed data. The packed data may be, for example, data information packed with real-time vehicle speed data.
In this embodiment, the update data of the currently detected interface to be processed may be obtained by reading, and the packed data may be obtained after the update data is packed.
Optionally, before obtaining the update data of the to-be-processed interface of the car function module SWC, the method may further include: responding to a recording instruction of an upper computer, and determining an interface to be processed; or sequentially patrolling each SWC interface of the automobile according to a preset polling cycle, and determining the current processing interface as the interface to be processed.
The recording instruction can be a recording instruction which is selected by a user at the upper computer and aims at a specified SWC or a specified interface. The recording instruction may include a recording requirement of the user. The preset polling period may be a preset time period for starting the polling operation. For example, 10ms to 20ms, that is, whether data update exists in each SWC interface may be patrolled every preset polling period.
In this embodiment, the interface to be processed may be determined before the update data of the interface to be processed is acquired. Specifically, for example, the currently detected to-be-processed interface may be determined according to a recording requirement in a recording instruction sent by the upper computer, or each SWC interface of the automobile may be polled according to a preset polling period, and the currently polled interface may be determined as the to-be-processed interface in sequence.
In an optional embodiment, obtaining update data of the to-be-processed interface of the car function module SWC may include: calling a runtime environment RTE _ update interface to perform data update detection on an interface to be processed; and when detecting that the data updating occurs to the interface to be processed, reading the updating data through the RTE-Receive interface.
As shown in fig. 1b, since data interaction between the SWC interfaces needs to pass through the RTE, in this embodiment, an update method of the RTE _ update interface may be called to detect and determine a data update condition of the interface to be processed, and when the data update condition is detected, the RTE _ Receive interface may be called to read update data.
Optionally, before the update data is packed to obtain the packed data, the method may further include: generating a data identity matched with the updated data; and storing the updated data and the data identity at a preset cache unit.
The data identity can have a corresponding relation with data interaction operation between the two SWC interfaces. That is, it is known which two parties' interactive data according to the data identity. For example, "1" may represent a data interaction operation between interface 1 of SWC _ a and interface 2 of SWC _ B. The capacity, the number and the like of the cache units can be flexibly set according to the data recording requirements.
Specifically, before the update data is processed into the packed data, a corresponding identity may be generated for the update data, and the update data and the data identity are temporarily stored in the preset buffer unit.
In an alternative embodiment, the packing the update data to obtain the packed data may include: and when the cache unit is full or at interval cycle time, packing the updated data and the data identity in the cache unit to obtain packed data.
In this embodiment, the state of the cache unit, the storage time of the updated data already stored in the cache unit, or the data length of the updated data already stored in the cache unit may be monitored in real time. Specifically, when the cache unit is full, the update data and the data identifier in the cache unit may be packed to obtain packed data. Alternatively, although the cache unit is not full, the storage time of the updated data has already been satisfied with the set cycle time (e.g., 100 ms), and at this time, the updated data and the corresponding data id may be packaged into the packaged data. Or, the data length of the updated data in the cache unit reaches a preset length threshold (e.g., 4 k), and at this time, the updated data and the corresponding data id may be packaged into a packaged data.
And S120, sending the packed data to an upper computer to realize data recording.
In this embodiment, a sending interface of the RTE may be called to send the packed data to the upper computer to implement data recording.
S130, responding to a playback instruction of the upper computer for the packed data, and determining data to be played back, an original sending interface and an original receiving interface which are matched with the packed data.
The playback instruction may be a playback instruction of interactive data input by a user at an upper computer end under a condition of debugging requirements. The data to be played back may be data in the packed data. If the data to be played back is sent to the interface 2 of the SWC _ B from the interface 1 of the SWC _ A before being recorded to the upper computer, the interface 1 of the SWC _ A is an original sending interface, and the interface 2 of the SWC _ B is an original receiving interface.
S140, disabling the original sending interface, and sending the data to be played back to the original receiving interface to realize data playback.
In this embodiment, in the data playback process, the data interaction path between the original sending interface and the original interface may be cut off by the RTE, that is, the original sending interface is disabled, so that the data to be played back sent by the upper computer is sent to the original receiving interface to realize data playback.
According to the technical scheme of the embodiment of the invention, the update data of the interface to be processed of the automobile SWC is obtained, and the update data is packaged to obtain the packaged data; sending the packed data to an upper computer to realize data recording; responding to a playback instruction of the upper computer for the packed data, and determining data to be played back, an original sending interface and an original receiving interface which are matched with the packed data; the original sending interface is forbidden, the data to be played back is sent to the original receiving interface to realize data playback, the problem that a plurality of algorithm logics and algorithm performances of intelligent driving cannot be debugged on line in real time due to the fact that SWC interface data are increased in the prior art is solved, a new data processing method is provided, and the online debugging requirements of software functions in automobile driving are effectively met.
Example two
Fig. 2a is a flowchart of another data processing method provided in the second embodiment of the present invention, and this embodiment refines the operation of determining data to be played back, an original sending interface, and an original receiving interface that match with packed data based on the above embodiments. As shown in fig. 2a, the method comprises:
and S210, obtaining the update data of the interface to be processed of the automobile SWC, and packaging the update data to obtain packaged data.
And S220, sending the packed data to an upper computer to realize data recording.
Exemplarily, fig. 2b is a schematic diagram of a specific application of a data recording method according to a second embodiment of the present invention. For the polled interface, an update method of an RTE _ update interface can be called, and whether data updating exists or not is judged; under the condition that data updating exists, an RTE _ Receive interface can be called to read the data; putting the read data into a data cache; if the data storage in the cache is full, calling a packaging method and packaging the data; and calling a sending interface to send the packed Record data to an upper computer to realize data recording.
And S230, responding to a playback instruction of the upper computer for the packed data, analyzing the packed data, and acquiring the data to be played back and a data identity matched with the data to be played back.
S240, determining an original sending interface and an original receiving interface according to the data identity.
The data identity can have a corresponding relation with data interaction operation between two automobile SWC interfaces; that is, it is known which two parties' interactive data according to the data identity.
On the basis of the above technical solution, determining the original sending interface and the original receiving interface according to the data identity identifier may include: determining two automobile SWC interfaces matched with the data to be played back according to the corresponding relation; and determining the automobile SWC interface for sending the data to be played back as an original sending interface and determining the automobile SWC interface for receiving the data to be played back as an original receiving interface in the two automobile SWC interfaces.
And S250, disabling the original sending interface, and sending the data to be played back to the original receiving interface to realize data playback.
Fig. 2c is a schematic diagram illustrating a specific application of the data playback method according to the second embodiment of the present invention. Receiving a Replay instruction sent by an upper computer; if the upper computer sends a Replay instruction, a sending interface of the SWC is disabled; receiving a data packet sent by an upper computer; analyzing the received data packet to obtain data to be played back; and calling the RTE _ write interface to send the unpacked data to be played back to the SWC receiving interface to realize data playback.
According to the technical scheme of the embodiment of the invention, the update data of the interface to be processed of the automobile SWC is obtained, and the update data is packaged to obtain the packaged data; sending the packed data to an upper computer to realize data recording; responding to a playback instruction of the upper computer for the packaged data, analyzing the packaged data, and acquiring data to be played back and a data identity label matched with the data to be played back; determining an original sending interface and an original receiving interface according to the data identity; the original sending interface is forbidden, the data to be played back is sent to the original receiving interface to realize data playback, the problem that a plurality of algorithm logics and algorithm performances of intelligent driving cannot be debugged on line in real time due to the fact that SWC interface data are increased in the prior art is solved, a new data processing method is provided, and the online debugging requirements of software functions in automobile driving are effectively met.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a data processing apparatus according to a third embodiment of the present invention. As shown in fig. 3, the apparatus includes: a packed data acquisition module 310, a data recording implementation module 320, a data and interface determination module 330, and a data playback implementation module 340. Wherein:
the packed data acquisition module 310 is configured to acquire update data of an interface to be processed of the car SWC, and pack the update data to obtain packed data;
the data recording implementation module 320 is used for sending the packed data to an upper computer to implement data recording;
a data and interface determining module 330, configured to determine, in response to a playback instruction of the upper computer for the packed data, data to be played back, an original sending interface, and an original receiving interface that are matched with the packed data;
and the data playback implementation module 340 is configured to disable the original sending interface, and send the data to be played back to the original receiving interface to implement data playback.
According to the technical scheme of the embodiment of the invention, the update data of the interface to be processed of the automobile SWC is obtained, and the update data is packaged to obtain the packaged data; sending the packed data to an upper computer to realize data recording; responding to a playback instruction of the upper computer for the packed data, and determining data to be played back, an original sending interface and an original receiving interface which are matched with the packed data; the original sending interface is forbidden, the data to be played back are sent to the original receiving interface to achieve data playback, the problem that in the prior art, many algorithm logics and algorithm performances of intelligent driving cannot be debugged on line in real time due to the fact that SWC interface data are increased is solved, a new data processing method is provided, and the online debugging requirements of software functions in automobile driving are effectively met.
Optionally, the data processing apparatus further includes a to-be-processed interface determining module, configured to, before obtaining the update data of the to-be-processed interface of the car SWC:
responding to a recording instruction of the upper computer, and determining the interface to be processed; or
And sequentially patrolling each SWC interface of the automobile according to a preset polling period, and determining the current processing interface as the interface to be processed.
Optionally, the packed data obtaining module 310 may be specifically configured to:
calling a runtime environment RTE _ update interface to perform data update detection on the interface to be processed;
and when detecting that the data updating occurs to the interface to be processed, reading the updating data through the RTE-Receive interface.
Optionally, the data processing apparatus further includes a data storage module, configured to, before performing the packet processing on the update data to obtain the packet data:
generating a data identity matched with the updating data;
and storing the updated data and the data identity at a preset cache unit.
Optionally, the packed data obtaining module 310 may be further configured to:
and when the cache unit is full or at interval cycle time, packing the update data and the data identity in the cache unit to obtain packed data.
Optionally, the data and interface determining module 330 may include:
a data and identifier obtaining unit, configured to parse the packed data, and obtain the data to be played back and the data identity identifier matching the data to be played back;
and the interface determining unit is used for determining the original sending interface and the original receiving interface according to the data identity.
Optionally, the data identity has a corresponding relationship with data interaction between the two car SWC interfaces;
correspondingly, the interface determining unit may specifically be configured to:
determining the two automobile SWC interfaces matched with the data to be played back according to the corresponding relation;
and determining the automobile SWC interface for sending the data to be played back as the original sending interface and determining the automobile SWC interface for receiving the data to be played back as the original receiving interface.
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 corresponding functional modules and beneficial effects of the execution method.
Example four
FIG. 4 shows a schematic block diagram of an electronic device 400 that may be used to implement embodiments 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. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, 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. 4, the electronic device 400 includes at least one processor 401, and a memory communicatively connected to the at least one processor 401, such as a Read Only Memory (ROM) 402, a Random Access Memory (RAM) 403, and the like, wherein the memory stores computer programs executable by the at least one processor, and the processor 401 may perform various suitable actions and processes according to the computer programs stored in the Read Only Memory (ROM) 402 or the computer programs loaded from a storage unit 408 into the Random Access Memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 can also be stored. The processor 401, ROM 402 and RAM 403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
A number of components in the electronic device 400 are connected to the I/O interface 405, including: an input unit 406 such as a keyboard, a mouse, or the like; an output unit 407 such as various types of displays, speakers, and the like; a storage unit 408 such as a magnetic disk, optical disk, or the like; and a communication unit 409 such as a network card, modem, wireless communication transceiver, etc. The communication unit 409 allows the electronic device 400 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Processor 401 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of processor 401 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The processor 401 executes the various methods and processes described above, such as the data processing method.
In some embodiments, the data processing method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 408. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 400 via the ROM 402 and/or the communication unit 409. When the computer program is loaded into RAM 403 and executed by processor 401, one or more steps of the data processing method described above may be performed. Alternatively, in other embodiments, the processor 401 may be configured to perform the data processing method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a 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 that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing 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, 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 performed. A computer program can execute entirely on a 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. A 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 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) by 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 can 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, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end 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 back-end, 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. A client and server are generally 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 host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired result of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A data processing method, comprising:
acquiring update data of an interface to be processed of an automobile function module SWC, and packaging the update data to obtain packaged data;
sending the packed data to an upper computer to realize data recording;
responding to a playback instruction of the upper computer for the packed data, and determining data to be played back, an original sending interface and an original receiving interface which are matched with the packed data;
and disabling the original sending interface, and sending the data to be played back to the original receiving interface to realize data playback.
2. The method of claim 1, before obtaining the update data of the interface to be processed of the vehicle function module SWC, further comprising:
responding to a recording instruction of the upper computer, and determining the interface to be processed; or
And sequentially patrolling each SWC interface of the automobile according to a preset polling period, and determining the current processing interface as the interface to be processed.
3. The method of claim 1, wherein obtaining update data of the SWC standby interface of the car function module comprises:
calling a runtime environment RTE _ update interface to perform data update detection on the interface to be processed;
and when detecting that the data updating occurs to the interface to be processed, reading the updating data through the RTE-Receive interface.
4. The method of claim 1, further comprising, before the packing the update data into packed data,:
generating a data identity matched with the updating data;
and storing the updated data and the data identity at a preset cache unit.
5. The method of claim 4, wherein packing the update data into packed data comprises:
and when the cache unit is full or at interval cycle time, packing the update data and the data identity in the cache unit to obtain packed data.
6. The method of claim 4, wherein determining the data to be played back, the original sending interface and the original receiving interface that match the packed data comprises:
analyzing the packed data to obtain the data to be played back and the data identity matched with the data to be played back;
and determining the original sending interface and the original receiving interface according to the data identity identification.
7. The method of claim 6, wherein the data identity has a correspondence with data interactions between two car SWC interfaces;
determining the original sending interface and the original receiving interface according to the data identity, including:
determining the two automobile SWC interfaces matched with the data to be played back according to the corresponding relation;
and determining the automobile SWC interface for sending the data to be played back as the original sending interface and determining the automobile SWC interface for receiving the data to be played back as the original receiving interface.
8. A data processing apparatus, comprising:
the system comprises a packed data acquisition module, a data processing module and a data processing module, wherein the packed data acquisition module is used for acquiring the update data of an interface to be processed of an automobile function module SWC and packing the update data to obtain packed data;
the data recording implementation module is used for sending the packed data to an upper computer to implement data recording;
the data and interface determining module is used for responding to a playback instruction of the upper computer aiming at the packed data and determining data to be played back, an original sending interface and an original receiving interface which are matched with the packed data;
and the data playback realization module is used for forbidding the original sending interface and sending the data to be played back to the original receiving interface to realize data playback.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform a data processing method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing computer instructions for causing a processor to perform a data processing method according to any one of claims 1 to 7 when executed.
CN202310094115.0A 2023-02-03 2023-02-03 Data processing method Pending CN115982052A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310094115.0A CN115982052A (en) 2023-02-03 2023-02-03 Data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310094115.0A CN115982052A (en) 2023-02-03 2023-02-03 Data processing method

Publications (1)

Publication Number Publication Date
CN115982052A true CN115982052A (en) 2023-04-18

Family

ID=85963273

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310094115.0A Pending CN115982052A (en) 2023-02-03 2023-02-03 Data processing method

Country Status (1)

Country Link
CN (1) CN115982052A (en)

Similar Documents

Publication Publication Date Title
CN112908297A (en) Response speed testing method, device, equipment and storage medium for vehicle-mounted equipment
CN113641544B (en) Method, apparatus, device, medium and product for detecting application state
CN111464637B (en) Unmanned vehicle data processing method, device, equipment and medium
CN116684302A (en) Method and device for testing vehicle-mounted Ethernet
CN115982052A (en) Data processing method
CN110085237B (en) Recovery method, device and equipment of interactive process
CN112631843A (en) Equipment testing method and device, electronic equipment, readable medium and product
CN113760631A (en) Page loading duration determination method, device, equipment and storage medium
CN113138793B (en) Application resource packaging process monitoring method, device, equipment and medium
CN113127001B (en) Method, device, equipment and medium for monitoring code compiling process
CN113836291B (en) Data processing method, device, equipment and storage medium
CN117539719A (en) Application operation monitoring method, device, equipment and medium
CN115203063B (en) Playback method and system of production flow re-running risk program based on real-time recording
CN115225556A (en) Detection method, device, equipment and storage medium
CN106776278B (en) DSP (digital signal processor) debugging method and device based on dual-core architecture
CN115470193A (en) Radar data simulation method, device, equipment and medium
CN115658341A (en) Method, device, equipment and medium for reading and writing data by Freeswitch
CN115190097A (en) Message pushing method, device, equipment and storage medium
CN114490421A (en) Method, device, equipment and storage medium for detecting native rendering performance of application
CN115904899A (en) Operation record generation method, operation record acquisition method, operation record generation device, operation record acquisition device and operation record acquisition medium
CN115188177A (en) Power battery test data management method, device, equipment and medium
CN116300789A (en) Time delay diagnosis method and device of vehicle-mounted system, medium and electronic equipment
CN118075182A (en) Flow recording method, device, equipment and medium in multi-tenant mode
CN116015665A (en) Method, device, equipment and medium for repeatedly detecting virtual article
CN117851114A (en) Crash log processing method, device, equipment and storage medium

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