Network fault recovery method of diagnostic equipment and related device
By real-time monitoring of wireless network card status changes and automatically restoring network connections, the problem of low diagnostic efficiency caused by abnormal disconnection of WiFi vehicle diagnostic equipment is solved, efficient network fault recovery is achieved, and the user experience of vehicle diagnostic equipment is improved.
Patent Information
- Application Number
- CN202510934020.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-08
- Publication Date
- 2025-10-10
AI Technical Summary
In existing WiFi vehicle diagnostic technology, VCI diagnostic equipment needs to be manually restarted when it is abnormally disconnected, resulting in low diagnostic efficiency and poor user experience.
By monitoring the status changes of wireless network cards, monitoring and analyzing the status change sequence in real time, automatically detecting network failures, and using multiple wireless network cards to perform fault recovery operations, the wireless connection between the VCI device and the target vehicle is restored.
It achieves rapid and automatic restoration of WiFi connections without human intervention, improves vehicle diagnostic efficiency and stability, and avoids interruption of the diagnostic process and data loss.
Smart Images

Figure CN120769285A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle diagnosis technology, and in particular to a network fault recovery method for diagnostic equipment and related devices. Background Art
[0002] In the field of vehicle diagnostics, wireless diagnostic technology based on WiFi (wireless network communication technology) is gradually emerging. This technology facilitates diagnostic operations by establishing a wireless connection between the diagnostic device's VCI (Vehicle Communication Interface) and the vehicle's ECU (Electronic Control Unit). However, existing WiFi vehicle diagnostic technology often requires manual device restart and re-establishment if the VCI device's WiFi disconnects due to unidentified factors. This results in low diagnostic efficiency and a poor user experience.
[0003] Therefore, how to quickly and automatically restore the connection of abnormal WiFi without manual intervention to improve vehicle diagnostic efficiency has become an urgent problem to be solved. Summary of the Invention
[0004] The embodiment of the present application provides a network fault recovery method and related devices for diagnostic equipment, which determines whether a network fault occurs by monitoring the status changes of the wireless network card and promptly resolves the network fault when it occurs, thereby improving vehicle diagnostic efficiency.
[0005] In a first aspect, an embodiment of the present application provides a network fault recovery method for a diagnostic device, which is applied to a diagnostic device, wherein the diagnostic device is wirelessly connected to a target vehicle via a VCI device, the VCI device including n wireless network cards, a target wireless network card for establishing a wireless communication link between the VCI device and the target vehicle, and the target wireless network card is any one of the n wireless network cards; n is an integer greater than 1; the method comprising:
[0006] Monitor the state changes of the target wireless network card in real time within a preset time period to obtain a state change sequence; the preset time period is the length of a period of time before the current moment;
[0007] Detecting whether a network failure occurs on the target wireless network card according to the state change sequence, and obtaining a target detection result;
[0008] If the target detection result is that a network failure occurs, a network failure recovery operation is performed according to the n wireless network cards to restore the wireless connection between the VCI device and the target vehicle.
[0009] In a second aspect, an embodiment of the present application provides a network fault recovery device for a diagnostic device, which is applied to a diagnostic device, wherein the diagnostic device is wirelessly connected to a target vehicle via a VCI device, wherein the VCI device includes n wireless network cards, and the target wireless network card is used to establish a wireless communication link between the VCI device and the target vehicle, wherein the target wireless network card is any one of the n wireless network cards; n is an integer greater than 1; the network fault recovery device for the diagnostic device includes: a status monitoring module, a fault detection module, and a fault recovery module, wherein:
[0010] The state monitoring module is used to monitor the state changes of the target wireless network card in real time within a preset time period to obtain a state change sequence; the preset time period is the length of a period of time before the current moment;
[0011] The fault detection module is used to detect whether a network fault occurs in the target wireless network card according to the state change sequence, and obtain a target detection result;
[0012] The fault recovery module is configured to execute a network fault recovery operation according to the n wireless network cards to restore the wireless connection between the VCI device and the target vehicle if the target detection result indicates a network fault.
[0013] In a third aspect, an embodiment of the present application provides an electronic device comprising: a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in the first aspect of the embodiment of the present application.
[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the above-mentioned computer-readable storage medium stores a computer program for electronic data exchange, wherein the above-mentioned computer program enables a computer to execute some or all of the steps described in the first aspect of the embodiment of the present application.
[0015] In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, wherein the computer program is operable to cause a computer to perform some or all of the steps described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
[0016] It can be seen that the embodiments of the present application have the following beneficial effects:
[0017] By implementing the embodiments of the present application, the state changes of the target wireless network card are monitored in real time over a preset period of time to obtain a state change sequence. Based on the state change sequence, the target wireless network card is detected to determine whether a network failure has occurred, obtaining a target detection result. If the target detection result indicates a network failure, a network failure recovery operation is performed based on the n wireless network cards to restore the wireless connection between the VCI device and the target vehicle. This improves vehicle diagnostic efficiency by monitoring the state changes of the wireless network card to determine whether a network failure has occurred and promptly resolving the network failure when it occurs. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background technology, the drawings required for use in the embodiments of the present application or the background technology will be described below.
[0019] Figure 1 This is a flowchart of a network fault recovery method for a diagnostic device provided in an embodiment of the present application;
[0020] Figure 2 This is a system architecture diagram of a diagnostic device provided in an embodiment of the present application;
[0021] Figure 3 This is an application scenario diagram of a notification callback function provided in an embodiment of the present application;
[0022] Figure 4 This is a schematic diagram of a disconnection probability provided by an embodiment of the present application;
[0023] Figure 5 This is a flowchart of a network failure recovery method provided by an embodiment of the present application;
[0024] Figure 6 This is a flowchart of another network failure recovery method provided by an embodiment of the present application;
[0025] Figure 7 This is a schematic diagram of the structure of a network fault recovery device for a diagnostic device provided in an embodiment of the present application;
[0026] Figure 8 This is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0027] In the following, the technical solutions of the embodiments of the present application will be described clearly and completely in conjunction with the drawings of the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of the present application.
[0028] The terms "first", "second", etc. in the specification and claims of the present application and the above drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but can optionally include steps or units not listed or can optionally include other steps or units inherent to the process, method, product or device.
[0029] Reference herein to "embodiments" means that the particular features, structures, or characteristics described in connection with the embodiments can be included in at least one embodiment of the present application. The appearance of the phrase in various places in the specification does not necessarily all refer to the same embodiment, nor does it necessarily exclude other embodiments that are independent or alternative to the other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0030] The related content, concepts, meanings, technical problems, technical solutions, beneficial effects, etc. involved in the embodiments of the present application will be described below.
[0031] Please refer to Figure 1 , Figure 1 is a flowchart of a network fault recovery method of a diagnostic device provided by the embodiments of the present application. The method is applied to a diagnostic device, and the diagnostic device is wirelessly connected to a target vehicle through a VCI device. The VCI device includes n wireless network cards, a target wireless network card is used to establish a wireless communication link between the VCI device and the target vehicle, and the target wireless network card is any one of the n wireless network cards. n is an integer greater than 1. The method includes but is not limited to the following steps:
[0032] S101, real-time monitoring of state changes of the target wireless network card within a preset time length, obtaining a state change sequence.
[0033] Please refer to Figure 2 , Figure 2This is a system architecture diagram of a diagnostic device provided in an embodiment of the present application. As shown, the diagnostic device integrates a vehicle communication interface (VCI) device, establishing a communication link between the diagnostic device and the target vehicle through the VCI device. The VCI device is equipped with network cards 1 through n, forming the physical foundation for wireless communication. Different network cards can adapt to diverse diagnostic needs based on their hardware characteristics (such as supported wireless protocols, transmission rates, and operating frequency bands).
[0034] When conducting vehicle diagnostics, the instructions and data from the diagnostic equipment must be wirelessly transmitted to the target vehicle via the network card of the VCI device. Each network card, as an independent and flexibly schedulable communication module, can be dynamically selected based on the actual scenario: if a network card cannot communicate stably due to a fault, environmental interference, etc., the system can select an adapter from the remaining network cards to take over and ensure the continuity of the diagnostic process. For example, in a complex electromagnetic environment, a network card with strong anti-interference capabilities can be called first; and in scenarios where high-speed transmission of diagnostic data is required, a high-bandwidth network card becomes the preferred choice. By aggregating the resources of multiple network cards through the VCI device, the diagnostic equipment not only expands the communication channels with the target vehicle, but also builds a stable and efficient vehicle diagnostic environment.
[0035] In the embodiment of the present application, the preset duration refers to the duration of a period of time before the current moment. By continuously monitoring the state changes of the target wireless network card during this time period, the dynamic evolution process of the state of the target wireless network card can be captured, and the state information of the target wireless network card can be obtained in a timely manner.
[0036] In a specific embodiment, a preset monitoring program or algorithm can be built into the diagnostic device, which can collect and record indicators such as the connection status, signal strength, and data transmission rate of the target wireless network card in real time, and obtain a state change sequence. The state change sequence includes complete information on the state evolution of the target wireless network card within a preset time period. By analyzing the state change sequence, a comprehensive and accurate operating status of the target wireless network card can be obtained, and potential network failures can be discovered in a timely manner.
[0037] It can be seen that by establishing a real-time and dynamic monitoring mechanism, comprehensive and timely acquisition of the target wireless network card status information is ensured, so that the diagnostic equipment can capture abnormal signals in the early stages of network failures to quickly respond and troubleshoot.
[0038] Optionally, before the step of monitoring the state changes of the target wireless network card in real time within a preset time period to obtain a state change sequence, the following steps are further included:
[0039] A101. Obtain a globally unique identifier of the target wireless network card;
[0040] A102. Register a notification callback function based on the globally unique identifier; the notification callback function is used to monitor the specified events of the target wireless network card in real time; the specified events include one of the following: network connection event, network disconnection event, and signal strength change event.
[0041] In a specific embodiment, the target wireless network card's Globally Unique Identifier (GUID) can be obtained first. This GUID uniquely identifies the target wireless network card within the network environment and is both unique and deterministic. By obtaining the UUID, the diagnostic device can accurately locate and identify the target wireless network card, thus avoiding monitoring errors caused by confusion among the n wireless network cards included in the VCI device.
[0042] Optionally, a Service Set Identifier (SSID) of the target wireless network card may be obtained as a unique and deterministic identifier, so that the diagnostic device can accurately locate and identify the target wireless network card.
[0043] Then, a notification callback function can be registered based on the obtained globally unique identifier. The notification callback function is a specific monitoring program that can monitor the target wireless network card for specified events in real time. The specified events include one of the following: network connection event, network disconnection event, and signal strength change event.
[0044] After registering a notification callback function, when a specified event occurs on the target wireless network card, the notification callback function can be automatically triggered to perform corresponding operations, ensuring real-time perception and response to network card events. For example, if the target wireless network card experiences a network disconnection event, the notification callback function can immediately capture the event and pass the relevant information to the diagnostic equipment, so that it can promptly notify the diagnostic equipment of the network card status change.
[0045] It can be seen that by obtaining the globally unique identifier of the target wireless network card and registering the notification callback function, the diagnostic device can accurately locate and identify the target wireless network card, and capture the key state change events of the network card in real time, so as to detect and handle network faults in a timely manner, thereby improving the efficiency of network fault monitoring and recovery.
[0046] Optionally, the above step of monitoring the state changes of the target wireless network card in real time within a preset time period to obtain a state change sequence specifically includes the following steps:
[0047] B101, detecting whether the specified event occurs through the notification callback function;
[0048] B102. When the designated event is detected, determining the preset duration corresponding to the designated event;
[0049] B103: Obtain the state change sequence of the target wireless network card within the preset time period.
[0050] In a specific embodiment, whether the specified event occurs can be detected by notifying the callback function, that is, by real-time monitoring whether a target wireless network card has a network connection event, a network disconnection event, a signal strength change event, or the like.
[0051] When a specified event is detected, a preset duration corresponding to the specified event is determined. Different types of specified events may require different time windows to analyze their state change characteristics. For example, a network connection event may require a shorter preset duration to observe the stability of the connection establishment, while a signal strength change event may require a longer preset duration to analyze the trend of signal fluctuations. By assigning specific preset durations to different events, dynamic adjustment of the time window is achieved, ensuring that the obtained state change sequence can accurately reflect the evolution of the network state before and after the event, thereby improving the pertinence and effectiveness of data collection.
[0052] Based on the determined preset time length, the state change sequence of the target wireless network card within the time period can be obtained. The state change sequence includes state parameters of the target wireless network card at different times, such as signal strength, packet loss rate, connection stability, data transmission rate and other state parameters.
[0053] See Figure 3 , Figure 3 This is an application scenario diagram of a notification callback function provided in an embodiment of the present application. As shown in the figure, the network card serves as a basic communication unit, and its operating status changes dynamically over time, forming a continuous state change sequence from the initial time t0 to the monitoring end time t1 (current time), including key state nodes such as network connection establishment, connection interruption, and signal strength fluctuation.
[0054] The notification callback function can be pre-registered and bound to the network card. When a network connection event (such as successfully establishing a wireless link with the target vehicle), a network disconnection event (communication interruption due to interference or hardware failure), or a signal strength change event (environmental electromagnetic interference or distance change causing a change in signal quality) occurs during the operation of the network card, the state change sequence of the network card triggers the registered notification callback function.
[0055] By registering a notification callback function, network card status changes can be captured and responded to by upper-layer diagnostic applications in a timely and accurate manner, providing a real-time basis for the diagnostic equipment to dynamically adjust the communication strategy (such as network card switching and parameter optimization), effectively ensuring the stability and adaptability of wireless communication between the VCI device and the target vehicle.
[0056] S102: Detect whether a network failure occurs on the target wireless network card according to the state change sequence, and obtain a target detection result.
[0057] In a specific embodiment, a state change sequence can be used to detect whether a target wireless network card has a network failure, and a target detection result can be obtained. Specifically, the state change sequence is a time dimension data set reflecting the operating status of the target wireless network card, which includes multi-dimensional information such as signal strength fluctuations, connection stability changes, and data transmission rate fluctuations. By extracting features from the state change sequence and performing a multi-dimensional analysis of the target wireless network card based on the features, it can be determined whether the target wireless network card has a network failure.
[0058] For example, time-domain analysis can be used to extract statistical features such as signal strength mutation points and connection interruption frequency. For example, frequent connection disconnections within a short period of time may indicate a network card hardware failure or signal interference. Frequency-domain analysis can also be used to identify periodic fluctuation patterns. For example, periodic attenuation of signal strength may be related to co-frequency interference sources in the environment. Simultaneously, combined with a time series prediction model, the deviation between the actual state sequence and the predicted sequence can be compared. When the deviation exceeds a preset threshold, an abnormal state change can be determined. For example, an autoregressive integrated moving average (ARIMA) model trained on historical data can predict the signal strength change trend under normal network card operation. If the actual monitored value differs significantly from the predicted value, it indicates a possible network failure.
[0059] It can be seen that through in-depth analysis and intelligent identification of state change sequences, automatic detection and accurate classification of network faults can be achieved, the timeliness and accuracy of fault detection can be improved, network faults can be resolved in a timely manner, and the network can be restored to improve the diagnostic efficiency of diagnostic equipment.
[0060] Optionally, the step of detecting whether a network failure occurs in the target wireless network card according to the state change sequence to obtain a target detection result specifically includes the following steps:
[0061] A201. Extract a signal strength change sequence and a packet loss rate change sequence from the state change sequence; the signal strength change sequence includes the signal strength value at each time point; the packet loss rate change sequence includes the packet loss rate at each time point;
[0062] A202. Determine a disconnection probability change sequence according to the signal strength change sequence and the packet loss rate change sequence;
[0063] A203. Determine the proportion of samples exceeding a preset first threshold in the disconnection probability change sequence to obtain a target sample proportion;
[0064] A204. Determine the maximum and minimum values in the disconnection probability change sequence;
[0065] A205. Determine a conditional probability change rate according to the maximum value and the minimum value;
[0066] A206. If the target sample ratio exceeds a preset ratio, or the conditional probability change rate exceeds a preset change rate threshold, it is determined that the target detection result is a network failure.
[0067] The preset ratio refers to the percentage of samples exceeding the preset first threshold in the total number of samples in the disconnection probability change sequence. This ratio measures the duration of the network card's high-risk disconnection state over a preset period of time. For example, if the preset ratio is 20%, when the proportion of samples with a disconnection probability exceeding the preset first threshold reaches or exceeds 20%, the network card is considered to be in an unstable state for a long period of time and has a high disconnection risk. The preset ratio is a value pre-set based on the stability requirements of the network environment.
[0068] The preset change rate threshold refers to the ratio of the difference between the maximum and minimum values in the disconnection probability change sequence (i.e., the fluctuation range) to the sequence length, and is used to quantify the degree of change in the disconnection probability per unit time. This parameter reflects the stability of the network card state. The greater the rate of change, the more unstable the network card state. For example, when the preset change rate threshold is 0.1, if the conditional probability change rate exceeds the threshold, it means that the disconnection probability has changed significantly in a short period of time, which may indicate a sharp fluctuation in the network environment or a sudden drop in the performance of the network card hardware. The preset change rate threshold is a value preset based on the fluctuation characteristics during normal network operation and a reasonable range determined through statistical analysis of historical data.
[0069] In a specific embodiment, a signal strength change sequence and a packet loss rate change sequence can be extracted from the state change sequence. The signal strength change sequence records the signal strength value at each time point, intuitively reflecting the strength fluctuations of the wireless signal; the packet loss rate change sequence includes the packet loss rate at each time point, reflecting the integrity of the data transmission process.
[0070] Next, the disconnection probability sequence is determined based on the signal strength and packet loss rate change sequences. The disconnection risk of a wireless network card is closely related to signal strength and packet loss rate. By establishing a mathematical model or algorithm that comprehensively considers the degree of signal strength reduction and packet loss rate increase, the disconnection probability corresponding to each time point is calculated. These probabilities are arranged in chronological order to form a disconnection probability sequence, which quantifies the likelihood of the network card experiencing a disconnection failure at different times.
[0071] Determine the proportion of samples in the disconnection probability change sequence that exceed a preset first threshold to obtain a target sample proportion. The preset first threshold is a disconnection probability critical value set based on actual network operation conditions and experience. Determine the maximum and minimum values in the disconnection probability change sequence, and determine the conditional probability change rate based on the maximum and minimum values.
[0072] If the target sample ratio exceeds the preset ratio, it means that the network card is in a high-risk disconnection state for a long time, or the conditional probability change rate exceeds the preset change rate threshold, which means that the network card state fluctuates too much, then the target detection result can be determined to be a network failure.
[0073] Optionally, the step of determining a disconnection probability change sequence according to the signal strength change sequence and the packet loss rate change sequence specifically includes the following steps:
[0074] The disconnection probability at each time point is determined based on the Bayesian probability reasoning method according to the preset first conditional probability relationship, the preset second conditional probability relationship, the signal strength change sequence and the packet loss rate change sequence to obtain the disconnection probability change sequence; the first conditional probability relationship is used to characterize the mapping relationship between signal strength and disconnection probability; the second conditional probability relationship is used to characterize the mapping relationship between packet loss rate and disconnection probability.
[0075] Among them, the Bayesian probabilistic reasoning method is a statistical inference method that dynamically updates the probability of a target event based on prior probability and observational evidence. It uses known conditional probability relationships and observational data such as signal strength and packet loss rate as evidence to jointly infer the probability of wireless network card disconnection, thereby realizing probability estimation under multi-source information fusion.
[0076] Among them, the preset first conditional probability relationship and the preset second conditional probability relationship are constructed based on a large amount of historical data and actual experience. For example, the second conditional probability relationship means that when the signal strength is in a certain range, the corresponding disconnection probability value can be directly derived according to this relationship, which provides a quantitative standard for judging the impact of signal strength on network connection stability. The second conditional probability relationship focuses on the mapping between packet loss rate and disconnection probability. By analyzing the disconnection risk under different packet loss rate levels, the relationship between the two is established, so that the packet loss rate indicator can also be converted into a measurable disconnection probability.
[0077] In a specific embodiment, for each time point in the signal strength change sequence and the packet loss rate change sequence, the signal strength value at that time point is substituted into the data according to a preset first conditional probability relationship to calculate the probability of disconnection based on signal strength. Then, the packet loss rate value at that time point is substituted into the data according to a preset second conditional probability relationship to calculate the probability of disconnection based on packet loss rate. These two probabilities reflect the disconnection risk under the influence of signal strength and packet loss rate, respectively.
[0078] Next, using Bayesian probabilistic reasoning, the two probabilities are combined to determine the disconnection probability at that point in time, taking into account both signal strength and packet loss rate. By performing this calculation for each time point in the signal strength and packet loss rate change sequences, a chronological series of disconnection probabilities is formed, known as the disconnection probability change sequence. This disconnection probability change sequence fully demonstrates the dynamic evolution of the target wireless network card's disconnection risk over time within a preset duration.
[0079] In a possible embodiment, the preset first conditional probability relationship can be as follows: when the signal strength is ≥-70dBm, the disconnection probability P(S) = 0.05; when -70dBm > signal strength ≥-80dBm, P(S) = 0.05 + (70-signal strength value) × 0.02; when -80dBm > signal strength ≥-90dBm, P(S) = 0.25 + (80-signal strength value) × 0.05.
[0080] In a possible embodiment, the preset second conditional probability relationship can be as follows: when the packet loss rate is ≤5%, the disconnection probability P(L) = 0.03; when 5% < packet loss rate ≤ 15%, P(L) = 0.03 + (packet loss rate - 5) × 0.02; when 15% < packet loss rate ≤ 30%, P(L) = 0.23 + (packet loss rate - 15) × 0.03; when the packet loss rate is > 30%, P(L) = 0.68 + (packet loss rate - 30) × 0.05.
[0081] In a possible embodiment, the disconnection probability under the current signal strength and the current packet loss rate may be calculated using the following formula:
[0082]
[0083] In the above formula, P(disconnection|S,L) represents the disconnection probability under the current signal strength S and the current packet loss rate L; P(S|disconnection) represents the disconnection probability corresponding to the current signal strength S based on the preset first conditional probability relationship; P(L|disconnection) represents the disconnection probability corresponding to the current packet loss rate L based on the preset second conditional probability relationship; P(disconnection) is represented by the preset disconnection prior probability, and its value can be 0.1; P(S|normal) represents the disconnection probability under the state of normal signal strength, and its value is 0.05 under the preset first conditional probability relationship; P(L|normal) represents the disconnection probability under the state of normal packet loss rate, and its value is 0.03 under the preset second conditional probability relationship; P(normal) represents the preset normal prior probability, and its value can be 0.9.
[0084] For example, if the current signal strength S is -80dBm and the current packet loss rate is 10%, then P(S|disconnection) is 0.25, P(L|disconnection) is 0.13, and the combined disconnection probability P(disconnection|S,L) is approximately 0.706. This indicates that under the current signal strength and packet loss rate, there is a 70.6% probability that the network connection will be disconnected.
[0085] See Figure 4 , Figure 4 is a schematic diagram of a disconnection probability provided by an embodiment of the present application. Figure 4 The figure shows the relationship between signal strength (S), packet loss rate (L), and network disconnection probability. The two circular areas in the figure correspond to the impact of signal strength (S) and packet loss rate (L) on the disconnection probability. The circle on the left, P(disconnection|S), represents the conditional probability of a network disconnection when only signal strength is considered. The circle on the right, P(disconnection|L), represents the conditional probability of a network disconnection when only packet loss rate is considered. The gray area where the two circles overlap, P(disconnection|S,L), represents the joint disconnection probability under the combined effects of signal strength and packet loss rate.
[0086] S103: If the target detection result is a network failure, perform a network failure recovery operation according to the n wireless network cards to restore the wireless connection between the VCI device and the target vehicle.
[0087] In a specific embodiment, if the target detection result is that a network failure occurs, a network failure recovery operation is performed according to n wireless network cards to quickly and efficiently restore the wireless connection between the VCI device and the target vehicle.
[0088] Specifically, a comprehensive assessment can be conducted on n wireless network cards, testing all available wireless network cards other than the faulty target wireless network card to determine whether their hardware status is normal, the network configuration is available, and whether their signal reception capabilities meet requirements. For example, each card's response can be tested by sending a probe signal. If a card can normally receive and return a signal, it indicates that it is physically capable of replacing the faulty card. The assessment can also comprehensively consider the card's performance parameters, such as signal strength, data transmission rate, and anti-interference capabilities.
[0089] Based on the evaluation results, a suitable wireless network card is selected to perform fault recovery operations according to a pre-set recovery strategy. The recovery strategy can be implemented in a variety of ways, such as a priority switching strategy, which pre-sets priorities for n wireless network cards. When a fault is detected, the available network card with the highest priority is enabled first to establish a new wireless communication link; or a load balancing strategy is adopted, which distributes communication tasks to the network cards with lower loads based on the current load conditions of each available network card, so as to avoid new performance bottlenecks after recovery.
[0090] It can be seen that by fully utilizing the resource advantages of multiple wireless network cards in the VCI device, fast and efficient network fault recovery can be performed, effectively reducing the impact of network faults on vehicle diagnosis work, avoiding the loss of diagnostic data or stagnation of the diagnostic process due to connection interruption, providing a stable and reliable network environment support for vehicle fault diagnosis, and helping to improve diagnostic efficiency and accuracy.
[0091] Optionally, the step of performing a network failure recovery operation according to the n wireless network cards specifically includes the following steps:
[0092] A301. Select a wireless network card other than the target wireless network card from the n wireless network cards to obtain a backup wireless network card.
[0093] A302, establishing a wireless connection with the target vehicle using the standby wireless network card;
[0094] A303, disconnecting the target wireless network card from the target vehicle, and performing an initialization operation on the target wireless network card; the initialization operation includes: clearing the network configuration cache and resetting the connection parameters;
[0095] A304. Monitor the recovery status of the target wireless network card. If the target wireless network card recovers to normal, switch the backup wireless network card back to the target wireless network card. If the target wireless network card does not recover to normal, continue to use the backup wireless network card to establish a wireless connection with the target vehicle.
[0096] In a specific embodiment, a wireless network card other than the target wireless network card may be selected from n wireless network cards to obtain a spare wireless network card, and a wireless connection may be established with the target vehicle using the spare wireless network card.
[0097] Next, disconnect the target wireless network card from the target vehicle and perform initialization operations on the target wireless network card. The initialization operations include clearing the network configuration cache and resetting the connection parameters. The network configuration cache may store incorrect or conflicting configuration information. Clearing the cache helps eliminate potential interference factors. Resetting the connection parameters can restore the target wireless network card to its initial state for subsequent troubleshooting and repair.
[0098] It should be noted that the target wireless network card is typically the optimal or primary network card for communication between the VCI device and the target vehicle, and it undertakes the critical task of data transmission. When the target wireless network card experiences a network failure, the system activates the backup wireless network card to reestablish the connection to ensure continuity of diagnostic work. However, the performance parameters and network adaptability of the primary network card are still superior to those of the backup network card. Therefore, when the primary network card has returned to normal after initialization and repair, the backup wireless network card can be switched back to the primary network card to ensure the efficiency and reliability of the wireless connection between the VCI device and the target vehicle.
[0099] The system continuously monitors the target wireless network card's recovery status, determining whether it has returned to normal operation by sending probe signals and detecting the card's response. If it detects that the target wireless network card has returned to normal operation, the system will perform a connection switch, switching the communication link from the backup wireless network card back to the target wireless network card, restoring the device to its initial optimal working state. If the target wireless network card fails to recover, the system will maintain the wireless connection between the backup wireless network card and the target vehicle, ensuring that the diagnostic work is not affected.
[0100] Optionally, the step of selecting a wireless network card other than the target wireless network card from the n wireless network cards to obtain a standby wireless network card specifically includes the following steps:
[0101] B301. Obtain static attribute parameters of each of the n wireless network cards except the target wireless network card, to obtain n-1 static attribute parameters; the static attribute parameters include at least one of the following: historical connection success rate, power consumption level, and historical failure rate;
[0102] B302. Perform weighted calculation on the n-1 static attribute parameters based on a preset weight coefficient to obtain n-1 comprehensive fitness scores;
[0103] B303. Select the wireless network card with the highest comprehensive adaptability score from the n-1 comprehensive adaptability scores as the standby wireless network card.
[0104] In a specific embodiment, the static attribute parameters of each wireless network card except the target wireless network card among n wireless network cards can be obtained to obtain n-1 static attribute parameters, wherein the static attribute parameters include at least one of the following: historical connection success rate, power consumption level, and historical failure rate. The historical connection success rate reflects the stable performance of the network card in past communications, and is obtained by counting the ratio of the successful frequency of establishing connections in different scenarios to the total number of attempts. The higher the index, the stronger the network card's ability to maintain a connection; the power consumption level quantifies the energy consumption of the network card when it is working, which is directly related to the device's battery life and heat dissipation design; the historical failure rate is obtained by counting the frequency of abnormal situations such as connection interruption and data packet loss in the network card per unit time, which reflects the reliability of the network card hardware and driver.
[0105] Next, the static attribute parameters are weighted based on preset weight coefficients to generate a comprehensive fitness score. The weight coefficients must be determined based on the application scenario of the diagnostic device. For example, in portable diagnostic devices with high battery life requirements, the power consumption level can be weighted to 0.4, while the historical connection success rate and historical failure rate can be weighted to 0.3 and 0.3, respectively. In fixed-scenario diagnostic devices, to ensure connection stability, the weight of the historical connection success rate can be increased to 0.5, while the power consumption weight can be reduced to 0.2.
[0106] The network card with the highest score is selected from the n-1 comprehensive scores as the backup wireless network card. This backup wireless network card has better static attribute parameters and is more likely to maintain a stable connection when replacing the faulty target wireless network card.
[0107] See Figure 5 , Figure 5 This is a flow chart of a network fault recovery method provided by an embodiment of the present application. As shown in the figure, first, the state changes of the target wireless network card within a preset time are monitored in real time to obtain a state change sequence, that is, the operating data of the target wireless network card is continuously collected within the preset time to generate a state change sequence. The state change sequence may include: information on dynamic changes over time such as signal strength and packet loss rate.
[0108] Based on the state change sequence, we can extract the signal strength change sequence and the packet loss rate change sequence. Signal strength reflects the physical layer transmission quality of the wireless link, and its fluctuations are affected by factors such as environmental obstruction and electromagnetic interference. The packet loss rate reflects the transmission integrity of the data link layer and is related to network congestion and protocol adaptability. Based on the signal strength change sequence and the packet loss rate change sequence, we can further determine the disconnection probability change sequence, converting the physical and link layer indicators into quantitative measures of network reliability, and achieving a mapping from state data to failure risks.
[0109] Based on the characteristics of the disconnection probability change sequence (such as probability threshold breakthroughs and abnormal trend changes), the system identifies whether a network failure has occurred. If a failure is detected, network recovery is triggered. Based on the resource pool of n wireless network cards, a stable communication link is reestablished through strategies such as network card switching and parameter reconfiguration. If a failure is not detected, the system continuously monitors status changes to maintain dynamic monitoring of network quality.
[0110] See Figure 6 , Figure 6 This is a flow chart of another network fault recovery method provided by an embodiment of the present application. As shown in the figure, the method first monitors the state changes of the target wireless network card in real time within a preset time period to obtain a state change sequence. Based on the state change sequence, the target wireless network card is detected to determine whether a network fault has occurred. If no network fault has occurred, the method continues to monitor the target wireless network card in real time to ensure that any subsequent fault conditions that may occur are captured in a timely manner. If a network fault is determined to have occurred, a fault recovery operation is triggered, i.e., a wireless network card other than the target wireless network card is selected from n wireless network cards to obtain a backup wireless network card. A wireless connection is established between the backup wireless network card and the target vehicle to quickly reestablish a stable data transmission link and restore the communication function between the diagnostic equipment and the vehicle.
[0111] In summary, by implementing the embodiments of the present application, the state changes of the target wireless network card within a preset time period are monitored in real time to obtain a state change sequence. Based on the state change sequence, the target wireless network card is detected to determine whether a network failure has occurred, obtaining a target detection result. If the target detection result indicates a network failure, a network failure recovery operation is performed based on the n wireless network cards to restore the wireless connection between the VCI device and the target vehicle. This improves vehicle diagnostic efficiency by monitoring the state changes of the wireless network cards to determine whether a network failure has occurred and promptly resolving the network failure when it occurs.
[0112] See Figure 7 , Figure 7 : This is a structural diagram of a network fault recovery device for a diagnostic device provided in an embodiment of the present application. The network fault recovery device for the diagnostic device is applied to the diagnostic device. The diagnostic device is wirelessly connected to the target vehicle through a VCI device. The VCI device includes n wireless network cards. The target wireless network card is used to establish a wireless communication link between the VCI device and the target vehicle. The target wireless network card is any one of the n wireless network cards. n is an integer greater than 1. The network fault recovery device 700 of the diagnostic device includes: a status monitoring module 701, a fault detection module 702, and a fault recovery module 703, wherein:
[0113] The state monitoring module 701 is used to monitor the state changes of the target wireless network card in real time within a preset time period to obtain a state change sequence; the preset time period is the length of a period of time before the current moment;
[0114] The fault detection module 702 is used to detect whether the target wireless network card has a network fault according to the state change sequence, and obtain a target detection result;
[0115] The fault recovery module 703 is configured to perform a network fault recovery operation according to the n wireless network cards to restore the wireless connection between the VCI device and the target vehicle if the target detection result indicates a network fault.
[0116] Optionally, before monitoring the state changes of the target wireless network card in real time within a preset time period to obtain a state change sequence, the network fault recovery device 700 of the diagnostic device is further specifically configured to:
[0117] Obtaining a globally unique identifier of the target wireless network card;
[0118] A notification callback function is registered based on the globally unique identifier; the notification callback function is used to monitor the specified event of the target wireless network card in real time; the specified event includes one of the following: a network connection event, a network disconnection event, and a signal strength change event.
[0119] Optionally, in the aspect of monitoring the state change of the target wireless network card in real time within a preset time period to obtain a state change sequence, the state monitoring module 701 is further specifically configured to:
[0120] Detecting whether the specified event occurs through the notification callback function;
[0121] When the designated event is detected, determining the preset duration corresponding to the designated event;
[0122] Acquire the state change sequence of the target wireless network card within the preset time period.
[0123] Optionally, in terms of detecting whether a network failure occurs in the target wireless network card according to the state change sequence to obtain a target detection result, the fault detection module 702 is further specifically configured to:
[0124] Extracting a signal strength change sequence and a packet loss rate change sequence from the state change sequence; the signal strength change sequence includes the signal strength value at each time point; the packet loss rate change sequence includes the packet loss rate at each time point;
[0125] Determining a disconnection probability change sequence according to the signal strength change sequence and the packet loss rate change sequence;
[0126] Determining the proportion of samples exceeding a preset first threshold in the disconnection probability change sequence to obtain a target sample proportion;
[0127] Determining the maximum and minimum values in the disconnection probability change sequence;
[0128] determining a conditional probability change rate according to the maximum value and the minimum value;
[0129] If the target sample ratio exceeds a preset ratio, or the conditional probability change rate exceeds a preset change rate threshold, then the target detection result is determined to be a network failure.
[0130] Optionally, in determining the disconnection probability change sequence according to the signal strength change sequence and the packet loss rate change sequence, the fault detection module 702 is further specifically configured to:
[0131] The disconnection probability at each time point is determined based on the Bayesian probability reasoning method according to the preset first conditional probability relationship, the preset second conditional probability relationship, the signal strength change sequence and the packet loss rate change sequence to obtain the disconnection probability change sequence; the first conditional probability relationship is used to characterize the mapping relationship between signal strength and disconnection probability; the second conditional probability relationship is used to characterize the mapping relationship between packet loss rate and disconnection probability.
[0132] Optionally, in the aspect of performing the network fault recovery operation according to the n wireless network cards, the fault detection module 702 is further specifically configured to:
[0133] Selecting a wireless network card other than the target wireless network card from the n wireless network cards to obtain a backup wireless network card;
[0134] establishing a wireless connection with the target vehicle according to the standby wireless network card;
[0135] Disconnecting the target wireless network card from the target vehicle and performing an initialization operation on the target wireless network card; the initialization operation includes: clearing a network configuration cache and resetting connection parameters;
[0136] Monitor the recovery status of the target wireless network card. If the target wireless network card recovers to normal, switch the standby wireless network card back to the target wireless network card. If the target wireless network card does not recover to normal, continue to use the standby wireless network card to establish a wireless connection with the target vehicle.
[0137] Optionally, in the aspect of selecting a wireless network card other than the target wireless network card from the n wireless network cards to obtain a spare wireless network card, the fault detection module 702 is further specifically configured to:
[0138] Obtain static attribute parameters of each wireless network card among the n wireless network cards except the target wireless network card, to obtain n-1 static attribute parameters; the static attribute parameters include at least one of the following: historical connection success rate, power consumption level, and historical failure rate;
[0139] Perform weighted calculation on the n-1 static attribute parameters based on a preset weight coefficient to obtain n-1 comprehensive fitness scores;
[0140] The wireless network card corresponding to the highest comprehensive adaptability score is selected from the n-1 comprehensive adaptability scores as the standby wireless network card.
[0141] The network fault recovery device 700 of the diagnostic device described in this application can monitor the state changes of the target wireless network card in real time over a preset period of time to obtain a state change sequence; based on the state change sequence, it detects whether the target wireless network card has a network fault, obtaining a target detection result; if the target detection result indicates a network fault, it performs a network fault recovery operation based on the n wireless network cards to restore the wireless connection between the VCI device and the target vehicle. This improves vehicle diagnostic efficiency by monitoring the state changes of the wireless network cards to determine whether a network fault has occurred and promptly resolving the network fault when it occurs.
[0142] See Figure 8 , Figure 8 : is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include a processor, a memory, a communication interface, and one or more programs. The processor, memory, and communication interface may be interconnected via a bus. The one or more programs are stored in the memory and configured to be executed by the processor. In the embodiment of the present application, the program includes instructions for performing the following steps:
[0143] Monitor the state changes of the target wireless network card in real time within a preset time period to obtain a state change sequence; the preset time period is the length of a period of time before the current moment;
[0144] Detecting whether a network failure occurs on the target wireless network card according to the state change sequence, and obtaining a target detection result;
[0145] If the target detection result is that a network failure occurs, a network failure recovery operation is performed according to the n wireless network cards to restore the wireless connection between the VCI device and the target vehicle.
[0146] The electronic device described in this application can monitor the state changes of the target wireless network card in real time over a preset period of time to obtain a state change sequence; based on the state change sequence, it can detect whether the target wireless network card has a network failure, obtaining a target detection result; if the target detection result indicates a network failure, it can perform a network failure recovery operation based on the n wireless network cards to restore the wireless connection between the VCI device and the target vehicle. This improves vehicle diagnostic efficiency by monitoring the state changes of the wireless network card to determine whether a network failure has occurred and promptly resolving the network failure when it occurs.
[0147] An embodiment of the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any method described in the above method embodiments, and the above computer includes an electronic device.
[0148] The present application also provides a computer program product comprising a non-transitory computer-readable storage medium storing a computer program, wherein the computer program is operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments. The computer program product may be a software installation package, and the computer may comprise an electronic device.
[0149] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
[0150] The steps of the method or algorithm described in the embodiments of the present application can be implemented in hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, which can be stored in RAM, flash memory, ROM, EPROM, electrically erasable programmable read-only memory (EEPROM), registers, hard disks, mobile hard disks, CD-ROMs, or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and storage medium can be located in an ASIC. In addition, the ASIC can be located in a terminal device or a management device. Of course, the processor and storage medium can also be present in a terminal device or a management device as discrete components.
[0151] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, they can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).
[0152] The modules / units included in the devices and products described in the above embodiments may be software modules / units, hardware modules / units, or partly software modules / units and partly hardware modules / units. For example, for the devices and products applied to or integrated in the chip, the modules / units included therein may all be implemented in the form of hardware such as circuits, or at least part of the modules / units may be implemented in the form of software programs, which run on the processor integrated inside the chip, and the remaining (if any) modules / units may be implemented in the form of hardware such as circuits; for the devices and products applied to or integrated in the chip module, the modules / units included therein may all be implemented in the form of hardware such as circuits, and different modules / units may be located in the same component (such as chip, circuit module, etc.) or different components of the chip module, or at least part of the modules / units may be It is implemented in the form of a software program, which runs on the processor integrated inside the chip module, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits; for various devices and products applied to or integrated in the terminal equipment, the various modules / units contained therein can be implemented in the form of hardware such as circuits, and different modules / units can be located in the same component (for example, chip, circuit module, etc.) or different components in the terminal equipment, or, at least some modules / units can be implemented in the form of a software program, which runs on the processor integrated inside the terminal equipment, and the remaining (if any) modules / units can be implemented in the form of hardware such as circuits.
[0153] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the embodiments of the present application. It should be understood that the above description is only a specific implementation method of the embodiments of the present application and is not intended to limit the scope of protection of the embodiments of the present application. Any modifications, equivalent replacements, improvements, etc. made on the basis of the technical solutions of the embodiments of the present application should be included in the scope of protection of the embodiments of the present application.
Claims
1. A method for recovering a network failure of a diagnostic device, characterized in that: Applied to a diagnostic device, the diagnostic device is wirelessly connected to a target vehicle via a VCI device, the VCI device includes n wireless network cards, a target wireless network card is used to establish a wireless communication link between the VCI device and the target vehicle, and the target wireless network card is any one of the n wireless network cards; n is an integer greater than 1; the method comprises: Monitor the state changes of the target wireless network card in real time within a preset time period to obtain a state change sequence; the preset time period is the length of a period of time before the current moment; Detecting whether a network failure occurs on the target wireless network card according to the state change sequence, and obtaining a target detection result; If the target detection result is that a network failure occurs, a network failure recovery operation is performed according to the n wireless network cards to restore the wireless connection between the VCI device and the target vehicle.
2. The method according to claim 1, wherein Before monitoring the state changes of the target wireless network card in real time within a preset time period to obtain a state change sequence, the method further includes: Obtaining a globally unique identifier of the target wireless network card; A notification callback function is registered based on the globally unique identifier; the notification callback function is used to monitor the specified event of the target wireless network card in real time; the specified event includes one of the following: a network connection event, a network disconnection event, and a signal strength change event.
3. The method according to claim 2, wherein The real-time monitoring of the state change of the target wireless network card within a preset time period to obtain a state change sequence includes: Detecting whether the specified event occurs through the notification callback function; When the designated event is detected, determining the preset duration corresponding to the designated event; Acquire the state change sequence of the target wireless network card within the preset time period.
4. The method according to any one of claims 1 to 3, wherein The detecting whether a network failure occurs in the target wireless network card according to the state change sequence to obtain a target detection result includes: Extracting a signal strength change sequence and a packet loss rate change sequence from the state change sequence; the signal strength change sequence includes the signal strength value at each time point; the packet loss rate change sequence includes the packet loss rate at each time point; Determining a disconnection probability change sequence according to the signal strength change sequence and the packet loss rate change sequence; Determining the proportion of samples exceeding a preset first threshold in the disconnection probability change sequence to obtain a target sample proportion; Determining the maximum and minimum values in the disconnection probability change sequence; determining a conditional probability change rate according to the maximum value and the minimum value; If the target sample ratio exceeds a preset ratio, or the conditional probability change rate exceeds a preset change rate threshold, then the target detection result is determined to be a network failure.
5. The method according to claim 4, wherein The determining of the disconnection probability change sequence according to the signal strength change sequence and the packet loss rate change sequence includes: The disconnection probability at each time point is determined based on the Bayesian probability reasoning method according to the preset first conditional probability relationship, the preset second conditional probability relationship, the signal strength change sequence and the packet loss rate change sequence to obtain the disconnection probability change sequence; the first conditional probability relationship is used to characterize the mapping relationship between signal strength and disconnection probability; the second conditional probability relationship is used to characterize the mapping relationship between packet loss rate and disconnection probability.
6. The method according to any one of claims 1 to 3, wherein: The performing of the network failure recovery operation according to the n wireless network cards includes: Selecting a wireless network card other than the target wireless network card from the n wireless network cards to obtain a backup wireless network card; establishing a wireless connection with the target vehicle according to the standby wireless network card; Disconnecting the target wireless network card from the target vehicle and performing an initialization operation on the target wireless network card; the initialization operation includes: clearing a network configuration cache and resetting connection parameters; Monitor the recovery status of the target wireless network card. If the target wireless network card recovers to normal, switch the standby wireless network card back to the target wireless network card. If the target wireless network card does not recover to normal, continue to use the standby wireless network card to establish a wireless connection with the target vehicle.
7. The method according to claim 6, wherein The step of selecting a wireless network card other than the target wireless network card from the n wireless network cards to obtain a standby wireless network card includes: Obtain static attribute parameters of each wireless network card among the n wireless network cards except the target wireless network card, to obtain n-1 static attribute parameters; the static attribute parameters include at least one of the following: historical connection success rate, power consumption level, and historical failure rate; Perform weighted calculation on the n-1 static attribute parameters based on a preset weight coefficient to obtain n-1 comprehensive fitness scores; The wireless network card corresponding to the highest comprehensive adaptability score is selected from the n-1 comprehensive adaptability scores as the standby wireless network card.
8. A network fault recovery device for a diagnostic device, characterized in that: Applied to a diagnostic device, the diagnostic device is wirelessly connected to a target vehicle via a VCI device, the VCI device includes n wireless network cards, a target wireless network card is used to establish a wireless communication link between the VCI device and the target vehicle, and the target wireless network card is any one of the n wireless network cards; n is an integer greater than 1; the network fault recovery device of the diagnostic equipment includes: a status monitoring module, a fault detection module, and a fault recovery module, wherein, The state monitoring module is used to monitor the state changes of the target wireless network card in real time within a preset time period to obtain a state change sequence; the preset time period is the length of a period of time before the current moment; The fault detection module is used to detect whether a network fault occurs in the target wireless network card according to the state change sequence, and obtain a target detection result; The fault recovery module is configured to execute a network fault recovery operation according to the n wireless network cards to restore the wireless connection between the VCI device and the target vehicle if the target detection result indicates a network fault.
9. An electronic device, characterized in that: include: a processor, a memory, a communication interface, and one or more programs; The one or more programs are stored in the memory and configured to be executed by the processor, wherein the programs include instructions for executing the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 7.