CN111464411A - Configuration method and device for data collected by vehicle-mounted terminal - Google Patents

Configuration method and device for data collected by vehicle-mounted terminal Download PDF

Info

Publication number
CN111464411A
CN111464411A CN202010246534.8A CN202010246534A CN111464411A CN 111464411 A CN111464411 A CN 111464411A CN 202010246534 A CN202010246534 A CN 202010246534A CN 111464411 A CN111464411 A CN 111464411A
Authority
CN
China
Prior art keywords
ecu
data
channel
information
configuration
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
CN202010246534.8A
Other languages
Chinese (zh)
Other versions
CN111464411B (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 CN202010246534.8A priority Critical patent/CN111464411B/en
Publication of CN111464411A publication Critical patent/CN111464411A/en
Application granted granted Critical
Publication of CN111464411B publication Critical patent/CN111464411B/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
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/403Bus networks with centralised control, e.g. polling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle
    • 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]

Abstract

The application discloses a configuration method and device for data collected by a vehicle-mounted terminal. The vehicle-mounted terminal is used for collecting data of two Electronic Control Units (ECUs), the two ECUs comprise a master ECU and a slave ECU, and the method comprises the following steps: acquiring configuration information; configuring data transmission channels of the master ECU and the slave ECU according to the configuration information based on an XCP or CCP protocol; data acquisition is carried out on a master ECU and a slave ECU which are configured with data sending channels through a CAN bus; distinguishing whether the source of the acquired data information is a master ECU or a slave ECU on the basis of the interface number of the CAN bus; and storing the data information of the distinguished data sources in the database. Through the method and the device, the problem that in the prior art, when two vehicle-mounted terminals collect double-ECU data, the synchronism of the collected data storage of the two vehicle-mounted terminals is difficult to guarantee is solved.

Description

Configuration method and device for data collected by vehicle-mounted terminal
Technical Field
The application relates to the technical field of information processing, in particular to a configuration method and device for data collected by a vehicle-mounted terminal.
Background
In the related art, only one ECU XCP data CAN be acquired by one vehicle-mounted terminal, the vehicle-mounted terminal only needs to receive and process the data transmitted by the CAN bus, and the vehicle-mounted terminal does not need to perform any processing. If two vehicle-mounted terminals are needed for collecting the data of the double ECUs, the storage synchronism of the collected data by the two vehicle-mounted terminals is difficult to guarantee.
Aiming at the problem that in the prior art, when two vehicle-mounted terminals collect double-ECU data, the synchronism of the collected data storage by the two vehicle-mounted terminals is difficult to ensure, an effective solution is not provided at present.
Disclosure of Invention
The main purpose of the present application is to provide a configuration method and device for data collected by a vehicle-mounted terminal, so as to solve the problem that it is difficult to ensure the synchronism of the data storage of the two vehicle-mounted terminals when the two vehicle-mounted terminals collect dual ECU data in the related art.
In order to achieve the above object, according to one aspect of the present application, a configuration method for acquiring data by a vehicle-mounted terminal is provided. The method comprises the following steps: the vehicle-mounted terminal is used for collecting data of two Electronic Control Units (ECU), the two ECU comprise a main ECU and a slave ECU, and the vehicle-mounted terminal comprises: acquiring configuration information, wherein the configuration information comprises channel information of a data sending channel to be configured by the master ECU and channel information of a data sending channel to be configured by the slave ECU; configuring data transmission channels of the master ECU and the slave ECU according to the configuration information based on an XCP or CCP protocol; the master ECU and the slave ECU which are configured with data sending channels are subjected to data acquisition through a CAN bus; distinguishing whether the source of the acquired data information is the master ECU or the slave ECU on the basis of the interface number of the CAN bus; and storing the data information of the distinguished data sources in the database.
Further, storing the data information of the differentiated data sources in the database includes: storing data information originating from the master ECU in a database; and converting channel information in the data information of which the source is the slave ECU, and storing the converted data information in a database.
Further, configuring the data transmission channels of the master ECU and the slave ECU according to the configuration information based on an XCP or CCP protocol includes: judging whether the current ECU is the main ECU or not; if the main ECU is the main ECU, configuring the main ECU data transmission channel into a first channel and a second channel based on the channel information of the data transmission channel to be configured by the main ECU in the configuration information; and if the data sending channel of the master ECU is successfully configured, converting the channel information of the data sending channel to be configured of the slave ECU in the configuration information, and configuring the data sending channel of the slave ECU into a first channel and a second channel based on the converted configuration information.
Further, the method further comprises: and if the configuration of the data transmission channel of the main ECU is failed, acquiring configuration information again so as to configure the data transmission channel of the main ECU.
Further, before obtaining the configuration information, the method further includes: judging whether the current ECU is the main ECU; if the data transmission channel is the main ECU, the platform issues configuration information comprising channel information of the data transmission channel to be configured of the main ECU; if the configuration information is not the main ECU, transferring the configuration information, and issuing the processed configuration information, wherein the processed configuration information comprises the configuration information of the channel information of the data transmission channel to be configured of the slave ECU; and after the platform issues configuration information including the channel information of the data sending channel to be configured by the main ECU and configuration information including the channel information of the data sending channel to be configured by the main ECU, executing the step of acquiring the configuration information.
In order to achieve the above object, according to one aspect of the present application, there is provided a configuration apparatus for an in-vehicle terminal to collect data, the in-vehicle terminal being configured to collect data of two electronic control units ECUs, the two ECUs including a master ECU and a slave ECU, including: the system comprises an acquisition unit, a configuration unit and a control unit, wherein the acquisition unit is used for acquiring configuration information, and the configuration information comprises channel information of a data transmission channel to be configured by the master ECU and channel information of a data transmission channel to be configured by the slave ECU; a first configuration unit, configured to configure data transmission channels of the master ECU and the slave ECU according to the configuration information based on an XCP or CCP protocol; the acquisition unit is used for acquiring data of the master ECU and the slave ECU which are configured with data transmission channels through a CAN bus; the distinguishing unit is used for distinguishing whether the source of the acquired data information is the master ECU or the slave ECU based on the interface number of the CAN bus; and the storage unit is used for storing the data information of the distinguished data sources in the database.
Further, the storage unit further includes: the first storage module is used for storing data information from which the main ECU is located in a database; and the second storage module is used for converting the channel information in the data information of which the source is the slave ECU and storing the converted data information in a database.
Further, the first configuration unit includes: the judging module is used for judging whether the current ECU is the main ECU or not; a first configuration module, configured to configure, if the master ECU is the master ECU, the master ECU data transmission channel as a first channel and a second channel based on channel information of a data transmission channel to be configured by the master ECU in the configuration information; and the second configuration module is used for converting the channel information of the data sending channel to be configured by the slave ECU in the configuration information if the data sending channel of the master ECU is successfully configured, and configuring the data sending channel configured by the slave ECU into a first channel and a second channel based on the converted configuration information.
In order to achieve the above object, according to one aspect of the present application, there is provided a storage medium, characterized in that the storage medium includes a stored program, wherein the program, when executed by a processor, implements the configuration method of acquiring data by a vehicle-mounted terminal according to any one of the above items.
To achieve the above object, according to one aspect of the present application, there is provided an electronic device including at least one processor, and at least one memory connected with the processor, a bus; the processor and the memory complete mutual communication through the bus; the processor is used for calling the program instruction in the memory so as to execute any one of the above configuration methods for the vehicle-mounted terminal to acquire data.
Through the application, the vehicle-mounted terminal is used for collecting data of two Electronic Control Units (ECUs), the two ECUs comprise a main ECU and a slave ECU, and the method comprises the following steps: acquiring configuration information; configuring data transmission channels of the master ECU and the slave ECU according to the configuration information based on an XCP or CCP protocol; data acquisition is carried out on a master ECU and a slave ECU which are configured with data sending channels through a CAN bus; distinguishing whether the source of the acquired data information is a master ECU or a slave ECU on the basis of the interface number of the CAN bus; the data information of the distinguished data sources is stored in the database, and the problem that in the prior art, when two vehicle-mounted terminals collect double-ECU data, the synchronism of the collected data storage by the two vehicle-mounted terminals is difficult to guarantee is solved. The data sending channels of the master ECU and the slave ECU are configured, so that the same vehicle-mounted terminal can acquire the data of the master ECU and the slave ECU, and the problem of unsynchronized data storage is avoided.
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 flowchart of a configuration method for acquiring data by a vehicle-mounted terminal according to an embodiment of the present application;
fig. 2 is a flowchart of an alternative configuration method for data acquisition of a vehicle-mounted terminal according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a configuration device for acquiring data by a vehicle-mounted terminal according to an embodiment of the application; and
fig. 4 is a block diagram of an apparatus 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.
According to the embodiment of the application, a configuration method for data acquisition of a vehicle-mounted terminal is provided.
Fig. 1 is a flowchart of a configuration method for acquiring data by a vehicle-mounted terminal according to an embodiment of the application. As shown in fig. 1, the vehicle-mounted terminal is used for collecting data of two Electronic Control Units (ECUs), wherein the two ECUs comprise a master ECU and a slave ECU, and the method comprises the following steps:
step S101, obtaining configuration information, wherein the configuration information comprises channel information of a data transmission channel to be configured by the master ECU and channel information of a data transmission channel to be configured by the slave ECU.
It should be noted that the master ECU and the slave ECU have the same configuration, and the protocol stack information of the master ECU and the slave ECU are completely consistent. The above configuration information is used to configure the data transmission channels for the master ECU and the slave ECUs.
Optionally, in the configuration method for acquiring data by a vehicle-mounted terminal provided in the embodiment of the present application, before acquiring configuration information, the method further includes: judging whether the current ECU is a main ECU; if the main ECU is the main ECU, the platform issues configuration information comprising channel information of a data sending channel to be configured by the main ECU; if the data transmission channel is not the master ECU, transferring the configuration information, and issuing the processed configuration information, wherein the processed configuration information comprises the configuration information of the channel information of the data transmission channel to be configured by the slave ECU; and after the platform issues the configuration information comprising the channel information of the data sending channel to be configured by the main ECU and the configuration information comprising the channel information of the data sending channel to be configured by the main ECU, executing the step of acquiring the configuration information.
That is, when the platform issues the configuration information to the in-vehicle terminal, as shown in fig. 2, it is first determined whether the current ECU is the master ECU; if the configuration information of the data sending channel to be configured by the slave ECU is the channel 1 and the channel 2, the platform sends the configuration information of the channel information of the data sending channel to be configured by the slave ECU, for example, the configuration information of the channel information of the data sending channel to be configured by the slave ECU is the channel 1 and the channel 2, and the configuration information of the channel information of the data sending channel to be configured by the slave ECU is converted into the channel 3 and the channel 4. And issuing the processed configuration information to the configuration information of the vehicle-mounted terminal as a platform. After the platform successfully issues the configuration information to the vehicle-mounted terminal, the vehicle-mounted terminal can acquire the configuration information.
And step S102, configuring data transmission channels of the master ECU and the slave ECU according to the configuration information based on the XCP or CCP protocol.
Optionally, in the configuration method for acquiring data by a vehicle-mounted terminal according to the embodiment of the present application, configuring data transmission channels of a master ECU and a slave ECU according to configuration information based on an XCP or CCP protocol includes: judging whether the current ECU is a main ECU; if the main ECU is the main ECU, configuring the data transmission channel of the main ECU into a first channel and a second channel based on the channel information of the data transmission channel to be configured by the main ECU in the configuration information; and if the data sending channel of the main ECU is successfully configured, converting the channel information of the data sending channel to be configured of the slave ECU in the configuration information, and configuring the data sending channel configured of the slave ECU into a first channel and a second channel based on the converted configuration information.
As shown in fig. 2, after the vehicle-mounted terminal acquires the configuration information, it is determined whether the current ECU is the master ECU; if the main ECU is the main ECU, the data transmission channel of the main ECU is configured into a channel 1 (corresponding to the channel one) and a channel 2 (corresponding to the channel two); after the data transmission channel of the master ECU is successfully configured, the channel information of the data transmission channel to be configured by the slave ECU in the configuration information is converted, for example, the channel information of the data transmission channel to be configured by the slave ECU in the configuration information is channel three and channel four, and the channel information is converted into channel one and channel two. And configuring the slave ECU configuration data transmission channel into a first channel and a second channel.
And step S103, acquiring data of the master ECU and the slave ECU which are configured with the data transmission channels through the CAN bus.
And step S104, distinguishing whether the source of the acquired data information is the master ECU or the slave ECU on the basis of the interface number of the CAN bus.
Because the vehicle-mounted terminal collects data of the ECU through the CAN bus, whether the collected data information is from the master ECU or the slave ECU CAN be distinguished based on the interface number of the CAN bus.
Step S105, storing the data information of the distinguished data sources in the database.
In order to ensure the accuracy of the data, a storage mode of the acquired data is defined in the present application, and specifically, in the configuration method for acquiring data by a vehicle-mounted terminal provided in the embodiment of the present application, storing data information in a database, the data information having been distinguished from data sources, includes: storing data information of which the source is a main ECU in a database; and converting channel information in the data information of which the source is the slave ECU, and storing the converted data information in a database.
As shown in fig. 2, it is determined whether the source of the data is the master ECU, and if so, the data information of which the source is the master ECU is stored in the database according to the normal channel information in the data information, for example, channel 1 and channel 2. The channel information in the data information whose source is the slave ECU is converted, for example, the channel information in the data information whose source is the slave ECU is channel 1 and channel 2, which are converted into channel 3 and channel 4, and the converted data information is stored in the database. The collected data information is stored according to the mode, the data stored in the database can be guaranteed, which data are collected in the main ECU can be distinguished based on the channel number, which data are collected from the main ECU, and the accuracy of the stored data is guaranteed. According to the method, one vehicle-mounted terminal is adopted to carry out data acquisition on the master ECU and the slave ECU, and the problem that the two vehicle-mounted terminals are asynchronous in data storage of the master ECU and the slave ECU is avoided.
In order to ensure that the main ECU is successfully configured, in the configuration method for acquiring data by the vehicle-mounted terminal provided in the embodiment of the present application, the method further includes: and if the configuration of the data transmission channel of the main ECU is failed, the configuration information is acquired again so as to configure the data transmission channel of the main ECU. Through the method, after the configuration is failed, the configuration information is re-acquired to configure the main ECU until the main ECU is successfully configured.
To sum up, in the configuration method for acquiring data by a vehicle-mounted terminal provided in the embodiment of the present application, the vehicle-mounted terminal is configured to acquire data of two electronic control units ECUs, the two ECUs include a master ECU and a slave ECU, and the method includes: acquiring configuration information; configuring data transmission channels of the master ECU and the slave ECU according to the configuration information based on an XCP or CCP protocol; data acquisition is carried out on a master ECU and a slave ECU which are configured with data sending channels through a CAN bus; distinguishing whether the source of the acquired data information is a master ECU or a slave ECU on the basis of the interface number of the CAN bus; the data information of the distinguished data sources is stored in the database, and the problem that in the prior art, when two vehicle-mounted terminals collect double-ECU data, the synchronism of the collected data storage by the two vehicle-mounted terminals is difficult to guarantee is solved. The data sending channels of the master ECU and the slave ECU are configured, so that the same vehicle-mounted terminal can acquire the data of the master ECU and the slave ECU, and the problem of unsynchronized data storage is avoided.
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 configuration device for data acquisition of a vehicle-mounted terminal, and it should be noted that the configuration device for data acquisition of a vehicle-mounted terminal according to the embodiment of the present application may be used to execute the configuration method for data acquisition of a vehicle-mounted terminal according to the embodiment of the present application. The following describes a configuration device for acquiring data by a vehicle-mounted terminal according to an embodiment of the present application.
FIG. 3 is a schematic diagram of a configuration device for acquiring data by a vehicle-mounted terminal according to an embodiment of the application. As shown in fig. 3, the in-vehicle terminal is used for collecting data of two electronic control units ECUs, the two ECUs include a master ECU and a slave ECU, and the device includes: the device comprises an acquisition unit 201, a first configuration unit 202, a collection unit 203, a distinguishing unit 204 and a storage unit 205.
Specifically, the obtaining unit 201 is configured to obtain configuration information, where the configuration information includes channel information of a data transmission channel to be configured by a master ECU and channel information of a data transmission channel to be configured by a slave ECU;
a first configuration unit 202 configured to configure data transmission channels of the master ECU and the slave ECU according to configuration information based on an XCP or CCP protocol;
the acquisition unit 203 is used for acquiring data of the master ECU and the slave ECU which are configured with the data transmission channels through the CAN bus;
a distinguishing unit 204, configured to distinguish whether the source of the acquired data information is a master ECU or a slave ECU based on an interface number of the CAN bus;
the storage unit 205 is configured to store the data information of the distinguished data sources in the database.
According to the configuration device for acquiring data by the vehicle-mounted terminal provided by the embodiment of the application, the vehicle-mounted terminal is used for acquiring data of two Electronic Control Units (ECUs), the two ECUs comprise a master ECU and a slave ECU, and configuration information is acquired through an acquisition unit 201, wherein the configuration information comprises channel information of a data sending channel to be configured by the master ECU and channel information of a data sending channel to be configured by the slave ECU; the first configuration unit 202 configures data transmission channels of the master ECU and the slave ECUs according to configuration information based on an XCP or CCP protocol; the acquisition unit 203 acquires data of the master ECU and the slave ECU which are configured with the data transmission channels through the CAN bus; the distinguishing unit 204 distinguishes whether the source is a master ECU or a slave ECU for the acquired data information based on the interface number of the CAN bus; the storage unit 205 stores the data information of the distinguished data sources in the database, and solves the problem that it is difficult to ensure the synchronism of the data storage of the two vehicle-mounted terminals when the two vehicle-mounted terminals collect the dual-ECU data in the related art. The data sending channels of the master ECU and the slave ECU are configured, so that the same vehicle-mounted terminal can acquire the data of the master ECU and the slave ECU, and the problem of unsynchronized data storage is avoided.
Optionally, in the configuration apparatus for acquiring data by a vehicle-mounted terminal provided in the embodiment of the present application, the storage unit 205 further includes: the first storage module is used for storing data information from which the main ECU is sourced in a database; and the second storage module is used for converting the channel information in the data information from the slave ECU and storing the converted data information in the database.
Optionally, in the configuration apparatus for acquiring data by a vehicle-mounted terminal provided in the embodiment of the present application, the first configuration unit 202 includes: the judging module is used for judging whether the current ECU is the main ECU or not; the first configuration module is used for configuring a main ECU data transmission channel into a first channel and a second channel based on channel information of a data transmission channel to be configured by the main ECU in the configuration information if the main ECU is the main ECU; and the second configuration module is used for converting the channel information of the data sending channel to be configured by the slave ECU in the configuration information if the data sending channel of the master ECU is successfully configured, and configuring the data sending channel of the slave ECU into a first channel and a second channel based on the converted configuration information.
Optionally, in the configuration apparatus for acquiring data by a vehicle-mounted terminal provided in the embodiment of the present application, the apparatus further includes: and the second configuration unit is used for acquiring the configuration information again to configure the data transmission channel of the main ECU if the configuration of the data transmission channel of the main ECU fails.
Optionally, in the configuration apparatus for acquiring data by a vehicle-mounted terminal provided in the embodiment of the present application, the apparatus further includes: the judging unit is used for judging whether the current ECU is the main ECU or not before the configuration information is acquired; the first sending unit is used for sending configuration information including channel information of a data sending channel to be configured by the main ECU by the platform if the main ECU is the main ECU; the second sending unit is used for carrying out conversion processing on the configuration information and issuing the processed configuration information if the slave ECU is not the master ECU, wherein the processed configuration information comprises the configuration information of the channel information of the data sending channel to be configured of the slave ECU; and the execution unit is used for executing the step of acquiring the configuration information after the platform issues the configuration information comprising the channel information of the data sending channel to be configured by the main ECU and the configuration information comprising the channel information of the data sending channel to be configured by the main ECU.
The configuration device for acquiring data by the vehicle-mounted terminal comprises a processor and a memory, wherein the acquisition unit 201, the first configuration unit 202, the acquisition unit 203, the distinguishing unit 204, the storage unit 205 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, and the data collected by the vehicle-mounted terminal is configured by adjusting the kernel parameters.
The embodiment of the invention provides a storage medium, wherein a program is stored on the storage medium, and the program realizes a configuration method of data collected by a vehicle-mounted terminal when being executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein a configuration method for acquiring data by a vehicle-mounted terminal is executed when the program runs.
An embodiment of the present invention provides an electronic device, as shown in fig. 4, the device 70 includes at least one processor 701, and at least one memory 702 and a bus 703, which are connected to the processor; the processor 701 and the memory 702 complete mutual communication through a bus 703; the processor 701 is configured to call the program instruction in the memory to execute the configuration method for the vehicle-mounted terminal to collect data. 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: acquiring configuration information, wherein the configuration information comprises channel information of a data sending channel to be configured by the master ECU and channel information of a data sending channel to be configured by the slave ECU; configuring data transmission channels of the master ECU and the slave ECU according to the configuration information based on an XCP or CCP protocol; the master ECU and the slave ECU which are configured with data sending channels are subjected to data acquisition through a CAN bus; distinguishing whether the source of the acquired data information is the master ECU or the slave ECU on the basis of the interface number of the CAN bus; and storing the data information of the distinguished data sources in the database.
When executed on a data processing device, is further adapted to perform a procedure for initializing the following method steps: storing the data information of the distinguished data sources in the database comprises: storing data information originating from the master ECU in a database; and converting channel information in the data information of which the source is the slave ECU, and storing the converted data information in a database.
When executed on a data processing device, is further adapted to perform a procedure for initializing the following method steps: configuring the data transmission channels of the master ECU and the slave ECU according to the configuration information based on an XCP or CCP protocol includes: judging whether the current ECU is the main ECU or not; if the main ECU is the main ECU, configuring the main ECU data transmission channel into a first channel and a second channel based on the channel information of the data transmission channel to be configured by the main ECU in the configuration information; and if the data sending channel of the master ECU is successfully configured, converting the channel information of the data sending channel to be configured of the slave ECU in the configuration information, and configuring the data sending channel of the slave ECU into a first channel and a second channel based on the converted configuration information.
When executed on a data processing device, is further adapted to perform a procedure for initializing the following method steps: the method further comprises the following steps: and if the configuration of the data transmission channel of the main ECU is failed, acquiring configuration information again so as to configure the data transmission channel of the main ECU.
When executed on a data processing device, is further adapted to perform a procedure for initializing the following method steps: before obtaining the configuration information, the method further comprises: judging whether the current ECU is the main ECU; if the data transmission channel is the main ECU, the platform issues configuration information comprising channel information of the data transmission channel to be configured of the main ECU; if the configuration information is not the main ECU, transferring the configuration information, and issuing the processed configuration information, wherein the processed configuration information comprises the configuration information of the channel information of the data transmission channel to be configured of the slave ECU; and after the platform issues configuration information including the channel information of the data sending channel to be configured by the main ECU and configuration information including the channel information of the data sending channel to be configured by the main ECU, executing the step of acquiring the configuration information.
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.
In a typical configuration, a device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
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. 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. The configuration method for collecting data by the vehicle-mounted terminal is characterized in that the vehicle-mounted terminal is used for collecting data of two Electronic Control Units (ECUs), the two ECUs comprise a master ECU and a slave ECU, and the configuration method comprises the following steps:
acquiring configuration information, wherein the configuration information comprises channel information of a data sending channel to be configured by the master ECU and channel information of a data sending channel to be configured by the slave ECU;
configuring data transmission channels of the master ECU and the slave ECU according to the configuration information based on an XCP or CCP protocol;
the master ECU and the slave ECU which are configured with data sending channels are subjected to data acquisition through a CAN bus;
distinguishing whether the source of the acquired data information is the master ECU or the slave ECU on the basis of the interface number of the CAN bus;
and storing the data information of the distinguished data sources in the database.
2. The method of claim 1, wherein storing data information of differentiated data sources in a database comprises:
storing data information originating from the master ECU in a database;
and converting channel information in the data information of which the source is the slave ECU, and storing the converted data information in a database.
3. The method of claim 1, wherein configuring the data transmission channels of the master ECU and the slave ECU according to the configuration information based on an XCP or CCP protocol comprises:
judging whether the current ECU is the main ECU or not;
if the main ECU is the main ECU, configuring the main ECU data transmission channel into a first channel and a second channel based on the channel information of the data transmission channel to be configured by the main ECU in the configuration information;
and if the data sending channel of the master ECU is successfully configured, converting the channel information of the data sending channel to be configured of the slave ECU in the configuration information, and configuring the data sending channel of the slave ECU into a first channel and a second channel based on the converted configuration information.
4. The method of claim 3, further comprising:
and if the configuration of the data transmission channel of the main ECU is failed, acquiring configuration information again so as to configure the data transmission channel of the main ECU.
5. The method of claim 1, wherein prior to obtaining configuration information, the method further comprises:
judging whether the current ECU is the main ECU;
if the data transmission channel is the main ECU, the platform issues configuration information comprising channel information of the data transmission channel to be configured of the main ECU;
if the configuration information is not the main ECU, transferring the configuration information, and issuing the processed configuration information, wherein the processed configuration information comprises the configuration information of the channel information of the data transmission channel to be configured of the slave ECU;
and after the platform issues configuration information including the channel information of the data sending channel to be configured by the main ECU and configuration information including the channel information of the data sending channel to be configured by the main ECU, executing the step of acquiring the configuration information.
6. The configuration device for the vehicle-mounted terminal to collect data is characterized in that the vehicle-mounted terminal is used for collecting data of two Electronic Control Units (ECUs), the two ECUs comprise a master ECU and a slave ECU, and the configuration device comprises:
the system comprises an acquisition unit, a configuration unit and a control unit, wherein the acquisition unit is used for acquiring configuration information, and the configuration information comprises channel information of a data transmission channel to be configured by the master ECU and channel information of a data transmission channel to be configured by the slave ECU;
a first configuration unit, configured to configure data transmission channels of the master ECU and the slave ECU according to the configuration information based on an XCP or CCP protocol;
the acquisition unit is used for acquiring data of the master ECU and the slave ECU which are configured with data transmission channels through a CAN bus;
the distinguishing unit is used for distinguishing whether the source of the acquired data information is the master ECU or the slave ECU based on the interface number of the CAN bus;
and the storage unit is used for storing the data information of the distinguished data sources in the database.
7. The apparatus of claim 6, wherein the storage unit further comprises:
the first storage module is used for storing data information from which the main ECU is located in a database;
and the second storage module is used for converting the channel information in the data information of which the source is the slave ECU and storing the converted data information in a database.
8. The apparatus of claim 6, wherein the first configuration unit comprises:
the judging module is used for judging whether the current ECU is the main ECU or not;
a first configuration module, configured to configure, if the master ECU is the master ECU, the master ECU data transmission channel as a first channel and a second channel based on channel information of a data transmission channel to be configured by the master ECU in the configuration information;
and the second configuration module is used for converting the channel information of the data sending channel to be configured by the slave ECU in the configuration information if the data sending channel of the master ECU is successfully configured, and configuring the data sending channel configured by the slave ECU into a first channel and a second channel based on the converted configuration information.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein the program when executed by a processor implements the configuration method of data collection of the in-vehicle terminal according to any one of claims 1 to 5.
10. An electronic device, comprising at least one processor, and at least one memory, bus connected to the processor;
the processor and the memory complete mutual communication through the bus;
the processor is used for calling the program instructions in the memory so as to execute the configuration method of the vehicle-mounted terminal acquisition data according to any one of claims 1 to 5.
CN202010246534.8A 2020-03-31 2020-03-31 Configuration method and device for data collected by vehicle-mounted terminal Active CN111464411B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010246534.8A CN111464411B (en) 2020-03-31 2020-03-31 Configuration method and device for data collected by vehicle-mounted terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010246534.8A CN111464411B (en) 2020-03-31 2020-03-31 Configuration method and device for data collected by vehicle-mounted terminal

Publications (2)

Publication Number Publication Date
CN111464411A true CN111464411A (en) 2020-07-28
CN111464411B CN111464411B (en) 2022-09-20

Family

ID=71680966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010246534.8A Active CN111464411B (en) 2020-03-31 2020-03-31 Configuration method and device for data collected by vehicle-mounted terminal

Country Status (1)

Country Link
CN (1) CN111464411B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102809962A (en) * 2012-09-03 2012-12-05 同济汽车设计研究院有限公司 Vehicle data acquisition terminal and vehicle information acquisition system
EP2723031A1 (en) * 2012-10-16 2014-04-23 Robert Bosch Gmbh Distributed measurement arrangement for an embedded automotive acquisition device with TCP acceleration
US20150186548A1 (en) * 2013-12-27 2015-07-02 Kia Motors Corporation System and method for acquiring data of electronic control unit
CN106950940A (en) * 2017-03-31 2017-07-14 北京新能源汽车股份有限公司 A kind of vehicle electronic control unit ECU writes with a brush dipped in Chinese ink method and device
CN107231314A (en) * 2016-03-24 2017-10-03 宝沃汽车(中国)有限公司 CAN channel adaptives method, device, system and automobile
CN108195597A (en) * 2017-12-28 2018-06-22 北京理工大学 A kind of reconfigurable vehicle field dynamic Multi parameters Test Macro
CN109407657A (en) * 2019-01-12 2019-03-01 无锡博思创至科技有限公司 A kind of remote vehicle data collection system based on CAN bus CCP agreement

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102809962A (en) * 2012-09-03 2012-12-05 同济汽车设计研究院有限公司 Vehicle data acquisition terminal and vehicle information acquisition system
EP2723031A1 (en) * 2012-10-16 2014-04-23 Robert Bosch Gmbh Distributed measurement arrangement for an embedded automotive acquisition device with TCP acceleration
US20150186548A1 (en) * 2013-12-27 2015-07-02 Kia Motors Corporation System and method for acquiring data of electronic control unit
CN107231314A (en) * 2016-03-24 2017-10-03 宝沃汽车(中国)有限公司 CAN channel adaptives method, device, system and automobile
CN106950940A (en) * 2017-03-31 2017-07-14 北京新能源汽车股份有限公司 A kind of vehicle electronic control unit ECU writes with a brush dipped in Chinese ink method and device
CN108195597A (en) * 2017-12-28 2018-06-22 北京理工大学 A kind of reconfigurable vehicle field dynamic Multi parameters Test Macro
CN109407657A (en) * 2019-01-12 2019-03-01 无锡博思创至科技有限公司 A kind of remote vehicle data collection system based on CAN bus CCP agreement

Also Published As

Publication number Publication date
CN111464411B (en) 2022-09-20

Similar Documents

Publication Publication Date Title
CN107896162B (en) Deployment method and device of monitoring system, computer equipment and storage medium
CN106897205B (en) Test data generation method and device
CN108657237B (en) Method and device for ISCS (Internet Small computer System) integrated ATS (automatic Teller System)
CN112527404A (en) Configuration method, device, equipment and medium for chip relay protection general system
CN104010005A (en) Method and system supporting access of sensors of different types
CN114510452A (en) SOC (System on chip) integration method and device and electronic equipment
CN114676205A (en) Event information processing method and device
CN108647102B (en) Service request processing method and device of heterogeneous system and electronic equipment
CN114040032A (en) Protocol conversion method, system, storage medium and electronic equipment
CN111464411B (en) Configuration method and device for data collected by vehicle-mounted terminal
CN109886041B (en) Real-time data acquisition method and device
CN109274763B (en) Information synchronization method and dual-computer hot standby equipment
CN109308219B (en) Task processing method and device and distributed computer system
CN115914358A (en) Message pushing method and device, electronic equipment and computer storage medium
CN112820092B (en) Method for collecting electricity consumption data, terminal equipment and storage medium
CN109709418B (en) Detection method and device for charging facility, storage medium and processor
CN113326056A (en) Data processing method, data processing device, storage medium and processor
CN108805741B (en) Fusion method, device and system of power quality data
CN111385275A (en) Method and device for processing data in photovoltaic system, storage medium and processor
CN109451035A (en) A kind of method, apparatus and system of separate type collection group agent and service
CN110753070A (en) Data communication method, client, server and data communication system
CN115098436B (en) Multi-core SoC and relay protection system
CN114116181B (en) Distributed data analysis task scheduling system and method
CN108965373B (en) Multimedia file uploading method and device
CN112583945B (en) Multi-network access method and device

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