WO2023222109A1 - Network wakeup management method and apparatus, electronic device, and storage medium - Google Patents

Network wakeup management method and apparatus, electronic device, and storage medium Download PDF

Info

Publication number
WO2023222109A1
WO2023222109A1 PCT/CN2023/095232 CN2023095232W WO2023222109A1 WO 2023222109 A1 WO2023222109 A1 WO 2023222109A1 CN 2023095232 W CN2023095232 W CN 2023095232W WO 2023222109 A1 WO2023222109 A1 WO 2023222109A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
wake
management
request
controller
Prior art date
Application number
PCT/CN2023/095232
Other languages
French (fr)
Chinese (zh)
Inventor
揣孟洋
李长龙
周时莹
梁贵友
孔祥明
李想
王达
张旭东
刘晓东
Original Assignee
中国第一汽车股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中国第一汽车股份有限公司 filed Critical 中国第一汽车股份有限公司
Publication of WO2023222109A1 publication Critical patent/WO2023222109A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Definitions

  • the present application relates to the field of computer technology, for example, to a management method, device, electronic device and storage medium for network wake-up.
  • the gateway As the core of the vehicle network, the gateway is actually the node most capable of monitoring sleep and wake-up conditions on the network.
  • the current gateway technology basically remains at the basic work of routing between network segments. In the development of some projects, component integration work may be added. However, the main job of the gateway is to route messages between different network segments. There is no In-depth exploration of the architectural advantages where it is located cannot solve the above-mentioned troubleshooting problems.
  • This application provides a management method, device, electronic device and storage medium for network wake-up, which can solve the problem of difficult vehicle troubleshooting.
  • this application provides a management method for network wake-up, including:
  • the network wake-up request is managed to obtain a corresponding wake-up management log, and the wake-up management log is stored in a memory unit in the network controller.
  • this application provides a management device for wake-on-network, including:
  • a detection module set to detect the network mode of the network controller
  • a determining module configured to determine the type of the network wake-up request when receiving a network wake-up request in response to the network mode being the sleep mode
  • a management module configured to manage the network wake-up request to obtain a corresponding wake-up management log based on the type of the network wake-up request, and store the wake-up management log in a memory unit in the network controller.
  • this application provides an electronic device, which includes:
  • the memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor can execute the network described in any embodiment of the present application. Awakening management methods.
  • the present application provides a computer-readable storage medium that stores computer instructions, and the computer instructions are configured to enable the processor to implement the network wake-up described in any embodiment of the application when executed. management methods.
  • Figure 1 is a first flow diagram of a wake-on-network management method provided by an embodiment of the present application
  • Figure 2 is a second flow diagram of a wake-on-network management method provided by an embodiment of the present application.
  • Figure 3 is a schematic structural diagram of a wake-on-network management device provided by an embodiment of the present application.
  • Figure 4 is a block diagram of an electronic device used to implement a wake-on-network management method according to an embodiment of the present application.
  • FIG. 1 is a first flow diagram of a method for managing wake-on-network provided by an embodiment of the present application.
  • This embodiment can be applied to the situation of managing wake-on-network.
  • the method for managing wake-on-network provided by this embodiment can be executed by the management device for managing wake-on-network provided by the embodiment of this application.
  • the device can be implemented by at least one of software and hardware, and be integrated into an electronic device that executes the method. in the device.
  • This embodiment is introduced by taking the electronic device as a vehicle as an example.
  • the execution subject that executes the network wake-up management method of the present application may be a microprocessor configured on the vehicle.
  • the method of this embodiment includes but is not limited to the following steps:
  • the network controller refers to the control unit that monitors the network status of the vehicle, such as a gateway or other gateway-like components at the center of the network;
  • the network mode refers to the connection status between the vehicle and the network, which can include sleep mode, pre-sleep mode and working mode.
  • the network mode of the current network controller can be obtained in real time through the microprocessor configured on the vehicle, or the network controller actively reports its own network mode to the microprocessor.
  • the network control A controller (such as a gateway or other gateway-like components at the center of the network) needs to be customized to a certain extent.
  • the network controller also needs Ability to analyze data and record faults.
  • the vehicle's nodes or components when the vehicle's nodes or components are in sleep mode, it only receives network wake-up requests from the Electronic Control Unit (Electronic Control Unit, ECU) node and does not send any messages.
  • ECU Electronic Control Unit
  • Multiple nodes of the vehicle adopt a distributed network management method.
  • the vehicle nodes send network wake-up requests and their own network management status, and receive network wake-up requests and status from other ECU nodes on the Controller Area Network (Controller Area Network, CAN) bus. .
  • Controller Area Network Controller Area Network
  • the types of network wake-up requests include local wake-up requests and remote wake-up requests.
  • the network mode of the network controller is the sleep mode
  • the wake-up management log is set to record information related to the network wake-up request.
  • the wake-up management log may include identification information of the wake-up source, the timestamp of the network wake-up request, and network management messages related to the network wake-up request.
  • this step is based on the type of the network wake-up request.
  • the process of managing the network wake-up request and obtaining the corresponding wake-up management log can be implemented in the following two situations:
  • Case 1 When the type of network wake-up request is a local wake-up request, the first wake-up management log is generated.
  • the local wake-up request may refer to the network where the wake-up source originates from the internal components of the network controller.
  • the local wake-up request of the network controller may mean that the internal clock of the network controller wakes up the network controller at intervals, prompting the awakened network controller to detect the status of the battery power supply. If the battery power supply is at this time If the battery power is low, the battery power source replies a network wake-up request to the network controller, so that the battery power source wakes up the network controller and related vehicle nodes used to charge the battery power source. Therefore, battery power is due to the network controller's internal clock waking up and then sending a network wake-up request. Therefore, the hardware wake-up on battery power is also classified as a local wake-up request.
  • the type of network wake-up request is a local wake-up request, it indicates that the internal components of the network controller have a need to wake up the network, and the component that issues the local wake-up request is determined from the network controller based on the attribute information of the local wake-up request. , where the attribute information may be the identification number of the local wakeup request.
  • the first wake-up management log can be: Local Wake-Power Management Component -202203161536.
  • the remote wake-up request may refer to a network wake-up request originating from other ECU nodes on the CAN bus.
  • the type of network wake-up request is a remote wake-up request
  • the remote wake-up request will cause the network controller to interrupt, it is necessary to obtain the network controller
  • the interrupted network interruption message and the network interruption message's Identification number and record the wake-up time point of the remote wake-up request.
  • the first controller can be divided into self wake-up and CAN wake-up according to the network wake-up mode.
  • Self-wake-up means that the first controller (i.e. ECU node) actively issues a network wake-up request.
  • CAN wake-up means that the first controller is awakened by other controllers that wake up themselves or other CAN-wake-up controllers and issues a network wake-up request.
  • a controller that wakes up by itself can cause multiple other controllers to wake up through CAN wake-up.
  • the interruption of the network controller is generally due to the first controller's own wake-up.
  • the first controller that issues the remote wake-up request can be determined through the first frame information of the network interrupt message.
  • the second wake-up management log can be : Remote wake-up-A component-a message-202203161536.
  • the first controller that causes the network controller to interrupt may not be the controller that wakes up by itself, but the controller that wakes up from the CAN. Therefore, the first controller that sends the remote wake-up request determined in the above step (2) may be the controller that wakes up by itself, or it may be the controller that wakes up by CAN.
  • the first controller in order to determine whether the first controller is a controller that wakes up by itself or a CAN wake-up controller, before generating the second wake-up management log based on the network interrupt message, the first controller, and the current wake-up time point, it also includes: determining The network segment where the first controller is located; obtain the stable network management message of the network segment within the preset time (such as three minutes) after the current wake-up time point; determine the second controller that issues the remote wake-up request based on the stable network management message ; Determine whether the first controller and the second controller are the same controller; the first controller and the second controller are the same controller, and perform generation based on the network interrupt message, the first controller, and the current wake-up time point The second wake-up management log operation.
  • the second controller must be the controller that wakes up by itself. This The advantage of this setting is that it can more accurately find the second controller that wakes itself up by issuing a remote wakeup request.
  • determining the second controller that issued the remote wake-up request based on the stable network management message includes: determining multiple controllers with remote wake-up requests based on the stable network management message; and analyzing the wake-up reasons of the multiple controllers. Obtain analysis results; based on the analysis results, find out from multiple controllers the second controller whose wake-up reason is its own wake-up. Among them, the wake-up reasons include self-wake-up and CAN wake-up.
  • the technical solution provided by this embodiment first detects the network mode of the network controller through the microprocessor; if the network mode is the sleep mode, the type of the network wake-up request is determined when the network wake-up request is received; and then based on the type of the network wake-up request , manage the network wake-up request to obtain the corresponding wake-up management log, and store the wake-up management log to the memory unit in the network controller.
  • this application first analyzes the type of network wake-up request when receiving a network wake-up request, then performs different measures for network wake-up management for different types of network wake-up requests, and finally generates a wake-up management log.
  • the network controller of this application captures controllers with network wake-up requests in sleep mode, and generates independent wake-up management logs and bus data for independent storage as evidence, which can solve the problem of difficult vehicle troubleshooting.
  • FIG. 2 is a second flowchart of a wake-on-LAN management method provided by an embodiment of the present application.
  • the embodiment of the present application is refined on the basis of the above-mentioned embodiment. This embodiment explains in detail the network management process when the network mode of the network controller is the pre-sleep mode and the working mode.
  • the method of this embodiment includes but is not limited to the following steps:
  • step S110 in the embodiment of FIG. 1 and will not be described again here.
  • the network mode is the sleep mode, determine the type of the network wake-up request when receiving the network wake-up request; based on the type of the network wake-up request, manage the network wake-up request to obtain the corresponding wake-up management log, and store the wake-up management log to the memory unit in the network controller.
  • the network mode of the network controller will be in the pre-sleep mode within a preset time (such as five minutes) after the vehicle power is turned off.
  • a preset time such as five minutes
  • the network controller is only allowed to receive network wake-up requests from ECU nodes. Messages already in the sending buffer (Buffer) should stop immediately after being sent.
  • the network controller when the network mode of the network controller is the pre-sleep mode, the network controller will actively monitor whether there are residual network management messages on the CAN bus, and if so, actively obtain the residual network management messages.
  • the network controller after the network controller obtains the residual network management message through the above-mentioned step S230, it then determines the identification code and timestamp of the residual network management message.
  • S250 Generate a sleep management log based on the residual network management message, the identification code of the residual network management message, and the timestamp of the residual network management message, and store the sleep management log in the memory unit.
  • the sleep management log is set to record the message information sent and received in the network when the network mode is pre-sleep mode.
  • the dormant management log It can be: pre-sleep mode-B component-b message-202203161536.
  • the network controller has the function of connecting to the server and uploading files. After the vehicle is powered on, it can also accept data retrieval from the server at any time to achieve remote troubleshooting capabilities.
  • the network server When the network server is in working mode, messages can be sent and received normally, but when the network server is in pre-sleep mode, messages are not allowed to be sent and received. Allow sending messages.
  • the network controller when the network controller is in the sleep mode, the network controller records the wake-up management log and stores the wake-up management log to the memory unit in the network controller; when the network controller is in the pre-sleep mode, the network controller The controller records the hibernation management log and stores the hibernation management log to the memory unit in the network controller.
  • the network controller can send the wake-up management log and the sleep management log to the server, so that the server can check whether the electronic device malfunctions based on the wake-up management log and the sleep management log.
  • S220 corresponds to the process of the network mode being in the sleep mode
  • S230-S250 corresponds to the process of the network mode being in the pre-sleep mode.
  • These two processes are independent of each other.
  • the embodiment of the present application does not cover these two processes.
  • the execution order of the two processes needs to be determined according to the actual situation. Therefore, the actual execution may be in the order introduced in the above embodiments of this application, or S230-S250 may be executed first, and then S220 may be executed.
  • the technical solution provided by this embodiment detects the network mode of the network controller; if the network mode is the sleep mode, the type of the network wake-up request is determined when receiving the network wake-up request; based on the type of the network wake-up request, the network wake-up request is processed Perform management to obtain the corresponding wake-up management log, and store the wake-up management log to the memory unit in the network controller; when the network mode is pre-sleep mode, obtain the residual network management messages on the CAN bus of the controller's local network; determine the remaining The identification code and timestamp of the network management message; generate a sleep management log based on the residual network management message, the identification code of the residual network management message, and the timestamp of the residual network management message, and store the sleep management log in the memory unit; When the network mode is switched to the working mode, the wake-up management log and the sleep management log are sent to the server, so that the server can check whether the electronic device is faulty based on the wake-up management log and the sleep management log.
  • this application When the network controller is in sleep mode, this application captures controllers with network wake-up requests and generates wake-up management logs; when the network controller is in pre-sleep mode, it captures controllers that cause the network to be unable to sleep. Generate sleep management logs; store wake-up management logs, sleep management logs, and bus data independently as evidence, and upload wake-up management logs and sleep management logs to the server in a timely manner to facilitate developers to troubleshoot faulty controllers inside the vehicle. Can solve vehicle troubleshooting Difficult questions.
  • Figure 3 is a schematic structural diagram of a wake-on-network management device provided by an embodiment of the present application. As shown in Figure 3, the device 300 may include:
  • the detection module 310 is configured to detect the network mode of the network controller
  • the determining module 320 is configured to determine the type of the network wake-up request when receiving a network wake-up request in response to the network mode being the sleep mode;
  • the management module 330 is configured to manage the network wake-up request to obtain a corresponding wake-up management log based on the type of the network wake-up request, and store the wake-up management log in a memory unit in the network controller.
  • the above-mentioned management module 330 may include a first management unit and a second management unit;
  • the first management unit may be configured to: in response to the type of the network wake-up request being a local wake-up request, determine the component that issued the local wake-up request from the network controller; determine the name of the component and the and generating a first wakeup management log based on the name of the component and the timestamp of the local wakeup request.
  • the second management unit may be configured to: in response to the type of the network wake-up request being a remote wake-up request, obtain a network interruption message that causes the network controller to be interrupted due to the remote wake-up request, and record the current wake-up time point; determine the first controller that issues the remote wake-up request based on the network interruption message; generate a second wake-up management log based on the network interruption message, the first controller, and the current wake-up time point.
  • the above-mentioned second management unit may be configured to: before generating a second wake-up management log based on the network interruption message, the first controller, and the current wake-up time point, determine the first control The network segment where the controller is located; obtain the stable network management message of the network segment within the preset time after the current wake-up time point; determine the second controller that issues the remote wake-up request based on the stable network management message ; Determine whether the first controller and the second controller are the same controller; the first controller and the second controller are the same controller, and execute the The first controller generates a second wake-up management log at the current wake-up time point.
  • the above-mentioned second management unit may also be configured to: determine multiple controllers that have the remote wake-up request according to the stable network management message; analyze the wake-up reasons of the multiple controllers to obtain the analysis Result: Based on the analysis result, a second controller whose wake-up reason is its own wake-up is found from the plurality of controllers.
  • the above-mentioned network wake-up management device may also include: a pre-sleep management module;
  • the pre-sleep management module is configured to obtain residual network management messages on the CAN bus of the controller local network in response to the network mode being the pre-sleep mode; determine the identification code and timestamp of the residual network management messages; A sleep management log is generated based on the residual network management message, the identification code of the residual network management message, and the timestamp of the residual network management message, and the sleep management log is stored in the memory unit.
  • the above-mentioned wake-on-network management device may also include: a log sending module;
  • the log sending module is configured to send the wake-up management log and the sleep management log to the server in response to the network mode switching to the working mode, so that the server can send the wake-up management log and the sleep management log to the server according to the wake-up management log and the sleep management log.
  • the wake-on-LAN management device provided in this embodiment can be applied to the wake-on-LAN management method provided in any of the above embodiments, and has corresponding functions and effects.
  • FIG. 4 shows a schematic structural diagram of an electronic device 10 that can be used to implement embodiments of the present application.
  • Electronic devices are intended to refer to various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers.
  • Electronic devices may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (eg, helmets, glasses, watches, etc.), and other similar computing devices.
  • the components shown herein, their connection relationships, and their functions are only examples and are not intended to limit the scope of the present application.
  • the electronic device 10 includes at least one processor 11 and at least one processing unit 11 .
  • a memory that is communicatively connected to the processor 11, such as a read-only memory (Read-Only Memory, ROM) 12, a random access memory (Random Access Memory, RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor,
  • the processor 11 can perform various appropriate actions and processes according to a computer program stored in the read-only memory (ROM) 12 or loaded from the storage unit 18 into the random access memory (RAM) 13 .
  • RAM 13 various programs and data required for the operation of the electronic device 10 can also be stored.
  • the processor 11, the ROM 12 and the RAM 13 are connected to each other via the bus 14.
  • An input/output (I/O) interface 15 is also connected to the bus 14 .
  • the I/O interface 15 Multiple components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc. etc.; and communication unit 19, such as network card, modem, wireless communication transceiver, etc.
  • the communication unit 19 allows the electronic device 10 to exchange information/data with other devices through computer networks such as the Internet and various telecommunications networks.
  • Processor 11 may be a variety of general or special purpose processing components having processing and computing capabilities. Examples of the processor 11 include, but are not limited to, a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), various dedicated artificial intelligence (Artificial Intelligence, AI) computing chips, and various running machines. Processor of learning model algorithm, digital signal processor (Digital Signal Processing, DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the above-described methods and processes, such as the management method of network wake-up.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • AI Artificial Intelligence
  • Processor of learning model algorithm Digital Signal Processing, DSP
  • DSP Digital Signal Processing
  • the processor 11 executes the above-described methods and processes, such as the management method of network wake-up.
  • the method for managing wake-on-LAN may be implemented as a computer program, which is tangibly included in a computer-readable storage medium, such as the storage unit 18 .
  • part or all of the computer program may be loaded or installed onto the electronic device 10 via at least one of the ROM 12 and the communication unit 19 .
  • the processor 11 may be configured to perform the wake-on-LAN management method in any other suitable manner (eg, by means of firmware).
  • Various implementations of the systems and techniques described above may be implemented in digital electronic circuit systems, integrated circuit systems, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Implemented in Application Specific Standard Parts (ASSP), System on Chip (SOC), Complex Programmable Logic Device (CPLD), computer hardware, firmware, software, and their combinations .
  • FPGAs Field Programmable Gate Arrays
  • ASICs Application Specific Integrated Circuits
  • ASSP Application Specific Standard Parts
  • SOC System on Chip
  • CPLD Complex Programmable Logic Device
  • computer hardware firmware, software, and their combinations .
  • Computer programs for implementing the methods of the present application may be written in any combination of at least one programming language. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer program causes the functions or operations specified in the flowcharts and block diagrams to be implemented.
  • a computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
  • a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device.
  • Computer-readable storage media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any suitable combination of the foregoing.
  • the computer-readable storage medium may be a machine-readable signal medium.
  • machine-readable storage media examples include an electrical connection based on at least one wire, a portable computer disk, a hard disk, random access memory (RAM), read only memory (ROM), Erasable Programmable Read -Only Memory, EPROM), flash memory, optical fiber, portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
  • RAM random access memory
  • ROM read only memory
  • EPROM Erasable Programmable Read -Only Memory
  • flash memory optical fiber
  • portable compact disk read-only memory Compact Disc Read-Only Memory
  • CD-ROM Compact Disc Read-Only Memory
  • optical storage device magnetic storage device, or any suitable combination of the foregoing.
  • the systems and techniques described herein may be implemented on an electronic device having a display device (e.g., a cathode ray tube (CRT) or liquid crystal) for displaying information to the user.
  • a display device e.g., a cathode ray tube (CRT) or liquid crystal
  • a display Liquid Crystal Display, LCD monitor
  • a keyboard and pointing device e.g., a mouse or a trackball
  • Other kinds of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and may be provided in any form, including Acoustic input, voice input or tactile input) to receive input from the user.
  • the systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., A user's computer having a graphical user interface or web browser through which the user can interact with implementations of the systems and technologies described herein), or including such backend components, middleware components, or any combination of front-end components in a computing system.
  • the components of the system may be interconnected by any form or medium of digital data communication (eg, a communications network). Examples of communication networks include: Local Area Network (LAN), Wide Area Network (WAN), blockchain network, and the Internet.
  • Computing systems may include clients and servers.
  • Clients and servers are generally remote from each other and typically interact over a communications network.
  • the relationship of client and server is created by computer programs running on corresponding computers and having a client-server relationship with each other.
  • the server can be a cloud server, also known as cloud computing server or cloud host. It is a host product in the cloud computing service system to solve the management problems that exist in traditional physical hosts and virtual private servers (VPS). It has the disadvantages of high difficulty and weak business scalability.
  • VPN virtual private servers

Abstract

The present application relates to the technical field of computers, and discloses a network wakeup management method and apparatus, an electronic device, and a storage medium. The method comprises: detecting a network mode of a network controller; in response to the network mode being a sleep mode, determining the type of a network wakeup request when the network wakeup request is received; and managing the network wakeup request on the basis of the type of the network wakeup request to obtain a corresponding wakeup management log, and storing the wakeup management log to a memory unit in the network controller.

Description

网络唤醒的管理方法、装置、电子设备及存储介质Management method, device, electronic device and storage medium for wake-on-LAN
本申请要求在2022年5月20日提交中国专利局、申请号为202210553092.0的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application with application number 202210553092.0, which was submitted to the China Patent Office on May 20, 2022. The entire content of this application is incorporated into this application by reference.
技术领域Technical field
本申请涉及计算机技术领域,例如涉及一种网络唤醒的管理方法、装置、电子设备及存储介质。The present application relates to the field of computer technology, for example, to a management method, device, electronic device and storage medium for network wake-up.
背景技术Background technique
随着汽车远程功能要求车辆在电源关闭的情况下还需要具备响应用户需求的能力,越来越多的汽车控制器都具备控制器局域网络(Controller Area Network,CAN)总线睡眠唤醒能力,而一旦汽车部件出现了偶发性的故障导致车辆无法睡眠,大量的静电流会导致车辆快速亏电进而无法起动。而这一类故障往往很难排查,每每遇到客户抱怨的时候却无法抓到可以指证故障的证据。As the remote function of the car requires the vehicle to have the ability to respond to user needs when the power is turned off, more and more car controllers have the ability to sleep and wake up the Controller Area Network (Controller Area Network, CAN) bus, and once Occasional malfunctions in automobile components prevent the vehicle from sleeping, and large amounts of static current can cause the vehicle to quickly lose power and become unable to start. This type of fault is often difficult to troubleshoot, and every time a customer complains, no evidence can be found to prove the fault.
网关作为整车网络的核心,实际是最具备监控网络上睡眠唤醒情况的能力的节点。但是目前的网关技术基本还停留于网段间路由的基础工作,在部分项目开发中可能会增加组件集成工作,但网关的本职工作总归是对不同网段间的报文进行路由,没有对网关所处的架构优势进行深度挖掘,也无法解决上述这种排查难的问题。As the core of the vehicle network, the gateway is actually the node most capable of monitoring sleep and wake-up conditions on the network. However, the current gateway technology basically remains at the basic work of routing between network segments. In the development of some projects, component integration work may be added. However, the main job of the gateway is to route messages between different network segments. There is no In-depth exploration of the architectural advantages where it is located cannot solve the above-mentioned troubleshooting problems.
发明内容Contents of the invention
本申请提供了一种网络唤醒的管理方法、装置、电子设备及存储介质,可以解决车辆故障排查难的问题。This application provides a management method, device, electronic device and storage medium for network wake-up, which can solve the problem of difficult vehicle troubleshooting.
第一方面,本申请提供了一种网络唤醒的管理方法,包括: In the first aspect, this application provides a management method for network wake-up, including:
检测网络控制器的网络模式;Detect the network mode of the network controller;
响应于所述网络模式为休眠模式,在接收到网络唤醒请求时确定所述网络唤醒请求的类型;In response to the network mode being the sleep mode, determining the type of the network wake-up request when receiving the network wake-up request;
基于所述网络唤醒请求的类型,对所述网络唤醒请求进行管理得到对应的唤醒管理日志,并将所述唤醒管理日志存储至所述网络控制器中的内存单元。Based on the type of the network wake-up request, the network wake-up request is managed to obtain a corresponding wake-up management log, and the wake-up management log is stored in a memory unit in the network controller.
第二方面,本申请提供了一种网络唤醒的管理装置,包括:In the second aspect, this application provides a management device for wake-on-network, including:
检测模块,设置为检测网络控制器的网络模式;A detection module, set to detect the network mode of the network controller;
确定模块,设置为响应于所述网络模式为休眠模式,在接收到网络唤醒请求时确定所述网络唤醒请求的类型;a determining module configured to determine the type of the network wake-up request when receiving a network wake-up request in response to the network mode being the sleep mode;
管理模块,设置为基于所述网络唤醒请求的类型,对所述网络唤醒请求进行管理得到对应的唤醒管理日志,并将所述唤醒管理日志存储至所述网络控制器中的内存单元。A management module configured to manage the network wake-up request to obtain a corresponding wake-up management log based on the type of the network wake-up request, and store the wake-up management log in a memory unit in the network controller.
第三方面,本申请提供了一种电子设备,该电子设备包括:In a third aspect, this application provides an electronic device, which includes:
至少一个处理器;以及at least one processor; and
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行本申请任意实施例所述的网络唤醒的管理方法。The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor can execute the network described in any embodiment of the present application. Awakening management methods.
第四方面,本申请提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,所述计算机指令设置为使处理器执行时实现本申请任意实施例所述的网络唤醒的管理方法。In a fourth aspect, the present application provides a computer-readable storage medium that stores computer instructions, and the computer instructions are configured to enable the processor to implement the network wake-up described in any embodiment of the application when executed. management methods.
附图说明Description of the drawings
图1为本申请实施例提供的一种网络唤醒的管理方法的第一流程示意图;Figure 1 is a first flow diagram of a wake-on-network management method provided by an embodiment of the present application;
图2为本申请实施例提供的一种网络唤醒的管理方法的第二流程示意图;Figure 2 is a second flow diagram of a wake-on-network management method provided by an embodiment of the present application;
图3为本申请实施例提供的一种网络唤醒的管理装置的结构示意图; Figure 3 is a schematic structural diagram of a wake-on-network management device provided by an embodiment of the present application;
图4是用来实现本申请实施例的一种网络唤醒的管理方法的电子设备的框图。Figure 4 is a block diagram of an electronic device used to implement a wake-on-network management method according to an embodiment of the present application.
具体实施方式Detailed ways
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够实施除了在这里图示或描述的那些之外的顺序。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It is to be understood that data so used are interchangeable under appropriate circumstances so that the embodiments of the invention described herein are capable of being implemented in sequences other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or apparatus that encompasses a series of steps or units and need not be limited to those explicitly listed. Those steps or elements may instead include other steps or elements not expressly listed or inherent to the process, method, product or apparatus.
图1为本申请实施例提供的一种网络唤醒的管理方法的第一流程示意图,本实施例可适用于对网络唤醒进行管理的情况。本实施例提供的一种网络唤醒的管理方法可以由本申请实施例提供的网络唤醒的管理装置来执行,该装置可以通过软件和硬件中至少之一的方式实现,并集成在执行本方法的电子设备中。本实施例以电子设备是车辆为例进行介绍,执行本申请网络唤醒的管理方法的执行主体可以是配置在车辆上的微处理器。FIG. 1 is a first flow diagram of a method for managing wake-on-network provided by an embodiment of the present application. This embodiment can be applied to the situation of managing wake-on-network. The method for managing wake-on-network provided by this embodiment can be executed by the management device for managing wake-on-network provided by the embodiment of this application. The device can be implemented by at least one of software and hardware, and be integrated into an electronic device that executes the method. in the device. This embodiment is introduced by taking the electronic device as a vehicle as an example. The execution subject that executes the network wake-up management method of the present application may be a microprocessor configured on the vehicle.
参见图1,本实施例的方法包括但不限于如下步骤:Referring to Figure 1, the method of this embodiment includes but is not limited to the following steps:
S110、检测网络控制器的网络模式。S110. Detect the network mode of the network controller.
其中,网络控制器是指对车辆的网络状态进行监控的控制单元,如网关或其他处于网络中心的类网关部件;网络模式是指车辆与网络之间的连接状态,可以包括休眠模式、预休眠模式和工作模式。Among them, the network controller refers to the control unit that monitors the network status of the vehicle, such as a gateway or other gateway-like components at the center of the network; the network mode refers to the connection status between the vehicle and the network, which can include sleep mode, pre-sleep mode and working mode.
在本申请实施例中,可以通过配置在车辆上的微处理器实时获取当前网络控制器的网络模式,或者网络控制器主动将自身的网络模式上报给微处理器。In the embodiment of the present application, the network mode of the current network controller can be obtained in real time through the microprocessor configured on the vehicle, or the network controller actively reports its own network mode to the microprocessor.
可选的,为了实现对汽车网络上的异常睡眠唤醒源的监控,需要对网络控 制器(如网关或者其他处于网络中心的类网关部件)进行一定程度的定制化开发,网络控制器除了需要具有监控功能的单独的日志系统和下电不丢失的内部存储单元之外,还需要具有数据解析能力与故障记录能力。Optionally, in order to monitor abnormal sleep and wake-up sources on the automotive network, the network control A controller (such as a gateway or other gateway-like components at the center of the network) needs to be customized to a certain extent. In addition to a separate log system with monitoring functions and an internal storage unit that is not lost when powered off, the network controller also needs Ability to analyze data and record faults.
S120、响应于网络模式为休眠模式,在接收到网络唤醒请求时确定网络唤醒请求的类型。S120. In response to the network mode being the sleep mode, determine the type of the network wake-up request when receiving the network wake-up request.
其中,当车辆的节点或元件处于休眠模式时,只接收电子控制单元(Electronic Control Unit,ECU)节点的网络唤醒请求,不发送任何报文。车辆的多个节点采用分布式的网络管理方式,车辆节点发送网络唤醒请求及自身网络管理状态,并接收来自控制器局域网络(Controller Area Network,CAN)总线上其他ECU节点的网络唤醒请求与状态。Among them, when the vehicle's nodes or components are in sleep mode, it only receives network wake-up requests from the Electronic Control Unit (Electronic Control Unit, ECU) node and does not send any messages. Multiple nodes of the vehicle adopt a distributed network management method. The vehicle nodes send network wake-up requests and their own network management status, and receive network wake-up requests and status from other ECU nodes on the Controller Area Network (Controller Area Network, CAN) bus. .
其中,网络唤醒请求的类型包括本地唤醒请求和远程唤醒请求。Among them, the types of network wake-up requests include local wake-up requests and remote wake-up requests.
在本申请实施例中,在网络控制器的网络模式为休眠模式的情况下,接收到来自ECU节点的网络唤醒请求时,需要先确定网络唤醒请求的类型,再针对不同类型的网络唤醒请求进行不同措施的网络唤醒管理。In the embodiment of this application, when the network mode of the network controller is the sleep mode, when receiving a network wake-up request from the ECU node, it is necessary to first determine the type of the network wake-up request, and then perform different types of network wake-up requests. Wake-on-LAN management with different measures.
S130、基于网络唤醒请求的类型,对网络唤醒请求进行管理得到对应的唤醒管理日志,并将唤醒管理日志存储至网络控制器中的内存单元。S130. Based on the type of the network wake-up request, manage the network wake-up request to obtain the corresponding wake-up management log, and store the wake-up management log in the memory unit in the network controller.
其中,唤醒管理日志设置为记录与网络唤醒请求相关的信息,如唤醒管理日志中可以包括唤醒源的标识信息、网络唤醒请求的时间戳以及与网络唤醒请求相关的网络管理报文等。Among them, the wake-up management log is set to record information related to the network wake-up request. For example, the wake-up management log may include identification information of the wake-up source, the timestamp of the network wake-up request, and network management messages related to the network wake-up request.
示例性的,本步骤基于网络唤醒请求的类型,对网络唤醒请求进行管理得到对应的唤醒管理日志的过程,可以通过以下两种情况进行实现:Illustratively, this step is based on the type of the network wake-up request. The process of managing the network wake-up request and obtaining the corresponding wake-up management log can be implemented in the following two situations:
情况一:在网络唤醒请求的类型为本地唤醒请求时,生成第一唤醒管理日志。Case 1: When the type of network wake-up request is a local wake-up request, the first wake-up management log is generated.
(1)响应于网络唤醒请求的类型为本地唤醒请求,从网络控制器中确定发出本地唤醒请求的组件。(1) In response to the type of network wake-up request being a local wake-up request, determine the component that issues the local wake-up request from the network controller.
其中,本地唤醒请求可以是指唤醒源是来源于网络控制器内部组件的网络 唤醒请求,又或是电池电源(如KL15)硬线唤醒或者硬件传感器(hardware sensor)感知唤醒等。例如,网络控制器的本地唤醒请求可以是指网络控制器内部的时钟每间隔一段时间对该网络控制器进行唤醒,提示被唤醒的网络控制器对电池电源的状态进行检测,若电池电源此时电量较低,则该电池电源向网络控制器回复网络唤醒请求,从而电池电源对网络控制器和相关的用于向电池电源进行充电的车辆节点进行唤醒。因此电池电源是由于网络控制器内部时钟的唤醒进而发送网络唤醒请求的,因此将电池电源的硬件唤醒也归类为本地唤醒请求。Among them, the local wake-up request may refer to the network where the wake-up source originates from the internal components of the network controller. Wake-up request, or battery power (such as KL15) hard wire wake-up or hardware sensor wake-up, etc. For example, the local wake-up request of the network controller may mean that the internal clock of the network controller wakes up the network controller at intervals, prompting the awakened network controller to detect the status of the battery power supply. If the battery power supply is at this time If the battery power is low, the battery power source replies a network wake-up request to the network controller, so that the battery power source wakes up the network controller and related vehicle nodes used to charge the battery power source. Therefore, battery power is due to the network controller's internal clock waking up and then sending a network wake-up request. Therefore, the hardware wake-up on battery power is also classified as a local wake-up request.
在本申请实施例中,若网络唤醒请求的类型为本地唤醒请求,表明网络控制器内部组件有唤醒网络的需求,则根据本地唤醒请求的属性信息从网络控制器中确定发出本地唤醒请求的组件,其中属性信息可以是本地唤醒请求的标识号。In the embodiment of this application, if the type of network wake-up request is a local wake-up request, it indicates that the internal components of the network controller have a need to wake up the network, and the component that issues the local wake-up request is determined from the network controller based on the attribute information of the local wake-up request. , where the attribute information may be the identification number of the local wakeup request.
(2)确定组件的名称和本地唤醒请求的时间戳。(2) Determine the name of the component and the timestamp of the local wakeup request.
(3)基于组件的名称和本地唤醒请求的时间戳生成第一唤醒管理日志。(3) Generate the first wake-up management log based on the name of the component and the timestamp of the local wake-up request.
示例性的,假如组件的名称(即唤醒源)为电源管理组件,本地唤醒请求的时间戳是2022年3月16日15:36,则第一唤醒管理日志可以是:本地唤醒-电源管理组件-202203161536。For example, if the name of the component (i.e., the wake-up source) is a power management component, and the timestamp of the local wake-up request is 15:36 on March 16, 2022, the first wake-up management log can be: Local Wake-Power Management Component -202203161536.
情况二:在网络唤醒请求的类型为远程唤醒请求时,生成第二唤醒管理日志。Case 2: When the type of network wake-up request is a remote wake-up request, a second wake-up management log is generated.
(1)响应于网络唤醒请求的类型为远程唤醒请求,获取因远程唤醒请求导致网络控制器中断的网络中断报文,并记录当前唤醒时间点。(1) In response to the type of network wake-up request being a remote wake-up request, obtain the network interrupt message that causes the network controller to be interrupted due to the remote wake-up request, and record the current wake-up time point.
其中,远程唤醒请求可以是指来源于CAN总线上其他ECU节点的网络唤醒请求。The remote wake-up request may refer to a network wake-up request originating from other ECU nodes on the CAN bus.
在本申请实施例中,若网络唤醒请求的类型为远程唤醒请求,表明CAN总线上其他ECU节点有唤醒网络的需求,此时由于远程唤醒请求会导致网络控制器中断,所以需要获取网络控制器中断的网络中断报文以及该网络中断报文的 标识号,并记录远程唤醒请求的唤醒时间点。In the embodiment of this application, if the type of network wake-up request is a remote wake-up request, it indicates that other ECU nodes on the CAN bus have a need to wake up the network. At this time, since the remote wake-up request will cause the network controller to interrupt, it is necessary to obtain the network controller The interrupted network interruption message and the network interruption message's Identification number, and record the wake-up time point of the remote wake-up request.
(2)基于网络中断报文确定发出远程唤醒请求的第一控制器。(2) Determine the first controller that issues the remote wake-up request based on the network interrupt message.
在本申请实施例中,第一控制器按照网络唤醒方式可以分为自身唤醒和CAN唤醒。自身唤醒是指第一控制器(即ECU节点)自身主动发出网络唤醒请求,CAN唤醒是指第一控制器被其他自身唤醒的控制器或者其他CAN唤醒的控制器唤醒并发出网络唤醒请求,一个自身唤醒的控制器可以通过CAN唤醒方式导致其他多个控制器被唤醒。一般地,当第一控制器(即ECU节点)的灵敏性很好时,导致网络控制器中断一般是由于第一控制器的自身唤醒。在一种可实现的实施例中,可以通过网络中断报文的首帧信息确定发出远程唤醒请求的第一控制器。In this embodiment of the present application, the first controller can be divided into self wake-up and CAN wake-up according to the network wake-up mode. Self-wake-up means that the first controller (i.e. ECU node) actively issues a network wake-up request. CAN wake-up means that the first controller is awakened by other controllers that wake up themselves or other CAN-wake-up controllers and issues a network wake-up request. A controller that wakes up by itself can cause multiple other controllers to wake up through CAN wake-up. Generally, when the sensitivity of the first controller (ie, the ECU node) is very good, the interruption of the network controller is generally due to the first controller's own wake-up. In an implementable embodiment, the first controller that issues the remote wake-up request can be determined through the first frame information of the network interrupt message.
(3)基于网络中断报文、第一控制器、当前唤醒时间点生成第二唤醒管理日志。(3) Generate a second wake-up management log based on the network interrupt message, the first controller, and the current wake-up time point.
示例性的,假如第一控制器(即唤醒源)为A组件,当前唤醒时间点是2022年3月16日15:36,网络中断报文为a报文,那么第二唤醒管理日志可以是:远程唤醒-A组件-a报文-202203161536。For example, if the first controller (i.e., the wake-up source) is component A, the current wake-up time point is 15:36 on March 16, 2022, and the network interruption message is an a message, then the second wake-up management log can be : Remote wake-up-A component-a message-202203161536.
在本申请实施例中,假如第一控制器(即ECU节点)的灵敏性不好,导致网络控制器中断的该第一控制器可能不是自身唤醒的控制器,而是CAN唤醒的控制器。因此,经上述步骤(2)所确定的发出远程唤醒请求的第一控制器或许是自身唤醒的控制器,也或许是CAN唤醒的控制器。因此,为了判断该第一控制器是自身唤醒的控制器还是CAN唤醒的控制器,在基于网络中断报文、第一控制器、当前唤醒时间点生成第二唤醒管理日志之前,还包括:确定第一控制器所在的网段;获取当前唤醒时间点之后预设时间(如三分钟)内的网段的稳定网络管理报文;基于稳定网络管理报文确定发出远程唤醒请求的第二控制器;确定第一控制器和第二控制器是否为同一个控制器;第一控制器和第二控制器是同一个控制器,执行基于网络中断报文、第一控制器、当前唤醒时间点生成第二唤醒管理日志的操作。其中,第二控制器一定会是自身唤醒的控制器。这 样设置的好处在于,可以更加准确的找到发出远程唤醒请求的自身唤醒的第二控制器。In the embodiment of the present application, if the sensitivity of the first controller (ie, the ECU node) is not good, the first controller that causes the network controller to interrupt may not be the controller that wakes up by itself, but the controller that wakes up from the CAN. Therefore, the first controller that sends the remote wake-up request determined in the above step (2) may be the controller that wakes up by itself, or it may be the controller that wakes up by CAN. Therefore, in order to determine whether the first controller is a controller that wakes up by itself or a CAN wake-up controller, before generating the second wake-up management log based on the network interrupt message, the first controller, and the current wake-up time point, it also includes: determining The network segment where the first controller is located; obtain the stable network management message of the network segment within the preset time (such as three minutes) after the current wake-up time point; determine the second controller that issues the remote wake-up request based on the stable network management message ; Determine whether the first controller and the second controller are the same controller; the first controller and the second controller are the same controller, and perform generation based on the network interrupt message, the first controller, and the current wake-up time point The second wake-up management log operation. Among them, the second controller must be the controller that wakes up by itself. this The advantage of this setting is that it can more accurately find the second controller that wakes itself up by issuing a remote wakeup request.
示例性的,基于稳定网络管理报文确定发出远程唤醒请求的第二控制器,包括:根据稳定网络管理报文确定存在远程唤醒请求的多个控制器;对多个控制器的唤醒原因进行分析得到分析结果;基于分析结果从多个控制器中找出唤醒原因为自身唤醒的第二控制器。其中,唤醒原因包括自身唤醒和CAN唤醒。Exemplarily, determining the second controller that issued the remote wake-up request based on the stable network management message includes: determining multiple controllers with remote wake-up requests based on the stable network management message; and analyzing the wake-up reasons of the multiple controllers. Obtain analysis results; based on the analysis results, find out from multiple controllers the second controller whose wake-up reason is its own wake-up. Among them, the wake-up reasons include self-wake-up and CAN wake-up.
本实施例提供的技术方案,先通过微处理器检测网络控制器的网络模式;若网络模式为休眠模式,则在接收到网络唤醒请求时确定网络唤醒请求的类型;再基于网络唤醒请求的类型,对网络唤醒请求进行管理得到对应的唤醒管理日志,将唤醒管理日志存储至网络控制器中的内存单元。本申请在网络控制器处于休眠模式下,接收到网络唤醒请求时先分析网络唤醒请求的类型,再针对不同类型的网络唤醒请求进行不同措施的网络唤醒管理,最终生成唤醒管理日志。本申请的网络控制器在休眠模式下对存在网络唤醒请求的控制器进行捕获,并生成独立的唤醒管理日志和总线数据进行独立存储以作备证,可以解决车辆故障排查难的问题。The technical solution provided by this embodiment first detects the network mode of the network controller through the microprocessor; if the network mode is the sleep mode, the type of the network wake-up request is determined when the network wake-up request is received; and then based on the type of the network wake-up request , manage the network wake-up request to obtain the corresponding wake-up management log, and store the wake-up management log to the memory unit in the network controller. When the network controller is in sleep mode, this application first analyzes the type of network wake-up request when receiving a network wake-up request, then performs different measures for network wake-up management for different types of network wake-up requests, and finally generates a wake-up management log. The network controller of this application captures controllers with network wake-up requests in sleep mode, and generates independent wake-up management logs and bus data for independent storage as evidence, which can solve the problem of difficult vehicle troubleshooting.
下面描述本发明实施例提供的网络唤醒的管理方法,图2为本申请实施例提供的一种网络唤醒的管理方法的第二流程示意图。本申请实施例是在上述实施例的基础上进行细化,本实施例对网络控制器的网络模式为预休眠模式和工作模式时网络管理过程进行详细的解释说明。The following describes a wake-on-LAN management method provided by an embodiment of the present invention. FIG. 2 is a second flowchart of a wake-on-LAN management method provided by an embodiment of the present application. The embodiment of the present application is refined on the basis of the above-mentioned embodiment. This embodiment explains in detail the network management process when the network mode of the network controller is the pre-sleep mode and the working mode.
参见图2,本实施例的方法包括但不限于如下步骤:Referring to Figure 2, the method of this embodiment includes but is not limited to the following steps:
S210、检测网络控制器的网络模式。S210. Detect the network mode of the network controller.
本步骤的相关内容参见图1实施例的步骤S110,此处不再赘述。For the relevant content of this step, please refer to step S110 in the embodiment of FIG. 1 and will not be described again here.
S220、若网络模式为休眠模式,则在接收到网络唤醒请求时确定网络唤醒请求的类型;基于网络唤醒请求的类型,对网络唤醒请求进行管理得到对应的唤醒管理日志,并将唤醒管理日志存储至网络控制器中的内存单元。 S220. If the network mode is the sleep mode, determine the type of the network wake-up request when receiving the network wake-up request; based on the type of the network wake-up request, manage the network wake-up request to obtain the corresponding wake-up management log, and store the wake-up management log to the memory unit in the network controller.
本步骤的相关内容参见图1实施例的步骤S120-S130,此处不再赘述。For relevant content of this step, please refer to steps S120-S130 in the embodiment of Figure 1, which will not be described again here.
S230、响应于网络模式为预休眠模式,获取控制器局域网络(CAN)总线上的残余网络管理报文。S230. In response to the network mode being the pre-sleep mode, obtain residual network management messages on the controller area network (CAN) bus.
在本申请实施例中,车辆电源关闭之后的预设时间(如五分钟)内网络控制器的网络模式会处于预休眠模式。当网络控制器处于预休眠模式下时,仅允许接收ECU节点的网络唤醒请求,对于早已在发送缓存器(Buffer)中的报文应发送完毕后立刻停止。In this embodiment of the present application, the network mode of the network controller will be in the pre-sleep mode within a preset time (such as five minutes) after the vehicle power is turned off. When the network controller is in pre-sleep mode, it is only allowed to receive network wake-up requests from ECU nodes. Messages already in the sending buffer (Buffer) should stop immediately after being sent.
在本申请实施例中,当网络控制器的网络模式为预休眠模式时,网络控制器会主动监测CAN总线上是否还有残余网络管理报文,若有,则主动获取残余网络管理报文。In this embodiment of the present application, when the network mode of the network controller is the pre-sleep mode, the network controller will actively monitor whether there are residual network management messages on the CAN bus, and if so, actively obtain the residual network management messages.
S240、确定残余网络管理报文的标识码和时间戳。S240. Determine the identification code and timestamp of the remaining network management message.
在本申请实施例中,经上述步骤S230,网络控制器获取到残余网络管理报文之后,再确定残余网络管理报文的标识码和时间戳。In this embodiment of the present application, after the network controller obtains the residual network management message through the above-mentioned step S230, it then determines the identification code and timestamp of the residual network management message.
S250、基于残余网络管理报文、残余网络管理报文的标识码和残余网络管理报文的时间戳生成休眠管理日志,并将休眠管理日志存储至内存单元。S250: Generate a sleep management log based on the residual network management message, the identification code of the residual network management message, and the timestamp of the residual network management message, and store the sleep management log in the memory unit.
其中,休眠管理日志设置为记录在网络模式为预休眠模式时网络中收发的报文信息。Among them, the sleep management log is set to record the message information sent and received in the network when the network mode is pre-sleep mode.
示例性的,假如残余网络管理报文为b报文,残余网络管理报文的标识码为B组件,残余网络管理报文的时间戳为2022年3月16日15:36,那么休眠管理日志可以是:预休眠模式-B组件-b报文-202203161536。For example, if the residual network management message is a b message, the identification code of the residual network management message is the B component, and the timestamp of the residual network management message is 15:36 on March 16, 2022, then the dormant management log It can be: pre-sleep mode-B component-b message-202203161536.
S260、响应于网络模式切换为工作模式,将唤醒管理日志和休眠管理日志发送至服务器,以使服务器根据唤醒管理日志和休眠管理日志排查电子设备是否发生故障。S260. In response to the network mode switching to the working mode, send the wake-up management log and the sleep management log to the server, so that the server can check whether the electronic device fails based on the wake-up management log and the sleep management log.
其中,网络控制器具备与服务器连接和上传文件的功能,车辆上电后还可以随时接受服务器的数据调取,以实现远程排查故障的能力。当网络服务器处于工作模式时报文可以正常收发,而当网络服务器处在预休眠模式阶段则不允 许发送报文。Among them, the network controller has the function of connecting to the server and uploading files. After the vehicle is powered on, it can also accept data retrieval from the server at any time to achieve remote troubleshooting capabilities. When the network server is in working mode, messages can be sent and received normally, but when the network server is in pre-sleep mode, messages are not allowed to be sent and received. Allow sending messages.
在本申请实施例中,当网络控制器处于休眠模式时,网络控制器记录唤醒管理日志,并将唤醒管理日志存储至网络控制器中的内存单元;当网络控制器处于预休眠模式时,网络控制器记录休眠管理日志,并将休眠管理日志存储至网络控制器中的内存单元。当网络模式从休眠模式或者预休眠模式切换为工作模式时,网络控制器可以将唤醒管理日志和休眠管理日志发送至服务器,以使服务器根据唤醒管理日志和休眠管理日志排查电子设备是否发生故障。In the embodiment of the present application, when the network controller is in the sleep mode, the network controller records the wake-up management log and stores the wake-up management log to the memory unit in the network controller; when the network controller is in the pre-sleep mode, the network controller The controller records the hibernation management log and stores the hibernation management log to the memory unit in the network controller. When the network mode switches from the sleep mode or the pre-sleep mode to the working mode, the network controller can send the wake-up management log and the sleep management log to the server, so that the server can check whether the electronic device malfunctions based on the wake-up management log and the sleep management log.
需要说明的是,S220对应的是网络模式为休眠模式的过程,S230-S250对应的是网络模式为预休眠模式的过程,这两个过程是相互独立的,本申请实施例不对这两个过程的执行顺序进行限定,需要根据实际情况来确定两个过程的执行顺序,所以实际执行时可以是按照本申请上述实施例介绍的顺序执行,也可以是先执行S230-S250,再执行S220。It should be noted that S220 corresponds to the process of the network mode being in the sleep mode, and S230-S250 corresponds to the process of the network mode being in the pre-sleep mode. These two processes are independent of each other. The embodiment of the present application does not cover these two processes. The execution order of the two processes needs to be determined according to the actual situation. Therefore, the actual execution may be in the order introduced in the above embodiments of this application, or S230-S250 may be executed first, and then S220 may be executed.
本实施例提供的技术方案,通过检测网络控制器的网络模式;若网络模式为休眠模式,则在接收到网络唤醒请求时确定网络唤醒请求的类型;基于网络唤醒请求的类型,对网络唤醒请求进行管理得到对应的唤醒管理日志,并将唤醒管理日志存储至网络控制器中的内存单元;当网络模式为预休眠模式时,获取控制器局域网络CAN总线上的残余网络管理报文;确定残余网络管理报文的标识码和时间戳;基于残余网络管理报文、残余网络管理报文的标识码和残余网络管理报文的时间戳生成休眠管理日志,并将休眠管理日志存储至内存单元;当网络模式切换为工作模式时,将唤醒管理日志和休眠管理日志发送至服务器,以使服务器根据唤醒管理日志和休眠管理日志排查电子设备是否发生故障。本申请在网络控制器处于休眠模式下时,对存在网络唤醒请求的控制器进行捕获,生成唤醒管理日志;在网络控制器处于预休眠模式下时,对导致网络无法休眠的控制器进行捕获,生成休眠管理日志;并将唤醒管理日志、休眠管理日志和总线数据进行独立存储以作备证,适时向服务器上传唤醒管理日志和休眠管理日志,以方便开发人员排查车辆内部存在故障的控制器,可以解决车辆故障排 查难的问题。The technical solution provided by this embodiment detects the network mode of the network controller; if the network mode is the sleep mode, the type of the network wake-up request is determined when receiving the network wake-up request; based on the type of the network wake-up request, the network wake-up request is processed Perform management to obtain the corresponding wake-up management log, and store the wake-up management log to the memory unit in the network controller; when the network mode is pre-sleep mode, obtain the residual network management messages on the CAN bus of the controller's local network; determine the remaining The identification code and timestamp of the network management message; generate a sleep management log based on the residual network management message, the identification code of the residual network management message, and the timestamp of the residual network management message, and store the sleep management log in the memory unit; When the network mode is switched to the working mode, the wake-up management log and the sleep management log are sent to the server, so that the server can check whether the electronic device is faulty based on the wake-up management log and the sleep management log. When the network controller is in sleep mode, this application captures controllers with network wake-up requests and generates wake-up management logs; when the network controller is in pre-sleep mode, it captures controllers that cause the network to be unable to sleep. Generate sleep management logs; store wake-up management logs, sleep management logs, and bus data independently as evidence, and upload wake-up management logs and sleep management logs to the server in a timely manner to facilitate developers to troubleshoot faulty controllers inside the vehicle. Can solve vehicle troubleshooting Difficult questions.
图3为本申请实施例提供的一种网络唤醒的管理装置的结构示意图,如图3所示,该装置300可以包括:Figure 3 is a schematic structural diagram of a wake-on-network management device provided by an embodiment of the present application. As shown in Figure 3, the device 300 may include:
检测模块310,设置为检测网络控制器的网络模式;The detection module 310 is configured to detect the network mode of the network controller;
确定模块320,设置为响应于所述网络模式为休眠模式,在接收到网络唤醒请求时确定所述网络唤醒请求的类型;The determining module 320 is configured to determine the type of the network wake-up request when receiving a network wake-up request in response to the network mode being the sleep mode;
管理模块330,设置为基于所述网络唤醒请求的类型,对所述网络唤醒请求进行管理得到对应的唤醒管理日志,并将所述唤醒管理日志存储至所述网络控制器中的内存单元。The management module 330 is configured to manage the network wake-up request to obtain a corresponding wake-up management log based on the type of the network wake-up request, and store the wake-up management log in a memory unit in the network controller.
示例性的,上述管理模块330可以包括第一管理单元和第二管理单元;Exemplarily, the above-mentioned management module 330 may include a first management unit and a second management unit;
所述第一管理单元,可以设置为:响应于所述网络唤醒请求的类型为本地唤醒请求,从所述网络控制器中确定发出所述本地唤醒请求的组件;确定所述组件的名称和所述本地唤醒请求的时间戳;基于所述组件的名称和所述本地唤醒请求的时间戳生成第一唤醒管理日志。The first management unit may be configured to: in response to the type of the network wake-up request being a local wake-up request, determine the component that issued the local wake-up request from the network controller; determine the name of the component and the and generating a first wakeup management log based on the name of the component and the timestamp of the local wakeup request.
所述第二管理单元,可以设置为:响应于所述网络唤醒请求的类型为远程唤醒请求,获取因所述远程唤醒请求导致所述网络控制器中断的网络中断报文,并记录当前唤醒时间点;基于所述网络中断报文确定发出所述远程唤醒请求的第一控制器;基于所述网络中断报文、所述第一控制器、所述当前唤醒时间点生成第二唤醒管理日志。The second management unit may be configured to: in response to the type of the network wake-up request being a remote wake-up request, obtain a network interruption message that causes the network controller to be interrupted due to the remote wake-up request, and record the current wake-up time point; determine the first controller that issues the remote wake-up request based on the network interruption message; generate a second wake-up management log based on the network interruption message, the first controller, and the current wake-up time point.
示例性的,上述第二管理单元,可以设置为:在基于所述网络中断报文、所述第一控制器、所述当前唤醒时间点生成第二唤醒管理日志之前,确定所述第一控制器所在的网段;获取所述当前唤醒时间点之后预设时间内的所述网段的稳定网络管理报文;基于所述稳定网络管理报文确定发出所述远程唤醒请求的第二控制器;确定所述第一控制器和所述第二控制器是否为同一个控制器;第一控制器和第二控制器是同一个控制器,执行基于所述网络中断报文、所述 第一控制器、所述当前唤醒时间点生成第二唤醒管理日志的操作。Exemplarily, the above-mentioned second management unit may be configured to: before generating a second wake-up management log based on the network interruption message, the first controller, and the current wake-up time point, determine the first control The network segment where the controller is located; obtain the stable network management message of the network segment within the preset time after the current wake-up time point; determine the second controller that issues the remote wake-up request based on the stable network management message ; Determine whether the first controller and the second controller are the same controller; the first controller and the second controller are the same controller, and execute the The first controller generates a second wake-up management log at the current wake-up time point.
示例性的,上述第二管理单元,还可以设置为:根据所述稳定网络管理报文确定存在所述远程唤醒请求的多个控制器;对所述多个控制器的唤醒原因进行分析得到分析结果;基于所述分析结果从所述多个控制器中找出所述唤醒原因为自身唤醒的第二控制器。Exemplarily, the above-mentioned second management unit may also be configured to: determine multiple controllers that have the remote wake-up request according to the stable network management message; analyze the wake-up reasons of the multiple controllers to obtain the analysis Result: Based on the analysis result, a second controller whose wake-up reason is its own wake-up is found from the plurality of controllers.
示例性的,上述网络唤醒的管理装置,还可以包括:预休眠管理模块;Exemplarily, the above-mentioned network wake-up management device may also include: a pre-sleep management module;
所述预休眠管理模块,设置为响应于所述网络模式为预休眠模式,获取控制器局域网络CAN总线上的残余网络管理报文;确定所述残余网络管理报文的标识码和时间戳;基于所述残余网络管理报文、所述残余网络管理报文的标识码和所述残余网络管理报文的时间戳生成休眠管理日志,并将所述休眠管理日志存储至所述内存单元。The pre-sleep management module is configured to obtain residual network management messages on the CAN bus of the controller local network in response to the network mode being the pre-sleep mode; determine the identification code and timestamp of the residual network management messages; A sleep management log is generated based on the residual network management message, the identification code of the residual network management message, and the timestamp of the residual network management message, and the sleep management log is stored in the memory unit.
示例性的,上述网络唤醒的管理装置,还可以包括:日志发送模块;Exemplarily, the above-mentioned wake-on-network management device may also include: a log sending module;
所述日志发送模块,设置为响应于所述网络模式切换为工作模式,将所述唤醒管理日志和所述休眠管理日志发送至服务器,以使所述服务器根据所述唤醒管理日志和所述休眠管理日志排查电子设备是否发生故障。The log sending module is configured to send the wake-up management log and the sleep management log to the server in response to the network mode switching to the working mode, so that the server can send the wake-up management log and the sleep management log to the server according to the wake-up management log and the sleep management log. Manage logs to check whether electronic equipment malfunctions.
本实施例提供的网络唤醒的管理装置可适用于上述任意实施例提供的网络唤醒的管理方法,具备相应的功能和效果。The wake-on-LAN management device provided in this embodiment can be applied to the wake-on-LAN management method provided in any of the above embodiments, and has corresponding functions and effects.
图4示出了可以用来实施本申请的实施例的电子设备10的结构示意图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备(如头盔、眼镜、手表等)和其它类似的计算装置。本文所示的部件、它们的连接关系、以及它们的功能仅仅作为示例,并且不意在限制本申请的保护范围。FIG. 4 shows a schematic structural diagram of an electronic device 10 that can be used to implement embodiments of the present application. Electronic devices are intended to refer to various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (eg, helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connection relationships, and their functions are only examples and are not intended to limit the scope of the present application.
如图4所示,电子设备10包括至少一个处理器11,以及与至少一个处理 器11通信连接的存储器,如只读存储器(Read-Only Memory,ROM)12、随机访问存储器(Random Access Memory,RAM)13等,其中,存储器存储有可被至少一个处理器执行的计算机程序,处理器11可以根据存储在只读存储器(ROM)12中的计算机程序或者从存储单元18加载到随机访问存储器(RAM)13中的计算机程序,来执行各种适当的动作和处理。在RAM 13中,还可存储电子设备10操作所需的各种程序和数据。处理器11、ROM 12以及RAM 13通过总线14彼此相连。输入/输出(Input/Output,I/O)接口15也连接至总线14。As shown in FIG. 4 , the electronic device 10 includes at least one processor 11 and at least one processing unit 11 . A memory that is communicatively connected to the processor 11, such as a read-only memory (Read-Only Memory, ROM) 12, a random access memory (Random Access Memory, RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, The processor 11 can perform various appropriate actions and processes according to a computer program stored in the read-only memory (ROM) 12 or loaded from the storage unit 18 into the random access memory (RAM) 13 . In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via the bus 14. An input/output (I/O) interface 15 is also connected to the bus 14 .
电子设备10中的多个部件连接至I/O接口15,包括:输入单元16,例如键盘、鼠标等;输出单元17,例如各种类型的显示器、扬声器等;存储单元18,例如磁盘、光盘等;以及通信单元19,例如网卡、调制解调器、无线通信收发机等。通信单元19允许电子设备10通过诸如因特网的计算机网络和各种电信网络与其他设备交换信息/数据。Multiple components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc. etc.; and communication unit 19, such as network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices through computer networks such as the Internet and various telecommunications networks.
处理器11可以是各种具有处理和计算能力的通用或专用处理组件。处理器11的示例包括但不限于中央处理单元(Central Processing Unit,CPU)、图形处理单元(Graphics Processing Unit,GPU)、各种专用的人工智能(Artificial Intelligence,AI)计算芯片、各种运行机器学习模型算法的处理器、数字信号处理器(Digital Signal Processing,DSP)、以及任何适当的处理器、控制器、微控制器等。处理器11执行上文所描述的方法和处理,例如网络唤醒的管理方法。Processor 11 may be a variety of general or special purpose processing components having processing and computing capabilities. Examples of the processor 11 include, but are not limited to, a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), various dedicated artificial intelligence (Artificial Intelligence, AI) computing chips, and various running machines. Processor of learning model algorithm, digital signal processor (Digital Signal Processing, DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the above-described methods and processes, such as the management method of network wake-up.
在一些实施例中,网络唤醒的管理方法可被实现为计算机程序,其被有形地包含于计算机可读存储介质,例如存储单元18。在一些实施例中,计算机程序的部分或者全部可以经由ROM 12和通信单元19中至少之一而被载入或安装到电子设备10上。当计算机程序加载到RAM 13并由处理器11执行时,可以执行上文描述的网络唤醒的管理方法的至少一个步骤。备选地,在其他实施例中,处理器11可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行网络唤醒的管理方法。 In some embodiments, the method for managing wake-on-LAN may be implemented as a computer program, which is tangibly included in a computer-readable storage medium, such as the storage unit 18 . In some embodiments, part or all of the computer program may be loaded or installed onto the electronic device 10 via at least one of the ROM 12 and the communication unit 19 . When the computer program is loaded into the RAM 13 and executed by the processor 11, at least one step of the above-described management method for wake-on-LAN may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the wake-on-LAN management method in any other suitable manner (eg, by means of firmware).
本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(Field Programmable Gate Array,FPGA)、专用集成电路(Application Specific Integrated Circuit,ASIC)、专用标准产品(Application Specific Standard Parts,ASSP)、芯片上系统(System on Chip,SOC)、复杂可编程逻辑设备(Complex Programmable Logic Device,CPLD)、计算机硬件、固件、软件、和它们的组合中实现。这些各种实施方式可以包括:实施在至少一个计算机程序中,该至少一个计算机程序可在包括至少一个可编程处理器的可编程系统上执行或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described above may be implemented in digital electronic circuit systems, integrated circuit systems, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Implemented in Application Specific Standard Parts (ASSP), System on Chip (SOC), Complex Programmable Logic Device (CPLD), computer hardware, firmware, software, and their combinations . These various embodiments may include implementation in at least one computer program executable or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general purpose programmable processor. The processor is programmed to receive data and instructions from and transfer data and instructions to the storage system, the at least one input device, and the at least one output device.
用于实施本申请的方法的计算机程序可以采用至少一个编程语言的任何组合来编写。这些计算机程序可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器,使得计算机程序当由处理器执行时使流程图和框图中所规定的功能或操作被实施。计算机程序可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Computer programs for implementing the methods of the present application may be written in any combination of at least one programming language. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer program causes the functions or operations specified in the flowcharts and block diagrams to be implemented. A computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
在本申请的上下文中,计算机可读存储介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的计算机程序。计算机可读存储介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。备选地,计算机可读存储介质可以是机器可读信号介质。机器可读存储介质的示例会包括基于至少一个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM)、快闪存储器、光纤、便捷式紧凑盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光学 储存设备、磁储存设备、或上述内容的任何合适组合。In the context of this application, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. Computer-readable storage media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium may be a machine-readable signal medium. Examples of machine-readable storage media would include an electrical connection based on at least one wire, a portable computer disk, a hard disk, random access memory (RAM), read only memory (ROM), Erasable Programmable Read -Only Memory, EPROM), flash memory, optical fiber, portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
为了提供与用户的交互,可以在电子设备上实施此处描述的系统和技术,该电子设备具有:用于向用户显示信息的显示装置(例如,阴极射线管(Cathode Ray Tube,CRT)或者液晶显示器(Liquid Crystal Display,LCD)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给电子设备。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having a display device (e.g., a cathode ray tube (CRT) or liquid crystal) for displaying information to the user. A display (Liquid Crystal Display, LCD monitor); and a keyboard and pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and may be provided in any form, including Acoustic input, voice input or tactile input) to receive input from the user.
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(Local Area Network,LAN)、广域网(Wide Area Network,WAN)、区块链网络和互联网。The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., A user's computer having a graphical user interface or web browser through which the user can interact with implementations of the systems and technologies described herein), or including such backend components, middleware components, or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communications network). Examples of communication networks include: Local Area Network (LAN), Wide Area Network (WAN), blockchain network, and the Internet.
计算系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与虚拟专用服务器(Virtual Private Server,VPS)中,存在的管理难度大,业务扩展性弱的缺陷。Computing systems may include clients and servers. Clients and servers are generally remote from each other and typically interact over a communications network. The relationship of client and server is created by computer programs running on corresponding computers and having a client-server relationship with each other. The server can be a cloud server, also known as cloud computing server or cloud host. It is a host product in the cloud computing service system to solve the management problems that exist in traditional physical hosts and virtual private servers (VPS). It has the disadvantages of high difficulty and weak business scalability.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本申请中记载的步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本申请的技术方案所期望的结果,本文在此不进 行限制。 It should be understood that various forms of the process shown above may be used, with steps reordered, added or deleted. For example, the steps described in this application can be executed in parallel, sequentially, or in different orders. As long as the desired results of the technical solution of this application can be achieved, this article will not go into details here. row restrictions.

Claims (10)

  1. 一种网络唤醒的管理方法,包括:A management method for network wake-up, including:
    检测网络控制器的网络模式;Detect the network mode of the network controller;
    响应于所述网络模式为休眠模式,在接收到网络唤醒请求时确定所述网络唤醒请求的类型;In response to the network mode being the sleep mode, determining the type of the network wake-up request when receiving the network wake-up request;
    基于所述网络唤醒请求的类型,对所述网络唤醒请求进行管理得到对应的唤醒管理日志,并将所述唤醒管理日志存储至所述网络控制器中的内存单元。Based on the type of the network wake-up request, the network wake-up request is managed to obtain a corresponding wake-up management log, and the wake-up management log is stored in a memory unit in the network controller.
  2. 根据权利要求1所述的网络唤醒的管理方法,其中,所述基于所述网络唤醒请求的类型,对所述网络唤醒请求进行管理得到对应的唤醒管理日志,包括:The management method of network wake-up according to claim 1, wherein said managing the network wake-up request to obtain a corresponding wake-up management log based on the type of the network wake-up request includes:
    响应于所述网络唤醒请求的类型为本地唤醒请求,从所述网络控制器中确定发出所述本地唤醒请求的组件;In response to the type of the network wake-up request being a local wake-up request, determine the component that issued the local wake-up request from the network controller;
    确定所述组件的名称和所述本地唤醒请求的时间戳;Determine the name of the component and the timestamp of the local wake request;
    基于所述组件的名称和所述本地唤醒请求的时间戳生成第一唤醒管理日志。A first wake management log is generated based on the name of the component and the timestamp of the local wake request.
  3. 根据权利要求1所述的网络唤醒的管理方法,其中,所述基于所述网络唤醒请求的类型,对所述网络唤醒请求进行管理得到对应的唤醒管理日志,包括:The management method of network wake-up according to claim 1, wherein said managing the network wake-up request to obtain a corresponding wake-up management log based on the type of the network wake-up request includes:
    响应于所述网络唤醒请求的类型为远程唤醒请求,获取因所述远程唤醒请求导致所述网络控制器中断的网络中断报文,并记录当前唤醒时间点;In response to the type of the network wake-up request being a remote wake-up request, obtain a network interruption message that causes the network controller to be interrupted due to the remote wake-up request, and record the current wake-up time point;
    基于所述网络中断报文确定发出所述远程唤醒请求的第一控制器;Determine the first controller that issues the remote wakeup request based on the network interrupt message;
    基于所述网络中断报文、所述第一控制器、所述当前唤醒时间点生成第二唤醒管理日志。Generate a second wake-up management log based on the network interruption message, the first controller, and the current wake-up time point.
  4. 根据权利要求3所述的网络唤醒的管理方法,其中,在基于所述网络中断报文、所述第一控制器、所述当前唤醒时间点生成第二唤醒管理日志之前,还包括:The management method of network wake-up according to claim 3, wherein before generating the second wake-up management log based on the network interruption message, the first controller, and the current wake-up time point, it further includes:
    确定所述第一控制器所在的网段;Determine the network segment where the first controller is located;
    获取所述当前唤醒时间点之后预设时间内的所述网段的稳定网络管理报文; Obtain stable network management messages of the network segment within a preset time after the current wake-up time point;
    基于所述稳定网络管理报文确定发出所述远程唤醒请求的第二控制器;Determine the second controller that issues the remote wakeup request based on the stable network management message;
    确定所述第一控制器和所述第二控制器是否为同一个控制器;Determine whether the first controller and the second controller are the same controller;
    所述第一控制器和所述第二控制器是同一个控制器,执行基于所述网络中断报文、所述第一控制器、所述当前唤醒时间点生成第二唤醒管理日志的操作。The first controller and the second controller are the same controller, and perform an operation of generating a second wake-up management log based on the network interruption message, the first controller, and the current wake-up time point.
  5. 根据权利要求4所述的网络唤醒的管理方法,其中,所述基于所述稳定网络管理报文确定发出所述远程唤醒请求的第二控制器,包括:The management method of network wake-up according to claim 4, wherein the determining the second controller that issues the remote wake-up request based on the stable network management message includes:
    根据所述稳定网络管理报文确定存在所述远程唤醒请求的多个控制器;Determine multiple controllers that have the remote wakeup request according to the stable network management message;
    对所述多个控制器的唤醒原因进行分析得到分析结果;Analyze the wake-up reasons of the multiple controllers to obtain analysis results;
    基于所述分析结果从所述多个控制器中找出所述唤醒原因为自身唤醒的第二控制器。Based on the analysis results, a second controller whose wake-up reason is its own wake-up is found from the plurality of controllers.
  6. 根据权利要求1所述的网络唤醒的管理方法,还包括:The management method for network wake-up according to claim 1, further comprising:
    响应于所述网络模式为预休眠模式,获取控制器局域网络CAN总线上的残余网络管理报文;In response to the network mode being the pre-sleep mode, obtain residual network management messages on the CAN bus of the controller local network;
    确定所述残余网络管理报文的标识码和时间戳;Determine the identification code and timestamp of the residual network management message;
    基于所述残余网络管理报文、所述残余网络管理报文的标识码和所述残余网络管理报文的时间戳生成休眠管理日志,并将所述休眠管理日志存储至所述内存单元。A sleep management log is generated based on the residual network management message, the identification code of the residual network management message, and the timestamp of the residual network management message, and the sleep management log is stored in the memory unit.
  7. 根据权利要求6所述的网络唤醒的管理方法,还包括:The management method for network wake-up according to claim 6, further comprising:
    响应于所述网络模式切换为工作模式,将所述唤醒管理日志和所述休眠管理日志发送至服务器,以使所述服务器根据所述唤醒管理日志和所述休眠管理日志排查电子设备是否发生故障。In response to the network mode switching to the working mode, the wake-up management log and the sleep management log are sent to the server, so that the server checks whether the electronic device malfunctions according to the wake-up management log and the sleep management log. .
  8. 一种网络唤醒的管理装置,包括:A management device for network wake-up, including:
    检测模块(310),设置为检测网络控制器的网络模式;The detection module (310) is configured to detect the network mode of the network controller;
    确定模块(320),设置为响应于所述网络模式为休眠模式,在接收到网络唤醒请求时确定所述网络唤醒请求的类型;Determining module (320), configured to determine the type of the network wake-up request when receiving a network wake-up request in response to the network mode being the sleep mode;
    管理模块(330),设置为基于所述网络唤醒请求的类型,对所述网络唤醒 请求进行管理得到对应的唤醒管理日志,并将所述唤醒管理日志存储至所述网络控制器中的内存单元。The management module (330) is configured to, based on the type of the network wake-up request, control the network wake-up request. Request management to obtain a corresponding wake-up management log, and store the wake-up management log into a memory unit in the network controller.
  9. 一种电子设备,包括:An electronic device including:
    至少一个处理器(11);以及at least one processor (11); and
    与所述至少一个处理器(11)通信连接的存储器;其中,A memory communicatively connected to the at least one processor (11); wherein,
    所述存储器存储有可被所述至少一个处理器(11)执行的计算机程序,所述计算机程序被所述至少一个处理器(11)执行,以使所述至少一个处理器(11)能够执行权利要求1至7中任一所述的网络唤醒的管理方法。The memory stores a computer program executable by the at least one processor (11), the computer program is executed by the at least one processor (11), so that the at least one processor (11) can execute The management method of network wake-up according to any one of claims 1 to 7.
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,所述计算机指令设置为使处理器执行时实现权利要求1至7中任一所述的网络唤醒的管理方法。 A computer-readable storage medium stores computer instructions, and the computer instructions are configured to enable a processor to implement the network wake-up management method described in any one of claims 1 to 7 when executed.
PCT/CN2023/095232 2022-05-20 2023-05-19 Network wakeup management method and apparatus, electronic device, and storage medium WO2023222109A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210553092.0A CN114978883B (en) 2022-05-20 2022-05-20 Network wakeup management method and device, electronic equipment and storage medium
CN202210553092.0 2022-05-20

Publications (1)

Publication Number Publication Date
WO2023222109A1 true WO2023222109A1 (en) 2023-11-23

Family

ID=82985756

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/095232 WO2023222109A1 (en) 2022-05-20 2023-05-19 Network wakeup management method and apparatus, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN114978883B (en)
WO (1) WO2023222109A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114978883B (en) * 2022-05-20 2023-10-20 中国第一汽车股份有限公司 Network wakeup management method and device, electronic equipment and storage medium
CN117792809A (en) * 2024-02-28 2024-03-29 中国第一汽车股份有限公司 Vehicle network management method, device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110758289A (en) * 2019-10-31 2020-02-07 上海赫千电子科技有限公司 Sleep and wake-up method of in-vehicle hybrid network comprising vehicle-mounted Ethernet
CN113015135A (en) * 2021-03-29 2021-06-22 重庆长安汽车股份有限公司 Dormancy awakening method for remote monitoring vehicle-end controller based on network management
CN113364613A (en) * 2021-05-19 2021-09-07 东风汽车集团股份有限公司 Fault positioning method and system
US20220001835A1 (en) * 2020-07-01 2022-01-06 Ford Global Technologies, Llc Detecting abnormal can bus wake-up pattern
CN114978883A (en) * 2022-05-20 2022-08-30 中国第一汽车股份有限公司 Network wake-up management method and device, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130212413A1 (en) * 2012-01-07 2013-08-15 Acer Cloud Technology, Inc. Cloud Remote Wakeup
US9710045B2 (en) * 2015-10-14 2017-07-18 Quanta Computer Inc. Managing network wake-up commands
CN106302060A (en) * 2016-07-26 2017-01-04 广州汽车集团股份有限公司 A kind of car load dormancy awakening method, system and automotive CAN network gateway
CN111532227B (en) * 2020-07-02 2020-10-20 深圳市法拉第电驱动有限公司 CAN network management method and system for electric vehicle controller
CN113691396A (en) * 2021-08-09 2021-11-23 浙江吉利控股集团有限公司 Whole vehicle network abnormal dormancy awakening monitoring method and device and storage medium
CN114024864B (en) * 2021-11-17 2023-02-03 中国科学院合肥物质科学研究院 Dormancy anomaly detection method based on AUTOSAR network management

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110758289A (en) * 2019-10-31 2020-02-07 上海赫千电子科技有限公司 Sleep and wake-up method of in-vehicle hybrid network comprising vehicle-mounted Ethernet
US20220001835A1 (en) * 2020-07-01 2022-01-06 Ford Global Technologies, Llc Detecting abnormal can bus wake-up pattern
CN113015135A (en) * 2021-03-29 2021-06-22 重庆长安汽车股份有限公司 Dormancy awakening method for remote monitoring vehicle-end controller based on network management
CN113364613A (en) * 2021-05-19 2021-09-07 东风汽车集团股份有限公司 Fault positioning method and system
CN114978883A (en) * 2022-05-20 2022-08-30 中国第一汽车股份有限公司 Network wake-up management method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114978883A (en) 2022-08-30
CN114978883B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
WO2023222109A1 (en) Network wakeup management method and apparatus, electronic device, and storage medium
WO2020029407A1 (en) Alarm data management method and apparatus, and computer device and storage medium
US10963458B2 (en) Federated chatbots
US8806246B1 (en) Enforcing and complying with a computing device power policy
WO2024032441A1 (en) Device wake-up method, apparatus and system, and electronic device and storage medium
US9535482B2 (en) Methods, systems, and computer readable media for controlling processor card power consumption in a network test equipment chassis that includes a plurality of processor cards
CN117280327B (en) Detecting data center large scale interruptions through near real time/offline data using machine learning models
CN110445667B (en) Link delay detection method, device, storage medium and terminal
CN114328132A (en) Method, device, equipment and medium for monitoring state of external data source
CN116684302A (en) Method and device for testing vehicle-mounted Ethernet
WO2021155683A1 (en) Log printing method and apparatus, electronic device, and storage medium
US8738939B2 (en) System and method for testing WOL function of computers
CN116700776A (en) Information management method, device, equipment and storage medium of battery management system
CN115098294B (en) Abnormal event processing method, electronic equipment and management terminal
WO2019109922A1 (en) Resource processing method and system, storage medium and electronic device
CN111935337B (en) MAC address keep-alive method, equipment and storage medium of aggregation link
CN114189429A (en) System, method, device and medium for monitoring server cluster faults
CN113238815A (en) Interface access control method, device, equipment and storage medium
CN113656239A (en) Monitoring method and device for middleware and computer program product
CN115237641A (en) Fault detection method and device, electronic equipment and readable medium
CN112463514A (en) Monitoring method and device for distributed cache cluster
CN111414267A (en) Far-end eliminating method for abnormal state of cabinet applied to data center
CN115378803B (en) Log management method, device, blockchain node and storage medium
US20220308544A1 (en) Dynamic monitoring
CN115776491A (en) Data sharing method and data sharing system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23807058

Country of ref document: EP

Kind code of ref document: A1