Master-slave network management method and device, electronic equipment and storage medium
By designing an ECU technical solution with both master-slave network nodes, the problem of insufficient ECU function requirements in automotive networks is solved, the multifunctional state and cost reduction of the ECU are achieved, and the network management efficiency of the smart cockpit is improved.
Patent Information
- Application Number
- CN202411199574.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-12-03
AI Technical Summary
The functional requirements of ECUs in existing automotive networks cannot be met by separate master network nodes or slave network nodes, resulting in a bottleneck in the entire vehicle's performance, especially the battery durability problem, which is difficult to solve.
Design a technical solution that has both master-slave network nodes. By entering the network mode after being awakened, receiving power management signals for communication management, entering sleep mode or active wake-up mode, meeting the basic functional needs of the ECU, and optimizing the entire vehicle ECU Distribute the architecture to reduce the use of wire harnesses.
It realizes the multifunctional state of ECU in the automotive network, complies with the Autosar network management protocol, reduces the cost of the entire vehicle, and improves the network management efficiency of the smart cockpit.
Smart Images

Figure CN119071092A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of voice vehicle control technology, and in particular to a master-slave network management method, a master-slave network management device, an electronic device, and a storage medium. Background Art
[0002] As living standards continue to improve, automobiles are becoming increasingly common in every household. However, battery durability is a significant performance bottleneck for both traditional fuel-powered vehicles and the recently popular electric vehicles. Network management is a crucial component in addressing this issue. Each ECU functions as either a master or slave node in the vehicle network. In recent years, automotive electrical and electronic architectures have become increasingly centralized, and software system complexity has increased. Serving solely as a master or slave node is insufficient to meet functional requirements. Therefore, it is necessary to design an ECU that functions as both a master and a slave node. Summary of the Invention
[0003] The purpose of the present invention is to provide a master-slave network management method, device, electronic device and storage medium, and design a technical solution with both master and slave network nodes. This technical solution complies with the automotive Autosar network management protocol, ensures the basic functions of the ECU, optimizes the ECU distribution architecture of the entire vehicle, reduces the use of consumables such as wiring harnesses, and reduces the cost of the entire vehicle to a certain extent.
[0004] The present invention provides the following solutions:
[0005] According to one aspect of the present invention, a master-slave network management method is provided, the master-slave network management method comprising:
[0006] After being awakened, it enters the network mode. In the network mode, when it receives the power management signal representing IG ON, it maintains the communication network and operates normally.
[0007] In network mode, when a power management signal indicating IG OFF is received or no power management signal is received, communication is shut down and the device enters sleep mode.
[0008] When the system starts to sleep, it enters active wake-up mode when it receives the power management signal representing IG ON;
[0009] When the system starts to sleep, when it receives the Autosar network management message, it acts as a slave node to maintain the communication network and work normally.
[0010] Optionally, in the sleep mode, all nodes do not send frame data, and the frame data includes: network management frames and application frames.
[0011] Optionally, the network mode includes: information retransmission mode, operation mode and sleep mode.
[0012] Optionally, the message retransmission mode is used to instruct the target bus to wait for retransmission;
[0013] When the target bus is in sleep mode or ready to sleep mode and receives a network request message or a network management message, the target bus switches to information retransmission mode;
[0014] When the target bus is in the information retransmission mode and the timeout timer times out, the target bus restarts the timeout timer.
[0015] Optionally, the operation mode is used to instruct the target bus to send a network management message to the target node, and the operation mode instructs the target bus to remain awake;
[0016] When the target bus is in information retransmission mode, receives a network request message, and the retransmission timer times out, the target bus switches to operation mode and sends the received network management message to the target node;
[0017] When the target bus is in operation mode and the timeout timer expires, the target bus restarts the timeout timer.
[0018] Optionally, the operation modes include: active wake-up mode and passive wake-up mode.
[0019] Optionally, the sleep mode is used to indicate starting a sleep timer;
[0020] When the target bus is in information retransmission mode, a network release message is received, and the retransmission timer times out, the target bus switches to a sleep mode.
[0021] According to two aspects of the present invention, there is provided a master-slave network management device, the master-slave network management device comprising:
[0022] The normal working unit is used to enter the network mode after being awakened, and in the network mode, when receiving the power management signal representing IG ON, keep the communication network and work normally;
[0023] The sleep unit is used to shut down the communication and enter the sleep mode when receiving the power management signal representing IG OFF or not receiving the power management signal in the network mode;
[0024] The master node unit is used to enter the active wake-up mode when the system starts the sleep process and receives the power management signal representing IG ON;
[0025] The slave node unit is used to act as a slave node to keep the communication network working normally when the system starts to sleep and receives the Autosar network management message.
[0026] According to three aspects of the present invention, there is provided an electronic device, comprising: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
[0027] A computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the master-slave network management method.
[0028] According to four aspects of the present invention, a computer-readable storage medium is provided, comprising: a computer program executable by an electronic device is stored therein, and when the computer program runs on the electronic device, the electronic device executes the steps of the master-slave network management method.
[0029] Through the above solution, the following beneficial technical effects are achieved:
[0030] This invention uses a passive wake-up method, but after waking up, it can act as a master node to maintain the network. This method complies with the automotive Autosar network management protocol, ensures basic ECU functionality, optimizes the vehicle's ECU distribution architecture, reduces the use of consumables such as wiring harnesses, and reduces vehicle costs to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 This is a flowchart of a master-slave network management method provided by one or more embodiments of the present invention.
[0032] Figure 2 It is a flowchart of a master-slave network management method provided by one or more embodiments of the present invention.
[0033] Figure 3 It is a flowchart of a master-slave network management method provided by one or more embodiments of the present invention.
[0034] Figure 4 It is a flowchart of a master-slave network management method provided by one or more embodiments of the present invention.
[0035] Figure 5 It is a structural diagram of a master-slave network management device provided by one or more embodiments of the present invention.
[0036] Figure 6 is a structural diagram of an electronic device provided by one or more embodiments of the present invention. DETAILED DESCRIPTION
[0037] The technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described are only some embodiments of the present invention, not all embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0038] Figure 1 This is a flow chart of a master-slave network management method provided by one or more embodiments of the present invention. Figure 1 , the master-slave network management method includes the following steps:
[0039] S11, after being awakened, enters the network mode. In the network mode, when receiving the power management signal representing IG ON, the communication network is maintained and normal operation is performed.
[0040] S12, in the network mode, when a power management signal representing IG OFF is received or no power management signal is received, the communication is closed and the device enters the sleep mode.
[0041] S13, when the system starts to go through the sleep process, when receiving the power management signal representing IG ON, it enters the active wake-up mode.
[0042] S14, when the system starts to go into sleep mode and receives the Autosar network management message, it acts as a slave node to maintain the communication network and work normally.
[0043] Typically, the master-slave network management method provided in each embodiment of the present application is executed by an ECU installed in a vehicle.
[0044] The core of the master-slave network management method provided by this application is that after an ECU enters a dormant state, it can be awakened by other ECUs connected to the vehicle network. At the same time, after being awakened, the ECU can also act as a master node to wake up other ECUs on the network.
[0045] By default, once the ECU is awakened, that is, no longer in sleep mode, it will enter network mode.
[0046] When the ECU is connected to the network normally, the ECU will repeatedly receive power management signals representing IG ON sent by other ECUs on the network.
[0047] If the ECU continues to receive power management signals representing IG ON from other ECUs, the ECU will remain in network mode. In network mode, the ECU will maintain communication connections with other ECUs on the network and maintain normal operation.
[0048] In network mode, if the power management signal representing IG ON is not received for a period of time, the ECU is no longer in network mode, but enters a dormant state.
[0049] Similarly, in network mode, if a power management signal representing IG OFF is received from other ECUs, the ECU will no longer be in network mode and will also enter sleep mode.
[0050] In the dormant state, the ECU loses its communication function with other ECUs on the network, and the ECU is no longer in a normal working state.
[0051] When the ECU is in the process of switching from network mode to sleep mode, it is possible that the ECU will receive a power management signal representing IG ON sent by other ECUs on the network.
[0052] In this case, the ECU stops the process of entering the sleep state and enters the active wake-up mode instead.
[0053] The biggest difference between the active wake-up mode and other ECU working modes is that the ECU can act as a master node and wake up other ECUs on the network through the network.
[0054] In active wake-up mode, the ECU sends a power management signal representing IG ON to other ECUs on the network to wake up other ECUs on the network.
[0055] Since, in operating modes other than active wake-up mode, the ECU can be awakened as a slave node by other ECUs on the network, after adopting the technical solution provided by this application, the ECU is in an operating state in which it can either be awakened as a slave node by other nodes on the network, or it can be awakened as a master node by other nodes on the network. Therefore, after adopting the technical solution provided by this application, the ECU can operate as either a master node or a slave node on the network, changing the situation where there is only one operating state and facilitating the specific execution of network management tasks.
[0056] Assume that during the sleep process of the ECU, it does not receive the power management signal representing IG ON, but receives the Autosar network management message, then the ECU does not enter the active wake-up mode, but continues to act as a slave node on the network, maintaining normal network communication and working status.
[0057] Through the technical solution provided in this application, the ECU can not only be awakened by other ECUs as a slave node on the network, but can also wake up other ECUs on the network as a master node. The ECU's working mode in network communication is richer, ensuring the basic functions of the ECU while complying with the basic requirements of the Autosar protocol, facilitating network management of the smart cockpit.
[0058] Figure 2 This is a flow chart of a master-slave network management method provided by one or more embodiments of the present invention. Figure 2 , the master-slave network management method includes the following steps:
[0059] S21, after being awakened, enters the network mode. In the network mode, when receiving the power management signal representing IG ON, the communication network is maintained and normal operation is performed.
[0060] S22, in the network mode, when a power management signal representing IG OFF is received or no power management signal is received, communication is closed and the device enters the sleep mode.
[0061] S23, when the system starts to go through the sleep process, when receiving the power management signal representing IG ON, it enters the active wake-up mode.
[0062] S24, when the system starts to go into sleep mode and receives the Autosar network management message, it acts as a slave node to maintain the communication network and work normally.
[0063] S25: When the vehicle is in sleep mode, if the camera detects liveness successfully, it stops its own sleep process and starts working normally, and acts as the master node to wake up other ECUs.
[0064] Depend on Figure 2 The illustrated embodiment introduces a typical application scenario for a master-slave network management method. Simply put, this application scenario involves automatically waking up from sleep mode when a camera in the cabin detects human or animal activity using an image detection algorithm. After waking up, the camera automatically enters active wake-up mode. Once in active wake-up mode, the camera can act as the master node on the network, waking up other ECUs connected to the network.
[0065] It should be understood that when there are no people or animals in the cabin, the various instruments and devices equipped on the vehicle are unlikely to be operated or used. As the instruments and devices on the vehicle are rarely used, the various ECUs configured on the network will gradually enter a dormant working state.
[0066] If a person or animal appears in the vehicle's cabin while all ECUs on the vehicle are in sleep mode, many of the vehicle's smart cockpit functions will not actually function if all ECUs installed on the vehicle remain in sleep mode, ultimately leading to a poor driving experience for the driver and passengers.
[0067] To avoid this dilemma, a real-time camera is installed in the cabin. This camera not only captures the cabin image in real time but also uses an intelligent detection algorithm to identify various objects within the cabin in real time. Once a living object, such as a person or animal, is detected in the real-time image from the vehicle cabin, the ECU directly connected to the camera will immediately stop its sleep mode and enter normal operation.
[0068] In addition to entering normal operation, the ECU will also enter active wake-up mode. Once in active wake-up mode, the ECU can act as a master node on the network, waking up other ECUs connected to the network. In some typical cases, the ECU wakes up all ECUs connected to the network one by one.
[0069] By executing the above method, all ECUs on the vehicle, as long as they are connected to the network, will be automatically awakened one by one after a liveness detection is successful in the cabin. The result of running the above method is that as long as a liveness detection is successful in the cabin, all networked ECUs on the vehicle will be automatically awakened.
[0070] Typically, the ECU that executes the above method, that is, the ECU that wakes up other ECUs on the vehicle one by one, is part of the smart cockpit domain controller.
[0071] Figure 3 This is a flow chart of a master-slave network management method provided by one or more embodiments of the present invention. Figure 3 , the master-slave network management method includes the following steps:
[0072] S31, after receiving the network management message, enter the information retransmission mode from the sleep mode.
[0073] S32, receiving a power management signal representing IG ON, and entering the operation mode from the information retransmission mode.
[0074] S33: receiving a power management signal representing IG OFF, and entering the sleep mode from the information retransmission mode.
[0075] S34, receiving a power management signal representing IG ON, and entering the information retransmission mode from the sleep mode.
[0076] S35, entering the sleep preparation mode from the sleep capable mode.
[0077] S36: receiving a power management signal representing IG ON, and entering an information retransmission mode from a sleep preparation mode.
[0078] S37, entering the sleep mode from the sleep preparation mode.
[0079] First, we introduce the execution of Figure 3 In the illustrated embodiment, the ECU may have various operating states.
[0080] The possible working modes of ECU include: Bus Sleep Mode, Network Mode, and Prepare Bus Sleep Mode.
[0081] The network mode includes: message retransmission mode (Repeat Message), operation mode (Normal Operation) and sleep mode (Ready Sleep).
[0082] For example, after the vehicle is powered on, the target bus is initialized. The initial state of the target bus is sleep mode, which controls the target node to switch to sleep mode and initializes each node. Sleep mode is used to instruct the target node controlled by the target bus to enter a low-power state. There can be one or more target buses. The purpose of entering sleep mode is to switch to this mode when there is no message interaction demand on the target bus to reduce the power consumption of the target node controlled by the target bus, thereby reducing the overall power consumption of the vehicle. The target node is any node controlled by the target bus. When the target bus is in sleep mode and receives a network request message, that is, the target bus needs to wake up the target node. The wake-up method can be that the target bus receives a network request message or a local request message, and the target bus switches to network mode. The network mode is used to instruct the target node to enter a normal state. When the target bus is in sleep mode and receives a network management message, that is, the target bus needs to send the network management message to the target node, the target bus switches to network mode, starts the retransmission timer and timeout timer, and sends the network management message to the target node. The target node can receive or send network management messages within the timeout timer. The target node will retransmit messages within the timeout timer to ensure that the target node can be discovered by other nodes on the target bus. When the target bus is in network mode (i.e., the target node enters a normal state), the target bus restarts the retransmission timer after the target node receives or sends a network management message.
[0083] For example, after the timeout timer times out, that is, the target node no longer receives or sends network management messages, the target bus switches from network mode to sleep-ready mode, and starts the sleep timer. The sleep-ready mode is used to instruct the target node to enter a low-power state after waiting for the length of time indicated by the sleep timer. The sleep timer is to ensure that the target nodes on the target bus have enough time to stop activities on the target bus before entering sleep mode, so that the target nodes on the target bus can sleep uniformly. After the sleep timer times out, that is, the target nodes on the target bus have stopped activities on the target bus, the target bus switches from sleep-ready mode to sleep mode.
[0084] For example, the network mode includes three modes: information retransmission mode, operation mode, and sleep mode. The information retransmission mode is used to indicate that the target bus is waiting for retransmission. The information retransmission mode can ensure that when switching from sleep mode or ready-to-sleep mode to network mode, the target node can be discovered by other nodes on the target bus except the target node. When the target bus is in sleep mode or ready-to-sleep mode and receives a network request message or network management message, the target bus switches to information retransmission mode. When the target bus is in information retransmission mode and the timeout timer expires, the target bus restarts the timeout timer.
[0085] For example, the operational mode is used to instruct the target bus to send a network management message to the target node, and the operational mode indicates that the target bus remains awake. When the target bus is in information retransmission mode, receives a network request message, and the retransmission timer times out, i.e., the target node needs to communicate, the target bus switches to operational mode and sends the received network management message to the target node. When the target bus is in operational mode and the timeout timer times out, the target bus restarts the timeout timer. The sleepable mode is used to instruct the start of the sleep timer. When the target node is ready to release resources on the target bus, but other nodes on the target bus need to use the resources on the target bus, the target bus waits for other nodes on the target bus to enter the preparation sleep mode, so that all nodes on the target bus can enter sleep mode simultaneously. When the target bus is in information retransmission mode, receives a network release message, and the retransmission timer times out, i.e., the target node does not need to communicate, the target bus switches to sleepable mode.
[0086] For example, when the target bus is in operating mode, if the target node does not need to communicate, the target node can send a network release message to the target bus, that is, the target bus meets the sleep condition (the network is released). After receiving the network release message, the target bus controls the target bus to switch to the sleep mode. When the target bus is in sleep mode and receives a network request message, that is, the target node needs to communicate, the target bus switches to operating mode.
[0087] The above-mentioned various modes are applied to the target bus of the vehicle. When the target bus is in a sleep mode for instructing the target node to enter a low-power state and receives a network request message, the target bus is controlled to switch to a network mode for instructing the target node to enter a normal state. When the target bus is in sleep mode and receives a network management message, the target bus is controlled to switch to a network mode, start a retransmission timer and a timeout timer, and send a network management message to the target node, wherein the target node is any node controlled by the target bus. After the timeout timer expires, the target bus is controlled to switch from a network mode to a ready-to-sleep mode for instructing the target node to enter a low-power state within the duration indicated by the sleep timer, and start the sleep timer. After the sleep timer expires, the target bus is controlled to switch from the ready-to-sleep mode to the sleep mode.
[0088] Depend on Figure 3 The key point of the illustrated method is that the node state transition process encompasses both the ECU's operating state as a master node and the ECU's operating state as a slave node. In other words, during this operating state transition, the ECU can act as a master node, waking up other nodes on the network, and can also act as a slave node, being woken up by the master node on the network.
[0089] Figure 4 This is a flow chart of a master-slave network management method provided by one or more embodiments of the present invention. Figure 4 , the master-slave network management method includes the following steps:
[0090] S41, the camera captures a living thing in the car and sends an indication signal to the processing unit.
[0091] S42: The processing unit transmits an instruction signal to the cockpit domain controller, and the cockpit domain controller is awakened.
[0092] S43, the cockpit domain controller acts as the master node and wakes up other controllers installed on the vehicle one by one.
[0093] Depend on Figure 4 The illustrated embodiment shows a typical application of the master-slave network management method.
[0094] When the liveness detection performed by the camera in the cockpit is successful, the camera needs to send an indication signal of the detection success to the processing unit connected thereto.
[0095] After receiving the indication signal, the processing unit forwards the received indication signal to the cockpit domain controller equipped in the cockpit.
[0096] After receiving the instruction signal forwarded by the processing unit, the cockpit domain controller will automatically end the dormant state and enter the normal working state. In other words, after receiving the instruction signal, the cockpit domain controller will be awakened first.
[0097] After waking up, the cockpit domain controller automatically enters active wakeup mode. Once in active wakeup mode, the cockpit domain controller becomes the master node on the network. This means it can actively wake up other ECUs or controllers on the network.
[0098] In this embodiment, the awakened cockpit domain controller wakes up other controllers or ECUs on the network one by one by sending a power management signal representing IG ON to other controllers or ECUs on the network.
[0099] Typically, the cockpit domain controller can determine the addresses of other controllers or ECUs that need to send power management signals on behalf of the IGON by reading a locally stored address list. Then, it sends the power management signals on behalf of the IGON to the target addresses found one by one.
[0100] After receiving the power management signal, other controllers or ECUs distributed on the network will complete the transition from sleep mode to normal working state, that is, from sleep mode to network mode.
[0101] like Figure 5 As shown, the present invention also provides a master-slave network management device, comprising:
[0102] The normal operating unit 51 is used to enter the network mode after being awakened, and in the network mode, when receiving the power management signal representing IGON, maintain the communication network and operate normally.
[0103] The sleep unit 52 is configured to shut down communication and enter the sleep mode when, in the network mode, a power management signal representing IG OFF is received or no power management signal is received.
[0104] The master node unit 53 is used to enter the active wake-up mode when the system starts to go through the sleep process and receives the power management signal representing IG ON.
[0105] The slave node unit 54 is used to act as a slave node to keep the communication network working normally when the system starts to go into sleep mode and receives the Autosar network management message.
[0106] It is worth noting that although only some basic functional modules are disclosed in the embodiment of the present invention, it does not mean that the composition of the present system is limited to the above basic functional modules. On the contrary, what this embodiment wants to express is that on the basis of the above basic functional modules, those skilled in the art can arbitrarily add one or more functional modules in combination with the existing technology to form an infinite number of embodiments or technical solutions. In other words, this system is open rather than closed. Just because this embodiment only discloses individual basic functional modules, it cannot be considered that the scope of protection of the claims of the present invention is limited to the disclosed basic functional modules. At the same time, for the convenience of description, the above devices are described in terms of functions, which are divided into various units and modules. Of course, when implementing the present invention, the functions of each unit and module can be implemented in the same or one or more software and / or hardware.
[0107] like Figure 6 As shown, the present application provides an electronic device, comprising: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
[0108] The memory stores a computer program, which, when executed by the processor, enables the processor to execute steps of a master-slave network management method.
[0109] The present application also provides a computer-readable storage medium storing a computer program executable by an electronic device. When the computer program runs on the electronic device, the electronic device executes the steps of a master-slave network management method.
[0110] This application also provides a master-slave network management system, including:
[0111] An electronic device for implementing the steps of the master-slave network management method;
[0112] a processor, the processor running a program, and executing the steps of the master-slave network management method based on data output by the electronic device when the program is running;
[0113] The storage medium is used to store a program, and when the program is running, it executes the steps of the master-slave network management method for the data output from the electronic device.
[0114] The communication bus mentioned in the electronic device mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. This communication bus can be divided into address buses, data buses, control buses, etc. For ease of illustration, only one thick line is used in the figure, but this does not mean that there is only one bus or only one type of bus.
[0115] The electronic device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and memory. The operating system can be any one or more computer operating systems that control electronic devices through processes, such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a Windows operating system. In addition, in the embodiment of the present invention, the electronic device can be a handheld device such as a smart phone or a tablet computer, or an electronic device such as a desktop computer or a portable computer, which is not particularly limited in the embodiment of the present invention.
[0116] The execution subject of the electronic device control in the embodiment of the present invention can be an electronic device, or a functional module in the electronic device that can call a program and execute the program. The electronic device can obtain the firmware corresponding to the storage medium. The firmware corresponding to the storage medium is provided by the supplier. The firmware corresponding to different storage media can be the same or different, and is not limited here. After the electronic device obtains the firmware corresponding to the storage medium, it can write the firmware corresponding to the storage medium into the storage medium, specifically, burn the firmware corresponding to the storage medium into the storage medium. The process of burning the firmware into the storage medium can be implemented using existing technology and will not be described in detail in the embodiment of the present invention.
[0117] The electronic device can also obtain a reset command corresponding to the storage medium. The reset command corresponding to the storage medium is provided by the supplier. The reset commands corresponding to different storage media can be the same or different, and are not limited here.
[0118] In this case, the storage medium of the electronic device is a storage medium in which the corresponding firmware is written. The electronic device can respond to the reset command corresponding to the storage medium in which the corresponding firmware is written, thereby resetting the storage medium in which the corresponding firmware is written according to the reset command corresponding to the storage medium. The process of resetting the storage medium according to the reset command can be implemented in the existing technology and will not be described in detail in the embodiments of the present invention.
[0119] For the convenience of description, the above devices are described as various units and modules according to their functions. Of course, when implementing this application, the functions of each unit and module can be implemented in the same or multiple software and / or hardware.
[0120] Those skilled in the art will understand that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by those skilled in the art in the art to which the present invention pertains. It should also be understood that terms such as those defined in common dictionaries should be understood to have meanings consistent with those in the context of the prior art and, unless specifically defined, will not be interpreted in an idealized or overly formal sense.
[0121] For simplicity of description, the method embodiments are described as a series of actions. However, those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because certain steps can be performed in other orders or simultaneously according to the embodiments of the present invention. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0122] Through the description of the above embodiments, it can be seen that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general-purpose hardware platform. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments of the present application or certain parts of the embodiments.
[0123] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A master-slave network management method, characterized in that: The master-slave network management method comprises: After being awakened, it enters the network mode. In the network mode, when it receives the power management signal representing IG ON, it maintains the communication network and works normally; In network mode, when a power management signal representing IG OFF is received or no power management signal is received, communication is closed and the device enters sleep mode; When the system starts the sleep process and receives the power management signal representing IG ON, it enters the active wake-up mode; When the system starts to go into sleep mode and receives the Autosar network management message, it acts as a slave node to maintain the communication network and work normally.
2. The method according to claim 1, characterized in that In the sleep mode, all nodes do not send frame data, and the frame data includes: network management frames and application frames.
3. The method according to claim 1, characterized in that The network modes include: information retransmission mode, operation mode and sleep mode.
4. The method according to claim 3, characterized in that The message retransmission mode is used to instruct the target bus to wait for retransmission; When the target bus is in sleep mode or ready to sleep mode and receives a network request message or a network management message, the target bus switches to information retransmission mode; When the target bus is in the information retransmission mode and the timeout timer times out, the target bus restarts the timeout timer.
5. The method according to claim 3, characterized in that: The operation mode is used to instruct the target bus to send the network management message to the target node, and the operation mode instructs the target bus to remain awake; When the target bus is in information retransmission mode, a network request message is received, and the retransmission timer times out, the target bus switches to operation mode and sends the received network management message to the target node; When the target bus is in operation mode and the timeout timer times out, the target bus restarts the timeout timer.
6. The method according to claim 5, characterized in that The operation modes include: active wake-up mode and passive wake-up mode.
7. The method according to claim 3, characterized in that The sleep mode is used to indicate the start of the sleep timer; When the target bus is in information retransmission mode, a network release message is received, and the retransmission timer times out, the target bus switches to a sleep mode.
8. A master-slave network management device, characterized in that: The master-slave network management device comprises: The normal working unit is used to enter the network mode after being awakened, and in the network mode, when receiving the power management signal representing IG ON, keep the communication network and work normally; The sleep unit is used to shut down the communication and enter the sleep mode when receiving the power management signal representing IG OFF or not receiving the power management signal in the network mode; The master node unit is used to enter the active wake-up mode when the system starts the sleep process and receives the power management signal representing IG ON; The slave node unit is used to keep the communication network working normally when the system starts the sleep process and receives the Autosar network management message.
9. An electronic device, characterized in that: include: A processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of any one of the methods described in claims 1 to 7.
10. A computer-readable storage medium, characterized in that: It stores a computer program executable by an electronic device, and when the computer program runs on the electronic device, the electronic device executes the steps of the method described in any one of claims 1 to 7.
