Communication method, device, electronic device and storage medium
By detecting the network quality of the access point APN link of the vehicle communication terminal and switching to the network when all links are disconnected, the problem of network instability of the vehicle communication terminal in complex environments is solved, and the stability and reliability of communication are improved.
Patent Information
- Application Number
- CN202211031542.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-26
- Publication Date
- 2025-09-16
- Estimated Expiration
- 2042-08-26
AI Technical Summary
The network stability of vehicle-mounted communication terminals when communicating with servers in complex urban environments is poor, resulting in low reliability of communication data.
By detecting the network quality of multiple access point APN links, the network connection status is determined, and when all links are disconnected, the network switching is controlled to ensure the stability and reliability of communication.
Improve the network stability and communication data reliability of on-board communication terminals and servers in complex environments, especially after passing through long-distance tunnels and areas without 5G signals, and be able to switch networks in time to ensure communication continuity.
Smart Images

Figure CN115567552B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of vehicle networking technology, and in particular relates to a communication method, device, electronic device and storage medium. Background Art
[0002] Current connected vehicle (IoV) systems offer a variety of services, including infotainment, smart city transportation, and system upgrades. These services are primarily implemented through in-vehicle communication terminals communicating with servers via base stations, all of which rely on infrastructure such as 4G and 5G networks. However, the complex application environments of modern cities (mountains, bridges, high-rise buildings, viaducts, tunnels, and underground garages), as well as the load on nearby base stations, can lead to poor network stability when communicating between in-vehicle communication terminals and servers. This can lead to data loss and reduce the reliability of communication data between in-vehicle communication terminals and servers. Summary of the Invention
[0003] The embodiment of the present application provides an implementation solution that is different from the related art to solve the technical problems of poor network stability and low reliability of communication data when the vehicle-mounted communication terminal and the server communicate.
[0004] In a first aspect, the present application provides a communication method, applied to a vehicle-mounted communication terminal, the method comprising:
[0005] For each APN link in the plurality of access point APN links, detecting a network quality of the APN link to obtain a first detection result corresponding to the APN link;
[0006] Determining a network connection state between the APN link and its corresponding domain name server when the first detection result corresponding to the APN link indicates any one or more of the following: a network signal strength value of the APN link is less than a preset strength value, a signal-to-noise ratio value of communication data of the APN link is less than a preset signal-to-noise ratio value, and a network standard of the APN link is not a preset network standard; wherein the network connection state includes a disconnected state and a connected state;
[0007] When the network connection status between each APN link and its corresponding domain name server is disconnected, control the switching of the resident network;
[0008] Communication is performed based on the network after switching to the network.
[0009] In a second aspect, the present application provides a communication device, the device comprising:
[0010] The resident network management module is configured to detect the network quality of each APN link in the plurality of access point APN links, and obtain a first detection result corresponding to the APN link;
[0011] a first determining module, configured to determine a network connection state between the APN link and its corresponding domain name server when a first detection result corresponding to the APN link indicates any one or more of the following: a network signal strength value of the APN link is less than a preset strength value, a signal-to-noise ratio value of communication data of the APN link is less than a preset signal-to-noise ratio value, and a network standard of the APN link is not a preset network standard; wherein the network connection state includes a disconnected state and a connected state;
[0012] A first control module is configured to control switching of the resident network when the network connection status between each APN link and its corresponding domain name server is disconnected;
[0013] The communication module is used for communicating based on the network after switching to the new network.
[0014] In a third aspect, the present application provides an electronic device, comprising:
[0015] processor; and
[0016] a memory for storing executable instructions of the processor;
[0017] The processor is configured to execute any method in the first aspect or any possible implementation of the first aspect by executing the executable instructions.
[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any method in the first aspect or any possible implementation manner of the first aspect.
[0019] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the method described in the first aspect or any possible implementation manner of the first aspect.
[0020] The present application provides a method for detecting the network quality of each APN link in multiple access point APN links to obtain a first detection result corresponding to the APN link; determining the network connection status between the APN link and its corresponding domain name server when the first detection result corresponding to the APN link indicates any one or more of the following: the network signal strength value of the APN link is less than a preset strength value, the signal-to-noise ratio value of the communication data of the APN link is less than a preset signal-to-noise ratio value, and the network standard of the APN link is not a preset network standard; wherein the network connection status includes a disconnected state and a connected state; when the When the network connection status between each APN link and its corresponding domain name server is disconnected, the switching to the network is controlled; the communication method based on the network after switching to the network can detect that the network quality of the APN link does not meet the conditions in a complex environment (for example, after passing through a long-distance tunnel and an area without 5G signal), and when the network connection status between the APN link and its corresponding domain name server is disconnected, the switching to the network is controlled, so that the vehicle-mounted communication terminal can rely on the new network to communicate with external devices in a timely manner, thereby achieving the technical effect of improving the network stability of the vehicle-mounted communication terminal and the server during communication, and the reliability of the communication data. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for the embodiments or related technical descriptions. Obviously, the drawings described below are some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0022] Figure 1 A schematic structural diagram of a communication system provided by an exemplary embodiment of the present application;
[0023] Figure 2 A flowchart of a communication method provided by an exemplary embodiment of the present application;
[0024] Figure 3 A schematic diagram of the structure of a vehicle networking system provided by an exemplary embodiment of the present application;
[0025] Figure 4 A schematic diagram of a process for dialing multiple APN links provided by an exemplary embodiment of the present application;
[0026] Figure 5 A schematic diagram of a flow chart of detecting the network quality of an APN link for each of a plurality of APN links provided by an exemplary embodiment of the present application;
[0027] Figure 6 A flowchart of limiting dialing to an APN link provided in an exemplary embodiment of the present application;
[0028] Figure 7 A schematic structural diagram of a communication device provided by an exemplary embodiment of the present application;
[0029] Figure 8 This is a schematic block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings. The embodiments described below with reference to the accompanying drawings are exemplary and intended to be used to explain the present application, but should not be understood as limiting the present application.
[0031] The terms "first" and "second" in the specification, claims and drawings of the embodiments of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the embodiments of the present application described herein can, for example, be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] First, some of the terms used in the embodiments of the present application are explained below to facilitate understanding by those skilled in the art.
[0033] APN: Access Point Name. It refers to a network access technology and a parameter that must be configured when accessing the Internet through a mobile phone. It determines the access method used by the mobile phone to access the network.
[0034] IPv4: The full name is Internet Protocol version 4, Internet Protocol version 4, also known as the fourth version of the Internet Communication Protocol. It is the fourth revised version in the development process of the Internet Protocol and the first widely deployed version of this protocol.
[0035] Ping (Packet Internet Groper) is an Internet packet explorer and program used to test network connectivity. Ping is a service command operating at the application layer of the TCP / IP network architecture. It primarily sends a request message to a specific destination host to test its reachability and understand its status.
[0036] T-BOX: Telematics BOX, also known as in-vehicle T-BOX, is a vehicle information and positioning transmission system. It transmits data to a cloud server via GPRS, providing vehicle condition reports, driving reports, fuel consumption statistics, fault alerts, violation inquiries, and location tracking.
[0037] TSP: Telematics Service Provider. Telematics services integrate modern computer technologies such as location services, GIS services, and communication services to provide powerful services to car owners and individuals.
[0038] 5G module, communication module is a functional module that integrates chips, memory, power amplifier devices, etc. on a circuit board and provides a standard interface.
[0039] RSRP (Reference Signal Receiving Power) is a key parameter that represents wireless signal strength in LTE networks and is a physical layer measurement requirement. It is the average received signal power across all resource elements (REs) carrying reference signals within a symbol.
[0040] OTA: Over-the-Air Technology, which is space download technology.
[0041] LTE: Long Term Evolution, is the evolution of 3G, namely 4G network.
[0042] RSU: Full name Road Side Unit, roadside unit, is a device installed on the roadside in the ETC system, using DSRC (Dedicated Short Range Communication) technology to communicate with vehicles.
[0043] C-V2: The full name is Cellular Vehicle-to-Everything, which is a vehicle wireless communication technology based on cellular networks.
[0044] With the rapid development of the intelligent connected vehicle industry both domestically and internationally, connected vehicle technology is maturing. Currently, connected vehicle terminal devices offer a variety of services, including infotainment, smart city transportation, system upgrades, positioning, monitoring, management, and tracking. Most of these services utilize in-vehicle communication terminals communicating with servers via base stations. However, all of these services rely on the support of basic networks, such as 4G and 5G networks.
[0045] However, the complex application environment in modern cities (mountains, bridges, high-rise buildings, viaducts, tunnels, underground garages), as well as the load of nearby base stations, may cause poor network stability when the vehicle-mounted communication terminal and the server communicate, which in turn leads to data loss during the communication process, making the reliability of the communication data low.
[0046] For example, when a vehicle is in a complex environment or a poor network environment (such as passing through a long-distance tunnel and an area without 5G signal, it will be impossible to re-station on the network or the network cannot be restored to the 5G network after being stationed on the 2G, 3G, or 4G network). According to the 3GPP (The 3rd Generation Partnership Project) protocol specification, in such scenarios, the nearby base station cells will be blocked by the 5G module, and the 5G module cannot resume active stationing without a station switching request. This results in poor network stability and data reliability when the vehicle's intelligent driving system is communicating. The present application provides a communication method, device, electronic device, and storage medium for solving the technical problems of poor network stability and low reliability of communication data when a vehicle-mounted communication terminal and a server are communicating.
[0047] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0048] Figure 1 The present invention provides a schematic diagram of a communication system structure according to an exemplary embodiment of the present invention, which includes an in-vehicle communication terminal 101 and a domain name server 102. The in-vehicle communication terminal 101 and the domain name server 102 are connected via a network, such as a wired or wireless network connection.
[0049] The in-vehicle communication terminal 101 is configured to detect the network quality of each of the multiple access point APN links and obtain a first detection result corresponding to the APN link;
[0050] Determining a network connection state between the APN link and its corresponding domain name server when the first detection result corresponding to the APN link indicates any one or more of the following: a network signal strength value of the APN link is less than a preset strength value, a signal-to-noise ratio value of communication data of the APN link is less than a preset signal-to-noise ratio value, and a network standard of the APN link is not a preset network standard; wherein the network connection state includes a disconnected state and a connected state;
[0051] When the network connection status between each APN link and its corresponding domain name server is disconnected, control the switching of the resident network;
[0052] Communication is performed based on the network after switching to the network.
[0053] Optionally, the 5G module in the vehicle communication terminal 101 has a functional interface for multi-channel APN dialing, and the modem inside the 5G module and the Linux internal subsystem communicate with the vehicle communication terminal 101 through the EMCOVERUSB protocol and the USB interface. The vehicle communication terminal 101 can query or control the 5G module through AT commands.
[0054] Before starting the multi-channel APN intelligent driving communication system, first power on the 5G module and then initialize the 5G module. If the 5G module initialization is unsuccessful, perform 5G module exception processing to reinitialize the 5G module. After the 5G module initialization is successful, the vehicle-mounted communication terminal 101 can execute the communication method provided in this application.
[0055] Figure 2 A flow chart of a communication method provided by an exemplary embodiment of the present application is shown, and the communication method can be applied to the aforementioned vehicle-mounted communication terminal 101, such as Figure 2 As shown, the method at least includes the following steps S201-S204:
[0056] S201: Detect network quality of each APN link among a plurality of access point APN links to obtain a first detection result corresponding to the APN link.
[0057] Optionally, the above step S201 may include the following steps:
[0058] Obtaining an APN identifier list, wherein the APN identifier list is stored in a memory external to the vehicle communication terminal or the vehicle communication terminal; the APN identifier list includes multiple APN identifiers representing multiple APN links;
[0059] Determine a plurality of corresponding APN links according to the plurality of APN identifiers, where the APN identifiers correspond one to one with the APN links;
[0060] For each APN link among the multiple APN links, a network quality of the APN link is detected to obtain a first detection result corresponding to the APN link.
[0061] Specifically, the APN identifier of the APN link can be expressed as APN-n, where n is 1, 2, 3...
[0062] Optionally, the APN identification list may further include dialing parameters corresponding to each APN link, such as the IPv4 address of the vehicle-mounted communication terminal itself, and the domain name server address corresponding to each APN link.
[0063] Optionally, the first detection result is used to indicate whether the network signal strength value of the APN link is less than a preset strength value, whether the signal-to-noise ratio value of the communication data of the APN link is less than a preset signal-to-noise ratio value, and whether the network standard of the APN link is a preset network standard.
[0064] S202. Determine the network connection status between the APN link and its corresponding domain name server when the first detection result corresponding to the APN link indicates any one or more of the following: a network signal strength value of the APN link is less than a preset strength value, a signal-to-noise ratio value of communication data of the APN link is less than a preset signal-to-noise ratio value, and a network standard of the APN link is not a preset network standard; wherein the network connection status includes a disconnected state and a connected state.
[0065] The network signal strength value of the APN link may be represented by RSRP. The unit of RSRP may be dBm (decibel relative to one milliwatt).
[0066] The preset strength value is a network signal strength value that ensures that the vehicle communication terminal can connect to the Internet normally. Specifically, the preset strength value can be -96dBm. The signal-to-noise ratio value of the communication data of the APN link is the ratio of the signal to noise of the communication data of the APN link. Specifically, the preset signal-to-noise ratio value can be 10. The network standard includes at least 3G, 4G, LTE, and 5G. The preset network standard can be 5G.
[0067] Optionally, determining the network connection status between the APN link and its corresponding domain name server includes: for the APN link, detecting through a Ping command whether the vehicle-mounted communication terminal can exchange data with the domain name server through the APN link, and then determining the network connection status between the APN link and its corresponding domain name server.
[0068] S203: When the network connection status between each APN link and its corresponding domain name server is disconnected, control the switching of the resident network.
[0069] For an APN link, if it is detected that the in-vehicle communication terminal cannot exchange data with the domain name server through the APN link, it is determined that the network connection state between the APN link and its corresponding domain name server is disconnected.
[0070] In some optional embodiments of the present application, when the network connection status of multiple APN links corresponding to multiple APN identifiers in the APN identifier list are all disconnected, the network switching is controlled. For example, the radio frequency service can be restarted to achieve fast network switching.
[0071] S204: Communicate based on the network after switching to the network.
[0072] A communication method provided by the present application can control the switching of the network when it is detected in a complex environment (for example, after passing through a long-distance tunnel and an area without 5G signal) that the network quality of the APN link does not meet the conditions and the network connection status between the APN link and its corresponding domain name server is disconnected, so that the vehicle-mounted communication terminal can rely on the new network to communicate with external devices in a timely manner, thereby achieving the technical effect of improving the network stability of the vehicle-mounted communication terminal and the server during communication, and the reliability of the communication data.
[0073] In some optional embodiments of the present application, the multiple APN links include public network APN links and private network APN links.
[0074] In order to enable the in-vehicle communication terminal to provide multiple services simultaneously and ensure the security of APN dialing, and to prevent important programs from being attacked maliciously when using public network communications, multiple APN links can be divided into public network APN links and private network APN links.
[0075] Specifically, it can be divided into at least multiple APN links, some of which are used to access the public network, for example, access network applications and multimedia applications; some APN links are used to access the first private network, for example, providing a communication channel between the on-board T-BOX and the background TSP cloud server; some APN links are used to access the second private network, for example, access the on-board system and the smart city traffic system network. For example, RSU, as a roadside unit of C-V2X technology, is responsible for receiving real-time traffic information such as traffic signals and road conditions issued by application servers, and dynamically broadcasting it to passing vehicles, reducing and avoiding traffic accidents and improving traffic efficiency.
[0076] Optionally, the number of APN links is 3, and the 3 APN link identifiers may be APN-1, APN-2, and APN-3.
[0077] Optionally, Figure 3 This is a schematic diagram of the structure of the vehicle networking system provided by an exemplary embodiment of the present application. Figure 3As shown, the vehicle-mounted T-BOX installed in the vehicle can obtain data from the vehicle-mounted communication terminal and upload it to the TSP cloud server through the base station, or receive instructions from the TSP cloud server and perform corresponding tasks according to the instructions. Users can remotely control the vehicle through the user terminal, such as completing OTA upgrades and big data uploads.
[0078] In addition, APN links can be added according to actual needs, and this application does not make specific restrictions on this.
[0079] In some optional embodiments of the present application, the method further includes steps S301-S302:
[0080] S301. When there is a first target APN link among the multiple APN links, and the network connection status between the link and the corresponding domain name server is in a connected state, the vehicle body status information is obtained from the vehicle main control device, and the vehicle body status information is used to indicate that the vehicle is currently in at least one of the following modes: manual driving mode, automatic driving mode, low power consumption mode, and environmental detection mode. When the vehicle is in the environmental detection mode, the on-board communication terminal is used to record the surrounding environment information of the vehicle.
[0081] For an APN link, if the network connection status between the APN link and its corresponding domain name server is connected, the APN link is determined as the first target APN link.
[0082] The manual driving mode is a driving mode in which humans actively control the car to move forward.
[0083] The autonomous driving mode is a driving mode that automatically controls the car to move forward through the on-board computer without any active human control.
[0084] After detecting that the vehicle is parked and turned off, it is determined that the vehicle has entered the environmental detection mode. The on-board communication terminal records the vehicle's surrounding environment information through a camera. At this time, only the APN link used to access the first private network can be used, such as the communication channel between the on-board T-BOX and the background TSP cloud server.
[0085] After detecting that the vehicle is turned off for a preset period of time, the on-board communication terminal controls the vehicle to enter a low-power mode to reduce power consumption. The on-board communication terminal controlling the vehicle to enter a low-power mode may include controlling some preset devices in the vehicle to shut down, wherein the preset devices may include multimedia playback devices, to achieve low-power operation of the on-board communication terminal.
[0086] S302. When the vehicle body status information indicates that the vehicle is not in the low power consumption mode, control switching to the network; or when the vehicle body status information indicates that the vehicle is in the low power consumption mode and the first target APN link is a private network APN link, control switching to the network.
[0087] When the vehicle body status information indicates that the vehicle is not in low power consumption mode, or the vehicle body status information indicates that the vehicle is in low power consumption mode and the first target APN link is a private network APN link, the vehicle-mounted communication terminal may be using the private network APN link to access private network 1, such as when uploading data to the background TSP cloud server. In this case, the network switching is controlled to improve the stability of the network and the reliability of the communication data during the communication process.
[0088] When the vehicle body status information indicates that the vehicle is in low power consumption mode and the first target APN link is a public network APN link, it can be considered that the relevant personnel have left the current location of the vehicle and do not need to access network applications and multimedia applications. Therefore, they can remain silent and do not switch to the network.
[0089] In some optional embodiments of the present application, the above step S201 includes step S2011 and step S2012:
[0090] S2011. For each APN link among multiple APN links, detect the network quality of the APN link to obtain first detection information, where the first detection information includes a network signal strength value of the APN link, a signal-to-noise ratio value of communication data of the APN link, and a network standard of the APN link.
[0091] The first detection information represents the network signal quality of multiple APN links. When the number of multiple APN links is 3, the first detection information includes the network signal strength value of the APN link corresponding to APN-1, the signal-to-noise ratio value of the communication data of the APN link corresponding to APN-1, and the network standard of the APN link corresponding to APN-1, the network signal strength value of the APN link corresponding to APN-2, the signal-to-noise ratio value of the communication data of the APN link corresponding to APN-2, and the network standard of the APN link corresponding to APN-2, the network signal strength value of the APN link corresponding to APN-3, the signal-to-noise ratio value of the communication data of the APN link corresponding to APN-3, and the network standard of the APN link corresponding to APN-3.
[0092] S2012: Determine the first detection result according to the first detection information, the preset strength value, the preset signal-to-noise ratio value, and the preset network standard.
[0093] By comparing the network signal strength values of multiple APN links, the signal-to-noise ratio values of the communication data of multiple APN links, and the network standards of multiple APN links in the first detection information with the preset strength values, the preset signal-to-noise ratio values, and the preset network standards, respectively, a first detection result can be obtained.
[0094] Optionally, the method further includes steps S401-S402:
[0095] S401: Detect network qualities of the multiple APN links multiple times within a first preset time period to obtain multiple pieces of network-based information, each piece of network-based information including multiple pieces of first detection information corresponding to the multiple APN links.
[0096] During the first preset time period, the network quality of multiple APN links may be detected according to a preset detection cycle, and the network information corresponds to the network quality detection time one by one.
[0097] For example, the first preset duration can be 5 minutes, and the preset detection period can be 6 seconds. In 5 minutes, or 300 seconds, 50 (300 / 6) pieces of on-line information can be obtained. When the number of multiple APN links is 3, each piece of on-line information includes three pieces of first detection information corresponding to the three APN links.
[0098] S402: Send the plurality of pieces of network information and the network quality detection time of each piece of network information to the vehicle main control device for relevant personnel to view.
[0099] The multiple on-line information and the network quality detection time of each on-line information are sent to the vehicle main control device. The vehicle main control device can determine the log information based on the multiple on-line information and the network quality detection time of each on-line information, and display the log information on the vehicle's display screen (for example, the display screen in the vehicle cabin) for relevant personnel to view and analyze the log information.
[0100] Optionally, the method further includes: dividing the network signal strength value into a plurality of levels according to the network signal strength value of the APN link and a preset level division rule;
[0101] For example, according to the network signal strength value from strong to weak, it can be divided into five levels: "Excellent", "Good", "Poor", "Very Poor" and "No Network".
[0102] Optionally, the preset level classification rules may include:
[0103] When RSRP>-75dBm, the network signal strength level of the APN link is "excellent";
[0104] When -85dBm≤RSRP≤-75dBm, the network signal strength level of the APN link is "good". At this time, the vehicle communication terminal can connect to the network normally;
[0105] When -100dBm≤RSRP≤-95dBm, the network signal strength level of the APN link is "poor". At this time, the network signal of the vehicle communication terminal may be intermittent, affecting normal networking;
[0106] When -105dBm≤RSRP<-100dBm, the network signal strength level of the APN link is "very poor";
[0107] When RSRP is ≤ -110dBm, the network signal strength level of the APN link is "No Network" and the APN link is disconnected.
[0108] Optionally, the aforementioned first detection information also includes the level of the network signal strength value.
[0109] In some optional embodiments of the present application, the method further includes steps S501-S502:
[0110] S501: Dial each APN link among the multiple APN links to obtain a dialing result.
[0111] S502: If the dialing result indicates that each of the multiple APN links is successfully dialed, triggering detection of the network quality of each of the multiple APN links.
[0112] If each of the multiple APN links dials successfully, it means that the link status of each APN link is connected, that is, data communication can be performed. At this time, the network quality of each of the multiple APN links can be tested.
[0113] If there is an APN link that fails to dial, it means that the link status of the APN link is disconnected and data communication is not possible. At this time, there is no need to detect the network quality of the APN link.
[0114] In some optional embodiments of the present application, the method further includes step S601:
[0115] S601: If the dialing result indicates that there is a second target APN link among the multiple APN links for which dialing fails, continue dialing the second target APN link until dialing succeeds for the second target APN link.
[0116] If the dialing result indicates that there is an APN link that fails to dial, the APN link is determined as the second target APN link. There may be one or more second target APN links.
[0117] In some optional embodiments of the present application, controlling the switching of the network includes restarting the radio frequency service and initializing the communication module, wherein the communication module includes a 5G module and a SIM card module.
[0118] Initializing the communication module will turn the flight mode of the vehicle communication terminal on and off.
[0119] Optionally, the method further includes steps S701-S702:
[0120] S701: Determine a first number of consecutive dialing failures for the second target APN link.
[0121] S702: If the first number is a first preset value, restart the radio frequency service; if the first number is a second preset value, initialize the communication module, wherein the second preset value is greater than the first preset value.
[0122] The first preset value may include multiple values. For example, the first preset value may be a value in the range of (0, 20], modulo 5 equal to 0, that is, the first preset value includes 5, 10, 15, and 20. That is, when the first number is 5, 10, 15, or 20, the radio frequency service is restarted, the network is quickly switched, and the APN link is reconnected. The second preset value may include multiple values. For example, the second preset value may be a value in the range of (20, 40], modulo 5 equal to 0, that is, the first preset value n includes 25, 30, 35, and 40. That is, when the first number is 25, 30, 35, or 40, the communication module is initialized.
[0123] In some optional embodiments of the present application, the method further includes steps S801-S802:
[0124] S801. Obtain a first time interval corresponding to a numerical interval to which the first number of times belongs, wherein when the first number of times is less than a minimum value in the numerical interval, a second time interval for dialing the second target APN link is less than the first time interval;
[0125] The numerical interval in S801 is one of a plurality of preset numerical intervals.
[0126] S802: Continue dialing the second target APN link based on the first time interval until dialing the second target APN link is successful.
[0127] That is, the dialing time interval for dialing the second target APN link is adjusted according to the first number.
[0128] Optionally, for the numerical interval [20, 40], the first time interval corresponding to the numerical interval [20, 40] may be 60 seconds. The second time interval for dialing the second target APN link is 15 seconds.
[0129] That is, when the first number of consecutive failed dialing attempts for the second target APN link is less than 20, the minimum value in the range [20, 40], the second time interval is 15 seconds, i.e., dialing is performed once every 15 seconds for the second target APN link. When the first number of consecutive failed dialing attempts for the second target APN link falls within the range [20, 40], the first time interval is 60 seconds, i.e., dialing is performed once every 60 seconds for the second target APN link.
[0130] Optionally, the numerical interval (40, 50) may correspond to a third time interval, which may be 120 seconds. That is, when the first number of consecutive dialing failures for the second target APN link is within the numerical interval (40, 50), dialing is performed for the second target APN link every 120 seconds.
[0131] Adjusting the dialing interval according to the first number of consecutive dialing failures for the second target APN link can effectively avoid the problem of shortening the service life of the 5G module caused by high-frequency dialing.
[0132] In some optional embodiments of the present application, the method further includes steps S901-S905:
[0133] S901: For a third target APN link that is successfully dialed among the multiple APN links, obtain traffic information of the third target APN link within a second preset time period from the moment the dialing is successful.
[0134] S902: If the traffic information is less than a preset traffic value, determine that the dialing for the third target APN link is abnormal dialing.
[0135] The traffic information can be the traffic value used when communicating using the corresponding APN link. The second preset time can be set according to the actual situation, for example, it can be set to 10 seconds. The preset traffic value can be determined based on the second preset time. If the second preset time is 10 seconds, the preset traffic value can be set to 100KB. If the traffic information within 10 seconds for the third target APN link that is successfully dialed is greater than the preset 100KB, the dialing is considered to be a normal dialing; if the traffic information within 10 seconds for the third target APN link that is successfully dialed is less than the preset 100KB, the dialing is considered to be an abnormal dialing.
[0136] S903: Obtain a second number of abnormal dialing times for the third target APN link within a third preset duration.
[0137] S904: If the second number is greater than a preset number threshold, restrict dialing to the third target APN link.
[0138] If the second number is not greater than the preset number threshold, dialing to the third target APN link is not restricted.
[0139] Some network operators' SIM card lock mechanisms stipulate that if the number of abnormal dialing attempts exceeds 50 within an hour, the SIM card will be locked. To prevent the network operator's SIM card lock mechanism from being triggered, the third preset duration can be 60 minutes, and the preset threshold number of times can be 50. In other words, if the second number of abnormal dialing attempts to a third target APN link exceeds 50 within 60 minutes, dialing to that third target APN link will be restricted. This prevents the network operator from identifying dialing to the third target APN link as malicious and locking the SIM card.
[0140] S905: After limiting the dialing for the third target APN link for a fourth preset duration, cancel limiting the dialing for the third target APN link.
[0141] Optionally, the fourth preset duration may be 60 minutes.
[0142] In some optional embodiments of the present application, the method further includes steps S1001-S1002:
[0143] S1001: When it is detected that there is a fourth target APN link in the multiple APN links, in which two adjacent dialing results have changed, it is determined that the link state of the fourth target APN link has changed.
[0144] Optionally, the link state of an APN link can be divided into a connected state and a disconnected state. If the dialing results of two adjacent dialings for an APN link are different, for example, including both a connected state and a disconnected state, the APN link is determined to be a fourth target APN link, and it is determined that the link state of the fourth target APN link has changed.
[0145] S1002. Send the link status change information of the fourth target APN link to the vehicle main control device for relevant personnel to view.
[0146] Optionally, the link status change information may include the APN identifier of the fourth target APN link, and the link status before and after the link status change.
[0147] Optionally, after sending the link status change information of the fourth target APN link to the vehicle main control device, the vehicle main control device can display it on the vehicle's display screen, for example, on a display screen in the vehicle cockpit, for relevant personnel to view and analyze.
[0148] In an embodiment of the present application, the network quality of each APN link in a plurality of access point APN links is detected to obtain a first detection result corresponding to the APN link; when the first detection result corresponding to the APN link indicates any one or more of the following, the network connection status between the APN link and its corresponding domain name server is determined: the network signal strength value of the APN link is less than a preset strength value, the signal-to-noise ratio value of the communication data of the APN link is less than a preset signal-to-noise ratio value, and the network standard of the APN link is not a preset network standard; wherein the network connection status includes a disconnected state and a connected state; when the network connection status between each APN link and its corresponding domain name server is a disconnected state, control is performed to switch to the network; and then, communication is performed based on the network after the switching to the network. In a complex environment (for example, after traversing a long-distance tunnel and an area without 5G signal), when it is detected that the network quality of the APN link does not meet the conditions and the network connection status between the APN link and its corresponding domain name server is a disconnected state, control is performed to switch to the network, so that the vehicle communication terminal can promptly rely on the new network to communicate with the external device, thereby achieving the technical effect of improving the network stability and the reliability of the communication data when the vehicle communication terminal and the server communicate.
[0149] Furthermore, the following further illustrates this solution with reference to some scene diagrams. For example, Figure 4 As shown, Figure 4A flowchart illustrating dialing multiple APN links is provided in accordance with an exemplary embodiment of the present application. A dialing operation is performed for each of the multiple APN links. After obtaining a dialing result, a determination is made as to whether the dialing result indicates that each of the multiple APN links was successfully dialed. If so, a step is triggered to test the network quality of each of the multiple APN links. If not, the APN link indicated by the dialing result as a dialing failure among the multiple APN links is determined as a second target APN link, and dialing is continued for the second target APN link. A determination is made as to whether dialing is successful for the second target APN link. If not, a first number of dialing attempts for the second target APN link is determined. If the first number is equal to a first preset value, the radio frequency service is restarted. If the first number is equal to a second preset value, the communication module is initialized. If the first number is not equal to the first preset value and not equal to the second preset value, a first time interval corresponding to the numerical interval to which the first number belongs is obtained. Based on the first time interval, dialing is continued for the second target APN link until dialing is successful for the second target APN link.
[0150] In addition, after dialing each APN link among multiple APN links and obtaining the dialing results, it is also possible to detect whether there is a fourth target APN link among the multiple APN links in which the dialing results have changed between two adjacent times. If so, it is determined that the link status of the fourth target APN link has changed, and the link status change information of the fourth target APN link is sent to the vehicle main control device for relevant personnel to view and analyze.
[0151] For example, see Figure 5 As shown, Figure 5 A schematic diagram of a flow chart for detecting the network quality of an APN link for each of a plurality of APN links provided by an exemplary embodiment of the present application. Figure 4After triggering a network quality detection for each of the multiple APN links, the network quality of the APN link is detected for each of the multiple APN links to obtain first detection information, and a first detection result is determined based on the first detection information, a preset strength value, a preset signal-to-noise ratio value, and a preset network standard. A determination is made as to whether the first detection result indicates any one or more of the following: a network signal strength value of the APN link is less than a preset strength value, a signal-to-noise ratio value of communication data of the APN link is less than a preset signal-to-noise ratio value, and a network standard of the APN link is not a preset network standard. If so, a network connection status between the APN link and its corresponding domain name server is determined. Determine whether the network connection status between each APN link and its corresponding domain name server is disconnected. If so, switch to the network and communicate based on the network after switching to the network; if not, determine the APN link with the network connection status as connected as the first target APN link, and obtain the vehicle body status information from the vehicle main control device. When the vehicle body status information indicates that the vehicle is not in low power consumption mode, control the switching to the network and communicate based on the network after switching to the network; or when the vehicle body status information indicates that the vehicle is in low power consumption mode and the first target APN link is a private network APN link (the first private network APN link or the second private network APN link), control the switching to the network and communicate based on the network after switching to the network.
[0152] For example, see Figure 6 As shown, Figure 6 A flowchart illustrating restricting dialing for an APN link is provided for an exemplary embodiment of the present application. After dialing each of multiple APN links and obtaining a dialing result, the APN link indicated by the dialing result as successfully dialed among the multiple APN links is determined as a third target APN link. Traffic information for the third target APN link within a second preset duration from the moment of successful dialing is obtained to determine whether the traffic information is less than a preset traffic value. If so, the dialing for the third target APN link is determined to be abnormal. The second number of abnormal dialing for the third target APN link within the third preset duration is determined, and the second number is determined to be greater than a preset threshold. If so, dialing for the third target APN link is restricted. A determination is then made as to whether the duration of restricting dialing for the third target APN link has reached a fourth preset duration. If not, the restriction on dialing for the third target APN link continues; if so, the restriction on dialing for the third target APN link is lifted.
[0153] Figure 7 This is a schematic diagram of a communication device provided as an exemplary embodiment of the present application. The device includes:
[0154] The resident network management module is configured to detect the network quality of each APN link in the plurality of access point APN links, and obtain a first detection result corresponding to the APN link;
[0155] a first determining module, configured to determine a network connection state between the APN link and its corresponding domain name server when a first detection result corresponding to the APN link indicates any one or more of the following: a network signal strength value of the APN link is less than a preset strength value, a signal-to-noise ratio value of communication data of the APN link is less than a preset signal-to-noise ratio value, and a network standard of the APN link is not a preset network standard; wherein the network connection state includes a disconnected state and a connected state;
[0156] A first control module is configured to control switching of the resident network when the network connection status between each APN link and its corresponding domain name server is disconnected;
[0157] The communication module is used for communicating based on the network after switching to the new network.
[0158] In some optional embodiments of the present application, the multiple APN links include a public network APN link and a private network APN link, and the apparatus further includes:
[0159] a first acquisition module configured to, when a first target APN link exists among the multiple APN links and the network connection status between the first target APN link and the corresponding domain name server is in a connected state, acquire vehicle body status information from the vehicle main control device, the vehicle body status information being used to indicate that the vehicle is currently in at least one of the following modes: manual driving mode, automatic driving mode, low power consumption mode, and environment detection mode; when the vehicle is in the environment detection mode, the vehicle-mounted communication terminal being used to record the surrounding environment information of the vehicle;
[0160] The second control module is used to control the switching of the network when the vehicle body status information indicates that the vehicle is not in the low power consumption mode; or when the vehicle body status information indicates that the vehicle is in the low power consumption mode and the first target APN link is a private network APN link, control the switching of the network.
[0161] In some optional embodiments of the present application, when the detection module is used to detect the network quality of each APN link in multiple access point APN links, it is specifically used to:
[0162] Detecting, for each of the multiple access point APN links, a network quality of the APN link to obtain first detection information, where the first detection information includes a network signal strength value of the APN link, a signal-to-noise ratio value of communication data of the APN link, and a network standard of the APN link;
[0163] The first detection result is determined according to the first detection information, the preset strength value, the preset signal-to-noise ratio value, and the preset network standard.
[0164] In some optional embodiments of the present application, the device further includes:
[0165] A detection module, configured to detect the network quality of the multiple APN links multiple times within a first preset time period to obtain multiple pieces of network information, each piece of network information including multiple pieces of first detection information corresponding to the multiple APN links;
[0166] The first sending module is used to send the multiple pieces of network information and the network quality detection time of each piece of network information to the vehicle main control device for relevant personnel to view.
[0167] In some optional embodiments of the present application, the device further includes:
[0168] A first dialing module is configured to dial each APN link in the plurality of APN links to obtain a dialing result;
[0169] The triggering module is configured to trigger, if the dialing result indicates that each of the multiple APN links is successfully dialed, to detect the network quality of each of the multiple APN links.
[0170] In some optional embodiments of the present application, the device further includes:
[0171] The dialing management module is configured to continue dialing for a second target APN link among the multiple APN links until dialing for the second target APN link succeeds if the dialing result indicates that there is a second target APN link among the multiple APN links for which dialing fails.
[0172] In some optional embodiments of the present application, the controlling the switching of the station network includes restarting the radio frequency service and initializing the communication module, and the apparatus further includes:
[0173] A second determining module is configured to determine a first number of consecutive dialing failures for the second target APN link;
[0174] a restart module, configured to restart the radio frequency service if the first number of times is a first preset value;
[0175] An initialization module is configured to initialize a communication module if the first number is a second preset value, wherein the second preset value is greater than the first preset value.
[0176] In some optional embodiments of the present application, the device further includes:
[0177] a second acquiring module, configured to acquire a first time interval corresponding to a numerical interval to which the first number of times belongs, wherein when the first number of times is less than a minimum value in the numerical interval, a second time interval for dialing the second target APN link is less than the first time interval;
[0178] The second dialing module is configured to continue dialing the second target APN link based on the second time interval until dialing the second target APN link is successful.
[0179] In some optional embodiments of the present application, the device further includes:
[0180] A third acquisition module is configured to acquire, for a third target APN link that is successfully dialed among the multiple APN links, traffic information of the third target APN link within a second preset time period from the moment of successful dialing;
[0181] a third determining module, configured to determine that the dialing for the third target APN link is an abnormal dialing if the traffic information is less than a preset traffic value;
[0182] A fourth obtaining module is configured to obtain a second number of abnormal dialing times for the third target APN link within a third preset time period;
[0183] a dialing restriction module, configured to restrict dialing for the third target APN link if the second number is greater than a preset number threshold;
[0184] The restriction cancellation module is configured to cancel the restriction on dialing for the third target APN link after restricting the dialing for the third target APN link for a fourth preset duration.
[0185] In some optional embodiments of the present application, the device further includes:
[0186] a fourth determining module, which, when detecting that there is a fourth target APN link in the plurality of APN links, in which two adjacent dialing results have changed, determines that a link state of the fourth target APN link has changed;
[0187] The second sending module is used to send the link status change information of the fourth target APN link to the vehicle main control device for relevant personnel to view.
[0188] It should be understood that the device embodiments and the method embodiments may correspond to each other, and similar descriptions may refer to the method embodiments. To avoid repetition, they will not be described in detail here. Specifically, the device can perform the above-mentioned method embodiments, and the aforementioned and other operations and / or functions of each module in the device are the corresponding processes in each method in the above-mentioned method embodiments, which will not be described in detail here for the sake of brevity.
[0189] The apparatus of the embodiment of the present application is described above from the perspective of functional modules in conjunction with the accompanying drawings. It should be understood that the functional module can be implemented in hardware form, can be implemented by instructions in software form, or can be implemented by a combination of hardware and software modules. Specifically, the steps of the method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit and / or software form instructions in the processor, and the steps of the method disclosed in the embodiment of the present application can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. Optionally, the software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps in the above method embodiment in conjunction with its hardware.
[0190] Figure 8 : is a schematic block diagram of an electronic device provided in an embodiment of the present application, and the electronic device may include:
[0191] The memory 81 and the processor 82 are configured to store computer programs and transmit the program code to the processor 82. In other words, the processor 82 can call and run the computer program from the memory 81 to implement the method in the embodiment of the present application.
[0192] For example, the processor 82 may be configured to execute the above method embodiments according to instructions in the computer program.
[0193] In some embodiments of the present application, the processor 82 may include but is not limited to:
[0194] General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
[0195] In some embodiments of the present application, the memory 81 includes but is not limited to:
[0196] Volatile memory and / or non-volatile memory. Non-volatile memory can 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 can be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DR RAM).
[0197] In some embodiments of the present application, the computer program may be divided into one or more modules, which are stored in the memory 81 and executed by the processor 82 to implement the method provided by the present application. The one or more modules may be a series of computer program instruction segments capable of implementing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.
[0198] like Figure 8 As shown, the electronic device may further include:
[0199] The transceiver 83 may be connected to the processor 82 or the memory 81 .
[0200] The processor 82 may control the transceiver 83 to communicate with other devices. Specifically, the processor 82 may send information or data to other devices or receive information or data sent by other devices. The transceiver 83 may include a transmitter and a receiver. The transceiver 83 may further include one or more antennas.
[0201] It should be understood that the various components in the electronic device are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.
[0202] The present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer, enables the computer to perform the method of the above-mentioned method embodiment. In other words, the present application also provides a computer program product containing instructions, which, when executed by a computer, enables the computer to perform the method of the above-mentioned method embodiment.
[0203] When software is used for implementation, it 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 process or function according to the embodiment of the present application is 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 a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., a solid state drive (SSD)).
[0204] Those skilled in the art will appreciate that the modules and algorithm steps of each example 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 performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel 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 application.
[0205] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0206] Modules described as separate components may or may not be physically separate, and components displayed as modules may or may not be physical modules, i.e., they may be located in one place or distributed across multiple network elements. Some or all of the modules may be selected based on actual needs to achieve the purpose of the present embodiment. For example, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module.
[0207] The above are only specific embodiments of the present application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A communication method, characterized in that: Applied to a vehicle-mounted communication terminal, the method includes: For each APN link in the plurality of access point APN links, detecting a network quality of the APN link to obtain a first detection result corresponding to the APN link; Determining a network connection state between the APN link and its corresponding domain name server when the first detection result corresponding to the APN link indicates any one or more of the following: a network signal strength value of the APN link is less than a preset strength value, a signal-to-noise ratio value of communication data of the APN link is less than a preset signal-to-noise ratio value, and a network standard of the APN link is not a preset network standard; wherein the network connection state includes a disconnected state and a connected state; When the network connection status between each APN link and its corresponding domain name server is disconnected, control the switching of the resident network; Communicate based on the network after switching to the network; The multiple APN links include a public network APN link and a private network APN link. The method further includes: When there is a first target APN link among the multiple APN links, the network connection status between the first target APN link and the corresponding domain name server is in a connected state, obtaining vehicle body status information from the vehicle main control device, the vehicle body status information is used to indicate that the vehicle is currently in at least one of the following modes: manual driving mode, automatic driving mode, low power consumption mode, and environment detection mode. When the vehicle is in the environment detection mode, the vehicle-mounted communication terminal is used to record the surrounding environment information of the vehicle; When the vehicle body state information indicates that the vehicle is not in the low power consumption mode, controlling the switching to the network; or When the vehicle body state information indicates that the vehicle is in the low power consumption mode, and the first target APN link is a private network APN link, control is performed to switch to the resident network.
2. The method according to claim 1, characterized in that For each APN link in the plurality of access point APN links, detecting the network quality of the APN link to obtain a first detection result corresponding to the APN link includes: For each APN link among the multiple APN links, detect the network quality of the APN link to obtain first detection information, where the first detection information includes a network signal strength value of the APN link, a signal-to-noise ratio value of communication data of the APN link, and a network standard of the APN link; The first detection result is determined according to the first detection information, the preset strength value, the preset signal-to-noise ratio value, and the preset network standard.
3. The method according to claim 2, characterized in that The method further comprises: Detecting the network quality of the multiple APN links multiple times within a first preset time period to obtain multiple pieces of network-based information, each piece of network-based information including multiple pieces of first detection information corresponding to the multiple APN links; The plurality of network information and the network quality detection time of each network information are sent to the vehicle main control device for relevant personnel to view.
4. The method according to claim 1, wherein The method further comprises: dialing each of the multiple APN links to obtain a dialing result; If the dialing result indicates that each of the multiple APN links is successfully dialed, a network quality detection of each of the multiple APN links is triggered.
5. The method according to claim 4, characterized in that The method further comprises: If the dialing result indicates that there is a second target APN link among the multiple APN links for which dialing fails, dialing continues for the second target APN link until dialing succeeds for the second target APN link.
6. The method according to claim 5, characterized in that The controlling the switching to the network includes restarting the radio frequency service and initializing the communication module, and the method further includes: Determining a first number of consecutive dialing failures for the second target APN link; If the first number is a first preset value, restarting the radio frequency service; If the first number is a second preset value, the communication module is initialized, wherein the second preset value is greater than the first preset value.
7. The method according to claim 6, characterized in that The method further comprises: Obtaining a first time interval corresponding to the numerical interval to which the first number belongs, wherein when the first number is less than a minimum value in the numerical interval, a second time interval for dialing the second target APN link is less than the first time interval; Based on the first time interval, continue dialing for the second target APN link until dialing for the second target APN link is successful.
8. The method according to claim 4, characterized in that The method further comprises: For a third target APN link that is successfully dialed among the multiple APN links, obtaining traffic information of the third target APN link within a second preset time period from the moment of successful dialing; If the traffic information is less than a preset traffic value, determining that the dialing for the third target APN link is abnormal dialing; Obtaining a second number of abnormal dialing times for the third target APN link within a third preset time period; If the second number is greater than a preset number threshold, restricting dialing for the third target APN link; After limiting the dialing for the third target APN link for a fourth preset duration, limiting the dialing for the third target APN link is cancelled.
9. The method according to claim 4, characterized in that The method further comprises: When detecting that there is a fourth target APN link in the multiple APN links, in which two adjacent dialing results have changed, determining that the link state of the fourth target APN link has changed; The link status change information of the fourth target APN link is sent to the vehicle main control device for relevant personnel to view.
10. A communication device, implementing the method according to any one of claims 1 to 9, characterized in that: The device comprises: The resident network management module is configured to detect the network quality of each APN link in the plurality of access point APN links, and obtain a first detection result corresponding to the APN link; a first determining module, configured to determine a network connection state between the APN link and its corresponding domain name server when a first detection result corresponding to the APN link indicates any one or more of the following: a network signal strength value of the APN link is less than a preset strength value, a signal-to-noise ratio value of communication data of the APN link is less than a preset signal-to-noise ratio value, and a network standard of the APN link is not a preset network standard; wherein the network connection state includes a disconnected state and a connected state; A first control module is configured to control switching of the resident network when the network connection status between each APN link and its corresponding domain name server is disconnected; The communication module is used for communicating based on the network after switching to the new network.
11. An electronic device, characterized in that: include: processor; as well as a memory for storing executable instructions of the processor; The processor is configured to perform the method according to any one of claims 1 to 9 by executing the executable instructions.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Vehicle network connection dialing method and device
CN113660633A
Networking control method and device for vehicle remote communication, terminal and storage medium
CN114338641A