Equipment communication method, device, system and vehicle

By enabling the gateway function in the vehicle architecture to connect with other subnet segments, the communication blockage problem caused by the vehicle architecture's performance dependence on the master node is solved, and the rapid switching and security of communication are achieved.

CN119211880APending Publication Date: 2024-12-27GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411379778.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

The performance of existing vehicle architectures depends on the master node, which is prone to communication blockage.

Method used

When the gateway sends partition notification signals, the subnet segment device enables the gateway function to achieve connection with other subnet segments, avoid communication blockage, and ensure communication security through identity authentication.

Benefits of technology

Effectively avoid communication blockage, realize rapid gateway switching, alleviate communication pressure, and ensure communication security and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211880A_ABST
    Figure CN119211880A_ABST
Patent Text Reader

Abstract

The invention provides an equipment communication method, device and system and a vehicle, and relates to the technical field of communication, and the method comprises the steps: enabling a gateway function by first equipment of a sub-network segment under the triggering of a partition notification signal sent by a gateway, achieving the connection with other sub-network segments except the first sub-network segment, and further enabling the first equipment of the sub-network segment to be connected with the other sub-network segments except the first sub-network segment; and communicating with the second equipment of the other sub-network segment which receives the partition notification signal. When the gateway breaks down or the semaphore of the needed route exceeds the processing capacity of the gateway, the gateway actively sends out a partition notification signal to trigger switching of the gateway, possible communication congestion can be effectively avoided, long-time communication congestion is avoided, in addition, starting of the gateway function of the first device is triggered by the partition notification signal, and the switching efficiency of the first device is improved. The triggering condition is simple, rapid switching of the gateway can be realized, the communication pressure is rapidly relieved, and the communication congestion is further avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a device communication method, apparatus, system and vehicle. Background Art

[0002] The vehicle architecture is a key component for realizing the functions of the vehicle. Usually, the vehicle architecture realizes complex functions by integrating various subsystems. In related technologies, the vehicle architecture is mostly a master-slave architecture. The gateway is the master node of the vehicle architecture. Multiple subordinate subnet segments are connected to the gateway. Based on the routing function of the master node, communication between the nodes of each subordinate subnet segment is realized.

[0003] However, the performance of this vehicle architecture depends on the master node. When the master node fails or the subordinate nodes send too many signals at a certain time, the master node may not be able to handle it, causing communication congestion. Summary of the invention

[0004] The embodiments of the present application provide a device communication method, apparatus, system and vehicle to solve the problem that the performance of the entire vehicle architecture depends on the main node and communication congestion is prone to occur.

[0005] In a first aspect, an embodiment of the present application provides a device communication method, the method being applied to a first device, the first device being a device in a first subnet segment, and the first device having a gateway function;

[0006] The method comprises:

[0007] If a disconnection notification signal sent by the gateway is received, the gateway function is enabled under the triggering of the disconnection notification signal, so that the first device is connected to other subnet segments except the first subnet segment; wherein the devices under the first subnet segment communicate with the devices under the other subnet segments through the gateway before the gateway sends the disconnection notification signal;

[0008] After enabling the gateway function, communicating with the second device; wherein the second device is a device under the other subnet segment that receives the isolation notification signal.

[0009] In this embodiment, under the triggering of the isolation notification signal sent by the gateway, the first device of the subnet segment enables the gateway function to achieve connection with other subnet segments except the first subnet segment, and then communicates with the second device of the other subnet segment that receives the isolation notification signal. In this embodiment, when the gateway fails or the signal volume required for routing exceeds the processing capacity of the gateway, the gateway actively sends a isolation notification signal to trigger the switching of the gateway, which can effectively avoid possible communication congestion and avoid long-term communication congestion. In addition, the activation of the gateway function of the first device is triggered by the isolation notification signal, and the triggering conditions are simple, which can achieve rapid switching of the gateway, quickly relieve communication pressure, and further avoid communication congestion.

[0010] In a possible implementation manner, before communicating with the second device, the method further includes:

[0011] Receiving an identity authentication message sent by the second device;

[0012] Performing identity authentication on the second device according to the identity authentication message;

[0013] The communicating with the second device includes:

[0014] If the identity authentication of the second device is successful, communication is performed with the second device.

[0015] Before communicating with the second device, this embodiment performs identity authentication on the second device based on the identity authentication message sent by the second device to confirm the legitimacy of the second device. After determining that the second device has passed the authentication, communication with the second device is performed. The security of communication with the second device is guaranteed through identity authentication.

[0016] In a possible implementation, the identity authentication message carries the logical address and signature of the second device, and the signature is issued based on a root certificate;

[0017] The performing identity authentication on the second device according to the identity authentication message includes:

[0018] Based on the pre-stored device logical address, verify the legitimacy of the logical address of the second device, and based on the preset root certificate, verify the validity of the signature of the second device;

[0019] If the second device passes the legality verification and the validity verification, it is determined that the identity authentication of the second device is passed; otherwise, it is determined that the identity authentication of the second device is failed.

[0020] This embodiment pre-uses the root certificate preset by the first device to issue signatures for devices in other subnet segments. Furthermore, during identity authentication, the root certificate is used to verify the validity of the signature of the second device, thereby ensuring the security of the communication link. In addition, based on the preset device logical address, the legitimacy of the logical address of the second device in the identity authentication message sent by the second device is verified, thereby ensuring the authenticity and legitimacy of the second device and further ensuring the security of communication with the second device.

[0021] In a possible implementation, the method further includes:

[0022] If the identity authentication of the second device passes, sending a first feedback message to the second device, wherein the first feedback message is used to prompt the second device to pass the identity authentication;

[0023] If the identity authentication of the second device fails, a second feedback message is sent to the second device; wherein the second feedback message is used to prompt that the second device has failed the identity authentication.

[0024] This embodiment feeds back a corresponding message to the second device based on the identity authentication result of the second device, so that the second device can promptly understand the status of the communication line between the second device and the first device, thereby increasing communication efficiency and avoiding invalid communication.

[0025] In a possible implementation, the method further includes:

[0026] If the identity authentication of the second device fails, fault code information corresponding to the second device is generated and stored.

[0027] In this embodiment, when the identity authentication of the second device fails, corresponding fault code information is generated and stored, so that the first device can clearly know that the second device is a non-authenticated device. In the subsequent signal routing process, the signal forwarding request of the second device is not processed, which further ensures the security of communication. In addition, the fault code information facilitates subsequent fault detection and diagnosis, so that technical personnel can quickly locate the problem.

[0028] In a possible implementation, a preset communication line is provided between the first device and other subnet segments except the first subnet segment;

[0029] The enabling of the gateway function under the triggering of the isolation notification signal includes:

[0030] Under the triggering of the isolation notification signal, an enable signal is sent to the preset communication line to activate the preset communication line and enable the gateway function.

[0031] This embodiment presets a communication line between the first device and other subnet segments except the first subnet segment, so that the first device can quickly activate the preset communication line using an enable signal when triggered by a cut-off communication signal, thereby efficiently enabling the gateway function.

[0032] In a second aspect, an embodiment of the present application provides a device communication method, the method comprising:

[0033] The gateway sends a cutoff notification signal to a device, wherein the device is a device in a subnet segment communicating through the gateway;

[0034] The first device receives the isolation notification signal, and under the triggering of the isolation notification signal, enables the gateway function to connect the first device to other subnet segments except the first subnet segment, and after enabling the gateway function, communicates with the second device; wherein, the first device is a device under the first subnet segment, the first device has a gateway function, and the second device is a device under the other subnet segments that receive the isolation notification signal.

[0035] In this embodiment, the gateway actively sends a cutoff notification signal to trigger the switching of the gateway, which can effectively avoid possible communication congestion and avoid long-term communication congestion. In addition, the activation of the gateway function of the first device is triggered by the cutoff notification signal. The triggering condition is simple, which can realize rapid switching of the gateway, quickly relieve communication pressure, and further avoid communication congestion.

[0036] In a third aspect, an embodiment of the present application provides a device communication apparatus, the apparatus is applied to a first device, the first device is a device in a first subnet segment, and the first device has a gateway function;

[0037] The device comprises:

[0038] A control unit, configured to enable a gateway function under the triggering of a disconnection notification signal if a disconnection notification signal sent by a gateway is received, so that the first device is connected to other subnet segments except the first subnet segment; wherein the devices under the first subnet segment communicate with the devices under the other subnet segments through the gateway before the gateway sends the disconnection notification signal;

[0039] A processing unit, used to communicate with a second device after enabling the gateway function; wherein the second device is a device under the other subnet segment that receives the isolation notification signal.

[0040] In a fourth aspect, an embodiment of the present application provides a device communication system, the system comprising:

[0041] A gateway module, wherein the gateway module is used to send a cutoff notification signal to a device, wherein the device is a device in a subnet segment communicating through the gateway;

[0042] A first device is used to receive the isolation notification signal, and when triggered by the isolation notification signal, enables a gateway function so that the first device is connected to other subnet segments except the first subnet segment, and after enabling the gateway function, communicates with a second device; wherein the first device is a device under the first subnet segment, the first device has a gateway function, and the second device is a device under the other subnet segment that receives the isolation notification signal.

[0043] In a fifth aspect, an embodiment of the present application provides a vehicle, comprising a device communication system as described in the fourth aspect.

[0044] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.

[0045] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present specification. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0047] Figure 1 It is a flowchart of a device communication method provided by an embodiment of the present application;

[0048] Figure 2 It is a structural diagram of a communication architecture provided in an embodiment of the present application;

[0049] Figure 3 It is a flowchart of another device communication method provided in an embodiment of the present application;

[0050] Figure 4 It is a flowchart of another device communication method provided in an embodiment of the present application;

[0051] Figure 5 It is a structural diagram of a vehicle communication architecture provided by an embodiment of the present application;

[0052] Figure 6 It is a structural diagram of a device communication apparatus provided in an embodiment of the present application;

[0053] Figure 7 It is a structural diagram of a device communication system provided in an embodiment of the present application;

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

[0055] The present application is described more clearly below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the effects of the present application, but are not intended to limit the present application in any form. It should be noted that, for those of ordinary skill in the art, several variations and improvements may be made without departing from the concept of the present application. These all fall within the scope of protection of the present application.

[0056] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0057] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0058] In the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0059] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0060] In addition, the “plurality” mentioned in the embodiments of the present application should be interpreted as two or more.

[0061] The inventor of the present application has found through research that in the existing vehicle architecture, the gateway is the main node of the vehicle architecture, and based on the routing function of the main node, it realizes the communication between the subordinate sub-network nodes. However, the performance of this vehicle architecture depends on the main node. When the main node fails or the subordinate nodes send too many signals at a certain time, the main node may not be able to handle it, causing communication congestion.

[0062] In order to solve the above problems, in an implementation manner of the present application, under the triggering of a cutoff notification signal issued by the gateway, the first device under the subnet segment enables the gateway function to implement gateway switching, which can effectively avoid possible communication congestion and avoid long-term communication congestion. In addition, the activation of the gateway function of the first device is triggered by the cutoff notification signal, and the triggering conditions are simple, which can achieve rapid switching of the gateway and quickly relieve communication pressure.

[0063] It should be noted that the device communication method provided in the embodiment of the present application is not only applicable to the entire vehicle architecture, but also to any communication architecture.

[0064] In order to illustrate the technical solution of the present application, a specific embodiment is provided below for illustration.

[0065] refer to Figure 1 , Figure 1 A schematic diagram of a device communication method provided in an embodiment of the present application. Figure 1 As shown, the method in the embodiment of the present application is applied to a first device, the first device is a device in a first subnet segment, and the first device has a gateway function, and may include:

[0066] Step 101, if a disconnection notification signal is received from a gateway, the gateway function is enabled under the triggering of the disconnection notification signal to connect the first device with other subnet segments except the first subnet segment; wherein, the devices under the first subnet segment communicate with the devices under other subnet segments through the gateway before the gateway sends the disconnection notification signal.

[0067] In this embodiment, when certain preset conditions are met, for example, an existing gateway in the communication architecture fails and cannot implement routing forwarding, or the devices under each subnet segment send too many signals at a certain time and reach a certain amount of signals to be processed, the gateway may not be able to handle them. The gateway sends a cut-off notification signal to each device in the subnet segment, instructing the gateway to switch.

[0068] In one example, the isolation notification signal is sent in the form of a message.

[0069] The first device may be a device in any subnet segment in the communication architecture, for example, any electronic controller (Electronic Control Unit, ECU for short) in the communication architecture.

[0070] The first device has pre-set the gateway function, such as routing protocol, etc.

[0071] Exemplarily, after receiving the cutoff notification signal, the first device of this embodiment enables the gateway function under the triggering of the cutoff notification signal, so that the first device is in a communication connection state with other subnet segments except the first subnet segment. Further, based on the corresponding communication connection, signals can be received and sent.

[0072] Step 102, after enabling the gateway function, communicate with the second device; wherein the second device is a device in another subnet segment that receives the isolation notification signal.

[0073] In this embodiment, devices in the same subnet segment can communicate directly with each other. Communication between devices in different subnet segments is implemented based on the first device after the gateway function is enabled.

[0074] In addition to the first device, devices in other subnet segments in the communication architecture also receive the disconnection notification signal, instructing the gateway to switch to the first device. After receiving the disconnection notification signal, when devices in other subnet segments have communication needs, they send signals to the first device.

[0075] In this embodiment, the signal can be transmitted using a message as a carrier, and the message can carry the signal.

[0076] Exemplarily, if the second device needs to send a target signal to a target device in another subnet segment, the second device needs to first send the target signal to the first device, and then, after receiving the target signal sent by the second device, the first device sends the target signal to the target device.

[0077] In one example, after the first device in this embodiment enables the gateway function, the signal sending and receiving functions of the first device itself are not affected.

[0078] In this embodiment, under the triggering of the isolation notification signal sent by the gateway, the first device of the subnet segment enables the gateway function to achieve communication connection with other subnet segments except the first subnet segment, and then communicates with the second device of the other subnet segment that receives the isolation notification signal. In this embodiment, when the gateway fails or the signal volume required for routing exceeds the processing capacity of the gateway, the gateway actively sends a isolation notification signal to trigger the switching of the gateway, which can effectively avoid possible communication congestion and avoid long-term communication congestion. In addition, the activation of the gateway function of the first device is triggered by the isolation notification signal, and the triggering condition is simple, which can achieve rapid switching of the gateway, quickly relieve communication pressure, and further avoid communication congestion.

[0079] To ensure the security of communication, before communicating with the second device, it is necessary to further authenticate the second device to confirm the authenticity of the second device. The following further introduces how to authenticate the second device.

[0080] In some embodiments, before communicating with the second device, the method further includes:

[0081] Receive an identity authentication message sent by the second device; and perform identity authentication on the second device according to the identity authentication message.

[0082] Furthermore, if the identity authentication of the second device is passed, communication is performed with the second device.

[0083] Exemplarily, in this embodiment, after receiving the isolation notification signal, the second device first sends an identity authentication message to the new gateway, i.e., the first device. The first device receives the identity authentication message sent by the second device, and then, based on the identity authentication message, it can perform identity authentication on the second device to confirm the authenticity and legitimacy of the second device.

[0084] The identity authentication message may include the identity information and authentication mechanism of the second device.

[0085] Before communicating with the second device, this embodiment performs identity authentication on the second device based on the identity authentication message sent by the second device to confirm the legitimacy of the second device. After determining that the second device has passed the authentication, communication with the second device is performed. The security of communication with the second device is guaranteed through identity authentication.

[0086] Further, in some embodiments, the identity authentication message carries the logical address and signature of the second device, and the signature is issued based on the root certificate.

[0087] Performing identity authentication on the second device according to the identity authentication message includes:

[0088] Based on the pre-stored device logical address, the legitimacy of the logical address of the second device is verified, and based on the preset root certificate, the validity of the signature of the second device is verified.

[0089] If the second device passes the legality verification and the validity verification, it is determined that the identity authentication of the second device passes; otherwise, it is determined that the identity authentication of the second device fails.

[0090] The identity authentication message may consist of a message, a logical address of the second device, and a signature.

[0091] In one example, the first device is pre-installed with a root certificate, and before the entire vehicle is deployed, signatures are issued to various devices in the communication architecture based on the root certificate.

[0092] The first device also pre-stores the logical address of each device in the communication architecture.

[0093] In a feasible implementation, the first device may verify the validity of the signature of the second device based on the public key of the root certificate.

[0094] In a feasible implementation, the first device traverses the pre-stored device logical addresses. If the pre-stored device logical addresses contain the logical address of the second device, it is determined that the second device has passed the legitimacy verification; otherwise, it is determined that the second device has not passed the legitimacy verification.

[0095] In one example, the root certificate is a core component in the public key infrastructure system. The root certificate is at the highest trust level in the certificate chain and is usually issued by a trusted certificate authority. The life cycle of the root certificate is long and usually does not need to be updated frequently. In this embodiment, the certificate chain verification is built based on the root certificate to prevent man-in-the-middle attacks and other security threats. The communication security of the architecture is guaranteed.

[0096] This embodiment pre-uses the root certificate preset by the first device to issue signatures for devices in other subnet segments. Furthermore, during identity authentication, the root certificate is used to verify the validity of the signature of the second device, thereby ensuring the security of the communication link. In addition, based on the preset device logical address, the legitimacy of the logical address of the second device in the identity authentication message sent by the second device is verified, thereby ensuring the authenticity and legitimacy of the second device and further ensuring the security of communication with the second device.

[0097] After authenticating the second device, the first device needs to feedback a message based on the authentication result in order to perform subsequent communication. The following further describes how to feedback a message to the second device based on the authentication result.

[0098] In some embodiments, if the identity authentication of the second device is passed, a first feedback message is sent to the second device, wherein the first feedback message is used to prompt the second device that the identity authentication is passed.

[0099] If the identity authentication of the second device fails, a second feedback message is sent to the second device; wherein the second feedback message is used to prompt the second device that the identity authentication has not passed.

[0100] Exemplarily, in the embodiment, after the second device is authenticated, the first device sends a feedback message to the second device based on the authentication result. For example, if the second device passes the authentication, a first feedback message is sent to the second device to prompt that the second device passes the authentication. If the second device fails the authentication, a second feedback message is sent to the second device to prompt that the second device fails the authentication.

[0101] The first feedback message may be a positive response message, and the second feedback message may be a negative response message.

[0102] In a feasible implementation, the second feedback message may also be used to instruct the second device to generate and record fault code information, wherein the fault code information may include information such as the second device failing gateway identity authentication and asking to check the status of the second device.

[0103] This embodiment feeds back a corresponding message to the second device based on the identity authentication result of the second device, so that the second device can promptly understand the status of the communication line between the second device and the first device, thereby increasing communication efficiency and avoiding invalid communication.

[0104] In some embodiments, the device communication method may further include: if the identity authentication of the second device fails, generating and storing fault code information corresponding to the second device.

[0105] In one example, a diagnostic trouble code (DTC) consists of three bytes, which respectively indicate the system, type, subsystem, and object to which the fault belongs.

[0106] In this embodiment, when the identity authentication of the second device fails, corresponding fault code information is generated and stored, so that the first device can clearly know that the second device is a non-authenticated device. In the subsequent signal routing process, the signal forwarding request of the second device is not processed, thereby further ensuring the security of communication. In addition, the fault code information facilitates subsequent fault detection and diagnosis, allowing technicians to quickly locate the problem.

[0107] The above-mentioned embodiment introduces the processing flow of the first device after the gateway function is enabled. The following further introduces how to enable the gateway function.

[0108] In some embodiments, there is a preset communication line between the first device and other subnet segments except the first subnet segment.

[0109] When triggered by the cutoff notification signal, the gateway function is enabled, including: when triggered by the cutoff notification signal, an enable signal is sent to a preset communication line to activate the preset communication line and enable the gateway function.

[0110] In one example, Figure 2 is a schematic diagram of a communication architecture provided by an embodiment of the present application, such as Figure 2 As shown, GW is the original gateway of the communication architecture, and the communication architecture has three subnet segments, namely the first subnet segment, the second subnet segment and the third subnet segment. The first device belongs to the first subnet segment, the multimedia host (Head Unit System, HUT) in the figure is the first device, A and B are devices under the first subnet segment, and C, D, E and F are devices under other subnet segments.

[0111] like Figure 2 As shown, there is a preset direct communication line between the first device and other subnet segments except the first subnet segment. Before the gateway function is enabled, the connection point of the communication line is disabled, and the signal cannot be transmitted from this connection point, which is similar to a circuit breaker; after receiving the disconnection notification signal sent by the GW, the HUT sends an enable signal to the connection point under the triggering of the disconnection notification signal to connect or activate the preset communication line and enable the gateway function.

[0112] This embodiment presets a communication line between the first device and other subnet segments except the first subnet segment, so that the first device can quickly activate the preset communication line using an enable signal under the triggering of the cut-off communication signal, thereby efficiently enabling the gateway function.

[0113] In a feasible implementation, the number of backup gateways in the communication architecture of the embodiment of the present application may be one or more, that is, the first device may be one or more. If there are multiple first devices, the isolation notification signal received by the first device indicates the device information of the subnet segment under the first device. Based on this, the first device can clearly process the signal forwarding requests of which devices; correspondingly, the isolation notification signal received by the second device indicates the device information of the corresponding first device. Based on this, the second device can clearly determine which first device to send a signal forwarding request to when signal forwarding is required, and which first device to send an identity authentication request to before that.

[0114] refer to Figure 3 , Figure 3 A flow chart of another device communication method provided in an embodiment of the present application is shown as follows: Figure 3 As shown, it may include:

[0115] Step 301: The gateway sends a cutoff notification signal to a device, wherein the device is a device in a subnet segment communicating through the gateway.

[0116] The devices include a first device in a first subnet segment and, except the first device, other devices in the first subnet segment and other subnet segments, such as a second device.

[0117] Step 302, the first device receives a cutoff notification signal, and when triggered by the cutoff notification signal, enables a gateway function so that the first device is connected to other subnet segments except the first subnet segment, and after enabling the gateway function, communicates with the second device; wherein the first device is a device under the first subnet segment, the first device has a gateway function, and the second device is a device under other subnet segments that receive the cutoff notification signal.

[0118] In this embodiment, when certain preset conditions are met, for example, when a gateway fails or the amount of signals required for routing exceeds the processing threshold of the gateway, the gateway sends a disconnection notification signal to each device in each subnet segment to trigger the switching of the gateway, wherein after the first device receives the disconnection notification signal, the gateway function is enabled under the triggering of the disconnection notification signal, so that the first device is connected to other subnet segments except the first subnet segment.

[0119] At the same time, in addition to the first device, devices in other subnet segments, such as the second device, determine that the new gateway is the first device after receiving the isolation notification signal. Furthermore, if the second device needs to send a signal to devices in other subnet segments, it needs to communicate with the first device to send the signal based on the routing function of the first device.

[0120] In this embodiment, the gateway actively sends a cutoff notification signal to trigger the switching of the gateway, which can effectively avoid possible communication congestion and avoid long-term communication congestion. In addition, the activation of the gateway function of the first device is triggered by the cutoff notification signal. The triggering condition is simple, which can realize rapid switching of the gateway, quickly relieve communication pressure, and further avoid communication congestion.

[0121] refer to Figure 4 , Figure 4 A flow chart of another device communication method provided in an embodiment of the present application is as follows: Figure 4 As shown, it may include:

[0122] Step 401: The gateway sends a cutoff notification signal to a device, wherein the device is a device in a subnet segment communicating through the gateway.

[0123] The devices include a first device in a first subnet segment and, except the first device, other devices in the first subnet segment and other subnet segments, such as a second device.

[0124] Step 402: The first device receives a disconnection notification signal, and under the triggering of the disconnection notification signal, enables a gateway function so that the first device is connected to other subnet segments except the first subnet segment.

[0125] In one example, a preset communication line is provided between the first device and other subnet segments except the first subnet segment; and when triggered by a cutoff notification signal, a gateway function is enabled, including:

[0126] When triggered by the cutoff notification signal, an enable signal is sent to the preset communication line to activate the preset communication line and enable the gateway function.

[0127] Step 403: The second device receives the isolation notification signal and sends an identity authentication message to the first device.

[0128] In one example, the identity authentication message carries the logical address and signature of the second device, and the signature is issued based on the root certificate.

[0129] Step 404: The first device receives the identity authentication message, and performs identity authentication on the second device according to the identity authentication message.

[0130] In one example, step 404 includes:

[0131] Based on the pre-stored device logical address, the legitimacy of the logical address of the second device is verified, and based on the preset root certificate, the validity of the signature of the second device is verified.

[0132] If the second device passes the legality verification and the validity verification, it is determined that the identity authentication of the second device passes; otherwise, it is determined that the identity authentication of the second device fails.

[0133] Step 405: The first device sends a feedback message to the second device.

[0134] In one example, step 405 includes:

[0135] If the identity authentication of the second device passes, a first feedback message is sent to the second device, wherein the first feedback message is used to prompt the second device that the identity authentication passes.

[0136] If the identity authentication of the second device fails, a second feedback message is sent to the second device; wherein the second feedback message is used to prompt the second device that the identity authentication has not passed.

[0137] Step 406, if the identity authentication of the second device is passed, the first device communicates with the second device; wherein the first device is a device under the first subnet segment, the first device has a gateway function, and the second device is a device under other subnet segments that receives the isolation notification signal.

[0138] In one example, if the identity authentication of the second device fails, the first device generates and stores fault code information corresponding to the second device.

[0139] In one example, if the second device needs to send a target signal to a target device in another subnet segment, the communication between the first device and the second device may include:

[0140] The second device sends a target signal to the first device; the first device receives the target signal; the first device sends the target signal to the target device.

[0141] In this embodiment, the gateway sends a cutoff notification signal to each device under the subnet segment under the triggering of certain preset conditions. Under the triggering of the cutoff notification signal sent by the gateway, the first device in the subnet segment enables the gateway function to achieve connection with other subnet segments except the first subnet segment, and then communicates with the second device in other subnet segments that has received the cutoff notification signal. At the same time, under the triggering of the cutoff notification signal sent by the gateway, the second device in other subnet segments sends an identity authentication message to the first device, and then the first device verifies the authenticity and legitimacy of the second device based on the identity authentication message. If the identity authentication of the second device is passed, the first device can forward the target signal of the first device to the corresponding target device.

[0142] In this embodiment, when a gateway fails or the amount of signals required for routing exceeds the processing capacity of the gateway, the gateway actively sends a cutoff notification signal to trigger the switching of the gateway, which can effectively avoid possible communication congestion and avoid long-term communication congestion. In addition, the cutoff notification signal triggers the activation of the gateway function of the first device, and the triggering condition is simple, which can realize the rapid switching of the gateway, quickly relieve the communication pressure, and further avoid communication congestion. And the identity authentication mechanism ensures the security of communication.

[0143] The detailed implementation process of the above steps 401 to 406 can refer to the relevant descriptions of the above embodiments, which will not be repeated here. The execution order of the above steps 401 to 406 can be set according to actual needs and is not specifically limited here.

[0144] The present application is introduced below in conjunction with the communication architecture in the vehicle.

[0145] In a feasible implementation manner, in one or more embodiments of the present application, the gateway may be any one of a centralized gateway, a domain gateway, an in-vehicle Ethernet gateway, a wireless communication gateway, a telematics gateway, and an in-vehicle mobile Internet gateway in the vehicle.

[0146] Taking the wireless communication gateway as an example, Figure 5 A schematic diagram of the structure of the vehicle wireless communication architecture provided in the embodiment of the present application is shown as follows: Figure 5 As shown, the subnet segments under the wireless communication gateway include: a controller area network (Controller Area Network, referred to as CAN) bus subnet segment, a local interconnect network (Local Interconnect Network, referred to as LIN) bus subnet segment, a FlexRay bus subnet segment and a Gigabit Ethernet subnet segment.

[0147] Among them, the devices under the CAN bus subnet segment include: engine management system: responsible for the engine's fuel injection and ignition control; body electronic control unit: used to manage the vehicle's electrical systems, such as the battery management system and lighting system; brake system control unit: responsible for the control of the anti-lock braking system and electronic stability program.

[0148] The devices under the LIN bus subnet segment include: door control unit: used to control door locks, window lifting, etc.; seat control unit: used to manage seat position, heating and ventilation functions; air conditioning control unit: used to control the temperature and air quality in the car.

[0149] The devices under the FlexRay bus subnet segment include: powertrain control unit: responsible for the coordination of the engine and transmission; drive system control unit: used to manage the torque distribution and power transmission of the drive system; chassis control unit: used to control the suspension system, steering system, etc.

[0150] Devices under the Gigabit Ethernet subnet segment include: Infotainment system: provides functions such as navigation, audio and Internet access; Advanced driver assistance system: including adaptive cruise control, lane keeping assist, etc.

[0151] If the wireless communication gateway does not fail, or the amount of signals that the wireless communication gateway needs to route does not exceed the processing capacity of the wireless communication gateway, these subnet segments transmit and communicate data through the wireless communication gateway.

[0152] If the amount of signals that the wireless communication gateway needs to route does not exceed the processing capacity of the wireless communication gateway, the wireless communication gateway sends a cutoff notification signal to each device in each subordinate subnet segment.

[0153] Among them, any device in each subnet segment under the wireless communication gateway can be the first device in the above embodiment. Taking the engine management system as the first device as an example, the engine management system under the CAN bus subnet segment is pre-installed with a root certificate. Before the whole vehicle is arranged, the remaining devices in the architecture are signed and issued based on the root certificate. And there is a preset communication line between the engine management system and other subnet segments.

[0154] After receiving the isolation notification signal, the engine management system enables the gateway function under the triggering of the isolation notification signal, so that the engine management system is in a communication connection state with other subnet segments except the CAN bus subnet segment.

[0155] Taking the door control unit under the LIN bus subnet segment as the second device, after receiving the partition notification signal, the door control unit sends an identity authentication message to the engine management system, and then the engine management system authenticates the authenticity of the door control unit based on the identity authentication message. If the door control unit passes the authentication, the engine management system can communicate with the door control unit. For example, when the door control unit needs to send a target signal to the infotainment system under the Gigabit Ethernet subnet segment, the target signal can be sent to the engine management system first, and then the engine management system sends the target signal to the infotainment system under the Gigabit Ethernet subnet segment.

[0156] Figure 6 Schematic diagram of the structure of the device communication device provided in the embodiment of the present application. The device is applied to a first device, the first device is a device in a first subnet segment, and the first device has a gateway function; Figure 6 As shown, the device communication apparatus 600 provided in this embodiment may include:

[0157] The control unit 601 is used to enable the gateway function when a disconnection notification signal sent by the gateway is received, so that the first device is connected to other subnet segments except the first subnet segment; wherein the devices under the first subnet segment communicate with the devices under the other subnet segments through the gateway before the gateway sends the disconnection notification signal.

[0158] The processing unit 602 is used to communicate with the second device after the gateway function is enabled; wherein the second device is a device in another subnet segment that receives the isolation notification signal.

[0159] In a possible implementation, before the processing unit 602, the apparatus 600 further includes:

[0160] The receiving unit is used to receive the identity authentication message sent by the second device.

[0161] The authentication unit is used to perform identity authentication on the second device according to the identity authentication message.

[0162] The processing unit 602 is specifically used for:

[0163] If the identity authentication of the second device is successful, communication is performed with the second device.

[0164] In a possible implementation, the identity authentication message carries the logical address and signature of the second device, and the signature is issued based on the root certificate; the authentication unit is specifically used for:

[0165] Based on the pre-stored device logical address, the legitimacy of the logical address of the second device is verified, and based on the preset root certificate, the validity of the signature of the second device is verified.

[0166] If the second device passes the legality verification and the validity verification, it is determined that the identity authentication of the second device has passed; otherwise, it is determined that the identity authentication of the second device has failed.

[0167] In a possible implementation, the apparatus 600 further includes a feedback unit, which is specifically configured to:

[0168] If the identity authentication of the second device passes, a first feedback message is sent to the second device, wherein the first feedback message is used to prompt the second device that the identity authentication passes.

[0169] If the identity authentication of the second device fails, a second feedback message is sent to the second device; wherein the second feedback message is used to prompt the second device that the identity authentication has not passed.

[0170] In a possible implementation, the apparatus 600 further includes:

[0171] The generating unit is used to generate and store fault code information corresponding to the second device if the identity authentication of the second device fails.

[0172] In a possible implementation, a preset communication line is provided between the first device and other subnet segments except the first subnet segment; and the control unit 601 is specifically configured to:

[0173] When triggered by the cutoff notification signal, an enable signal is sent to the preset communication line to activate the preset communication line and enable the gateway function.

[0174] Figure 7 Schematic diagram of the structure of the device communication system provided in the embodiment of the present application. Figure 7 As shown, the device communication system 700 provided in this embodiment may include:

[0175] The gateway module 701 is used to send a cutoff notification signal to a device, where the device is a device in a subnet segment communicating through the gateway.

[0176] The first device 702 is used to receive a cutoff notification signal, and when triggered by the cutoff notification signal, enable a gateway function so that the first device is connected to other subnet segments except the first subnet segment, and after enabling the gateway function, communicates with the second device; wherein the first device is a device under the first subnet segment, the first device has a gateway function, and the second device is a device under other subnet segments that receive the cutoff notification signal.

[0177] Figure 8 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may be a multimedia host or any ECU of a vehicle, or may be the first device or the second device in the above embodiment. Figure 8 As shown, the electronic device 800 of this embodiment includes: a processor 810 and a memory 820, wherein the memory 820 stores a computer program 821 that can be run on the processor 810. When the processor 810 executes the computer program 821, the steps in any of the above method embodiments are implemented, for example Figure 1 Alternatively, when the processor 810 executes the computer program 821, the functions of each module / unit in the above-mentioned device embodiments are implemented, for example Figure 6 The functions of units 601 to 602 are shown.

[0178] Exemplarily, the computer program 821 may be divided into one or more modules / units, one or more modules / units are stored in the memory 820, and are executed by the processor 810 to complete the present application. One or more modules / units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 821 in the electronic device 800.

[0179] Those skilled in the art will understand that Figure 8 These are merely examples of electronic devices and do not constitute a limitation of the electronic device. The electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components, such as input and output devices, network access devices, buses, etc.

[0180] The processor 810 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0181] The memory 820 may be an internal storage unit of the electronic device, such as a hard disk or memory of the electronic device, or an external storage device of the electronic device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. The above-mentioned memory 820 may also include both an internal storage unit of the electronic device and an external storage device. The above-mentioned memory 820 is used to store computer programs and other programs and data required by the electronic device. The memory 820 may also be used to temporarily store data that has been output or is to be output.

[0182] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0183] An embodiment of the present invention further provides a vehicle, comprising the above-mentioned electronic device and / or the above-mentioned device communication system.

[0184] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned device communication method is implemented.

[0185] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0186] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0187] In the embodiments provided by the present invention, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0188] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0189] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0190] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. Computer-readable media may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.

[0191] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.

Claims

1. A device communication method, characterized in that: The method is applied to a first device, the first device is a device in a first subnet segment, and the first device has a gateway function; The method comprises: If a disconnection notification signal sent by the gateway is received, the gateway function is enabled under the triggering of the disconnection notification signal, so that the first device is connected to other subnet segments except the first subnet segment; wherein the devices under the first subnet segment communicate with the devices under the other subnet segments through the gateway before the gateway sends the disconnection notification signal; After enabling the gateway function, communicating with the second device; wherein the second device is a device under the other subnet segment that receives the isolation notification signal.

2. The device communication method according to claim 1, characterized in that: Before communicating with the second device, the method further includes: Receiving an identity authentication message sent by the second device; Performing identity authentication on the second device according to the identity authentication message; The communicating with the second device includes: If the identity authentication of the second device is successful, communication is performed with the second device.

3. The device communication method according to claim 2, characterized in that: The identity authentication message carries the logical address and signature of the second device, where the signature is issued based on the root certificate; The performing identity authentication on the second device according to the identity authentication message includes: Based on the pre-stored device logical address, verify the legitimacy of the logical address of the second device, and based on the preset root certificate, verify the validity of the signature of the second device; If the second device passes the legality verification and the validity verification, it is determined that the identity authentication of the second device is passed; otherwise, it is determined that the identity authentication of the second device is failed.

4. The device communication method according to claim 2 or 3, characterized in that: The method further comprises: If the identity authentication of the second device passes, sending a first feedback message to the second device, wherein the first feedback message is used to prompt the second device to pass the identity authentication; If the identity authentication of the second device fails, a second feedback message is sent to the second device; wherein the second feedback message is used to prompt that the second device has failed the identity authentication.

5. The device communication method according to claim 2 or 3, characterized in that: The method further comprises: If the identity authentication of the second device fails, fault code information corresponding to the second device is generated and stored.

6. The device communication method according to any one of claims 1 to 3, characterized in that: There is a preset communication line between the first device and other subnet segments except the first subnet segment; The enabling of the gateway function under the triggering of the isolation notification signal includes: Under the triggering of the isolation notification signal, an enable signal is sent to the preset communication line to activate the preset communication line and enable the gateway function.

7. A device communication method, characterized in that: The method comprises: The gateway sends a cutoff notification signal to a device, wherein the device is a device in a subnet segment communicating through the gateway; The first device receives the isolation notification signal, and under the triggering of the isolation notification signal, enables the gateway function to connect the first device to other subnet segments except the first subnet segment, and after enabling the gateway function, communicates with the second device; wherein, the first device is a device under the first subnet segment, the first device has a gateway function, and the second device is a device under the other subnet segments that receive the isolation notification signal.

8. A device communication apparatus, characterized in that: The device is applied to a first device, the first device is a device in a first subnet segment, and the first device has a gateway function; The device comprises: A control unit, configured to enable a gateway function under the triggering of a disconnection notification signal if a disconnection notification signal sent by a gateway is received, so that the first device is connected to other subnet segments except the first subnet segment; wherein the devices under the first subnet segment communicate with the devices under the other subnet segments through the gateway before the gateway sends the disconnection notification signal; A processing unit, used to communicate with a second device after enabling the gateway function; wherein the second device is a device under the other subnet segment that receives the isolation notification signal.

9. A device communication system, characterized in that: The system comprises: A gateway module, wherein the gateway module is used to send a cutoff notification signal to a device, wherein the device is a device in a subnet segment communicating through the gateway; A first device is used to receive the isolation notification signal, and when triggered by the isolation notification signal, enables a gateway function so that the first device is connected to other subnet segments except the first subnet segment, and after enabling the gateway function, communicates with a second device; wherein the first device is a device under the first subnet segment, the first device has a gateway function, and the second device is a device under the other subnet segment that receives the isolation notification signal.

10. A vehicle, characterized in that: The vehicle includes the device communication system of claim 9.