Ping-pong switching suppression method, electronic equipment, communication system and readable storage medium

By detecting cell handover and adjusting system priority to suppress ping-pong handover, the high power consumption problem caused by frequent switching between different systems of terminal devices is solved, and low power consumption operation of terminal devices is achieved.

CN119031437APending Publication Date: 2024-11-26BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310612618.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-26
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

The frequent switching between different wireless access technologies by terminal devices leads to high power consumption, especially when no service is needed. The modem cannot enter sleep mode, causing the application processor to wake up frequently, increasing power consumption.

Method used

By detecting cell handovers, recording the serving cell identifier and historical counts, ping-pong handovers are identified, and the network standard priority settings are adjusted to suppress ping-pong handovers and avoid frequent network handovers waking up the modem and application processor.

Benefits of technology

It effectively reduces the power consumption of terminal devices, minimizes unnecessary power consumption, and ensures stable operation of the modem in sleep mode.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119031437A_ABST
    Figure CN119031437A_ABST
Patent Text Reader

Abstract

The invention provides a ping-pong switching suppression method, electronic equipment, a communication system and a readable storage medium, and the method comprises the steps: detecting whether a terminal device generates cell switching, recording an identifier of a service cell after the terminal device is switched in response to the generation of cell switching, and switching the terminal device based on the switching record of the service cell. According to the embodiment of the invention, the terminal device determines that ping-pong switching exists in the terminal device, and executes the suppression of the ping-pong switching of the terminal device, so that the terminal can avoid the increase of power consumption caused by frequent wake-up of a modem and even wake-up of an application processor due to the change of a network environment when the application processor is in a dormant state, effectively reduces the power consumption of the terminal, and improves the user experience. Electric quantity of the terminal is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of wireless communication technology, and in particular to a ping-pong switching suppression method, electronic equipment, communication system and readable storage medium. Background Art

[0002] In the use scenario of the terminal, the terminal often has high power consumption due to the influence of the network environment. For example, the terminal performs ping-pong switching between two or more radio access technologies (RATs) of different standards, resulting in high power consumption.

[0003] Even in a state or mode where the terminal does not need to perform any service, the terminal can be in an idle state, and the terminal's modem has no service to perform and can enter a sleep state. However, due to the cross-standard ping-pong problem, the modem may not be able to enter a sleep state. It may even change from an idle state to a connected state due to cross-standard ping-pong and then wake up the application processor (AP), resulting in higher power consumption of the terminal. Summary of the invention

[0004] The present application aims to solve one of the technical problems in the related art at least to some extent.

[0005] To this end, the following technical solutions are proposed:

[0006] The first aspect of the present application provides a method for suppressing ping-pong switching, the method being applied to a terminal device, the terminal device being in a first mode, including:

[0007] Detecting whether a cell switching occurs in the terminal device;

[0008] In response to a cell handover, recording an identifier of a serving cell after the terminal device is switched;

[0009] Based on the switching record of the serving cell, it is determined that ping-pong switching of the terminal device exists, and the ping-pong switching of the terminal device is suppressed.

[0010] Optionally, the performing of suppressing ping-pong switching of the terminal device includes:

[0011] Recording the current system priority setting of the terminal device;

[0012] Remove the highest standard among the standards currently supported by the terminal device, and change the standard priority setting of the terminal device.

[0013] Optionally, in response to occurrence of a cell handover, recording an identifier of a serving cell after the terminal device is switched includes:

[0014] In response to the standard to which the switched serving cell belongs being a standard that has been recorded, determining whether the switched serving cell has been recorded, wherein a serving cell identifier is recorded corresponding to each standard;

[0015] In response to the serving cell after the handover having been recorded, determining the number of historical records of the serving cell;

[0016] In response to the serving cell after the switch not having been recorded, an identifier of the serving cell after the switch is recorded, and a number of historical records of the serving cell is determined to be 1.

[0017] Optionally, in response to occurrence of a cell handover, recording an identifier of a serving cell after the terminal device is switched includes:

[0018] In response to the standard to which the switched serving cell belongs being a new standard that has not been recorded, the standard to which the switched serving cell belongs and an identifier of the switched serving cell are recorded, and the number of historical records of the serving cell is determined to be 1.

[0019] Optionally, the determining, based on the handover record of the serving cell, that a ping-pong handover exists in the terminal device includes:

[0020] The number of historical records of a service cell belonging to a certain standard is greater than a first threshold, and it is determined that a ping-pong handover occurs in the terminal device; and / or,

[0021] The number of historical records of service cells belonging to two standards is greater than the second threshold, and it is determined that ping-pong switching occurs in the terminal device.

[0022] Optionally, the method further comprises:

[0023] Record the identifier of the service cell that the terminal device first accesses after performing the suppression.

[0024] Optionally, the method further comprises:

[0025] Based on the status information of the terminal device, the system priority setting of the terminal device before performing the suppression is restored.

[0026] Optionally, the status information of the terminal device includes at least one of the following:

[0027] The network service of the terminal device is abnormal;

[0028] The location of the terminal device moves;

[0029] The terminal device exits the first mode, where the first mode is a mode in which the suppression of the ping-pong handover is enabled.

[0030] Optionally, determining that the location of the terminal device moves includes:

[0031] In response to the fact that the current serving cell of the terminal device does not belong to the recorded serving cell, and the current serving cell of the terminal device is different from the serving cell that the terminal device first accesses after performing the suppression, determining the number of times the terminal device moves;

[0032] In response to the movement times of the terminal device being greater than or equal to a third threshold, it is determined that the position of the terminal device moves.

[0033] The second aspect of the present application provides a ping-pong switching suppression device, including:

[0034] A detection module, used to detect whether a cell switching occurs in a terminal device, the terminal device being in a first mode;

[0035] A counting module, configured to record, in response to a cell switching, an identifier of a serving cell after the terminal device is switched;

[0036] A suppression module is used to determine whether ping-pong switching of the terminal device exists based on the switching record of the service cell, and to suppress the ping-pong switching of the terminal device.

[0037] Optionally, the suppression module is specifically used for:

[0038] Recording the current system priority setting of the terminal device;

[0039] Remove the highest standard among the standards currently supported by the terminal device, and change the standard priority setting of the terminal device.

[0040] Optionally, the counting module is specifically used for:

[0041] In response to the standard to which the switched serving cell belongs being a standard that has been recorded, determining whether the switched serving cell has been recorded, wherein a serving cell identifier is recorded corresponding to each standard;

[0042] In response to the serving cell after the handover having been recorded, determining the number of historical records of the serving cell;

[0043] In response to the serving cell after the switch not having been recorded, an identifier of the serving cell after the switch is recorded, and a number of historical records of the serving cell is determined to be 1.

[0044] Optionally, the counting module is specifically used for:

[0045] In response to the standard to which the switched serving cell belongs being a new standard that has not been recorded, the standard to which the switched serving cell belongs and an identifier of the switched serving cell are recorded, and the number of historical records of the serving cell is determined to be 1.

[0046] Optionally, the suppression module is specifically used for:

[0047] The number of historical records of a service cell belonging to a certain standard is greater than a first threshold, and it is determined that a ping-pong handover occurs in the terminal device; and / or,

[0048] The number of historical records of service cells belonging to two standards is greater than the second threshold, and it is determined that ping-pong switching occurs in the terminal device.

[0049] Optionally, the device further comprises:

[0050] A recording module is used to record the identifier of the service cell that the terminal device first accesses after performing the suppression.

[0051] Optionally, the device further comprises:

[0052] A recovery module is used to restore the mode priority setting of the terminal device before performing the suppression based on the status information of the terminal device.

[0053] Optionally, the status information of the terminal device includes at least one of the following:

[0054] The network service of the terminal device is abnormal;

[0055] The location of the terminal device moves;

[0056] The terminal device exits a first mode, where the first mode is a mode in which suppression of the ping-pong handover is enabled.

[0057] Optionally, the recovery module is specifically used for:

[0058] In response to the fact that the current serving cell of the terminal device does not belong to the recorded serving cell, and the current serving cell of the terminal device is different from the serving cell that the terminal device first accesses after performing the suppression, determining the number of times the terminal device moves;

[0059] In response to the movement times of the terminal device being greater than or equal to a third threshold, it is determined that the position of the terminal device moves.

[0060] The third aspect embodiment of the present application proposes an electronic device, comprising: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to call and execute the executable instructions stored in the memory to implement the ping-pong switching suppression method proposed in the first aspect embodiment of the present application.

[0061] The fourth aspect embodiment of the present application proposes a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the ping-pong switching suppression method proposed in the first aspect embodiment of the present application.

[0062] The fifth aspect of the present application provides a computer program product. When the computer program is executed by a processor of an electronic device, the electronic device can execute the method for suppressing ping-pong switching proposed in the first aspect of the present application.

[0063] The technical solution of the present application detects whether a cell switching occurs in a terminal device, records the identifier of the service cell after the terminal device switches in response to the cell switching, and updates a first counter corresponding to the service cell; in response to satisfying a first condition, determines that a ping-pong switching occurs in the terminal device, and suppresses the ping-pong switching of the terminal device, so that the terminal can avoid frequently waking up the modem due to changes in the network environment when the application processor is in a dormant state, and even waking up the application processor to increase power consumption, thereby effectively reducing the power consumption of the terminal and saving battery power of the terminal.

[0064] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0066] Figure 1 A schematic flow chart of a method for suppressing ping-pong switching provided in an embodiment of the present application;

[0067] Figure 2 A schematic diagram of a cross-standard switching record provided in an embodiment of the present application;

[0068] Figure 3 A flowchart of another method for suppressing ping-pong switching provided in an embodiment of the present application;

[0069] Figure 4 A schematic diagram of the structure of a ping-pong switching suppression device provided in an embodiment of the present application;

[0070] Figure 5A structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0071] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0072] Mobile communication technology is developing rapidly around the world. The mainstream mobile communication technologies currently used are the fourth generation mobile communication technology (4G) and the fifth generation mobile communication technology (5G). However, the second generation mobile communication technology (2G) and the third generation mobile communication technology (3G) are still widely used because of their wide coverage. However, the 2G / 3G network is generally used as a supplement to the 4G / 5G network. When the 4G / 5G network environment of the terminal is poor, or there is no 4G / 5G network coverage, it is necessary to switch to the 2G / 3G network to obtain mobile communication services.

[0073] In the use scenario of the terminal, the terminal often has high power consumption due to the influence of the network environment. For example, the terminal performs ping-pong switching between two or more radio access technologies (RATs) of different standards, resulting in high power consumption.

[0074] Even in a state or mode where the terminal does not need to perform services (for example, the terminal enters sleep mode at night), the terminal can be in an idle state, there is no Radio Resource Control (RRC) connection between the terminal and the base station, and the terminal's modem has no services to perform. It can enter a dormant state and stay in the cell to maintain basic network connection. However, the network may still switch the terminal to a 2G / 3G network due to poor 4G / 5G network signals. After switching, if the network believes that the 4G / 5G network has improved, it may switch the phone back to the 4G / 5G network from the 2G / 3G network according to the 4G priority or 5G priority set by the terminal. Repeatedly, the modem may not be able to enter a dormant state, and may even wake up the application processor (AP) due to cross-standard ping-pong from an idle state to a connected state, resulting in higher power consumption and faster power consumption of the terminal.

[0075] It can be understood that the 2G, 3G, 4G, and 5G mentioned above are wireless access technologies RAT of different standards.

[0076] The ping-pong switching suppression method, electronic device, and computer-readable storage medium according to the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0077] Figure 1 A schematic flow chart of a method for suppressing ping-pong switching provided in an embodiment of the present application. It should be noted that the method is applied to a terminal device.

[0078] like Figure 1 As shown, the ping-pong switching suppression method may include the following steps:

[0079] Step 101, detecting whether a cell switching occurs in a terminal device.

[0080] In an embodiment of the present application, the terminal device can detect whether a cell switching occurs in itself.

[0081] Optionally, the cell switching may be an intra-frequency switching or an inter-frequency switching.

[0082] In each embodiment of the present application, the terminal device is in a first mode. The first mode refers to a mode in which the terminal device is enabled to execute the ping-pong switching suppression method of each embodiment of the present application, and the modem side of the terminal device in the first mode has no service.

[0083] In some embodiments, the first mode may be a night mode, or the first mode may be a sleep mode, etc., which is not limited in the embodiments of the present application.

[0084] In some embodiments, the terminal device can also detect its own standard priority setting (also known as network preference setting, etc.), and in response to the standard priority setting of the terminal device being 4G priority or 5G priority, the ping-pong switching suppression method of each embodiment of the present application is enabled.

[0085] Among them, the standard priority setting is used to determine which standard's service cell the terminal device prefers to reside in.

[0086] Step 102: In response to a cell switch, an identifier of the serving cell after the terminal device is switched is recorded.

[0087] In some embodiments, the standard to which the switched service cell belongs is a standard that has been recorded, and the terminal device can determine whether the switched service cell has been recorded, and determine the number of historical records for each service cell, wherein each standard corresponds to the record of a service cell identifier.

[0088] In some embodiments, if a cell switch occurs, the terminal device can record the identifier of the serving cell after the terminal device switches, and update the first counter corresponding to the serving cell (using the first counter to record the number of historical records of each serving cell).

[0089] In response to the serving cell after the handover having been recorded, increasing the value of the first counter corresponding to the serving cell by one;

[0090] In response to the fact that the serving cell after the switch has not been recorded, an identifier of the serving cell after the switch is recorded, and a value of a first counter corresponding to the serving cell is reset to 1.

[0091] In some embodiments, the standard of the switched service cell is a new standard that has not been recorded. The terminal device can record the standard of the switched service cell and the identifier of the switched service cell, and set the first counter value corresponding to the switched service cell to 1.

[0092] Optionally, the terminal device of the embodiment of the present application may include multiple SIM cards. For the same card, up to three RATs of different standards are recorded. When all three positions are full, the previously recorded standards are overwritten in a rotation manner. After two rounds of rotation, if new standards continue to appear, it can be considered that the network switching is too frequent, and the previously recorded information is cleared and the recording starts again.

[0093] As an example, the terminal device's record can be as follows Figure 2As shown. Card 1 can record three RATs of rat1, rat2, and rat3. Each RAT of the standard records a corresponding identification of a serving cell, and each serving cell corresponds to a first counter. Card 2 can record three RATs of rat1', rat2', and rat3'. Each RAT of the standard records a corresponding identification of a serving cell, and each serving cell corresponds to a first counter.

[0094] As an example, after recording the RATs of 5G, 4G, and 3G and the corresponding service cell identifiers, if Card 1 switches to a 2G service cell, 2G covers the record of 5G, that is, Card 1 currently records the service cells of 2G, 4G, and 3G. If it switches to a 5G service cell at this time, 5G covers the record of 4G, that is, Card 1 currently records the service cells of 2G, 5G, and 3G. If it switches to a 4G service cell at this time, 4G covers the record of 3G, that is, Card 1 currently records the service cells of 2G, 5G, and 4G. So far, the record has rotated once. Similarly, after two rotations, the record information of Card 1 is cleared and the recording starts again.

[0095] Step 103: Based on the switching record of the serving cell, determine that the terminal device has ping-pong switching, and suppress the ping-pong switching of the terminal device.

[0096] Optionally, it is determined that the handover record of the serving cell has at least one of the following conditions, and it is determined that the terminal device has ping-pong handover:

[0097] The number of historical records of a service cell belonging to a certain standard is greater than a first threshold;

[0098] The number of historical records of the serving cells belonging to the two systems is greater than the second threshold.

[0099] It is understandable that the first threshold and the second threshold can be flexibly set according to different situations of the terminal device.

[0100] As an example, the first threshold value may be 6. If the value of the first counter corresponding to a standard recorded in a card continues to increase until it is greater than 6, it is considered that cross-standard ping-pong behavior is detected, and the ping-pong switching of the terminal device is suppressed.

[0101] As an example, the second threshold value may be 3. If the values ​​of the first counters corresponding to two different standards recorded by a card are both greater than 3, it is considered that cross-standard ping-pong behavior is detected, and the ping-pong switching of the terminal device is suppressed.

[0102] It should be noted that the above two examples are only shown as a possible implementation method, and are not intended to be a specific limitation on the embodiments of the present application. The embodiments of the present application may also have other possible implementation methods to realize the assumption that the terminal device has cross-standard ping-pong behavior and to suppress ping-pong switching. The embodiments of the present application are not specifically limited here.

[0103] In some embodiments, performing suppression of ping-pong switching of the terminal device includes:

[0104] Record the current system priority setting of the terminal device;

[0105] Remove the highest standard among the standards currently supported by the terminal device and change the standard priority setting of the terminal device.

[0106] In some embodiments, the terminal device can also record the identity of the serving cell accessed for the first time after performing the suppression.

[0107] In some embodiments, based on the status information of the terminal device, the system priority setting of the terminal device before performing the suppression is restored.

[0108] Optionally, the status information includes at least one of the following:

[0109] The network service of the terminal device is abnormal;

[0110] The location of the terminal device moves;

[0111] The terminal device exits the first mode, which is a mode for starting the suppression of the ping-pong handover.

[0112] That is, in some embodiments, the terminal device determines that the current status information of the terminal device belongs to at least one of the above, and restores the standard priority setting of the terminal device before performing the suppression.

[0113] Optionally, the terminal device determining that the location of the terminal device moves may include:

[0114] In response to the fact that the current serving cell of the terminal device does not belong to the recorded serving cell, and the current serving cell of the terminal device is different from the serving cell that the terminal device first accesses after performing the suppression, determining the number of times the terminal device moves;

[0115] In response to the movement times of the terminal device being greater than or equal to a third threshold, it is determined that the position of the terminal device moves.

[0116] Optionally, the number of times the terminal device moves may be recorded by a second counter.

[0117] It is understandable that the third threshold can be flexibly set according to different situations of the terminal device.

[0118] It should be noted that all actions in the embodiments of the present application are performed without waking up or notifying the application processor AP of the terminal device.

[0119] It should also be noted that the terminal device in the embodiment of the present application may include multiple SIM cards, and the terminal device in the embodiment of the present application may execute the ping-pong switching suppression method of each embodiment of the present application for each SIM card.

[0120] The embodiment of the present application detects whether a cell switching occurs in the terminal device, records the identifier of the service cell after the terminal device switches in response to the cell switching, determines based on the switching record of the service cell that a ping-pong switching occurs in the terminal device, and suppresses the ping-pong switching of the terminal device, so that the terminal can avoid frequently waking up the modem due to changes in the network environment or even waking up the application processor to increase power consumption when the application processor is in a dormant state, thereby effectively reducing the power consumption of the terminal and saving battery power of the terminal.

[0121] Figure 3 A flowchart of another method for suppressing ping-pong switching provided in an embodiment of the present application is provided. It should be noted that the method is applied to a terminal device.

[0122] like Figure 3 As shown, the ping-pong switching suppression method may include the following steps:

[0123] Step 301, detecting whether a cell switching occurs in a terminal device.

[0124] In an embodiment of the present application, the terminal device can detect whether a cell switching occurs in itself.

[0125] Optionally, the cell switching may be an intra-frequency switching or an inter-frequency switching.

[0126] In each embodiment of the present application, the terminal device is in a first mode. The first mode refers to a mode in which the terminal device is enabled to execute the ping-pong switching suppression method of each embodiment of the present application, and the modem side of the terminal device in the first mode has no service.

[0127] In some embodiments, the first mode may be a night mode, or the first mode may be a sleep mode, etc., which is not limited in the embodiments of the present application.

[0128] In some embodiments, the terminal device can also detect its own standard priority setting (also known as network preference setting, etc.), and in response to the standard priority setting of the terminal device being 4G priority or 5G priority, the ping-pong switching suppression method of each embodiment of the present application is enabled.

[0129] Among them, the standard priority setting is used to determine which standard's service cell the terminal device prefers to reside in.

[0130] Step 302: In response to a cell switch, the identifier of the serving cell after the terminal device is switched is recorded, and a first counter corresponding to the serving cell is updated.

[0131] In some embodiments, the standard to which the switched service cell belongs is a standard that has been recorded, and the terminal device can determine whether the switched service cell has been recorded, wherein each standard corresponds to an identifier of a service cell.

[0132] In response to the serving cell after the handover having been recorded, increasing the value of the first counter corresponding to the serving cell by one;

[0133] In response to the fact that the serving cell after the switch has not been recorded, an identifier of the serving cell after the switch is recorded, and a value of a first counter corresponding to the serving cell is reset to 1.

[0134] In some embodiments, the standard of the switched service cell is a new standard that has not been recorded. The terminal device can record the standard of the switched service cell and the identifier of the switched service cell, and set the first counter value corresponding to the switched service cell to 1.

[0135] Optionally, the terminal device of the embodiment of the present application may include multiple SIM cards. For the same card, up to three RATs of different standards are recorded. When all three positions are full, the previously recorded standards are overwritten in a rotation manner. After two rounds of rotation, if new standards continue to appear, it can be considered that the network switching is too frequent, and the previously recorded information is cleared and the recording starts again.

[0136] As an example, the terminal device's record can be as follows Figure 2 As shown. Card 1 can record three RATs of rat1, rat2, and rat3. Each RAT of the standard records a corresponding identification of a serving cell, and each serving cell corresponds to a first counter. Card 2 can record three RATs of rat1', rat2', and rat3'. Each RAT of the standard records a corresponding identification of a serving cell, and each serving cell corresponds to a first counter.

[0137] As an example, after recording the RATs of 5G, 4G, and 3G and the corresponding service cell identifiers, if Card 1 switches to a 2G service cell, 2G covers the record of 5G, that is, Card 1 currently records the service cells of 2G, 4G, and 3G. If it switches to a 5G service cell at this time, 5G covers the record of 4G, that is, Card 1 currently records the service cells of 2G, 5G, and 3G. If it switches to a 4G service cell at this time, 4G covers the record of 3G, that is, Card 1 currently records the service cells of 2G, 5G, and 4G. So far, the record has rotated once. Similarly, after two rotations, the record information of Card 1 is cleared and the recording starts again.

[0138] Step 303: In response to satisfying the first condition, determining that ping-pong switching exists in the terminal device.

[0139] Optionally, the first condition includes at least one of the following:

[0140] There is a first counter corresponding to a serving cell of one standard whose value is greater than a first threshold;

[0141] There are serving cells belonging to two systems whose values ​​of the first counters are both greater than the second threshold.

[0142] It is understandable that the first threshold and the second threshold can be flexibly set according to different situations of the terminal device.

[0143] As an example, the first threshold value may be 6. If the value of the first counter corresponding to a standard recorded in a card continues to increase until it is greater than 6, it is considered that cross-standard ping-pong behavior is detected, and the ping-pong switching of the terminal device is suppressed.

[0144] As an example, the second threshold value may be 3. If the values ​​of the first counters corresponding to two different standards recorded by a card are both greater than 3, it is considered that cross-standard ping-pong behavior is detected, and the ping-pong switching of the terminal device is suppressed.

[0145] It should be noted that the above two examples are only shown as a possible implementation method, and are not intended to be a specific limitation on the embodiments of the present application. The embodiments of the present application may also have other possible implementation methods to realize the assumption that the terminal device has cross-standard ping-pong behavior and to suppress ping-pong switching. The embodiments of the present application are not specifically limited here.

[0146] Step 304: record the current standard priority setting of the terminal device.

[0147] In the embodiment of the present application, after the terminal determines that the terminal device has cross-standard ping-pong behavior, it can first record the current standard priority setting of the terminal device.

[0148] It is understandable that when the terminal device includes multiple SIM cards, what is recorded is the current system priority setting of the card that is to trigger the ping-pong switching suppression operation (that is, the 4G priority or 5G priority mentioned earlier), so as to facilitate the subsequent recovery operation when the user exits the suppression of ping-pong switching.

[0149] Step 305: remove the highest standard among the standards currently supported by the terminal device, and change the standard priority setting of the terminal device.

[0150] In an embodiment of the present application, after triggering the ping-pong switching suppression operation, the terminal device can remove the highest standard among the standards currently supported by the terminal device and change the standard priority setting of the terminal device.

[0151] As an example, if the standard priority setting of the terminal device is 5G priority, and now it is determined that the terminal device is performing ping-pong switching between 5G and 3G, the standard priority setting of 5G will be removed. And so on. If cross-standard ping-pong between high and low standards occurs, the standard priority setting of the high-standard RAT participating in the ping-pong will be removed.

[0152] It is understandable that by removing the 5G standard priority setting, the current standard priority setting of the terminal device becomes 4G priority.

[0153] As another example, if it is detected that the terminal device has cross-standard ping-pong between three networks of different standards, for example, the terminal device was originally set to 5G priority, but now the terminal device has cross-standard ping-pong between 5G, 4G, and 3G, the terminal device first removes the 5G priority, and the standard priority of the terminal device automatically changes to 4G priority, and the algorithm of the embodiment of the present application is executed again to determine whether the terminal device can be stabilized in the 4G network. If the terminal device does not have cross-standard ping-pong under the standard priority setting of 4G priority, it is considered to be stable in the 4G network; if the terminal device also has cross-standard ping-pong under the standard priority setting of 4G priority, the 4G priority setting is removed, and the standard priority of the terminal device automatically changes to 3G priority, and so on.

[0154] As another example, if it is detected that the terminal device has a cross-standard ping-pong between three networks of different standards, the standard priority can be directly set to the lowest standard among the multiple standards of the cross-standard ping-pong. For example, if the terminal device originally set 5G priority, but now the terminal device has a cross-standard ping-pong between 5G, 4G, and 3G, the standard priority can also be directly set to 3G priority.

[0155] Step 306: Record the identifier of the serving cell accessed for the first time after the suppression is performed.

[0156] In an embodiment of the present application, the terminal device can also record the identifier of the service cell that is first accessed after performing the ping-pong switching suppression operation.

[0157] Step 307: In response to satisfying the second condition, restore the system priority setting of the terminal device before performing the suppression.

[0158] In the embodiment of the present application, if the terminal device meets the second condition, the standard priority setting of the terminal device before performing the ping-pong switching suppression operation is restored, and the ping-pong switching suppression operation is no longer performed.

[0159] It can be understood that when performing the operation of restoring the system priority setting, the terminal device can intercept the information reported by the modem to the application processor AP (ie, the application processor AP is not awakened).

[0160] In some embodiments, the second condition includes at least one of the following:

[0161] The network service of the terminal device is abnormal;

[0162] The location of the terminal device moves;

[0163] The terminal device exits the first mode, which is a mode for starting the suppression of the ping-pong handover.

[0164] Optionally, the terminal device determining that the location of the terminal device moves may include the following steps:

[0165] In response to the fact that the current serving cell of the terminal device does not belong to the recorded serving cell, and the current serving cell of the terminal device is different from the serving cell that the terminal device first accesses after performing the suppression, the value of the second counter corresponding to the terminal device is increased by one;

[0166] In response to the value of the second counter being greater than or equal to a third threshold, it is determined that the location of the terminal device has moved.

[0167] It is understandable that the third threshold can be flexibly set according to different situations of the terminal device.

[0168] As an example, if the ID of the service cell currently recorded by the card of the terminal device that has triggered the suppression operation has not been recorded before, and the ID of the service cell is different from the ID of the service cell that first resides after the suppression operation is triggered, the value of the second counter corresponding to the card is increased by 1. When the value of the second counter is greater than or equal to 5, it means that the terminal device has moved out of the original ping-pong area, triggering the recovery action, restoring the system priority setting of the terminal device before executing the suppression operation of the ping-pong switching, and no longer executing the suppression operation of the ping-pong switching.

[0169] It should be noted that all actions in the embodiments of the present application are performed without waking up or notifying the application processor AP of the terminal device.

[0170] It should also be noted that the terminal device in the embodiment of the present application may include multiple SIM cards, and the terminal device in the embodiment of the present application may execute the ping-pong switching suppression method of each embodiment of the present application for each SIM card.

[0171] The method for suppressing ping-pong switching in an embodiment of the present application detects whether a cell switching occurs in a terminal device, and in response to a cell switching occurring, records the identifier of the service cell after the terminal device switches, and updates a first counter corresponding to the service cell; in response to a first condition being met, determines that the terminal device has ping-pong switching, records the current standard priority setting of the terminal device, removes the highest standard among the standards currently supported by the terminal device, changes the standard priority setting of the terminal device, records the identifier of the service cell first accessed after the suppression is executed, and in response to a second condition being met, restores the standard priority setting of the terminal device before the suppression is executed, so that the terminal can avoid frequent wake-up of the modem due to changes in the network environment when the application processor is in a dormant state, and even wakes up the application processor to increase power consumption, thereby effectively reducing the power consumption of the terminal and saving battery power of the terminal.

[0172] In order to implement the above embodiment, the present application also proposes a ping-pong switching suppression device.

[0173] Figure 4 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application.

[0174] like Figure 4 As shown, the ping-pong switching suppression device includes: a detection module 410 , a counting module 420 and a suppression module 430 .

[0175] A detection module 410, configured to detect whether a cell switching occurs in a terminal device, the terminal device being in a first mode;

[0176] The counting module 420 is used to record the identifier of the serving cell after the terminal device is switched in response to the occurrence of the cell switching, and update the first counter corresponding to the serving cell;

[0177] The suppression module 430 is configured to determine, in response to satisfying the first condition, that ping-pong switching of the terminal device exists, and suppress the ping-pong switching of the terminal device.

[0178] Optionally, the suppression module 430 is specifically configured to:

[0179] Record the current system priority setting of the terminal device;

[0180] Remove the highest standard among the standards currently supported by the terminal device and change the standard priority setting of the terminal device.

[0181] Optionally, the counting module 420 is specifically used for:

[0182] In response to the standard to which the switched serving cell belongs being a standard that has been recorded, determining whether the switched serving cell has been recorded, wherein a serving cell identifier is recorded corresponding to each standard;

[0183] In response to the serving cell after the handover having been recorded, increasing the value of the first counter corresponding to the serving cell by one;

[0184] In response to the fact that the serving cell after the switch has not been recorded, an identifier of the serving cell after the switch is recorded, and a value of a first counter corresponding to the serving cell is reset to 1.

[0185] Optionally, the counting module 420 is specifically used for:

[0186] In response to the standard to which the switched service cell belongs being a new standard that has not been recorded, the standard to which the switched service cell belongs and the identifier of the switched service cell are recorded, and the value of the first counter corresponding to the service cell is set to 1.

[0187] Optionally, the first condition includes at least one of the following:

[0188] There is a first counter corresponding to a serving cell of one standard whose value is greater than a first threshold;

[0189] There are serving cells belonging to two systems whose values ​​of the first counters are both greater than the second threshold.

[0190] Optionally, the device further comprises:

[0191] A recording module (not shown in the figure) is used to record the identifier of the service cell that the terminal device first accesses after executing the suppression.

[0192] Optionally, the device further comprises:

[0193] A restoring module (not shown in the figure) is used to restore the standard priority setting of the terminal device before performing the suppression in response to satisfying the second condition.

[0194] Optionally, the second condition includes at least one of the following:

[0195] The network service of the terminal device is abnormal;

[0196] The location of the terminal device moves;

[0197] The terminal device exits the first mode, which is a mode for starting the suppression of the ping-pong handover.

[0198] Optionally, the recovery module is specifically used for:

[0199] In response to the fact that the current serving cell of the terminal device does not belong to the recorded serving cell, and the current serving cell of the terminal device is different from the serving cell that the terminal device first accesses after performing the suppression, the value of the second counter corresponding to the terminal device is increased by one;

[0200] In response to the value of the second counter being greater than or equal to a third threshold, it is determined that the location of the terminal device has moved.

[0201] The terminal device of the embodiment of the present application detects whether a cell switching occurs in the terminal device, and in response to the cell switching, records the identifier of the service cell after the terminal device is switched, and updates the first counter corresponding to the service cell. In response to satisfying the first condition, it is determined that the terminal device has a ping-pong switching, and the ping-pong switching of the terminal device is suppressed, so that the terminal can avoid frequent wake-up of the modem due to changes in the network environment when the application processor is in a dormant state, and even wake up the application processor to increase power consumption, thereby effectively reducing the power consumption of the terminal and saving battery power of the terminal.

[0202] It should be noted that the above explanation of the embodiment of the method for suppressing ping-pong switching applied to the terminal device is also applicable to the terminal device of this embodiment, and will not be repeated here.

[0203] In order to implement the above embodiment, the present application also proposes an electronic device, comprising: a processor; a memory for storing executable instructions of the processor; wherein the processor is configured to call and execute the executable instructions stored in the memory to implement the above Figure 2-Figure 3 The embodiment provides a method for suppressing ping-pong switching.

[0204] In order to implement the above embodiment, the present application also proposes a non-transitory computer-readable storage medium, and when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the above Figure 2-Figure 3 The embodiment provides a method for suppressing ping-pong switching.

[0205] In order to implement the above-mentioned embodiment, the embodiment of the present application further provides a computer program product, which, when executed by a processor of an electronic device, enables the electronic device to perform the above-mentioned Figure 2-Figure 3 The embodiment provides a method for suppressing ping-pong switching.

[0206] Figure 55 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0207] Reference Figure 5 , the electronic device 500 may include one or more of the following components: a processing component 502 , a memory 504 , a power component 506 , a multimedia component 508 , an audio component 510 , an input / output (I / O) interface 512 , a sensor component 514 , and a communication component 516 .

[0208] The processing component 502 generally controls the overall operation of the electronic device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.

[0209] The memory 504 is configured to store various types of data to support operations on the electronic device 500. Examples of such data include instructions for any application or method operating on the electronic device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0210] The power component 506 provides power to the various components of the electronic device 500. The power component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 500.

[0211] The multimedia component 508 includes a screen that provides an output interface between the electronic device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the electronic device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0212] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the electronic device 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 504 or sent via the communication component 516. In some embodiments, the audio component 510 also includes a speaker for outputting audio signals.

[0213] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0214] The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the electronic device 500. For example, the sensor assembly 514 can detect the open / closed state of the electronic device 500, the relative positioning of components, such as the display and keypad of the electronic device 500, and the sensor assembly 514 can also detect the position change of the electronic device 500 or a component of the electronic device 500, the presence or absence of user contact with the electronic device 500, the orientation or acceleration / deceleration of the electronic device 500, and the temperature change of the electronic device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0215] The communication component 516 is configured to facilitate wired or wireless communication between the electronic device 500 and other devices. The electronic device 500 can access a wireless network based on a communication standard, such as WiFi, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0216] In an exemplary embodiment, the electronic device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0217] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, and the instructions can be executed by a processor 520 of an electronic device 500 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0218] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0219] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0220] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0221] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0222] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0223] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0224] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0225] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A method for suppressing ping-pong switching, characterized in that: The method is applied to a terminal device, the terminal device is in a first mode, and the method comprises the following steps: Detecting whether a cell switching occurs in the terminal device; In response to a cell handover, recording an identifier of a serving cell after the terminal device has been switched; Based on the switching record of the serving cell, it is determined that ping-pong switching of the terminal device exists, and the ping-pong switching of the terminal device is suppressed.

2. The method according to claim 1, characterized in that The performing of suppressing the ping-pong switching of the terminal device includes: Recording the current system priority setting of the terminal device; Remove the highest standard among the standards currently supported by the terminal device, and change the standard priority setting of the terminal device.

3. The method according to claim 1, characterized in that In response to the occurrence of a cell handover, recording an identifier of a serving cell after the terminal device is switched includes: In response to the standard to which the switched serving cell belongs being a standard that has been recorded, determining whether the switched serving cell has been recorded, wherein a serving cell identifier is recorded corresponding to each standard; In response to the serving cell after the handover having been recorded, determining the number of historical records of the serving cell; In response to the serving cell after the switch not having been recorded, an identifier of the serving cell after the switch is recorded, and a number of historical records of the serving cell is determined to be 1.

4. The method according to claim 1, characterized in that: In response to the occurrence of a cell handover, recording an identifier of a serving cell after the terminal device is switched includes: In response to the standard to which the switched serving cell belongs being a new standard that has not been recorded, the standard to which the switched serving cell belongs and an identifier of the switched serving cell are recorded, and the number of historical records of the serving cell is determined to be 1.

5. The method according to claim 3 or 4, characterized in that: The determining, based on the handover record of the serving cell, that a ping-pong handover of the terminal device exists includes: The number of historical records of a service cell belonging to a certain standard is greater than a first threshold, and it is determined that a ping-pong handover occurs in the terminal device; and / or, The number of historical records of service cells belonging to two standards is greater than the second threshold, and it is determined that ping-pong switching occurs in the terminal device.

6. The method according to claim 2, characterized in that The method further comprises: Record the identifier of the service cell that the terminal device first accesses after performing the suppression.

7. The method according to claim 6, characterized in that The method further comprises: Based on the status information of the terminal device, the system priority setting of the terminal device before performing the suppression is restored.

8. The method according to claim 7, characterized in that The status information of the terminal device includes at least one of the following: The network service of the terminal device is abnormal; The location of the terminal device moves; The terminal device exits the first mode, where the first mode is a mode in which the suppression of the ping-pong handover is enabled.

9. The method according to claim 8, characterized in that The determining that the position of the terminal device moves includes: In response to the fact that the current serving cell of the terminal device does not belong to the recorded serving cell, and the current serving cell of the terminal device is different from the serving cell that the terminal device first accesses after performing the suppression, determining the number of times the terminal device moves; In response to the movement times of the terminal device being greater than or equal to a third threshold, it is determined that the position of the terminal device moves.

10. A ping-pong switching suppression device, characterized in that: include: A detection module, used to detect whether a cell switching occurs in a terminal device, the terminal device being in a first mode; A counting module, configured to record, in response to a cell switching, an identifier of a serving cell after the terminal device is switched; A suppression module is used to determine whether ping-pong switching of the terminal device exists based on the switching record of the service cell, and to suppress the ping-pong switching of the terminal device.

11. The device according to claim 10, characterized in that The suppression module is specifically used for: Recording the current system priority setting of the terminal device; Remove the highest standard among the standards currently supported by the terminal device, and change the standard priority setting of the terminal device.

12. The device according to claim 10, characterized in that The counting module is specifically used for: In response to the standard to which the switched serving cell belongs being a standard that has been recorded, determining whether the switched serving cell has been recorded, wherein a serving cell identifier is recorded corresponding to each standard; In response to the serving cell after the handover having been recorded, determining the number of historical records of the serving cell; In response to the serving cell after the switch not having been recorded, an identifier of the serving cell after the switch is recorded, and a number of historical records of the serving cell is determined to be 1.

13. The device according to claim 10, characterized in that The counting module is specifically used for: In response to the standard to which the switched serving cell belongs being a new standard that has not been recorded, the standard to which the switched serving cell belongs and an identifier of the switched serving cell are recorded, and the number of historical records of the serving cell is determined to be 1.

14. The device according to claim 12 or 13, characterized in that The suppression module is specifically used for: The number of historical records of a service cell belonging to a certain standard is greater than a first threshold, and it is determined that a ping-pong handover occurs in the terminal device; and / or, The number of historical records of service cells belonging to two standards is greater than the second threshold, and it is determined that ping-pong switching occurs in the terminal device.

15. The device according to claim 11, characterized in that The device also includes: A recording module is used to record the identifier of the service cell that the terminal device first accesses after performing the suppression.

16. The device according to claim 15, characterized in that The device also includes: A recovery module is used to restore the mode priority setting of the terminal device before performing the suppression based on the status information of the terminal device.

17. The device according to claim 16, characterized in that The status information of the terminal device includes at least one of the following: The network service of the terminal device is abnormal; The location of the terminal device moves; The terminal device exits a first mode, where the first mode is a mode in which suppression of the ping-pong handover is enabled.

18. The device according to claim 17, characterized in that The recovery module is specifically used for: In response to the fact that the current serving cell of the terminal device does not belong to the recorded serving cell, and the current serving cell of the terminal device is different from the serving cell that the terminal device first accesses after performing the suppression, determining the number of times the terminal device moves; In response to the movement times of the terminal device being greater than or equal to a third threshold, it is determined that the position of the terminal device moves.

19. An electronic device, characterized in that: include: processor; a memory for storing executable instructions for the processor; The processor is configured to call and execute executable instructions stored in the memory to implement the method according to any one of claims 1 to 9.

20. A non-transitory computer-readable storage medium, characterized in that When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method as claimed in any one of claims 1 to 9.