Data transmission system and method, electronic equipment, storage medium and vehicle

By dividing the CAN network into multiple subnets and using communication conversion nodes for wireless connection, the problem of poor routing arrangement of CAN nodes is solved, and more efficient data transmission is achieved.

CN119945823APending Publication Date: 2025-05-06BYD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411919817.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

The routing flexibility of CAN nodes in existing CAN networks is poor, resulting in increased complexity of vehicle wiring harness layout and reduced data transmission efficiency.

Method used

By dividing the data transmission system into multiple subnets, each subnet includes a communication conversion node and a CAN node. The nodes in the same subnet are connected by wires, and the subnets are connected by wirelessly, and data packet transmission between CAN nodes is realized.

Benefits of technology

It effectively reduces the wiring length of nodes between different subnets, improves the flexibility of CAN node routing layout, simplifies data transmission logic, and improves data transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119945823A_ABST
    Figure CN119945823A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a data transmission system and method, electronic equipment, a storage medium and a vehicle. The data transmission method is applied to a target device, a data transmission system comprising a plurality of sub-networks is arranged in the target device, each sub-network comprises a communication conversion node and a CAN node, data packet transmission is carried out between the communication conversion nodes of different sub-networks in a wireless communication mode, and data packets are transmitted through a first communication conversion node in a first sub-network. Receiving a target data packet to be transmitted, wherein the target data packet comes from the CAN node of the first sub-network or the communication conversion node of other sub-networks; and transmitting the target data packet to a CAN node in the first sub-network through the first communication conversion node, or transmitting the target data packet to a second communication conversion node in the second sub-network. Therefore, the data transmission system of the target equipment is divided into a plurality of sub-networks, so that the flexibility of the routing arrangement of the CAN nodes in the data transmission system can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication network technology, and in particular to a data transmission system, method, electronic device, storage medium and vehicle. Background Art

[0002] The controller area network (CAN) bus connects the various electronic control units inside the vehicle into a local area network, namely the CAN network, thereby realizing information sharing within the vehicle.

[0003] In the process of research and practice of the prior art, it is found that in the existing CAN network, the wiring layout flexibility of the CAN nodes is relatively poor. Summary of the invention

[0004] The embodiments of the present application provide a data transmission system, method, electronic device, storage medium and vehicle, which can effectively improve the flexibility of CAN node routing layout in the data transmission system.

[0005] In order to achieve the above-mentioned object, according to a first aspect of the present application, there is provided a data transmission system, wherein the data transmission system comprises a plurality of sub-networks, wherein the sub-networks comprise a communication conversion node and at least one CAN node, wherein the communication conversion nodes in the same sub-network are connected to the CAN nodes by wire, and different sub-networks are connected wirelessly based on the communication conversion nodes;

[0006] The CAN node is used to transmit data packets with other CAN nodes in the same sub-network, and to transmit data packets with communication conversion nodes in the same sub-network;

[0007] The communication conversion node is used to transmit data packets with the communication conversion nodes of different sub-networks, so as to realize data packet transmission between CAN nodes in different sub-networks.

[0008] According to a second aspect of the present application, a data transmission method is provided, which is applied to a target device, wherein a data transmission system including multiple sub-networks is provided in the target device, wherein the sub-network includes a communication conversion node and at least one CAN node, and data packets are transmitted between communication conversion nodes of different sub-networks by wireless communication, and the method includes:

[0009] Receiving a target data packet to be transmitted through a first communication conversion node in a first sub-network in the sub-network, wherein the target data packet comes from a CAN node of the first sub-network or a communication conversion node of another sub-network;

[0010] The target data packet is transmitted to a CAN node in the first sub-network through the first communication conversion node, or the target data packet is transmitted to a second communication conversion node in a second sub-network in the sub-network.

[0011] According to a third aspect of the present application, a data transmission device is provided, which is applied to a target device, wherein a data transmission system including multiple sub-networks is provided in the target device, wherein the sub-network includes a communication conversion node and at least one CAN node, and data packets are transmitted between communication conversion nodes of different sub-networks by wireless communication, and the device includes:

[0012] A data acquisition module, used for receiving a target data packet to be transmitted through a first communication conversion node in a first sub-network in the sub-network, wherein the target data packet comes from a CAN node of the first sub-network or a communication conversion node of another sub-network;

[0013] A data transmission module is used to transmit the target data packet to a CAN node in the first sub-network through the first communication conversion node, or to transmit the target data packet to a second communication conversion node in a second sub-network in the sub-network.

[0014] According to a fourth aspect of the present application, an electronic device is provided, including a processor and a memory, wherein the memory stores an application program, and the processor is used to run the application program in the memory to implement the data transmission method provided in an embodiment of the present application.

[0015] According to a fifth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and the computer program is suitable for loading by a processor to execute the steps in any one of the data transmission methods provided in the embodiments of the present application.

[0016] According to the sixth aspect of the present application, a vehicle is provided, which includes the data transmission system provided by the first aspect of the present application, the data transmission device provided by the third aspect of the present application, or the electronic device provided by the fourth aspect of the present application, or the computer-readable storage medium provided by the fifth aspect of the present application.

[0017] According to the sixth aspect of the present application, a computer program product is provided, which includes a computer program, and the computer program is stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the electronic device performs the steps in the data transmission method provided in an embodiment of the present application.

[0018] In the data transmission system, method, electronic device, storage medium and vehicle of the embodiment of the present application, the data transmission system includes multiple sub-networks, the sub-network includes a communication conversion node and at least one CAN node, the communication conversion node in the same sub-network is wiredly connected to the CAN node, and different sub-networks are wirelessly connected based on the communication conversion node; the CAN node is used to transmit data packets with other CAN nodes in the same sub-network, and to transmit data packets with the communication conversion node in the same sub-network; the communication conversion node is used to transmit data packets with the communication conversion nodes of different sub-networks to realize data packet transmission between CAN nodes in different sub-networks. In this way, compared with the scheme of arranging the wiring of CAN nodes in the entire data transmission system in the prior art, the embodiment of the present application divides the data transmission system into multiple sub-networks, so that the wiring arrangement of the CAN nodes only needs to consider the layout in the sub-network, and at the same time, the sub-networks are wirelessly connected through the communication conversion node, which can effectively reduce the wiring length of each node in different sub-networks in the data transmission system, thereby effectively improving the flexibility of the wiring arrangement of the CAN nodes in the data transmission system.

[0019] Correspondingly, the data transmission method is applied to a target device, in which a data transmission system including multiple sub-networks is provided, the sub-networks include a communication conversion node and at least one CAN node, and the communication conversion nodes of different sub-networks transmit data packets through wireless communication, and receive the target data packet to be transmitted through the first communication conversion node in the first sub-network in the sub-network, and the target data packet comes from the CAN node of the first sub-network or the communication conversion node of other sub-networks; through the first communication conversion node, the target data packet is transmitted to the CAN node in the first sub-network, or the target data packet is transmitted to the second communication conversion node in the second sub-network in the sub-network. In this way, compared with the scheme of arranging the wiring of CAN nodes in the entire data transmission system in the prior art, the embodiment of the present application divides the data transmission system into multiple sub-networks, so that the wiring arrangement of the CAN nodes only needs to consider the layout in the sub-network, and the sub-networks are wirelessly connected through the communication conversion node, which can effectively reduce the wiring length of each node in different sub-networks in the data transmission system, thereby effectively improving the flexibility of the wiring arrangement of the CAN nodes in the data transmission system. At the same time, by realizing data transmission of CAN nodes between sub-networks through communication conversion nodes in each sub-network, the data transmission logic of multiple sub-networks under the data transmission system can be simplified, and the situation where CAN nodes in the data transmission system cannot communicate normally due to data confusion in the entire data transmission system can be avoided, thereby improving data transmission efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0021] Figure 1 This is a schematic diagram of an implementation scenario of a data transmission method provided in an embodiment of the present application;

[0022] Figure 2a It is a structural diagram of a data transmission system provided in an embodiment of the present application;

[0023] Figure 2b It is a schematic diagram of the structure of a communication conversion node of a data transmission system provided in an embodiment of the present application;

[0024] Figure 3 This is a flow chart of a data transmission method provided in an embodiment of the present application.

[0025] Figure 4a It is a specific flow chart of a data transmission method provided in an embodiment of the present application;

[0026] Figure 4b is another specific flow chart of a data transmission method provided by an embodiment of the present application;

[0027] Figure 5 is a schematic diagram of the structure of a data transmission device provided in an embodiment of the present application;

[0028] Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] The technical solutions in the embodiments of the present application will be described clearly and completely 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. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0030] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0031] To facilitate understanding of the embodiments of the present application and its beneficial effects, the relevant background technology is first further described. CAN network adopts differential signal transmission, has the characteristics of strong anti-interference ability, can ensure real-time and reliable data transmission, and has an irreplaceable position in the automotive industry. However, in the actual CAN network, due to problems such as impedance mismatch, long bus and branch length, the signal cannot distinguish high and low levels during sampling, resulting in confusion of the entire network data and inability to communicate normally. Therefore, in order to ensure the correctness of CAN network signal transmission as much as possible, when the CAN network nodes are laid out, certain requirements are put forward for the CAN nodes and wiring layout, thereby limiting the simplification of the vehicle wiring harness layout. The existing CAN network wiring standard requires that the bus length is less than 40m and the branch length is less than 1.7m. In most cases, in order to meet the requirement that the branch length is less than 1.7m, a winding operation is required to make the distance from the bus to the CAN node as small as possible. On the one hand, this limits the flexibility of the CAN node wiring layout in the CAN network, while increasing the complexity of the vehicle wiring harness wiring design and the amount of wiring harness used. On the other hand, for the CAN network of vehicles with numerous CAN nodes, it is difficult to troubleshoot the cause of the error signal in such a CAN network setting, which may cause some data transmission problems.

[0032] The embodiments of the present application provide a data transmission system, method, electronic device, storage medium and vehicle. The data transmission device can be integrated in an electronic device, which can be a server or a terminal.

[0033] Among them, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms. Terminals may include but are not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, aircraft, etc. Terminals and servers can be directly or indirectly connected via wired or wireless communications, and this application does not limit this.

[0034] The electronic device may be integrated into a vehicle, which may be a fuel vehicle, a plug-in hybrid vehicle, a new energy vehicle, etc. This application does not make any specific limitation on this.

[0035] See also Figure 1 , taking the data transmission device integrated into the electronic device as an example, Figure 1A schematic diagram of an implementation scenario of the data transmission method provided in an embodiment of the present application, wherein the electronic device may be integrated in a vehicle, and the electronic device may be provided with a data transmission system including multiple subnetworks, wherein the subnetworks include communication conversion nodes and CAN nodes, and data packets are transmitted between communication conversion nodes of different subnetworks via wireless communication. A target data packet to be transmitted may be received through a first communication conversion node in a first subnetwork, and the target data packet comes from a CAN node of the first subnetwork or a communication conversion node of another subnetwork; the target data packet is transmitted to a CAN node in the first subnetwork through the first communication conversion node, or the target data packet is transmitted to a second communication conversion node in a second subnetwork.

[0036] It should be noted that Figure 1 The implementation environment scenario diagram of the data transmission method shown is only an example. The implementation environment scenario of the data transmission method described in the embodiment of the present application is to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided by the embodiment of the present application. It is known to those skilled in the art that with the evolution of data transmission and the emergence of new business scenarios, the technical solution provided by the present application is also applicable to similar technical problems.

[0037] The solutions provided by the embodiments of the present application are specifically described by the following embodiments. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.

[0038] This embodiment will be described from the perspective of a data transmission system, which can be specifically integrated into an electronic device.

[0039] See also Figure 2a , Figure 2a 1 is a schematic diagram of a data transmission system provided in an embodiment of the present application. The data transmission system includes multiple sub-networks, each of which includes a communication conversion node and at least one CAN node. The communication conversion node in the same sub-network is connected to the CAN node by wire, and different sub-networks are connected wirelessly based on the communication conversion node.

[0040] CAN nodes are used to transmit data packets with other CAN nodes in the same sub-network and to transmit data packets with communication conversion nodes in the same sub-network;

[0041] The communication conversion node is used to transmit data packets with the communication conversion nodes of different sub-networks to realize data packet transmission between CAN nodes in different sub-networks.

[0042] Among them, the data transmission system can be a communication system, for example, it can be a controller area network (CAN) system, which can also be called a CAN network. The data transmission system may include multiple sub-networks, that is, the CAN network can be divided into multiple sub-networks. The communication conversion node can be a node for realizing data transmission between sub-networks, and the CAN node can be a node corresponding to an electronic controller (Electronic Control Unit, referred to as ECU) in the target device, that is, a node in the CAN network. The electronic controller can also be called an electronic control unit. For example, a CAN node can refer to a unit that can be connected to a CAN bus, and communication between each node is realized through the CAN bus. The CAN node may include an electronic controller and a transceiver, and the transceiver can be a module in the CAN node for sending or receiving data packets.

[0043] Optionally, the CAN nodes in the same sub-network may be connected to the communication conversion node via a communication bus, and the CAN nodes in the same sub-network may be connected to each other via the communication bus.

[0044] In this way, CAN nodes in the same sub-network are connected through a communication bus, while different sub-networks are wirelessly connected based on communication conversion nodes, so that the routing layout of CAN nodes only needs to consider the layout in the sub-network. At the same time, the sub-networks are wirelessly connected through communication conversion nodes, which can effectively reduce the wiring length of each node in different sub-networks in the data transmission system, thereby effectively improving the flexibility of the routing layout of CAN nodes in the data transmission system.

[0045] The communication bus may be a CAN bus, which may be a serial communication protocol bus for real-time applications. Therefore, data communication can be performed between CAN nodes in the same sub-network, and between CAN nodes and communication conversion nodes via the CAN bus.

[0046] Optionally, the communication conversion node may include a control module, a bus communication module and a wireless communication module, and the control module is connected to the bus communication module and the wireless communication module respectively; wherein the wireless communication module can be used to receive data packets sent by communication conversion nodes of different sub-networks and send them to the control module; the control module can be used to send data packets received from the wireless communication module to the bus communication module; the bus communication module can be used to send data packets sent by the control module to the CAN node in the sub-network via the communication bus of the sub-network.

[0047] Wherein, the control module can be a microcontroller (MCU), which can be used to transmit the data packets received by the wireless communication module to the bus communication module, so as to transmit the data packets received by the wireless communication module to the communication bus in the subnet where it is located, so as to transmit it to the CAN node in the subnet where it is located, and the data packets received by the bus communication module can be transmitted to the wireless communication module, so as to transmit the data packets received by the bus communication module to the communication conversion node in other subnets, so as to transmit it to the CAN node in other subnets. The bus communication module can be used to receive data packets sent by the CAN node in the subnet where it is located, and send it to the control module, and transmit the data packets sent by the control module to the communication bus of the subnet where it is located. The communication bus can be a CAN bus. The wireless communication module can be used to receive data packets sent by the communication conversion node of other subnets, and send it to the control module, and transmit the data packets sent by the control module to the communication conversion node of other subnets.

[0048] In this way, the wireless communication module in the communication conversion node can receive data packets sent by the communication conversion nodes of other sub-networks, and then the communication conversion node can send the received data packets to the control module, so that the control module can determine whether the received data packets can be sent to the CAN nodes in the current sub-network. When it is necessary to send the received data packets to the CAN nodes in the current sub-network, the control module can send the data packets to the bus communication module, so that the bus communication module can send the received data packets to the communication bus in the sub-network, so as to transmit the data packets sent by other sub-networks to the CAN nodes in the sub-network. In this way, based on the communication conversion node, data transmission between CAN nodes in different sub-networks can be realized, so that the data transmission logic of multiple sub-networks under the data transmission system can be simplified, and the situation that the CAN nodes in the data transmission system cannot communicate normally due to the data confusion of the entire data transmission system can be avoided, thereby improving the communication quality of the data transmission system.

[0049] Optionally, the bus communication module can also be used to receive data packets transmitted by the CAN nodes in the sub-network and send them to the control module; the control module can also be used to send data packets received from the bus communication module to the wireless communication module; the wireless communication module can also be used to send data packets sent by the control module to communication conversion nodes in different sub-networks.

[0050] In this way, the bus communication module in the communication conversion node receives the data packet transmitted by the CAN node in the sub-network and sends it to the control module, so that the control module sends the data packet received from the bus communication module to the wireless communication module, so that the data packet sent by the control module is sent to the communication conversion node of the different sub-network through the wireless communication module, so as to realize data transmission between CAN nodes of different sub-networks, simplify the data transmission logic of multiple sub-networks under the data transmission system, and thus improve the data transmission efficiency.

[0051] Optionally, the communication conversion nodes of each sub-network may be placed at a position in the data transmission system that maintains a minimum distance while meeting the wiring requirements of the sub-network, so as to improve the communication quality between the communication conversion nodes and prevent the communication signals from being interfered with by other transmission signals.

[0052] Optionally, each sub-network may also include a terminal matching resistor, which may be connected to both ends of the communication bus in the sub-network to prevent signal reflection in the sub-network and improve the anti-interference capability of the communication bus in the sub-network, thereby ensuring signal quality and stability.

[0053] Optionally, the wireless communication module can receive a first data packet sent by a communication conversion node in a different sub-network, and the control module can be configured with first filtering information, which may include conditions for transmitting the first data packet to the CAN node in the sub-network. The control module is used to send the first data packet to the bus communication module when it is determined based on the first filtering information that the first data packet is a data packet to be received by the sub-network, so that the bus communication module sends the first data packet to the CAN node in the sub-network.

[0054] The first data packet may be a data packet sent by a communication conversion node of a different sub-network. The first filtering information may be information for determining whether the first data packet can be sent to a CAN node of a sub-network where the control module is located.

[0055] Optionally, the first filtering information may include node identifiers of CAN nodes belonging to other sub-networks among all CAN nodes in the sub-network where the control module is located that need to receive data packets. The node identifier may be an identifier (ID) indicating a CAN node.

[0056] Optionally, the bus communication module can receive a second data packet transmitted by a CAN node in the subnet, and the control module can be configured with second filtering information, which may include conditions for transmitting the second data packet to the communication conversion node of other subnets. When the control module determines that the second data packet is a data packet to be received by other subnets based on the second filtering information, the control module sends the second data packet to the wireless communication module, so that the wireless communication module sends the second data packet to other subnets.

[0057] The second filtering information may be information used to determine whether the second data packet can be sent to a communication conversion node of another sub-network.

[0058] Optionally, the second filtering information may include node identifiers of CAN nodes in the subnet where the control module is located, among all CAN nodes in other subnets that need to receive data packets.

[0059] In one embodiment, the second filtering information may be a list storing multiple node identifiers.

[0060] In this way, through the first filtering information and the second filtering information, it is possible to choose whether to wirelessly transmit the data packets received through the communication bus to other CAN sub-networks, and to choose whether to send the wirelessly received data packets to the CAN sub-network, based on whether there is a data transmission demand between CAN nodes in different sub-networks, thereby filtering the data packets that do not comply with the data packet transmission rules of the CAN network, thereby improving the data transmission efficiency of the distributed CAN network.

[0061] In one embodiment, the data transmission system is a CAN network as an example, please continue to refer to Figure 2a , Figure 2a The embodiment of the present application shows a distributed CAN network system based on wireless communication. The distributed CAN network system may include multiple sub-networks, namely CAN sub-network 1, CAN sub-network 2 and CAN sub-network 3, wherein CAN sub-network 1 may include CAN node 1, conversion node 2, CAN bus 3 and terminal matching resistor 4. The conversion node is a communication conversion node. CAN node 1 and conversion node 2 are connected through CAN bus 3, and terminal matching resistor 4 is placed at both ends of CAN bus 3. Multiple CAN nodes 1 (i.e. CAN node 1, CAN node 2 and CAN node 3), a single conversion node 2, CAN bus 3, and terminal matching resistor 4 form CAN sub-network 1, i.e. sub-network 5, according to certain rules.

[0062] Among them, the division of CAN sub-networks can be done by dividing multiple CAN nodes that are distributed similarly in the target device into the same sub-network, so that the bus length and branch length of the CAN sub-network can meet the length limit requirements by simply arranging the CAN bus, thereby improving the flexibility of the routing layout of CAN nodes in the CAN network. After completing the sub-network division and wiring of the CAN nodes, a communication conversion node can be added to each CAN sub-network. The placement position of the communication conversion node in the CAN bus can make it as close as possible to the communication conversion nodes in other sub-networks, thereby ensuring the signal quality of wireless communication.

[0063] The function of the communication conversion node is to send data packets in the CAN sub-network to other CAN sub-networks through the wireless communication module, and to send data packets received through wireless communication to the CAN sub-network through the CAN communication module. For example, please refer to Figure 2b , Figure 2b It is a schematic diagram of the communication conversion node structure of a data transmission system provided in an embodiment of the present application. The conversion node 2 can be composed of a CAN communication module 6, a control module MCU7, a wireless communication module 8 and a transceiver antenna 9. Among them, the CAN communication module 6 can be responsible for reading data packets from the CAN bus and sending them to the control module MCU7, and receiving data packets sent from the control module MCU7, and sending them to the CAN bus of the subnet. The control module MCU7 can be responsible for filtering data packets from the CAN communication module 6 and the wireless communication module 8, and determining whether the data packet needs to be transmitted between the CAN subnets. The wireless communication module 8 can be responsible for receiving data packets from other CAN subnets through the antenna and sending them to the control module MCU7, and can receive data packets sent from the control module MCU7 and send them to other CAN subnets through the antenna.

[0064] Thus, the data transmission system provided by the embodiment of the present application divides the CAN network of the target device into multiple sub-networks, so that the communication conversion nodes in the sub-network can receive data packets from the CAN nodes in the sub-network or the communication conversion nodes in different sub-networks, so that the data packets can be transmitted to the CAN nodes in the sub-network or the communication conversion nodes in other sub-networks through the communication conversion nodes in the sub-network, and the data packets can be transmitted to the CAN nodes in the sub-network or the communication conversion nodes in other sub-networks. The data transmission of CAN nodes between sub-networks is realized based on the distributed data transmission system. Compared with the scheme of arranging the wiring of CAN nodes in the entire data transmission system in the prior art, the wiring arrangement of CAN nodes only needs to consider the layout in the sub-network. At the same time, the sub-networks are wirelessly connected through the communication conversion nodes, which can effectively reduce the wiring length of each node in different sub-networks in the data transmission system, thereby effectively improving the flexibility of the wiring arrangement of CAN nodes in the data transmission system.

[0065] This embodiment will be described from the perspective of a data transmission device, which may be specifically integrated into an electronic device.

[0066] See also Figure 3 , Figure 31 is a flow chart of a data transmission method provided by an embodiment of the present application. The data transmission method is applied to a target device, wherein a data transmission system including multiple sub-networks is provided in the target device, wherein the sub-networks include a communication conversion node and at least one CAN node, and data packets are transmitted between communication conversion nodes of different sub-networks by wireless communication, and the method includes:

[0067] Step S101, receiving a target data packet to be transmitted through a first communication conversion node in a first sub-network in a sub-network.

[0068] The target data packet comes from a CAN node of the first sub-network or a communication conversion node of another sub-network.

[0069] Among them, the target device can be an electronic device such as a vehicle or a ship, and the data transmission system can be a communication system, for example, a controller area network (CAN) system, which can also be called a CAN network. The data transmission system may include multiple subnetworks, that is, the CAN network can be divided into multiple subnetworks. The communication conversion node can be a node for realizing data transmission between subnetworks, the CAN node can be a node corresponding to an electronic controller (Electronic Control Unit, referred to as ECU) in the target device, that is, a node in the CAN network, the electronic controller can also be called an electronic control unit, and the CAN node can refer to a unit that can be mounted on the CAN bus, and realizes communication between each node through the CAN bus. The CAN node may include an electronic controller and a transceiver, and the transceiver may be a module in the CAN node for sending or receiving data packets. The first subnetwork may be a subnetwork that receives a data packet in the subnetwork, the first communication conversion node may be a communication conversion node in the first subnetwork, and the target data packet may be a data packet received by the first subnetwork.

[0070] Among them, the wireless communication method can be a method of communicating through a wireless network. For example, the wireless communication method may not be limited to a specific communication protocol. For example, it can be a wireless communication method such as Bluetooth, wireless network (wifi), ZigBee protocol, etc. It can use broadcasting to send data packets to communication conversion nodes in other sub-networks, and it can also use unicast or multicast to send data packets to communication conversion nodes in a specific sub-network. The embodiments of the present application are not limited here.

[0071] Optionally, CAN nodes and communication conversion nodes in the same sub-network may transmit data packets via a communication bus in the sub-network.

[0072] The communication bus may be a CAN bus, which may be a serial communication protocol bus for real-time applications. Therefore, the CAN nodes and communication conversion nodes divided into the same sub-network may communicate via the CAN bus.

[0073] In this way, CAN nodes in the same sub-network are connected through a communication bus, while different sub-networks are wirelessly connected based on communication conversion nodes, so that the routing layout of CAN nodes only needs to consider the layout in the sub-network. At the same time, the sub-networks are wirelessly connected through communication conversion nodes, which can effectively reduce the wiring length of each node in different sub-networks in the data transmission system, thereby effectively improving the flexibility of the routing layout of CAN nodes in the data transmission system.

[0074] Step S102: transmitting the target data packet to a CAN node in the first sub-network through the first communication conversion node, or transmitting the target data packet to a second communication conversion node in the second sub-network in the sub-network.

[0075] The second sub-network may be a sub-network where the target data packet needs to be transmitted, and the second communication conversion node may be a communication conversion node in the second sub-network.

[0076] Among them, there can be multiple ways to transmit the target data packet to the CAN node in the first subnetwork through the first communication conversion node, or to transmit the target data packet to the second communication conversion node in the second subnetwork in the subnetwork. For example, the transmission indication information of the target data packet can be determined; based on the transmission indication information, the target data packet is transmitted to the CAN node in the first subnetwork through the first communication conversion node, or to the second communication conversion node in the second subnetwork in the subnetwork.

[0077] Among them, the transmission indication information can be information indicating the transmission parameters of the target data packet, and the transmission parameters can include information such as the data transmission source and data receiving method of the target data packet. The data transmission source can be the transmission source of the target data packet, for example, it can include a CAN node that sends the target data packet, and the data receiving method can be a method in which the first subnetwork receives the target data packet, for example, it can include a bus communication method and a wireless communication method, and the bus communication method can be a method for data communication through a communication bus.

[0078] Among them, based on the transmission indication information, there can be multiple ways to transmit the target data packet to the CAN node in the first sub-network through the first communication conversion node, or to transmit the target data packet to the second communication conversion node in the second sub-network in the sub-network. For example, the transmission indication information may include a data receiving method. If the data receiving method is a wireless communication method, the target data packet is transmitted to the CAN node in the first sub-network through the first communication conversion node; if the data receiving method is a bus communication method, the target data packet is transmitted to the second communication conversion node in the second sub-network in the sub-network through the first communication conversion node.

[0079] In this way, based on the communication conversion node, data transmission between CAN nodes in different sub-networks can be realized, thereby simplifying the data transmission logic of multiple sub-networks under the data transmission system, avoiding the situation where CAN nodes in the data transmission system cannot communicate normally due to data confusion in the entire data transmission system, thereby improving the communication quality of the data transmission system.

[0080] Among them, if the data receiving method is a wireless communication method, there may be multiple ways to transmit the target data packet to the CAN node in the first sub-network through the first communication conversion node. For example, the first communication conversion node may include a first control module and a first bus communication module. Thus, if the data receiving method is a wireless communication method, the target data packet is sent to the first bus communication module through the first control module; and the target data packet is sent to the communication bus in the first sub-network through the first bus communication module to transmit the target data packet to the CAN node in the first sub-network.

[0081] Among them, the first control module can be a control module in the first communication conversion node, and the control module can be a microcontroller (MCU), which can be used to transmit the data packets received by the wireless communication module to the bus communication module, so as to transmit the data packets received by the wireless communication module to the communication bus in the sub-network, so as to transmit them to the CAN nodes in the sub-network, and can transmit the data packets received by the bus communication module to the wireless communication module, so as to transmit the data packets received by the bus communication module to the communication conversion nodes in other sub-networks, so as to transmit them to the CAN nodes in other sub-networks. The first bus communication module can be a bus communication module in the first communication conversion node, and the bus communication module can be used to receive data packets sent by the CAN nodes in the sub-network, and send them to the control module, and transmit the data packets sent by the control module to the communication bus in the sub-network.

[0082] Optionally, before transmitting the target data packet to the CAN node in the first sub-network through the first communication conversion node, the received data packet can also be filtered to determine whether the currently received data packet can be sent to the communication bus of the current sub-network or to the communication conversion node of other sub-networks, so as to prevent waste of resources caused by erroneous or unnecessary data transmission. For example, the target node identifier corresponding to the target data packet can be obtained through the first communication conversion node; the first filtering information corresponding to the first sub-network can be obtained, and the first filtering information includes the node identifier of the CAN node in other sub-networks that needs to send data packets to each CAN node in the first sub-network; if the target node identifier is found in the first filtering information, the step of transmitting the target data packet to the CAN node in the first sub-network through the first communication conversion node is executed.

[0083] The target node identifier may be information indicating a CAN node that sends the target data packet, for example, a node identifier of a CAN node that sends the target data packet, and the node identifier may be an identity identifier (ID) indicating a node. The first filtering information may be information for determining whether the target data packet can be sent to a CAN node of the first sub-network.

[0084] Optionally, the first filtering information may include node identifiers of CAN nodes belonging to other sub-networks among all CAN nodes in the first sub-network that need to receive data packets.

[0085] Among them, there can be multiple ways to obtain the first filtering information corresponding to the first subnetwork. For example, the first node identifier corresponding to all CAN nodes in the first subnetwork can be obtained, wherein the first node identifier indicates the CAN node in the first subnetwork that needs to receive the data packet. Among the first node identifiers, the node identifiers corresponding to all CAN nodes in the first subnetwork are removed to obtain the first filtering information corresponding to the first subnetwork.

[0086] In one embodiment, the first filtering information may be a list storing multiple node identifiers.

[0087] For example, it is assumed that the data transmission system set up by the target device is divided into subnetwork 1, subnetwork 2 and subnetwork 3, wherein subnetwork 1 includes CAN node 1, CAN node 2 and CAN node 3, subnetwork 2 includes CAN node 4, CAN node 5 and CAN node 6, and subnetwork 3 includes CAN node 7 and CAN node 8. At the same time, it is assumed that the first subnetwork is subnetwork 1, and it is assumed that CAN node 1 needs to receive data packets sent by CAN node 2 and CAN node 4, CAN node 2 needs to receive data packets sent by CAN node 4, CAN node 6 and CAN node 7, and CAN node 3 needs to receive data packets sent by CAN node 2 and CAN node 7. In this way, the union of the IDs of the CAN nodes that CAN nodes 1-3 in subnetwork 1 need to receive data packets can be obtained, which can be expressed as {CAN node 2, CAN node 4, CAN node 6, CAN node 7}. The node identifiers {node 1, node 2, node 3} corresponding to all CAN nodes in subnetwork 1 are removed from the union, so that the first filtering information corresponding to subnetwork 1 can be obtained as {node 4, node 6, node 7}. That is, when the communication conversion node of subnet 1 receives data packets sent by CAN node 4, CAN node 6 and CAN node 7 in other subnets through the wireless communication module, the communication conversion node of subnet 1 needs to send the received data packets to the CAN bus of subnet 1 to send the data packets to the CAN node of subnet 1.

[0088] Among them, if the data receiving mode is a bus communication mode, there may be multiple ways to transmit the target data packet to the second communication conversion node in the second sub-network through the first communication conversion node. For example, the first communication conversion node may include a first control module and a first wireless communication module. Thus, if the data receiving mode is a bus communication mode, the target data packet may be sent to the first wireless communication module through the first control module; the target data packet may be transmitted to the second communication conversion node in the second sub-network through the first wireless communication module, and the target data packet may be transmitted to the CAN node in the second sub-network through the second communication conversion node.

[0089] Among them, the first wireless communication module can be a wireless communication module in the first communication conversion node, and the wireless communication module can be used to receive data packets sent by communication conversion nodes of other sub-networks and send them to the control module, and transmit data packets sent by the control module to communication conversion nodes of other sub-networks.

[0090] Optionally, before transmitting the target data packet to the second communication conversion node in the second subnetwork through the first communication conversion node, the target node identifier corresponding to the target data packet can also be obtained, the target node identifier indicating the CAN node that sends the target data packet; the second filtering information corresponding to the first subnetwork is obtained, the second filtering information includes the node identifier of the CAN node that the first subnetwork needs to send data packets to other subnetworks; if the target node identifier is found in the second filtering information, the step of transmitting the target data packet to the second communication conversion node in the second subnetwork in the subnetwork through the first communication conversion node is executed.

[0091] The second filtering information may be information used to determine whether the target data packet can be sent to CAN nodes of other sub-networks.

[0092] Optionally, the second filtering information may include node identifiers of CAN nodes belonging to the first sub-network among all CAN nodes in other sub-networks that need to receive data packets.

[0093] In one embodiment, the second filtering information may be a list storing multiple node identifiers.

[0094] Among them, there can be multiple ways to obtain the second filtering information corresponding to the first subnetwork. For example, the second node identifier corresponding to all CAN nodes in other subnetworks can be obtained, and the second node identifier indicates the CAN node in other subnetworks that needs to receive data; the second associated node identifier and the node identifier corresponding to all CAN nodes in the first subnetwork are intersection processed to obtain the second filtering information corresponding to the first subnetwork.

[0095] For example, it is assumed that the data transmission system set up by the target device is divided into subnetwork 1, subnetwork 2 and subnetwork 3, wherein subnetwork 1 includes CAN node 1, CAN node 2 and CAN node 3, subnetwork 2 includes CAN node 4, CAN node 5 and CAN node 6, and subnetwork 3 includes CAN node 7 and CAN node 8. At the same time, it is assumed that the first subnetwork is subnetwork 1, it is assumed that CAN node 4 needs to receive data packets sent by CAN node 1 and CAN node 3, CAN node 5 needs to receive data packets sent by CAN node 1 and CAN node 4, and CAN node 6 needs to receive data packets sent by CAN node 4 and CAN node 8. 8, CAN node 7 needs to receive data packets sent by CAN node 1 and CAN node 8, and CAN node 8 needs to receive data packets sent by CAN node 3 and CAN node 7. In this way, the union of the receiving identifiers of CAN nodes that need to receive data packets in other subnetworks (subnetwork 2 and subnetwork 3) can be obtained, which can be expressed as {node 1, node 3, node 4, node 7, node 8}, and the node identifiers of the CAN nodes of subnetwork 1 {node 1, node 2, node 3} are intersected, and the second filtering information of the communication conversion node of subnetwork 1 can be obtained as {node 1, node 3}. That is, when the communication conversion node of subnetwork 1 receives data packets sent from CAN node 1 and CAN node 3, the communication conversion node needs to send the data packets to the communication conversion nodes of other subnetworks through the wireless communication module.

[0096] In this way, through the first filtering information and the second filtering information, it is possible to choose whether to wirelessly transmit the data packets received through the communication bus to other CAN sub-networks, and to choose whether to send the wirelessly received data packets to the CAN sub-network, based on whether there is a data transmission demand between CAN nodes in different sub-networks, thereby filtering the data packets that do not comply with the data packet transmission rules of the CAN network, thereby improving the data transmission efficiency of the distributed CAN network.

[0097] In a specific embodiment, the communication conversion node of the sub-network includes a control module MCU, a bus communication module (CAN communication module) and a wireless communication module as an example, please refer to Figure 4a , Figure 4a This is a specific flow chart of a data transmission method provided by an embodiment of the present application. Assuming that the communication conversion node of the sub-network receives a data packet transmitted by the CAN node in the sub-network through the communication bus, the received data packet can be processed for data transmission by executing the following steps:

[0098] Step S01, the MCU identifies the CAN node ID (i.e., the target node identifier) ​​of the received data packet from the data received by the CAN communication module;

[0099] Step S02, determining whether the CAN node ID is in the sub-network transmission filtering list (i.e., the second filtering information), if yes, proceeding to step S03, if not, proceeding to step S06;

[0100] Step S03, determining whether the received data packet needs to be sent to other sub-networks;

[0101] Step S04, the MCU sends the data packet to the wireless communication module;

[0102] Step S05, the wireless communication module sends the data packet to other sub-networks through the antenna;

[0103] Step S06, determining that the received data packet does not need to be sent to other sub-networks;

[0104] Step S07, MCU clears the data packet;

[0105] Among them, for the CAN communication module in step S01, the CAN network error diagnosis mechanism can be relied upon to ensure that the CAN communication module correctly receives the data packets transmitted in the CAN sub-network, and the correctly received data packets can be sent to the MCU for data packet CAN node ID identification.

[0106] In a specific embodiment, the communication conversion node of the sub-network includes a control module MCU, a bus communication module and a wireless communication module as an example, please refer to Figure 4b , Figure 4b This is another specific flow chart of a data transmission method provided by an embodiment of the present application. Assuming that a communication conversion node of a sub-network receives a data packet transmitted by a communication conversion node in another sub-network through an antenna, the received data packet can be processed for data transmission by executing the following steps:

[0107] Step S11, the MCU identifies the CAN node ID (i.e., the target node identifier) ​​of the received data packet from the data received by the wireless communication module;

[0108] Step S12, determining whether the node ID is in the sub-network receiving filter list (i.e., the first filter information), if yes, proceeding to step S13, if no, proceeding to step S16;

[0109] Step S13, determining whether the data packet needs to be sent to the CAN sub-network;

[0110] Step S14, the MCU sends the data packet to the CAN communication module (i.e., bus communication module) of the sub-network;

[0111] Step S15, the CAN communication module sends the data packet to the CAN bus;

[0112] Step S16, determining that the data packet does not need to be sent to the CAN sub-network;

[0113] Step S17, MCU clears the data packet;

[0114] For the wireless communication module in step S11, the wireless communication method may not be limited to a specific communication protocol, such as Bluetooth, WiFi, Zigbee, etc. It should be equipped with an ACK (Acknowledge character: confirmation character) confirmation mechanism to ensure the correct reception of data packets transmitted from other CAN sub-networks. Correctly received data packets can be sent to the MCU for data packet CAN node ID identification.

[0115] For the CAN communication module in step S15, it can rely on the CAN network error diagnosis mechanism to ensure that the data packets sent by the CAN communication module are correctly received by the CAN nodes in the sub-network.

[0116] The CAN bus connects the electronic control units inside the target equipment such as the vehicle into a local area network, namely the CAN network, to achieve information sharing. Since the CAN network uses differential signal transmission, it has the characteristics of strong anti-interference ability, can ensure real-time and reliable data transmission, and has an irreplaceable position in the automotive industry. However, in the actual CAN network, due to impedance mismatch, long bus and branch lengths, etc., the signal cannot distinguish high and low levels during sampling, resulting in confusion of the entire network data and inability to communicate normally. Therefore, in order to ensure the correctness of CAN network signal transmission as much as possible, certain requirements are put forward for the CAN node and wiring layout when the CAN network nodes are laid out, thereby limiting the simplification of the vehicle wiring harness layout. The existing CAN network wiring standard requires that the bus length is less than 40m and the branch length is less than 1.7m. In most cases, in order to meet the requirement that the branch length is less than 1.7m, a winding operation is required to make the distance from the bus to the CAN node as small as possible. On the one hand, this limits the flexibility of the CAN node wiring layout in the CAN network, while increasing the complexity of the vehicle wiring harness wiring design and the amount of wiring harness used. On the other hand, for the CAN network of vehicles with numerous CAN nodes, it is difficult to troubleshoot the cause of the error signal in such a CAN network setting, which may cause some data transmission problems.

[0117] To this end, the embodiment of the present application provides a distributed CAN network system based on wireless communication, which improves the high flexibility of CAN node layout in the CAN network, thereby improving data transmission efficiency. Specifically, the sub-network can be divided according to the distribution position of the CAN nodes contained in the CAN network on the target device, so that the nodes in the same sub-network can meet the CAN node wiring requirements through simple line layout, and then, the communication conversion nodes for converting CAN communication and wireless communication with the same number of sub-networks can be added to the CAN sub-network respectively, and the positions where the communication conversion nodes are placed should maintain the minimum distance while meeting the sub-network wiring requirements.

[0118] In addition, the embodiment of the present application also provides a management system for data transmission between CAN sub-networks. The data packet filtering mechanism in the communication conversion node can select whether to wirelessly transmit data packets to other CAN sub-networks according to whether there is data transmission between CAN nodes of different sub-networks, and select whether to send wireless received data packets to the CAN sub-network via the CAN bus, thereby improving the data transmission efficiency of the distributed CAN network.

[0119] In this way, the embodiment of the present application divides the vehicle's CAN network into multiple sub-networks, adds communication conversion nodes in the sub-networks for realizing conversion between CAN communication and wireless communication, and realizes data communication between different sub-networks through the communication conversion nodes without changing the CAN nodes in the CAN network, thereby greatly improving the data transmission efficiency based on the CAN network.

[0120] As can be seen from the above, the embodiment of the present application is applied to the target device, and the target device is provided with a data transmission system including multiple sub-networks, the sub-network includes a communication conversion node and at least one CAN node, and the communication conversion nodes of different sub-networks transmit data packets through wireless communication, and receive the target data packet to be transmitted through the first communication conversion node in the first sub-network in the sub-network, and the target data packet comes from the CAN node of the first sub-network or the communication conversion node of other sub-networks; through the first communication conversion node, the target data packet is transmitted to the CAN node in the first sub-network, or the target data packet is transmitted to the second communication conversion node in the second sub-network in the sub-network. In this way, compared with the scheme of arranging the wiring of CAN nodes in the entire data transmission system in the prior art, the embodiment of the present application divides the data transmission system into multiple sub-networks, so that the wiring arrangement of the CAN nodes only needs to consider the layout in the sub-network, and the sub-networks are wirelessly connected through the communication conversion node, which can effectively reduce the wiring length of each node in different sub-networks in the data transmission system, thereby effectively improving the flexibility of the wiring arrangement of the CAN nodes in the data transmission system. At the same time, by realizing data transmission of CAN nodes between sub-networks through communication conversion nodes in each sub-network, the data transmission logic of multiple sub-networks under the data transmission system can be simplified, and the situation where CAN nodes in the data transmission system cannot communicate normally due to data confusion in the entire data transmission system can be avoided, thereby improving data transmission efficiency.

[0121] In order to better implement the data transmission method provided in the embodiment of the present application, the embodiment of the present application also provides a device based on the above data transmission method. The meanings of the terms are the same as those in the above data transmission method, and the specific implementation details can refer to the description in the method embodiment.

[0122] For example, Figure 5 As shown, it is a structural schematic diagram of a data transmission device provided in an embodiment of the present application, and the data transmission device is applied to a target device, and a data transmission system including multiple sub-networks is provided in the target device, and the sub-network includes a communication conversion node and at least one CAN node. The communication conversion nodes of different sub-networks transmit data packets through wireless communication, and may include a data acquisition module 201 and a data transmission module 202, which are specifically as follows:

[0123] A data acquisition module, used for receiving a target data packet to be transmitted through a first communication conversion node in a first sub-network in the sub-network, the target data packet coming from a CAN node in the first sub-network or a communication conversion node in another sub-network;

[0124] The data transmission module is used to transmit the target data packet to the CAN node in the first sub-network through the first communication conversion node, or to transmit the target data packet to the second communication conversion node in the second sub-network in the sub-network.

[0125] In one embodiment, CAN nodes and communication conversion nodes in the same sub-network transmit data packets via a communication bus in the sub-network.

[0126] In one embodiment, the data transmission module 202 includes:

[0127] A determination submodule, used to determine transmission indication information of a target data packet;

[0128] The transmission submodule is used to transmit the target data packet to the CAN node in the first subnetwork through the first communication conversion node based on the transmission indication information, or to transmit the target data packet to the second communication conversion node in the second subnetwork in the subnetwork.

[0129] In one embodiment, the transmission indication information includes a data receiving mode, and the transmission submodule includes:

[0130] A first transmission unit, configured to transmit a target data packet to a CAN node in the first sub-network through a first communication conversion node if the data receiving mode is a wireless communication mode;

[0131] The second transmission unit is used to transmit the target data packet to the second communication conversion node in the second sub-network through the first communication conversion node if the data receiving mode is the bus communication mode.

[0132] In one embodiment, the data transmission device further includes a first filtering module, which is used to:

[0133] Acquire, through the first communication conversion node, a target node identifier corresponding to the target data packet, where the target node identifier indicates a CAN node that sends the target data packet;

[0134] Acquire first filtering information corresponding to the first sub-network, the first filtering information including node identifiers of CAN nodes in other sub-networks that need to send data packets to each CAN node in the first sub-network;

[0135] If the target node identifier is found in the first filtering information, the step of transmitting the target data packet to the CAN node in the first sub-network through the first communication conversion node is executed.

[0136] In one embodiment, the data transmission device further includes a second filtering unit, which is used to:

[0137] Obtain a target node identifier corresponding to a target data packet, where the target node identifier indicates a CAN node that sends the target data packet;

[0138] Acquire second filtering information corresponding to the first sub-network, where the second filtering information includes node identifiers of CAN nodes that the first sub-network needs to send data packets to other sub-networks;

[0139] If the target node identifier is found in the second filtering information, the step of transmitting the target data packet to a second communication conversion node in a second sub-network in the sub-network through the first communication conversion node is performed.

[0140] As can be seen from the above, the embodiment of the present application is applied to the target device, and the target device is provided with a data transmission system including multiple sub-networks, the sub-network includes a communication conversion node and at least one CAN node, and the communication conversion nodes of different sub-networks transmit data packets through wireless communication. The data acquisition module 201 receives the target data packet to be transmitted through the first communication conversion node in the first sub-network in the sub-network, and the target data packet comes from the CAN node of the first sub-network or the communication conversion node of other sub-networks; the data transmission module 202 transmits the target data packet to the CAN node in the first sub-network through the first communication conversion node, or transmits the target data packet to the second communication conversion node in the second sub-network in the sub-network. In this way, compared with the scheme of arranging the wiring of the CAN nodes in the entire data transmission system in the prior art, the embodiment of the present application divides the data transmission system into multiple sub-networks, so that the wiring arrangement of the CAN nodes only needs to consider the layout in the sub-network, and the sub-networks are wirelessly connected through the communication conversion nodes, which can effectively reduce the wiring length of each node in different sub-networks in the data transmission system, thereby effectively improving the flexibility of the wiring arrangement of the CAN nodes in the data transmission system. At the same time, by realizing data transmission of CAN nodes between sub-networks through communication conversion nodes in each sub-network, the data transmission logic of multiple sub-networks under the data transmission system can be simplified, and the situation where CAN nodes in the data transmission system cannot communicate normally due to data confusion in the entire data transmission system can be avoided, thereby improving data transmission efficiency.

[0141] Accordingly, the present application also provides an electronic device, such as Figure 6 As shown, Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 300 includes a processor 301 having one or more processing cores, a memory 302 having one or more computer-readable storage media, and a computer program stored in the memory 302 and executable on the processor. The processor 301 is electrically connected to the memory 302. Those skilled in the art will appreciate that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or arrange components differently.

[0142] The processor 301 is the control center of the electronic device 300, and uses various interfaces and lines to connect various parts of the entire electronic device 300. By running or loading software programs and / or units stored in the memory 302, and calling data stored in the memory 302, the processor 301 executes various functions of the electronic device 300 and processes data. The processor 301 can be a processor CPU, a graphics processor GPU, a network processor (Network Processor, NP), etc., and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application.

[0143] In the embodiment of the present application, the processor 301 in the electronic device 300 will load instructions corresponding to the processes of one or more application programs into the memory 302 according to the following steps, and the processor 301 will run the application programs stored in the memory 302 to implement various functions, such as:

[0144] A target data packet to be transmitted is received through a first communication conversion node in a first subnet in the subnet, and the target data packet comes from a CAN node in the first subnet or a communication conversion node in another subnet; the target data packet is transmitted to a CAN node in the first subnet through the first communication conversion node, or the target data packet is transmitted to a second communication conversion node in a second subnet in the subnet.

[0145] Furthermore, various functions implemented by running the application program stored in the memory 302 can also be found in the description of the aforementioned embodiment, which will not be repeated here.

[0146] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0147] Optional, such as Figure 6 As shown, the electronic device 300 further includes: a touch screen 303, a radio frequency circuit 304, an audio circuit 305, an input unit 306, and a power supply 307. The processor 301 is electrically connected to the touch screen 303, the radio frequency circuit 304, the audio circuit 305, the input unit 306, and the power supply 307, respectively. Those skilled in the art can understand that Figure 6 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0148] The touch display screen 303 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 303 may include a display panel and a touch panel. Among them, the display panel can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, and these graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode) and the like. The touch panel can be used to collect the user's touch operation on or near it (such as the user uses any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 301, and can receive the command sent by the processor 301 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 301 to determine the type of touch event, and then the processor 301 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 303 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 303 can also be used as a part of the input unit 306 to realize the input function.

[0149] The radio frequency circuit 304 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other electronic devices through wireless communication, and to send and receive signals with the network device or other electronic devices.

[0150] The audio circuit 305 can be used to provide an audio interface between the user and the electronic device through a speaker and a microphone. The audio circuit 305 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 305 and converted into audio data, and then the audio data is output to the processor 301 for processing, and then sent to another electronic device through the radio frequency circuit 304, or the audio data is output to the memory 302 for further processing. The audio circuit 305 may also include an earplug jack to provide communication between an external headset and the electronic device.

[0151] The input unit 306 may be used to receive input target video and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0152] The power supply 307 is used to supply power to various components of the electronic device 300. Optionally, the power supply 307 can be logically connected to the processor 301 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 307 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0153] although Figure 6 Not shown, the electronic device 300 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.

[0154] In the above embodiments, the descriptions of each embodiment have their own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments. It should be noted that the electronic device provided in the embodiment of the present application and the data transmission method in the above embodiment belong to the same concept, and its specific implementation process is detailed in the above method embodiment, which will not be repeated here.

[0155] As can be seen from the above, the electronic device provided by the embodiment of the present application can be provided with a data transmission system including multiple sub-networks, the sub-network includes a communication conversion node and at least one CAN node, and the communication conversion nodes of different sub-networks transmit data packets through wireless communication, and receive the target data packet to be transmitted through the first communication conversion node in the first sub-network in the sub-network, and the target data packet comes from the CAN node of the first sub-network or the communication conversion node of other sub-networks; through the first communication conversion node, the target data packet is transmitted to the CAN node in the first sub-network, or, the target data packet is transmitted to the second communication conversion node in the second sub-network in the sub-network. In this way, compared with the scheme of arranging the wiring of CAN nodes in the entire data transmission system in the prior art, the embodiment of the present application divides the data transmission system into multiple sub-networks, so that the wiring arrangement of the CAN nodes only needs to consider the layout in the sub-network, and the sub-networks are wirelessly connected through the communication conversion node, which can effectively reduce the wiring length of each node in different sub-networks in the data transmission system, thereby effectively improving the flexibility of the wiring arrangement of the CAN nodes in the data transmission system. At the same time, by realizing data transmission of CAN nodes between sub-networks through communication conversion nodes in each sub-network, the data transmission logic of multiple sub-networks under the data transmission system can be simplified, and the situation where CAN nodes in the data transmission system cannot communicate normally due to data confusion in the entire data transmission system can be avoided, thereby improving data transmission efficiency.

[0156] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0157] To this end, an embodiment of the present application provides a computer-readable storage medium, which includes a computer program. When the computer program is run on an electronic device, the computer program is used to enable the electronic device to perform any of the data transmission methods provided in the embodiments of the present application. For example, the computer program can perform the following steps of the data transmission method:

[0158] A target data packet to be transmitted is received through a first communication conversion node in a first subnet in the subnet, and the target data packet comes from a CAN node in the first subnet or a communication conversion node in another subnet; the target data packet is transmitted to a CAN node in the first subnet through the first communication conversion node, or the target data packet is transmitted to a second communication conversion node in a second subnet in the subnet.

[0159] Furthermore, for the detailed steps of the above method steps, reference can be made to the description in the above embodiments, which will not be repeated here.

[0160] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0161] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0162] Since the computer program stored in the computer-readable storage medium can execute any one of the data transmission methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the data transmission methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0163] According to one aspect of the present application, a computer program product is also provided, including a computer program, which is stored in a computer-readable storage medium; when a processor of an electronic device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the electronic device executes the methods provided in various optional implementations of the above embodiments.

[0164] In the above-mentioned data transmission device, computer-readable storage medium, electronic device, and computer program product embodiments, the description of each embodiment has its own emphasis. For parts not described in detail in a certain embodiment, reference can be made to the relevant description of other embodiments. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process and beneficial effects of the above-described data transmission device, computer-readable storage medium, computer program product, electronic device, and corresponding units can refer to the description of the data transmission method in the above embodiment, and will not be repeated here.

[0165] The above is a detailed introduction to a data transmission method, device, electronic device, vehicle, computer-readable storage medium and computer program product provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A data transmission system, characterized in that: The data transmission system includes a plurality of sub-networks, each of which includes a communication conversion node and at least one CAN node. The communication conversion node in the same sub-network is connected to the CAN node by wire, and different sub-networks are connected wirelessly based on the communication conversion node. The CAN node is used to transmit data packets with other CAN nodes in the same sub-network, and to transmit data packets with communication conversion nodes in the same sub-network; The communication conversion node is used to transmit data packets with the communication conversion nodes of different sub-networks, so as to realize data packet transmission between CAN nodes in different sub-networks.

2. The data transmission system according to claim 1, characterized in that: The CAN nodes in the same sub-network are connected to the communication conversion node via a communication bus, and the CAN nodes in the same sub-network are connected to each other via the communication bus.

3. The data transmission system according to claim 2, characterized in that: The communication conversion node comprises a control module, a bus communication module and a wireless communication module, wherein the control module is connected to the bus communication module and the wireless communication module respectively; The wireless communication module is used to receive data packets sent by communication conversion nodes of different sub-networks and send them to the control module; The control module is used to send the data packet received from the wireless communication module to the bus communication module; The bus communication module is used to send the data packet sent by the control module to the CAN node in the sub-network via the communication bus of the sub-network.

4. The data transmission system according to claim 3, characterized in that: The bus communication module is also used to receive data packets transmitted by the CAN nodes in the sub-network and send them to the control module; The control module is further used to send the data packet received from the bus communication module to the wireless communication module; The wireless communication module is also used to send the data packets sent by the control module to the communication conversion nodes of different sub-networks.

5. The data transmission system according to claim 3 or 4, characterized in that: The wireless communication module receives a first data packet sent by a communication conversion node of another sub-network, and the control module is configured with first filtering information, wherein the first filtering information includes conditions for transmitting the first data packet to a CAN node in the sub-network. When the control module determines based on the first filtering information that the first data packet is a data packet to be received by the sub-network, the control module sends the first data packet to the bus communication module, so that the bus communication module sends the first data packet to the CAN node in the sub-network.

6. The data transmission system according to claim 4, characterized in that: The bus communication module receives a second data packet transmitted by a CAN node in the subnet where it is located, and the control module is configured with second filtering information, wherein the second filtering information includes conditions for transmitting the second data packet to a communication conversion node of another subnet, and when the control module determines based on the second filtering information that the second data packet is a data packet to be received by another subnet, the control module sends the second data packet to the wireless communication module, so that the wireless communication module sends the second data packet to the other subnet.

7. The data transmission system according to claim 2, characterized in that: The sub-network further includes a terminal matching resistor, and the terminal matching resistor is connected to two ends of the communication bus in the sub-network.

8. A data transmission method, characterized in that: Applied to a target device, the target device is provided with a data transmission system including multiple sub-networks, the sub-networks include a communication conversion node and at least one CAN node, and the communication conversion nodes of different sub-networks transmit data packets through wireless communication. The method includes: Receiving a target data packet to be transmitted through a first communication conversion node in a first sub-network in the sub-network, the target data packet coming from a CAN node of the first sub-network or a communication conversion node of another sub-network; The target data packet is transmitted to a CAN node in the first sub-network through the first communication conversion node, or the target data packet is transmitted to a second communication conversion node in a second sub-network in the sub-network.

9. The data transmission method according to claim 8, characterized in that: The CAN nodes and the communication conversion nodes in the same sub-network transmit data packets via the communication bus in the sub-network.

10. The data transmission method according to claim 8, characterized in that: The method of transmitting the target data packet to a CAN node in the first sub-network through the first communication conversion node, or transmitting the target data packet to a second communication conversion node in a second sub-network in the sub-network, comprises: Determining transmission instruction information of the target data packet; Based on the transmission indication information, the target data packet is transmitted to a CAN node in the first sub-network through the first communication conversion node, or the target data packet is transmitted to a second communication conversion node in a second sub-network in the sub-network.

11. The data transmission method according to claim 10, characterized in that: The transmission indication information includes a data receiving mode, and based on the transmission indication information, the target data packet is transmitted to a CAN node in the first sub-network through the first communication conversion node, or the target data packet is transmitted to a second communication conversion node in a second sub-network in the sub-network, including: If the data receiving mode is a wireless communication mode, the target data packet is transmitted to a CAN node in the first sub-network through the first communication conversion node; If the data receiving mode is a bus communication mode, the target data packet is transmitted to a second communication conversion node in a second sub-network in the sub-network through the first communication conversion node.

12. The data transmission method according to claim 11, characterized in that: Before transmitting the target data packet to the CAN node in the first sub-network through the first communication conversion node, the method further includes: Acquire, through the first communication conversion node, a target node identifier corresponding to the target data packet, wherein the target node identifier indicates a CAN node that sends the target data packet; Acquire first filtering information corresponding to the first subnetwork, where the first filtering information includes node identifiers of CAN nodes in other subnetworks that need to send data packets to each CAN node in the first subnetwork; If the target node identifier is found in the first filtering information, the step of transmitting the target data packet to the CAN node in the first sub-network through the first communication conversion node is performed.

13. The data transmission method according to claim 11, characterized in that: Before transmitting the target data packet to the second communication conversion node in the second sub-network in the sub-network through the first communication conversion node, the method further includes: Acquire a target node identifier corresponding to the target data packet, wherein the target node identifier indicates a CAN node that sends the target data packet; Acquire second filtering information corresponding to the first sub-network, where the second filtering information includes node identifiers of CAN nodes that the first sub-network needs to send data packets to other sub-networks; If the target node identifier is found in the second filtering information, the step of transmitting the target data packet to a second communication conversion node in a second sub-network in the sub-network through the first communication conversion node is performed.

14. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any one of the methods of claims 8 to 13.

15. A computer-readable storage medium, characterized in that: It includes a computer program. When the computer program is run on an electronic device, the computer program is used to enable the electronic device to execute the steps of any method described in claims 8 to 13.

16. A vehicle, characterized in that: The vehicle comprises the data transmission system according to any one of claims 1 to 7, or the electronic device according to claim 14, or the computer-readable storage medium according to claim 15.