Network configuration method and device, medium and program product
By connecting to the second network operator with higher quality in the Modem module of the driving recorder equipment and adjusting the network detection time, the problem of network connection interruption during long-distance cross-region driving overseas is solved, and network recovery efficiency and service life of the Modem module are improved.
Patent Information
- Application Number
- CN202411956238.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-04-22
AI Technical Summary
During long-distance cross-regional driving overseas, the Modem module of the dash recorder equipment cannot repair network connections in a timely and efficient manner, resulting in network signal interruption, affecting the normal use of the equipment and reducing service life.
By obtaining the network communication status of the device, if abnormal, the Modem module is controlled to connect to a second network operator with higher quality, and after repeatedly obtaining the network communication status, the network detection time is adjusted to avoid frequent restarts.
Improve network recovery efficiency, avoid the service life reduction caused by frequent restart of Modem module, and ensure that the device can operate normally when network abnormalities are not available.
Smart Images

Figure CN119865844A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of circuit technology, and in particular to a network configuration method, device, medium and program product. Background Art
[0002] At present, driving recorders are widely used in vehicle driving as positioning and communication tools for vehicle equipment. During long-distance cross-regional driving overseas, driving recorders play a very important role in the navigation of vehicle equipment. However, due to the existence of many different network operators in different regions, in cross-regional scenarios, the network signal of the driving recorder may not be able to connect to the network during roaming and cannot automatically connect to the network.
[0003] The modem module of the driving recorder device in the related technology is built-in and integrated into the system. It has its own set of logic to search for the network and has the ability to restore the network. However, the network recovery capability of the modem module itself cannot meet the needs of special scenarios such as long-distance and cross-regional driving overseas, and cannot promptly and effectively repair the network of the driving recorder device. As a result, the modem module can only restore the network by restarting, which not only affects the normal use of the modem module, but also reduces the service life of the modem module. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a network configuration method, device, medium and program product, so as to improve the efficiency of network recovery and increase the service life of the Modem module.
[0005] To solve the above technical problems, an embodiment of the present application provides a network configuration method, including: obtaining the network communication status of a device; the device is currently connected to a first network operator; when the network communication status is abnormal, controlling a modem module to connect to a second network operator; the network quality of the second network operator is higher than the network quality of the first network operator; after controlling the modem module to connect to the second network operator, repeating the step of obtaining the network communication status of the device.
[0006] An embodiment of the present application also provides an electronic device, characterized in that it includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the network configuration method as described above.
[0007] An embodiment of the present application further provides a computer-readable storage medium storing a computer program, wherein the computer program implements the above-mentioned network configuration method when executed by a processor.
[0008] An embodiment of the present application further provides a computer program product, including computer instructions, which implement the above-mentioned network configuration method when executed by a processor.
[0009] In some embodiments, before the control modem module connects to the second network operator, it also includes: when the network communication status is abnormal, obtaining the network signal strength of the device; when the network signal strength exceeds a preset strength, executing the step of controlling the modem module to search for the second network operator; when the network signal strength is less than the preset strength, executing the step of controlling the modem module to search for the second network operator, and after repeatedly executing the steps of obtaining the network communication status of the device and the steps of obtaining the network signal strength of the device, if it is determined that the network communication status is abnormal and the network signal strength is less than the preset strength, restarting the modem module; after executing the restarting modem module, re-executing the step of obtaining the network communication status.
[0010] In some embodiments, the method also includes: obtaining the operating status of the device; the repeatedly executing the step of obtaining the network communication status of the device includes: when the operating status is stopped, re-executing the step of obtaining the network communication status after the first network detection time; the first network detection time is the network detection time of the ignition state; when the operating status is running, re-executing the step of obtaining the network communication status after the second network detection time; the second network detection time is the network detection time of the ignition state.
[0011] In some embodiments, the method further includes: when the network communication status is abnormal, recording the number of times the network communication status is abnormal; when the number is an integer multiple of a preset value and the operating status is stopped, increasing the first network detection time according to a preset first offset time.
[0012] In some embodiments, the method further includes: when the number is an integer multiple of a preset value and the operating state is operating, reducing the second network detection time according to a preset second offset time.
[0013] In some embodiments, the method further includes: when the network communication status is normal, adjusting the first network detection time to a first initial value, adjusting the second network detection time to a second initial value; and resetting the number of times to zero.
[0014] In some embodiments, before reducing the second network detection time according to the preset second offset time, it also includes: determining whether the number reaches a preset threshold; if so, increasing the second network detection time according to a third offset; if not, reducing the second network detection time according to the preset second offset time.
[0015] The technical solution provided by the embodiments of the present application has at least the following advantages:
[0016] In this embodiment, when the network communication state of the currently connected network operator is abnormal, the device is connected to a second network operator whose quality is higher than that of the first network operator. Compared with the related art in which the network is restored by restarting the Modem module, the network of the device can be restored as soon as possible, thereby improving the efficiency of network recovery. The Modem module does not need to be restarted, and can operate normally when the device recovers the network abnormality. This also avoids the problem of reduced service life of the Modem module due to frequent restarts of the Modem module, thereby improving the service life of the Modem module. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0018] Figure 1 is a flowchart of a network configuration method according to an embodiment of the present application;
[0019] Figure 2 is a flowchart of a network configuration method according to another embodiment of the present application;
[0020] Figure 3 is a flowchart of a network configuration method according to another embodiment of the present application;
[0021] Figure 4 is a flowchart of a network configuration method according to yet another embodiment of the present application;
[0022] Figure 5 It is a structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0023] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the present application, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can also be implemented. The division of the following embodiments is for the convenience of description, and the specific implementation of the present application should not be construed as any limitation, and the various embodiments can be combined and referenced with each other under the premise of no contradiction.
[0024] An embodiment of the present application relates to a network configuration method, and a specific flow chart is as follows: Figure 1 As shown, the network configuration method includes the following steps:
[0025] Step 101, obtaining the network communication status of the device.
[0026] Specifically, the device of this embodiment refers to a driving recorder device in a vehicle, a modem module of the driving recorder device, and the driving recorder device is currently connected to a first network operator through the modem module. The execution subject in this embodiment is a main controller in the vehicle, and the main controller is used to obtain the network communication status of the driving recorder device, that is, the network communication status of the first network operator to which the driving recorder device is connected.
[0027] Step 102: When the network communication status is abnormal, control the Modem module to connect to the second network operator.
[0028] Specifically, after the main controller obtains the network communication status of the driving recorder device, it determines whether the network communication status is abnormal. In the case of abnormal network communication status, the modem module is controlled to connect to the second network operator, wherein the network quality of the second network operator is higher than the network quality of the first network operator, that is, in the case of abnormal network communication status, a better network operator configuration is automatically searched and selected to try to restore the current network abnormality. Specifically, the driving recorder device of this embodiment is Android, and this embodiment attempts to restore the modem communication at the Android application layer.
[0029] Specifically, after controlling the Modem module to connect to the second network operator, the main controller repeatedly executes the step of acquiring the network communication status of the device.
[0030] Step 103, determining whether the first network detection time or the second network detection time has passed.
[0031] Specifically, after the main controller of this embodiment controls the modem module to connect to the second network operator, it needs to determine whether the first network detection time or the second network detection time has passed, and repeat the step of obtaining the network communication status of the device after the first network detection time or the second network detection time has passed. Specifically, the main controller obtains the running status of the device, and when the running status is stopped, the step of obtaining the network communication status is re-executed after the first network detection time; when the running status is running, the step of obtaining the network communication status is re-executed after the second network detection time.
[0032] In this embodiment, when the network communication state of the currently connected network operator is abnormal, the device is connected to a second network operator whose quality is higher than that of the first network operator. Compared with the related art in which the network is restored by restarting the Modem module, the network of the device can be restored as soon as possible, thereby improving the efficiency of network recovery. The Modem module does not need to be restarted, and can operate normally when the device recovers the network abnormality. This also avoids the problem of reduced service life of the Modem module due to frequent restarts of the Modem module, thereby improving the service life of the Modem module.
[0033] Specifically, the main controller obtains the operating status of the device by acquiring the Global Navigation Satellite System (GNSS) signal, the dynamic and static status of the gravity sensor, and the ignition status of the vehicle. When the GNSS signal is fixed and the gravity sensor detects that the vehicle is stationary and the vehicle is in the ignition-off state, it can be determined that the operating status of the device is stationary. When the GNSS signal changes and the gravity sensor detects that the vehicle is moving and the vehicle is in the ignition-on state, it can be determined that the operating status of the device is moving. Therefore, in this embodiment, the first network detection time is set to the network detection time ign_off_check_time of the ignition-off state, and the second network detection time is set to the network detection time ign_on_check_time of the ignition-on state, and different network detection times are set according to the movement status of the device.
[0034] In one embodiment, before controlling the Modem module to connect to the second network operator, the method further includes: obtaining the network signal strength of the device when the network communication state is abnormal; controlling the Modem module to connect to the second network operator when the network signal strength exceeds a preset strength; executing the step of controlling the Modem module to search for the second network operator when the network signal strength is less than a preset strength, and after repeatedly executing the steps of obtaining the network communication state of the device and obtaining the network signal strength of the device, restarting the Modem module when it is determined that the network communication state is abnormal and the network signal strength is less than a preset strength;
[0035] The network abnormality of this embodiment is a situation where the device cannot connect to the network, that is, cannot access the Internet. However, the reasons for not being able to connect to the network can be distinguished into different situations, such as "cannot connect", that is, the network signal is weak, and cannot access the Internet, and "connected but with weak signal", that is, the network signal is strong but cannot access the Internet. Therefore, this embodiment performs different processing according to different situations of network signal strength. Specifically, the main controller obtains the network signal strength, and distinguishes between "cannot connect" and "connected but with weak signal" according to the network signal strength as the "calculation weight" of the judgment algorithm, and appropriately adjusts the network recovery method, such as "restarting the network module" or "automatically searching and selecting a better network operator configuration".
[0036] It should be noted that both "unable to connect" and "connected but weak signal" refer to network abnormalities. "Unable to connect" is a network abnormality caused by poor network signal in the current area, while "connected but weak signal" is a network abnormality in which the network signal in the current area is strong but caused by abnormal SIM card data service such as arrears. The signal strength can be distinguished according to a preset strength. If it exceeds the preset strength, it means that the network signal is strong, and if it is less than the preset strength, it means that the network signal is weak.
[0037] Specifically, in this embodiment, when the network signal is strong but Internet access is impossible, "automatically search and select a better network operator configuration" can be used to try recovery; when the network signal is weak and Internet access is impossible, "automatically search and select a better network operator configuration" can be used to try recovery first. If the network is still abnormal after trying to obtain a new network operator, "restart the network module" can be used to try recovery.
[0038] It should be noted that when a vehicle is traveling overseas, there are many network operators in each region overseas. During long-distance driving, a dash cam device will travel through many different regions. The network is often in roaming mode, and sometimes it cannot connect to the network normally. The above processing method can be used at the application level to flexibly handle the different states of the dash cam device, so as to restore the network more quickly when the ignition is turned on, and various signal strengths are taken into account when the engine is turned off (such as special scenarios such as parking in underground garages), thereby reducing invalid operations, protecting the device, and reducing the probability of damage to the device due to too many invalid reset operations.
[0039] Another embodiment of the present application relates to a network configuration method, the specific flow chart is as follows Figure 2 As shown, the network configuration method includes the following steps:
[0040] Step 201, obtaining the network communication status of the device.
[0041] Step 201 of this embodiment is substantially the same as step 101 of the previous embodiment, and will not be described again to avoid repetition.
[0042] Step 202, obtaining the operating status of the device.
[0043] Specifically, the main controller obtains the operating status of the device by acquiring the GNSS signal, the dynamic and static status of the gravity sensor, and the ignition status of the vehicle. When the GNSS signal is fixed and the gravity sensor detects that the vehicle is stationary and the vehicle is in the ignition state, it can be determined that the operating status of the device is stationary. When the GNSS signal changes and the gravity sensor detects that the vehicle is moving and the vehicle is in the ignition state, it can be determined that the operating status of the device is moving.
[0044] It should be noted that step 202, i.e., obtaining the operating status of the device, can be performed simultaneously with step 201, or before step 201, or after step 201, or after step 203. This is only to clarify the execution logic, and does not limit the order of execution of step 202, step 201, and step 203.
[0045] Step 203: When the network communication state is abnormal, control the Modem module to connect to the second network operator, and record the number of times the network communication state is abnormal.
[0046] Specifically, this embodiment records the number of abnormalities each time an abnormal network communication state is detected, wherein the number of abnormalities is the number of consecutive abnormalities. If the network communication state becomes normal once, the number of abnormalities is reset and the number of abnormalities is recorded again.
[0047] Step 204: when the number is an integer multiple of a preset value and the operation state is stopped, increase the first network detection time according to a preset first offset time.
[0048] Specifically, if the motion state is stopped, it means that the device is completely still and not in use by the user. At this time, the vehicle may be parked in an underground parking lot with poor signal. If the network communication state is frequently detected and repaired, not only will the network of the device fail to be restored, but it may also cause the device to frequently detect and repair the network, causing the device to be in working state all the time, reducing the service life of the device. Therefore, when the number of times is an integer multiple of the preset value and the motion state is stopped, the first network detection time, i.e., the network detection time in the ignition-off state, is increased according to the preset first offset time, and the first network detection time is appropriately extended to avoid the device from frequently trying to restore the connection network as much as possible, reduce the work of the device, and increase the service life of the device. In addition, if the motion state of the device is always stopped and the network communication state is abnormal, the first network detection time will gradually increase. When the first network detection time reaches the preset maximum threshold, the first network detection time will no longer increase, and the preset maximum threshold will be used as the first network detection time.
[0049] In actual applications, when the main controller detects that the vehicle is in the off state and the gravity sensor detects that the vehicle is stationary, the off state network detection time is ign_off_check_time. When the network is not connected, first determine whether the GNSS signal is in the positioning state. If the network is not connected and the GNSS is not positioned, it means that the signal at the location itself is weak. The off state network detection time ign_off_check_time can be extended by the first offset time offset_time1, that is, ign_off_check_time+offset_time1, to reduce invalid network reset operations. If the recovery fails every time, the detection time can be further extended, that is, ign_off_check_time+offset_time 1+...+offset_time1, it will not increase after reaching the preset maximum threshold value, such as seven days. If the subsequent network communication status is normal, the network detection time in the off state will be restored to the default value, that is, the first initial value ign_off_check_time, that is, this embodiment adds the condition of "normal return configuration", for example: after a certain period of normal networking, the network detection time will be restored to the default value to prevent the dynamically adjusted network detection time from becoming more and more "biased" after the device has been running for a long time, resulting in the network detection time deviating from the normal range after multiple adjustments, affecting the efficiency of subsequent network recovery.
[0050] Specifically, when the number is not an integer multiple of the preset value and the running state is stopped, directly enter step 205, that is, determine whether the first network detection time has passed, and after the first network detection time, re-execute the step of obtaining the network communication state.
[0051] Step 205: Determine whether the first network detection time has passed.
[0052] Specifically, after the first network detection time, the step of obtaining the network communication status is performed again. If the subsequent network communication status is normal, the first network detection time is adjusted to the first initial value, and the number of times is reset to zero.
[0053] This embodiment increases the first network detection time according to the preset first offset time when the number of times is an integer multiple of the preset value and the operating state is stopped, so as to avoid as much as possible the situation where the device frequently attempts to restore the network connection when the network communication state is abnormal, thereby reducing the workload of the device and increasing the service life of the device.
[0054] Another embodiment of the present application relates to a network configuration method, and the specific flow chart is as follows: Figure 3 As shown, the network configuration method includes the following steps:
[0055] Step 301, obtaining the network communication status of the device.
[0056] Step 302, obtaining the operating status of the device.
[0057] Step 303: When the network communication state is abnormal, control the Modem module to connect to the second network operator, and record the number of times the network communication state is abnormal.
[0058] Step 301, step 302, and step 303 of this embodiment are substantially the same as step 201, step 202, and step 203 of the previous embodiment, and will not be described again to avoid repetition.
[0059] Step 304: When the number is an integer multiple of a preset value and the operation state is running, reduce the second network detection time according to a preset second offset time.
[0060] Specifically, if the motion state is running, it means that the device is in operation and needs to be connected to the Internet, but the network communication state is abnormal at this time, and it is necessary to continuously try to restore the network. Therefore, when the number is an integer multiple of the preset value and the operation state is running, the second network detection time, that is, the network detection time of the ignition state, is reduced according to the preset second offset time, thereby increasing the frequency of the device obtaining a better network operator and increasing the probability of network recovery. In addition, when the device threshold is in operation and the network communication state is abnormal, the second network detection time will gradually decrease. When the second network detection time is reduced to the preset minimum threshold, the second network detection time will no longer decrease, and the preset minimum threshold will be used as the second network detection time.
[0061] The preset value can be 3 times, that is, when the operation of restoring the network is attempted each time and the number of abnormalities is counted, if it is found that the "network recovery" trigger cannot be restored after 3 times within a certain period of time, then it is necessary to temporarily adjust the detection time to reduce the number of invalid triggers or increase the frequency of obtaining a better network operator. In actual applications, the preset value can be set according to needs, such as 4 times, 5 times, etc.
[0062] In actual applications, when the main controller detects that the vehicle is in the ignition state and the gravity sensor detects that the vehicle is moving, the network detection time of the ignition state is ign_on_check_time. When the network is not connected, but the GNSS signal can be positioned normally, the network detection time of the ignition state can be appropriately shortened by the second offset time offset_time2, that is, ign_on_check_time-offset_time2, to increase the frequency of network reset operations and achieve the purpose of faster network recovery. If the recovery fails every time, the detection time can be further shortened, that is, ign_off_check_time-offset_time2-...-offset_time2, and will not be reduced after reaching the preset minimum threshold, such as 1 minute. If the subsequent network communication status is normal, the network detection time of the ignition state is restored to the second initial value, that is, ign_on_check_time, that is, this embodiment adds the condition of "normal return configuration", for example: after how long is the normal network connection, the network detection time is restored to the default value to prevent the device from running for a long time, and the dynamically adjusted network detection time becomes more and more "biased", resulting in the network detection time deviating from the normal range after multiple adjustments, affecting the efficiency of subsequent network recovery.
[0063] The first offset time and the second offset time may be the same or different and may be set according to actual needs, which is not specifically limited in this embodiment.
[0064] Specifically, when the number is not an integer multiple of the preset value and the operation status is running, directly enter step 305, that is, determine whether the second network detection time has passed, and after the second network detection time, re-execute the step of obtaining the network communication status.
[0065] Step 305: Determine whether the second network detection time has passed.
[0066] Specifically, after the second network detection time, the step of obtaining the network communication status is performed again. If the subsequent network communication status is normal, the second network detection time is adjusted to a second initial value, and the number of times is reset to zero.
[0067] This embodiment reduces the second network detection time according to the preset second offset time when the number is an integer multiple of the preset value and the operating state is running, thereby increasing the frequency of the device acquiring a better network operator and improving the probability of network recovery.
[0068] Another embodiment of the present application relates to a network configuration method, the specific flow chart is as follows Figure 4 As shown, the network configuration method includes the following steps:
[0069] Step 401, obtaining the network communication status of the device.
[0070] Step 402, obtaining the operating status of the device.
[0071] Step 403: When the network communication state is abnormal, control the Modem module to connect to the second network operator, and record the number of times the network communication state is abnormal.
[0072] Step 404: When the number of times is an integer multiple of the preset value and the operation status is running, determine whether the number of times reaches a preset threshold.
[0073] If so, proceed to step 405 to increase the second network detection time according to the third offset; if not, proceed to step 406 to decrease the second network detection time according to the preset second offset time.
[0074] Step 405: Increase the second network detection time according to the third offset.
[0075] Specifically, the size of the third offset is set according to actual needs, and may be the same as the first offset or the second offset, which is not specifically limited in this embodiment.
[0076] Specifically, in this embodiment, the number of times the network communication status is abnormal reaches the preset threshold, which means that after multiple network resets, the network is still abnormal. At this time, the device may be in an area with poor signal. Continuing to frequently reduce the second network detection time may cause excessive pressure on the device, and it is also very likely that the device may not be able to connect to the network. Therefore, in order to reduce the pressure on the network recovery of the device, the second network detection time can be appropriately increased according to the third offset, thereby extending the network detection time and alleviating the pressure on the device.
[0077] Step 406: Reduce the second network detection time according to the preset second offset time.
[0078] Specifically, when the number is not an integer multiple of the preset value and the operation status is running, directly enter step 407, that is, determine whether the second network detection time has passed, and after the second network detection time, re-execute the step of obtaining the network communication status.
[0079] Step 407, determining whether the second network detection time has passed.
[0080] Specifically, after the second network detection time, the step of acquiring the network communication status is re-executed.
[0081] Step 401 , step 402 , step 403 , step 406 , and step 407 of this embodiment are substantially the same as step 301 , step 302 , step 303 , step 304 , and step 305 of the previous embodiment, and will not be described again to avoid repetition.
[0082] This embodiment increases the second network detection time according to the third offset after the number of times the network communication status is detected to be abnormal reaches a preset threshold, thereby extending the network detection time and reducing the pressure on the device's network recovery.
[0083] The division of the various steps above is only for clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the protection scope of this application.
[0084] An embodiment of the present application relates to an electronic device, such as Figure 5 As shown, it includes: at least one processor 501; and a memory 502 that is communicatively connected to the at least one processor 501; wherein the memory stores instructions that can be executed by the at least one processor 501, and the instructions are executed by the at least one processor 501 so that the at least one processor 501 can execute the above-mentioned network configuration method.
[0085] The memory 502 and the processor 501 are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors 501 and the memory 502 together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor 501 is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor 501.
[0086] The processor 501 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 502 can be used to store data used by the processor when performing operations.
[0087] An embodiment of the present application relates to a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the above method embodiment is implemented.
[0088] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0089] An embodiment of the present application relates to a computer program product, including computer instructions, which implement the above-mentioned network configuration method when executed by a processor.
[0090] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present application, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present application.
Claims
1. A network configuration method, characterized in that: include: Get the network communication status of the device; The device is currently connected to a first network operator; When the network communication state is abnormal, controlling the Modem module to connect to a second network operator; The network quality of the second network operator is higher than the network quality of the first network operator; After the control modem module is connected to the second network operator, the step of obtaining the network communication status of the device is repeated.
2. The network configuration method according to claim 1, characterized in that: Before controlling the Modem module to connect to the second network operator, the method further includes: When the network communication state is abnormal, obtaining the network signal strength of the device; When the network signal strength exceeds a preset strength, executing the step of controlling the Modem module to search for a second network operator; When the network signal strength is less than the preset strength, the step of controlling the Modem module to search for the second network operator is executed, and after repeatedly executing the steps of obtaining the network communication status of the device and obtaining the network signal strength of the device, when it is determined that the network communication status is abnormal and the network signal strength is less than the preset strength, the Modem module is restarted; after executing the restarting of the Modem module, the step of obtaining the network communication status is re-executed.
3. The network configuration method according to claim 1 or 2, characterized in that: The method further comprises: Obtaining the operating status of the device; The step of repeatedly executing the step of obtaining the network communication status of the device comprises: When the running state is stopped, the step of obtaining the network communication state is performed again after the first network detection time; the first network detection time is the network detection time of the engine-off state; When the running state is running, the step of obtaining the network communication state is re-executed after the second network detection time; the second network detection time is the network detection time of the ignition state.
4. The network configuration method according to claim 3, characterized in that: The method further comprises: In the case where the network communication state is abnormal, recording the number of times the network communication state is abnormal; When the number is an integer multiple of a preset value and the running state is stopped, the first network detection time is increased according to a preset first offset time.
5. The network configuration method according to claim 4, characterized in that: The method further comprises: When the number is an integer multiple of a preset value and the operation state is operation, the second network detection time is reduced according to a preset second offset time.
6. The network configuration method according to claim 5, characterized in that: The method further comprises: When the network communication status is normal, the first network detection time is adjusted to a first initial value, the second network detection time is adjusted to a second initial value; and the number of times is reset to zero.
7. The network configuration method according to claim 4, characterized in that: Before reducing the second network detection time according to the preset second offset time, the method further includes: Determining whether the number of times reaches a preset threshold; If yes, increasing the second network detection time according to the third offset; If not, the second network detection time is reduced according to a preset second offset time.
8. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the network configuration method according to any one of claims 1 to 7.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the network configuration method according to any one of claims 1 to 7 is implemented.
10. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the network configuration method according to any one of claims 1 to 7.