CN115766773A - Communication system, data acquisition method, vehicle-mounted communication terminal and storage medium - Google Patents

Communication system, data acquisition method, vehicle-mounted communication terminal and storage medium Download PDF

Info

Publication number
CN115766773A
CN115766773A CN202211346413.6A CN202211346413A CN115766773A CN 115766773 A CN115766773 A CN 115766773A CN 202211346413 A CN202211346413 A CN 202211346413A CN 115766773 A CN115766773 A CN 115766773A
Authority
CN
China
Prior art keywords
data
electronic control
control unit
vehicle
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211346413.6A
Other languages
Chinese (zh)
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.)
Chongqing Jinkang Sailisi New Energy Automobile Design Institute Co Ltd
Original Assignee
Chongqing Jinkang Sailisi New Energy Automobile Design Institute 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 Chongqing Jinkang Sailisi New Energy Automobile Design Institute Co Ltd filed Critical Chongqing Jinkang Sailisi New Energy Automobile Design Institute Co Ltd
Priority to CN202211346413.6A priority Critical patent/CN115766773A/en
Publication of CN115766773A publication Critical patent/CN115766773A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to a communication system, a data acquisition method, a vehicle-mounted communication terminal and a storage medium. Wherein, communication system includes: the server is used for issuing the instruction, collecting data and analyzing the data, wherein the server comprises a controller used for issuing the instruction, a collector used for collecting the data and an analyzer used for analyzing the data; the vehicle-mounted communication terminal is used for generating and issuing a subscription event group according to a collection instruction of the controller, wherein the collection instruction comprises a configuration instruction and a static subscription instruction; and the electronic control unit is used for periodically uploading the automobile data according to the subscription event group. By adopting the communication system provided by the application, the problems of fixed content and low real-time performance of data acquisition in the prior art can be improved.

Description

Communication system, data acquisition method, vehicle-mounted communication terminal and storage medium
Technical Field
The present application relates to the field of communications, and in particular, to a communication system, a data acquisition method, a vehicle-mounted communication terminal, and a storage medium.
Background
Along with the promotion of car intelligent degree, covered with the electronic control unit on the car, these electronic control unit not only can control the car, can also gather car data. The vehicle data refers to a series of data generated during the operation of the vehicle, such as the mode of an air conditioner, the real-time position of the vehicle, the operation parameters of an engine and the like. The tester can diagnose the automobile fault and analyze the user habit and the like by analyzing the automobile data so as to improve the performance of the automobile and provide better service.
Currently, to obtain vehicle data, vehicle maintenance personnel usually connect a fault diagnosis instrument to a vehicle and read a vehicle data stream through the fault diagnosis instrument. However, the content of the car data acquired by this method is relatively fixed, and the method is low in real-time performance. Therefore, the prior art has the problems of fixed content and low real-time performance of data acquisition.
Disclosure of Invention
Based on the above, the present application provides a communication system, a data acquisition method, a vehicle-mounted communication terminal and a storage medium, which can solve the problems of fixed content and low real-time performance of data acquisition in the prior art
In a first aspect, the present application provides a communication system comprising: the server is used for issuing the instruction, acquiring data and analyzing the data, and comprises a controller used for issuing the instruction, an acquirer used for acquiring the data and an analyzer used for analyzing the data; the vehicle-mounted communication terminal is used for generating and issuing a subscription event group according to a collecting instruction of the controller, wherein the collecting instruction comprises a configuration instruction and a static subscription instruction; an electronic control unit for uploading vehicle data periodically according to a subscription event group; the vehicle-mounted communication terminal is electrically connected with the controller in a downlink mode, the vehicle-mounted communication terminal is electrically connected with the collector in an uplink mode, the vehicle-mounted communication terminal is electrically connected with the electronic control unit, and the same data model is a YANG data model.
With reference to the first aspect, in a first implementable manner of the first aspect, the server communicates with the vehicle-mounted communication terminal according to a UDP transport protocol; the vehicle-mounted communication terminal is communicated with the electronic control unit according to an SOME/IP transmission protocol; the server and electronic control unit process the data to be sent according to the YANG data model.
In a second aspect, the present application provides a data acquisition method applied to a vehicle-mounted communication terminal, where the data acquisition method includes: under the condition of receiving a collection instruction, determining an electronic control unit according to the collection instruction and generating a subscription event group, wherein the collection instruction comprises a configuration instruction and a static subscription instruction; sending a subscription event group to the electronic control unit, so that the electronic control unit periodically generates and uploads automobile data after receiving the subscription event group; and forwarding the automobile data to the collector under the condition of receiving the data of the automobile.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the step of determining the electronic control unit according to the acquisition instruction and generating the subscription event group includes: extracting the type of data to be acquired in the configuration instruction, and the acquisition duration and acquisition period in the static subscription instruction; generating a subscription event group according to the acquisition duration and the acquisition period; and determining the electronic control unit of the subscription event group to be received according to the data type.
With reference to the second aspect, in a second possible implementation manner of the second aspect, in a case that the acquisition instruction is received, the method further includes: extracting address information in the configuration instruction, wherein the address information is the address of the collector; the method comprises the following steps of forwarding automobile data to a collector under the condition of receiving the automobile data, wherein the steps comprise: and forwarding the automobile data to the collector according to the address information.
With reference to the second aspect, in a second possible implementation manner of the second aspect, before the step of sending the subscription event group to the electronic control unit in case of receiving the acquisition instruction, the method further includes: extracting the enabling information in the configuration instruction, and generating a request enabling message according to the enabling information, wherein the request enabling message is used for indicating to start the function of the electronic control unit; and sending a request enabling message to the electronic control unit, so that the electronic control unit starts the function according to the request enabling message after receiving the enabling request message.
In a third aspect, the present application provides a data acquisition method applied to an electronic control unit, the data acquisition method including: under the condition of receiving a subscription event group, periodically collecting original data according to the subscription event group, and generating an extensible markup language file according to a preset data model and the original data; and packaging the extensible markup language file to obtain automobile data, and sending the automobile data to the vehicle-mounted communication terminal, so that the vehicle-mounted communication terminal packages the automobile data again after receiving the automobile data, and uploads the packaged automobile data to the collector.
In a fourth aspect, the present application provides a vehicle-mounted communication terminal, including: the generating unit is used for determining the electronic control unit according to the acquisition instruction and generating a subscription event group under the condition of receiving the acquisition instruction, wherein the acquisition instruction comprises a configuration instruction and a static subscription instruction; the sending unit is used for sending the subscription event group to the electronic control unit, so that the electronic control unit periodically generates and uploads automobile data after receiving the subscription event group; and the forwarding unit is used for forwarding the automobile data to the collector under the condition of receiving the data of the automobile.
With reference to the fourth aspect, in a first implementable manner of the fourth aspect, the generating unit is specifically configured to: extracting the type of data to be acquired in the configuration instruction, and the acquisition duration and the acquisition period in the static subscription instruction; generating a subscription event group according to the acquisition duration and the acquisition period; and determining the electronic control unit of the subscription event group to be received according to the data type.
With reference to the fourth aspect, in a second implementable manner of the fourth aspect, in a case where the acquisition instruction is received, the generating unit is further configured to: extracting address information in the configuration instruction, wherein the address information is the address of the collector; the forwarding unit is further configured to: and forwarding the automobile data to the collector according to the address information.
With reference to the fourth aspect, in a second implementable manner of the fourth aspect, the generating unit is further configured to extract enable information in the configuration instruction, and generate a request enable message according to the enable information, where the request enable message is used to instruct to start a function of the electronic control unit; the sending unit is further configured to send a request enabling message to the electronic control unit, so that the electronic control unit starts the function according to the request enabling message after receiving the enabling request message.
In a fifth aspect, the present application further provides a vehicle-mounted communication terminal, where the vehicle-mounted communication terminal includes a processor, a transceiver, and a memory, and the processor, the transceiver, and the memory are connected through a bus; a processor for executing a plurality of instructions; the transceiver is used for carrying out data interaction with other equipment; the data acquisition system comprises a memory and a processor, wherein the memory is used for storing a plurality of instructions which are suitable for being loaded by the processor and executing the data acquisition method of the second aspect or any one embodiment of the second aspect, so that the problems of fixed content and low real-time performance of data acquisition in the prior art are solved.
In a sixth aspect, the present application further provides a computer-readable storage medium, in which a plurality of instructions are stored, and the instructions are adapted to be loaded by a processor and execute the data acquisition method according to the second aspect or any one of the embodiments of the second aspect, so as to improve the problems of fixed content and low real-time performance of data acquisition in the prior art.
In summary, the present application provides a communication system, a data acquisition method, a vehicle-mounted communication terminal, and a storage medium, where the communication system includes a server, a vehicle-mounted communication terminal, and an electronic control unit, and the server may perform data acquisition on the electronic control unit through the vehicle-mounted communication terminal. After receiving the acquisition instruction of the server, the vehicle-mounted communication terminal can determine the electronic control unit of the data to be acquired according to the acquisition instruction, and can also generate a subscription event group to send to the electronic control unit, so that the electronic control unit can upload the data periodically. Therefore, based on the communication system, the data acquisition method and the like of the application, the technical scheme of the application is as follows: on one hand, the electronic control unit is configured to flexibly select the automobile data to be collected, on the other hand, the electronic control unit is instructed to upload the automobile data periodically to monitor the automobile data for a long time, and therefore the real-time performance of data collection is improved. In general, the technical scheme of the application improves the problems that the content of data acquisition is fixed and the real-time performance is low in the prior art, and provides great convenience for the analysis and processing of data by testers.
Drawings
FIG. 1 is a block diagram of a communication system in one embodiment;
FIG. 2 is a schematic diagram of a "static subscription" process in one embodiment;
FIG. 3 is a schematic diagram of an "event subscription" process in one embodiment;
FIG. 4 is a diagram that illustrates the combination of "static subscriptions" and "event subscriptions" in one embodiment;
FIG. 5 is a schematic flow chart illustrating a data collection method applied to a vehicle-mounted communication terminal according to an embodiment;
FIG. 6 is a schematic flow chart diagram of a data acquisition method applied to an electronic control unit in one embodiment;
FIG. 7 is a schematic block diagram of a vehicle-mounted communication terminal;
fig. 8 is a structural block diagram of an in-vehicle communication terminal.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It should be noted that the servers (e.g., the controller 111, the collector 112, and the analyzer 113 in fig. 1) referred to in the following of the present application may be implemented by including, but not limited to, independent servers or a server cluster composed of a plurality of servers. The vehicle-mounted communication terminal can include, but is not limited to, a device such as a Telematics BOX (T-BOX) that can perform data interaction with other communication devices. An Electronic Control Unit (ECU) may include, but is not limited to, various controllers in an automobile, such as a Vehicle Control Unit (VCU), a Battery Management System (BMS), and the like, and will not be described herein. A processor may include, but is not limited to, a Central Processing Unit (CPU), a general purpose processor, a coprocessor, a Digital Signal Processor (DSP), an application-specific integrated circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, transistor logic, hardware components, or any combination thereof. It should be noted that the server, the vehicle-mounted communication terminal, and the electronic control unit all include processors, and the processors may implement the method applied to each device described in the present application, for example, the processors in the vehicle-mounted communication terminal may determine the electronic control unit according to the acquisition instruction and generate a subscription event group, and the like, which is not described herein again.
It should be noted that the drawings provided in the present embodiment are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated. The structures, the proportions, the sizes, and the like shown in the drawings attached to the present specification are only used for matching with the disclosure of the present specification, so as to be understood and read by those skilled in the art, and are not used for limiting the conditions under which the present invention can be implemented, so that the present invention has no technical essence, and any structural modification, changes of the proportion relation, or adjustment of the size, should fall within the scope of the technical disclosure of the present invention without affecting the efficacy and the achievable purpose of the present invention. Meanwhile, the directions or positional relationships referred to in the specification as "upper", "lower", "left", "right", "middle", "longitudinal", "lateral", "horizontal", "inner", "outer", "radial", "circumferential", and the like are directions or positional relationships based on the directions or positional relationships shown in the drawings, and are merely for convenience of description, and do not indicate or imply that the devices or elements referred to must have a specific direction, be constructed and operated in a specific direction, and that changes or adjustments of the relative relationships thereof are considered to be within the scope of the present invention without substantial technical changes. And therefore should not be construed as limiting the invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Currently, to obtain vehicle data, vehicle maintenance personnel usually connect a fault diagnosis instrument to a vehicle and read a vehicle data stream through the fault diagnosis instrument. However, the content of the car data obtained by this method is relatively fixed, and the method is low in real-time performance. Therefore, the prior art has the problems of fixed content and low real-time performance of data acquisition.
In this regard, the present application provides a communication system, as shown in the system architecture diagram of the communication system in fig. 1, the communication system includes a server 110 on the network management side and a vehicle 120 on the device side, and the server 110 on the network management side and the vehicle 120 on the device side are connected via a network, the server 110 is configured to issue instructions, collect data, and analyze data, and the vehicle 120 is configured to respond to the instructions of the server 110 to selectively and periodically upload vehicle data.
The server 110 includes a controller 111, a collector 112 and an analyzer 113, wherein the controller 111 is used for issuing an instruction, the collector 112 is used for collecting data, and the analyzer 113 is used for analyzing data; the automobile 120 includes an on-board communication terminal 121, and an electronic control unit (including an electronic control unit 122, an electronic control unit 123, an electronic control unit 124, and the like), where the on-board communication terminal 121 is configured to generate and issue a subscription event group according to a collection instruction of a controller, and the electronic control unit is configured to upload automobile data periodically according to the subscription event group. It should be noted that the acquisition instruction includes a configuration instruction and a static subscription instruction. The configuration instruction comprises the type of data to be collected, and the static subscription instruction comprises a collection period and a collection duration.
The vehicle-mounted communication terminal 121 is electrically connected to the controller 111 in a downlink manner, the vehicle-mounted communication terminal 121 is electrically connected to the collector 112 in an uplink manner, the vehicle-mounted communication terminal 121 is electrically connected to the electronic control unit, and the server 110 and the electronic control unit process data to be sent according to the same data model. The downlink electrical connection means that the vehicle-mounted communication terminal 121 is electrically connected with the controller 111, and based on the electrical connection, the controller 111 can issue data to the vehicle-mounted communication terminal 121. The uplink electrical connection means that the vehicle-mounted communication terminal 121 is electrically connected to the controller 111, and based on the electrical connection, the vehicle-mounted communication terminal 121 can upload data to the controller 111. The aforementioned processing of the data to be sent according to the same data model means that the data to be sent is filled into the format indicated by the data model, so as to obtain the data conforming to the format indicated by the data model, and the data can be recognized by the receiver.
The present application does not limit the specific transmission protocol and data model in the communication system. In an implementable manner, the server 110 and the vehicle-mounted communication terminal 121 communicate with each other according to a User Datagram Protocol (UDP); the vehicle-mounted communication terminal 121 and the electronic control unit communicate according to the SOME/IP transmission protocol; the server 110 and the electronic control unit process the data to be sent according to the YANG data model. Based on the implementable method, the decapsulating process in the communication system may include: the controller packages the information to be sent in sequence according to the YANG data model, the SOME/IP transmission protocol and the UDP transmission protocol to obtain a message, and sends the message to the vehicle-mounted communication terminal; after receiving the message of the controller, the vehicle-mounted communication terminal unpacks the message in sequence according to the sequence of a UDP (user Datagram protocol) transmission protocol, an SOME/IP (System management/Internet protocol) transmission protocol and a YANG (ya Authority) data model, extracts information in the message, generates a message conforming to the SOME/IP transmission protocol according to the information and sends the message to the electronic control unit; after receiving the message sent by the vehicle-mounted communication terminal, the electronic control unit executes the operation indicated by the message, such as periodically uploading the vehicle data. In order to realize uploading of the automobile data, the electronic control unit packages the acquired original data in sequence according to a YANG data model and an SOME/IP transmission protocol to obtain the automobile data, and sends the automobile data to the vehicle-mounted communication terminal; after receiving the automobile data, the vehicle-mounted communication terminal encapsulates the automobile data according to a UDP (user Datagram protocol) transmission protocol and sends the encapsulated automobile data to the collector; after receiving the data sent by the vehicle-mounted communication terminal, the collector unpacks the data in sequence according to the UDP transmission protocol, the SOME/IP transmission protocol and the YANG data model to extract the original data. It should be noted that the raw data may be unprocessed data detected by the electronic control unit, such as the forwarding flow, the status of the lamp, the air conditioning temperature, and the like.
It should be noted that, processing the data to be sent according to the same data model can enable the receiving side to identify the meaning of the data sent by the sending side. Benefits that may be realized by this approach include, but are not limited to: the server can realize the configuration of the electronic control unit in the automobile based on the method. The data acquisition method is characterized in that the acquisition instruction generated by the server according to the data model can be recognized by the vehicle-mounted communication terminal, so that the vehicle-mounted communication terminal can determine the electronic control unit required by the server to acquire data and acquire the data from the electronic control unit, and the automobile data generated according to the data model can be recognized by the server after the electronic control unit is instructed to upload the data without special prior agreement. Therefore, the server can designate any one or more electronic control units in the automobile, so that diversified vehicle data can be acquired, the configuration of the electronic control units in the automobile is realized, the limitation of data types and data volumes is avoided, and the flexibility and the diversity are strong.
It should be noted that, since the vehicle-mounted communication terminal can generate and issue the subscription event group according to the instruction of the controller, the electronic control unit receiving the subscription event group periodically uploads the data. Therefore, the server can monitor the automobile data for a long time and periodically, and the real-time performance of data acquisition is improved.
It should be noted that the position, shape, number, and the like of each device in fig. 1 are only illustrative, and should not limit the technical solution of the present application. For example, three electronic control units (including the electronic control unit 122, the electronic control unit 123, and the electronic control unit 124) in fig. 1 are used to indicate that a plurality of electronic control units in an automobile are electrically connected to the vehicle-mounted communication terminal, and the application does not limit the number of electronic control units electrically connected to the vehicle-mounted communication terminal. In addition, the vehicle-mounted communication terminal and the electronic control unit can be electrically connected in a wireless or wired mode and can also be connected in a direct connection or non-direct connection mode, and the specific connection mode of the vehicle-mounted communication terminal and the electronic control unit is not limited in the application. Generally, the vehicle-mounted communication terminal and the electronic control unit are connected by a bus.
Based on the communication system described above, the communication process applied to the communication system can be divided into two parts, one is a "static subscription" process between the controller 111 of the server 110 and the in-vehicle communication terminal 121 of the automobile 120, and the other is an "event subscription" process between the in-vehicle communication terminal 121 of the automobile 120 and the electronic control unit 122. Next, for better understanding of the communication process of each device in the communication system provided by the present application, the present application will be described in detail with reference to fig. 2, fig. 3, and fig. 4.
As shown in fig. 2, a "static subscription" process is described. The controller 111 sends a static subscription instruction to the vehicle-mounted communication terminal 121, so that the vehicle-mounted communication terminal 121 actively uploads data to the collector 112.
As shown in FIG. 3, an "event subscription" process is described. The vehicle-mounted communication terminal 121 sends a subscription event group to the electronic control unit 122, where the subscription event group includes a collection duration T and a collection period T, so that the electronic control unit 122 uploads the vehicle data in real time according to the collection period T within the collection duration T. Specifically, the electronic control unit 122 generates first vehicle data at time t1 and transmits the first vehicle data to the vehicle-mounted communication terminal 121, generates second vehicle data at time t2, and transmits the second vehicle data to the vehicle-mounted communication terminal 121 immediately after receiving the subscription event group until data upload is completed after the nth vehicle data is generated at time tn and the nth vehicle data is transmitted to the vehicle-mounted communication terminal 121. At this time, the period from the transmission of the first vehicle data to the transmission of the n-th vehicle data reaches the cycle period T. Wherein T2= T1+ T, tn = T1+ (n-1) × T, tn-T1= T, (n-1) × T = T, and n is a positive integer.
As shown in fig. 4, which is a combined schematic diagram of "static subscription" and "event subscription", the controller 111 sends a static subscription instruction to the vehicle-mounted communication terminal 121, so that the vehicle-mounted communication terminal 121 sends a subscription event group to the electronic control unit, and actively uploads data to the collector 112 every time vehicle data periodically sent by the electronic control unit is received. It should be noted that, in order to enable the electronic control unit to upload data periodically, the vehicle-mounted communication terminal 121 sends the subscription event group to the electronic control unit, where the subscription event group includes a collection period and a collection duration, and the electronic control unit uploads the vehicle data in real time according to the collection period T within the collection duration T after receiving the subscription event group. The vehicle-mounted communication terminal 121 forwards the vehicle data to the collector 112 every time it receives the vehicle data sent by the electronic control unit. As shown in fig. 4, after receiving first vehicle data of the electronic control unit at time T1, the vehicle-mounted communication terminal 121 immediately forwards the first vehicle data to the collector 112, and after receiving second vehicle data of the electronic control unit at time T2, immediately forwards the second vehicle data to the collector 112. Wherein T2= T1+ T, tn = T1+ (n-1) × T, tn-T1= T, (n-1) × T = T, n is a positive integer. It should be noted that the time delay such as the transmission delay and the propagation delay is ignored.
In summary, the present application provides a communication system, based on which the electronic control unit can be configured to collect diversified data, and control the electronic control unit to periodically upload the car data by combining a static subscription and an event subscription. Therefore, the communication system provided by the application can be used for solving the problems of fixed content and low real-time performance of data acquisition in the prior art.
In one embodiment, the present application provides a data acquisition method applied to a vehicle-mounted communication terminal, as shown in fig. 5. Next, the data collection method provided in this embodiment will be described with the vehicle-mounted communication terminal as an execution subject. Specifically, the method comprises the following steps:
501: and under the condition of receiving the acquisition instruction, determining the electronic control unit according to the acquisition instruction and generating a subscription event group.
The acquisition instruction comprises a configuration instruction and a static subscription instruction. The static subscription instruction comprises a collection period and a collection duration, and the configuration instruction comprises the type of data to be collected by the controller. After the vehicle-mounted communication terminal receives the acquisition instruction, on one hand, one or more electronic control units needing to be acquired are determined according to the configuration instruction, and different electronic control units are used for providing different automobile data; on the other hand, the vehicle-mounted communication terminal generates a subscription event group according to the static subscription instruction, namely extracts the acquisition period and the acquisition duration from the static subscription instruction and generates the subscription event group which accords with the transmission protocol between the vehicle-mounted communication terminal and the electronic control unit, wherein the subscription event group comprises the acquisition period and the acquisition duration. When the vehicle-mounted communication terminal and the electronic control unit adopt the SOME/IP transmission protocol for communication, the subscription event group can be an event message in the SOME/IP transmission protocol.
502: and sending the subscription event group to the electronic control unit, so that the electronic control unit periodically generates and uploads the automobile data after receiving the subscription event group.
And the vehicle-mounted communication terminal sends the subscription event group to one or more electronic control units to be acquired. The vehicle-mounted communication terminal triggers the electronic control unit to carry out periodic data reporting according to the acquisition period and the acquisition duration in the subscription event group by sending the subscription event group.
503: and forwarding the automobile data to the collector under the condition of receiving the data of the automobile.
Since the vehicle-mounted communication terminal sends the subscription event group to the electronic control unit, the electronic control unit uploads the vehicle data periodically. The vehicle-mounted communication terminal transmits the vehicle data by the collector when receiving the vehicle data. When the collector and the vehicle-mounted communication terminal communicate according to the UDP transmission protocol, the vehicle-mounted communication packages the received automobile data according to the UDP transmission protocol, and then sends the packaged automobile data to the collector.
In an implementable manner, the specific implementation process of determining the electronic control unit according to the acquisition instruction and generating the subscription event group in step 501 may be: extracting the type of data to be acquired in the configuration instruction, and the acquisition duration and the acquisition period in the static subscription instruction; generating a subscription event group according to the acquisition duration and the acquisition period; and determining the electronic control unit of the subscription event group to be received according to the data type.
After receiving the acquisition instruction, the vehicle-mounted communication terminal decapsulates the acquisition instruction according to a preset transmission protocol, a data model and the like to obtain the type of data to be acquired in the configuration instruction, and the acquisition duration and the acquisition period in the static subscription instruction. And then the vehicle-mounted communication terminal generates a subscription event group comprising acquisition duration and acquisition period, determines one or more corresponding electronic controllers according to the data type, and takes the one or more electronic controllers as an electronic control unit for receiving the subscription event group. Specifically, when the server communicates with the vehicle-mounted communication terminal according to the UDP transport protocol, the vehicle-mounted communication terminal communicates with the electronic control unit according to the SOME/IP transport protocol, and the server and the electronic control unit process the data to be sent according to the YANG data model, the decapsulating process may be: and decapsulating the acquisition instruction according to a UDP transmission protocol, an SOME/IP transmission protocol and a YANG data model in sequence.
In an implementable manner, in the case of receiving the acquisition instruction, the data acquisition method applied to the vehicle-mounted communication terminal may further include: extracting address information in the configuration instruction, wherein the address information is the address of the collector; the method comprises the following steps of forwarding automobile data to a collector under the condition of receiving the automobile data, wherein the steps comprise: and forwarding the automobile data to the collector according to the address information.
The configuration instruction includes a data type, address information, and the like, where the Address information is an Address of the collector, such as an Internet Protocol (IP) Address. The vehicle-mounted communication terminal can extract the address information in the configuration instruction through the decapsulation process under the condition that the acquisition instruction is received, and forwards the automobile data to the acquisition device according to the address information under the condition that the automobile data is received.
In an implementable manner, before the step of sending the subscription event group to the electronic control unit is performed in a case where the collection instruction is received, the data collection method applied to the vehicle-mounted communication terminal may further include: extracting the enabling information in the configuration instruction, and generating a request enabling message according to the enabling information, wherein the request enabling message is used for indicating to start the function of the electronic control unit; and sending a request enabling message to the electronic control unit, so that the electronic control unit starts the function according to the request enabling message after receiving the enabling request message.
The configuration instruction comprises a data type, enabling information and the like, and the enabling information comprises at least one function needing to be started. And under the condition that the vehicle-mounted communication terminal receives the acquisition instruction, the vehicle-mounted communication terminal can extract the enabling information in the configuration instruction through the decapsulation process and generate a request enabling message according to the configuration instruction. And then sending the request enabling message to the electronic control unit to indicate to start the electronic control unit to start the function according to the request message, and executing the step of sending the subscription event group to the electronic control unit after enabling. When the vehicle-mounted communication terminal and the electronic control unit adopt an SOME/IP transmission protocol for communication, the subscription event group can be a Fire & Forget message in the SOME/IP transmission protocol. It should be noted that, unlike the event message, the event message may trigger the electronic control unit to periodically upload the car data, and the Fire & form message is a message with return or no return, and the Fire & form message may be used to notify the electronic control unit to execute the function indicated by the Fire & form message without returning a message. It should be noted that, the reason why the electronic control unit is enabled before the step of sending the subscription event group to the electronic control unit is that the electronic control unit cannot acquire the vehicle data before the function of the electronic control unit is started.
In an implementable manner, in the case of receiving the acquisition instruction, the vehicle-mounted communication terminal extracts the data type, the address information and the enabling information in the configuration instruction, and extracts the acquisition duration and the acquisition period in the static subscription instruction. And then determining a corresponding electronic control unit according to the data type, generating a request enabling message according to the enabling information, and generating a subscription event group according to the acquisition duration and the acquisition period. Then sending a request enabling message to the determined electronic control unit to enable the electronic control message to start the function, then sending a subscription event group to the determined electronic control unit to enable the electronic control unit to periodically send automobile data, and sending the received automobile data to the collector according to the address information when the automobile data is received each time.
In summary, when the vehicle-mounted communication terminal receives the acquisition instruction, the electronic control unit may be configured, and through the subscription event group, the electronic control unit periodically generates and uploads the automobile data after receiving the subscription event group. Therefore, the embodiment of the application flexibly selects the automobile data to be collected by configuring the electronic control unit on one hand, and carries out long-time and periodic monitoring on the automobile data by indicating the electronic control unit to periodically upload the automobile data on the other hand, so that the real-time performance of data collection is improved. In summary, the embodiment of the application improves the problems of fixed content and low real-time performance of data acquisition in the prior art.
In another embodiment, the present application further provides a data acquisition method applied to an electronic control unit, as shown in fig. 6. Next, the data collection method provided in this embodiment will be described with the electronic control unit as an execution subject. Specifically, the method comprises the following steps:
601: and under the condition of receiving the subscription event group, periodically collecting original data according to the subscription event group, and generating an extensible markup language file according to a preset data model and the original data.
After receiving the subscription event group, the electronic control unit periodically collects the original data according to the collection period and the collection duration in the subscription event group. Whenever raw data is collected, the raw data is processed according to a preset data model (i.e. the same data model as that used by the server, which may be a YANG data model) to generate an eXtensible Markup Language (XML). That is, the original data is filled into the format indicated by the data model, so as to obtain the extensible markup language file conforming to the format indicated by the data model, and the extensible markup language file can store the identification of the receiver of the same data model. It should be noted that the server (including the collector, the controller and the analyzer), the vehicle-mounted communication terminal and the electronic control unit can store the data model.
For example, the code representation of XML may be as follows:
Figure BDA0003917366950000141
wherein the XML represents the vehicle data of the electronic control unit identified as 1, including: the name is air conditioner, the mode is refrigeration, and the wind speed is automatic.
602: and packaging the extensible markup language file to obtain automobile data, and sending the automobile data to the vehicle-mounted communication terminal, so that the vehicle-mounted communication terminal packages the automobile data again after receiving the automobile data, and uploads the packaged automobile data to the collector.
When the extensible markup language file is generated once, the electronic control unit encapsulates the extensible markup language file to obtain automobile data and sends the automobile data to the vehicle-mounted communication terminal, so that the vehicle-mounted communication terminal encapsulates the automobile data again after receiving the automobile data and uploads the encapsulated automobile data to the collector. For example, the electronic control unit encapsulates the xml file according to the SOME/IP transport protocol to obtain the car data, and sends the car data to the on-board communication terminal, so that the on-board communication terminal encapsulates according to the UDP transport protocol.
In summary, the present application provides a data collecting method applied to an electronic control unit, where after receiving a subscription event group, the electronic control unit periodically uploads automobile data according to an indication of the subscription event group.
In another embodiment, the present invention further provides a vehicle-mounted communication terminal, see fig. 7. The embodiments of the present invention may perform functional unit division on the device according to the above method examples, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that, the division of the cells in the embodiment of the present invention is schematic, and is only one logic function division, and another division manner may be available in actual implementation. As shown in fig. 7, the vehicle-mounted communication terminal includes a generating unit 710, a sending unit 720, and a forwarding unit 730, specifically: the generating unit 710 is configured to, in a case that a collecting instruction is received, determine an electronic control unit according to the collecting instruction and generate a subscription event group, where the collecting instruction includes a configuration instruction and a static subscription instruction; a sending unit 720, configured to send the subscription event group to the electronic control unit, so that the electronic control unit periodically generates and uploads the automobile data after receiving the subscription event group; and the forwarding unit 730 is configured to forward the automobile data to the collector when the data of the automobile is received.
In an implementation manner, the generating unit 710 is specifically configured to: extracting the type of data to be acquired in the configuration instruction, and the acquisition duration and acquisition period in the static subscription instruction; generating a subscription event group according to the acquisition duration and the acquisition period; and determining the electronic control unit of the subscription event group to be received according to the data type.
In an implementation manner, in a case that the acquisition instruction is received, the generating unit 710 is further configured to: extracting address information in the configuration instruction, wherein the address information is the address of the collector; the forwarding unit 730 is further configured to: and forwarding the automobile data to the collector according to the address information.
In an implementation manner, the generating unit 710 is further configured to extract enabling information in the configuration instruction, and generate a request enabling message according to the enabling information, where the request enabling message is used to instruct to start a function of the electronic control unit; the sending unit 720 is further configured to send a request enabling message to the electronic control unit, so that the electronic control unit starts the function according to the request enabling message after receiving the enabling request message.
In another embodiment, the application further provides a vehicle-mounted communication terminal, referring to fig. 8. The vehicle-mounted communication terminal can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, portable wearable devices and servers, and the servers can be implemented by independent servers or server clusters formed by a plurality of servers. The in-vehicle communication terminal in the present embodiment as shown in the figure may include: a processor 810, a transceiver 820, and a memory 830. The processor 810, transceiver 820 and memory 830 are coupled by a bus 840. A processor 810 for executing a plurality of instructions; a transceiver 820 for data interaction with other devices; a memory 830 for storing a plurality of instructions adapted to be loaded by the processor 810 and to perform the data acquisition method as in the previous embodiments.
The processor 810 may be a Central Processing Unit (CPU), a general-purpose processor, a coprocessor, a Digital Signal Processor (DSP), an application-specific integrated circuit (ASIC), a Field Programmable Gate Array (FPGA), or other programmable logic device, transistor logic, hardware components, or any combination thereof. The processor 810 may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and the like. In this embodiment, the processor 810 may adopt a single chip, and various control functions may be implemented by programming the single chip, for example, in this embodiment, functions of determining the electronic control unit and generating a subscription event group according to the acquisition instruction are implemented, and the processor has the advantages of strong computing capability and fast processing speed. Specifically, the method comprises the following steps: the processor 810 is configured to execute the function of the generating unit 710, and is configured to determine, according to a collecting instruction, an electronic control unit and generate a subscription event group in the case that the collecting instruction is received, where the collecting instruction includes a configuration instruction and a static subscription instruction; a transceiver 820 for performing the function of the transmitting unit 720, for transmitting the subscription event group to the electronic control unit, so that the electronic control unit periodically generates and uploads car data after receiving the subscription event group; the transceiver 820 is also used to perform the function of the forwarding unit 730 for forwarding the car data to the collector in case the data of the car is received.
In one implementation, the processor 810 is specifically configured to: extracting the type of data to be acquired in the configuration instruction, and the acquisition duration and acquisition period in the static subscription instruction; generating a subscription event group according to the acquisition duration and the acquisition period; and determining the electronic control unit of the subscription event group to be received according to the data type.
In an implementation manner, in a case of receiving an acquisition instruction, the processor 810 is further configured to: extracting address information in the configuration instruction, wherein the address information is the address of the collector; the transceiver 820 is further configured to: and forwarding the automobile data to the collector according to the address information.
In an implementation manner, the processor 810 is further configured to extract enabling information in the configuration instruction, and generate a request enabling message according to the enabling information, where the request enabling message is used to instruct to start a function of the electronic control unit; the transceiver 820 is further configured to send a request enabling message to the electronic control unit, so that the electronic control unit starts the function according to the request enabling message after receiving the enabling request message.
In another embodiment, the present application further provides a computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor and to perform the method of any of the preceding embodiments. A processor for executing a plurality of instructions; and the memory is used for storing a plurality of instructions, and the instructions are suitable for being loaded by the processor and executing the data acquisition method applied to the vehicle-mounted communication terminal in the embodiment.
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A communication system, comprising:
the server is used for issuing the instruction, acquiring data and analyzing the data, and comprises a controller used for issuing the instruction, an acquirer used for acquiring the data and an analyzer used for analyzing the data;
the vehicle-mounted communication terminal is used for generating and issuing a subscription event group according to a collection instruction of the controller, wherein the collection instruction comprises a configuration instruction and a static subscription instruction;
an electronic control unit for uploading vehicle data periodically according to the group of subscription events;
the vehicle-mounted communication terminal is electrically connected with the controller in a downlink mode, the vehicle-mounted communication terminal is electrically connected with the collector in an uplink mode, the vehicle-mounted communication terminal is electrically connected with the electronic control unit, and the server and the electronic control unit process data to be sent according to the same data model.
2. The communication system according to claim 1, wherein the server communicates with the in-vehicle communication terminal according to a UDP transport protocol; the vehicle-mounted communication terminal and the electronic control unit are communicated according to an SOME/IP transmission protocol; the same data model is a YANG data model.
3. A data acquisition method is applied to a vehicle-mounted communication terminal and is characterized by comprising the following steps:
under the condition of receiving a collection instruction, determining an electronic control unit according to the collection instruction and generating a subscription event group, wherein the collection instruction comprises a configuration instruction and a static subscription instruction;
sending the subscription event group to the electronic control unit, so that the electronic control unit periodically generates and uploads automobile data after receiving the subscription event group;
and forwarding the automobile data to a collector under the condition of receiving the automobile data.
4. The method of claim 3, wherein the step of determining an electronic control unit and generating a subscription event group based on the acquisition instruction comprises:
extracting the type of the data to be acquired in the configuration instruction, and the acquisition duration and the acquisition period in the static subscription instruction;
generating a subscription event group according to the acquisition duration and the acquisition period;
and determining the electronic control unit to receive the subscription event group according to the data type.
5. The method of claim 3, wherein in the event that an acquisition instruction is received, the method further comprises: extracting address information in the configuration instruction, wherein the address information is the address of the collector;
under the condition of receiving the automobile data, the step of forwarding the automobile data to a collector comprises the following steps: and forwarding the automobile data to the collector according to the address information.
6. The method according to claim 3, characterized in that, in the case of reception of a collection instruction, before said step of sending said group of subscription events to said electronic control unit, it further comprises:
extracting enabling information in the configuration instruction, and generating a request enabling message according to the enabling information, wherein the request enabling message is used for indicating to start the function of the electronic control unit;
and sending the request enabling message to the electronic control unit, so that the electronic control unit starts a function according to the request enabling message after receiving the enabling request message.
7. A data acquisition method is applied to an electronic control unit and is characterized by comprising the following steps:
under the condition of receiving a subscription event group, periodically collecting original data according to the subscription event group, and generating an extensible markup language file according to a preset data model and the original data;
and encapsulating the extensible markup language file to obtain automobile data, and sending the automobile data to the vehicle-mounted communication terminal, so that the vehicle-mounted communication terminal encapsulates the automobile data again after receiving the automobile data, and uploads the encapsulated automobile data to the collector.
8. An in-vehicle communication terminal, comprising:
the generating unit is used for determining the electronic control unit according to the acquisition instruction and generating a subscription event group under the condition of receiving the acquisition instruction, wherein the acquisition instruction comprises a configuration instruction and a static subscription instruction;
a sending unit, configured to send the subscription event group to the electronic control unit, so that the electronic control unit periodically generates and uploads automobile data after receiving the subscription event group;
and the forwarding unit is used for forwarding the automobile data to the collector under the condition of receiving the data of the automobile.
9. The vehicle-mounted communication terminal is characterized by comprising a processor, a transceiver and a memory, wherein the processor, the transceiver and the memory are connected through a bus; the processor to execute a plurality of instructions; the transceiver is used for carrying out data interaction with other equipment; the storage medium storing the plurality of instructions adapted to be loaded by the processor and to perform the data acquisition method of any of claims 3-6.
10. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor and to perform the data acquisition method according to any one of claims 3-6.
CN202211346413.6A 2022-10-31 2022-10-31 Communication system, data acquisition method, vehicle-mounted communication terminal and storage medium Pending CN115766773A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211346413.6A CN115766773A (en) 2022-10-31 2022-10-31 Communication system, data acquisition method, vehicle-mounted communication terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211346413.6A CN115766773A (en) 2022-10-31 2022-10-31 Communication system, data acquisition method, vehicle-mounted communication terminal and storage medium

Publications (1)

Publication Number Publication Date
CN115766773A true CN115766773A (en) 2023-03-07

Family

ID=85354511

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211346413.6A Pending CN115766773A (en) 2022-10-31 2022-10-31 Communication system, data acquisition method, vehicle-mounted communication terminal and storage medium

Country Status (1)

Country Link
CN (1) CN115766773A (en)

Citations (11)

* 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
CN103021199A (en) * 2012-12-07 2013-04-03 招商局重庆交通科研设计院有限公司 Vehicle-mounted terminal of intelligent transportation system based on Internet of things and dynamic three-dimensional geographic information system (3D GIS)
CN105610850A (en) * 2016-01-13 2016-05-25 天津大学 Vehicle service and management system based on internet of vehicles
CN111049937A (en) * 2019-12-31 2020-04-21 长城汽车股份有限公司 Data processing system and data transmission method of intelligent networked automobile
CN112202869A (en) * 2020-09-27 2021-01-08 华人运通(上海)云计算科技有限公司 Data transmission method, server, vehicle, and computer storage medium
CN112653726A (en) * 2020-12-07 2021-04-13 国网北京市电力公司 Vehicle-mounted terminal, operation method thereof, computer-readable storage medium, and processor
CN113079072A (en) * 2020-01-06 2021-07-06 广州汽车集团股份有限公司 Vehicle data acquisition method and system, computer equipment and storage medium
US20210327163A1 (en) * 2020-04-20 2021-10-21 Innova Electronics Corporation Router for vehicle diagnostic system
CN113965602A (en) * 2021-10-26 2022-01-21 广州小鹏汽车科技有限公司 Subscription and release communication method, server and system of vehicle-mounted ECU
CN114661808A (en) * 2022-03-31 2022-06-24 三一电动车科技有限公司 Vehicle-mounted data acquisition method and device, vehicle-mounted terminal and vehicle
CN115206000A (en) * 2021-04-13 2022-10-18 广州汽车集团股份有限公司 Automobile data acquisition method and device, vehicle-mounted terminal and automobile

Patent Citations (11)

* 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
CN103021199A (en) * 2012-12-07 2013-04-03 招商局重庆交通科研设计院有限公司 Vehicle-mounted terminal of intelligent transportation system based on Internet of things and dynamic three-dimensional geographic information system (3D GIS)
CN105610850A (en) * 2016-01-13 2016-05-25 天津大学 Vehicle service and management system based on internet of vehicles
CN111049937A (en) * 2019-12-31 2020-04-21 长城汽车股份有限公司 Data processing system and data transmission method of intelligent networked automobile
CN113079072A (en) * 2020-01-06 2021-07-06 广州汽车集团股份有限公司 Vehicle data acquisition method and system, computer equipment and storage medium
US20210327163A1 (en) * 2020-04-20 2021-10-21 Innova Electronics Corporation Router for vehicle diagnostic system
CN112202869A (en) * 2020-09-27 2021-01-08 华人运通(上海)云计算科技有限公司 Data transmission method, server, vehicle, and computer storage medium
CN112653726A (en) * 2020-12-07 2021-04-13 国网北京市电力公司 Vehicle-mounted terminal, operation method thereof, computer-readable storage medium, and processor
CN115206000A (en) * 2021-04-13 2022-10-18 广州汽车集团股份有限公司 Automobile data acquisition method and device, vehicle-mounted terminal and automobile
CN113965602A (en) * 2021-10-26 2022-01-21 广州小鹏汽车科技有限公司 Subscription and release communication method, server and system of vehicle-mounted ECU
CN114661808A (en) * 2022-03-31 2022-06-24 三一电动车科技有限公司 Vehicle-mounted data acquisition method and device, vehicle-mounted terminal and vehicle

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄晓波;姜振军;熊树生;郭宝圣;毛彬滔;章昱帆;李伟;: "基于GPRS的远程诊断车载终端的设计与实现", 工业仪表与自动化装置, no. 01, 15 February 2016 (2016-02-15) *

Similar Documents

Publication Publication Date Title
CN107800554B (en) Data acquisition method, device and system
CN111918368A (en) Internet of things wireless communication networking transmission method and device and computer equipment
CN107065706B (en) A kind of distributed telemetry station working-condition monitoring system
US11514731B2 (en) Method and system for remote vehicle diagnostics
CN111740952B (en) Vehicle supervision platform data management method and system
EP4270335A1 (en) Systems and methods for diagnostic tool detection in a telematics device
CN110333713A (en) Car fault diagnosis method and system
CN112087500A (en) Remote vehicle data acquisition method and system
CN111552266B (en) Vehicle remote diagnosis method, system, equipment connector and vehicle connector
CN112702219B (en) Internet of things network monitoring method, device, equipment and storage medium
CN112202884A (en) Data transmission method for vehicle connection interface device and related equipment
CN111294261B (en) Signal processing method, signal processing device, computer equipment and storage medium
CN111552268A (en) Vehicle remote diagnosis method, equipment connector and vehicle connector
CN115766773A (en) Communication system, data acquisition method, vehicle-mounted communication terminal and storage medium
CN116709253B (en) Vehicle-mounted gateway and vehicle
CN111880510A (en) New energy automobile data acquisition and transmission method and equipment
CN115484184B (en) Fault diagnosis method, fault diagnosis system, vehicle, and readable storage medium
CN116366675A (en) Internet of vehicles safety data management method, device, system, equipment and medium
CN112650597B (en) Processing system and method for high concurrency acquisition data
CN114296426A (en) Remote diagnosis method and device for vehicle, server and storage medium
US11223706B2 (en) Communication system for vehicle-to-environment communication
CN115695533A (en) Data uploading method and system, computer equipment and storage medium
CN116224976B (en) Test method and device
CN216526777U (en) Semi-physical simulation pedal sensing equipment
CN115529244B (en) Data acquisition and transmission rule configuration method and device for vehicle terminal, server and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination