CN115268317A - Automobile big data acquisition and uploading method System, storage medium, and vehicle - Google Patents
Automobile big data acquisition and uploading method System, storage medium, and vehicle Download PDFInfo
- Publication number
- CN115268317A CN115268317A CN202210848186.0A CN202210848186A CN115268317A CN 115268317 A CN115268317 A CN 115268317A CN 202210848186 A CN202210848186 A CN 202210848186A CN 115268317 A CN115268317 A CN 115268317A
- Authority
- CN
- China
- Prior art keywords
- acquisition
- data
- information
- uploading
- control module
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24215—Scada supervisory control and data acquisition
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a method and a system for collecting and uploading automobile big data, a storage medium and a vehicle, the method comprises the following steps: receiving cloud service monitoring platform a transmitted acquisition instruction; actively awakening a CAN network where a control module corresponding to the collected ID information is located according to the collected ID information and the collected time information, and respectively acquiring state data of each control module according to the collected frequency information corresponding to each collected ID information; and sequencing and combining the obtained state data of all the control modules, generating a target data packet corresponding to the data acquisition task request according to the sequencing and combining result, and uploading the target data packet to a cloud service monitoring platform according to the acquisition time information. According to the automobile big data acquisition and uploading method, the original acquired data does not need to be screened and processed, and waste of enterprise resources is greatly reduced.
Description
Technical Field
The invention relates to the technical field of vehicle internet, in particular to a method and a system for collecting and uploading automobile big data, a storage medium and a vehicle.
Background
Along with the rapid development of the new quarternization of car, the controller on the car has increased gradually, has produced a large amount of car operating data, through the control and the collection to these operating data to and the analysis based on big data model, can realize the fault monitoring to the vehicle and report to the police, the trouble early warning in advance, driving action is optimized, the oil consumption promotes, the problem investigation, intelligent networking APP function experience optimization etc. thereby bring bigger value for whole car manufacturing enterprise and customer.
In the prior art, a large amount of vehicle operation data are generally collected by a vehicle-mounted terminal, and then the vehicle operation data are all uploaded to a monitoring platform, so that all data need to be screened and sorted before big data analysis is performed, effective data required by analysis are reserved, unnecessary data are eliminated, unnecessary transmission flow cost, data processing cost, data storage cost and the like are additionally generated, and severe waste of enterprise resources is caused.
Disclosure of Invention
Based on the above, the invention aims to provide a method, a system, a storage medium and a vehicle for collecting and uploading automobile big data, so as to solve the problem of serious waste of enterprise resources caused by a traditional collection mode.
The invention provides an automobile big data acquisition and uploading method, which is applied to a vehicle-mounted terminal and comprises the following steps:
receiving an acquisition instruction issued by a cloud service monitoring platform, wherein the acquisition instruction is triggered by inputting a data acquisition task request to the cloud service monitoring platform by a user, the acquisition instruction comprises a plurality of acquisition ID information corresponding to the target vehicle, and acquisition frequency information and acquisition time information respectively corresponding to each acquisition ID information;
actively awakening a CAN network where a control module corresponding to the collected ID information is located according to the collected ID information and the collected time information, and respectively acquiring state data of each control module according to the collected frequency information corresponding to each collected ID information;
and sequencing and combining the obtained state data of all the control modules, generating a target data packet corresponding to the data acquisition task request according to a sequencing and combining result, and uploading the target data packet to the cloud service monitoring platform according to the acquisition time information.
In conclusion, according to the method for acquiring and uploading the automobile big data, the vehicle-mounted terminal acquires and uploads the data according to the set acquisition definition standard through the accurate definition of the data to be acquired, the original acquired data does not need to be screened and processed, and the waste of enterprise resources is greatly reduced. Specifically, when the vehicle-mounted terminal receives a collection instruction issued by the cloud service monitoring platform, according to various configuration information in the collection instruction, such as information of collection ID, collection frequency, collection time and the like, the CAN network where the control module corresponding to the collection ID is located is actively awakened, so as to pertinently collect state data of the control modules, then the accurately collected state data is sequenced and combined, and a target data packet corresponding to the data collection task request is obtained, so that the target data packets received by the cloud service monitoring platform are all valid data, the data does not need to be screened and sorted, and the problem of enterprise resource waste caused by the fact that uploaded data need to be screened and sorted in a traditional collection mode is solved.
Further, the acquiring time information includes acquiring start time information and acquiring end time information which are in one-to-one correspondence with each acquiring ID information, the sequencing and merging of the obtained state data of all the control modules, generating a target data packet corresponding to the data acquisition task request according to a sequencing and merging result, and uploading the target data packet to the cloud service monitoring platform according to the acquiring time information includes:
marking a corresponding message timestamp on the state data of each control module according to the acquisition starting time information and the acquisition ending time information;
sequencing all state data according to the message timestamp of each state data, and respectively defining message identifiers for all the sequenced state data according to the collected ID information corresponding to each state data;
and merging and combining all the state data after the message identifier is defined to generate the target data packet.
Further, the acquiring time information further includes data uploading deadline information corresponding to each acquiring ID information one to one, the sorting and merging the obtained state data of all the control modules, generating a target data packet corresponding to the data acquisition task request according to a sorting and merging result, and uploading the target data packet to the cloud service monitoring platform according to the acquiring time information further includes:
acquiring corresponding acquisition time length according to the acquisition start time information and the acquisition end time information of each control module;
judging whether the acquisition time corresponding to any control module is greater than a preset time threshold or not;
if the acquisition time length corresponding to the control module is greater than the preset time length threshold value, judging that the state data greater than the preset time length threshold value is an ultra-large acquisition message, and merging the ultra-large acquisition message into the target data packet after defining a corresponding message identifier;
and acquiring a data uploading period according to a first preset uploading period and the data uploading deadline corresponding to the ultra-large acquisition message, and uploading a target data packet merged into the ultra-large acquisition message to a cloud service monitoring platform according to the data uploading period.
Further, the air conditioner is provided with a fan, the step of respectively acquiring the state data of each control module according to the acquisition frequency information corresponding to each acquisition ID information:
acquiring the message sending frequency of the corresponding control module on the CAN bus according to the acquisition ID, and judging whether the acquisition frequency corresponding to the acquisition ID is less than or equal to the message sending frequency;
if the acquisition frequency corresponding to the acquisition ID is less than or equal to the message sending frequency, acquiring the state data of the control module according to the acquisition frequency;
and if the acquisition frequency corresponding to the acquisition ID is greater than the message sending frequency, acquiring the state data of the control module according to the message sending frequency.
Further, before the step of receiving the acquisition instruction issued by the cloud service monitoring platform, the method further includes:
after the whole vehicle is powered on, actively acquiring a communication connection request issued by the cloud service monitoring platform every second preset time, and establishing communication with the cloud service monitoring platform according to the communication connection request, wherein the communication connection request is triggered by a target vehicle system and a target vehicle type uploaded by a user.
Further, if the acquisition frequency corresponding to the acquisition ID is less than or equal to the message transmission frequency, the step of acquiring the state data of the control module according to the acquisition frequency includes:
and acquiring a period difference value of the acquisition frequency and the message sending frequency, and sending the period difference value to a corresponding control module through a CAN (controller area network) so that the control module fills historical state data with corresponding duration into state data required to be sent in the current acquisition period according to the period difference value.
Further, the step of sorting all the status data according to the message timestamp of each status data, and defining the message identifier for all the sorted status data according to the collection ID information corresponding to each status data respectively includes:
and sequencing all the state data under each acquisition ID according to the corresponding message timestamp, packaging all the sequenced state data under each acquisition ID to obtain a state file corresponding to each acquisition ID, and storing all the state files into a preset directory according to the acquisition IDs.
The automobile big data acquisition and uploading system provided by the embodiment of the invention is applied to a vehicle-mounted terminal, and comprises the following components:
the system comprises a collection instruction receiving module, a data acquisition task processing module and a data acquisition and processing module, wherein the collection instruction receiving module is used for receiving a collection instruction issued by a cloud service monitoring platform, the collection instruction is triggered by a user inputting a data acquisition task request to the cloud service monitoring platform, and the collection instruction comprises a plurality of collection ID information corresponding to a target vehicle, and collection frequency information and collection time information corresponding to each collection ID information;
the data acquisition module is used for actively awakening the CAN network where the control module corresponding to the acquired ID information is located according to the acquired ID information and the acquisition time information, and respectively acquiring the state data of each control module according to the acquisition frequency information corresponding to each acquired ID information;
and the data uploading module is used for sequencing and combining the obtained state data of all the control modules, generating a target data packet corresponding to the data acquisition task request according to a sequencing and combining result, and uploading the target data packet to the cloud service monitoring platform according to the acquisition time information.
The invention also provides a storage medium, which comprises one or more programs stored in the storage medium, wherein when the programs are executed, the automobile big data acquisition and uploading method is realized.
Another aspect of the present invention also provides a vehicle comprising a memory and a processor, wherein:
the memory is used for storing computer programs;
the processor is used for realizing the automobile big data acquisition and uploading method when executing the computer program stored in the memory.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
Fig. 1 is a flowchart of a method for collecting and uploading big data of an automobile according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a method for collecting and uploading big data of an automobile according to a second embodiment of the present invention;
FIG. 3 is a detailed diagram of step S106 in the second embodiment of the present invention;
FIG. 4 shows a third embodiment of the present invention the embodiment provides an automobile and the structural schematic diagram of the big data acquisition and uploading system.
The following detailed description will further illustrate the invention in conjunction with the above-described figures.
Detailed Description
In order to facilitate an understanding of the present invention, the present invention will now be described more fully hereinafter with reference to the accompanying drawings. Several embodiments of the invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Referring to fig. 1, a flowchart of a method for collecting and uploading big data of an automobile according to a first embodiment of the present invention is shown, where the method includes steps S01 to S03, where:
step S01: receiving an acquisition instruction issued by a cloud service monitoring platform, wherein the acquisition instruction is triggered by a user inputting a data acquisition task request to the cloud service monitoring platform, and the acquisition instruction comprises a plurality of acquisition ID information corresponding to the target vehicle, and acquisition frequency information and acquisition time information respectively corresponding to each acquisition ID information;
it should be noted that, when a user has a data acquisition demand, an acquisition instruction can be issued to the vehicle-mounted terminal through the cloud service monitoring platform, the acquisition instruction at least includes information such as a corresponding acquisition ID, acquisition frequency, acquisition time and the like, the acquisition ID corresponds to a control module of a target vehicle one-to-one, that is, by acquiring the acquisition instruction, an object to be acquired, a period to be acquired and acquisition time are accurately acquired, and all target data are acquired in a highly targeted minimum range, so that invalid data are prevented from appearing in the acquired data.
Step S02: actively awakening a CAN network where a control module corresponding to the collected ID information is located according to the collected ID information and the collected time information, and respectively acquiring state data of each control module according to the collected frequency information corresponding to each collected ID information;
it CAN be understood that after the vehicle-mounted terminal acquires the acquisition ID information, a wake-up message may be sent to the relevant acquisition object, that is, the corresponding control module, to wake up the CAN network where the control module is located, and then the state data of each control module may be acquired in a targeted manner at the corresponding acquisition frequency at the corresponding time according to the acquisition standard defined by the acquisition instruction.
Step S03: and sequencing and combining the obtained state data of all the control modules, generating a target data packet corresponding to the data acquisition task request according to a sequencing and combining result, and uploading the target data packet to the cloud service monitoring platform according to the acquisition time information.
It should be further noted that after all the state data are collected, the vehicle-mounted terminal sorts all the state data, and at the same time, packages all the sorted state data to obtain a target data packet, and finally uploads the target data packet to the cloud service monitoring platform to complete the collection and uploading of the data.
In conclusion, according to the automobile big data acquisition and uploading method, the vehicle-mounted terminal acquires and uploads data according to the set acquisition definition standard through the accurate definition of the data to be acquired, the original acquired data does not need to be screened and processed, and the waste of enterprise resources is greatly reduced. Specifically, when the vehicle-mounted terminal receives an acquisition instruction issued by the cloud service monitoring platform, the CAN network where the control module corresponding to the acquisition ID is located is actively awakened according to various configuration information in the acquisition instruction, such as acquisition ID, acquisition frequency, acquisition time and the like, so as to pertinently acquire the state data of the control modules, then the accurately acquired state data is sequenced and combined, and then the target data packet corresponding to the data acquisition task request is obtained, so that the target data packet received by the cloud service monitoring platform is guaranteed to be valid data, the data does not need to be screened and sorted, and the problem of enterprise resource waste caused by the fact that uploaded data need to be screened and sorted in a traditional acquisition mode is solved.
Referring to fig. 2, a flowchart of a method for collecting and uploading big data of an automobile according to a second embodiment of the present invention is shown, the method includes steps S101 to S106, where:
step S101: after the whole vehicle is powered on, actively acquiring a communication connection request issued by the cloud service monitoring platform every second preset time, and establishing communication with the cloud service monitoring platform according to the communication connection request, wherein the communication connection request is triggered by a target vehicle system and a target vehicle type uploaded by a user;
it can be understood that, in order to prevent the situation that the feeding of the whole vehicle is caused by frequent wake-up of the vehicle-mounted terminal, in this embodiment, the communication between the vehicle-mounted terminal and the cloud service monitoring platform is set as a secondary communication, that is, only after the whole vehicle is powered on, the cloud service monitoring platform can be in communication connection with the vehicle-mounted terminal, that is, the cloud service monitoring platform does not have the capability of actively waking up the vehicle-mounted terminal, when a user uploads a data acquisition task request, the request further includes a target vehicle system and a target vehicle type, so that after the target vehicle type is powered on, the cloud service monitoring platform can be accurately positioned to the vehicle needing data acquisition.
Step S102: receiving an acquisition instruction issued by a cloud service monitoring platform, wherein the acquisition instruction is triggered by inputting a data acquisition task request to the cloud service monitoring platform by a user;
step S103: acquiring the message sending frequency of the corresponding control module on the CAN bus according to the acquisition ID, and judging whether the acquisition frequency corresponding to the acquisition ID is less than or equal to the message sending frequency;
it should be noted that, please refer to table 1 below, in the actual data collection process, because the data storage amount required to be collected is very large, in order to reduce the load factor of the CAN network, generally, the collection frequency corresponding to each collection ID is different, that is, it is avoided that all state data are collected at the same time frequently, and further, the actually set collection frequency may be inconsistent with the message sending frequency of the corresponding control module on the CAN network, and the data collection may be disordered due to the inconsistent frequency.
TABLE 1
Step S104: if the acquisition frequency corresponding to the acquisition ID is less than or equal to the message sending frequency, acquiring the state data of the control module according to the acquisition frequency;
in this step, if the acquisition frequency is less than or equal to the message transmission frequency, the vehicle-mounted terminal receives the message according to the set acquisition frequency, and simultaneously obtains a period difference between the acquisition frequency and the message transmission frequency, and sends the period difference to a corresponding control module through a CAN network, so that the control module fills historical state data of corresponding duration into state data required to be sent in a current acquisition period according to the period difference, and the problem of data disorder caused by unequal acquisition frequency and transmission frequency is avoided.
Step S105: if the acquisition frequency corresponding to the acquisition ID is greater than the message sending frequency, acquiring the state data of the control module according to the message sending frequency;
it can be understood that if the collection frequency is greater than the message sending frequency, the message sending frequency is used as the real collection frequency to obtain the state data, that is, the real collection frequency is consistent with the message sending frequency, and the problem of data confusion can be avoided.
Step S106: and sequencing and combining the obtained state data of all the control modules, generating a target data packet corresponding to the data acquisition task request according to a sequencing and combining result, and uploading the target data packet to the cloud service monitoring platform according to the acquisition time information.
Further, please refer to fig. 3, which shows a detailed diagram of step S106, specifically including steps S1061 to S1067, wherein:
step S1061: marking a corresponding message timestamp on the state data of each control module according to the acquisition starting time information and the acquisition ending time information;
it should be noted that the acquisition time information includes acquisition start time information and acquisition end time information corresponding to each piece of acquisition ID information one to one, in order to realize automatic combing before data uploading, data uploaded to the cloud service monitoring platform is prevented from being further screened and sorted, and after the vehicle-mounted terminal acquires the state data, one of the data is labeled according to acquisition time and end time of the state data, that is, the acquisition time and the acquisition end time are written into the timestamp entry.
Step S1062: sequencing all the state data according to the message timestamp of each state data, and respectively defining message identifiers for all the sequenced state data according to the collected ID information corresponding to each state data;
it can be understood that, in the process of sorting data, firstly, the data are sorted according to the sequence of the real acquisition time in the timestamp entry, if various state data with the same real acquisition time appear, then, sorting is performed according to the sequence of the acquisition end time, then, sorting of all the state data is completed, then, message identifiers are defined for the sorted state data respectively, and the message identifiers correspond to the acquisition IDs, namely, the effect of distinguishing all the state data is realized, and the cloud service platform is favorable for subpackaging target data packets according to the message identifiers after uploading of the data.
Further, after all the state data under each acquisition ID are sorted according to the corresponding message timestamp, all the state data under each type of the sorted acquisition IDs are packaged to obtain the state file corresponding to each type of the acquisition ID, and all the state files are stored into a preset directory according to the acquisition IDs.
It should be noted that, because the setting of the data uploading time is generally not exactly the same as the end of the collection, the vehicle-mounted terminal stores all the state files in the preset directory so as to reach the data uploading time and then upload the data.
Step S1063: merging and combining all state data after the message identifier is defined to generate the target data packet;
step S1064: acquiring corresponding acquisition duration according to the acquisition start time information and the acquisition end time information of each control module;
it should be noted that the acquisition time information further includes data uploading deadline time information corresponding to each acquisition ID information one to one, in the actual data acquisition process, the data volume of some control modules is very huge, and if the data volume is uploaded at a certain time, the data packaging, uploading and subsequent unpacking pressures are too large, so that the vehicle-mounted terminal can calculate the acquisition duration according to the acquisition start time information and the acquisition end time information in the actual acquisition process, so as to preliminarily estimate the acquisition data volume of the control module according to the acquisition duration;
step S1065: judging whether the acquisition time corresponding to any control module is greater than a preset time threshold or not;
step S1066: if the acquisition time corresponding to the control module is greater than the preset time threshold, then the status data larger than the preset time length threshold is judged to be the ultra-large type collected message, defining a corresponding message identifier for the ultra-large collected message and then merging the message identifier into the target data packet;
it can be understood that if the acquisition duration is greater than the preset duration threshold, it indicates that the data acquisition amount of the control module is large, and based on this, in order to reduce the packaging, uploading, and unpacking pressures, the vehicle-mounted terminal may define the type of state data as an ultra-large acquisition message.
It should be noted that the preset time period threshold generally relates to data acquisition and data transmission performance of the vehicle-mounted terminal, and in this embodiment, the preset time period threshold is not limited in detail.
Step S1067: and acquiring a data uploading period according to a first preset uploading period and data uploading deadline corresponding to the ultra-large acquisition message, and uploading a target data packet merged into the ultra-large acquisition message to a cloud service monitoring platform according to the data uploading period.
It should be noted that after all the ultra-large collected messages are defined, the vehicle-mounted terminal acquires a data uploading period according to a first preset uploading period and uploading deadline time, that is, the uploading time of the ultra-large collected messages is divided into a plurality of periods, so that the ultra-large collected messages are uploaded in batches.
Further, if the ultra-large acquisition message does not exist, uploading the target data packet according to the originally set data uploading deadline.
In conclusion, according to the method for acquiring and uploading the automobile big data, the vehicle-mounted terminal acquires and uploads the data according to the set acquisition definition standard through the accurate definition of the data to be acquired, the original acquired data does not need to be screened and processed, and the waste of enterprise resources is greatly reduced. Specifically, when the vehicle-mounted terminal receives a collection instruction issued by the cloud service monitoring platform, according to various configuration information in the collection instruction, such as information of collection ID, collection frequency, collection time and the like, the CAN network where the control module corresponding to the collection ID is located is actively awakened, so as to pertinently collect state data of the control modules, then the accurately collected state data is sequenced and combined, and a target data packet corresponding to the data collection task request is obtained, so that the target data packets received by the cloud service monitoring platform are all valid data, the data does not need to be screened and sorted, and the problem of enterprise resource waste caused by the fact that uploaded data need to be screened and sorted in a traditional collection mode is solved.
Referring to fig. 4, a schematic structural diagram of an automobile big data collecting and uploading system in a third embodiment of the present invention is shown, where the system includes:
the acquisition instruction receiving module 10 is configured to receive an acquisition instruction issued by a cloud service monitoring platform, where the acquisition instruction is triggered by a user inputting a data acquisition task request to the cloud service monitoring platform, and the acquisition instruction includes a plurality of acquisition ID information corresponding to the target vehicle, and acquisition frequency information and acquisition time information corresponding to each acquisition ID information;
the data acquisition module 20 is configured to actively wake up a CAN network where a control module corresponding to the acquired ID information is located according to the acquired ID information and the acquisition time information, and respectively acquire state data of each control module according to acquisition frequency information corresponding to each acquired ID information;
further, the data acquisition module 20 further includes:
the frequency detection unit is used for acquiring the message sending frequency of the corresponding control module on the CAN bus according to the acquisition ID and judging whether the acquisition frequency corresponding to the acquisition ID is less than or equal to the message sending frequency;
a first acquisition execution unit, configured to, if the acquisition frequency corresponding to the acquisition ID is less than or equal to the message sending frequency, acquiring state data of the control module according to the acquisition frequency;
further, the method can be used for preparing a novel material the ground is a mixture of a plurality of ground, the first acquisition execution unit further comprises:
the data filling subunit is used for acquiring a period difference value between the acquisition frequency and the message sending frequency, and sending the period difference value to a corresponding control module through a CAN (controller area network) network, so that the control module fills historical state data with corresponding duration into state data required to be sent in a current acquisition period according to the period difference value;
and the second acquisition execution unit is used for acquiring the state data of the control module according to the message sending frequency if the acquisition frequency corresponding to the acquisition ID is greater than the message sending frequency.
And the data uploading module 30 is configured to sequence and combine the obtained state data of all the control modules, generate a target data packet corresponding to the data acquisition task request according to a sequencing and combining result, and upload the target data packet to the cloud service monitoring platform according to the acquisition time information.
Further, the air conditioner is provided with a fan, the data uploading module 30 further includes:
the marking unit is used for marking the corresponding message timestamp on the state data of each control module according to the acquisition starting time information and the acquisition ending time information;
the identifier defining unit is used for sequencing all the state data according to the message timestamp of each state data and respectively defining message identifiers for all the sequenced state data according to the collected ID information corresponding to each state data;
further, the identifier definition unit further includes:
the data storage subunit is used for sequencing all the state data under each acquisition ID according to the corresponding message timestamp, packaging all the sequenced state data under each acquisition ID to obtain a state file corresponding to each acquisition ID, and storing all the state files into a preset directory according to the acquisition IDs;
the data packet packing unit is used for merging and combining all the state data after the message identifiers are defined so as to generate the target data packet;
the acquisition duration acquisition unit is used for respectively acquiring corresponding acquisition durations according to the acquisition start time information and the acquisition end time information of each control module;
the time length detection unit is used for judging whether the acquisition time length corresponding to any control module is greater than a preset time length threshold value;
the data merging unit is used for judging the state data which is greater than the preset time length threshold value as the ultra-large collected message if the collection time length which corresponds to the control module is greater than the preset time length threshold value, and merging the ultra-large collected message into the target data packet after defining the corresponding message identifier;
and the data uploading execution unit is used for acquiring a data uploading period according to a first preset uploading period and the data uploading deadline corresponding to the ultra-large acquisition message, and uploading a target data packet merged into the ultra-large acquisition message to the cloud service monitoring platform according to the data uploading period.
Further, in some optional embodiments of the present invention, the system further comprises:
the communication module is used for actively acquiring a communication connection request issued by the cloud service monitoring platform every second preset time after the whole vehicle is powered on, and establishing communication with the cloud service monitoring platform according to the communication connection request, wherein the communication connection request is triggered by a target vehicle system and a target vehicle type uploaded by a user.
In conclusion, according to the automobile big data acquisition and uploading system, the vehicle-mounted terminal acquires and uploads data according to the set acquisition definition standard through the accurate definition of the data to be acquired, the original acquired data does not need to be screened and processed, and the waste of enterprise resources is greatly reduced. Specifically, when the vehicle-mounted terminal receives a collection instruction issued by the cloud service monitoring platform, according to various configuration information in the collection instruction, such as information of collection ID, collection frequency, collection time and the like, the CAN network where the control module corresponding to the collection ID is located is actively awakened, so as to pertinently collect state data of the control modules, then the accurately collected state data is sequenced and combined, and a target data packet corresponding to the data collection task request is obtained, so that the target data packets received by the cloud service monitoring platform are all valid data, the data does not need to be screened and sorted, and the problem of enterprise resource waste caused by the fact that uploaded data need to be screened and sorted in a traditional collection mode is solved.
In another aspect, the present invention also provides a storage medium, having one or more programs stored thereon, when the program is executed by the processor, the automobile big data acquisition and uploading method is realized.
In another aspect, the present invention also provides a vehicle comprising a memory and a processor, wherein the memory is used for storing a computer program, the processor is used for executing the computer program stored on the memory so as to realize the automobile big data acquisition and uploading method.
Those of skill in the art will understand that the logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be viewed as implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following technologies, which are well known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
In the description of the specification, reference to the description of "one embodiment," "some embodiments," "an example," "a specific example," or "some examples" or the like means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is specific and detailed, but not to be understood as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the temperature of the molten metal is controlled, the protection scope of the present invention should be subject to the appended claims.
Claims (10)
1. A big data collecting and uploading method for an automobile is applied to a vehicle-mounted terminal and is characterized by comprising the following steps:
receiving an acquisition instruction issued by a cloud service monitoring platform, wherein the acquisition instruction is triggered by a user inputting a data acquisition task request to the cloud service monitoring platform, and the acquisition instruction comprises a plurality of acquisition ID information corresponding to the target vehicle, and acquisition frequency information and acquisition time information respectively corresponding to each acquisition ID information;
actively awakening a CAN network where a control module corresponding to the collected ID information is located according to the collected ID information and the collected time information, and respectively acquiring state data of each control module according to the collected frequency information corresponding to each collected ID information;
and sequencing and combining the obtained state data of all the control modules, generating a target data packet corresponding to the data acquisition task request according to a sequencing and combining result, and uploading the target data packet to the cloud service monitoring platform according to the acquisition time information.
2. The automobile big data acquisition method according to claim 1, wherein the acquisition time information includes acquisition start time information and acquisition end time information which are in one-to-one correspondence with each acquisition ID information, the step of sequencing and combining the obtained state data of all the control modules, generating a target data packet corresponding to the data acquisition task request according to the sequencing and combining result, and uploading the target data packet to the cloud service monitoring platform according to the acquisition time information includes:
marking a corresponding message timestamp on the state data of each control module according to the acquisition starting time information and the acquisition ending time information;
sequencing all the state data according to the message timestamp of each state data, and respectively defining message identifiers for all the sequenced state data according to the collected ID information corresponding to each state data;
and merging and combining all the state data after the message identifier is defined to generate the target data packet.
3. The automobile big data acquisition method according to claim 2, wherein the acquisition time information further includes data upload deadline information corresponding to each acquisition ID information one to one, the step of sequencing and merging the obtained state data of all the control modules, generating a target data packet corresponding to the data acquisition task request according to the sequencing and merging result, and uploading the target data packet to the cloud service monitoring platform according to the acquisition time information further includes:
acquiring corresponding acquisition duration according to the acquisition start time information and the acquisition end time information of each control module;
judging whether the acquisition time corresponding to any control module is greater than a preset time threshold or not;
if the acquisition time corresponding to the control module is greater than a preset time threshold, judging that the state data greater than the preset time threshold is an ultra-large acquisition message, and merging the ultra-large acquisition message into the target data packet after defining a message identifier corresponding to the ultra-large acquisition message;
and acquiring a data uploading period according to a first preset uploading period and the data uploading deadline corresponding to the ultra-large acquisition message, and uploading a target data packet merged into the ultra-large acquisition message to a cloud service monitoring platform according to the data uploading period.
4. The automobile big data acquisition method according to claim 3, wherein the step of respectively acquiring the status data of each control module according to the acquisition frequency information corresponding to each acquisition ID information is:
acquiring the message sending frequency of the corresponding control module on the CAN bus according to the acquisition ID, and judging whether the acquisition frequency corresponding to the acquisition ID is less than or equal to the message sending frequency;
if the acquisition frequency corresponding to the acquisition ID is less than or equal to the message sending frequency, acquiring the state data of the control module according to the acquisition frequency;
and if the acquisition frequency corresponding to the acquisition ID is greater than the message sending frequency, acquiring the state data of the control module according to the message sending frequency.
5. The automobile big data acquisition method according to claim 4, wherein the step of receiving the acquisition instruction issued by the cloud service monitoring platform further comprises:
after the whole vehicle is powered on, actively acquiring a communication connection request issued by the cloud service monitoring platform every second preset time, and establishing communication with the cloud service monitoring platform according to the communication connection request, wherein the communication connection request is triggered by a target vehicle system and a target vehicle type uploaded by a user.
6. The automobile big data acquisition method according to claim 4, wherein if the acquisition frequency corresponding to the acquisition ID is less than or equal to the message sending frequency, the step of acquiring the state data of the control module according to the acquisition frequency comprises:
and acquiring a period difference value of the acquisition frequency and the message sending frequency, and sending the period difference value to a corresponding control module through a CAN (controller area network) so that the control module fills historical state data with corresponding duration into state data required to be sent in the current acquisition period according to the period difference value.
7. The automobile big data acquisition method according to claim 2, wherein the step of sorting all the status data according to the message timestamp of each status data, and defining the message identifiers of all the sorted status data respectively according to the acquisition ID information corresponding to each status data comprises:
and sequencing all the state data under each acquisition ID according to the corresponding message timestamp, packaging all the sequenced state data under each acquisition ID to obtain a state file corresponding to each acquisition ID, and storing all the state files into a preset directory according to the acquisition IDs.
8. The utility model provides a car big data acquisition and upload system, is applied to vehicle mounted terminal, its characterized in that, the system includes:
the system comprises a collection instruction receiving module, a data acquisition task processing module and a data acquisition and processing module, wherein the collection instruction receiving module is used for receiving a collection instruction issued by a cloud service monitoring platform, the collection instruction is triggered by a user inputting a data acquisition task request to the cloud service monitoring platform, and the collection instruction comprises a plurality of collection ID information corresponding to a target vehicle, and collection frequency information and collection time information corresponding to each collection ID information;
the data acquisition module is used for actively awakening the CAN network where the control module corresponding to the acquired ID information is located according to the acquired ID information and the acquisition time information, and respectively acquiring the state data of each control module according to the acquisition frequency information corresponding to each acquired ID information;
and the data uploading module is used for sequencing and combining the obtained state data of all the control modules, generating a target data packet corresponding to the data acquisition task request according to a sequencing and combining result, and uploading the target data packet to the cloud service monitoring platform according to the acquisition time information.
9. A storage medium, comprising: the storage medium stores one or more programs which, when executed by a processor, implement the automotive big data collection and upload method according to any one of claims 1 to 7.
10. A vehicle, comprising a memory and a processor, wherein:
the memory is used for storing computer programs;
the processor is used for realizing the automobile big data acquisition and uploading method according to any one of claims 1-7 when executing the computer program stored in the memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210848186.0A CN115268317A (en) | 2022-07-19 | 2022-07-19 | Automobile big data acquisition and uploading method System, storage medium, and vehicle |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210848186.0A CN115268317A (en) | 2022-07-19 | 2022-07-19 | Automobile big data acquisition and uploading method System, storage medium, and vehicle |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115268317A true CN115268317A (en) | 2022-11-01 |
Family
ID=83766563
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210848186.0A Pending CN115268317A (en) | 2022-07-19 | 2022-07-19 | Automobile big data acquisition and uploading method System, storage medium, and vehicle |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115268317A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117478261A (en) * | 2023-10-30 | 2024-01-30 | 广州钛尔锐科技有限公司 | Online synchronous calibration method and system for flow data |
-
2022
- 2022-07-19 CN CN202210848186.0A patent/CN115268317A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117478261A (en) * | 2023-10-30 | 2024-01-30 | 广州钛尔锐科技有限公司 | Online synchronous calibration method and system for flow data |
CN117478261B (en) * | 2023-10-30 | 2024-06-07 | 广州钛尔锐科技有限公司 | Online synchronous calibration method and system for flow data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108282389B (en) | Vehicle-mounted OTA (over the air) upgrading method based on CAN (controller area network) bus load monitoring | |
CN111061499B (en) | ECU updating method and system based on file system | |
CN106774272B (en) | A kind of vehicular engine based on cloud computing platform remotely monitors, demarcates and big data collection system and its working method | |
CN111277477B (en) | FOTA system supporting simultaneous upgrading of vehicle-mounted multiple network segments | |
CN111579996A (en) | Vehicle power shortage monitoring method, system and medium | |
CN115268317A (en) | Automobile big data acquisition and uploading method System, storage medium, and vehicle | |
CN114327543A (en) | Online upgrading method and device for vehicle-mounted controller, vehicle and storage medium | |
CN113236400B (en) | Regeneration control method and device of particle catcher and engine management system | |
CN111443691A (en) | Intelligent online diagnosis method and device for automobile | |
CN107528757B (en) | MVB bus data monitoring method, device and system | |
CN114043952A (en) | Storage battery power supplementing method, vehicle-mounted terminal and computer readable storage medium | |
WO2023000841A1 (en) | In-vehicle system upgrade method, vehicle, and readable storage medium | |
CN114401286B (en) | Data uploading method and system based on vehicle-mounted terminal, storage medium and vehicle | |
CN114661808A (en) | Vehicle-mounted data acquisition method and device, vehicle-mounted terminal and vehicle | |
CN112929194A (en) | Vehicle information processing method and system and computer readable medium | |
CN114844931A (en) | Vehicle remote control method, device, server and storage medium | |
CN109080380A (en) | Tyre pressure sensor signal resolution method, its device, tire pressure receiver and diagnostic system | |
CN114374577A (en) | Vehicle low-power-consumption control method and device, storage medium and equipment | |
CN112765199A (en) | Vehicle detection method and system and readable storage medium | |
CN113676496B (en) | Data transmission method, system, readable storage medium and computer equipment | |
CN113269908A (en) | Whole vehicle data management device and method for electric vehicle | |
CN115277886B (en) | Vehicle data acquisition method based on data distribution service | |
CN117354335A (en) | Vehicle message transmission method, device and system, electronic equipment and storage medium | |
WO2024139295A1 (en) | Service subscription method and apparatus, vehicle, and storage medium | |
CN116566905A (en) | CAN data scheduling method, device, equipment and readable 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 |