PLC communication method and system for whole vehicle network

Through the PLC communication system that uses power lines to transmit data packets in the automotive network, the problem that traditional automotive network communication methods cannot meet the needs of high transmission speed and complex functions is solved, and efficient inter-controller communication and system expansion are achieved, which is convenient. and stability.

CN118928254APending Publication Date: 2024-11-12ZHEJIANG JIATAI HEQING TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410963700.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

Traditional automotive network communication methods cannot meet the needs of high transmission speeds and complex functions, especially in scenarios with large real-time and data volumes, and the wiring complexity and cost are high, making it difficult to support networking and expansion of multiple controllers.

Method used

Using PLC communication system, data packets are transmitted through the power cord of the internal functional components of the automobile, and the demodulator is used to connect the power supply and control MCU to realize direct communication between controllers, reduce wiring complexity and cost, and support multi-controller networking. , improve the convenience of system expansion.

Benefits of technology

It realizes efficient inter-controller communication, reduces gateway pressure, supports multi-controller networking, reduces the weight of internal communication lines and wiring costs of the system, and improves the system's expansion convenience and communication stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118928254A_ABST
    Figure CN118928254A_ABST
Patent Text Reader

Abstract

The invention provides a PLC communication system for a whole vehicle network and a communication control method thereof, the PLC communication system comprises a plurality of component controllers in one-to-one correspondence with all functional components in a vehicle, a central gateway and a power supply distribution box, and all the component controllers, the central gateway and the power supply distribution box comprise corresponding power supplies, control MCUs and demodulators; all the power supplies are mutually connected to form a framework of the PLC communication system, the demodulator is used for being connected with the power supplies and the control MCU, data messages containing signals are received from power lines corresponding to the power supplies through the demodulator, the data messages are transmitted to the control MCU, and therefore working states of corresponding functional components are adjusted. The PLC communication system does not need to be provided with a special communication transmission wire to realize signal transmission between the controllers, so that the weight and wiring cost of a communication line in the system are reduced, the wiring complexity in the system is reduced, direct communication between the controllers is realized, direct networking of a plurality of controllers is supported, and the expansion convenience of the system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of battery packs, and in particular to a PLC communication method and system for a whole vehicle network. Background Art

[0002] With the development of passenger cars, the number of controllers inside passenger cars is increasing, and the communication links between different controllers are becoming more and more complex. When adding a controller with new functions, the traditional car network communication method requires complex modifications to the power supply and bus. In addition, the traditional car network communication bus is limited by the communication mode and cannot achieve a communication speed of more than 10Mbps. At the same time, car manufacturers tend to use fewer wiring harnesses to achieve networking between electronic components of the whole vehicle. With the rise of in-vehicle Ethernet, Ethernet has been used in cars to achieve data transmission functions that meet low and medium requirements for real-time performance. However, the control of functional components such as lights, doors and windows still uses the most primitive CAN / LIN bus to form a communication network. With the increasingly rich customization requirements of different functional components from different car manufacturers, the traditional car network can only guarantee a transmission speed of 1Mbps, which is difficult to meet the communication scenarios where the real-time requirements for internal transmission in the car network are not high but the amount of data transmitted is large. Summary of the invention

[0003] The object of the present invention is to provide a PLC communication system and a communication control method thereof for a whole vehicle network. The system includes a plurality of component controllers, a central gateway, and a power distribution box corresponding one by one to all functional components inside a car. All component controllers, central gateways, and power distribution boxes include corresponding power supplies, control MCUs, and demodulators. All power supplies are interconnected to form the framework of a PLC communication system. The demodulator is used to connect the power supply and the control MCU. The demodulator is used to receive a data message containing a signal from a power line corresponding to the power supply, and transmit the data message to the control MCU, so as to adjust the working state of the corresponding functional components. The PLC communication system does not need to set up a special communication transmission wire to realize signal transmission between controllers. It uses the power line directly as the transmission line of the data message, thereby reducing the weight and wiring cost of the communication line inside the system, reducing the wiring complexity inside the system, and realizing direct communication between controllers, alleviating the pressure on the gateway, supporting direct networking of multiple controllers, and improving the expansion convenience of the system.

[0004] The present invention is achieved through the following technical solutions:

[0005] PLC communication system for vehicle network, including:

[0006] A plurality of component controllers corresponding to all functional components inside the vehicle, each component controller comprising a component power supply, a component control MCU and a first demodulator; the first demodulator is connected to a power line of the component power supply and the component control MCU;

[0007] The central gateway includes a gateway power supply, a gateway control MCU and a second demodulator; the second demodulator is connected to a power line of the gateway power supply and the gateway control MCU;

[0008] A power distribution box, comprising a power supply, a power control MCU and a third demodulator; the third demodulator is connected to a power line of the power supply and the power control MCU;

[0009] The component power supply, the gateway power supply and the power supply are connected to each other;

[0010] The first demodulator, the second demodulator and the third demodulator respectively receive data messages containing signals from corresponding power lines, and transmit the data messages to the correspondingly connected control MCUs, and the correspondingly connected control MCUs parse the data messages to obtain corresponding signals.

[0011] Optionally, the first demodulator, the second demodulator and the third demodulator are respectively connected to a 12V power line terminal and a power ground terminal of a corresponding power line.

[0012] Optionally, the 12V power line terminal includes two backup power supplies, and the process of the two backup power supplies supplying power includes:

[0013] Step S1, using the following formula (1), according to the current change of the total power supply after the first demodulator, the second demodulator and the third demodulator are connected to the 12V power line end and the power ground end of the corresponding power line respectively, control whether to start the backup power supply for power supply,

[0014] N={G{[I3-(I2+I1)]≥i 0}+G{(I2-I1)≥i 0}}×G{I3≥3×i 0} (1)

[0015] In the above formula (1), N represents the number of backup power supplies started for power supply; I1 represents the current value of the total power supply when the first demodulator is connected to the power supply; I2 represents the current value of the total power supply when the second demodulator is connected to the power supply; I3 represents the current value of the total power supply when the third demodulator is connected to the power supply; i 0 Represents a single current increment threshold; G{} means that if the formula in the brackets is true, the overall output value is 1, and if the formula in the brackets is not true, the overall output value is 0;

[0016] Step S2, using the following formula (2), according to the number of backup power supplies started for power supply, and the current change of the total power supply after the first demodulator, the second demodulator and the third demodulator are respectively connected to the 12V power line end and the power ground end of the corresponding power line, determine the model of the demodulator connected to the backup power supply,

[0017] A=X_max[I1,(I2-I1),I3-(I2+I1)],N=1 (2)

[0018] In the above formula (2), A indicates that the demodulator connected to the backup power supply is the Ath demodulator; X_max[I1,(I2-I1),I3-(I2+I1)] indicates that the maximum value of the three values ​​separated by commas in the brackets corresponds to the sorted values ​​in the brackets from left to right;

[0019] When N=2, the second demodulator and the third demodulator are connected to two backup power supplies respectively, so that one backup power supply corresponds to one demodulator;

[0020] Step S3, when the backup power supply is not needed, the following formula (3) is used to control whether to replace the power supply for power supply according to the time when the third demodulator is connected to the power supply.

[0021]

[0022] In the above formula (3), E represents the control value of replacing the power supply; T 0 Indicates the preset shortest power supply replacement time; t indicates the current time; t 0 Indicates the time when the third demodulator is powered on; int[] indicates rounding the value in brackets;

[0023] If E=1, the control changes the power supply;

[0024] If E=0, the power supply replacement is not controlled.

[0025] Optionally, the first demodulator and the component control MCU, the second demodulator and the gateway control MCU, and the third demodulator and the power control MCU are all connected via an SPI bus interface.

[0026] Optionally, the first demodulator, the second demodulator and the third demodulator all support hardware functions of a MAC layer and a PHY layer corresponding to an Ethernet interface;

[0027] The first demodulator, the second demodulator and the third demodulator send MAC Ethernet frames through the SPI bus interface.

[0028] Optionally, the first demodulator, the second demodulator and the third demodulator all support HomePlugAVV1.1;

[0029] The first demodulator, the second demodulator and the third demodulator all support UDP\TCP\IP protocol stack.

[0030] A communication control method for a PLC communication system for a vehicle network, comprising:

[0031] Acquire data status information of the central gateway, identify the data status information, and determine attribute information of a data message currently sent by the central gateway to the component controller; based on the data message attribute information, determine whether the data message currently sent by the central gateway to the component controller contains non-critical data or critical data;

[0032] Based on the judgment result of whether the data message contains non-critical data or critical data, the data message is subjected to message conversion processing on the UDP\TCP\IP protocol stack by the first demodulator of the component controller to generate a data message matching the SPI bus interface, and the matching data message is transmitted to the component control MCU of the component controller;

[0033] The data message received by the component control MCU is parsed and processed to obtain a signal contained in the data message; and based on the signal, the working state of the functional component corresponding to the component controller is adjusted.

[0034] Optionally, obtaining data status information of the central gateway, identifying the data status information, and determining attribute information of a data message currently sent by the central gateway to the component controller; and judging whether the data message currently sent by the central gateway to the component controller contains non-critical data or critical data based on the data message attribute information, comprises:

[0035] Analyze the data transmission log of the central gateway to obtain data reception progress information of the central gateway; determine that the central gateway has completely received the data from the vehicle-mounted platform based on the data reception progress information; parse and process the data that the central gateway has completely received and is ready to send to the component controller to determine the data message code attribute information corresponding to the data;

[0036] Based on the data message code attribute information, determine the code symbol content contained in the data; then compare the code symbol content with the preset message symbol directory table to determine whether the data message currently sent by the central gateway to the component controller contains non-critical data or critical data.

[0037] Optionally, based on the judgment result of whether the data message contains non-critical data or critical data, the data message is subjected to message conversion processing on a UDP\TCP\IP protocol stack by a first demodulator of the component controller to generate a data message matching an SPI bus interface, and the matching data message is transmitted to a component control MCU of the component controller, including:

[0038] If the data message currently sent by the central gateway to the component controller contains non-critical data, the first demodulator of the component controller performs signal packaging processing on the data message based on the UDP protocol to generate a UDP message; then based on the IP protocol, the UDP message is converted into an IP message; and a message identifier matching the MAC protocol is added to the IP message, thereby generating a data message matching the SPI bus interface, and the matching data message is transmitted to the component control MCU of the component controller;

[0039] If the data message currently sent by the central gateway to the component controller contains critical data, the data message is converted based on the TCP protocol by the first demodulator of the component controller to generate a TCP message, and a message identifier matching the MAC protocol is added to the TCP message, thereby generating a data message matching the SPI bus interface, and the matching data message is passed to the component control MCU of the component controller.

[0040] Optionally, parsing and processing the data message received by the component control MCU to obtain a signal contained in the data message; and adjusting the working state of the functional component corresponding to the component controller based on the signal, including:

[0041] The data message received by the component control MCU is parsed and processed to obtain the synchronization code and delimiter contained in the data message, and based on the synchronization code and the delimiter, a signal contained in the data message is obtained; based on the signal, an action instruction is sent to the functional component corresponding to the component controller, so as to adjust the switch working state or working type state of the functional component.

[0042] Compared with the prior art, the present invention has the following beneficial effects:

[0043] The PLC communication system for the whole vehicle network and its communication control method provided by the present application include a number of component controllers, a central gateway, and a power distribution box corresponding one by one to all the functional components inside the car. All component controllers, central gateways and power distribution boxes include corresponding power supplies, control MCUs and demodulators. All power supplies are interconnected to form the framework of the PLC communication system. The demodulator is used to connect the power supply and the control MCU. The demodulator is used to receive a data message containing a signal from a power line corresponding to the power supply, and transmit the data message to the control MCU, so as to adjust the working status of the corresponding functional components. The PLC communication system does not need to set up special communication transmission wires to realize signal transmission between controllers. It uses the power line directly as the transmission line for data messages, thereby reducing the weight and wiring cost of the communication lines inside the system, reducing the wiring complexity inside the system, and realizing direct communication between controllers, alleviating the pressure on the gateway, supporting direct networking of multiple controllers, and improving the convenience of system expansion. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:

[0045] Figure 1 This is a structural block diagram of the PLC communication system for the entire vehicle network provided by the present invention.

[0046] Figure 2 This is a schematic diagram of the structure of a component controller in a PLC communication system for a vehicle network provided by the present invention.

[0047] Figure 3 A flow chart of a communication control method for a PLC communication system of a vehicle network provided by the present invention. DETAILED DESCRIPTION

[0048] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below in conjunction with the accompanying drawings. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only some structures related to the present application are shown in the accompanying drawings, rather than all structures. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0049] The terms "including" and "having" and any variations thereof in this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.

[0050] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0051] See also Figure 1 and Figure 2 As shown, an embodiment of the present application provides a PLC communication system for a vehicle network and its subordinate component controller. The PLC communication system for a vehicle network includes:

[0052] A plurality of component controllers corresponding to all functional components inside the vehicle, each component controller comprising a component power supply, a component control MCU and a first demodulator; the first demodulator connects the power line of the component power supply and the component control MCU;

[0053] The central gateway includes a gateway power supply, a gateway control MCU and a second demodulator; the second demodulator is connected to a power line of the gateway power supply and the gateway control MCU;

[0054] A power distribution box, comprising a power supply, a power control MCU and a third demodulator; the third demodulator is connected to a power line of the power supply and the power control MCU;

[0055] The component power supply, the gateway power supply and the power supply are connected to each other;

[0056] The first demodulator, the second demodulator and the third demodulator respectively receive data messages containing signals from corresponding power lines, and transmit the data messages to the correspondingly connected control MCU, and the correspondingly connected control MCU parses the data messages to obtain corresponding signals.

[0057] The beneficial effects of the above embodiments are as follows: the PLC communication system for the whole vehicle network includes a number of component controllers, a central gateway, and a power distribution box corresponding to all the functional components inside the car. All component controllers, central gateways, and power distribution boxes include corresponding power supplies, control MCUs, and demodulators. All power supplies are interconnected to form the framework of the PLC communication system. The demodulator is used to connect the power supply and the control MCU. The demodulator is used to receive a data message containing a signal from a power line corresponding to the power supply, and transmit the data message to the control MCU, so as to adjust the working status of the corresponding functional components. The PLC communication system does not need to set up special communication transmission wires to realize signal transmission between controllers. It uses the power line directly as the transmission line for data messages, thereby reducing the weight and wiring cost of the communication lines inside the system, reducing the wiring complexity inside the system, and realizing direct communication between controllers, alleviating the pressure on the gateway, supporting direct networking of multiple controllers, and improving the convenience of system expansion.

[0058] In another embodiment, the first demodulator, the second demodulator and the third demodulator are respectively connected to a 12V power line terminal and a power ground terminal of a corresponding power line.

[0059] The beneficial effect of the above embodiment is that since the central gateway, the power distribution box and the component controllers of all functional components (such as lights, doors, wipers, radars and other different functional components) are connected to each other through the power lines corresponding to their own power supplies to form a PLC communication system framework, the signal transmission between the central gateway, the power distribution box and the component controllers is realized through the power lines; when new functional components are needed, it is only necessary to connect the new functional components to the corresponding power lines without changing the original communication lines, thereby improving the convenience of functional component expansion of the PLC communication system of the whole vehicle network. The first demodulator, the second demodulator and the third demodulator are signal demodulation devices, which can extract the corresponding data message from the power line, and demodulate the extracted data message to obtain the signal contained in the data message, and then transmit the demodulated signal to the control MCU, so that the corresponding functional components can be controlled to achieve the adjustment of the working status of different functional components such as lights, doors, wipers, radars, etc. The first demodulator, the second demodulator and the third demodulator are respectively connected to the 12V power line end and the power ground end of the corresponding power line, so that the demodulator can accurately extract the corresponding data message from the power line to provide reliable data support for the subsequent control of the functional components.

[0060] In another embodiment, the 12V power line terminal includes two backup power supplies, and the process of the two backup power supplies supplying power includes:

[0061] Step S1, using the following formula (1), according to the current change of the total power supply after the first demodulator, the second demodulator and the third demodulator are connected to the 12V power line end and the power ground end of the corresponding power line in sequence, control whether to start the backup power supply for power supply,

[0062] N={G{[I3-(I2+I1)]≥i 0}+G{(I2-I1)≥i 0}}×G{I3≥3×i 0} (1)

[0063] In the above formula (1), N represents the number of backup power supplies started for power supply; I1 represents the current value of the total power supply when the first demodulator is connected to the power supply; I2 represents the current value of the total power supply when the second demodulator is connected to the power supply; I3 represents the current value of the total power supply when the third demodulator is connected to the power supply; i 0 Represents a single current increment threshold; G{} means that if the formula in the brackets is true, the overall output value is 1, and if the formula in the brackets is not true, the overall output value is 0;

[0064] Step S2, using the following formula (2), according to the number of backup power supplies started for power supply, and the current change of the total power supply after the first demodulator, the second demodulator and the third demodulator are respectively connected to the 12V power line end and the power ground end of the corresponding power line, determine the model of the demodulator connected to the backup power supply,

[0065] A=X_max[I1,(I2-I1),I3-(I2+I1)],N=1 (2)

[0066] In the above formula (2), A indicates that the demodulator connected to the backup power supply is the Ath demodulator; X_max[I1,(I2-I1),I3-(I2+I1)] indicates that the maximum value of the three values ​​separated by commas in the brackets corresponds to the sorted values ​​in the brackets from left to right;

[0067] When N=2, the second demodulator and the third demodulator are connected to two backup power supplies respectively, so that one backup power supply corresponds to one demodulator;

[0068] Step S3, when the backup power supply is not needed, the following formula (3) is used to control whether to replace the power supply according to the time when the third demodulator is connected to the power supply.

[0069]

[0070] In the above formula (3), E represents the control value of replacing the power supply; T 0 Indicates the preset shortest power supply replacement time; t indicates the current time; t0 Indicates the time when the third demodulator is powered on; int[] indicates rounding the value in brackets;

[0071] If E=1, the control changes the power supply;

[0072] If E=0, the power supply replacement is not controlled.

[0073] The beneficial effect of the above embodiment is that, by using the above formula (1), according to the current change of the total power supply after the first demodulator, the second demodulator and the third demodulator are connected to the corresponding 12V power line end of the power line and the power ground end respectively, whether to start the backup power supply for power supply is controlled, thereby intelligently switching the backup power supply to prevent excessive power consumption from affecting the safety of the system; then by using the above formula (2), according to the number of backup power supplies started for power supply and the current change of the total power supply after the first demodulator, the second demodulator and the third demodulator are connected to the corresponding 12V power line end of the power line and the power ground end respectively, the model of the demodulator connected to the backup power supply is judged, thereby intelligently distributing the power supply to ensure the overall stability of the system; then by using the above formula (3), according to the time when the third demodulator is connected to the power supply, whether to change the power supply for power supply is controlled, thereby protecting the power supply from being occupied for a long time.

[0074] In another embodiment, the first demodulator and the component control MCU, the second demodulator and the gateway control MCU, and the third demodulator and the power control MCU are all connected via an SPI bus interface.

[0075] The beneficial effect of the above embodiment is that the demodulator is connected to the corresponding control MCU using the SPI bus interface, which can improve the data transmission reliability between the demodulator and the control MCU, and can also use the SPI bus interface to unify the interface of the entire PLC communication system to improve the data transmission stability of the entire PLC communication system.

[0076] In another embodiment, the first demodulator, the second demodulator and the third demodulator all support hardware functions of the MAC layer and the PHY layer corresponding to the Ethernet interface; the first demodulator, the second demodulator and the third demodulator send MAC Ethernet frames through the SPI bus interface.

[0077] The beneficial effects of the above embodiments are that the first demodulator, the second demodulator and the third demodulator all support the hardware functions of the MAC layer and the PHY layer corresponding to the Ethernet interface, and can send MAC Ethernet frames through the SPI bus interface, so that the PLC communication system can be compatible with the Ethernet communication mode of the whole vehicle network, thereby improving the communication integration and stability of the whole vehicle network.

[0078] In another embodiment, the first demodulator, the second demodulator and the third demodulator all support HomePlugAV V1.1; the first demodulator, the second demodulator and the third demodulator all support UDP\TCP\IP protocol stack.

[0079] The beneficial effects of the above embodiments are that in practical applications, the first demodulator, the second demodulator and the third demodulator may be but are not limited to the QCA7006AQ demodulator chip, which supports HomePlug AV V1.1 and UDP\TCP\IP protocol stack, can realize high-speed signal processing, the hardware functions of the MAC and PHY layers of the Ethernet interface, the communication protocols at the IP level and above, and the drivers of some hardware configurations, to ensure the signal processing efficiency and accuracy of the demodulator.

[0080] See also Figure 3 As shown, an embodiment of the present application provides a communication control method for a PLC communication system for a vehicle network. The communication control method for a PLC communication system for a vehicle network includes:

[0081] Acquire data status information of the central gateway, identify the data status information, and determine attribute information of a data message currently sent by the central gateway to the component controller; based on the attribute information of the data message, determine whether the data message currently sent by the central gateway to the component controller contains non-critical data or critical data;

[0082] Based on the judgment result of whether the data message contains non-critical data or critical data, the first demodulator of the component controller performs message conversion processing on the data message regarding the UDP\TCP\IP protocol stack, generates a data message matching the SPI bus interface, and transmits the matching data message to the component control MCU of the component controller;

[0083] The data message received by the component control MCU is parsed and processed to obtain a signal contained in the data message; based on the signal, the working state of the functional component corresponding to the component controller is adjusted.

[0084] The beneficial effects of the above embodiments are as follows: the communication control method of the PLC communication system for the whole vehicle network includes a number of component controllers, a central gateway, and a power distribution box corresponding to all functional components inside the car. All component controllers, central gateways, and power distribution boxes include corresponding power supplies, control MCUs, and demodulators. All power supplies are interconnected to form the framework of the PLC communication system. The demodulator is used to connect the power supply and the control MCU. The demodulator is used to receive a data message containing a signal from a power line corresponding to the power supply, and transmit the data message to the control MCU, so as to adjust the working state of the corresponding functional components. The PLC communication system does not need to set up a special communication transmission wire to realize signal transmission between controllers. It uses the power line directly as the transmission line for the data message, thereby reducing the weight of the communication line and the wiring cost inside the system, reducing the wiring complexity inside the system, and realizing direct communication between controllers, alleviating the pressure on the gateway, supporting direct networking of multiple controllers, and improving the convenience of system expansion.

[0085] In another embodiment, obtaining data status information of the central gateway, identifying the data status information, and determining attribute information of a data message currently sent by the central gateway to the component controller; and judging whether the data message currently sent by the central gateway to the component controller includes non-critical data or critical data based on the data message attribute information, include:

[0086] Analyze the data transmission log of the central gateway to obtain data reception progress information of the central gateway; determine that the central gateway has completely received the data from the vehicle-mounted platform based on the data reception progress information; parse and process the data that the central gateway has completely received and is about to send to the component controller to determine the data message code attribute information corresponding to the data;

[0087] Based on the data message code attribute information, determine the code symbol content contained in the data; then compare the code symbol content with the preset message symbol directory table to determine whether the data message currently sent by the central gateway to the component controller contains non-critical data or critical data.

[0088] The beneficial effect of the above embodiment is that the central gateway is usually connected to the vehicle platform of the car. When the user in the car initiates a control instruction for the corresponding functional component through the vehicle platform, the vehicle platform will transmit the corresponding data to the central gateway, analyze the data transmission log of the central gateway, and obtain the data reception progress information of the central gateway, so as to determine that the central gateway completely receives the data from the vehicle platform, so as to ensure that the central gateway sends the completely received data to the component controller of the corresponding functional component through the power line. Then, the data completely received by the central gateway and ready to be sent to the component controller is parsed and processed to determine the data message code attribute information corresponding to the data, so that the data can be accurately characterized, so as to determine the code symbol content contained in the data, and then compare the code symbol content with the preset message symbol directory table to determine whether the data message currently sent by the central gateway to the component controller contains non-critical data or critical data; wherein the non-critical data may be but not limited to data that does not play a decisive role in the change of the working state of the functional component; the critical data may be but not limited to data that plays a decisive role in the change of the working state of the functional component.

[0089] In another embodiment, based on the judgment result of whether the data message contains non-critical data or critical data, the data message is subjected to message conversion processing on the UDP\TCP\IP protocol stack by the first demodulator of the component controller to generate a data message matching the SPI bus interface, and the matching data message is transmitted to the component control MCU of the component controller, including:

[0090] If the data message currently sent by the central gateway to the component controller contains non-critical data, the first demodulator of the component controller performs signal packaging processing on the data message based on the UDP protocol to generate a UDP message; then based on the IP protocol, the UDP message is converted into an IP message; and a message identifier matching the MAC protocol is added to the IP message, thereby generating a data message matching the SPI bus interface, and the matching data message is transmitted to the component control MCU of the component controller;

[0091] If the data message currently sent by the central gateway to the component controller contains critical data, the data message is converted based on the TCP protocol by the first demodulator of the component controller to generate a TCP message, and a message identifier matching the MAC protocol is added to the TCP message, thereby generating a data message matching the SPI bus interface, and the matching data message is passed to the component control MCU of the component controller.

[0092] The beneficial effect of the above embodiment is that if the data message currently sent by the central gateway to the component controller contains non-critical data, the first demodulator of the component controller performs signal packaging processing on the data message based on the UDP protocol to generate a UDP message; then based on the IP protocol, the UDP message is converted into an IP message; and a message identifier matching the MAC protocol is added to the IP message, thereby generating a data message matching the SPI bus interface, so that the data message containing non-critical data can be reliably converted to ensure that the component control MCU efficiently obtains the corresponding signal. If the data message currently sent by the central gateway to the component controller contains critical data, the first demodulator of the component controller converts the data message based on the TCP protocol to generate a TCP message, and a message identifier matching the MAC protocol is added to the TCP message, thereby generating a data message matching the SPI bus interface, so that the component control MCU can accurately control the working status of the corresponding functional component.

[0093] In another embodiment, the data message received by the component control MCU is parsed and processed to obtain a signal contained in the data message; and based on the signal, the working state of the functional component corresponding to the component controller is adjusted, including:

[0094] The data message received by the component control MCU is parsed and processed to obtain the synchronization code and delimiter contained in the data message, and based on the synchronization code and the delimiter, a signal contained in the data message is obtained; based on the signal, an action instruction is sent to the functional component corresponding to the component controller, so as to adjust the switch working state or working type state of the functional component.

[0095] The beneficial effect of the above embodiment is that the data message received by the component control MCU is parsed and processed to obtain the synchronization code and delimiter contained in the data message, and the synchronization code and the delimiter are used as the basis for identifying the valid instruction content of the data message to obtain the signal contained in the data message, so as to send an action instruction to the functional component corresponding to the component controller, thereby adjusting the switch working state or working type state of the functional component to ensure that the corresponding functional component accurately performs the corresponding working action.

[0096] In general, the PLC communication system and communication control method for the whole vehicle network include a number of component controllers, a central gateway, and a power distribution box corresponding to all functional components inside the car. All component controllers, central gateways, and power distribution boxes include corresponding power supplies, control MCUs, and demodulators. All power supplies are interconnected to form the framework of the PLC communication system. The demodulator is used to connect the power supply and the control MCU. The demodulator is used to receive data messages containing signals from the power lines corresponding to the power supplies, and transmit the data messages to the control MCU, so as to adjust the working status of the corresponding functional components. The PLC communication system does not need to set up special communication transmission wires to realize signal transmission between controllers. It uses the power lines directly as the transmission lines for data messages, thereby reducing the weight and wiring costs of the communication lines inside the system, reducing the wiring complexity inside the system, and realizing direct communication between controllers, alleviating the pressure on the gateway, supporting direct networking of multiple controllers, and improving the convenience of system expansion.

[0097] The above is only a specific implementation of the present invention, and any other improvements made based on the concept of the present invention are considered to be within the protection scope of the present invention.

Claims

1. A PLC communication system for a vehicle network, characterized in that: include: A plurality of component controllers corresponding to all functional components inside the vehicle, each component controller including a component power supply, a component control MCU and a first demodulator; The first demodulator is connected to a power line of the component power supply and the component control MCU; Central gateway, including gateway power supply, gateway control MCU and second demodulator; The second demodulator is connected to the power line of the gateway power supply and the gateway control MCU; A power distribution box, comprising a power supply, a power control MCU and a third demodulator; the third demodulator is connected to a power line of the power supply and the power control MCU; The component power supply, the gateway power supply and the power supply are connected to each other; The first demodulator, the second demodulator and the third demodulator respectively receive data messages containing signals from corresponding power lines, and transmit the data messages to the correspondingly connected control MCUs, and the correspondingly connected control MCUs parse the data messages to obtain corresponding signals.

2. The PLC communication system for vehicle network according to claim 1, characterized in that: The first demodulator, the second demodulator and the third demodulator are respectively connected to a 12V power line terminal and a power ground terminal of a corresponding power line.

3. The PLC communication system for vehicle network according to claim 2, characterized in that: The 12V power line end includes two backup power supplies, and the process of the two backup power supplies supplying power includes: Step S1, using the following formula (1), according to the current change of the total power supply after the first demodulator, the second demodulator and the third demodulator are connected to the 12V power line end of the corresponding power line and the power ground end, control whether to start the backup power supply for power supply, N = {G{[I3-(I2+I1)]≥i0}+G{(I2-I1)≥i0}}×G{I3≥3×i0} (1) In the above formula (1), M represents the number of backup power supplies started for power supply; I1 represents the current value of the total power supply when the first demodulator is connected to the power supply; I2 represents the current value of the total power supply when the second demodulator is connected to the power supply; I3 represents the current value of the total power supply when the third demodulator is connected to the power supply; i0 represents a single current increment threshold; G{} represents that if the formula in the brackets is true, the overall output value is 1, and if the formula in the brackets is not true, the overall output value is 0; Step S2, using the following formula (2), according to the number of backup power supplies started for power supply, and the current change of the total power supply after the first demodulator, the second demodulator and the third demodulator are respectively connected to the 12V power line end and the power ground end of the corresponding power line, determine the model of the demodulator connected to the backup power supply, A=X_max[I1,(I2-I1),I3-(I2+I1)],N=1 (2) In the above formula (2), A indicates that the demodulator connected to the backup power supply is the Ath demodulator; X_max[I1,(I2-I1),I3-(I2+I1)] indicates that the maximum value of the three values ​​separated by commas in the brackets corresponds to the sorted values ​​in the brackets from left to right; When N=2, the second demodulator and the third demodulator are connected to two backup power supplies respectively, so that one backup power supply corresponds to one demodulator; Step S3, when the backup power supply is not needed, the following formula (3) is used to control whether to replace the power supply for power supply according to the time when the third demodulator is connected to the power supply. In the above formula (3), E represents the control value for replacing the power supply; T0 represents the preset minimum power supply replacement time; t represents the current time; t0 represents the time when the third demodulator is connected to the power supply; int[ ] represents rounding the value in the brackets; If E=1, the control changes the power supply; If E=0, the power supply replacement is not controlled.

4. The PLC communication system for vehicle network according to claim 1, characterized in that: The first demodulator and the component control MCU, the second demodulator and the gateway control MCU, and the third demodulator and the power control MCU are all connected via an SPI bus interface.

5. The PLC communication system for vehicle network according to claim 4, characterized in that: The first demodulator, the second demodulator and the third demodulator all support hardware functions of a MAC layer and a PHY layer corresponding to an Ethernet interface; The first demodulator, the second demodulator and the third demodulator send MAC Ethernet frames through the SPI bus interface.

6. The PLC communication system for vehicle network according to claim 1, characterized in that: The first demodulator, the second demodulator and the third demodulator all support HomePlug AVV1.1; The first demodulator, the second demodulator and the third demodulator all support UDP\TCP\IP protocol stack.

7. The communication control method of the PLC communication system for the vehicle network according to any one of claims 1 to 6, characterized in that: include: Acquire data status information of the central gateway, identify the data status information, and determine attribute information of a data message currently sent by the central gateway to the component controller; Based on the data message attribute information, determining whether the data message currently sent by the central gateway to the component controller contains non-critical data or critical data; Based on the judgment result of whether the data message contains non-critical data or critical data, the data message is subjected to message conversion processing on the UDP\TCP\IP protocol stack by the first demodulator of the component controller to generate a data message matching the SPI bus interface, and the matching data message is transmitted to the component control MCU of the component controller; The data message received by the component control MCU is parsed and processed to obtain a signal contained in the data message; and based on the signal, the working state of the functional component corresponding to the component controller is adjusted.

8. The communication control method according to claim 7, characterized in that: Acquire data status information of the central gateway, identify the data status information, and determine attribute information of a data message currently sent by the central gateway to the component controller; Based on the data message attribute information, determining whether the data message currently sent by the central gateway to the component controller contains non-critical data or critical data includes: Analyze the data transmission log of the central gateway to obtain data reception progress information of the central gateway; determine that the central gateway has completely received the data from the vehicle-mounted platform based on the data reception progress information; parse and process the data that the central gateway has completely received and is ready to send to the component controller to determine the data message code attribute information corresponding to the data; Based on the data message code attribute information, determine the code symbol content contained in the data; then compare the code symbol content with the preset message symbol directory table to determine whether the data message currently sent by the central gateway to the component controller contains non-critical data or critical data.

9. The communication control method according to claim 7, characterized in that: Based on the judgment result of whether the data message contains non-critical data or critical data, the first demodulator of the component controller performs message conversion processing on the data message about the UDP\TCP\IP protocol stack, generates a data message matching the SPI bus interface, and transmits the matching data message to the component control MCU of the component controller, including: If the data message currently sent by the central gateway to the component controller contains non-critical data, the first demodulator of the component controller performs signal packaging processing on the data message based on the UDP protocol to generate a UDP message; then based on the IP protocol, the UDP message is converted into an IP message; and a message identifier matching the MAC protocol is added to the IP message, thereby generating a data message matching the SPI bus interface, and the matching data message is transmitted to the component control MCU of the component controller; If the data message currently sent by the central gateway to the component controller contains critical data, the data message is converted based on the TCP protocol by the first demodulator of the component controller to generate a TCP message, and a message identifier matching the MAC protocol is added to the TCP message, thereby generating a data message matching the SPI bus interface, and the matching data message is passed to the component control MCU of the component controller.

10. The communication control method according to claim 7, characterized in that: Parsing and processing the data message received by the component control MCU to obtain a signal contained in the data message; and adjusting the working state of the functional component corresponding to the component controller based on the signal, including: The data message received by the component control MCU is parsed and processed to obtain the synchronization code and delimiter contained in the data message, and based on the synchronization code and the delimiter, a signal contained in the data message is obtained; based on the signal, an action instruction is sent to the functional component corresponding to the component controller, so as to adjust the switch working state or working type state of the functional component.