A network fault diagnosis method, device and medium based on local network

By obtaining and parsing vehicle controller wake-up instructions in real time on the vehicle, identifying and awakening vehicle controllers in local network packets, and performing network fault diagnosis, the waste of resources and low fault diagnosis efficiency caused by sleeping and waking up with the vehicle controller is solved. The problem has achieved the improvement of energy conservation and diagnostic efficiency.

CN115755859BActive Publication Date: 2025-02-21CHINA FAW CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211505047.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-28
Publication Date
2025-02-21
Estimated Expiration
2042-11-28

AI Technical Summary

Technical Problem

In the prior art, all vehicle controllers on the vehicle sleep and wake up together lead to waste of resources and low fault diagnosis efficiency.

Method used

By obtaining the vehicle controller wake-up instructions of the target vehicle in real time, analyzing the awakened target vehicle controller, identifying and awakening the vehicle controller in the group in the pre-established local network packets, and performing network fault diagnosis.

Benefits of technology

It saves energy resources, improves the economic benefits of the vehicle and fault diagnosis efficiency, and avoids unnecessary waste of resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115755859B_ABST
    Figure CN115755859B_ABST
Patent Text Reader

Abstract

The present invention discloses a network fault diagnosis method, device and medium based on a local network. The vehicle controller wake-up instruction corresponding to the target vehicle is obtained in real time; if it is determined that the vehicle controller wake-up instruction is received, the target vehicle controller awakened by the vehicle controller wake-up instruction is parsed and obtained; in a plurality of pre-established standard local network groups, the target group to which the target vehicle controller belongs is identified, and all the vehicle controllers in the group included in the target group are obtained; the vehicle controllers in each group are awakened, and network fault diagnosis is performed on the vehicle controllers in each group to obtain network fault diagnosis results. The problem of resource waste caused by all vehicle controllers on the vehicle sleeping and waking up at the same time is solved. The network fault is diagnosed by partially awakening the corresponding vehicle controller, which saves energy resources, improves the economic benefits of the vehicle, and can perform fault diagnosis in a timely manner, thereby improving the efficiency of fault diagnosis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle control, and in particular to a network fault diagnosis method, device and medium based on a local network. Background Art

[0002] With the popularization of autonomous driving and smart cockpits, the functions of the entire vehicle are becoming more and more complex, the number of controllers, sensors, and actuators involved is increasing, the topology is becoming more and more complex, the power consumption of low-voltage electrical modules is increasing, and the demand for energy saving is becoming more and more urgent.

[0003] In the process of realizing the present invention, the inventor found that the prior art has the following defects: At present, the method of all vehicle controllers in the whole vehicle sleeping and waking up at the same time is basically adopted. However, in many scenarios, it is not necessary for all controllers in the whole vehicle to enter the working mode. Since all vehicle controllers sleep and wake up at the same time, it causes a waste of resources and relatively low economic benefits. Summary of the invention

[0004] The present invention provides a network fault diagnosis method, device and medium based on a local network, so as to save energy resources and improve the economic benefits of vehicles and the efficiency of fault diagnosis.

[0005] According to one aspect of the present invention, a network fault diagnosis method based on a local network is provided, which includes:

[0006] Obtain the vehicle controller wake-up command corresponding to the target vehicle in real time;

[0007] If it is determined that the vehicle controller wake-up instruction is received, parsing and obtaining the target vehicle controller woken up by the vehicle controller wake-up instruction;

[0008] In a plurality of pre-established standard local network groups, identifying a target group to which the target vehicle controller belongs, and acquiring all vehicle controllers in the target group;

[0009] Waking up each vehicle controller in the group, and performing network fault diagnosis on each vehicle controller in the group to obtain a network fault diagnosis result;

[0010] Each of the standard local network groups is constructed using a mask of each vehicle controller in a pre-established local network.

[0011] According to another aspect of the present invention, a network fault diagnosis device based on a local network is provided, comprising:

[0012] A vehicle controller wake-up instruction acquisition module is used to acquire the vehicle controller wake-up instruction corresponding to the target vehicle in real time;

[0013] A target vehicle controller determination module is used to parse and obtain a target vehicle controller awakened by the vehicle controller awakening instruction if it is determined that the vehicle controller awakening instruction has been received;

[0014] A target group identification module, used to identify the target group to which the target vehicle controller belongs in a plurality of pre-established standard local network groups, and obtain all the vehicle controllers in the group included in the target group;

[0015] A network fault diagnosis result determination module, used to wake up each vehicle controller in the group, and perform network fault diagnosis on each vehicle controller in the group to obtain a network fault diagnosis result;

[0016] Each of the standard local network groups is constructed using a mask of each vehicle controller in a pre-established local network.

[0017] According to another aspect of the present invention, there is provided an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the local network-based network fault diagnosis method described in any embodiment of the present invention when executing the computer program.

[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the local network-based network fault diagnosis method described in any embodiment of the present invention when executed.

[0019] The technical solution of the embodiment of the present invention is to obtain the vehicle controller wake-up instruction corresponding to the target vehicle in real time; if it is determined that the vehicle controller wake-up instruction is received, then parse and obtain the target vehicle controller awakened by the vehicle controller wake-up instruction; in multiple pre-established standard local network groups, identify the target group to which the target vehicle controller belongs, and obtain all the vehicle controllers in the group included in the target group; wake up the vehicle controllers in each group, and perform network fault diagnosis on the vehicle controllers in each group to obtain network fault diagnosis results. The problem of resource waste caused by all vehicle controllers on the vehicle sleeping and waking up at the same time is solved. By partially waking up the corresponding vehicle controller to diagnose the network fault, energy resources are saved, the economic benefits of the vehicle are improved, and fault diagnosis can be performed in a timely manner, improving the efficiency of fault diagnosis.

[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0022] Figure 1 is a flowchart of a network fault diagnosis method based on a local network provided according to Embodiment 1 of the present invention;

[0023] Figure 2 is a flowchart of another local network-based network fault diagnosis method provided according to Embodiment 2 of the present invention;

[0024] Figure 3 is a structural diagram of a network fault diagnosis device based on a local network provided according to Embodiment 3 of the present invention;

[0025] Figure 4 It is a schematic diagram of the structure of an electronic device provided according to Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0027] It should be noted that the terms "target", "current", etc. in the specification 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 should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order 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, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] Embodiment 1

[0029] Figure 1A flowchart of a network fault diagnosis method based on a local network is provided for Embodiment 1 of the present invention. This embodiment is applicable to the situation where network fault diagnosis of some vehicle controllers is performed among all vehicle controllers. The method can be executed by a network fault diagnosis device based on a local network, and the network fault diagnosis device based on a local network can be implemented in the form of hardware and / or software.

[0030] Correspondingly, such as Figure 1 As shown, the method includes:

[0031] S110. Acquire a vehicle controller wake-up instruction corresponding to the target vehicle in real time.

[0032] The vehicle controller wake-up instruction may be an instruction to wake up a vehicle controller in the target vehicle.

[0033] In this embodiment, the wake-up command may be a vehicle controller triggered by a driver while the target vehicle is driving, or may be an external vehicle controller wake-up command received when the target vehicle is parked.

[0034] For example, suppose that the target vehicle is in motion and the driver presses the headlight on button. The system acquires the vehicle controller wake-up instruction in real time, acquires the vehicle controller wake-up instruction, and performs parsing and processing on the headlight controller and related network fault diagnosis operations. In addition, suppose that the target vehicle is parked and at a certain moment is hit by an external vehicle and needs to turn on the vehicle alarm controller. The system acquires the vehicle controller wake-up instruction in real time, acquires the vehicle controller wake-up instruction, and performs parsing and processing on the vehicle alarm controller and related network fault diagnosis operations.

[0035] S120: If it is determined that the vehicle controller wake-up instruction is received, parse and obtain the target vehicle controller woken up by the vehicle controller wake-up instruction.

[0036] The target vehicle controller may be a vehicle controller obtained by parsing a vehicle controller wake-up instruction, and each vehicle controller wake-up instruction may correspond to a target vehicle controller.

[0037] In this embodiment, when it is determined that a vehicle controller wake-up instruction is received, the vehicle controller wake-up instruction needs to be parsed and processed, and the target vehicle controller can be further determined based on the parsing result, and the target vehicle controller can be woken up.

[0038] S130. Identify the target group to which the target vehicle controller belongs among a plurality of pre-established standard local network groups, and obtain all the vehicle controllers in the group included in the target group.

[0039] The standard local network grouping may be grouped according to the target mask of the standard network message corresponding to each vehicle controller to obtain the corresponding local network grouping. The target grouping may be a grouping in each standard local network grouping, and the grouping is determined by parsing the standard network message sent by the target vehicle controller. The vehicle controllers in the group may be all the vehicle controllers in the target group to which the target vehicle controller belongs.

[0040] In this embodiment, after waking up the target vehicle controller, the bus corresponding to the target vehicle controller is determined, and the target vehicle controller begins to broadcast standard network messages on the bus. Other vehicle controllers on the bus can receive the standard network messages and perform analysis and processing, thereby determining the target group corresponding to the target vehicle controller.

[0041] Exemplarily, it is assumed that among the five standard local network groups pre-established on the target vehicle, standard local network group 1 is PNC1; standard local network group 2 is PNC2; standard local network group 3 is PNC3; standard local network group 4 is PNC4; and standard local network group 5 is PNC5.

[0042] By performing the analysis process, it is identified that the target group to which the target vehicle controller belongs is PNC1. After determining that the target group is PNC1, all the vehicle controllers in the group included in PNC1 can be further acquired.

[0043] Assume that there are four vehicle controllers in PNC1 (respectively, a body vehicle controller, a gateway vehicle controller, a door vehicle controller and a light vehicle controller), and assume that the target vehicle controller is the body vehicle controller.

[0044] Furthermore, in addition to the target vehicle controller (body vehicle controller), there are three vehicle controllers, namely: gateway vehicle controller, door vehicle controller and light vehicle controller. Therefore, it can be determined that there are four vehicle controllers in the group, namely, body vehicle controller, gateway vehicle controller, door vehicle controller and light vehicle controller.

[0045] S140, waking up each vehicle controller in the group, and performing network fault diagnosis on each vehicle controller in the group to obtain a network fault diagnosis result.

[0046] Each of the standard local network groups is constructed using a mask of each vehicle controller in a pre-established local network.

[0047] The network fault diagnosis result may be a fault diagnosis result obtained by controlling each vehicle controller to perform diagnosis processing on the network.

[0048] Continuing with the previous example, it is assumed that the vehicle controllers in the group are determined to be the body vehicle controller, the gateway vehicle controller, the door vehicle controller and the light vehicle controller. Therefore, it is necessary to wake up the gateway vehicle controller, the door vehicle controller and the light vehicle controller (since the body vehicle controller is in the awake state, the awake state of the body vehicle controller can be maintained here), and control each of the vehicle controllers in the group to perform network fault diagnosis, and obtain corresponding network fault diagnosis results based on the network fault diagnosis.

[0049] Optionally, after waking up each vehicle controller in the group and performing network fault diagnosis on each vehicle controller in the group to obtain the network fault diagnosis result, it also includes: feeding back the determined network fault diagnosis result to the user.

[0050] In this embodiment, after the network fault diagnosis result is determined, the obtained network fault diagnosis result may be sent to the target user, and the user performs corresponding processing operations on the target vehicle according to the received network fault diagnosis result.

[0051] The advantage of this setting is that by sending the acquired network fault diagnosis results to the target user, the user can receive information about the target vehicle's fault problem in a timely manner, which can solve the fault problem more promptly and better improve the user experience.

[0052] Optionally, before the real-time acquisition of the vehicle controller wake-up instruction corresponding to the target vehicle, it also includes: acquiring the target mask in the standard network message corresponding to each standard vehicle controller to be grouped; grouping the standard vehicle controllers to be grouped with the same target mask into a group to obtain multiple standard local network groups; wherein each standard local network group includes at least one standard vehicle controller.

[0053] Among them, each standard vehicle controller to be grouped can be a standard vehicle controller that supports local network management. The standard network message can be a network message that each standard vehicle controller can broadcast corresponding to itself, and each standard vehicle controller can correspond to a standard network message. By parsing the standard network message, the grouping processing operation of the standard vehicle controller is performed. The target mask can be a standard mask for judging whether each standard vehicle controller can be grouped.

[0054] In this embodiment, assuming that the number of standard vehicle controllers to be grouped is 40, by parsing the target mask in the standard network message corresponding to the standard vehicle controller, the 40 standard vehicle controllers to be grouped can be divided into 5 groups, that is, 5 standard local network groups are obtained. It can be assumed that in the standard local network group 1, that is, PNC1, there are 4 vehicle controllers in PNC1, namely: body vehicle controller, gateway vehicle controller, door vehicle controller and light vehicle controller.

[0055] Optionally, before obtaining the target mask in the standard network message corresponding to each standard vehicle controller to be grouped, the method further includes: obtaining all standard vehicle controllers of the target vehicle; sequentially obtaining a target standard vehicle controller from all the standard vehicle controllers; determining whether the local network information bit in the standard network message corresponding to the target standard vehicle controller meets a preset supporting local network management condition value, and if so, determining the target standard vehicle controller as the standard vehicle controller to be grouped;

[0056] If not, the target standard vehicle controller is discarded, and the process returns to execute the operation of acquiring a target standard vehicle controller from all the standard vehicle controllers in sequence until all the target standard vehicle controllers are traversed.

[0057] Among them, all standard vehicle controllers may be all standard vehicle controllers in the target vehicle. The target standard vehicle controller may be a standard vehicle controller among all standard vehicle controllers. The local network information bit may be an information flag bit in the standard network message. The local network management support condition value may be a condition bit for determining whether the current local network information bit satisfies the local network management support condition bit.

[0058] Specifically, the partial network information bit may be a Partial Network Information Bit in a standard network message, and the partial network management supporting condition value is that the partial network information bit is 1.

[0059] Furthermore, it is necessary to determine whether the Partial Network Information Bit is 1. If it is 1, it can indicate that the standard vehicle controller supports partial network management. Therefore, the controller supporting partial network management needs to be grouped to obtain standard partial network grouping. Correspondingly, if it is not 1, it can indicate that the standard vehicle controller does not support partial network management. Therefore, the standard vehicle controller does not need to perform standard partial network grouping processing.

[0060] The advantage of this setting is that by judging whether the local network information bits in the standard network messages corresponding to all standard vehicle controllers meet the preset local network management support condition values, the standard vehicle controllers that can be locally managed are determined, and the standard vehicle controllers that meet the conditions are grouped for processing. In this way, the standard vehicle controllers can be accurately grouped and managed, which makes it easier to locally wake up the target standard local network grouping and save energy resources.

[0061] The technical solution of the embodiment of the present invention is to obtain the vehicle controller wake-up instruction corresponding to the target vehicle in real time; if it is determined that the vehicle controller wake-up instruction is received, then parse and obtain the target vehicle controller awakened by the vehicle controller wake-up instruction; in multiple pre-established standard local network groups, identify the target group to which the target vehicle controller belongs, and obtain all the vehicle controllers in the group included in the target group; wake up the vehicle controllers in each group, and perform network fault diagnosis on the vehicle controllers in each group to obtain network fault diagnosis results. The problem of resource waste caused by all vehicle controllers on the vehicle sleeping and waking up at the same time is solved. By partially waking up the corresponding vehicle controller to diagnose the network fault, energy resources are saved, the economic benefits of the vehicle are improved, and fault diagnosis can be performed in a timely manner, improving the efficiency of fault diagnosis.

[0062] Embodiment 2

[0063] Figure 2 A flowchart of another network fault diagnosis method based on a local network is provided for Embodiment 2 of the present invention. This embodiment is optimized based on the above embodiments. In this embodiment, after waking up each vehicle controller in the group and performing network fault diagnosis on each vehicle controller in the group to obtain the network fault diagnosis result, it also includes a specific operational process of judging whether the current time corresponding to the vehicle controller in the target group reaches a preset sleep time threshold.

[0064] Correspondingly, such as Figure 2 As shown, the method includes:

[0065] S210. Acquire a vehicle controller wake-up instruction corresponding to the target vehicle in real time.

[0066] S220: If it is determined that the vehicle controller wake-up instruction is received, parse and obtain the target vehicle controller woken up by the vehicle controller wake-up instruction.

[0067] S230. Among a plurality of pre-established standard local network groups, identify the target group to which the target vehicle controller belongs, and obtain all the vehicle controllers in the group included in the target group.

[0068] S240, waking up each vehicle controller in the group, and performing network fault diagnosis on each vehicle controller in the group to obtain a network fault diagnosis result.

[0069] S250, respectively start the timers corresponding to the vehicle controllers in each group to count the current time.

[0070] The current time may be a time statistic performed by a timer corresponding to a vehicle controller in the group.

[0071] In this embodiment, after the vehicle controllers in each group perform network fault diagnosis and obtain corresponding network fault diagnosis results, it is necessary to start the timer corresponding to the vehicle controllers in each group to perform statistics on the current time.

[0072] S260: If it is determined that the current time corresponding to a target group of vehicle controllers among the vehicle controllers in the groups reaches a preset sleep time threshold, control the target group of vehicle controllers to enter a sleep state.

[0073] The sleep time threshold may be a time threshold for determining whether the vehicle controllers in the group meet the requirements for entering a sleep state.

[0074] In this embodiment, when the current time corresponding to the vehicle controller in the target group reaches a preset sleep time threshold, the vehicle controller in the target group is controlled to enter a sleep state; if the sleep time threshold is not met, the sleep state may not be entered until the sleep time threshold condition is met, and then the sleep state can be entered.

[0075] Optionally, before controlling the vehicle controller in the target group to enter a sleep state, it also includes: obtaining the sleep wake-up state of the vehicle controllers in other groups in the target group fed back by the vehicle controller in the target group; determining whether the vehicle controllers in other groups are all in a sleep state based on the sleep wake-up state, and if so, controlling the vehicle controller in the target group to enter a sleep state; if not, determining the vehicle controller in the target non-sleeping group, and obtaining the current time corresponding to the vehicle controller in the target non-sleeping group, determining the faulty vehicle controller in the group with a fault, and feeding back the fault information to the user.

[0076] The sleep-wake state may be a state describing whether the vehicle controller is in a sleep state or a wake state. The target non-sleep in-group vehicle controller may be an in-group vehicle controller in a wake state. The in-group fault vehicle controller may be an in-group vehicle controller with a fault problem.

[0077] Specifically, when it is determined that a vehicle controller in the group has a fault, that is, a faulty vehicle controller in the group, relevant fault information needs to be fed back for processing.

[0078] In this embodiment, if it is detected that the target group vehicle controller meets the sleep time threshold condition, it is necessary to determine whether other group vehicle controllers in the target group corresponding to the target group vehicle controller are in a sleep state. If all other group vehicle controllers are in a sleep state, it means that all other group vehicle controllers have no faults and are already in a sleep state. On the contrary, it is possible to determine that the group vehicle controller is not asleep, and it is necessary to obtain the current time corresponding to the group vehicle controller that is not asleep and compare it with the sleep time threshold condition to determine the faulty group vehicle controller and perform user feedback operations.

[0079] Optionally, the method of obtaining the current time corresponding to the target non-sleep group's vehicle controller, determining the faulty vehicle controller in the group with a fault, and feeding back the fault information to the user includes: obtaining the current time corresponding to the target non-sleep group's vehicle controller; judging whether the current time reaches a preset sleep time threshold, and if so, determining that the target non-sleep group's vehicle controller is a faulty vehicle controller in the group with a fault, and feeding back the fault information to the user; if not, determining that the current time corresponding to the target non-sleep group's vehicle controller has not reached the time to enter the sleep state.

[0080] In this embodiment, assuming that there are other vehicle controllers in the group that are still in the awake state, it is necessary to determine whether the vehicle controllers in the group that are in the awake state (that is, the vehicle controllers in the group that are not asleep) meet the sleep time threshold conditions. If not, it means that the current time does not meet the sleep time threshold conditions; otherwise, it means that there is a fault in the vehicle controller in the group, which may be a problem of node loss or message timeout, and the fault problem needs to be fed back to the user.

[0081] The advantage of this setting is that by obtaining the sleep-wake-up status of the vehicle controllers in the group, the sleep-wake-up status is judged, thereby determining the faulty vehicle controller in the group and feeding back the fault information to the user. This ensures the reliability of local network diagnosis, enables timely fault detection, and feeds back the detected fault results to the user, thereby improving the user experience and avoiding the occurrence of unsafe accidents caused by vehicle failures.

[0082] The technical solution of the embodiment of the present invention is to obtain the vehicle controller wake-up instruction corresponding to the target vehicle in real time; if it is determined that the vehicle controller wake-up instruction is received, then parse and obtain the target vehicle controller awakened by the vehicle controller wake-up instruction; in a plurality of pre-established standard local network groups, identify the target group to which the target vehicle controller belongs, and obtain all the vehicle controllers in the group included in the target group; wake up the vehicle controllers in each group, and perform network fault diagnosis on the vehicle controllers in each group to obtain network fault diagnosis results; respectively start the timers corresponding to the vehicle controllers in each group to perform statistics on the current time; if it is determined that the current time corresponding to a target vehicle controller in the vehicle controllers in each group reaches a preset sleep time threshold, then control the vehicle controller in the target group to enter a sleep state. By locally waking up the corresponding vehicle controller to diagnose the network fault, energy resources are saved, the economic benefits of the vehicle are improved, and fault diagnosis can be performed in a timely manner, the efficiency of fault diagnosis is improved, the user experience is improved, and the occurrence of unsafe accidents caused by vehicle faults is avoided.

[0083] Embodiment 3

[0084] Figure 3 This is a schematic diagram of the structure of a network fault diagnosis device based on a local network provided in the third embodiment of the present invention. The network fault diagnosis device based on a local network provided in this embodiment can be implemented by software and / or hardware, and can be configured in a terminal device to implement a network fault diagnosis method based on a local network in the embodiment of the present invention, especially a vehicle terminal device. Figure 3 As shown, the device includes: a vehicle controller wake-up instruction acquisition module 310, a target vehicle controller determination module 320, a target group identification module 330 and a network fault diagnosis result determination module 340.

[0085] The vehicle controller wake-up instruction acquisition module 310 is used to acquire the vehicle controller wake-up instruction corresponding to the target vehicle in real time;

[0086] The target vehicle controller determination module 320 is used for parsing and obtaining the target vehicle controller awakened by the vehicle controller awakening instruction if it is determined that the vehicle controller awakening instruction is received;

[0087] The target group identification module 330 is used to identify the target group to which the target vehicle controller belongs in a plurality of pre-established standard local network groups, and obtain all the vehicle controllers in the group included in the target group;

[0088] A network fault diagnosis result determination module 340 is used to wake up each vehicle controller in the group, and perform network fault diagnosis on each vehicle controller in the group to obtain a network fault diagnosis result;

[0089] Each of the standard local network groups is constructed using a mask of each vehicle controller in a pre-established local network.

[0090] The technical solution of the embodiment of the present invention is to obtain the vehicle controller wake-up instruction corresponding to the target vehicle in real time; if it is determined that the vehicle controller wake-up instruction is received, then parse and obtain the target vehicle controller awakened by the vehicle controller wake-up instruction; in multiple pre-established standard local network groups, identify the target group to which the target vehicle controller belongs, and obtain all the vehicle controllers in the group included in the target group; wake up the vehicle controllers in each group, and perform network fault diagnosis on the vehicle controllers in each group to obtain network fault diagnosis results. The problem of resource waste caused by all vehicle controllers on the vehicle sleeping and waking up at the same time is solved. By partially waking up the corresponding vehicle controller to diagnose the network fault, energy resources are saved, the economic benefits of the vehicle are improved, and fault diagnosis can be performed in a timely manner, improving the efficiency of fault diagnosis.

[0091] Optionally, it also includes a standard local network grouping determination module, which may specifically include: a target mask acquisition unit, used to obtain the target mask in the standard network message corresponding to each standard vehicle controller to be grouped before the vehicle controller wake-up instruction corresponding to the target vehicle is obtained in real time; a standard local network grouping determination unit, used to group the standard vehicle controllers to be grouped with the same target mask into a group to obtain multiple standard local network groups; wherein each standard local network group includes at least one standard vehicle controller.

[0092] Optionally, it also includes a standard vehicle controller determination unit to be grouped, which can be specifically used to: obtain all standard vehicle controllers of the target vehicle before obtaining the target mask in the standard network message corresponding to each standard vehicle controller to be grouped; obtain a target standard vehicle controller from all the standard vehicle controllers in turn; determine whether the local network information bit in the standard network message corresponding to the target standard vehicle controller meets the preset local network management support condition value, if so, determine the target standard vehicle controller as the standard vehicle controller to be grouped; if not, discard the target standard vehicle controller, and return to execute the operation of obtaining a target standard vehicle controller from all the standard vehicle controllers in turn until all the target standard vehicle controllers are traversed.

[0093] Optionally, it also includes a sleep state entry module, which may specifically include: a current time statistics unit, used to wake up each vehicle controller in the group, perform network fault diagnosis on each vehicle controller in the group, and after obtaining the network fault diagnosis result, start the timer corresponding to each vehicle controller in the group to perform statistics on the current time; a sleep state entry unit, used to control the target group vehicle controller to enter a sleep state if it is determined that the current time corresponding to a target group vehicle controller among the vehicle controllers in the groups reaches a preset sleep time threshold.

[0094] Optionally, it also includes a sleep wake-up state acquisition unit, which can be specifically used to: before controlling the vehicle controller in the target group to enter the sleep state, obtain the sleep wake-up state of the vehicle controllers in other groups in the target group fed back by the vehicle controller in the target group; determine whether the vehicle controllers in other groups are all in the sleep state according to the sleep wake-up state, and if so, control the vehicle controller in the target group to enter the sleep state; if not, determine the vehicle controller in the target non-sleep group, and obtain the current time corresponding to the vehicle controller in the target non-sleep group, determine the faulty vehicle controller in the group with a fault, and feed back the fault information to the user.

[0095] Optionally, the sleep-wake state acquisition unit can also be specifically used to: obtain the current time corresponding to the vehicle controller in the target non-sleep group; determine whether the current time reaches a preset sleep time threshold, and if so, determine that the vehicle controller in the target non-sleep group is a faulty vehicle controller in the group, and feed back the fault information to the user; if not, determine that the current time corresponding to the vehicle controller in the target non-sleep group has not reached the time to enter the sleep state.

[0096] Optionally, it also includes a network fault diagnosis result feedback module, which can be specifically used to: after waking up each vehicle controller in the group and performing network fault diagnosis on each vehicle controller in the group, and obtaining the network fault diagnosis result, feed back the determined network fault diagnosis result to the user.

[0097] The local network-based network fault diagnosis device provided in the embodiment of the present invention can execute the local network-based network fault diagnosis method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0098] Embodiment 4

[0099] Figure 4A schematic diagram of the structure of an electronic device 10 that can be used to implement the fourth embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0100] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to 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 through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0101] A number of 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 disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0102] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as a network fault diagnosis method based on a local network.

[0103] In some embodiments, the local network-based network fault diagnosis method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the local network-based network fault diagnosis method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the local network-based network fault diagnosis method by any other appropriate means (e.g., by means of firmware).

[0104] The method includes: acquiring a vehicle controller wake-up instruction corresponding to a target vehicle in real time; if it is determined that the vehicle controller wake-up instruction has been received, parsing and acquiring the target vehicle controller awakened by the vehicle controller wake-up instruction; identifying the target group to which the target vehicle controller belongs in a plurality of pre-established standard local network groups, and acquiring all the vehicle controllers within the group included in the target group; waking up each of the vehicle controllers within the group, and performing network fault diagnosis on each of the vehicle controllers within the group to obtain a network fault diagnosis result.

[0105] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0106] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0107] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0108] 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 CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types 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 input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0109] The systems and techniques described herein may be implemented in a computing system that includes backend 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 frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0110] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0111] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0112] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

[0113] Embodiment 5

[0114] Embodiment 5 of the present invention also provides a computer-readable storage medium, wherein the computer-readable instructions are used to execute a network fault diagnosis method based on a local network when executed by a computer processor, the method comprising: obtaining a vehicle controller wake-up instruction corresponding to the target vehicle in real time; if it is determined that the vehicle controller wake-up instruction is received, parsing and obtaining the target vehicle controller awakened by the vehicle controller wake-up instruction; identifying the target group to which the target vehicle controller belongs in a plurality of pre-established standard local network groups, and obtaining all the vehicle controllers in the group included in the target group; waking up each of the vehicle controllers in the group, and performing network fault diagnosis on each of the vehicle controllers in the group to obtain a network fault diagnosis result.

[0115] Of course, the computer-readable storage medium provided in the embodiment of the present invention has computer-executable instructions that are not limited to the method operations described above, and can also execute related operations in the local network-based network fault diagnosis method provided in any embodiment of the present invention.

[0116] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0117] It is worth noting that in the above-mentioned embodiment of the network fault diagnosis device based on the local network, the various units and modules included are only divided according to the functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be realized; in addition, the specific name of each functional unit is only for the convenience of distinguishing each other, and is not used to limit the scope of protection of the present invention.

[0118] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A network fault diagnosis method based on a local network, characterized in that: include: Obtain the vehicle controller wake-up command corresponding to the target vehicle in real time; If it is determined that the vehicle controller wake-up instruction is received, parsing and obtaining the target vehicle controller woken up by the vehicle controller wake-up instruction; In a plurality of pre-established standard local network groups, identifying a target group to which the target vehicle controller belongs, and acquiring all vehicle controllers in the target group; Waking up each vehicle controller in the group, and performing network fault diagnosis on each vehicle controller in the group to obtain a network fault diagnosis result; Wherein, each of the standard local network groups is constructed using a mask of each vehicle controller in a pre-established local network; Before the step of acquiring the vehicle controller wake-up instruction corresponding to the target vehicle in real time, the method further includes: Obtaining the target mask in the standard network message corresponding to each standard vehicle controller to be grouped; Grouping the standard vehicle controllers to be grouped that have the same target mask into one group to obtain a plurality of standard local network groups; Wherein, each standard local network group includes at least one of the standard vehicle controllers; The target mask is a standard mask for determining whether each standard vehicle controller can be grouped together; After waking up each vehicle controller in the group, performing network fault diagnosis on each vehicle controller in the group, and obtaining a network fault diagnosis result, the method further includes: respectively start the timers corresponding to the vehicle controllers in each of the groups to count the current time; If it is determined that the current time corresponding to a target group of vehicle controllers among the group of vehicle controllers reaches a preset sleep time threshold, controlling the target group of vehicle controllers to enter a sleep state; The sleep time threshold is used to determine whether the vehicle controllers in the group meet the requirements of entering a sleep state.

2. The method according to claim 1, characterized in that: Before obtaining the target mask in the standard network message corresponding to each standard vehicle controller to be grouped, the method further includes: Obtain all standard vehicle controllers of the target vehicle; sequentially acquiring a target standard vehicle controller from all the standard vehicle controllers; Determine whether the local network information bit in the standard network message corresponding to the target standard vehicle controller meets the preset supporting local network management condition value, and if so, determine the target standard vehicle controller as the standard vehicle controller to be grouped; If not, the target standard vehicle controller is discarded, and the process returns to execute the operation of acquiring a target standard vehicle controller from all the standard vehicle controllers in sequence until all the target standard vehicle controllers are traversed.

3. The method according to claim 1, characterized in that Before controlling the vehicle controllers in the target group to enter a sleep state, the method further includes: Obtaining the sleep / wake-up states of the vehicle controllers in other groups in the target group fed back by the vehicle controller in the target group; Determine whether the vehicle controllers in other groups are in a sleep state according to the sleep-wake state, and if so, control the vehicle controllers in the target group to enter a sleep state; If not, the target non-sleeping vehicle controller in the group is determined, and the current time corresponding to the target non-sleeping vehicle controller in the group is obtained, the faulty vehicle controller in the group with fault is determined, and the fault information is fed back to the user.

4. The method according to claim 1, characterized in that The obtaining of the current time corresponding to the vehicle controller in the target non-sleeping group, determining the faulty vehicle controller in the group with a fault, and feeding back the fault information to the user includes: Obtaining the current time corresponding to the vehicle controller in the target non-sleeping group; Determine whether the current time reaches a preset sleep time threshold, and if so, determine that the target non-sleep group vehicle controller is a faulty group vehicle controller, and feed back fault information to the user; If not, it is determined that the current time corresponding to the vehicle controller in the target non-sleeping group has not reached the time to enter the sleeping state.

5. The method according to claim 1, characterized in that After waking up each vehicle controller in the group, performing network fault diagnosis on each vehicle controller in the group, and obtaining a network fault diagnosis result, the method further includes: The determined network fault diagnosis result is fed back to the user.

6. A network fault diagnosis device based on a local network, characterized in that: include: A vehicle controller wake-up instruction acquisition module is used to acquire the vehicle controller wake-up instruction corresponding to the target vehicle in real time; A target vehicle controller determination module is used to parse and obtain a target vehicle controller awakened by the vehicle controller awakening instruction if it is determined that the vehicle controller awakening instruction has been received; A target group identification module, used to identify the target group to which the target vehicle controller belongs in a plurality of pre-established standard local network groups, and obtain all the vehicle controllers in the group included in the target group; A network fault diagnosis result determination module, used to wake up each vehicle controller in the group, and perform network fault diagnosis on each vehicle controller in the group to obtain a network fault diagnosis result; Wherein, each of the standard local network groups is constructed using a mask of each vehicle controller in a pre-established local network; Also includes: The standard local network grouping determination module specifically includes: a target mask acquisition unit, which is used to acquire the target mask in the standard network message corresponding to each standard vehicle controller to be grouped before the vehicle controller wake-up instruction corresponding to the target vehicle is acquired in real time; a standard local network grouping determination unit, which is used to group the standard vehicle controllers to be grouped with the same target mask into one group to obtain a plurality of standard local network groups; wherein each standard local network group includes at least one standard vehicle controller; The target mask is a standard mask for determining whether each standard vehicle controller can be grouped together; Also includes: The sleep state entry module specifically includes: a current time statistics unit, which is used to wake up each of the vehicle controllers in the group, perform network fault diagnosis on each of the vehicle controllers in the group, and after obtaining the network fault diagnosis result, respectively start the timer corresponding to each of the vehicle controllers in the group to perform statistics on the current time; a sleep state entry unit, which is used to control the target vehicle controller in the group to enter the sleep state if it is determined that the current time corresponding to a target vehicle controller in the group of vehicle controllers reaches a preset sleep time threshold; The sleep time threshold is used to determine whether the vehicle controllers in the group meet the requirements of entering a sleep state.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the local network-based network fault diagnosis method according to any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the local network-based network fault diagnosis method according to any one of claims 1 to 5 when executed.

Citation Information

Patent Citations

  • Local wakeup system and method based on traditional OSEK network management

    CN108366008A

  • Local area network security management method and device, computer equipment and storage medium

    CN113542265A

  • Fuel cell system fault diagnosis method and device, apparatus and medium

    CN113903960A