Data processing method, processing device, communication device and vehicle-mounted system
By concentrating the data serialization process in the on-board system to the processing device for execution, the problem of increased workload and cost during function development or update in the on-board system is solved, and a more efficient development and update process is achieved.
Patent Information
- Application Number
- CN202310634627.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-31
- Publication Date
- 2024-12-03
AI Technical Summary
In an on-board system, when developing or updating functions, it is necessary to develop or update the communication device and processing device separately, resulting in a sharp increase in workload, an increase in development costs, and a longer development cycle.
The serialization process of data is centralized to the processing device for execution, so that when developing or updating functions, the processing device only needs to be updated without updating the communication device, reducing the workload of developing or updating functions.
Through centralized serialization processing, the development or update demand for communication devices is reduced, the workload and cost of development or update functions is reduced, and the development cycle is shortened.
Smart Images

Figure CN119071095A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a data processing method, a processing device, a communication device, an in-vehicle system, a vehicle, and a computer program product. Background Art
[0002] Currently, the vehicle-mounted system includes a communication device and a processing device, wherein the communication device is used to serialize the control data and send the serialized control data to the processing device. As users have more and more demands for vehicle functions, developers need to develop or update the vehicle functions. When developers are developing or updating a function, they often need to adjust the data serialization process. In this case, the communication device and the processing device need to be developed or updated separately, resulting in a sharp increase in workload, increased development costs, and a long development cycle.
[0003] Taking the development of remote lock control function and Bluetooth lock control function as an example, the development workload may include developing remote communication interface and Bluetooth communication interface for terminal equipment, remote communication device and short-distance communication device respectively, and developing corresponding control logic for terminal equipment, remote communication device and short-distance communication device. In addition, since the remote communication device and the short-distance communication device need to communicate with the body controller through two sets of controller area network (CAN) signals, the body control module (BCM) also needs to develop corresponding logic for the two sets of signals, which leads to a sharp increase in workload, increased development costs and a longer development cycle. Summary of the invention
[0004] The embodiments of the present application are directed to providing a data processing method, a processing device, a communication device, an in-vehicle system, a vehicle, and a computer program product. The following describes the method from several aspects.
[0005] In a first aspect, a data processing method is provided, which is applied to a processing device in a vehicle-mounted system, wherein the vehicle-mounted system includes a first communication device, and the method includes: acquiring converted first control data from the first communication device; serializing the converted first control data to obtain target control data; and sending the target control data to a corresponding target control unit, wherein the target control data is used to control at least part of the functions in the vehicle-mounted system through the target control unit.
[0006] In a second aspect, a method for data processing is provided, which is applied to a communication device in a vehicle-mounted system, and the method includes: obtaining control data to be transmitted, wherein the control data is used to control at least part of the functions in the vehicle-mounted system; performing format conversion on the control data to be transmitted to obtain converted control data; and sending the converted control data to a processing device in the vehicle-mounted system, wherein the converted control data is used to be serialized at the processing device.
[0007] In a third aspect, a processing device in a vehicle-mounted system is provided, wherein the processing device includes modules for executing the data processing method described in the first aspect.
[0008] According to a fourth aspect, a communication device in a vehicle-mounted system is provided, wherein the communication device includes modules for executing the data processing method according to the second aspect.
[0009] In a fifth aspect, a vehicle-mounted system is provided, wherein the vehicle-mounted system comprises the processing module introduced in the third aspect and one or more communication devices introduced in the fourth aspect.
[0010] In a sixth aspect, a vehicle is provided, comprising any vehicle-mounted system introduced in the fifth aspect.
[0011] In a seventh aspect, a computer program product is provided, comprising a computer program / instruction, which, when executed by a processor, implements the methods described in the above aspects.
[0012] In some implementations, the computer program product may include computer program code. When the computer program code runs on a computer, the computer executes the control methods shown in the above aspects.
[0013] In some other implementations, the computer program product includes a computer-readable medium storing program code. When the computer program code runs on a computer, the computer executes the control methods shown in the above aspects.
[0014] The present application centralizes the data serialization process to the processing device for execution, so that in the process of developing or updating functions, the processing device can be developed or updated without updating the communication device. Compared with the traditional solution that requires updating or developing solutions for the communication device and the processing device separately, it helps to reduce the workload of developing or updating functions. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a schematic diagram of a communication architecture applicable to the vehicle-mounted system of an embodiment of the present application.
[0016] Figure 2 It is a schematic diagram of a communication architecture applicable to a vehicle-mounted system according to another embodiment of the present application.
[0017] Figure 3 It is a schematic diagram of a vehicle-mounted system according to an embodiment of the present application.
[0018] Figure 4 It is a schematic diagram of data packets corresponding to different communication formats in the embodiment of the present application.
[0019] Figure 5 It is a schematic diagram of the number of data packets corresponding to different communication formats in the embodiment of the present application.
[0020] Figure 6 It is a schematic diagram of the traditional protocol architecture.
[0021] Figure 7 It is a schematic diagram of the protocol architecture provided in the embodiments of the present application.
[0022] Figure 8 It is a schematic diagram of a communication architecture applicable to a vehicle-mounted system according to another embodiment of the present application.
[0023] Fig. 9 It is a schematic diagram of a communication architecture applicable to a vehicle-mounted system according to another embodiment of the present application.
[0024] Fig.10 It is a schematic diagram of a processing device according to an embodiment of the present application.
[0025] Fig.11 It is a schematic diagram of a communication device according to an embodiment of the present application.
[0026] Fig.12 It is a schematic flow chart of the data transmission method in an embodiment of the present application.
[0027] Fig.13 It is a schematic flow chart of a data transmission method in another embodiment of the present application.
[0028] Fig.14 It is a schematic flow chart of a data transmission method in another embodiment of the present application. DETAILED DESCRIPTION
[0029] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
[0030] For ease of understanding, the following Figure 1 and Figure 2 The communication architecture applicable to the vehicle-mounted system of the embodiment of the present application is introduced. Figure 1As shown, the communication architecture 100 may include a terminal device 110 and an in-vehicle system 120 .
[0031] The terminal device 110 is also called user equipment (UE), which can be a device that provides voice and / or data connectivity to users and can be used to connect people, objects and machines. For example, a handheld device with a wireless connection function, a vehicle-mounted device, etc. The terminal device in the embodiment of the present application can be a mobile phone, a tablet computer (Pad), a laptop computer, a PDA, a mobile internet device (MID), a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, etc.
[0032] The above-mentioned vehicle-mounted system 120 can be used for communication and control of the vehicle in which the vehicle-mounted system is located.
[0033] In some implementations, the vehicle-mounted system 120 may also be used for communication between the vehicle in which the vehicle-mounted system is located and an external device (e.g., a terminal device), also known as "inter-vehicle network communication". In other implementations, the vehicle-mounted system 120 may also be used for in-vehicle communication of the vehicle in which the vehicle-mounted system is located, also known as "in-vehicle network communication".
[0034] It should be noted that the embodiments of the present application do not limit the communication types supported by the inter-vehicle network communication. In some implementations, the communication types of the inter-vehicle network communication may include remote communication. For example, for remote communication, the supported communication formats may include 2G format, 3G format, 4G format, 5G format, and other communication formats introduced in future communication protocols.
[0035] In other implementations, the communication type of the vehicle-to-vehicle network communication may include short-range communication. For example, for short-range communication, the supported communication formats may include near field communication (NFC), Bluetooth low energy (Bluetooth LE, BLE), Bluetooth communication format, etc.
[0036] In some implementations, the in-vehicle system 120 may include a first communication device 121 , a second communication device 122 , and a plurality of control units 123 .
[0037] The first communication device 121 may support the first communication standard. For example, the first communication device 121 may parse data transmitted based on the first communication standard. For another example, the first communication device 121 may decapsulate data transmitted based on the first communication standard.
[0038] Taking the first communication standard including remote communication as an example, the first communication device 121 may be a remote communication device, such as a telematics box (TBOX).
[0039] In some implementations, the remote communication device can process information sent by the terminal device to the target vehicle through the cloud server 130. At this time, the cloud server 130 can serve as a dedicated station between the terminal device and the target vehicle, responsible for forwarding the remote information to the target vehicle.
[0040] The second communication device 122 may support the second communication standard. For example, the second communication device 122 may parse data transmitted based on the first communication standard. For another example, the second communication device 122 may decapsulate data transmitted based on the second communication standard.
[0041] Taking the second communication standard including near field communication as an example, the second communication device 122 may be a near field communication device.
[0042] The control unit 123 is configured to receive information (eg, control data) sent by the first communication device 121 and / or the second communication device 122 and perform corresponding operations based on the received information.
[0043] In some implementations, the first communication device 121 and / or the second communication device 122 may be connected to a plurality of control units 123 via a gateway (GW).
[0044] In some implementations, the control unit 123 may be an electronic control unit (ECU). Of course, in the embodiment of the present application, the control unit 123 may also be other components with control functions.
[0045] For example, the information sent by the first communication device 121 can be used for remote vehicle locking / unlocking, and accordingly, the control unit that receives the above information can control the target vehicle to perform locking / unlocking operations. For another example, the information sent by the first communication device 121 can be used for remote air conditioning control, and accordingly, the control unit that receives the above information can control the air conditioning in the target vehicle to operate. For another example, the information sent by the first communication device 121 can be used for remote window control, and accordingly, the control unit that receives the above information can control the windows in the target vehicle to operate.
[0046] For example, the information sent by the second communication device 122 can be used for Bluetooth locking / unlocking, and accordingly, the control unit that receives the above information can control the target vehicle to perform locking / unlocking operations. For another example, the information sent by the second communication device 122 can be used for Bluetooth air conditioning control, and accordingly, the control unit that receives the above information can control the air conditioning in the target vehicle to operate.
[0047] In some scenarios, the above-mentioned multiple control units 123 will be divided into different controllers based on their positions in the target vehicle. For example, a control unit for the body of the target vehicle can be divided into one controller, namely, a body controller. In other scenarios, the above-mentioned multiple control units 123 will be divided into different controllers based on the different control functions performed. For example, one or more control units for controlling the air conditioner in the target vehicle can be divided into one controller, namely, a climate control module (CCM).
[0048] For ease of understanding, the above combined Figure 1 The communication architecture 100 is introduced. The following takes control data as an example to introduce the transmission process of control data in the communication architecture 100.
[0049] It is assumed that the terminal device 110, the cloud server 130, and the TBOX 121 communicate with each other via a mobile network (4G / 5G) to exchange control data based on remote communication. For ease of description, the control data transmitted based on remote communication will be referred to as "control data corresponding to remote vehicle control" below.
[0050] The terminal device 110 and the near field communication device 122 communicate with each other through a short-range communication mechanism to exchange control data based on short-range communication. For ease of description, the control data transmitted based on near field communication is referred to as "control data corresponding to near field vehicle control" below.
[0051] Accordingly, see Figure 2 As shown, the control function 1 in the terminal device 110 can generate control data corresponding to the remote vehicle control, and send the control data corresponding to the remote vehicle control to the TBOX 121 through the cloud server 130, and the TBOX 121 processes the control data corresponding to the remote vehicle control, converts it into a control signal based on the vehicle control CAN transmission and sends it to the corresponding execution ECU. Among them, the processing may include parsing and serialization. Serialization may refer to the process of converting a data structure or object state into a usable format (for example, saving it as a file or sending it via a network) so as to be able to restore the original state in the subsequent execution environment corresponding to the same or another unit.
[0052] In some scenarios, the TBOX 121 may include multiple data processing modules to process control data of different control functions. Figure 2 As shown, TBOX 121 may include n data processing modules, wherein data processing module 1 is used to process control data corresponding to remote control function 1, data processing module 2 is used to process control data corresponding to remote control function 2, ..., data processing module n is used to process control data corresponding to remote control function n.
[0053] In other scenarios, the n data processing modules can send the processed control signals to different control units. Figure 2 As shown, the data processing module 1 can send the processed control signal to the vehicle body controller. The data processing module n can send the parsed control signal to the CCM.
[0054] It should be noted that, in the embodiment of the present application, the above-mentioned control unit can also send the signal based on the vehicle control CAN transmission to the TBOX for processing and convert it into information that can be transmitted based on the remote communication protocol.
[0055] Also, see Figure 2 As shown, the control function 2 in the terminal device 110 can generate control data corresponding to the near-field vehicle control, and send the control data corresponding to the near-field vehicle control to the short-distance communication device 122, and the short-distance communication device 122 processes the control data corresponding to the near-field vehicle control, converts it into a control signal based on the vehicle control CAN transmission and sends it to the corresponding execution ECU. The processing may include parsing and serialization.
[0056] In some scenarios, the short-range communication device 122 may include multiple data processing modules to process control data of different control functions. Figure 2 As shown, the short-range communication device 122 may include m data processing modules, wherein data processing module 1 is used to process the control data corresponding to near-field control function 1, data processing module 2 is used to process the control data corresponding to near-field control function 2, ..., data processing module m is used to process the control data corresponding to near-field control function n.
[0057] In other scenarios, the m data processing modules can send the processed control signals to different control units. Figure 2 As shown, the data processing module 1 can send the parsed control signal to the vehicle body controller. The data processing module m can send the processed control signal to the CCM.
[0058] It should be noted that, in the embodiment of the present application, the above-mentioned control unit can also send the signal based on the vehicle control CAN transmission to the short-range communication device 122 for processing, and convert it into information that can be transmitted based on the short-range communication protocol.
[0059] As users' demands for vehicle functions increase, developers need to develop or update vehicle functions. However, when developers develop or update a function, they often need to repeatedly develop or update multiple units of the vehicle, resulting in a sharp increase in workload, increased development costs, and a long development cycle.
[0060] Taking the development of remote lock control function and Bluetooth lock control function as an example, the development workload may include developing remote communication interface and Bluetooth communication interface for terminal equipment, TBOX and short-distance communication device, and developing corresponding control logic for terminal equipment, TBOX and short-distance communication device. In addition, since TBOX and short-distance communication device need to communicate with the body controller through two sets of CAN signals, BCM also needs to develop corresponding logic for the two sets of signals.
[0061] The applicant has found that in the process of developing or updating functions, the format conversion of control data usually does not change, for example, the conversion between the data format corresponding to the communication format and the target data format (for example, the data format of the CAN protocol). What needs to be changed is usually the serialization process of the control data. Since the serialization process is based on the data structure of the data, when the corresponding function is updated or developed, the data structure will also change. Based on this, the applicant proposes that the serialization process of the data can be centralized to the processing device for execution. In this way, in the process of developing or updating functions, the processing device can be developed or updated without updating the communication device (for example, the first communication device and / or the second communication device). Compared with the traditional solution that requires the communication device and the processing device to be updated or developed separately, it helps to reduce the workload of developing or updating functions.
[0062] For ease of understanding, the following Figure 3 The vehicle-mounted system of an embodiment of the present application is introduced. Figure 3 is a schematic diagram of a vehicle-mounted system 300 according to an embodiment of the present application. Figure 3 As shown, the vehicle system 300 may include a communication device and a processing device 330 .
[0063] The above-mentioned communication device may include a first communication device 310 and / or a second communication device 320. The first communication device 310 is used to convert the first control data transmitted based on the first communication standard into the target data format, and send the converted first control data to the first processor; the second communication device 320 is used to convert the second control data transmitted based on the second communication standard into the target data format, and send the converted second control data to the first processor. Among them, the first communication device 310 can be the first communication device 121 or the second communication device 122. Correspondingly, if the first communication device 310 is the first communication device 121, the second communication device 320 can be the second communication device 122. If the first communication device 310 is the second communication device 122, the second communication device 320 can be the second communication device 121.
[0064] The processing device 330 is used to serialize the converted first control data and / or the converted second control data to obtain target control data, and send the target control data to the corresponding target control unit, and the target control data is used to control at least part of the functions in the vehicle through the target control unit.
[0065] In some implementations, the target data format is a data format corresponding to a communication protocol supported by the in-vehicle network. For example, the target data format may be a data format corresponding to an in-vehicle CAN protocol. Of course, the target data format may also be other data formats.
[0066] In an embodiment of the present application, the first communication device 310 may be the first communication device 121 introduced above, and / or the second communication device 320 may be the second communication device 122 introduced above. For related introductions, please refer to the above description. For the sake of brevity, they will not be repeated here.
[0067] In some implementations, the processing device 330 may be a gateway in a vehicle-mounted system. In this way, the connection method between the gateway and each control unit in a traditional vehicle-mounted control system may be reused, which helps reduce changes to the connection method between the various components of the vehicle-mounted system.
[0068] The above describes a scheme for transmitting control data from a communication device to a control unit in a vehicle-mounted system in an embodiment of the present application. In an embodiment of the present application, the above data can also be transmitted from the control unit to the communication device. In some implementations, the processing device is used to send the first data and the second data to be transmitted to the first communication device and the second communication device respectively, wherein the first data and the second data are in a target data format; the first communication device is used to convert the first data from the target data format to a data format corresponding to the first communication standard, and send the converted first data; the second communication device is used to convert the second data from the target data format to a data format corresponding to the second communication standard, and send the converted second data.
[0069] In the embodiment of the present application, the above data may be, for example, response data to the control data, or other data, which is not limited in the embodiment of the present application.
[0070] As described above, in the embodiment of the present application, the serialization process of data is abstracted by each communication device and executed by the processing device. Therefore, in the example of the present application, the functions of the protocol layer (for example, the application layer) in each communication device and the protocol layer in the processing device are slightly adjusted.
[0071] In some implementations, the first communication device is used to convert the first control data into a target data format at a first data exchange format protocol layer.
[0072] Taking the case where the first communication format includes a remote communication format as an example, the application layer in the first communication device may include a first data exchange format protocol layer. The first data exchange format protocol layer may be used to convert the data format of the first control data from a data format corresponding to the remote communication to a data format corresponding to the vehicle-mounted CAN protocol. Therefore, the first data exchange format protocol layer may also be referred to as a "remote / in-vehicle data conversion protocol layer".
[0073] In some other implementations, the second communication device is used to convert the second control data into a target data format at a second data exchange format protocol layer.
[0074] Taking the case where the second communication format includes a short-distance communication format as an example, the application layer in the second communication device may include a second data exchange format protocol layer. The second data exchange format protocol layer may be used to convert the data format of the second control data from a data format corresponding to the short-distance communication to a data format corresponding to the vehicle-mounted CAN protocol. Therefore, the second data exchange format protocol layer may also be referred to as a "near field / in-vehicle data conversion protocol layer".
[0075] In some implementations, the processing device may be provided with a data serialization protocol layer. The data serialization protocol layer may be used to serialize the converted first control data and / or the converted second control data to obtain target control data.
[0076] As mentioned above, the processing device needs to serialize data supported by multiple communication formats, and the process is relatively complicated. Therefore, in order to reduce the complexity of the processing device serializing data, the data structure of data transmitted under multiple communication formats can be unified in the embodiment of the present application.
[0077] See also Figure 4 As shown, the data format 1 supported by the first communication standard may include a data packet header 1 and data content (also known as "payload"), wherein the data packet header may be a data packet header supported by the first communication standard. Taking the first communication indication as long-distance communication as an example, the data packet header may include a TCP header. The data format 2 supported by the second communication standard may include a data packet header 2 and data content (also known as "payload"), wherein the data packet header may be a data packet header supported by the second communication standard. Taking the second communication indication as short-distance communication as an example, the data packet header may include a length (Length), a type (Type) and an identifier (Identifier).
[0078] Among them, the data structure of the effective load in data format 1 is the same as the data structure of the effective load in data format 2, which helps to reduce the complexity of data serialization by the processing device.
[0079] See also Figure 5 As shown, remote communication can be transmitted through Ethernet, because Ethernet has strong data processing capabilities and high communication rates. The amount of control data that terminal devices can send through Ethernet is usually large. Taking JSON format as an example of the data format supported by remote communication, for a simple instruction shown below, its data length may reach 33 bytes. For those more complex control data, the amount of data is very large. However, there are strict restrictions on the amount of control data transmitted in short-distance communication. Usually, the data length of a single frame of low-power Bluetooth cannot exceed 250 bytes. If it is too long, it needs to be packetized, which affects the stability and timeliness of communication.
[0080] Example of a simple instruction:
[0081] {
[0082] "title":"RemoteControl",
[0083] "keywords":"LockUnlock"
[0084] }
[0085] Therefore, in order to take into account the transmission characteristics of long-distance communication and short-distance communication, in an embodiment of the present application, a data structure based on a protocol buffer can be selected. The data structure based on the protocol buffer is an open source structured data representation method, and the compiled data size is friendly (the data size is controlled within 130-160Byte), which can take into account the transmission characteristics of long-distance communication and short-distance communication. In other words, the processing device is used to serialize the converted first control data and / or the converted second control data using the protocol buffer technology at the data serialization protocol layer.
[0086] For ease of understanding, the following uses T-BOX and short-range communication devices as examples. Figure 6 and Figure 7 The traditional protocol architecture is compared with the protocol architecture provided in the embodiments of the present application.
[0087] Figure 6 The protocol architecture in the traditional T-BOX is shown in FIG. Figure 6 As shown, the protocol architecture of T-BOX may include protocol layers 1 to 4 in order from low to high. Protocol layer 1 may be one or more protocol layers, which may be applicable to 3G, 4G, 5G or other communication protocols. For example, physical layer, data link layer, etc. Protocol layer 2 may be a network layer, for example, a network layer based on Ethernet and / or a network layer based on transmission control protocol / internet protocol (TCP / IP). Protocol layer 3 may be message queuing telemetry transport (MQTT). Protocol layer 4 may be a JSON data interaction protocol layer.
[0088] Figure 6 shows the protocol architecture in a conventional short-range communication device, see Figure 6 As shown, the protocol architecture of the short-range communication device may include protocol layers 1 to 3 in order from low to high, and protocol layer 1 may be a BLE physical layer. Protocol layer 2 may include a (generic attribute profile, GATT) layer, an attribute protocol (attribute protocol, ATT) layer, and a generic access profile (generic access profile, GAP) layer. Protocol layer 3 may be a custom data interaction protocol layer.
[0089] In order to reuse the long-distance communication function and the short-distance communication function as much as possible, the wireless communication capabilities are reused as much as possible in the TBOX and the short-distance communication device, and the data serialization protocol layer in the application layer is extracted and handled centrally by the gateway, which helps to get rid of the problem of repeated function development caused by different communication standards. Figure 7 introduce.
[0090] See also Figure 7 As shown, the protocol architecture of T-BOX may include protocol layer 1 to protocol layer 4 in order from low to high, and protocol layer 1 may be one or more protocol layers. For example, physical layer, data link layer, etc. Protocol layer 2 may be a network layer, for example, a network layer based on Ethernet and / or a network layer based on transmission control protocol / internet protocol (TCP / IP). Protocol layer 3 may be message queuing telemetry transport (MQTT). Protocol layer 4 may be a first data exchange format protocol layer, which is used to convert the data format of control data transmitted by remote communication into a data format supported by the in-vehicle network.
[0091] See also Figure 7 As shown, the protocol architecture of the short-range communication device may include protocol layers 1 to 3 in order from low to high, and protocol layer 1 may be a BLE physical layer. Protocol layer 2 may include a (Generic Attribute Profile, GATT) layer, an attribute protocol (attribute protocol, ATT) layer, and a generic access profile (generic access profile, GAP) layer. Protocol layer 3 may be a second data exchange format protocol layer, which is used to convert the data format of the control data transmitted by the short-range communication into a data format supported by the in-vehicle network.
[0092] See also Figure 7 As shown, a data serialization protocol layer is deployed in the gateway, and the converted first control data and / or the converted second control data are serialized using the protocol cache technology.
[0093] As mentioned above, based on the traditional vehicle-mounted system, the control unit needs to deploy multiple control functions for different communication standards, even if the functions of the multiple control functions are the same. For example, the BCM needs to deploy a Bluetooth unlocking function and a remote unlocking function, wherein the Bluetooth unlocking function processes the unlocking control data sent via short-range communication, and the remote unlocking function is used to process the unlocking control data sent via remote communication. However, in an embodiment of the present application, since the control data transmitted by different communication standards will be serialized at the processing device, and the data structure of the control data after serialization is the same. At this time, for the target control unit that receives the above-mentioned control data, the control functions corresponding to the control data transmitted by different communication standards are the same, that is, the target control unit does not need to deploy control functions for different communication standards, or, in other words, the target control unit does not need to distinguish whether the control data is transmitted based on the first communication standard or the second communication standard.
[0094] In other words, in some implementations, the target control data includes serialized first control data and serialized second control data, and the target control unit that receives the serialized first control data and the target control unit that receives the serialized second control data are the same control function in the same control unit.
[0095] In the embodiment of the present application, the first control data and the second control data are processed by the same control function, which helps to reduce the workload when developing or updating the control function compared to the traditional solution in which the control functions are deployed separately for the first control data and the second control data.
[0096] As mentioned above, the data structures of the first control data and the second control data are the same. Therefore, when the terminal device generates control data, it only needs to maintain a set of the same control functions, and then encapsulate and encrypt them based on different communication protocols. In this way, when developing or updating control functions, it is only necessary to develop or update a set of control functions, which helps to reduce the workload required to develop or update control functions. This avoids the traditional solution in which, due to the different data structures transmitted by different communication standards, the terminal device needs to deploy control functions for the data structures transmitted by different communication standards respectively. In this way, when developing or updating control functions, it is necessary to develop or update the control functions deployed for the data structures transmitted by different communication standards respectively, resulting in a large workload required to develop or update control functions.
[0097] For ease of understanding, the following Figure 8 and Fig. 9 The architecture shown in the figure introduces the workload of the vehicle-mounted system in the embodiment of the present application when developing or updating the control function. Figure 8 and Fig. 9The protocol layer structure of the T-Box, short-distance communication device and gateway can be found in Figure 7 shown.
[0098] See also Figure 8 As shown, for the terminal device, only one set of control functions (including application interaction protocols) needs to be maintained for the same control function, and then the control data generated by the control function is sent to the TBOX and the short-distance communication device through long-distance communication or short-distance communication. Assume that the control data received by the TBOX is the first control data, and the control data received by the short-distance communication device is the second control data. The TBOX and the short-distance communication device do not parse the first control data and the second control data, but only convert the first control data and the second control data into the target data format. The GW can perform data parsing on the first control data and the second control data in the target data format respectively, and group the reverse response data to realize direct data interaction between the terminal device and the GW.
[0099] Based on the above introduction, it can be seen that since the data structures of the first control data and the second control data are the same, the terminal device can maintain a set of control functions (such as control function 1) for one control function. In this way, when developing or updating the control function of the control module, only the corresponding control function needs to be developed or updated. Figure 1 As shown, the terminal device needs to deploy control function solutions for long-distance communication and short-distance communication respectively (for example, control function 1 and control function 2), which helps to reduce the workload required for developing or updating the control functions of the control module.
[0100] See also Fig. 9 As shown, it is assumed that the control data received by the TBOX is the first control data, and the control data received by the short-distance communication device is the second control data. The TBOX and the short-distance communication device do not parse the first control data and the second control data, but only convert the first control data and the second control data into the target data format. In this way, the TBOX and the short-distance communication device only need to be developed once to realize the conversion between the data format corresponding to the communication standard and the target data format, and the subsequent control function iteration, development, and testing can no longer develop or update the TBOX and the short-distance communication device.
[0101] In addition, since the data structures of the first control data and the second control data are the same, the gateway device can maintain a set of control functions (such as control function 1) for one control function. In this way, when developing or updating the control function, only the corresponding control function in the gateway device needs to be developed or updated. Compared with the traditional solution, which requires updating or developing the control functions of the short-range communication device and the long-range communication device respectively, it helps to reduce the workload of developing or updating the control function.
[0102] In the embodiment of the present application, a processing device applied to a vehicle-mounted system is also provided, and the processing device can be applied to the vehicle-mounted system provided in the embodiment of the present application. The processing device can be any of the processing devices 330 described above.
[0103] Combined with the following Fig.10 The processing device of the embodiment of the present application is introduced. Fig.10 The processing device 1000 shown is used for: acquiring the converted first control data from the first communication device; serializing the converted first control data to obtain target control data; sending the target control data to the corresponding target control unit, and the target control data is used to control at least part of the functions in the vehicle through the target control unit.
[0104] In one possible implementation, the vehicle-mounted system also includes a second communication device, and the first communication standard supported by the first communication device is different from the second communication standard supported by the second communication device. The processing device is used to obtain the converted second control data from the second communication device; and serialize the converted first control data and the converted second control data to obtain the target control data.
[0105] In a possible implementation, the processing device is used to serialize the converted first control data and / or the converted second control data at a data serialization protocol layer to obtain the target control data.
[0106] In a possible implementation, the processing device serializes the converted first control data and / or the converted second control data using a protocol cache technology at a data serialization protocol layer.
[0107] In a possible implementation, the target control data includes serialized first control data and serialized second control data, and a data structure of the first control data and a data structure of the second control data are the same.
[0108] In one possible implementation, if the first communication standard includes a communication standard for long-distance communication, the first communication device includes a Tbox; and / or if the second communication standard includes a communication standard for short-distance communication, the second communication device includes a short-distance communication device.
[0109] In a possible implementation, the target data format is a data format corresponding to a communication protocol supported by the in-vehicle network, and the communication protocol supported by the in-vehicle network is a communication protocol supported by the target control unit.
[0110] In a possible implementation, the processing device includes a gateway device that communicates with different control units in the vehicle.
[0111] Fig.11 It is a schematic diagram of a communication device according to an embodiment of the present application. Fig.11 The communication device shown can be understood as the first communication device or the second communication device introduced above. Fig.11 The communication device 1100 shown is used to obtain control data to be transmitted, and the control data is used to control at least part of the functions in the vehicle-mounted system; convert the format of the control data to be transmitted to obtain converted control data; and send the converted control data to a processing device in the vehicle-mounted system, and the converted control data is used to be serialized at the processing device.
[0112] The above control data may be the first control data or the second control data mentioned above.
[0113] In a possible implementation, the communication device 1100 is used to convert the control data into the target data format at a data exchange format protocol layer.
[0114] Combination of the above Figures 1 to 11 , describes in detail the device embodiment of the present application, and the following is combined with Figure 12 to Figure 14 , the method embodiment of the present application is described in detail. It should be understood that the description of the method embodiment corresponds to the description of the device embodiment, so the parts not described in detail can refer to the previous device embodiment.
[0115] Fig.12 It is a schematic flow chart of the data transmission method in an embodiment of the present application. Fig.12 The method shown can be used in conjunction with any of the vehicle-mounted systems described above. Fig.12 The method shown may include steps S1210 to S1230.
[0116] In step S1210, first control data transmitted based on the first communication standard is converted into a target data format.
[0117] In step S1220, the first control data after conversion is serialized to obtain target control data.
[0118] In step S1230, the target control data is sent to a corresponding target control unit, and the target control data is used to control at least part of the functions in the vehicle through the target control unit.
[0119] In one possible implementation, the vehicle-mounted system also includes a second communication device, and the first communication standard supported by the first communication device is different from the second communication standard supported by the second communication device. The method includes: obtaining the converted second control data from the second communication device; the above-mentioned step S1220 includes: serializing the converted first control data and the converted second control data to obtain the target control data.
[0120] In a possible implementation, the method further includes: converting the first control data into the target data format at a first data exchange format protocol layer; and / or converting the second control data into the target data format at a second data exchange format protocol layer.
[0121] In a possible implementation, the step S1220 includes: serializing the converted first control data and / or the converted second control data at a data serialization protocol layer to obtain the target control data.
[0122] In a possible implementation, the step S1220 includes: serializing the converted first control data and / or the converted second control data at a data serialization protocol layer using a protocol cache technology.
[0123] In one possible implementation, the target control data includes serialized first control data and serialized second control data, the data structure of the serialized first control data and the data structure of the serialized second control data are the same, and the target control unit receiving the serialized first control data and the target control unit receiving the serialized second control data are the same control function in the same control unit.
[0124] In a possible implementation, if the first communication standard includes a communication standard for long-distance communication, the first communication device includes a Tbox; and / or if the second communication standard includes a communication standard for short-distance communication, the second communication device includes an NCM.
[0125] In a possible implementation, the target data format is a data format corresponding to a communication protocol supported by the in-vehicle network, and the communication protocol supported by the in-vehicle network is a communication protocol supported by the target control unit.
[0126] In a possible implementation, the processing device includes a gateway device that communicates with different control units in the vehicle.
[0127] Fig.13 It is a schematic flowchart of a data transmission method of a vehicle-mounted system according to another embodiment of the present application. Fig.13 The method shown can be applied to any of the vehicle-mounted systems described above. Fig.13 The method shown may be executed by a processing device in an in-vehicle system. Fig.13 The method shown includes steps S1310 to S1330.
[0128] In step S1310, the converted first control data is acquired from the first communication device.
[0129] In step S1320, the converted first control data is serialized to obtain target control data.
[0130] In step S1330, the target control data is sent to a corresponding target control unit, and the target control data is used to control at least part of the functions in the vehicle through the target control unit.
[0131] In one possible implementation, the vehicle-mounted system also includes a second communication device, and a first communication standard supported by the first communication device is different from a second communication standard supported by the second communication device. The method includes: obtaining converted second control data from the second communication device; serializing the converted first control data to obtain target control data, including: serializing the converted first control data and the converted second control data to obtain the target control data.
[0132] In a possible implementation, step S1320 includes serializing the converted first control data and / or the converted second control data at a data serialization protocol layer to obtain the target control data.
[0133] In a possible implementation, step S1320 includes serializing the converted first control data and / or the converted second control data at a data serialization protocol layer using a protocol cache technology.
[0134] In a possible implementation, the target control data includes serialized first control data and serialized second control data, and a data structure of the serialized first control data is the same as a data structure of the serialized second control data.
[0135] In one possible implementation, if the first communication standard includes a communication standard for long-distance communication, the first communication device includes a Tbox; and / or if the second communication standard includes a communication standard for short-distance communication, the second communication device includes a short-distance communication device.
[0136] In a possible implementation, the target data format is a data format corresponding to a communication protocol supported by the in-vehicle network, and the communication protocol supported by the in-vehicle network is a communication protocol supported by the target control unit.
[0137] In a possible implementation, the processing device includes a gateway device that communicates with different control units in the vehicle.
[0138] Fig.14 It is a schematic flow chart of the data processing method of an embodiment of the present application. Fig.14 The method shown includes steps S1410 to S1430.
[0139] In step S1410, control data to be transmitted is acquired, where the control data is used to control at least part of the functions in the vehicle-mounted system.
[0140] In step S1420, the format of the control data to be transmitted is converted to obtain converted control data.
[0141] In step S1430, the converted control data is sent to a processing device in the vehicle-mounted system, and the converted control data is used for serialization at the processing device.
[0142] In some implementations, converting the format of the control data to be transmitted to obtain the converted control data includes: converting the control data into the target data format at a data exchange format protocol layer.
[0143] It should be understood that in the embodiments of the present application, the processing device may be a processing unit, a processing module, etc., which is not limited in the embodiments of the present application. In addition, the processing device may also include one or more components with processing functions. The communication device (the first communication device and / or the second communication device) may be a communication unit, a communication module, etc., which is not limited in the embodiments of the present application. In addition, the communication device may also include one or more components with communication functions.
[0144] It should be understood that in the embodiment of the present application, "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should also be understood that determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.
[0145] It should be understood that the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0146] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0147] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0148] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0149] In addition, each functional unit in each embodiment of the present application may be integrated into one processing device, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0150] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, a core network device, operation and maintenance management (operation administration and maintenance, OAM) or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that can be read by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)), etc. The computer-readable storage medium may be a volatile or non-volatile storage medium, or may include both volatile and non-volatile types of storage media.
[0151] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for data processing, characterized in that: The method is applied to a processing device in a vehicle-mounted system, the vehicle-mounted system includes a first communication device, and the method includes: Acquire the converted first control data from the first communication device; Serializing the converted first control data to obtain target control data; The target control data is sent to a corresponding target control unit, and the target control data is used to control at least part of the functions in the vehicle-mounted system through the target control unit.
2. The method according to claim 1, characterized in that The vehicle-mounted system further includes a second communication device, a first communication standard supported by the first communication device is different from a second communication standard supported by the second communication device, and the method includes: acquiring the converted second control data from the second communication device; The serializing the converted first control data to obtain target control data includes: The converted first control data and the converted second control data are serialized to obtain the target control data.
3. The method according to claim 2, characterized in that The serializing the converted first control data and / or the converted second control data to obtain target control data includes: At the data serialization protocol layer, the converted first control data and / or the converted second control data are serialized to obtain the target control data.
4. The method according to claim 2, characterized in that The target control data includes serialized first control data and serialized second control data, and the data structure of the serialized first control data is the same as the data structure of the serialized second control data.
5. The method according to claim 1, characterized in that The data format of the target control data is a data format corresponding to the communication protocol supported by the in-vehicle network, and the communication protocol supported by the in-vehicle network is the communication protocol supported by the target control unit.
6. The method according to claim 1, characterized in that The processing means comprises a gateway device for communicating with different control units in the vehicle.
7. A method of data processing, characterized in that: The method is applied to a communication device in a vehicle-mounted system, and the method comprises: Acquire control data to be transmitted, where the control data is used to control at least part of the functions in the vehicle-mounted system; Performing format conversion on the control data to be transmitted to obtain converted control data; The converted control data is sent to a processing device in the vehicle-mounted system, where the converted control data is used for serialization at the processing device.
8. The data processing method according to claim 7, characterized in that: The step of converting the format of the control data to be transmitted to obtain the converted control data includes: At the data exchange format protocol layer, the control data is converted into the target data format.
9. A processing device in a vehicle-mounted system, characterized in that: The processing device includes various modules for executing the data processing method according to any one of claims 1 to 6.
10. A communication device in a vehicle-mounted system, characterized in that: The communication device comprises various modules for executing the data processing method according to any one of claims 7 to 9.
11. A vehicle-mounted system, characterized in that: The in-vehicle system comprises the processing device according to claim 9 and the communication device according to claim 10 .
12. A vehicle, characterized in that: Comprising the vehicle-mounted system as claimed in claim 11.
13. A computer program product, characterized in that The method comprises a computer program / instruction, and when the computer program / instruction processor is executed, the method according to any one of claims 1 to 6 is implemented, or when the computer program / instruction processor is executed, the method according to claim 7 or 8 is implemented.
