A method and apparatus for detecting a terminal synchronization state with a network

By using a timer to detect the connection status between the terminal and the network, and actively sending verification data to confirm the synchronization status, the problem of the terminal and the network losing synchronization is solved, thereby improving the reliability of data transmission and the user experience.

CN115348604BActive Publication Date: 2025-12-26VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211017076.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-23
Publication Date
2025-12-26
Estimated Expiration
2042-08-23

AI Technical Summary

Technical Problem

In mobile communication systems, a state of synchronization loss may occur between the terminal and the network, resulting in missed information and connection interruption. Existing technologies are unable to detect and restore synchronization in a timely manner.

Method used

By acquiring the connection status between the terminal and the network, a detection timer is started. If the connection status remains unchanged and no communication data is received, verification data is actively sent, and the synchronization status is confirmed based on the feedback from the network.

Benefits of technology

Timely detection of the synchronization status between the terminal and the network can prevent information loss due to prolonged synchronization issues, thereby improving data transmission reliability and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115348604B_ABST
    Figure CN115348604B_ABST
Patent Text Reader

Abstract

The application provides a terminal and network synchronization state detection method and device, electronic equipment and readable storage medium, and belongs to the field of communication. The method comprises the following steps: acquiring the connection state between the terminal and the network, and starting a detection timer; if the connection state does not change within the first timing duration of the detection timer, and the terminal does not receive the communication data sent by the network, the terminal sends verification data to the network; and according to the feedback of the network on the verification data, it is confirmed whether the terminal and the network are synchronized.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the field of communication, and in particular to a terminal and network synchronization state detection method and device, electronic equipment and readable storage medium. BACKGROUND

[0002] In a mobile communication system, a terminal can communicate with a network only after registering the network. When the terminal is in a connected state, the network and the terminal can directly communicate. When the terminal is in an idle state, the network and the terminal need to first establish a Radio Resource Control (RRC) connection to communicate.

[0003] After data transmission between the network and the terminal is completed, if there is no data transmission on the RRC connection for a period of time, the network sends an RRC release message to the terminal. After receiving the message, the terminal enters the idle state. However, after the network sends the RRC release message to the terminal, if the terminal does not receive the message, the terminal is still in the connected state. In fact, the terminal on the network side is in the idle state, which causes an out-of-sync state between the network and the terminal.

[0004] When the terminal needs to send data again, it can discover that the connection with the network has been interrupted. This causes the terminal to be in a lost state during the out-of-sync period, resulting in missed information. In addition, implicit deregistration of the network or movement of the terminal can also cause the lost state. SUMMARY

[0005] Embodiments of the present application provide a terminal and network synchronization state detection method and device, electronic equipment and readable storage medium to actively detect whether the terminal and the network are synchronized and restore synchronization when they are not synchronized.

[0006] In a first aspect, embodiments of the present application provide a terminal and network synchronization state detection method applied to a terminal, the method comprising:

[0007] obtaining a connection state between the terminal and the network, and starting a detection timer;

[0008] if the connection state does not change within a first timing duration of the detection timer, and the terminal does not receive communication data sent by the network, sending verification data to the network;

[0009] confirming whether the terminal and the network are synchronized according to feedback of the network on the verification data.

[0010] In a second aspect, embodiments of the present application provide a terminal and network synchronization state detection device applied to a terminal, the device comprising:

[0011] The connection state acquisition module is configured to acquire a connection state between the terminal and the network, and start a detection timer at the same time;

[0012] The verification data sending module is configured to send verification data to the network if the connection state does not change and the terminal does not receive the communication data sent by the network within a first timing duration of the detection timer.

[0013] The synchronization state determination module is configured to determine whether the terminal and the network are synchronized according to feedback of the network on the verification data.

[0014] In a third aspect, an electronic device is provided, which includes a processor and a memory, the memory stores programs or instructions executable on the processor, and the programs or instructions are executed by the processor to implement the steps of the terminal and network synchronization state detection method according to the first aspect.

[0015] In a fourth aspect, a readable storage medium is provided, which stores programs or instructions, and the programs or instructions are executed by a processor to implement the steps of the terminal and network synchronization state detection method according to the first aspect.

[0016] In a fifth aspect, a chip is provided, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run programs or instructions to implement the steps of the terminal and network synchronization state detection method according to the first aspect.

[0017] In a sixth aspect, a computer program product is provided, which is stored in a storage medium, and the program product is executed by at least one processor to implement the steps of the terminal and network synchronization state detection method according to the first aspect.

[0018] In the embodiments of the present application, the connection state between the terminal and the network is acquired, and a detection timer is started at the same time. If the connection state changes within a first timing duration of the detection timer, it indicates that the terminal and the network are not out of synchronization. If the connection state does not change within the first timing duration of the detection timer, but the terminal receives the communication data sent by the network, it indicates that the terminal and the network are not out of synchronization. If the terminal does not receive the communication data sent by the network, the terminal actively sends verification data to the network. According to the feedback of the network on the verification data, it is determined whether the terminal and the network are synchronized. When the terminal and the network are in the connection state, the synchronization state of the terminal and the network is obtained in time by actively detecting whether the connection state changes, the data receiving result, the verification data sending result, etc., so that the situation of missing information caused by the terminal and the network being out of synchronization for a long time is avoided, the reliability of the terminal and the network data transmission is improved, and the user experience is improved. Attached Figure Description

[0019] Figure 1 This is a flowchart of the steps of a method for detecting the synchronization status of a terminal and a network provided in an embodiment of the present invention;

[0020] Figure 2 This is a flowchart of another method for detecting the synchronization status of a terminal and a network provided in an embodiment of the present invention;

[0021] Figure 3 This is a flowchart of a detection process in a connected state provided by an embodiment of the present invention;

[0022] Figure 4 This is a flowchart of a detection process in an idle state provided by an embodiment of the present invention;

[0023] Figure 5 This is a block diagram of a terminal and network synchronization status detection device provided in an embodiment of the present invention;

[0024] Figure 6 This is an electronic device provided in an embodiment of the present invention;

[0025] Figure 7 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0026] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this invention will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.

[0027] Figure 1 This is a flowchart illustrating the steps of a method for detecting the synchronization status of a terminal and a network, provided by an embodiment of the present invention; applied to a terminal, the method includes:

[0028] Step 101: Obtain the connection status between the terminal and the network, and start the detection timer.

[0029] In the embodiment of the present application, after the terminal registers the network, the terminal is in an online state in a non-access stratum (NAS). The non-access stratum is a functional layer between the network and the terminal, and is used to support signaling and data transmission between the network and the terminal. The location and state of the terminal are updated at the network side by sending and receiving radio interface messages by a mobility management related network element. The mobility management related network element is used to manage the location information, security, and service continuity of the terminal, and the contact state between the terminal and the network is optimized to provide guarantee for network services of the terminal. After the terminal registers the network, the terminal has two states, a connected state and an idle state. When the terminal and the network have an RRC (Radio Resource Control) connection, the terminal is in the connected state. The RRC connection is used for the network to allocate wireless resources to the terminal and establish a wireless link. At this time, the network can directly perform data communication based on the allocated wireless resources. When the terminal and the network do not have an RRC connection, the terminal is in the idle state. If the terminal wants to interact with the network, the terminal needs to establish an RRC connection to communicate.

[0030] In order to determine whether the terminal and the network can normally perform data interaction, that is, to determine the synchronization state between the terminal and the network, the connection state between the terminal and the network can be acquired first, and a detection timer is started at the same time. When the terminal enters the connected state or the terminal enters the idle state, the detection timer starts timing synchronously. The detection timer has a fixed time length, and is used to control the interval time length of detecting the synchronization state of the terminal and the network. By setting a suitable timing time length of the detection timer, the connection state of the terminal and the network within the time length of the detection timer can be detected, and whether the terminal and the network are out of synchronization can be determined. The timing time length of the detection timer can be set according to actual requirements, which is not limited in the embodiment of the present application.

[0031] In step 102, if the connection state does not change within the first timing time length of the detection timer, and the terminal does not receive communication data sent by the network, verification data is sent to the network.

[0032] In the embodiment of the present application, after the data transmission between the terminal and the network is completed, the network detects that there is no data transmission on the RRC connection for a period of time, and sends an RRC release message to the terminal to inform the terminal that the RRC connection is disconnected, and the terminal enters the idle state. The RRC release message has no feedback mechanism. If the terminal does not receive the RRC release message from the network in a weak signal or strong interference environment, it is judged to be in the connected state, and the strategy for the connected state is executed, but actually the network side judges that the terminal is in the idle state. At this time, the terminal and the network are in a state of losing synchronization. Therefore, the synchronization state can be actively detected within the timing duration of the detection timer, and whether the terminal and the network lose synchronization can be found in time.

[0033] If the connection state does not change within the timing duration of the detection timer, that is, after the connection state of the terminal is acquired and the detection timer is started, the connection state of the terminal is still in the connected state or the idle state within the first timing duration of the detection timer. At this time, the communication data reception result of the terminal to the network can be further acquired, whether the terminal receives the data sent by the network within the timing duration of the detection timer is judged, so as to determine whether the network can normally send data to the terminal, and further determine whether the terminal and the network have lost synchronization. If the downlink data or paging data sent by the network to the terminal is received within the first timing duration, it indicates that the terminal and the network are still in the synchronization state, and if no data sent by the network is received within the first timing duration of the detection timer, it indicates that the terminal and the network may be out of synchronization. At this time, the terminal actively sends verification data to the network to further determine the synchronization state of the terminal and the network.

[0034] The verification data can be empty data sent by the terminal to the network. If the data can be successfully sent, it indicates that the terminal and the network are in the synchronization state at this time, and if the data cannot be successfully sent, it indicates that the connection state is abnormal and the synchronization is lost. The terminal judges whether the verification data is successfully sent through the feedback of the network to the verification data.

[0035] The terminal actively sends the verification data to verify the synchronization state between the terminal and the network, so that the terminal can know whether the synchronization with the network is lost in time, and further execute the strategy for losing synchronization, and improve the reliability of the connection between the terminal and the network.

[0036] Step 103, confirming whether the terminal and the network are synchronized according to the feedback of the network to the verification data.

[0037] In the embodiment of the present application, after the terminal sends the verification data to the network, if the feedback message of the network to the verification data is received, it indicates that the verification data is successfully sent, the RRC connection state between the terminal and the network is normal at this time, the terminal and the network do not lose synchronization, and the communication can be normally performed.

[0038] When the network environment is poor, the network will implicitly detach the terminal. That is, the terminal considers itself in the NAS registration state (connected state or idle state), but actually the network side has lost the connection of the terminal. When the terminal has data to send, the network rejects the RRC connection request of the terminal, and the terminal needs to re-register the network to recover normal synchronization, so if the feedback message of the network for the authentication data is not received, it indicates that the authentication data sending fails, the RRC connection state between the terminal and the network is abnormal, the terminal cannot establish RRC connection with the network, and the terminal can be implicitly detached by the network, at this time, the terminal and the network lose synchronization.

[0039] In the embodiment of the present application, the connection state between the terminal and the network is obtained, and a detection timer is started. If the connection state changes within the first timing duration of the detection timer, it indicates that the terminal and the network have not lost synchronization. If the connection state does not change within the first timing duration of the detection timer, but the terminal receives the communication data sent by the network, it indicates that the terminal and the network have not lost synchronization. If the terminal does not receive the communication data sent by the network, the terminal actively sends authentication data to the network. According to the feedback of the network on the authentication data, it is confirmed whether the terminal and the network are synchronized. When the terminal and the network are in the connection state, the change of the connection state, the data reception result, the authentication data sending result, etc. are actively detected, so that the synchronization state of the terminal and the network is obtained in time, the situation of missing information caused by the long time loss of synchronization between the terminal and the network is avoided, the reliability of the data transmission between the terminal and the network is improved, and the user experience is improved.

[0040] Figure 2 It is another method for detecting the synchronization state between the terminal and the network provided by the embodiment of the present application, as shown in Figure 2 The method can include:

[0041] Step 201, obtaining the connection state between the terminal and the network, and starting a detection timer.

[0042] This step can refer to the above-mentioned step 101, and will not be described here.

[0043] Step 202, within the first timing duration of the timing task, if the connection state does not change, it is judged whether the terminal receives the communication data sent by the network.

[0044] In the embodiment of the present application, if the connection state does not change, if the downlink data sent by the network is received in the connected state, it is judged that the terminal and the network can normally communicate, and the terminal and the network have not lost synchronization. If the paging data sent by the network is received in the idle state, it is judged that the terminal and the network can normally communicate, and the terminal and the network have not lost synchronization.

[0045] Specifically, the connection state is acquired within the timing duration of the detection timer.

[0046] If the connection state of the terminal is connected state, the detection timer is started when the terminal is in connected state, the connection state of the terminal is acquired within the timing duration of the detection timer, if the terminal is in connected state within the timing duration, further judgment of the communication data receiving condition in connected state is performed, if the terminal is in idle state, it indicates that the terminal receives the RRC release message sent by the network to the terminal within the timing duration, the state of the terminal is updated to idle state, the terminal can normally receive the RRC release message sent by the network to the terminal, indicating that the synchronization state between the terminal and the network is normal, and the terminal and the network can normally communicate, at this time, there is no need to acquire the communication data receiving condition.

[0047] If the connection state of the terminal is idle state, the detection timer is started when the terminal is in idle state, the connection state of the terminal is acquired within the timing duration of the detection timer, if the terminal is in idle state within the timing duration, the data receiving result in idle state is judged, whether the terminal receives the paging data sent by the network to the terminal in idle state is judged. If the terminal becomes in connected state within the timing duration, it indicates that the terminal initiates the RRC establishment request to the network within the timing duration, and successfully establishes the RRC connection, so that the terminal is in connected state, the terminal can successfully establish the RRC connection with the network, indicating that the terminal and the network have not lost synchronization, and the terminal and the network can normally communicate, at this time, there is no need to acquire the data receiving result.

[0048] If the terminal is in connected state within the timing duration, the data receiving result of the terminal to the network is acquired within the timing duration, whether the network successfully sends data to the terminal is judged within the timing duration, if there is downlink data sent by the network to the terminal within the timing duration, it indicates that the terminal and the network are in state synchronization, and can normally communicate, if there is no downlink data sent by the network to the terminal, it indicates that the terminal and the network may have lost synchronization, and the step of the terminal actively sending data to verify the synchronization state is performed.

[0049] If the paging data sent by the network to the terminal is received within the timing duration, it indicates that the network can find the terminal and initiate paging to the terminal, the paging is the process of determining the target terminal when the network needs to send data to the terminal, the terminal can establish connection with the network and communicate after receiving the paging data, the terminal can normally receive the paging data, indicating that the terminal and the network have not lost synchronization, if the paging data is not acquired within the timing duration, it indicates that the terminal and the network may have lost synchronization at this time, and the step of the terminal actively sending verification data to verify the synchronization state is performed.

[0050] Step 203, if the terminal receives the communication data, the first timing duration of the detection timer is extended.

[0051] In the embodiment of the present application, if the terminal can normally receive the data sent by the network, such as the downlink data or the paging data, it indicates that the state synchronization between the terminal and the network in the timing duration has proved that the connection between the terminal and the network is relatively reliable in the timing duration, at this time, there is no need to perform the subsequent verification data verification step, and the timing duration of the detection timer can be directly extended to continue the steps of judging whether the connection state is changed, the data reception result and the verification data sending situation in the extended timing duration, if the judgment result is that the terminal and the network are still in the synchronization state in the extended timing duration, the timing duration of the detection timer can be continued to be extended, and the steps of judging whether the connection state is changed, the data reception result and the verification data sending situation are continued to be performed, by continuously determining the synchronization state between the network and the terminal in the timing duration of the detection timer, the out-of-step of the network and the terminal can be detected in time, and the normal communication of the user is avoided to be affected.

[0052] Optionally, step 203 specifically includes:

[0053] Sub-step 2031, the first timing duration of the detection timer is extended to a second timing duration.

[0054] In the embodiment of the present application, if the state synchronization between the terminal and the network is determined in a timing duration, it indicates that the connection state between the terminal and the network is relatively reliable, and the frequency of detecting the synchronization state between the terminal and the network can be appropriately reduced, at this time, the first timing duration of the detection timer can be extended to a second timing duration. For example, if the detection under the connected state is detected, the first timing duration of the detection timer corresponding to the connected state is 10s, if it is judged that the network is reliable, it can be extended to a second timing duration such as 20s, and the next detection is performed in a cycle, and 20s is taken as the timing duration of the detection timer, if the detection under the idle state is detected, the first timing duration of the detection timer corresponding to the idle state is initially 10min, if it is judged that the network is reliable, it can be extended to a second timing duration such as 20min, and the next detection is performed in a cycle, and 20min is taken as the timing duration of the detection timer.

[0055] Sub-step 2032, if the second timing duration is less than or equal to a preset duration threshold, the second timing duration is taken as the timing duration of the detection timer.

[0056] In the embodiment of the present application, when setting the duration of the detection timer, the duration threshold of the detection timer can be set to avoid the duration of the detection timer being extended indefinitely, resulting in unreliable detection. When the extended second timing duration is less than or equal to the preset duration threshold, the extended second timing duration is the duration of the detection timer. For example, for detection in the connected state, the preset duration threshold can be set to 60s. When the extended second timing duration is less than or equal to 60s, the extended second timing duration is taken as the timing duration of the detection timer. For detection in the idle state, the preset duration threshold can be set to 60min. When the extended second timing duration is less than or equal to 60min, the extended second timing duration is taken as the timing duration of the detection timer.

[0057] In the step 2033, if the second timing duration is less than or equal to the preset duration threshold, the second timing duration is taken as the timing duration of the detection timer.

[0058] In the embodiment of the present application, if the extended second timing duration is greater than the preset duration threshold, in order to ensure the timeliness and reliability of detection, the extended timing duration is not taken as the timing duration of the detection timer, but the preset duration threshold is taken as the timing duration of the detection timer. After each extension of the timing duration, a determination is made as to whether it is greater than the preset duration threshold to determine the timing duration of the detection timer in the next detection. For example, for detection in the connected state, when the extended timing duration is greater than 60s, 60s is taken as the timing duration of the detection timer. For detection in the idle state, when the extended timing duration is greater than 60min, 60min is taken as the timing duration of the detection timer.

[0059] In the step 204, when the terminal does not receive the communication data sent by the network, the terminal sends verification data to the network.

[0060] This step can refer to the above-described step 103, and will not be described here again.

[0061] In the step 205, if the feedback of the verification data is no feedback, it is confirmed that the terminal and the network are out of synchronization, and the connection between the terminal and the network is re-established.

[0062] In the embodiment of the present application, if the terminal sends the verification data to the network and does not receive the reply of the network to the verification data, it indicates that the verification data sending fails and the terminal loses synchronization with the network, the terminal performs the step of re-searching the network and establishing the RRC connection between the terminal and the network to restore the synchronization state. At this time, since the connection between the network and the terminal is unreliable, if the timing duration this time is the prolonged duration, the timing duration of the detection timer is re-adjusted to the default duration, and the detection is performed with the default duration as the timing duration of the detection timer in the next detection, which increases the reliability of the detection and avoids that the time of the cyclic detection is too long in the state that the connection between the network and the terminal is unreliable, which causes the terminal and the network to be out of connection for a period of time.

[0063] In step 206, if the verification data feedback condition is that the feedback is received, it is confirmed that the terminal and the network do not lose synchronization, and the first timing duration of the detection timer is prolonged.

[0064] In the embodiment of the present application, if the terminal sends the verification data to the network and receives the feedback message of the network to the verification data, it indicates that the verification data sending succeeds and the terminal and the network are in the synchronization state, and the connection between the terminal and the network is relatively reliable. At this time, the timing duration of the detection timer can be prolonged, and the steps of judging whether the connection state changes, the data receiving result and the sending condition of the verification data in the prolonged timing duration are continued, which are described in step 203 and will not be described here.

[0065] Optionally, the connection state includes the connected state or the idle state, and the method further includes:

[0066] In step 207, if the connection state changes from the connected state to the idle state or from the idle state to the connected state in the timing duration of the detection timer, the process of the terminal and the network synchronization state detection is ended.

[0067] In the embodiment of the present application, if the connection state changes from the connected state to the idle state in the timing duration, it indicates that the terminal receives the RRC release message sent by the network in the timing duration, which indicates that the terminal and the network are connected normally, and the judgment based on the data receiving condition in the connected state is not performed. If the connection state changes from the idle state to the connected state, it indicates that the terminal receives the paging data sent by the network and establishes the RRC connection or the terminal actively sends data to the network and establishes the RRC connection in the timing duration, which indicates that the terminal and the network are connected normally, and the judgment based on the data receiving condition in the idle state is not performed.

[0068] Optionally, the connection state comprises a connected state and an idle state; a default time length of the detection timer corresponding to the connected state is shorter than a default time length of the detection timer corresponding to the idle state.

[0069] In the embodiment of the present application, it is normal for a terminal to not receive data from a network for a long time in an idle state compared with a connected state, and in order to reduce power consumption of the terminal in a sleep state, the time length of the detection timer in the idle state can be set to be relatively longer than the time length of the detection timer in the connected state. For example, if the time length of the default detection timer in the connected state is set to be 10 seconds and the preset time threshold is 60 seconds, the time length of the default detection timer in the idle state can be set to be 10 minutes and the preset time threshold is 60 minutes, so as to reasonably detect whether the terminal and the network are out of synchronization in different connection states, and avoid excessive occupation of terminal resources and consumption of terminal power.

[0070] Optionally, the connection state comprises a connected state and an idle state; when the connection state is the connected state, the communication data sent by the network is downlink data; and when the connection state is the idle state, the communication data sent by the network is paging data.

[0071] In the embodiment of the present application, the types of the communication data received by the terminal from the network are different in the connected state and the idle state, and the communication data received in the connected state is downlink data sent by the network, and the communication data received in the idle state is paging data sent by the network.

[0072] Reference Figure 3 , Figure 3The detection method of terminal and network synchronization state in connected state is shown. When the terminal is in connected state, the detection timer is started, the initial default value of the timing duration of the detection timer is set, for example, it can be 10 seconds. Within the duration of the detection timer, it is judged whether the terminal is in connected state. When the terminal is not in connected state, the detection of whether the terminal and network in connected state are synchronized is ended. When the terminal is in connected state, it is continuously judged whether there is downlink data within the timing duration. If there is downlink data, it means that the terminal can receive the data sent by the network within the timing duration, which means that the terminal and network are in synchronization state. At this time, it is considered that the connection state between the terminal and network is reliable. The timing duration of the detection timer is extended, for example, it can be 20 seconds. The steps of judging the connected state and downlink data within the timing duration of 20 seconds are continued. If there is no downlink data within the timing duration, it means that the detection timer has timed out. At this time, the terminal actively sends verification data to the network. If the verification data is sent successfully, it means that the synchronization state between the terminal and network is normal. As above, the step of extending the timing duration of the detection timer is executed, and the next detection is performed. If the verification data fails to be sent, it means that the terminal and network lose synchronization. The terminal performs the operation of recovering synchronization and initiates RRC connection establishment again. After the terminal and network lose synchronization, the timing duration of the detection timer is set to the initial default value, for example, 10 seconds. In the next detection, the timing duration of 10 seconds is taken as the duration of the detection timer. The synchronization state of the terminal and network is detected in such a cyclic judgment manner, so as to ensure the reliability of the connection between the terminal and network.

[0073] Reference Figure 4 , Figure 4The detection method of the terminal in idle state and the network synchronization state is shown. When the terminal is in idle state, the detection timer is started. The initial default value of the detection timer is set to 10 minutes. In the time length of the detection timer, it is judged whether the terminal is in idle state. When the terminal is not in idle state, the detection of whether the terminal in idle state and the network are synchronized is ended. When the terminal is in idle state, it is continuously judged whether there is paging data in the time length. If there is paging data, it means that the terminal can receive the data sent by the network in the time length, which means that the terminal and the network are in synchronization state. At this time, it is considered that the connection state between the terminal and the network is reliable. The time length of the detection timer is extended, for example, it can be 20 minutes. The steps of judging the connection state and paging data are continuously executed in the time length of 20 minutes. If there is no paging data in the time length, it means that the detection timer has timed out. At this time, the terminal actively sends verification data to the network. If the verification data is sent successfully, it means that the synchronization state between the terminal and the network is normal. As above, the step of extending the time length of the detection timer is executed. If the verification data is sent unsuccessfully, it means that the terminal and the network lose synchronization. The terminal performs the operation of recovering synchronization, searches for the network again, and establishes RRC connection. After the terminal and the network lose synchronization, the time length of the detection timer is set to the initial default value, such as 10 minutes, that is, the operation of returning to the initial default value. In the next detection, the time length of 10 minutes is taken as the time length of the detection timer. In this way, the synchronization state of the terminal and the network is detected in a cyclic judgment mode, which guarantees the reliability of the connection between the terminal and the network.

[0074] In summary, in the embodiment of the present application, the connection state between the terminal and the network is acquired, and the detection timer is started at the same time. If the connection state changes in the first time length of the detection timer, it means that the terminal and the network have not lost synchronization. If the connection state does not change in the first time length of the detection timer, but the terminal receives the communication data sent by the network, it means that the terminal and the network have not lost synchronization. If the terminal does not receive the communication data sent by the network, it actively sends verification data to the network. According to the feedback of the network on the verification data, it is confirmed whether the terminal and the network are synchronized. When the terminal and the network are in connection state, the connection state is actively detected whether it changes, the data receiving result, the verification data sending result, and other means are used to obtain the synchronization state of the terminal and the network in time, which avoids the situation that the terminal and the network lose synchronization for a long time, causes missed information, improves the reliability of data transmission between the terminal and the network, and improves the user experience.

[0075] The terminal and network synchronization state detection method provided by the embodiment of the application can be executed by a terminal and network synchronization state detection device. The terminal and network synchronization state detection method executed by the terminal and network synchronization state detection device is taken as an example to describe the terminal and network synchronization state detection device provided by the embodiment of the application.

[0076] Figure 5 is a block diagram of a terminal and network synchronization state detection device provided by the embodiment of the application. The device is applied to a terminal, as shown in the figure, the device 30 comprises: Figure 5

[0077] a connection state acquisition module 301, configured to acquire a connection state between the terminal and a network, and start a detection timer;

[0078] a verification data sending module 302, configured to send verification data to the network if the connection state does not change and the terminal does not receive communication data sent by the network within a first timing duration of the detection timer;

[0079] a synchronization state determination module 303, configured to determine whether the terminal and the network are synchronized according to a feedback situation of the network on the verification data.

[0080] Optionally, the synchronization state determination module 304 comprises:

[0081] a first determination submodule, configured to determine that the terminal and the network are out of synchronization and reestablish a connection between the terminal and the network if the feedback situation is no feedback received;

[0082] a second determination submodule, configured to determine that the terminal and the network are not out of synchronization and extend the first timing duration of the detection timer if the feedback situation is feedback received.

[0083] Optionally, the second determination submodule comprises:

[0084] a timing duration extension submodule, configured to extend the first timing duration of the detection timer to a second timing duration;

[0085] a first duration determination submodule, configured to take the second timing duration as the timing duration of the detection timer if the second timing duration is less than or equal to a preset duration threshold;

[0086] a second duration determination submodule, configured to take the preset duration threshold as the timing duration of the detection timer if the second timing duration is greater than the preset duration threshold.

[0087] ​Optionally, the connection state comprises a connected state and an idle state, and the apparatus further comprises:

[0088] The connection state conversion module is configured to, if the connection state is converted from the connected state to the idle state or from the idle state to the connected state within the timing duration of the detection timer, end the process of detecting whether the terminal and the network are out of synchronization.

[0089] Optionally, the apparatus further comprises:

[0090] The cycle detection module is configured to, if the connection state does not change and the terminal receives communication data within the first timing duration of the detection timer, extend the first timing duration of the detection timer.

[0091] Optionally, the connection state comprises a connected state and an idle state; and a default duration of the detection timer corresponding to the connected state is shorter than a default duration of the detection timer corresponding to the idle state.

[0092] Optionally, the connection state comprises a connected state and an idle state.

[0093] When the connection state is the connected state, the communication data sent by the network is downlink data.

[0094] When the connection state is the idle state, the communication data sent by the network is paging data.

[0095] In summary, the embodiment of the application provides a detection apparatus for a terminal and a network synchronization state, which obtains a connection state between the terminal and the network, and simultaneously starts a detection timer; if the connection state changes within a first timing duration of the detection timer, it indicates that the terminal and the network are not out of synchronization; if the connection state does not change within the first timing duration of the detection timer, but the terminal receives communication data sent by the network, it indicates that the terminal and the network are not out of synchronization; if the terminal does not receive the communication data sent by the network, the terminal actively sends verification data to the network; and whether the terminal and the network are synchronized is confirmed according to feedback of the network on the verification data. When the terminal and the network are in the connection state, the synchronization state of the terminal and the network is obtained in time by actively detecting whether the connection state changes, a data receiving result, a verification data sending result and the like, so that the situation of missing information caused by the terminal and the network being out of synchronization for a long time is avoided, the reliability of data transmission of the terminal and the network is improved, and user experience is improved.

[0096] The terminal and network synchronization state detection apparatus in the embodiments of the present application can be an electronic device, or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), and the like, and can also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, and the like, and the embodiments of the present application are not limited in this regard.

[0097] The terminal and network synchronization state detection apparatus in the embodiments of the present application can be an apparatus having an operating system. The operating system can be an Android operating system, an ios operating system, or other possible operating systems, and the embodiments of the present application are not limited in this regard.

[0098] The terminal and network synchronization state detection apparatus provided in the embodiments of the present application can implement the method embodiments Figures 1 to 4 to achieve the same technical effects, and thus repeated descriptions are not provided herein.

[0099] Optionally, as shown in Figure 6 the embodiments of the present application further provide an electronic device 400, which includes a processor 401 and a memory 402, and the memory 402 has a program or instruction stored thereon, which can be run on the processor 401. When the program or instruction is executed by the processor 401, each step of the terminal and network synchronization state detection method embodiments described above is implemented, and the same technical effects are achieved. Thus, repeated descriptions are not provided herein.

[0100] It should be noted that the electronic device in the embodiments of the present application includes the mobile electronic device and the non-mobile electronic device described above.

[0101] Figure 7 To implement the hardware structure of an electronic device according to an embodiment of the present application.

[0102] The electronic device 400 includes, but is not limited to, a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a storage 1009, and a processor 1010, etc.

[0103] Those skilled in the art can understand that the electronic device 400 can further include a power supply (such as a battery) for supplying power to each component, and the power supply can be logically connected to the processor 1010 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 7 The electronic device structure shown in the figure is not a limitation on the electronic device, and the electronic device can include more or fewer components than shown, or combine certain components, or different component arrangements, which are not described here.

[0104] The processor 1010 is configured to acquire a connection state between the terminal and the network, and start a detection timer;

[0105] If the connection state does not change and the terminal does not receive communication data sent by the network within a first timing duration of the detection timer, the processor 1010 is configured to send verification data to the network;

[0106] The processor 1010 is configured to confirm whether the terminal and the network are synchronized according to feedback of the network on the verification data.

[0107] Optionally, the processor 1010 is configured to confirm whether the terminal and the network are synchronized according to the feedback of the network on the verification data, including:

[0108] If the feedback is not received, the processor 1010 is configured to confirm that the terminal and the network are out of synchronization, and reestablish the connection between the terminal and the network;

[0109] If the feedback is received, the processor 1010 is configured to confirm that the terminal and the network have not lost synchronization, and extend the first timing duration of the detection timer.

[0110] Optionally, the processor 1010 is configured to extend the first timing duration of the detection timer, including:

[0111] The processor 1010 is configured to extend the first timing duration of the detection timer to a second timing duration;

[0112] If the second timing duration is less than or equal to a preset duration threshold, the processor 1010 is configured to take the second timing duration as the timing duration of the detection timer;

[0113] If the second timing duration is greater than the preset duration threshold, the processor 1010 is configured to take the preset duration threshold as the timing duration of the detection timer.

[0114] Optionally, the connection state comprises a connected state or an idle state, and the processor 1010 is further configured to end the process of detecting the synchronization state between the terminal and the network if the connection state changes from the connected state to the idle state or from the idle state to the connected state within the time length of the detection timer.

[0115] Optionally, the processor 1010 is further configured to extend the first time length of the detection timer if the connection state does not change and the terminal receives communication data within the first time length of the detection timer.

[0116] Optionally, the connection state comprises a connected state or an idle state, and a default time length of the detection timer corresponding to the connected state is shorter than a default time length of the detection timer corresponding to the idle state.

[0117] Optionally, the connection state comprises a connected state and an idle state.

[0118] When the connection state is the connected state, the communication data sent by the network is downlink data.

[0119] When the connection state is the idle state, the communication data sent by the network is paging data.

[0120] Through the processor 1010, the above method is executed, so that when the terminal and the network are in a connection state, the synchronization state between the terminal and the network is obtained in time through active detection of whether the connection state changes, communication data receiving conditions, verification data feedback conditions and the like, avoiding the case that the terminal and the network lose synchronization for a long time, leading to missed information, improving the reliability of data transmission between the terminal and the network, and improving user experience.

[0121] It should be understood that in the embodiments of the present application, the input unit 1004 can include a graphics processor (GPU) 10041 and a microphone 10042. The graphics processor 10041 processes image data of a still picture or a video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1006 can include a display panel 10061, which can be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 can include two parts of a touch detection device and a touch controller. The other input devices 10072 can include, but are not limited to, a physical keyboard, function keys (such as volume control keys, on-off keys, etc.), a trackball, a mouse, a joystick, and the like, which will not be described here.

[0122] The memory 1009 can be used to store software programs and various data. The memory 1009 can mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area can store an operating system, application programs or instructions required by at least one function (such as a sound playing function, an image playing function, etc.), etc. In addition, the memory 1009 can include a volatile memory or a non-volatile memory, or the memory 1009 can include both volatile and non-volatile memories. The non-volatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM), a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDR SDRAM), an Enhanced SDRAM (ESDRAM), a Synch link DRAM (SLDRAM), and a Direct Rambus RAM (DRRAM). The memory 1009 in the embodiments of the present application includes but is not limited to these and any other suitable types of memories.

[0123] The processor 1010 can include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and an application program, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 1010.

[0124] The embodiments of the present application also provide a readable storage medium, the readable storage medium stores programs or instructions, the programs or instructions are executed by a processor to realize each process of the above-mentioned terminal and network synchronization state detection method embodiment, and the same technical effects can be achieved, to avoid repetition, which will not be described here.

[0125] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer readable only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0126] The embodiment of the present application further provides a chip, which comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions to realize each process of the terminal and network synchronization state detection method embodiment, and the same technical effects can be achieved. To avoid repetition, details are not described herein.

[0127] It should be understood that the chip mentioned in the embodiment of the present application can also be referred to as a system chip, a system chip, a chip system or a system on chip, etc.

[0128] The embodiment of the present application provides a computer program product, which is stored in a storage medium, and the program product is executed by at least one processor to realize each process of the terminal and network synchronization state detection method embodiment, and the same technical effects can be achieved. To avoid repetition, details are not described herein.

[0129] It should be noted that in this paper, the term "includes", "contains" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or includes elements inherent to such process, method, article or device. Without more limitations, the element defined by the statement "includes a" does not exclude the presence of another identical element in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to the order of the functions shown or discussed, but also includes the functions performed in a substantially simultaneous manner or in the opposite order, for example, the described method can be performed in an order different from the described order, and various steps can also be added, omitted or combined. In addition, the features described with reference to some examples can be combined in other examples.

[0130] Through the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned example methods can be realized by means of software and a necessary general hardware platform, and of course, can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a computer software product in essence or in the form of a part that contributes to the prior art, which is stored in a storage medium (such as a ROM / RAM, a magnetic disk, or an optical disk) and includes a plurality of instructions for causing a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application.

[0131] The embodiments of the present application are described above in combination with the drawings, but the present application is not limited to the above-mentioned specific embodiments, and the above-mentioned specific embodiments are only illustrative and not restrictive. Those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the scope protected by the claims.

Claims

1. A method for detecting the synchronization status of a terminal and a network, applied to a terminal, characterized in that, The method comprises: acquiring a connection state between the terminal and the network, and starting a detection timer; if the connection state does not change and the terminal does not receive communication data sent by the network within a first timing duration of the detection timer, sending verification data to the network; confirming whether the terminal and the network are synchronized according to feedback of the network on the verification data; wherein the confirming whether the terminal and the network are synchronized according to the feedback of the network on the verification data comprises: if the feedback is not received, confirming that the terminal and the network are out of synchronization, and re-establishing the connection between the terminal and the network; if the feedback is received, confirming that the terminal and the network have not lost synchronization, and extending the first timing duration of the detection timer.

2. The method of claim 1, wherein, The extending the first timing duration of the detection timer comprises: extending the first timing duration of the detection timer to a second timing duration; if the second timing duration is less than or equal to a preset duration threshold, taking the second timing duration as the timing duration of the detection timer; if the second timing duration is greater than the preset duration threshold, taking the preset duration threshold as the timing duration of the detection timer.

3. The method of claim 1, wherein, The connection state comprises a connected state or an idle state, and the method further comprises: if the connection state changes from the connected state to the idle state or from the idle state to the connected state within the timing duration of the detection timer, ending the process of detecting the synchronization state of the terminal and the network.

4. The method of claim 1, wherein, The method further comprises: if the connection state does not change and the terminal receives communication data within the first timing duration of the detection timer, extending the first timing duration of the detection timer.

5. The method of claim 1, wherein, The connection state comprises a connected state and an idle state; the default duration of the detection timer corresponding to the connected state is less than the default duration of the detection timer corresponding to the idle state.

6. The method of claim 1, wherein, The connection state comprises a connected state and an idle state; when the connection state is the connected state, the communication data sent by the network is downlink data; when the connection state is the idle state, the communication data sent by the network is paging data.

7. A device for detecting the synchronization status of a terminal and a network, applied to a terminal, characterized in that, The apparatus comprises: a connection state acquisition module, configured to acquire a connection state between the terminal and the network, and start a detection timer; a verification data sending module, configured to, if the connection state does not change and the terminal does not receive communication data sent by the network within a first timing duration of the detection timer, send verification data to the network; a synchronization state determination module, configured to confirm whether the terminal and the network are synchronized according to feedback of the network on the verification data; wherein the synchronization state determination module comprises: a first determination submodule, configured to, if the feedback is not received, confirm that the terminal and the network are out of synchronization, and re-establish the connection between the terminal and the network; a second determination submodule, configured to, if the feedback is received, confirm that the terminal and the network have not lost synchronization, and extend the first timing duration of the detection timer. A second determining submodule is configured to, if the feedback condition is that feedback is received, confirm that the terminal is in-synchronization with the network, and extend the first timing time of the detection timer.

8. An electronic device, comprising: A terminal comprising a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions being executed by the processor to implement the steps of the method for detecting a synchronization state between a terminal and a network according to any one of claims 1 to 6.

9. A readable storage medium, characterized by, A readable storage medium having stored thereon a program or instructions, the program or instructions being executed by a processor to implement the steps of the method for detecting a synchronization state between a terminal and a network according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Terminal connected state control method, devices and system

    CN108617034A

  • Synchronization method and device, equipment and storage medium

    CN114391283A