Data acquisition method, electronic equipment and storage medium

By determining the target control LAN bus in the vehicle and constructing the data acquisition signal, the problems of insufficient accuracy and flexibility in traditional vehicle data acquisition solutions are solved, and efficient and accurate data acquisition is achieved.

CN120711041APending Publication Date: 2025-09-26FAW JIEFANG AUTOMOTIVE CO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510872216.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-26
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

Traditional vehicle data collection solutions suffer from insufficient data collection accuracy and flexibility when faced with complex multi-bus architectures and massive real-time data.

Method used

By determining the target control LAN bus according to business needs and building data acquisition signals based on database container files, the data source can be accurately located, irrelevant data can be collected, and the flexibility of data acquisition can be enhanced.

Benefits of technology

It improves the accuracy and flexibility of data collection, ensures the accuracy and effectiveness of data collection, simplifies the configuration process, and improves data collection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120711041A_ABST
    Figure CN120711041A_ABST
Patent Text Reader

Abstract

The invention discloses a data acquisition method, electronic equipment and a storage medium, and the method comprises the steps: determining a target control local area network bus in a vehicle according to a business demand, and determining a database container file corresponding to the target control local area network bus; constructing a data acquisition signal based on the database container file and the business demand; and acquiring vehicle state data of the vehicle according to the data acquisition signal. According to the method, the target control local area network bus and the corresponding database container file are dynamically matched based on the service demand, so that a required data source can be accurately positioned, irrelevant data are prevented from being collected, and the accuracy of data collection is improved; and data acquisition signals can be constructed in a customizable manner through database container files and business requirements, so that the flexibility of data acquisition is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automobile technology, and in particular to a data acquisition method, electronic equipment, and storage medium. Background Art

[0002] With the development of connected vehicles and intelligent driving technologies, vehicle data collection has become a critical component for remote monitoring, fault diagnosis, and autonomous driving. Traditional vehicle data collection relies primarily on on-board diagnostic system interfaces or dedicated sensors. However, facing complex multi-bus architectures and massive amounts of real-time data, existing solutions face challenges in data collection accuracy and flexibility. Therefore, developing a highly flexible and accurate data collection method has become a pressing challenge in the automotive field. Summary of the Invention

[0003] The present invention provides a data acquisition method, electronic equipment and storage medium, which improve the accuracy of data acquisition and enhance the flexibility of data acquisition.

[0004] One aspect of an embodiment of the present invention provides a data collection method, applied to a server, comprising:

[0005] Determine the target control LAN bus in the vehicle according to business requirements, and determine the database container file corresponding to the target control LAN bus;

[0006] Build data collection signals based on database container files and business needs;

[0007] Vehicle status data of the vehicle is acquired according to the data acquisition signal.

[0008] One aspect of an embodiment of the present invention provides a data collection method applied to a vehicle, comprising:

[0009] Get the data collection signal sent by the server;

[0010] Collect vehicle status data according to the database container file carried by the data collection signal;

[0011] Upload vehicle status data to the server.

[0012] Another aspect of an embodiment of the present invention provides an electronic device, including:

[0013] at least one processor; and

[0014] a memory communicatively coupled to the at least one processor;

[0015] The memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute the data collection method of any embodiment of the present invention.

[0016] Another aspect of the embodiments of the present invention provides a computer-readable storage medium, comprising: computer instructions, where the computer instructions are used to enable a processor to execute the data acquisition method of any embodiment of the present invention when executed.

[0017] In an embodiment of the present invention, a target control area network bus within a vehicle is determined based on business requirements, along with a corresponding database container file. A data acquisition signal is constructed based on the database container file and business requirements, and vehicle status data is acquired based on the data acquisition signal. By dynamically matching the target control area network bus with the corresponding database container file based on business requirements, this embodiment of the present invention accurately locates the source of required data, avoids collecting irrelevant data, and improves data collection accuracy. Furthermore, the data acquisition signal can be custom-built based on the database container file and business requirements, enhancing the flexibility of data collection.

[0018] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 This is a flow chart of a data collection method applied to a server according to the first embodiment of the present invention;

[0021] Figure 2 This is a flow chart of a data collection method applied to a vehicle according to a second embodiment of the present invention;

[0022] Figure 3 This is a flow chart of another data collection method applied to a server according to the third embodiment of the present invention;

[0023] Figure 4 This is a flow chart of another data collection method applied to a vehicle provided in accordance with a fourth embodiment of the present invention;

[0024] Figure 5This is a flow chart of a data collection method provided according to Embodiment 5 of the present invention;

[0025] Figure 6 A structural diagram of a data acquisition system provided in Example 6 of the present invention;

[0026] Figure 7 This is a block diagram of an electronic device for executing a data acquisition method provided in Example 7 of the present invention. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] Example 1

[0030] Figure 1 A flowchart of a data acquisition method applied to a server is provided for the first embodiment of the present invention. The embodiment of the present invention is applicable to scenarios where vehicle status data can be flexibly collected. The method can be executed by a data acquisition system. The data acquisition system can be implemented in the form of hardware and / or software. The data acquisition system can be configured in an electronic device. Figure 1 As shown, the method includes:

[0031] S110 : Determine a target control local area network bus in the vehicle according to business requirements, and determine a database container file corresponding to the target control local area network bus.

[0032] The target CAN bus refers to a specific bus channel within the CAN bus, selected based on business requirements, for collecting specific vehicle status data. A vehicle contains multiple CAN buses, each transmitting different types of vehicle status data. The target CAN bus is matched based on business requirements.

[0033] A database container file can be understood as a structured file that stores various types of vehicle data and the logic for collecting that data. It is used to capture data on the LAN bus. For example, a database container file includes, but is not limited to, the data content, start time, and / or frequency of data collection. The database container file specifies the scope of data that can be collected and can accurately determine the data transmitted on the target LAN bus within the vehicle.

[0034] Specifically, by consulting the vehicle's technical documentation, the target control area network bus corresponding to different business requirements and the database container file corresponding to the target control area network bus can be identified. Alternatively, by using vehicle monitoring tools to scan and analyze the vehicle's network architecture, the target control area network bus that meets the business requirements can be automatically identified and the database container file corresponding to the target control area network bus can be obtained. The database container file can correspond to the bus identifier of the target control area network bus or the physical number of the target control area network bus.

[0035] S120: Construct a data collection signal based on the database container file and business requirements.

[0036] The data acquisition signal can be understood as an instruction to trigger data acquisition, which can be used to clarify data information such as data content, start time and / or acquisition frequency of the data acquisition.

[0037] Specifically, based on the various types of data stored in the database container file and in conjunction with specific business requirements, a data acquisition signal is constructed by writing script code or using a specific signal generation tool to specify data information such as the bus location, start time, and / or acquisition frequency for data acquisition. The embodiments of the present invention do not limit the specific signal generation tool.

[0038] S130: Acquire vehicle status data of the vehicle according to the data acquisition signal.

[0039] Vehicle status data refers to a series of data generated by a vehicle during driving, which is used to reflect the vehicle's operating status. For example, the data type of the vehicle status data may include numeric type and bus type, and the data content of the vehicle status data may include vehicle speed and vehicle position.

[0040] Specifically, a data acquisition signal is obtained for clarifying acquisition parameters such as data content, start time and / or acquisition frequency of data acquisition, and according to the acquisition signal, the target control local area network bus is monitored to capture the vehicle status data generated by the vehicle during driving from the target control local area network bus.

[0041] In an embodiment of the present invention, a target control area network bus within a vehicle is determined based on business requirements, along with a corresponding database container file. A data acquisition signal is constructed based on the database container file and business requirements, and vehicle status data is acquired based on the data acquisition signal. By dynamically matching the target control area network bus with the corresponding database container file based on business requirements, this embodiment of the present invention accurately locates the source of required data, avoids collecting irrelevant data, and improves data collection accuracy. Furthermore, the data acquisition signal can be custom-built based on the database container file and business requirements, enhancing data collection flexibility.

[0042] Example 2

[0043] Figure 2 A flowchart of a data acquisition method applied to a vehicle is provided for the second embodiment of the present invention. The embodiment of the present invention is applicable to scenarios where vehicle status data can be flexibly acquired. The method can be executed by a data acquisition system. The data acquisition system can be implemented in the form of hardware and / or software. The data acquisition system can be configured in an electronic device. Figure 2 As shown, the method includes:

[0044] S210: Obtain a data acquisition signal sent by the server.

[0045] Specifically, the data acquisition signal sent by the server is received through a communication interface inside the vehicle or by utilizing a sensor installed inside the vehicle.

[0046] S220 . Collect vehicle status data according to the database container file carried by the data collection signal.

[0047] Specifically, after receiving a data acquisition signal from a server via a vehicle's internal communication interface or using sensors installed within the vehicle, the data acquisition information is transmitted to an electronic component within the vehicle responsible for collecting vehicle status data. The electronic component is then controlled to parse the data acquisition signal to extract a database container file, and collect vehicle status data based on the data content, start time, and / or acquisition frequency specified in the database container file. It is understood that this vehicle status data refers to the vehicle status data on the target control area network bus within the vehicle.

[0048] S230: Upload vehicle status data to the server.

[0049] Specifically, the collected vehicle status data can be uploaded to the server in real time via a wired or wireless network, or the vehicle status data can be uploaded to the server according to an upload cycle. In embodiments of the present invention, the data acquisition signal can also include an upload cycle for uploading the vehicle status data to the server. The vehicle status data is uploaded to the server according to the upload cycle. If the upload cycle has not yet arrived, the vehicle status data can be temporarily stored in a local storage device in the vehicle.

[0050] This embodiment of the present invention receives a data acquisition signal sent by a server, controls a vehicle to collect vehicle status data according to a database container file carried in the data acquisition signal, and uploads the collected vehicle status data to the server. By collecting vehicle status data according to the database container file carried in the data acquisition signal, this embodiment of the present invention ensures the accuracy of vehicle status data collection.

[0051] Example 3

[0052] Figure 3 A flowchart of another data collection method applied to the server side is provided for the third embodiment of the present invention. The embodiment of the present invention is a refinement of the above embodiment. Specifically, it refines the specific steps of how to determine the database container file, how to construct the data collection signal, and how to obtain the vehicle data status.

[0053] like Figure 3 As shown, another data collection method applied to the server side may include the following specific steps:

[0054] S310: Call a preset business page to collect business requirements, where the business requirements at least include a target control local area network bus identifier and data collection configuration information.

[0055] The preset business page refers to a user interface pre-configured on the server side, through which the user inputs, selects and / or confirms the vehicle status data to be collected.

[0056] Business requirements refer to the specific requirements of users for vehicle status data collection, which can reflect the business goals that users hope to achieve by collecting vehicle data. For example, business requirements at least include the target control area network bus identifier and data collection configuration information. The target control area network bus identifier can be understood as a symbol that uniquely identifies a specific control area network bus within the vehicle, indicating which control area network bus in the vehicle is the target control area network bus for this data collection. The data collection configuration information can be understood as a set of parameters used to describe the specific details of the collection operation. For example, the data collection configuration information at least includes the signal identifier, signal value type, upload signal type, data collection period, and data reporting period.

[0057] Specifically, the preset business page is started, and the user enters, selects and / or confirms the vehicle status data to be collected in the preset business page by clicking a button or menu item in the preset business page, and calls the preset business page to collect the business needs for vehicle status data collection through a programming interface or command line tool.

[0058] S320: Send the target control area network bus identifier to the vehicle to obtain control area network bus information fed back by the vehicle with respect to the target control area network bus identifier.

[0059] The target control area network bus identifier refers to a character used to uniquely identify a specific control area network bus inside a vehicle. Through the target control area network bus identifier, the target control area network bus inside the vehicle from which data needs to be collected can be accurately located.

[0060] Control area network bus information refers to a series of information used to describe the control area network bus communication in the vehicle. For example, the control area network bus information at least includes information such as node description, message description and signal description. Node description refers to information about electronic components transmitted on the control area network bus. For example, the node description may include information such as component identification and component function; message description refers to information such as the structure, identification and length of the data packet transmitted on the control area network bus. Signal description refers to the specific data field in the message description. For example, the signal description may include information such as vehicle speed and component temperature.

[0061] Specifically, the target control LAN bus identifier of the target control LAN bus is sent to the vehicle end through a network communication protocol or a direct connection, and the vehicle end feeds back control LAN bus information such as node description, message description and signal description transmitted on the target control LAN bus inside the vehicle based on the target control LAN bus identifier.

[0062] S330: Construct a database container file according to the control LAN bus information.

[0063] Specifically, the control LAN bus information fed back by the vehicle end is obtained, and node description, message description, signal description and other information are extracted from the control LAN bus information through a database container file generation tool or a bus analysis tool. A database container file is generated based on the parsed node description, message description and signal description and other information. The database container file clarifies the data range of the collectible data and is used to guide subsequent data collection work.

[0064] S340: Determine the communication connection protocol corresponding to the vehicle.

[0065] Specifically, by consulting the vehicle's technical documentation or using a vehicle diagnostic tool to determine the communication connection protocol used by the vehicle, it is possible to ensure that the server communicates correctly with the vehicle's internal control LAN bus.

[0066] S350: Encapsulate the database container file and the data collection configuration information required by the business into a data collection signal according to the communication connection protocol.

[0067] Among them, the data acquisition configuration information includes signal identification, signal value type, upload signal type, data acquisition period and data reporting period; signal identification refers to the unique number of the signal to be collected, which is used to distinguish the various types of signals to be collected; signal value type refers to the type of signal value of the signal to be collected. For example, the signal value type may include physical value or bus value; upload signal type refers to the method of signal transmission. For example, the upload signal type may include real-time transmission or scheduled transmission.

[0068] Specifically, according to the determined communication connection protocol, the database container file and the data collection configuration information required by the business are encapsulated into a data collection signal, and the data collection signal includes all parameters required in the data collection process.

[0069] S360: Call a preset business page to collect vehicle operation restrictions.

[0070] Among them, the operation restrictions can be understood as the restriction conditions set in the vehicle data collection process, and the operation restrictions include at least one of the following: the signal identifier of the data collection signal sent is not repeated; the signal identifier of the data collection signal sent matches the database container file, which is used to ensure the uniqueness and effectiveness of the data collection process.

[0071] Specifically, the preset business page is started, and the user sets the operation restrictions during the vehicle data collection process in the preset business page by clicking a button or menu item in the preset business page, and calls the preset business page to collect operation restrictions through a programming interface or command line tool.

[0072] S370: Send a data collection signal to the vehicle according to the operation restriction, so that the vehicle collects vehicle status data according to the data collection signal.

[0073] Specifically, after obtaining the vehicle's operating restrictions and ensuring that the data acquisition signal meets the restrictions specified by the operating restrictions, for example, the restrictions may include signal identification uniqueness and matching with information such as the file identification or file name of the database container file, the data acquisition signal is sent to the vehicle, and the vehicle is controlled to collect vehicle status data of the vehicle based on the received data acquisition signal.

[0074] S380: Obtain vehicle status data reported by the vehicle according to a data reporting period carried by the data acquisition signal.

[0075] Specifically, after the vehicle receives the data acquisition signal, the vehicle is controlled to parse the data acquisition signal and obtain the data reporting period carried in the data acquisition signal. According to the data reporting period, the vehicle is controlled to periodically transmit the collected vehicle status data to the server, and the server obtains the vehicle status data transmitted periodically by the vehicle according to the data reporting period.

[0076] In an embodiment of the present invention, a preset business page is called to collect business requirements, where the business requirements include at least a target control LAN bus identifier and data collection configuration information. The target control LAN bus identifier is sent to a vehicle to obtain control LAN bus information fed back by the vehicle for the target control LAN bus identifier. A database container file is constructed according to the control LAN bus information, a communication connection protocol corresponding to the vehicle is determined, and the database container file and the data collection configuration information of the business requirements are encapsulated as a data collection signal according to the communication connection protocol. The preset business page is called to collect operation restrictions of the vehicle, and the data collection signal is sent to the vehicle according to the operation restrictions, so that the vehicle collects vehicle status data according to the data collection signal, so that the server side obtains the vehicle status data reported by the vehicle according to the data reporting period carried by the data collection signal. The embodiment of the present invention can provide a unified configuration entry through a preset business page, simplify the configuration process of data acquisition parameters, and improve the accuracy and effectiveness of data acquisition; clarify the acquisition target by issuing a target control LAN bus identifier, thereby ensuring the accuracy of data acquisition; construct a database container file based on the LAN bus information, so that the file clarifies the data range of the collectible data, thereby ensuring the effectiveness of data acquisition; and ensure the compliance of the data acquisition process by sending a data acquisition signal that meets the operation restrictions, thereby improving the data acquisition efficiency.

[0077] Example 4

[0078] Figure 4 A flowchart of another data collection method applied to a vehicle is provided for the fourth embodiment of the present invention. The embodiment of the present invention is a refinement of the above embodiment. Specifically, it refines the specific steps of how to obtain the data collection signal sent by the server, how to collect vehicle status data according to the database container file carried by the data collection signal, and how to upload the vehicle status data to the server.

[0079] like Figure 4 As shown, another data collection method applied to the vehicle side may include the following specific steps:

[0080] S410: Receive a data acquisition signal sent by the server through a communication connection protocol.

[0081] Specifically, the server uses a defined communication connection protocol, such as the Transmission Control Protocol (TCP) or the Internet Protocol (IP), to send the data acquisition signal to the vehicle. The vehicle receives the data acquisition signal sent by the server through on-board 4G, 5G or Wi-Fi modules based on communication connection protocols such as TCP or IP.

[0082] S420: Determine, based on the signal identifier of the data acquisition signal, that the data acquisition signal is a newly added data acquisition signal.

[0083] Specifically, the signal identifier in the received data acquisition signal is parsed, and whether the data acquisition signal has existed in the vehicle is determined through a hash matching method or matching with a preset identifier list. If not, the data acquisition signal is determined to be a new data acquisition signal, and subsequent operations are performed based on the new data acquisition signal.

[0084] S430: Verify the data acquisition signal and analyze the data acquisition signal to obtain a database container file.

[0085] Specifically, the data acquisition signal is verified. For example, verification methods may include MD5 verification or digital signature verification to ensure data integrity and legitimacy. After the data acquisition signal passes the verification, the download address of the database container file is extracted from the data acquisition signal, and the database container file is downloaded according to the download address.

[0086] S440: Extract node description, message description, and signal description from the database container file.

[0087] Specifically, the database container file is parsed, and node descriptions, message descriptions, and signal descriptions are extracted from the parsed database container file. These description information are used to guide the vehicle to perform subsequent data collection work.

[0088] S450: Collect signal data in the vehicle according to the node description, message description, and signal description to construct a signal matrix.

[0089] The signal matrix refers to a matrix composed of various signal data in the vehicle, which is used to reflect the status of the vehicle.

[0090] Specifically, the vehicle collects signal data within the vehicle based on the node description, message description, and signal description. The vehicle organizes the collected signal data into a signal matrix according to a predetermined format, or converts the signal data into the form of a signal matrix by using a matrix construction algorithm.

[0091] S460: Use the signal matrix, the control local area network channel configuration corresponding to the signal matrix, and the identification code of the signal data in the signal matrix as vehicle status data.

[0092] The LAN channel configuration refers to the physical channel allocation information for the vehicle's LAN bus, used to determine the specific bus location for signal acquisition. For example, the LAN channel configuration could be Channel 1, corresponding to the powertrain LAN bus, or Channel 2, corresponding to the body LAN bus. The above LAN channel configurations are provided for illustrative purposes only to facilitate understanding.

[0093] The identification code refers to a unique code assigned to each signal in the signal matrix. For example, the identification code for temperature may be 110 and the identification code for vehicle speed may be 120. The identification code allows the server to quickly identify the signal type.

[0094] Specifically, the control local area network channel configuration corresponding to the signal matrix and the identification code of the signal data in the signal matrix are obtained, and the constructed signal matrix, control local area network channel configuration and identification code are combined together to form vehicle status data.

[0095] S470: Analyze the data acquisition signal to obtain a data reporting period.

[0096] Specifically, the vehicle further analyzes the data acquisition signal and extracts information about the data reporting cycle in the data acquisition signal. This information will determine when the vehicle reports the vehicle status data to the server.

[0097] S480: Report the vehicle status data to the server according to the data reporting cycle.

[0098] Specifically, the vehicle reports the vehicle status data to the server through a wireless communication module or a wired interface according to the data reporting cycle obtained by the analysis.

[0099] An embodiment of the present invention receives a data acquisition signal sent by a server through a communication connection protocol, determines that the data acquisition signal is a newly added data acquisition signal based on a signal identifier of the data acquisition signal, verifies the newly added data acquisition signal, and parses the newly added data acquisition signal to obtain a database container file, extracts a node description, a message description, and a signal description of the database container file, collects signal data in a vehicle according to the node description, the message description, and the signal description to construct a signal matrix, uses the signal matrix, the control local area network channel configuration corresponding to the signal matrix, and the identification code of the signal data in the signal matrix as vehicle status data, parses the data acquisition signal to obtain a data reporting cycle, and reports the vehicle status data to the server according to the data reporting cycle. The embodiment of the present invention avoids the duplication of data collection work and improves the data collection efficiency by performing subsequent data collection work based on the newly added data collection signal; by verifying the received data collection signal, it can ensure that the data collection signal has no errors or damage during the transmission process, thereby ensuring the accuracy and reliability of subsequent data collection; using the signal matrix and related information as vehicle status data can ensure that the vehicle status data can fully reflect the vehicle status information; by transmitting data according to a fixed data reporting cycle, it can be convenient for the server to classify, store and manage data, thereby improving data processing efficiency.

[0100] Example 5

[0101] Figure 5 This is a flow chart of a data collection method provided by the fifth embodiment of the present invention. The embodiment of the present invention is an integration of the above embodiments. Specifically, a data collection method applied to the server side and a data collection method applied to the vehicle side are integrated. Figure 5 As shown, the method includes:

[0102] The server-side operator configures the target signal that needs to be collected from the vehicle side as a database container file (DatabaseContainer File, DBC), configures the data type (physical value or bus value, etc.) of the data that needs to be reported from the vehicle side as an operation instruction, configures the reporting period of the data that needs to be reported from the vehicle side as an operation instruction, configures the collection frequency of the data that needs to be collected from the vehicle side as an operation instruction, and can also configure the storage path of the DBC file as an operation instruction. It is worth noting that the server-side operator can flexibly configure the DBC file, collection instructions and DBC file identifier according to different application scenarios. When the server-side collects the vehicle-side data, the service page of the server side will impose operation restrictions, which at least include that the signal identifier of the data collection signal issued is not repeated; the signal identifier of the data collection signal issued matches the database container file to prevent misoperation; the collection request includes the DBC file and various operation instructions.

[0103] When the vehicle is powered on, it actively establishes communication with the server. The server sends a collection request to the vehicle. After receiving the collection request, the vehicle parses the operation instructions in the collection request according to the network application protocol and downloads the corresponding DBC file from the server according to the file storage address in the operation instruction. The downloaded DBC file is verified, and the verification operation at least includes MD5 code verification. According to the DBC file format specification, the DBC file is parsed to obtain a list of signals to be collected. The microcontroller unit (MCU) on the vehicle collects the vehicle driving data on the Controller Area Network (CAN) bus based on the obtained data. The MCU encapsulates the collected vehicle driving data, the CAN channel identifier corresponding to the vehicle driving data, and the identification code of the vehicle driving data in the corresponding protocol into vehicle status data and reports it to the server. The data type of the vehicle driving data can be a physical value or a bus value. The frequency of the MCU collecting vehicle driving data and the reporting period of the MCU reporting vehicle status data are all obtained through the operation instructions in the collection request sent by the server.

[0104] Furthermore, in this embodiment of the present invention, server-side operators can configure commands for deleting, updating, and querying DBC files based on different application scenarios. Based on these commands, the server can delete, update, and query BDC files already downloaded by the vehicle, and return the results to the remote end. On the vehicle side, multiple DBC files can be processed simultaneously.

[0105] Furthermore, in an embodiment of the present invention, when the reporting period of the vehicle status data has not been reached, the vehicle status data is stored in a local buffer.

[0106] Furthermore, in an embodiment of the present invention, the vehicle can collect data by self-querying upon power-on.

[0107] Example 6

[0108] Figure 6 This is a structural diagram of a data acquisition system provided by Example 6 of the present invention. Figure 6 As shown, the data acquisition system specifically includes: a server-side module and a vehicle-side module.

[0109] The server-side module includes: a file determination unit for determining a target control LAN bus in a vehicle according to business requirements and determining a database container file corresponding to the target control LAN bus; a signal construction unit for constructing a data acquisition signal based on the database container file and business requirements; and a data acquisition unit for acquiring vehicle status data of the vehicle according to the data acquisition signal.

[0110] The vehicle-side module includes: a signal acquisition unit for acquiring the data acquisition signal sent by the server; a data acquisition unit for collecting vehicle status data according to the database container file carried by the data acquisition signal; and a data upload unit for uploading the vehicle status data to the server.

[0111] The file determination unit is specifically used to call a preset business page to collect business requirements, wherein the business requirements at least include a target control local area network bus identifier and data acquisition configuration information; send the target control local area network bus identifier to the vehicle to obtain the control local area network bus information fed back by the vehicle for the target control local area network bus identifier; and construct a database container file according to the control local area network bus information, wherein the control local area network bus information at least includes a node description, a message description, and a signal description.

[0112] The signal construction unit is specifically used to determine the communication connection protocol corresponding to the vehicle; encapsulate the database container file and the data collection configuration information required by the business into a data collection signal according to the communication connection protocol; wherein the data collection configuration information includes a signal identifier, a signal value type, an upload signal type, a data collection period, and a data reporting period.

[0113] The data acquisition unit is specifically used to call a preset business page to collect the operation restrictions of the vehicle, wherein the operation restrictions include at least one of the following: the signal identifier of the data acquisition signal sent is not repeated; the signal identifier of the data acquisition signal sent matches the database container file; the data acquisition signal is sent to the vehicle according to the operation restrictions, so that the vehicle collects the vehicle status data according to the data acquisition signal; and the vehicle status data reported by the vehicle according to the data reporting period carried by the data acquisition signal is obtained.

[0114] The signal acquisition unit is specifically configured to receive a data acquisition signal sent by the server through a communication connection protocol; determine that the data acquisition signal is a newly added data acquisition signal based on a signal identifier of the data acquisition signal; verify the data acquisition signal, and parse the data acquisition signal to obtain a database container file;

[0115] The data acquisition unit is specifically used to extract the node description, message description and signal description of the database container file; collect the signal data in the vehicle according to the node description, message description and signal description to construct a signal matrix; and use the signal matrix, the control local area network channel configuration corresponding to the signal matrix and the identification code of the signal data in the signal matrix as the vehicle status data.

[0116] The data upload unit is specifically used to analyze the data acquisition signal to obtain the data reporting cycle; and report the vehicle status data to the server according to the data reporting cycle.

[0117] The data acquisition system provided by the embodiment of the present invention can execute the data acquisition method provided by any embodiment of the present invention, and has the corresponding beneficial effects of executing the method.

[0118] Example 7

[0119] Embodiment 7 of the present invention provides an electronic device for executing a data acquisition method, a computer-readable storage medium, and a computer program product.

[0120] Figure 7 A schematic diagram of the structure of an electronic device that can be used to implement any data collection method of an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown in the embodiments of the present invention, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the embodiments of the present invention described and / or required herein.

[0121] like Figure 7 As shown, the electronic device includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the ROM 12 or the computer program loaded from the storage unit 18 to the RAM 13. Various programs and data required for the operation of the electronic device can also be stored in the RAM 13. The processor 11, ROM 12 and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0122] Multiple components in the electronic device are connected to the I / O interface 15, including an input unit 16, such as a keyboard, mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, optical disk, etc.; and a communication unit 19, such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0123] The processor 11 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit, a graphics processing unit, various specialized artificial intelligence computing chips, various processors running machine learning model algorithms, a digital signal processor, and any suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the data acquisition method.

[0124] In some embodiments, the data collection method can be implemented as a computer program that is tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps based on the data collection method can be performed. Alternatively, in other embodiments, processor 11 can be configured to implement the data collection method in any other suitable manner (e.g., via firmware).

[0125] Various implementations of the systems and techniques described above in the embodiments of the present invention may be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays, application specific integrated circuits, application specific standard products, system-on-chip systems, load programmable logic devices, computer hardware, firmware, software, and / or combinations thereof. These various implementations may include: being implemented in one or more computer programs that are executable and / or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0126] The computer programs for implementing the methods of the embodiments of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer programs are executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer programs may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0127] In the context of an embodiment of the present invention, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, RAM, ROM, an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0128] To provide interaction with a user, the systems and techniques described herein can be implemented on a device having: a display device (e.g., a cathode ray tube or liquid crystal display monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0129] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include local area networks, wide area networks, blockchain networks, and the Internet.

[0130] A computing system may include clients and servers. The clients and servers are generally remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a host product within a cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosts and virtual private server services.

[0131] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.

[0132] The above specific embodiments do not constitute a limitation on the scope of protection of the embodiments of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A data collection method, characterized in that: Applied to the server side, the method includes: Determine a target control local area network bus in the vehicle according to business requirements, and determine a database container file corresponding to the target control local area network bus; Constructing a data acquisition signal based on the database container file and the business requirements; Vehicle status data of the vehicle is acquired according to the data acquisition signal.

2. The method according to claim 1, characterized in that The step of determining a target control local area network bus in the vehicle according to business requirements and determining a database container file corresponding to the target control local area network bus includes: Calling a preset business page to collect the business requirements, wherein the business requirements at least include a target control local area network bus identifier and data collection configuration information; Sending the target control local area network bus identifier to the vehicle to obtain control local area network bus information fed back by the vehicle with respect to the target control local area network bus identifier; The database container file is constructed according to the control local area network bus information, wherein the control local area network bus information at least includes a node description, a message description and a signal description.

3. The method according to claim 1, characterized in that The constructing of the data acquisition signal based on the database container file and the business requirements includes: Determining a communication connection protocol corresponding to the vehicle; Encapsulating the database container file and the data collection configuration information required by the business into the data collection signal according to the communication connection protocol; The data collection configuration information includes a signal identifier, a signal value type, an upload signal type, a data collection period, and a data reporting period.

4. The method according to claim 1, characterized in that The acquiring of vehicle status data of the vehicle according to the data acquisition signal comprises: Calling a preset business page to collect operation restrictions of the vehicle, wherein the operation restrictions include at least one of the following: the signal identifier of the data collection signal sent is not repeated; the signal identifier of the data collection signal sent matches the database container file; sending the data collection signal to the vehicle according to the operation restriction, so that the vehicle collects the vehicle status data according to the data collection signal; The vehicle status data reported by the vehicle according to the data reporting period carried by the data acquisition signal is obtained.

5. A data collection method, characterized in that: Applied to a vehicle, the method comprises: Get the data collection signal sent by the server; collecting vehicle status data according to the database container file carried by the data collection signal; Upload the vehicle status data to the server.

6. The method according to claim 5, characterized in that The step of obtaining the data acquisition signal sent by the server includes: Receiving the data acquisition signal sent by the server through a communication connection protocol; determining, based on a signal identifier of the data acquisition signal, that the data acquisition signal is a newly added data acquisition signal; The data acquisition signal is verified and analyzed to obtain the database container file.

7. The method according to claim 5, characterized in that The collecting of vehicle status data according to the database container file carried by the data collection signal includes: Extracting node description, message description and signal description of the database container file; Collect signal data in the vehicle according to the node description, the message description, and the signal description to construct a signal matrix; The signal matrix, the control local area network channel configuration corresponding to the signal matrix, and the identification code of the signal data in the signal matrix are used as the vehicle status data.

8. The method according to claim 5, characterized in that The uploading of the vehicle status data to the server includes: Analyzing the data acquisition signal to obtain a data reporting period; The vehicle status data is reported to the server according to the data reporting period.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to perform the data collection method according to any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, which are used to enable a processor to implement the data collection method according to any one of claims 1 to 8 when the instructions are executed.