CN111464639A - Data acquisition method and device, storage medium and processor - Google Patents

Data acquisition method and device, storage medium and processor Download PDF

Info

Publication number
CN111464639A
CN111464639A CN202010247618.3A CN202010247618A CN111464639A CN 111464639 A CN111464639 A CN 111464639A CN 202010247618 A CN202010247618 A CN 202010247618A CN 111464639 A CN111464639 A CN 111464639A
Authority
CN
China
Prior art keywords
variable
vehicle
acquired
variables
acquisition
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.)
Granted
Application number
CN202010247618.3A
Other languages
Chinese (zh)
Other versions
CN111464639B (en
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.)
Weichai Power Co Ltd
Original Assignee
Weichai Power 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 Weichai Power Co Ltd filed Critical Weichai Power Co Ltd
Priority to CN202010247618.3A priority Critical patent/CN111464639B/en
Publication of CN111464639A publication Critical patent/CN111464639A/en
Application granted granted Critical
Publication of CN111464639B publication Critical patent/CN111464639B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a data acquisition method, a data acquisition device, a storage medium and a processor. The method comprises the following steps: determining variables to be acquired of a target vehicle based on a transmission protocol of a target platform; acquiring variable acquisition parameters corresponding to variables to be acquired from a DBC file received by a target platform; determining a flash file according to variable acquisition parameters corresponding to variables to be acquired and variable storage address information in the vehicle-mounted networking terminal; and in the vehicle-mounted networking terminal, acquiring a variable value corresponding to the variable to be acquired based on the flash file. By the method and the device, the problem that the fixed variable values in the DBC file can be acquired only by changing the application program of the vehicle-mounted internet terminal due to the fact that the protocol version of the whole vehicle for transmitting the DBC file is updated in the related technology is solved.

Description

Data acquisition method and device, storage medium and processor
Technical Field
The application relates to the technical field of motor vehicle control, in particular to a data acquisition method, a data acquisition device, a storage medium and a processor.
Background
According to the regulations, the whole vehicle factory needs to transmit the whole vehicle information to the corresponding platform according to the standard data transmission protocol and the determined variable data so as to realize the purpose, but the whole vehicle protocol of different vehicle types is changed along with the change, and the same vehicle type also has the condition of updating the version of the whole vehicle protocol.
In a data acquisition mode in the related art, data acquisition configuration can only be performed based on an uncertain data transmission format, and specifically, variables to be acquired are transmitted to a platform according to a format of a configuration table. At present, for fixed variable data acquisition and whole vehicle protocol version updating, the firmware of a data acquisition terminal of a vehicle-mounted internet terminal needs to be matched with a whole vehicle protocol to realize the acquisition of the fixed variable data. Along with the fast iteration speed of the whole vehicle protocol, the vehicle-mounted internet terminal needs to frequently update the firmware to match the latest whole vehicle protocol
Aiming at the problem that the fixed variable value in the DBC file can be acquired only by changing an application program by a vehicle-mounted internet terminal when the protocol version of a whole vehicle for transmitting the DBC file is updated in the related technology, an effective solution is not provided at present.
Disclosure of Invention
The application provides a data acquisition method, a data acquisition device, a storage medium and a processor, which are used for solving the problems that in the related technology, the protocol version of a whole vehicle for transmitting a DBC file is updated, and a vehicle-mounted network connection terminal can acquire a fixed variable value in the DBC file only by changing an application program.
According to one aspect of the present application, a data acquisition method is provided. The method comprises the following steps: determining variables to be acquired of the target vehicle based on a transmission protocol of the target platform, wherein the transmission protocol is used for transmitting the DBC file of the target vehicle to a vehicle-mounted networking terminal; acquiring variable acquisition parameters corresponding to variables to be acquired from a DBC file received by a target platform, wherein the variable acquisition parameters are used for acquiring variable values; determining a flash file according to variable acquisition parameters corresponding to variables to be acquired and variable storage address information in the vehicle-mounted networking terminal; and in the vehicle-mounted networking terminal, acquiring a variable value corresponding to the variable to be acquired based on the flash file.
Optionally, before acquiring a variable acquisition parameter corresponding to a variable to be acquired from a DBC file received by a target platform, the method further includes: analyzing the DBC file through a target platform to obtain a plurality of variable names; acquiring variable acquisition parameters corresponding to variables to be acquired from a DBC file received by a target platform comprises the following steps: matching the variable names with the names of the variables to be collected, and determining the matched variable names in the variable names; and analyzing the variable acquisition parameters corresponding to the matched variable names through the target platform, and taking the variable acquisition parameters corresponding to the matched variable names as the variable acquisition parameters corresponding to the variables to be acquired.
Optionally, the variable storage address information in the vehicle-mounted internet terminal includes a storage start address and a storage length, and determining the flash file according to the variable acquisition parameter corresponding to the variable to be acquired and the variable storage address information in the vehicle-mounted internet terminal includes: determining the number of the flash file, and determining the flash file according to the number of the flash file, the storage initial address, the storage length and the variable acquisition parameter corresponding to each variable to be acquired.
Optionally, before determining to write the file in a flash manner according to the variable acquisition parameter corresponding to the variable to be acquired and the variable storage address information in the vehicle-mounted internet terminal, the method further includes: and recording a storage starting address and a storage length corresponding to the variable to be acquired in the vehicle-mounted networking terminal in the target platform.
Optionally, in the vehicle-mounted internet terminal, before obtaining a variable value corresponding to the variable to be collected based on the flash file, the method further includes: transmitting the flash file to a vehicle-mounted networking terminal; and storing the flash file into a memory of the vehicle-mounted networking terminal based on the variable storage address information.
Optionally, storing the flash file in the memory of the vehicle-mounted internet terminal based on the variable storage address information includes: analyzing the flash file through the vehicle-mounted network connection terminal to obtain variable acquisition parameters corresponding to the variables to be acquired; and starting from the storage starting address, storing the variable acquisition parameters corresponding to the acquisition variables in the memory in sequence.
Optionally, in the vehicle-mounted internet terminal, obtaining a variable value corresponding to the variable to be collected based on the flash file includes: the acquisition program reads variable acquisition parameters corresponding to variables to be acquired stored in a memory; and the acquisition program schedules the variable values corresponding to the variables to be acquired based on the variable acquisition parameters corresponding to the variables to be acquired.
According to another aspect of the present application, a data acquisition device is provided. The device includes: the system comprises a first determining unit, a second determining unit and a third determining unit, wherein the first determining unit is used for determining variables to be acquired of a target vehicle based on a transmission protocol of a target platform, and the transmission protocol is used for transmitting a DBC (database management) file of the target vehicle to a vehicle-mounted internet terminal; the system comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring variable acquisition parameters corresponding to variables to be acquired from a DBC file received by a target platform, and the variable acquisition parameters are used for acquiring variable values; the second determining unit is used for determining a flash file according to the variable acquisition parameters corresponding to the variables to be acquired and the variable storage address information in the vehicle-mounted networking terminal; and the second acquisition unit is used for acquiring variable values corresponding to the variables to be acquired based on the flash file in the vehicle-mounted networking terminal.
In order to achieve the above object, according to another aspect of the present application, there is provided a storage medium including a stored program, wherein the program performs any one of the above data acquisition methods.
In order to achieve the above object, according to another aspect of the present application, there is provided a processor for executing a program, wherein the program executes to perform any one of the above data acquisition methods.
Through the application, the following steps are adopted: determining variables to be acquired of the target vehicle based on a transmission protocol of the target platform, wherein the transmission protocol is used for transmitting the DBC file of the target vehicle to a vehicle-mounted networking terminal; acquiring variable acquisition parameters corresponding to variables to be acquired from a DBC file received by a target platform, wherein the variable acquisition parameters are used for acquiring variable values; determining a flash file according to variable acquisition parameters corresponding to variables to be acquired and variable storage address information in the vehicle-mounted networking terminal; in the vehicle-mounted internet terminal, the variable value corresponding to the variable to be acquired is acquired based on the flash file, and the problem that the fixed variable value in the DBC file can be acquired only by changing an application program when the whole vehicle protocol version of the DBC file is updated in the related technology is solved. Data acquisition is carried out in a configurable remote flashing mode, and therefore the effect that acquisition of fixed variable values can be achieved without rewriting and writing an application program of the vehicle-mounted networking terminal is achieved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the application and, together with the description, serve to explain the application and are not intended to limit the application. In the drawings:
FIG. 1 is a flow chart of a data collection method provided according to an embodiment of the present application; and
fig. 2 is a schematic diagram of a data acquisition device provided according to an embodiment of the present application.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all 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 application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application 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 should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of description, some terms or expressions referred to in the embodiments of the present application are explained below:
DBC file: the Database Can, a data file generated by the Can bus, is used to describe information about each logical node in a single Can network.
Protocol J1939: a general vehicle network communication protocol CAN realize functions of data communication, data acquisition and the like based on CAN.
According to an embodiment of the present application, a data acquisition method is provided.
Fig. 1 is a flow chart of a data acquisition method according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
and S101, determining variables to be acquired of the target vehicle based on a transmission protocol of the target platform, wherein the transmission protocol is used for transmitting the DBC file of the target vehicle to the vehicle-mounted internet terminal.
Specifically, the DBC file of the target vehicle is imported into the target platform through the whole vehicle protocol, and then the DBC file of the target vehicle is transmitted to the vehicle-mounted internet terminal through the transmission protocol of the target platform,
the target platform is used for analyzing and displaying the received data, and the target platform can be a cloud platform.
The transmission protocol of the target platform can be a J1939 protocol, the protocol is used for transmitting which variables in the DBC file are determined, the transmission protocol is analyzed through the target platform, and the fixed variables needing to be collected are screened out.
And S102, acquiring variable acquisition parameters corresponding to the variables to be acquired from the DBC file received by the target platform, wherein the variable acquisition parameters are used for acquiring variable values.
It should be noted that the variable acquisition parameter may include a variable label corresponding to the variable, and a caid, a start bit, a bit length, an offset, and a coefficient corresponding to the variable, and the variable value corresponding to the variable may be acquired according to the variable acquisition parameter.
Optionally, in the data acquisition method provided in the embodiment of the present application, before acquiring the variable acquisition parameter corresponding to the variable to be acquired from the DBC file received by the target platform, the method further includes: analyzing the DBC file through a target platform to obtain a plurality of variable names; acquiring variable acquisition parameters corresponding to variables to be acquired from a DBC file received by a target platform comprises the following steps: matching the variable names with the names of the variables to be collected, and determining the matched variable names in the variable names; and analyzing the variable acquisition parameters corresponding to the matched variable names through the target platform, and taking the variable acquisition parameters corresponding to the matched variable names as the variable acquisition parameters corresponding to the variables to be acquired.
Specifically, the DBC file is firstly analyzed through the target platform to obtain a plurality of variable names, and then the variable names in the transmission protocol are matched with the variable names analyzed by the DBC, wherein the matched variable names are the variable names required to be transmitted. And carrying out variable labeling on variable names to be transmitted, and analyzing variable acquisition parameters of CANID, start bit, bit length, offset and coefficient corresponding to the variable labels by the target platform according to the data format of the DBC, thereby obtaining the variable acquisition parameters of each variable to be acquired.
And S103, determining a flash file according to the variable acquisition parameters corresponding to the variables to be acquired and the variable storage address information in the vehicle-mounted networking terminal.
It should be noted that, according to the variable storage address information in the flash file, the variable acquisition parameters in the flash file can be stored in the corresponding memory in the vehicle-mounted internet terminal, and the variable acquisition parameters provide a data basis for the acquisition program in the vehicle-mounted internet terminal to acquire the variable values.
Optionally, in the data acquisition method provided in the embodiment of the present application, the variable storage address information in the vehicle-mounted internet terminal includes a storage start address and a storage length, and determining the flush file according to the variable acquisition parameter corresponding to the variable to be acquired and the variable storage address information in the vehicle-mounted internet terminal includes: determining the number of the flash file, and determining the flash file according to the number of the flash file, the storage initial address, the storage length and the variable acquisition parameter corresponding to each variable to be acquired.
It should be noted that the number, the storage start address, and the storage length of the flash file may be placed in the first three bits of the flash file, and the variable label, the caidd, the start bit, the bit length, the offset, and the coefficient of each variable are sequentially followed, and parameters are collected according to the variables, specifically, the format of the flash file is as shown in table 1:
TABLE 1 format of a flash file
Figure BDA0002434361640000051
Optionally, in the data acquisition method provided in the embodiment of the present application, before determining the flash file according to the variable acquisition parameter corresponding to the variable to be acquired and the variable storage address information in the vehicle-mounted internet access terminal, the method further includes: and recording a storage starting address and a storage length corresponding to the variable to be acquired in the vehicle-mounted networking terminal in the target platform.
Specifically, the initial address and the storage length of the storage of the fixed variable to be acquired are recorded in the target platform in advance, so that the configuration of the flash file is facilitated.
In addition, it should be noted that, in configuration, the variable storage address information is placed in the first eight bytes of the data of the flash file.
And step S104, acquiring variable values corresponding to the variables to be acquired based on the flash file in the vehicle-mounted networking terminal.
Specifically, a DBC file is converted into a flash file through a series of conversions, the flash file is flashed into a vehicle-mounted networking terminal in a remote flash mode, and finally an application program of the networking terminal reads variable acquisition parameters to acquire variable values.
According to the data acquisition method provided by the embodiment of the application, variables to be acquired of a target vehicle are determined through a transmission protocol based on a target platform, wherein the transmission protocol is used for transmitting a DBC file of the target vehicle to a vehicle-mounted internet terminal; acquiring variable acquisition parameters corresponding to variables to be acquired from a DBC file received by a target platform, wherein the variable acquisition parameters are used for acquiring variable values; determining a flash file according to variable acquisition parameters corresponding to variables to be acquired and variable storage address information in the vehicle-mounted networking terminal; in the vehicle-mounted internet terminal, the variable value corresponding to the variable to be acquired is acquired based on the flash file, and the problem that the fixed variable value in the DBC file can be acquired only by changing an application program when the whole vehicle protocol version of the DBC file is updated in the related technology is solved. Data acquisition is carried out in a configurable remote flashing mode, and therefore the effect that acquisition of fixed variable values can be achieved without rewriting and writing an application program of the vehicle-mounted networking terminal is achieved.
Optionally, in the data acquisition method provided in the embodiment of the present application, before obtaining, in the vehicle-mounted internet terminal, a variable value corresponding to a variable to be acquired based on the flash file, the method further includes: transmitting the flash file to a vehicle-mounted networking terminal; and storing the flash file into a memory of the vehicle-mounted networking terminal based on the variable storage address information.
Specifically, after the target platform transmits the flash file to the vehicle-mounted internet terminal, the terminal stores address information according to the address variable in the flash file, and stores the variable acquisition parameter stored in the flash file into the memory area of the fixed variable.
Optionally, in the data acquisition method provided in the embodiment of the present application, storing the flash file in the memory of the vehicle-mounted internet terminal based on the variable storage address information includes: analyzing the flash file through the vehicle-mounted network connection terminal to obtain variable acquisition parameters corresponding to the variables to be acquired; and starting from the storage starting address, storing the variable acquisition parameters corresponding to the acquisition variables in the memory in sequence.
Specifically, the target platform issues the flash file to the vehicle-mounted network connection terminal, and the vehicle-mounted network connection terminal sequentially analyzes and stores the flash file, wherein the variable 1 parameter corresponds to a start address, the variable N parameter corresponds to an end address, the variable parameter is a variable acquisition parameter of the variable N, and the storage format is shown in table 2:
table 2 variable data storage format
Variable 1 parameter
Variable 2 parameter
.......
Variable N parameter
Optionally, in the data acquisition method provided in the embodiment of the present application, in the vehicle-mounted internet terminal, acquiring a variable value corresponding to a variable to be acquired based on the flash file includes: the acquisition program reads variable acquisition parameters corresponding to variables to be acquired stored in a memory; and the acquisition program schedules the variable values corresponding to the variables to be acquired based on the variable acquisition parameters corresponding to the variables to be acquired.
Specifically, the application program of the vehicle-mounted internet terminal reads the stored variable acquisition parameters and acquires variable values according to the variable acquisition parameters, so that fixed variable acquisition requirements, such as national standard data acquisition requirements, are met, configurable acquisition is realized, that is, acquisition of fixed variable values of different vehicle protocols is realized by issuing different configuration tables by using the same firmware program.
According to the embodiment of the application, the DBC file is imported into the target platform and analyzed to obtain the variable acquisition parameters, then the variable storage address and the length input by the platform are combined to convert the variable acquisition parameters into the flash file, and the flash file is issued to the vehicle-mounted internet terminal through the platform. And the vehicle-mounted networking terminal brushes the data into the memory area corresponding to the fixed variable, reads the variable acquisition data by the acquisition program and acquires the corresponding variable value. Therefore, the purpose of acquiring fixed heartbeat data matched with the whole vehicle protocol in a configurable remote flashing mode is achieved.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
The embodiment of the present application further provides a data acquisition device, and it should be noted that the data acquisition device of the embodiment of the present application may be used to execute the method for data acquisition provided by the embodiment of the present application. The data acquisition device provided by the embodiment of the application is introduced below.
Fig. 2 is a schematic diagram of a data acquisition device according to an embodiment of the present application. As shown in fig. 2, the apparatus includes: a first determination unit 10, a first acquisition unit 20, a second determination unit 30 and a second acquisition unit 40.
Specifically, the first determining unit 10 is configured to determine a variable to be acquired of the target vehicle based on a transmission protocol of the target platform, where the transmission protocol is used to transmit the DBC file of the target vehicle to the vehicle-mounted internet terminal.
The first obtaining unit 20 is configured to obtain a variable collecting parameter corresponding to a variable to be collected from the DBC file received by the target platform, where the variable collecting parameter is used to collect a variable value.
And the second determining unit 30 is configured to determine the flash file according to the variable acquisition parameter corresponding to the variable to be acquired and the variable storage address information in the vehicle-mounted internet terminal.
And the second obtaining unit 40 is configured to obtain, in the vehicle-mounted internet terminal, a variable value corresponding to the variable to be collected based on the flash file.
According to the data acquisition device provided by the embodiment of the application, the variable to be acquired of the target vehicle is determined through the first determination unit 10 based on the transmission protocol of the target platform, wherein the transmission protocol is used for transmitting the DBC file of the target vehicle to the vehicle-mounted internet terminal; a first obtaining unit 20 obtains a variable collecting parameter corresponding to a variable to be collected from a DBC file received by a target platform, wherein the variable collecting parameter is used for collecting a variable value; the second determining unit 30 determines a flash file according to the variable acquisition parameters corresponding to the variables to be acquired and the variable storage address information in the vehicle-mounted internet terminal; the second obtaining unit 40 obtains the variable value corresponding to the variable to be collected based on the flash file in the vehicle-mounted internet terminal, so that the problem that the fixed variable value in the DBC file can be collected only by changing the application program in the vehicle-mounted internet terminal when the protocol version of the whole vehicle for transmitting the DBC file in the related technology is updated is solved, data collection is performed in a configurable remote flash mode, and the effect of collecting the fixed variable value without rewriting and writing the application program of the vehicle-mounted internet terminal is achieved.
Optionally, in the data acquisition apparatus provided in the embodiment of the present application, the apparatus further includes: the third acquisition unit is used for analyzing the DBC file through the target platform before acquiring the variable acquisition parameters corresponding to the variables to be acquired from the DBC file received by the target platform to acquire a plurality of variable names; a fourth obtaining unit, configured to obtain, from the DBC file received by the target platform, a variable acquisition parameter corresponding to the variable to be acquired, where the variable acquisition parameter includes: the third determining unit is used for matching the variable names with the names of the variables to be acquired and determining the matched variable names in the variable names; and the fourth determining unit is used for analyzing the variable acquisition parameters corresponding to the matched variable names through the target platform and taking the variable acquisition parameters corresponding to the matched variable names as the variable acquisition parameters corresponding to the variables to be acquired.
Optionally, in the data acquisition device provided in the embodiment of the present application, the variable storage address information in the vehicle-mounted internet terminal includes a storage start address and a storage length, and the second determining unit 30 includes: and the determining module is used for determining the number of the flash file and determining the flash file according to the number of the flash file, the storage initial address, the storage length and the variable acquisition parameter corresponding to each variable to be acquired.
Optionally, in the data acquisition apparatus provided in the embodiment of the present application, the apparatus further includes: and the information input unit is used for inputting a storage starting address and a storage length corresponding to the variable to be acquired in the vehicle-mounted networking terminal into the target platform before determining the flash file according to the variable acquisition parameter corresponding to the variable to be acquired and the variable storage address information in the vehicle-mounted networking terminal.
Optionally, in the data acquisition apparatus provided in the embodiment of the present application, the apparatus further includes: the transmission unit is used for transmitting the flash file to the vehicle-mounted internet terminal before the flash file acquires the variable value corresponding to the variable to be acquired in the vehicle-mounted internet terminal; and the storage unit is used for storing the flash file into the memory of the vehicle-mounted internet terminal based on the variable storage address information.
Optionally, in the data acquisition device provided in the embodiment of the present application, the storage unit includes: the analysis module is used for analyzing the flash file through the vehicle-mounted network connection terminal to obtain variable acquisition parameters corresponding to the variables to be acquired; and the storage module is used for storing the variable acquisition parameters corresponding to the acquisition variables in the memory in sequence from the storage starting address.
Optionally, in the data acquisition apparatus provided in the embodiment of the present application, the second obtaining unit 40 includes: the reading module is used for reading the variable acquisition parameters corresponding to the variables to be acquired stored in the memory by the acquisition program; and the acquisition module is used for scheduling the variable value corresponding to the variable to be acquired based on the variable acquisition parameter corresponding to the variable to be acquired through the acquisition program.
The data acquisition device comprises a processor and a memory, wherein the first determining unit 10, the first acquiring unit 20, the second determining unit 30, the second acquiring unit 40 and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the problem that the fixed variable value in the DBC file can be acquired only by changing an application program by the vehicle-mounted internet terminal when the whole vehicle protocol version for transmitting the DBC file in the related technology is updated by adjusting the kernel parameters is solved.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium on which a program is stored, the program implementing the data acquisition method when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the data acquisition method is executed when the program runs.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps: determining variables to be acquired of the target vehicle based on a transmission protocol of the target platform, wherein the transmission protocol is used for transmitting the DBC file of the target vehicle to a vehicle-mounted networking terminal; acquiring variable acquisition parameters corresponding to variables to be acquired from a DBC file received by a target platform, wherein the variable acquisition parameters are used for acquiring variable values; determining a flash file according to variable acquisition parameters corresponding to variables to be acquired and variable storage address information in the vehicle-mounted networking terminal; and in the vehicle-mounted networking terminal, acquiring a variable value corresponding to the variable to be acquired based on the flash file.
Before acquiring variable acquisition parameters corresponding to variables to be acquired from a DBC file received by a target platform, the method further comprises the following steps: analyzing the DBC file through a target platform to obtain a plurality of variable names; acquiring variable acquisition parameters corresponding to variables to be acquired from a DBC file received by a target platform comprises the following steps: matching the variable names with the names of the variables to be collected, and determining the matched variable names in the variable names; and analyzing the variable acquisition parameters corresponding to the matched variable names through the target platform, and taking the variable acquisition parameters corresponding to the matched variable names as the variable acquisition parameters corresponding to the variables to be acquired.
The variable storage address information in the vehicle-mounted networking terminal comprises a storage initial address and a storage length, and determining the flash file according to the variable acquisition parameter corresponding to the variable to be acquired and the variable storage address information in the vehicle-mounted networking terminal comprises the following steps: determining the number of the flash file, and determining the flash file according to the number of the flash file, the storage initial address, the storage length and the variable acquisition parameter corresponding to each variable to be acquired.
Before determining the flash file according to the variable acquisition parameters corresponding to the variables to be acquired and the variable storage address information in the vehicle-mounted internet terminal, the method further comprises the following steps: and recording a storage starting address and a storage length corresponding to the variable to be acquired in the vehicle-mounted networking terminal in the target platform.
In the vehicle-mounted internet terminal, before obtaining the variable value corresponding to the variable to be collected based on the flash file, the method further comprises the following steps: transmitting the flash file to a vehicle-mounted networking terminal; and storing the flash file into a memory of the vehicle-mounted networking terminal based on the variable storage address information.
Storing the flash file into a memory of the vehicle-mounted internet terminal based on the variable storage address information comprises the following steps: analyzing the flash file through the vehicle-mounted network connection terminal to obtain variable acquisition parameters corresponding to the variables to be acquired; and starting from the storage starting address, storing the variable acquisition parameters corresponding to the acquisition variables in the memory in sequence.
In the on-vehicle networking terminal, obtaining the variable value that the variable that waits to gather corresponds based on the file of writing with a brush includes: the acquisition program reads variable acquisition parameters corresponding to variables to be acquired stored in a memory; and the acquisition program schedules the variable values corresponding to the variables to be acquired based on the variable acquisition parameters corresponding to the variables to be acquired. The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: determining variables to be acquired of the target vehicle based on a transmission protocol of the target platform, wherein the transmission protocol is used for transmitting the DBC file of the target vehicle to a vehicle-mounted networking terminal; acquiring variable acquisition parameters corresponding to variables to be acquired from a DBC file received by a target platform, wherein the variable acquisition parameters are used for acquiring variable values; determining a flash file according to variable acquisition parameters corresponding to variables to be acquired and variable storage address information in the vehicle-mounted networking terminal; and in the vehicle-mounted networking terminal, acquiring a variable value corresponding to the variable to be acquired based on the flash file.
Before acquiring variable acquisition parameters corresponding to variables to be acquired from a DBC file received by a target platform, the method further comprises the following steps: analyzing the DBC file through a target platform to obtain a plurality of variable names; acquiring variable acquisition parameters corresponding to variables to be acquired from a DBC file received by a target platform comprises the following steps: matching the variable names with the names of the variables to be collected, and determining the matched variable names in the variable names; and analyzing the variable acquisition parameters corresponding to the matched variable names through the target platform, and taking the variable acquisition parameters corresponding to the matched variable names as the variable acquisition parameters corresponding to the variables to be acquired.
The variable storage address information in the vehicle-mounted networking terminal comprises a storage initial address and a storage length, and determining the flash file according to the variable acquisition parameter corresponding to the variable to be acquired and the variable storage address information in the vehicle-mounted networking terminal comprises the following steps: determining the number of the flash file, and determining the flash file according to the number of the flash file, the storage initial address, the storage length and the variable acquisition parameter corresponding to each variable to be acquired.
Before determining the flash file according to the variable acquisition parameters corresponding to the variables to be acquired and the variable storage address information in the vehicle-mounted internet terminal, the method further comprises the following steps: and recording a storage starting address and a storage length corresponding to the variable to be acquired in the vehicle-mounted networking terminal in the target platform.
In the vehicle-mounted internet terminal, before obtaining the variable value corresponding to the variable to be collected based on the flash file, the method further comprises the following steps: transmitting the flash file to a vehicle-mounted networking terminal; and storing the flash file into a memory of the vehicle-mounted networking terminal based on the variable storage address information.
Storing the flash file into a memory of the vehicle-mounted internet terminal based on the variable storage address information comprises the following steps: analyzing the flash file through the vehicle-mounted network connection terminal to obtain variable acquisition parameters corresponding to the variables to be acquired; and starting from the storage starting address, storing the variable acquisition parameters corresponding to the acquisition variables in the memory in sequence.
In the on-vehicle networking terminal, obtaining the variable value that the variable that waits to gather corresponds based on the file of writing with a brush includes: the acquisition program reads variable acquisition parameters corresponding to variables to be acquired stored in a memory; and the acquisition program schedules the variable values corresponding to the variables to be acquired based on the variable acquisition parameters corresponding to the variables to be acquired.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
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.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method of data acquisition, comprising:
determining variables to be acquired of a target vehicle based on a transmission protocol of a target platform, wherein the transmission protocol is used for transmitting a DBC file of the target vehicle to a vehicle-mounted networking terminal;
acquiring variable acquisition parameters corresponding to the variables to be acquired from the DBC files received by the target platform, wherein the variable acquisition parameters are used for acquiring variable values;
determining a flash file according to variable acquisition parameters corresponding to the variables to be acquired and variable storage address information in the vehicle-mounted networking terminal;
and in the vehicle-mounted networking terminal, acquiring a variable value corresponding to the variable to be acquired based on the flash file.
2. The method according to claim 1, wherein before acquiring the variable acquisition parameters corresponding to the variables to be acquired from the DBC file received by the target platform, the method further comprises:
analyzing the DBC file through the target platform to obtain a plurality of variable names;
acquiring variable acquisition parameters corresponding to the variables to be acquired from the DBC file received by the target platform comprises the following steps:
matching the variable names with the names of the variables to be acquired, and determining the matched variable names in the variable names;
and analyzing the variable acquisition parameters corresponding to the matched variable names through the target platform, and taking the variable acquisition parameters corresponding to the matched variable names as the variable acquisition parameters corresponding to the variables to be acquired.
3. The method according to claim 1, wherein the variable storage address information in the vehicle-mounted internet terminal includes a storage start address and a storage length, and determining the flash file according to the variable acquisition parameter corresponding to the variable to be acquired and the variable storage address information in the vehicle-mounted internet terminal includes:
determining the number of the flash file, and determining the flash file according to the number of the flash file, the storage starting address, the storage length and the variable acquisition parameter corresponding to each variable to be acquired.
4. The method according to claim 3, wherein before determining the flash file according to the variable acquisition parameter corresponding to the variable to be acquired and the variable storage address information in the vehicle-mounted internet access terminal, the method further comprises:
and recording the storage starting address and the storage length corresponding to the variable to be acquired in the vehicle-mounted networking terminal in the target platform.
5. The method according to claim 3, wherein before obtaining, in the vehicle-mounted networking terminal, a variable value corresponding to the variable to be collected based on the flash file, the method further comprises:
transmitting the flash file to the vehicle-mounted networking terminal;
and storing the flash file into a memory of the vehicle-mounted internet terminal based on the variable storage address information.
6. The method according to claim 5, wherein storing the flash file into the memory of the vehicle-mounted internet access terminal based on the variable storage address information comprises:
analyzing the flash file through the vehicle-mounted network connection terminal to obtain variable acquisition parameters corresponding to the variables to be acquired;
and starting from the storage starting address, sequentially storing variable acquisition parameters corresponding to the acquisition variables in the memory.
7. The method according to claim 6, wherein in the vehicle-mounted networking terminal, obtaining variable values corresponding to the variables to be collected based on the flash file comprises:
reading variable acquisition parameters corresponding to the variables to be acquired stored in the memory by an acquisition program;
and the acquisition program schedules the variable value corresponding to the variable to be acquired based on the variable acquisition parameter corresponding to the variable to be acquired.
8. A data acquisition device, comprising:
the system comprises a first determining unit, a second determining unit and a third determining unit, wherein the first determining unit is used for determining variables to be acquired of a target vehicle based on a transmission protocol of a target platform, and the transmission protocol is used for transmitting a DBC (database management) file of the target vehicle to a vehicle-mounted internet terminal;
the first obtaining unit is used for obtaining variable collecting parameters corresponding to the variables to be collected from the DBC file received by the target platform, wherein the variable collecting parameters are used for collecting variable values;
the second determining unit is used for determining a flash file according to the variable acquisition parameters corresponding to the variables to be acquired and the variable storage address information in the vehicle-mounted networking terminal;
and the second acquisition unit is used for acquiring variable values corresponding to the variables to be acquired based on the flash file in the vehicle-mounted internet terminal.
9. A storage medium characterized in that it comprises a stored program, wherein the program executes the data acquisition method of any one of claims 1 to 7.
10. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the data acquisition method according to any one of claims 1 to 7 when running.
CN202010247618.3A 2020-03-31 2020-03-31 Data acquisition method and device, storage medium and processor Active CN111464639B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010247618.3A CN111464639B (en) 2020-03-31 2020-03-31 Data acquisition method and device, storage medium and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010247618.3A CN111464639B (en) 2020-03-31 2020-03-31 Data acquisition method and device, storage medium and processor

Publications (2)

Publication Number Publication Date
CN111464639A true CN111464639A (en) 2020-07-28
CN111464639B CN111464639B (en) 2023-01-24

Family

ID=71680987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010247618.3A Active CN111464639B (en) 2020-03-31 2020-03-31 Data acquisition method and device, storage medium and processor

Country Status (1)

Country Link
CN (1) CN111464639B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112698362A (en) * 2020-12-15 2021-04-23 潍柴动力股份有限公司 Three-dimensional map terrain updating method and device
CN113359680A (en) * 2021-06-28 2021-09-07 潍柴动力股份有限公司 Data acquisition method and vehicle-mounted terminal
CN113872840A (en) * 2021-09-18 2021-12-31 杭州鸿泉物联网技术股份有限公司 CAN data acquisition and transmission method, device and vehicle-mounted terminal
CN113867818A (en) * 2021-09-28 2021-12-31 潍柴动力股份有限公司 Method and device for generating ini file, computer equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534098A (en) * 2016-10-27 2017-03-22 山东省科学院自动化研究所 Electric vehicle-mounted terminal data transmission method applied to remote monitoring
CN108829825A (en) * 2018-06-14 2018-11-16 苏州途驰安电子科技有限公司 A kind of vehicle data obtains automatic adaptation method and device
CN109413158A (en) * 2018-09-28 2019-03-01 上汽通用五菱汽车股份有限公司 Data transmission method for uplink, data processing method, car-mounted terminal and server
CN112583762A (en) * 2019-09-27 2021-03-30 北汽福田汽车股份有限公司 Control method and device for vehicle data acquisition

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534098A (en) * 2016-10-27 2017-03-22 山东省科学院自动化研究所 Electric vehicle-mounted terminal data transmission method applied to remote monitoring
CN108829825A (en) * 2018-06-14 2018-11-16 苏州途驰安电子科技有限公司 A kind of vehicle data obtains automatic adaptation method and device
CN109413158A (en) * 2018-09-28 2019-03-01 上汽通用五菱汽车股份有限公司 Data transmission method for uplink, data processing method, car-mounted terminal and server
CN112583762A (en) * 2019-09-27 2021-03-30 北汽福田汽车股份有限公司 Control method and device for vehicle data acquisition

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112698362A (en) * 2020-12-15 2021-04-23 潍柴动力股份有限公司 Three-dimensional map terrain updating method and device
CN113359680A (en) * 2021-06-28 2021-09-07 潍柴动力股份有限公司 Data acquisition method and vehicle-mounted terminal
CN113359680B (en) * 2021-06-28 2023-05-23 潍柴动力股份有限公司 Data acquisition method and vehicle-mounted terminal
CN113872840A (en) * 2021-09-18 2021-12-31 杭州鸿泉物联网技术股份有限公司 CAN data acquisition and transmission method, device and vehicle-mounted terminal
CN113872840B (en) * 2021-09-18 2023-05-09 杭州鸿泉物联网技术股份有限公司 CAN data acquisition and transmission method and device and vehicle-mounted terminal
CN113867818A (en) * 2021-09-28 2021-12-31 潍柴动力股份有限公司 Method and device for generating ini file, computer equipment and medium
CN113867818B (en) * 2021-09-28 2024-04-16 潍柴动力股份有限公司 Method, device, computer equipment and medium for generating ini file

Also Published As

Publication number Publication date
CN111464639B (en) 2023-01-24

Similar Documents

Publication Publication Date Title
CN111464639B (en) Data acquisition method and device, storage medium and processor
CN110247811A (en) A kind of alarm method and relevant apparatus of internet of things equipment
US20150244806A1 (en) Device and method for extracting data from a communication bus of a motor vehicle
CN104135520A (en) Method and device for identifying Android terminal
CN111177243B (en) Data export method and device, storage medium and electronic device
CN112445490A (en) File sequence processing method and device, terminal equipment and storage medium
CN111078948A (en) Automobile diagnosis data analysis method and system and storage medium
CN110830759B (en) Intelligent application deployment method, device and system
CN113726624A (en) Method and device for acquiring CAN (controller area network) signal by TBOX (tunnel boring machine) device
CN107025294B (en) Information acquisition method and device
CN115562686A (en) Lightweight packaging method, system, terminal and storage medium for Springboot project
CN105700906B (en) Optical module software upgrading method, related equipment and system
CN114168183A (en) Front-end resource information processing method, device, equipment and storage medium
CN113919683A (en) Method and device for calculating process man-hour, storage medium and processor
CN113590336A (en) Algorithm management method and device of edge computing equipment
CN106776632A (en) Data query method and device
CN113127408A (en) Data conversion method and device
CN112241254B (en) Code statistics method and device for Internet of vehicles multi-terminal system
CN112445797B (en) Vehicle diagnosis data reference method, device, terminal equipment and storage medium
CN116701300B (en) Computer file management system based on Internet
CN115314553B (en) Method, device, equipment, system and readable storage medium for data processing
CN107948227A (en) The performance optimization method and device of distributed system platform
CN117056583A (en) Method for analyzing message track data, first server and storage medium
CN113282379A (en) Service processing method and device based on big data and cloud computing
CN116661702A (en) Data processing method, device, electronic equipment and computer 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
GR01 Patent grant
GR01 Patent grant