Data processing method and device, vehicle-mounted terminal and automobile
1. A data processing method is applied to a vehicle-mounted terminal and is characterized by comprising the following steps:
under the condition that a target event is monitored in the running process of an automobile, receiving a full data message sent by a vehicle bus controller, and storing the full data message in the vehicle-mounted terminal, wherein the target event is at least one of a fault event and an alarm event;
and uploading the full data message to a vehicle remote server.
2. The method of claim 1, wherein receiving the full amount of data messages sent by the vehicle bus controller comprises:
determining the occurrence time of the target event;
and receiving a full data message in a preset time range before and after the occurrence time of the target event sent by the vehicle bus controller.
3. The method according to claim 1, wherein the storing the full-size data message in the vehicle-mounted terminal comprises:
and storing the total data message into the vehicle-mounted terminal according to the preset data acquisition frequency.
4. The method of claim 1, wherein said uploading said full-size datagram to a vehicle remote server comprises:
and uploading the full data message to a vehicle remote server according to a preset data reporting frequency.
5. The method of claim 1, further comprising:
acquiring configuration information issued by the vehicle remote server, wherein the configuration information is used for configuring a rule for acquiring a full data message;
and based on the configuration information, receiving a full data message sent by a vehicle bus controller and storing the full data message in the vehicle-mounted terminal under the condition that a target event is monitored in the running process of the vehicle.
6. A data processing apparatus, comprising:
the data acquisition module is used for receiving a full data message sent by a vehicle bus controller and storing the full data message in a vehicle-mounted terminal under the condition that a target event is monitored in the running process of an automobile, wherein the target event is at least one of a fault event and an alarm event;
and the data uploading module is used for uploading the full data message to a vehicle remote server.
7. The data processing apparatus of claim 6, wherein the data acquisition module comprises:
the time determining unit is used for determining the occurrence time of the target event;
and the receiving unit is used for receiving the full data message which is sent by the vehicle bus controller and is within a preset time range before and after the occurrence time of the target event.
8. The data processing apparatus of claim 6, wherein the data acquisition module comprises:
and the storage unit is used for storing the total data message into the vehicle-mounted terminal according to the preset data acquisition frequency.
9. The data processing apparatus of claim 6, wherein the data upload module comprises:
and the data uploading unit is used for uploading the full data message to a vehicle remote server according to a preset data reporting frequency.
10. The data processing apparatus of claim 6, further comprising:
the acquisition module is used for acquiring configuration information issued by the vehicle remote server, and the configuration information is used for configuring a rule for acquiring a full data message;
the data acquisition module comprises:
and the data acquisition unit is used for receiving the full data message sent by the vehicle bus controller and storing the full data message in the vehicle-mounted terminal under the condition that a target event is monitored in the running process of the vehicle based on the configuration information.
11. A vehicle-mounted terminal characterized by comprising: a data processing apparatus as claimed in any one of claims 6 to 10.
12. An automobile, comprising: the in-vehicle terminal according to claim 11.
Background
The current local data acquisition frequency (100 ms/time) and the data uploading frequency (10 s/time) of the vehicle-mounted terminal are both used for meeting related requirements, the local data of the vehicle-mounted terminal is stored in a Secure Digital (SD) card of the vehicle-mounted terminal, and a remote platform receives the data and then stores the data in storage equipment such as a server hard disk and the like.
Most of the sending period of the existing full message data is less than the frequency of local data acquisition of the vehicle-mounted terminal, so under the condition of many faults, the full message data in fixed time (30s) before and after the faults or alarms can not be acquired in the local SD card of the vehicle-mounted terminal or the storage device of a remote platform, because the data frequency (100 ms/time) locally stored in the vehicle-mounted terminal is greater than the frequency (less than or equal to 100 ms/time) sent by a vehicle bus controller, the data frequency locally acquired by the vehicle-mounted terminal can not meet the requirement of the full data message frequency at the moment of the faults, the full message acquisition and data extraction functions of a test can not be met, further, the problems can not be reduced and analyzed, accidental data analysis and optimization can not be rapidly and effectively processed, and the problems can not be rapidly and effectively solved.
In order to solve the above problems, at present, vehicle manufacturing enterprises may purchase a special data recording device at a vehicle test stage, record the full message data sent by a vehicle bus controller, and set a trigger condition, but the problems are also brought: if need carry out the transformation such as pencil to the vehicle, purchase data recording equipment simultaneously also can improve corresponding experimental expense, and can not match the experimental demand of a plurality of motorcycle types, have the equipment of experimental data recording equipment in the postpartum idle and extravagant condition of vehicle volume moreover, can not make equipment obtain effectual cyclic utilization. In addition, the test data recording equipment cannot be installed on the vehicle after the vehicle is sold, and when accidental or irregular faults and alarms occur after the vehicle is sold, the full-scale message cannot be acquired, and the first-hand fault data is acquired for problem analysis.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a data processing method, a data processing device, a vehicle-mounted terminal and a vehicle, so that the problems that the vehicle test cost is increased, the requirements of a plurality of vehicle types cannot be matched and the vehicle cannot be effectively recycled due to the fact that the vehicle test cost is increased and the data recording equipment is used for meeting the full-message collection and data extraction functions of the test in the prior art can be solved.
In order to solve the technical problem, the embodiment of the invention adopts the following technical scheme:
in a first aspect, an embodiment of the present invention provides a data processing method applied to a vehicle-mounted terminal, including:
under the condition that a target event is monitored in the running process of an automobile, receiving a full data message sent by a vehicle bus controller, and storing the full data message in the vehicle-mounted terminal, wherein the target event is at least one of a fault event and an alarm event;
and uploading the full data message to a vehicle remote server.
Wherein, the receiving vehicle bus controller sends the full data message, including:
determining the occurrence time of the target event;
and receiving a full data message in a preset time range before and after the occurrence time of the target event sent by the vehicle bus controller.
Wherein, the storing the full data message in the vehicle-mounted terminal includes:
and storing the total data message into the vehicle-mounted terminal according to the preset data acquisition frequency.
Wherein, the uploading the full data message to a vehicle remote server comprises:
and uploading the full data message to a vehicle remote server according to a preset data reporting frequency.
Wherein the method further comprises:
acquiring configuration information issued by the vehicle remote server, wherein the configuration information is used for configuring a rule for acquiring a full data message;
and based on the configuration information, receiving a full data message sent by a vehicle bus controller and storing the full data message in the vehicle-mounted terminal under the condition that a target event is monitored in the running process of the vehicle.
In a second aspect, an embodiment of the present invention further provides a data processing apparatus, including:
the data acquisition module is used for receiving a full data message sent by a vehicle bus controller and storing the full data message in a vehicle-mounted terminal under the condition that a target event is monitored in the running process of an automobile, wherein the target event is at least one of a fault event and an alarm event;
and the data uploading module is used for uploading the full data message to a vehicle remote server.
Wherein the data acquisition module comprises:
the time determining unit is used for determining the occurrence time of the target event;
and the receiving unit is used for receiving the full data message which is sent by the vehicle bus controller and is within a preset time range before and after the occurrence time of the target event.
Wherein the data acquisition module comprises:
and the storage unit is used for storing the total data message into the vehicle-mounted terminal according to the preset data acquisition frequency.
Wherein, the data upload module includes:
and the data uploading unit is used for uploading the full data message to a vehicle remote server according to a preset data reporting frequency.
Wherein the data processing apparatus further comprises:
the acquisition module is used for acquiring configuration information issued by the vehicle remote server, and the configuration information is used for configuring a rule for acquiring a full data message;
the data acquisition module comprises:
and the data acquisition unit is used for receiving the full data message sent by the vehicle bus controller and storing the full data message in the vehicle-mounted terminal under the condition that a target event is monitored in the running process of the vehicle based on the configuration information.
In a third aspect, an embodiment of the present invention further provides an in-vehicle terminal, including the data processing apparatus according to the foregoing embodiment.
In a fourth aspect, an embodiment of the present invention further provides an automobile, including the vehicle-mounted terminal according to the foregoing embodiment.
The technical scheme of the invention has the following beneficial effects:
in the above scheme of the embodiment of the present invention, when a target event is monitored in an automobile operation process, receiving a full data message sent by a vehicle bus controller, and storing the full data message in the vehicle-mounted terminal, wherein the target event is at least one of a fault event and an alarm event; the full data message is uploaded to a vehicle remote server, so that the vehicle-mounted terminal integrates the functions of storing and recording the full data message, the matching and carrying processes of data recording equipment are omitted, the related software and hardware cost is saved, the functions of designing and developing the vehicle to the full-life-cycle after-sale fault and alarming full message data recording are realized, and the problem of data acquisition of occasional and irregular faults and alarming of the vehicle in the after-sale market is solved.
Drawings
Fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a schematic flow chart of a data processing method according to an embodiment of the present invention, and the method is applied to a vehicle-mounted terminal. It should be noted that the vehicle-mounted terminal is arranged on the automobile and can also be called as a vehicle intelligent data terminal. The method specifically comprises the following steps:
step 101, receiving a full data message sent by a vehicle bus controller under the condition that a target event is monitored in the running process of an automobile, and storing the full data message in a vehicle-mounted terminal, wherein the target event is at least one of a fault event and an alarm event;
the vehicle in operation is any one of a test-stage vehicle, a mass-production-stage vehicle, and an after-market-stage vehicle.
Here, the vehicle bus controller is connected to the in-vehicle terminal, and both are provided on the automobile.
It should be noted that, if the target event is not monitored during the operation of the vehicle, the vehicle-mounted terminal does not start the full data packet obtaining function, so that the waste of software and hardware resources is not caused to the vehicle-mounted terminal.
And receiving a full data message sent by the vehicle bus controller, storing the full data message in the vehicle-mounted terminal, and showing that the vehicle-mounted terminal integrates the full data message storage and recording functions, so that matching and carrying of multiple sets of test full data recording equipment of multiple vehicle types can be avoided, and resource one-time use waste caused by later-stage dismantling of the test full data recording equipment is avoided.
Optionally, the full data message is stored in an SD card of the in-vehicle terminal.
And 102, uploading the full data message to a vehicle remote server.
In this step, the vehicle remote server is a server at the vehicle remote data platform side.
It should be noted that the vehicle remote data platform supports configuration and management of the local fault and alarm triggering storage rules of the vehicle-mounted terminal, and the local fault and alarm triggering storage rules can be adjusted at any time according to requirements in a mode of issuing configuration files by the vehicle remote data platform.
According to the data processing method, under the condition that a target event is monitored in the running process of an automobile, a full data message sent by a vehicle bus controller is received, and the full data message is stored in the vehicle-mounted terminal, wherein the target event is at least one of a fault event and an alarm event; the full data message is uploaded to a vehicle remote server, so that the vehicle-mounted terminal integrates the functions of storing and recording the full data message, the matching and carrying processes of data recording equipment are omitted, the related software and hardware cost is saved, the functions of designing and developing the vehicle to the full-life-cycle after-sale fault and alarming full message data recording are realized, and the problem of data acquisition of occasional and irregular faults and alarming of the vehicle in the after-sale market is solved.
As an optional implementation manner, the receiving, in step 101, the full data packet sent by the vehicle bus controller in the method of the present invention may include:
determining the occurrence time of the target event;
in this step, the occurrence time of the target event can be determined by the timestamp information corresponding to the target event.
And receiving a full data message in a preset time range before and after the occurrence time of the target event sent by the vehicle bus controller.
Here, the vehicle-mounted terminal can directionally acquire local full data message storage under a certain fault and/or alarm condition.
As an optional implementation manner, the step 101 of the method of the present invention, storing the full data packet in the vehicle-mounted terminal, may include:
and storing the total data message into the vehicle-mounted terminal according to the preset data acquisition frequency.
Here, the data acquisition frequency is preset by the vehicle bus controller, and meets the relevant requirements.
Optionally, the data acquisition frequency is 100 ms/time.
As an alternative implementation, step 102 of the method of the present invention may include:
and uploading the full data message to a vehicle remote server according to a preset data reporting frequency.
Here, the data reporting frequency is determined according to the vehicle bus controller function.
Optionally, the data reporting frequency is 10 s/time.
As an optional implementation manner, the method of the present invention may further include:
acquiring configuration information issued by the vehicle remote server, wherein the configuration information is used for configuring a rule for acquiring a full data message;
here, the rule for acquiring the full data packet may include:
it should be noted that the vehicle remote server supports configuration and management of the local fault and/or alarm trigger storage rule of the vehicle-mounted terminal, and may adjust the local data storage rule of the fault and/or alarm trigger at any time according to the requirement through configuration information, such as a configuration file, issued by the vehicle remote data platform, so as to directionally acquire local full-volume data message storage under a certain fault and/or alarm condition and directional data extraction of the vehicle remote data platform. For example, the time setting before and after the occurrence of a fault and/or alarm event may be changed from 30s to 1min, etc.
And based on the configuration information, receiving a full data message sent by a vehicle bus controller and storing the full data message in the vehicle-mounted terminal under the condition that a target event is monitored in the running process of the vehicle.
According to the data processing method, under the condition that a target event is monitored in the running process of an automobile, a full data message sent by a vehicle bus controller is received, and the full data message is stored in the vehicle-mounted terminal, wherein the target event is at least one of a fault event and an alarm event; the full data message is uploaded to a vehicle remote server, so that the vehicle-mounted terminal integrates the functions of storing and recording the full data message, the matching and carrying processes of data recording equipment are omitted, the related software and hardware cost is saved, the functions of designing and developing the vehicle to the full-life-cycle after-sale fault and alarming full message data recording are realized, and the problem of data acquisition of occasional and irregular faults and alarming of the vehicle in the after-sale market is solved.
Embodiments of the present invention also provide a computer-readable storage medium having stored thereon a computer program (instructions), which when executed by a processor, implement the steps of:
under the condition that a target event is monitored in the running process of an automobile, receiving a full data message sent by a vehicle bus controller, and storing the full data message in the vehicle-mounted terminal, wherein the target event is at least one of a fault event and an alarm event;
and uploading the full data message to a vehicle remote server.
Optionally, the program (instructions), when executed by the processor, further performs the steps of:
determining the occurrence time of the target event;
and receiving a full data message in a preset time range before and after the occurrence time of the target event sent by the vehicle bus controller.
Optionally, the program (instructions), when executed by the processor, further performs the steps of:
and storing the total data message into the vehicle-mounted terminal according to the preset data acquisition frequency.
Optionally, the program (instructions), when executed by the processor, further performs the steps of:
and uploading the full data message to a vehicle remote server according to a preset data reporting frequency.
Optionally, the program (instructions), when executed by the processor, further performs the steps of:
acquiring configuration information issued by the vehicle remote server, wherein the configuration information is used for configuring a rule for acquiring a full data message;
and based on the configuration information, receiving a full data message sent by a vehicle bus controller and storing the full data message in the vehicle-mounted terminal under the condition that a target event is monitored in the running process of the vehicle.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
Fig. 2 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention. The data processing apparatus includes:
the data acquisition module 201 is configured to receive a full data packet sent by a vehicle bus controller and store the full data packet in the vehicle-mounted terminal when a target event is monitored in an automobile operation process, where the target event is at least one of a fault event and an alarm event;
and a data uploading module 202, configured to upload the full data packet to a vehicle remote server.
Optionally, the data obtaining module 201 includes:
the time determining unit is used for determining the occurrence time of the target event;
and the receiving unit is used for receiving the full data message which is sent by the vehicle bus controller and is within a preset time range before and after the occurrence time of the target event.
Optionally, the data obtaining module 201 includes:
and the storage unit is used for storing the total data message into the vehicle-mounted terminal according to the preset data acquisition frequency.
Optionally, the data uploading module 202 includes:
and the data uploading unit is used for uploading the full data message to a vehicle remote server according to a preset data reporting frequency.
Optionally, the data processing apparatus further includes:
the acquisition module is used for acquiring configuration information issued by the vehicle remote server, and the configuration information is used for configuring a rule for acquiring a full data message;
the data acquisition module 201 includes:
and the data acquisition unit is used for receiving the full data message sent by the vehicle bus controller and storing the full data message in the vehicle-mounted terminal under the condition that a target event is monitored in the running process of the vehicle based on the configuration information.
According to the data processing device, under the condition that a target event is monitored in the running process of an automobile through a data acquisition module, a full data message sent by a vehicle bus controller is received, and the full data message is stored in a vehicle-mounted terminal, wherein the target event is at least one of a fault event and an alarm event; the data uploading module uploads the full data message to the vehicle remote server, so that the vehicle-mounted terminal integrates the full data message storage and recording functions, the matching and carrying processes of data recording equipment are omitted, the related software and hardware cost is saved, the full-life-cycle fault and alarm message data recording function after the vehicle is designed and developed is realized, and the problem of data acquisition of occasional and irregular faults and alarms of the vehicle in the after-sales market is solved.
The embodiment of the invention also provides a vehicle-mounted terminal which comprises the data processing device in the embodiment.
It should be noted that, the vehicle-mounted terminal is designed at the initial stage of product definition, that is, strictly according to the architecture and professional requirements of the vehicle, so that the line loss and the signal transmission interference caused by the external equipment to the wire harness are avoided, and the situations of unstable data reception, interruption of data reception and the like caused by the fact that the total data recording equipment of the test vehicle does not meet the requirements of vehicle-level hardware under severe working conditions are avoided.
The vehicle-mounted terminal and the matched remote data extraction system can meet the requirements of vehicle tests and management of vehicle after-sale full-life-cycle data storage, and can perform local full-volume data storage and remote platform data extraction within a fixed time range before and after a fault and an alarm moment according to a set rule when the vehicle generates accidental or irregular faults and alarms at any moment, so that fault and alarm data restoration and analysis are provided for the vehicle in the design, research and development and after-sale stages.
The remote data platform matched with the vehicle-mounted terminal can realize the file directory check of the local storage of the vehicle-mounted terminal, can remotely acquire the directional file according to the time stamp of the occurrence of the fault and the alarm, and saves the flow consumption caused by the transmission of the full data.
In addition, in a general situation, the default function configuration adopted by the vehicle-mounted terminal in the test stage is to record the full CAN message data sent by the vehicle bus controller; in the test stage, the vehicle is used for defaulting and starting the function; the vehicle is used for closing the function by default in the mass production stage, and the function is opened and closed in a diagnostic service configuration writing mode.
In addition, through the technical development and management mode of the whole vehicle parts, the high-standard complete fault and alarm full message data recording and extraction function design, development, test and verification work is carried out, and the risk of data storage failure caused by the fact that test full message data recording equipment of different types cannot meet vehicle specifications or complex vehicle operation conditions is avoided.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.