Network detection method for vehicle machine, electronic device and vehicle

By using a list of detected addresses and complete response analysis in the vehicle's infotainment system, the problem of network misjudgment caused by abnormal detection servers was resolved, thus improving the accuracy and reliability of network detection.

CN123164035APending Publication Date: 2026-11-24GREAT WALL MOTOR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611405457.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-10
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing technologies, when the vehicle-mounted system detects that the network is unavailable due to configuration adjustments, redirection, or temporary service anomalies, it may misjudge the network as unavailable, resulting in inaccurate network detection results and affecting the normal use of upper-layer applications.

Method used

By identifying the target probe address from the probe address list, sending a network probe request, and determining network availability upon receiving a complete response with response headers and status codes, the system avoids misjudging abnormalities of the probe server as abnormalities of the vehicle's network, thus improving the accuracy of network probes.

Benefits of technology

It enables accurate determination of network availability when the probe server returns a non-preset status code, avoiding misjudgments and ensuring that upper-layer applications can connect to the network normally when the link is normal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123164035A_ABST
    Figure CN123164035A_ABST
Patent Text Reader

Abstract

This application relates to the field of intelligent connected vehicle technology, and discloses a network detection method, electronic device, and vehicle for in-vehicle systems. The method includes: determining any target detection address from a list of detection addresses, and sending a network detection request to the corresponding target server based on the target detection address; if a network detection response corresponding to the network detection request is received, identifying whether the network detection response is a complete response with a response header and status code; if the network detection response is a complete response with a response header and status code, determining that the in-vehicle system network is in an available state; if no network detection response corresponding to the network detection request is received, determining that the in-vehicle system network is in an unavailable state. This solution uses a complete application layer response as the basis for determining network availability, avoiding the misjudgment of a normal link as unavailable due to the detection service returning a non-preset normal status code.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent connected vehicle technology, and in particular to a network detection method, electronic equipment, and vehicle for vehicle-mounted systems. Background Technology

[0002] After the vehicle infotainment system starts up, it typically needs to determine whether the current network is available and report the result to the upper-layer application. In related technologies, the vehicle infotainment system performs network availability detection by accessing a detection server and determines network availability based on the HTTP status code returned by the server.

[0003] However, when the detection server returns an unexpected status code due to configuration adjustments, redirection, or temporary service anomalies, it may still be judged as network unavailable even if the network link is actually connected. This leads to inaccurate network detection results and affects the normal use of upper-layer applications when actual network connectivity is available. Therefore, it is necessary to address the problem that the existing network detection logic strongly binds the HTTP 204 status code to network availability, causing the vehicle-mounted system to misjudge network unavailability and provide inaccurate network detection results when the detection server abnormally returns a non-204 status code, even when the link is actually connected. This is to improve the accuracy of network detection. Summary of the Invention

[0004] In view of the above problems, this application provides a network detection method, electronic device and vehicle for vehicle-mounted systems that overcomes or at least partially solves the above problems.

[0005] A first aspect of this application provides a network detection method for a vehicle-mounted system, comprising: determining any target detection address from a list of detection addresses, and sending a network detection request to a corresponding target server based on the target detection address; if a network detection response corresponding to the network detection request is received, identifying whether the network detection response is a complete response with a response header and a status code; if the network detection response is a complete response with a response header and a status code, determining that the vehicle-mounted system network is in an available state; if no network detection response corresponding to the network detection request is received, determining that the vehicle-mounted system network is in an unavailable state.

[0006] In one embodiment, determining any target detection address from the detection address list includes: after detecting that the vehicle's infotainment system is powered on and has completed initialization, starting the network detection function to load the detection address list; and selecting a detection address from the detection address list according to a preset rule as the target detection address.

[0007] In one embodiment, if the network probe response is a complete response with a response header and a status code, after determining that the vehicle network is in an available state, the method further includes: extracting the status code from the network probe response and determining whether the status code belongs to a first type of status code, wherein the first type of status code is a preset status code that indicates that the target server is working normally; if the status code is determined to belong to the first type of status code, then it is marked that the vehicle network is in an available state and the server is normal when the target probe address is used; if the status code is determined not to belong to the first type of status code, then it is determined that the status code belongs to a second type of status code, wherein the second type of status code is a status code other than the first type of status code, indicating that the target server is working abnormally; if the status code is determined to belong to the second type of status code, then it is marked that the vehicle network is in an available state but the server is working abnormally when the target probe address is used.

[0008] In one embodiment, the probe address list contains at least two probe addresses; if the status code is determined to be a second type of status code, and the vehicle network is marked as available but the server is malfunctioning when the target probe address is used, the method further includes: continuing to poll the next probe address in the probe address list as the new target probe address, and restarting the step of sending a network probe request to the corresponding target server based on the new target probe address, until all probe addresses in the probe address list have been polled.

[0009] In one embodiment, the probe address list contains at least two probe addresses; if no network probe response is received corresponding to the network probe request, the vehicle network is determined to be in an unavailable state, including: if no network probe response is received corresponding to the network probe request, continuing to poll the next probe address in the probe address list as the new target probe address, and restarting the step of sending a network probe request to the corresponding target server based on the new target probe address; if no corresponding network probe response is received after polling all probe addresses in the probe address list, the vehicle network is determined to be in an unavailable state.

[0010] In one embodiment, the method further includes: if it is determined that the vehicle network is available, then reporting first information indicating that the vehicle network is available to the upper-layer application; if it is determined that the vehicle network is unavailable, then reporting second information indicating that the vehicle network is unavailable to the upper-layer application.

[0011] In one embodiment, if the vehicle network is determined to be available, a first piece of information indicating that the vehicle network is available is reported to the upper-layer application, including: when the vehicle network is determined to be available, generating first information carrying a network access permission identifier and sending it to the upper-layer application to instruct the upper-layer application to perform a network access operation; if the vehicle network is determined to be unavailable, a second piece of information indicating that the vehicle network is unavailable is reported to the upper-layer application, including: when the vehicle network is determined to be unavailable, generating second information carrying a network access suspension identifier or a cache identifier and sending it to the upper-layer application to instruct the upper-layer application to suspend network access operation or cache pending requests.

[0012] In one embodiment, after identifying whether the network probe response is a complete response with a response header and a status code, the method further includes: if a response message fragment corresponding to the network probe request is received, and the response message fragment does not contain a complete response header and a status code at the same time, or the status code cannot be extracted from the response message fragment, then it is determined that a complete response with a response header and a status code has not been received, and it is determined that the vehicle network is in an unavailable state when the target probe address is used.

[0013] A second aspect of this application provides an electronic device, including: a processor and a memory connected to the processor; the memory is used to store a computer program; the processor is used to call and execute the computer program in the memory to perform the network detection method for a vehicle-mounted system provided in any implementation of the first aspect.

[0014] A third aspect of this application provides a vehicle including the electronic device provided in the second aspect described above.

[0015] To address the issue of misjudging network unavailability when vehicle-mounted systems perform network availability checks via fixed detection servers, where directly binding preset normal status codes to network availability leads to the detection service returning non-preset normal status codes despite the external network actually being available, the aforementioned network detection method determines the target detection address from the detection address list and sends a network detection request. Upon receiving a network detection response, it identifies whether the response is complete, including both headers and status codes, using the complete response as the basis for network availability judgment. This decouples the network link status from the target server's business status. When a complete response with headers and status codes is received, the vehicle-mounted system is determined to be in an available state; when no network detection response is received, the vehicle-mounted system is determined to be in an unavailable state. This avoids misjudgments of network outages caused by the detection service returning non-preset normal status codes, improves the accuracy of network availability judgment, and ensures that upper-layer applications can connect to the network normally when the link is normal. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a schematic flowchart of a network detection method for vehicle-mounted systems provided in an embodiment of this application.

[0018] Figure 2 yes Figure 1 The diagram shows a flowchart of the network detection method for determining the target detection address.

[0019] Figure 3 yes Figure 1 The diagram illustrates the determination of whether the vehicle-mounted network is unavailable in the network detection method shown.

[0020] Figure 4 This is a schematic flowchart of a network detection method for vehicle-mounted systems provided in another embodiment of this application.

[0021] Figure 5 This is a schematic flowchart of a network detection method for vehicle-mounted systems provided in another embodiment of this application.

[0022] Figure 6 This is a schematic diagram of the structure of a network detection device provided in an embodiment of this application.

[0023] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0024] The technical solution of this application will be further described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described below are only for explaining this application and are not intended to limit the scope of protection of this application. Unless otherwise specified, the following embodiments and their technical features can be combined with each other.

[0025] In the description of this application, the terms "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance. The terms "comprising," "including," and any variations thereof are intended to cover non-exclusive inclusion, such that a process, method, apparatus, product, or device that comprises a series of steps or units includes not only those steps or units but also other steps or units not expressly listed, or steps or units inherent to such process, method, product, or device.

[0026] This application relates to the field of intelligent connected vehicle technology, and in particular to a network detection method, electronic device, and vehicle for in-vehicle systems. This solution can be applied to scenarios such as network availability detection after the in-vehicle system has completed its initial startup, as well as to scenarios such as periodic network self-tests, application-triggered network verification, network status recovery confirmation, and reconfirmation after network switching.

[0027] In related technologies, in-vehicle infotainment systems typically access fixed detection servers to probe network availability, using the preset service status code returned by the detection server as the basis for determining network availability. For example, in a common HTTP probe scenario, the in-vehicle infotainment system is only considered to have network availability when an HTTP 204 status code is received; if a non-204 status code such as 200, 302, 307, 404, or 500 is returned, the network is considered unavailable. This method has significant limitations. In many cases, the aforementioned 2xx, 3xx, 4xx, and 5xx status codes (200, 302, 307, 404, 500, etc.) themselves indicate that the in-vehicle infotainment system has completed DNS resolution, TCP handshake, and application layer request and response interactions. In other words, the network link between the terminal and the public network is actually functioning. It's just that the target server, due to interface configuration adjustments, redirection strategies, service failures, or operational changes, has not returned the preset service status code. If it is still directly judged as network unavailable, the abnormal operation of the detection server will be mistakenly judged as an abnormality of the vehicle network, causing the upper layer application to pause network connection or cache requests even when there are real network connection conditions.

[0028] To address the aforementioned issues, the proposed solution in this application no longer directly and forcefully binds the preset service normal status code to network availability. Instead, it uses the receipt of a complete response with both a response header and a status code as the basis for determining network availability, and further classifies the status codes to distinguish whether the target server is functioning correctly. In this way, network link status and probe service status can be output in layers: as long as the server corresponding to any probe address returns a complete response with both a response header and a status code, it indicates that the application layer interaction has established a closed loop, thus determining network availability; whether the status code in this complete response belongs to the preset service normal status code is used to determine whether the target server is functioning correctly. Only when no corresponding complete response is received at any probe address is the vehicle network ultimately determined to be unavailable. This technical approach avoids misjudgments of the network caused by probe service anomalies.

[0029] As an optional implementation of the disclosure in this application, embodiments of this application provide a network detection method for in-vehicle systems. This method can be executed by an in-vehicle controller, communication controller, T-Box controller, cockpit domain controller, or a processing unit related to network access in the vehicle, or it can be executed by a processor in an electronic device by calling program instructions stored in memory.

[0030] like Figure 1 As shown, the network detection method for vehicle-mounted systems provided in this embodiment may include steps S110 to S140.

[0031] Step S110: Determine any target probe address from the probe address list, and send a network probe request to the corresponding target server based on the target probe address.

[0032] In this embodiment, the vehicle-mounted system pre-maintains a list of probe addresses, which may contain one or more probe addresses. In some implementations, the list contains at least two probe addresses so that if the current address probe fails or the server corresponding to the current address returns an error status code, other addresses can be tried. The probe address can be a domain name address, a Uniform Resource Locator (URL), an address formed by combining a domain name and a port, or a service access entry point containing access path parameters. This application does not limit the form of the probe address, as long as it can serve as the destination of a network probe request and trigger the corresponding target server to return an application-layer response.

[0033] For example, the vehicle-mounted system first determines any target detection address from the detection address list, and then sends a network detection request to the corresponding target server based on that target detection address. Here, any target detection address can be understood as a detection address currently selected according to preset rules. The preset rules can be fixed order rules, priority order rules, primary / backup order rules, or selection rules based on historical hit rates, regional configurations, operational strategies, etc. Therefore, in this embodiment, as long as a detection address can be determined from the detection address list, the requirement of step S110 is satisfied.

[0034] In some implementations, network probe requests can be application-layer probe requests. These application-layer probe requests are preferably lightweight requests to reduce resource and latency consumption during the vehicle's startup phase or periodic self-test phase. Taking an HTTP scenario as an example, the vehicle's system can initiate an HTTP request to the target probe address. The HTTP request can be a GET request, a HEAD request, or other request formats suitable for lightweight probes. For HTTPS scenarios, a corresponding HTTPS probe request can also be initiated after a secure connection is established. Regardless of the specific protocol used, this embodiment enables the vehicle's system to initiate an application-layer probe request to the target server to attempt to confirm whether the target server can return a network probe response that can be used for subsequent judgment.

[0035] In some embodiments, if the target probe address is a domain name, the vehicle system may first perform DNS resolution; if the resolution is successful, a TCP connection may be established; if it is an HTTPS request, a TLS handshake may be performed; and then an application layer probe request may be sent.

[0036] Through the above methods, the vehicle-mounted system identifies the target and initiates a detection action, providing a starting point for subsequent response reception, integrity identification, and network availability determination.

[0037] Step S120: If a network probe response corresponding to a network probe request is received, then identify whether the network probe response is a complete response with a response header and status code.

[0038] In this embodiment, after the vehicle-mounted system sends a network probe request to the target server, it waits for the target server to return a corresponding network probe response. If a network probe response corresponding to the network probe request is received, it further identifies whether the network probe response is a complete response with a response header and status code.

[0039] This application does not consider every received response to be network available. Instead, it requires that the response contain at least two elements: a response header and a status code. These two elements allow for a more objective determination that the server has responded to the probe request with a formal application-layer response. If there are only fragmented messages, truncated segments, handshake-level feedback, or only a low-level connection is established without a resolvable application-layer response, then it does not constitute a complete response as defined in this application.

[0040] In some implementations, identifying whether a network probe response is a complete response with a header and status code may involve the following steps: parsing the received response data to determine if it contains complete response header information; if the response header exists, further extracting the status code field and determining whether the status code can be successfully parsed. If both conditions are met, the network probe response is identified as a complete response with a header and status code. If the response header is incomplete, the status code is missing, the status code cannot be extracted, or only fragmented information is received, it cannot be considered a complete response.

[0041] In an HTTP context, a complete response is defined as a response message containing a complete response header and a resolvable HTTP status code. HTTP status codes can be any of the following: 100-199 (Information), 200-299 (Success), 300-399 (Redirection), 400-499 (Client Error), or 500-599 (Server Error). It's important to note that the purpose of identifying the status code in step S120 is not primarily to determine if its value matches a preset normal service status code (e.g., 204), but rather to determine if the response has formed a formal application-layer interaction loop. In other words, step S120 focuses on whether the response is complete, not whether the status code value meets preset normal service criteria.

[0042] In some embodiments, the waiting process in step S120 can be configured with a timeout threshold. For example, after sending a network probe request, a request timeout timer is started, and returned data is continuously monitored within a preset request timeout threshold. If a complete response is received within the threshold, the process proceeds to the subsequent network availability determination branch. If no response is received within the threshold, or only fragments that do not constitute a complete response are received, the process proceeds to the unavailability branch or continues polling other probe address branches according to the subsequent process. This timeout setting can be configured in conjunction with vehicle startup performance, network latency, operational strategies, etc.

[0043] Therefore, this step shifts the determination of network availability from status code value binding to the determination of the existence of complete application layer interaction by judging whether a complete application layer response has been completed.

[0044] Step S130: If the network detection response is a complete response with a response header and status code, then the vehicle network is determined to be in an available state.

[0045] In this embodiment, if step S120 identifies the received network probe response as a complete response with a response header and status code, then the vehicle network is directly determined to be in an available state.

[0046] In this embodiment, as long as the vehicle-mounted system receives a complete response with a response header and status code from the target server, it indicates that the end-to-end communication process between the vehicle-mounted system and the target server has been completed, including at least domain name resolution, transport layer connection establishment, and application layer request-response interaction. At this point, regardless of whether the status code is 204, 302, 200, 404, or 500, it indicates that the network link is capable of supporting application layer communication between the vehicle-mounted system and the external server. Therefore, from the perspective of network availability, this situation should be considered as the vehicle-mounted system network being available, rather than requiring it to conform to a specific preset status code.

[0047] For example, if a fixed detection server returns a 302 redirect status code, the vehicle's infotainment system has actually successfully accessed the server, and the server has completed its application-layer response; it's just that the server returned a redirect instead of a 204 based on its current configuration. To still classify this situation as network unavailability is essentially misinterpreting a server configuration change as a network failure. Similarly, when the server returns a 500 status code, although 500 indicates an internal server error, the server has already received the request and generated a formal response, which also indicates that the network link itself is functional. Therefore, in this step, as long as the response is complete, the network availability assessment is valid.

[0048] In some implementations, step S130 does not preclude further subdividing the current state of the target server after determining that the network is available. That is, step S130 first completes the basic determination of whether the network link is available, and then further distinguishes the working state of the target server. That is, a layered processing logic is adopted to determine the link connectivity by using a complete response and to determine the server health by using the status code category, thereby decoupling the two types of determinations.

[0049] Therefore, this step promptly confirms network availability upon receiving a complete response, avoiding the error of marking a network that should be available as unavailable due to the server returning a non-preset status code.

[0050] Step S140: If no network detection response is received for the network detection request, the vehicle network is determined to be unavailable.

[0051] In this embodiment, the failure to receive a network probe response can include a variety of specific situations, such as: DNS resolution failure, TCP handshake timeout, connection rejection, request timeout, no response from the server, or other situations that cause the vehicle-mounted system to fail to receive a response.

[0052] In this embodiment, step S140 first uses a single target probe address as the judgment object. That is, when a network probe request is initiated to the current target probe address and no corresponding network probe response is received, it can at least be determined that the vehicle system cannot establish a valid probe interaction under the probe path of the current target probe address. Under the most basic logic, this situation can be regarded as the vehicle system network being unavailable. In other embodiments, considering that the probe address list can contain multiple probe addresses, it is further limited: for multi-address scenarios, the next probe address can be polled first, and only when all addresses do not respond is the vehicle network finally determined to be unavailable.

[0053] In summary, by employing the aforementioned technical approach, this embodiment shifts the basis for determining network availability from whether a preset service normal status code is returned to whether a complete response with both a response header and a status code is received. This decouples the network link status from the operational status of the detection server. When the detection server returns non-preset service normal status codes such as 302, 200, 404, or 500 due to interface redirection, configuration adjustments, or service anomalies, as long as the vehicle-mounted system has received a complete response, it can still correctly determine that the network is available. This avoids misjudging an anomaly in the detection server as a network anomaly in the vehicle-mounted system, thus improving the accuracy of network availability detection results.

[0054] In some implementations, such as Figure 2 As shown, determining any target detection address in the detection address list may include steps S111 and S112.

[0055] Step S111: After detecting that the vehicle's infotainment system is powered on and has completed initialization, start the network detection function to load the list of detection addresses.

[0056] In this embodiment, powering on and completing initialization can be understood as the vehicle system having completed basic hardware self-checks, operating system or underlying platform initialization, communication module readiness, and the basic environment preparation required for network detection. Only after these prerequisites are met is the network detection function initiated, avoiding premature network requests that could lead to misjudgments before the system has normal detection capabilities.

[0057] The probe address list can be loaded from a local configuration file, a fixed parameter table, or a configuration cached before power-on. In some implementations, the probe address list can contain multiple pre-configured service addresses, backup probe addresses, or dedicated probe addresses. The purpose of loading this list is to provide a candidate set for the subsequent selection of target probe addresses.

[0058] Step S112: Select a probe address from the probe address list according to the preset rules, and use it as the target probe address.

[0059] After the detection address list is loaded, the vehicle-mounted system selects a detection address from the list according to preset rules as the current target detection address. These preset rules can be list order priority rules, primary / backup order rules, fixed priority rules, or other pre-defined address selection rules. For example, detection addresses with higher stability, faster response speed, or higher business importance can be prioritized; if the preferred address does not meet the conditions, it can fall back to other addresses.

[0060] Understandably, even if the list of probe addresses contains multiple probe addresses, the system needs to determine a current target probe address at any given time, and then execute the probe request sending and subsequent judgment process based on that address.

[0061] This embodiment limits the initiation of network detection to after the vehicle's infotainment system is powered on and initialized. It also introduces logic for loading a list of detection addresses and selecting target detection addresses according to preset rules, making the determination of target detection addresses more explicit. This avoids misjudgments caused by premature network detection and ensures consistency and controllability in the order in which multiple detection addresses are used.

[0062] In some implementations, the probe address list contains at least two probe addresses, such as Figure 3 As shown, if no network detection response is received for the network detection request, the vehicle network is determined to be in an unavailable state, which may include steps S141 and S142.

[0063] Step S141: If no network probe response is received for the network probe request, continue to poll the next probe address in the probe address list as the new target probe address, and restart the step of sending a network probe request to the corresponding target server based on the new target probe address.

[0064] In this embodiment, when a network probe request is sent to the current target probe address but no corresponding network probe response is received, the final conclusion that the vehicle network is unavailable is not directly drawn. Instead, the next probe address in the probe address list is polled as the new target probe address, and the probe request sending step is restarted based on the new target probe address.

[0065] Understandably, a lack of response from a single target probe address does not necessarily mean the entire vehicle network is unavailable. It could also be due to server malfunction, unreachable interface, local access failure, address policy changes, or temporary maintenance issues. Immediately deeming the entire vehicle network unavailable after a single address failure still carries the risk of misjudgment. Therefore, this embodiment introduces a multi-address polling mechanism: when a probe to the current target probe address fails, it automatically switches to the next address in the probe address list to re-initiate the probe; as long as there are still addresses in the probe address list that have not been probed, the probe process of selecting a target probe address, sending a network probe request, and waiting for the corresponding response is continuously repeated.

[0066] Step S142: If no corresponding network probe response is received after polling all probe addresses in the probe address list, the vehicle network is determined to be unavailable.

[0067] In this embodiment, the vehicle network is only determined to be unavailable if no corresponding network probe response is received after polling all probe addresses in the probe address list. In other words, the conclusion that the vehicle network is unavailable is no longer based solely on the failure of a single probe address, but rather on the aggregate result that all candidate probe addresses have failed.

[0068] In summary, this embodiment continues to poll the next detection address after the current target detection address does not receive a response, and only when no corresponding network detection response is received from all detection addresses will the vehicle network be finally determined to be unavailable, reducing the risk of misjudging that the entire network will be disconnected due to a single address not responding.

[0069] In some implementations, such as Figure 4 As shown, after confirming that the network detection response is a complete response with a response header and status code and determining that the vehicle network is in an available state, the process may further include steps S150, S160, S170 and S180.

[0070] Step S150: Extract the status code from the network probe response and determine whether the status code belongs to the first type of status code, where the first type of status code is a preset status code that indicates that the target server is working normally.

[0071] In this embodiment, the first type of status code corresponds to the situation where the network is available and the target server is functioning normally. In a specific HTTP scenario, the first type of status code is preferably the HTTP 204 status code. Of course, the first type of status code can also be other preset status codes used to indicate that the target server is functioning as expected.

[0072] Step S160: If the status code is determined to be a first type of status code, then mark that the vehicle network is available and the server is normal when the target detection address is used.

[0073] If the extracted status code is determined to be a first-type status code in step S150, it means that the target server corresponding to the current target probe address not only returned a complete response, but its return result also meets the preset expectation of normal service. At this time, it can be marked that the vehicle network is available and the server is normal when using the current target probe address. The significance of this marking is to record both the link being connected and the service being normal simultaneously. In this way, when the upper-layer system reads the result, it knows that the network is available and that the currently used probe server is working normally.

[0074] Step S170: If the status code is determined not to belong to the first type of status code, then the status code is determined to belong to the second type of status code. The second type of status code is a status code other than the first type of status code, which indicates that the target server is malfunctioning.

[0075] If the status code determined in step S150 does not belong to the first type of status code, it is further classified as a second type of status code. The second type of status code is a status code other than the first type, used to indicate that the target server is malfunctioning. It is important to note that the second type of status code is not used to deny network availability. This is because the vehicle-mounted system has already determined network availability based on the complete response before proceeding to step S150. The second type of status code indicates that the current target server has not returned a normal status according to the preset probe service rules. For example, in an HTTP scenario, 302, 307, 200, 404, and 500 can all be used as second type status codes, which may represent different business layer meanings such as a normal success page, redirection, temporary redirection, resource not found, and internal server error, respectively. The same applies to other resolvable status codes other than 204. The common point is that they all indicate that the server has officially returned an application layer response. Therefore, they collectively represent network availability, but the current probe server is malfunctioning or not meeting expectations.

[0076] Step S180: If the status code is determined to be a second type of status code, then mark that the vehicle network is in an available state but the server is malfunctioning when the target detection address is used.

[0077] When the status code is determined to be a Type 2 status code, this embodiment indicates that the vehicle network is available but the server is malfunctioning when the current target probe address is used. This flag explicitly distinguishes between two scenarios: one where the network is available and the server is functioning normally; and another where the network is available but the server is malfunctioning. This allows upper-layer applications or logging systems to accurately identify that the problem lies with the probe server, rather than with the vehicle network link itself.

[0078] In summary, this embodiment, after determining network availability, extracts the status code and categorizes it into a first type and a second type of status code. If it is a first type status code, the network is marked as available and the server is functioning normally; if it is a second type status code, the network is marked as available but the server is malfunctioning. This enriches the output dimensions of the detection results, presenting the network link status and the detection service status in a hierarchical manner, thereby preventing the specific value of the status code from being used as a condition to deny network availability.

[0079] In some implementations, the probe address list contains at least two probe addresses. If the status code is determined to be a Type II status code, meaning the current address corresponds to a complete response but the server is malfunctioning, then after marking the vehicle network as available but the server malfunctioning when using that target probe address, the next probe address in the probe address list is polled as the new target probe address. The process of sending network probe requests is restarted based on the new target probe address until all probe addresses in the probe address list have been polled. It is understandable that the return of a Type II status code for the current target probe address only indicates that the target server corresponding to that address is malfunctioning, but it cannot reflect the actual working status of the servers corresponding to other probe addresses in the probe address list. If the probe stops at this partial conclusion, the information obtained by the system will be limited to network availability but current server malfunction, making it impossible to further determine whether the malfunction is a problem with an individual probe address or an overall malfunction of all probe address servers, thus limiting the reliability of the probe results.

[0080] By continuing to poll the remaining probe addresses, the status code classification results of the target servers corresponding to each probe address can be obtained one by one. If any subsequent probe address returns a first-class status code, it indicates that although a server at a certain address was abnormal, at least one server in the probe address list is still working normally. Therefore, it can be confirmed that the network is available and that at least one server is working normally. If, after polling all probe addresses, the status codes corresponding to each address are all second-class status codes, it indicates that the target servers corresponding to all probe addresses are abnormal. Therefore, it can be confirmed that the network is available but the overall probe service is abnormal. As can be seen, this embodiment, through the processing mechanism of continuing to poll after a server abnormality, achieves further refinement of the probe server status without changing the network availability judgment result. It can distinguish between individual server abnormalities and overall server abnormalities, enhance the completeness and reliability of the probe conclusions, and provide a basis for upper-layer applications to perform more precise network control or operation and maintenance processing based on the actual server status.

[0081] In some implementations, after identifying whether the network probe response is a complete response with a response header and status code, if the vehicle-mounted system receives a fragment of the response message corresponding to the network probe request, and this fragment does not simultaneously contain a complete response header and status code, or although it contains a partial response header, the status code cannot be extracted from it, then it is determined that a complete response with a response header and status code has not been received, and based on this, it is determined that the vehicle-mounted system's network is in an unavailable state when using the target probe address. It is understandable that intermediate situations that may occur in the actual network environment, such as responses that are received but incomplete, are explicitly categorized as cases where a complete response has not been formed. By classifying fragmented responses as cases where a complete response has not been received, subsequent judgment logic can be kept consistent, avoiding incorrectly entering the network available branch due to incomplete responses.

[0082] This embodiment categorizes situations where only a fragment of the response message is received but lacks both a complete response header and status code, or where the status code cannot be extracted from the fragment, as "not receiving a complete response with both a response header and status code." Based on this, it determines that the vehicle network is unavailable when using that target probe address. Since this application uses a complete response with both a response header and status code as the basic criterion for network availability, failing to distinguish between incomplete fragments and complete responses can easily lead to misinterpreting fragmented messages or truncated headers as valid responses, resulting in an incorrect conclusion that the network is available. This embodiment uses a complete response header and an extractable status code as the structural integrity condition, excluding incomplete responses from complete responses. This makes the boundaries of network availability judgment clearer and improves the accuracy of the judgment results. Simultaneously, this classification method allows the vehicle network to promptly end its wait for an incomplete response at the current address and poll the next probe address as needed, avoiding unnecessary waiting and improving the execution efficiency of the multi-address probe process.

[0083] To provide a holistic overview of multi-address probing, response classification, continued polling, and final decision-making, the following combines... Figure 5 The following describes an exemplary complete process of the network detection method provided in the embodiments of this application.

[0084] Step 501: Power on and initialize the vehicle infotainment system.

[0085] In this embodiment, the network detection process is initiated after the vehicle's infotainment system (VIS) has completed its power-on and initialization. After powering on, the VIS typically needs to complete tasks such as underlying hardware self-testing, operating system or basic software platform initialization, communication module power-on readiness, related service startup, and loading of necessary configuration items. This initialization process may include network interface preparation, system clock synchronization, and the startup of underlying services related to network detection. Only when the VIS detects that it has completed the above initialization work is it considered ready to initiate network detection. In this embodiment, step 501 serves as a prerequisite for the entire network detection process.

[0086] Step 502: Start network probing and load a multi-level probe address list.

[0087] After confirming in step 501 that the vehicle-mounted system has completed power-on and initialization, the system initiates network detection and loads a multi-level detection address list. This multi-level detection address list can be understood as a set of addresses containing a primary detection address and one or more backup detection addresses. The detection addresses in this set can have a preset priority relationship or be arranged in a fixed order or a primary / backup order. In specific implementations, the vehicle-mounted system can read these detection addresses from a local configuration file, system configuration area, remote configuration distribution area, or fixed parameter area. The loaded address list forms a multi-address candidate set for this network detection. By loading a list containing multiple detection addresses, during subsequent detection processes, when the current address does not respond or the corresponding server returns an abnormal status code, the system can sequentially switch to the next detection address to continue detection, thereby avoiding excessive reliance on a single fixed detection address and reducing the risk of overall network misjudgment due to the failure of an individual detection address.

[0088] Step 503: Select the highest priority probe address and initiate an HTTP request.

[0089] In this embodiment, the system selects the highest priority detection address and initiates an HTTP request to the corresponding server. An HTTP request is used as an example because it is common in vehicle-to-everything (V2X) network detection scenarios and existing implementations are easily reused. However, it should be understood that the method provided in this embodiment is not limited to the HTTP protocol.

[0090] The initiated HTTP request can be a lightweight probe request, used to obtain the server's response as quickly as possible. The purpose of current address probing is to determine whether the server corresponding to this address can return a complete HTTP response, and if so, what the status code category is.

[0091] Step 504: Determine if any HTTP response has been received.

[0092] In this embodiment, determining whether any HTTP response has been received should be understood as determining whether a return result sufficient to enter the response integrity identification process has been received. If there is no response, a timeout, DNS failure, or TCP failure, the process proceeds to the current address detection failure branch. If an HTTP response is received, the process continues to determine the status code corresponding to the response and whether the response meets the requirements for a complete response.

[0093] Step 505: Current address detection failed.

[0094] If no response is determined in step 504, such as timeout, DNS failure, TCP failure, connection rejection, or no valid response received throughout the request, then the current address probe is marked as failed. A failed current address probe does not immediately equate to the entire network being unavailable; rather, it provides an intermediate judgment on whether to switch to the next address and whether all addresses ultimately fail.

[0095] Step 506: Determine if the response code is 204.

[0096] If an HTTP response has been received in step 504, then it is further determined whether the response code is 204. Here, 204 can be regarded as the first type of status code in the HTTP scenario, indicating that the target server is working normally. If it is 204, it means that the current address has both completed the full HTTP response and met the preset conditions for normal service return; if it is not 204, such as 200, 302, 307, 404, 500, etc., then it enters the processing branch of service abnormality but link uninterrupted.

[0097] Step 507: Mark the current service as abnormal, the link is clear, and switch to the next address.

[0098] When step 506 determines that the response code is not 204, this embodiment marks the current address as: the current service is abnormal, but the link is working. That is, the server corresponding to the current address has not returned a preset normal service status code, but since a formal HTTP response has been received, the network link itself is still considered available. Based on this, the probe is switched to the next address.

[0099] Step 508: Network detection successful, report network availability.

[0100] If any address returns a 204, the network probe can proceed directly to the successful network probe stage and report network availability. This demonstrates the logic that if any address in a multi-level probe returns a 204 response, the overall network probe is successful and network availability is reported.

[0101] Meanwhile, for cases where all addresses return complete responses but none are 204, this embodiment can also enter the network availability output branch after final aggregation, only with the addition of overall service anomaly information. That is to say, step 508 can correspond to two types of network availability results: one is that the network is available and at least one probe server is normal; the other is that the network is available but all probe servers are abnormal.

[0102] Step 509: Determine if there are any undetected addresses.

[0103] If the current address probe fails or the current address service is abnormal but the link is still functioning, this embodiment continues to determine if there are any unprobeaged addresses. If there are still unprobeaged addresses, it returns to step 503 and selects the next address to continue probing. This forms a multi-address polling probe mechanism.

[0104] Step 510: Determine if all addresses are unresponsive.

[0105] After all addresses have been probed, this embodiment further determines whether all addresses are unresponsive. If the answer is yes, it means that all addresses have not formed an effective application layer probe loop, and the actual network is abnormal. If the answer is no, that is, although no address returns a 204, at least some addresses return complete responses such as 302, 200, and 500, it should be considered that all addresses are not unresponsive. At this time, the overall link can still be regarded as unobstructed, but the probe server is abnormal.

[0106] Step 511: Determine if there is a network anomaly and report that the network is unavailable.

[0107] When step 510 determines that all addresses are unresponsive, a network anomaly is identified and a network unavailability is reported.

[0108] In some implementations, after determining the vehicle network status, the method of any of the foregoing embodiments can further report the determination result to the upper-layer application. Specifically, when the vehicle network is determined to be available, first information indicating that the vehicle network is available is reported to the upper-layer application; when the vehicle network is determined to be unavailable, second information indicating that the vehicle network is unavailable is reported to the upper-layer application. The first and second information are used to transmit the underlying network detection results to the upper-layer application, so that the network detection results are no longer confined to the vehicle network detection function but can be directly perceived and used by the upper-layer business applications. If the network detection process only completes the determination without outputting to the upper layer, the upper-layer application still needs to rely on its own polling or other methods to obtain the network status, increasing the implementation complexity of the upper-layer application and hindering timely adjustments to business behavior. By reporting the first and second information, the vehicle detection layer can directly drive the upper-layer application to perform subsequent processing based on the determination result, allowing the upper-layer application to obtain a clear conclusion of network availability or unavailability without repeatedly determining the underlying network status.

[0109] Furthermore, in some implementations, the first and second information can carry different service identifiers to directly instruct the upper-layer application to perform corresponding operations. When the vehicle network is determined to be available, first information carrying a network access permission identifier is generated and sent to the upper-layer application to instruct it to perform network access operations. When the vehicle network is determined to be unavailable, second information carrying a network access suspension identifier or a cache identifier is generated and sent to the upper-layer application to instruct it to suspend network access operations or cache pending requests. Here, this embodiment directly maps the network status to service indicator identifiers, enabling the upper-layer application to directly perform network access, suspend network access, or cache pending requests according to the identifiers, reducing the judgment steps of the upper-layer application and improving response speed. For example, when the network detection is successful after the vehicle is powered on, the upper-layer application can immediately initiate a data request based on the network access permission identifier; when all probe addresses do not respond and the network is determined to be unavailable, the upper-layer application can stop the network request or temporarily store pending data according to the network access suspension identifier or cache identifier, and process it again after the network is restored.

[0110] As an optional implementation of the disclosure in this application, embodiments of this application also provide a network detection device. For example... Figure 6As shown, the network detection device 600 includes a detection execution module 610, a response detection module 620, and a processing module 630. The network detection device 600 can be deployed in a vehicle controller, T-Box, cockpit domain controller, communication controller, or other processing units related to vehicle network access. This embodiment does not limit its specific physical deployment location. The network detection device 600 is used to implement the network detection method for vehicle systems in the aforementioned method embodiments. Specifically, the detection execution module 610 is used to determine any target detection address in the detection address list and send a network detection request to the corresponding target server based on the target detection address; the response detection module 620 is used to identify whether the network detection response is a complete response with a response header and status code when a network detection response corresponding to the network detection request is received; the processing module 630 is used to determine that the vehicle network is in an available state when the network detection response is a complete response with a response header and status code; and, when no network detection response corresponding to the network detection request is received, determine that the vehicle network is in an unavailable state.

[0111] In this embodiment, the detection execution module 610 is mainly used to execute the detection initiation action. It can select the target detection address to be detected from the detection address list and construct a corresponding network detection request to send to the target server corresponding to the target detection address. When implementing the detection execution module 610, it can determine the current target detection address by combining an address configuration table, priority order, preset rules, or polling rules. The sent network detection request can be an HTTP request, an HTTPS request, or other request messages that can trigger the target server to return an application layer response.

[0112] In this embodiment, the response detection module 620 is mainly used to receive and identify the returned results. When the probe execution module 610 sends a network probe request, the response detection module 620 receives the network probe response corresponding to the network probe request and identifies whether the network probe response is a complete response with a response header and status code. The response detection module 620 does not simply determine whether arbitrary returned data has been received, but further determines whether the returned data has formed a parsable formal application layer response. If the returned result contains both a complete response header and a status code, the response detection module 620 can identify it as a complete response; if only fragmented messages, response message fragments, truncated headers are received, or the status code cannot be extracted from the returned result, it is not identified as a complete response.

[0113] In this embodiment, the processing module 630 outputs the network status based on the response detection result. Specifically, when the response detection module 620 identifies a complete response with a response header and status code, the processing module 630 determines that the vehicle network is available; when no network detection response is received corresponding to the network detection request, the processing module 630 determines that the vehicle network is unavailable. That is, the processing module 630 associates the existence of a complete response with network availability and the absence of a network detection response with network unavailability. The processing module 630 does not require the returned status code to be equal to a preset normal service status code to output network availability; rather, as long as a complete response with a response header and status code has been received, it can confirm that the application layer interaction loop between the vehicle and the target server has been completed, thereby determining network availability. This avoids incorrectly outputting network unavailability due to the target server returning a non-preset normal status code.

[0114] In summary, this embodiment, by setting up a detection execution module 610, a response detection module 620, and a processing module 630, enables the network detection device 600 to modularly implement three processing stages: target detection address determination and request sending, complete response identification, and network status determination. Specifically, when determining network status, the processing module 630 does not base network availability on whether the returned status code belongs to a preset normal service status code, but rather on whether a complete response with a response header and status code has been received. Based on this judgment rule, when the target server returns non-preset normal status codes such as 302, 200, 404, or 500, but the vehicle-mounted system has already received a complete response with a response header and status code, the processing module 630 will determine this situation as the vehicle-mounted network being available, and will not output a network unavailable result because the status code does not conform to the preset normal service status code. Thus, the abnormal operation of the target server and the unavailability of the vehicle-mounted network are no longer directly equated, thereby eliminating the situation in related technologies where a actually available network is mistakenly judged as unavailable due to the detection server returning a non-preset normal status code. Accordingly, the processing module 630 only outputs a determination that the vehicle network is unavailable when no corresponding network probe response is received. Therefore, this embodiment reduces false judgments of network disconnection caused by abnormal probe server status by adjusting the basis for network availability judgment from a preset status code to a complete response, thereby improving the accuracy of vehicle network probe results.

[0115] As another optional implementation of the disclosure of this application, embodiments of this application also provide an electronic device, such as... Figure 7As shown, the electronic device 700 may include a memory 710 and a processor 720; wherein the memory 710 is connected to the processor 720 and is used to store programs; the processor 720 is used to implement the network detection method for vehicle-mounted systems disclosed in any of the above embodiments by running the programs stored in the memory 710.

[0116] Specifically, the electronic device 700 may also include: a bus 701, a communication interface 730, an input device 740, and an output device 750.

[0117] The memory 710, processor 720, communication interface 730, input device 740, and output device 750 are interconnected via bus 701. Among them: Bus 701 may include a pathway for transmitting information between various components of a computer system.

[0118] The processor 720 can be a general-purpose processor, such as a general-purpose central processing unit (CPU), a microprocessor, etc., or an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present application. It can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0119] The processor 720 may include a main processor, as well as a baseband chip, modem, etc.

[0120] The memory 710 stores a program that executes the technical solution of this application, and may also store an operating system and other key business functions. Specifically, the program may include program code, which includes computer operation instructions. More specifically, the memory 710 may include read-only memory (ROM), other types of static storage devices that can store static information and instructions, random access memory (RAM), other types of dynamic storage devices that can store information and instructions, disk storage, flash memory, etc.

[0121] The communication interface 730 may include a device that uses any transceiver to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), etc.

[0122] Input device 740 may include a device for receiving user input data and information, such as a keyboard, mouse, camera, scanner, light pen, voice input device, touch screen, pedometer, or gravity sensor.

[0123] Output device 750 may include devices that allow information to be output to a user, such as a display screen, printer, speaker, etc.

[0124] The processor 720 executes the program stored in the memory 710 and calls other devices, which can be used to implement the various steps of the network detection method for vehicle-mounted systems provided in the above embodiments of this application.

[0125] As another optional implementation of the disclosure of this application, embodiments of this application also provide a vehicle that includes electronic devices as described in the above embodiments.

[0126] During implementation, equipping vehicles with the aforementioned electronic devices can accurately determine whether the vehicle network is available based on whether a complete response with a response header and status code is received, in scenarios such as vehicle power-on, network switching, or periodic self-tests. This reduces false judgments of network outages caused by the detection server returning non-preset normal status codes, enabling vehicle upper-layer applications to initiate network operations normally when the real network is available, and ensuring the stable operation of vehicle networking functions.

[0127] As another optional implementation of the disclosure of this application, embodiments of this application also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer, performs the network detection method for vehicle-mounted systems in any of the above embodiments.

[0128] As another optional implementation of the disclosure of this application, embodiments of this application also provide a computer program product containing instructions that, when executed by a computer, cause the computer to perform the network detection method for vehicle-mounted systems described in any of the above embodiments.

[0129] It is understood that the processor in the embodiments of this specification can be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method embodiments can be completed by the integrated logic circuits in the processor's hardware or by instructions in software form. The processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this specification. The general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of this specification can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory; the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.

[0130] It is understood that the memory in the embodiments of this specification may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory may be random access memory (RAM). It should be noted that the memory in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0131] It is understood that in the various embodiments described in this specification, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments described in this specification.

[0132] It is understood that the various implementation methods described in this specification can be implemented individually or in combination, and the implementation methods in this specification are not limited in this respect.

[0133] Unless otherwise stated, all technical and scientific terms used in the embodiments of this specification have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of this specification. The term "and / or" as used in this specification includes any and all combinations of one or more of the associated listed items. The singular forms "a," "the," and "the" as used in the embodiments of this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.

[0134] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this specification.

[0135] In the several embodiments provided in this specification, it should be understood that the disclosed systems, devices, vehicles, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interface; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0136] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0137] In addition, the functional units in the various embodiments of this specification can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0138] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of this specification, in essence, or the parts that contribute to the prior art, or parts of the technical solutions, can be embodied in the form of software products. These computer software products are stored in a storage medium and include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this specification. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0139] The above description is merely a specific embodiment of this specification, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this specification should be included within the scope of protection of this specification.

Claims

1. A network detection method for a car machine, characterized by, include: Determine any target probe address from the probe address list, and send a network probe request to the corresponding target server based on the target probe address; If a network probe response corresponding to the network probe request is received, then it is identified whether the network probe response is a complete response with a response header and a status code; If the network detection response is a complete response with a response header and a status code, then the vehicle network is determined to be in an available state. If no network detection response is received for the network detection request, the vehicle network is determined to be unavailable.

2. The network probing method of claim 1, wherein, Determining any target probe address from the probe address list includes: After detecting that the vehicle's infotainment system is powered on and has completed initialization, the network detection function is activated to load the list of detection addresses; Select a probe address from the list of probe addresses according to preset rules, and use it as the target probe address.

3. The network probing method of claim 1, wherein, If the network detection response is a complete response with a response header and a status code, then after determining that the vehicle network is in an available state, the process further includes: Extract the status code from the network probe response and determine whether the status code belongs to the first type of status code, wherein the first type of status code is a preset status code that indicates that the target server is working normally. If the status code is determined to be a first type of status code, then the vehicle network is marked as available and the server is normal when the target detection address is used; If it is determined that the status code does not belong to the first type of status code, then the status code is determined to belong to the second type of status code, wherein the second type of status code is a status code other than the first type of status code, indicating that the target server is malfunctioning. If the status code is determined to be a second type of status code, then the vehicle network is marked as available but the server is malfunctioning when the target detection address is used.

4. The network probing method of claim 3, wherein, The list of probe addresses contains at least two probe addresses; after determining that the status code belongs to the second type of status code, and marking that the vehicle network is available but the server is malfunctioning when the target probe address is used, the method further includes: Continue polling the next probe address in the probe address list as the new target probe address, and based on the new target probe address, restart the step of sending a network probe request to the corresponding target server based on the target probe address, until all probe addresses in the probe address list have been polled.

5. The network probing method of claim 1, wherein, The list of probe addresses contains at least two probe addresses; If no network detection response is received for the network detection request, the vehicle network is determined to be unavailable, including: If no network probe response is received for the network probe request, continue to poll the next probe address in the probe address list as the new target probe address, and restart the step of sending a network probe request to the corresponding target server based on the new target probe address. If no corresponding network probe response is received after polling all probe addresses in the probe address list, the vehicle network is determined to be unavailable.

6. The network probing method of any of claims 1 to 5, wherein, Also includes: If it is determined that the vehicle network is available, the first information indicating that the vehicle network is available is reported to the upper-layer application. If the vehicle network is determined to be unavailable, a second message indicating that the vehicle network is unavailable is reported to the upper-layer application.

7. The network detection method according to claim 6, characterized in that, If it is determined that the vehicle network is available, the first information of the availability of the vehicle network is reported to the upper layer application, including: when it is determined that the vehicle network is available, generating the first information carrying the network access permission identifier and sending it to the upper layer application to instruct the upper layer application to perform network access operation; If the vehicle network is determined to be unavailable, the second piece of information regarding the unavailability of the vehicle network is reported to the upper-layer application, including: When the vehicle network is determined to be unavailable, a second message carrying a paused network identifier or a cache identifier is generated and sent to the upper-layer application to instruct the upper-layer application to pause network operation or cache pending requests.

8. The network probing method of claim 1, wherein, After identifying whether the network probe response is a complete response with a response header and status code, the process further includes: If a response message fragment corresponding to the network probe request is received, and the response message fragment does not contain a complete response header and status code at the same time, or the status code cannot be extracted from the response message fragment, then it is determined that a complete response with a response header and status code has not been received, and it is determined that the vehicle network is in an unavailable state when the target probe address is used.

9. An electronic device, comprising: include: A processor, and a memory connected to the processor; The memory is used to store computer programs; The processor is used to call and execute the computer program in the memory to perform the network detection method for a vehicle-mounted system as described in any one of claims 1 to 8.

10. A vehicle, characterized in that, Including the electronic device as described in claim 9.