Mobile terminal flow control data updating method and device, mobile terminal equipment and medium

By synchronizing flow control counts between memory and non-volatile storage, the problem of flow control count loss when the communication module or communication chip restarts is solved, improving the accuracy of flow control, preventing wireless network congestion, and ensuring normal communication of mobile terminals.

CN117149794BActive Publication Date: 2026-05-29E SURFING IOT CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
E SURFING IOT CO LTD
Filing Date
2023-09-14
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

When the communication module or communication chip of a mobile terminal restarts, the flow control count in memory is lost, resulting in low flow control accuracy. It is impossible to accurately determine the duration between the mobile terminal being powered off and powered on, which affects the flow control of the wireless network.

Method used

By synchronizing flow control counts between memory and non-volatile storage, including the absolute start time of the time window, the current remaining duration of the time window, and the number of RRC connection requests within the time window, the flow control counts are ensured to be accurately updated after the communication module or communication chip is restarted.

Benefits of technology

This improves the accuracy of flow control, avoids wireless network congestion caused by lost flow control counts, and ensures normal communication for mobile terminals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117149794B_ABST
    Figure CN117149794B_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a mobile terminal flow control data updating method and device, mobile terminal equipment and medium. The method belongs to the technical field of Internet of Things, and comprises the following steps: detecting whether a reading condition is met; if the reading condition is met, writing flow control counts read from the memory into the nonvolatile storage, wherein the flow control counts comprise a time window start absolute time, a time window current remaining time length and a time window RRC connection request number; starting to read the flow control counts from the nonvolatile storage as the current flow control counts of the memory; and if it is detected that a network is attached after starting, updating the flow control counts in the memory and the nonvolatile storage according to the current absolute time obtained, a relative time length since the last start, a time window total length and the flow control counts read from the nonvolatile storage. The embodiment of the application can improve the accuracy of flow control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Internet of Things (IoT) technology, and in particular to a method, apparatus, mobile terminal device, and medium for updating flow control data in mobile terminals. Background Technology

[0002] The IoT terminals in cellular mobile communication are diverse and numerous, with limited human-computer interaction. When mobile terminal application software developers handle connection failure exceptions inappropriately, the deployed mobile terminal may frequently initiate RRC connection establishment requests, leading to wireless network congestion and affecting the normal communication of other mobile terminals in the same cell. Related technologies propose a method for flow control of initial random access requests initiated by terminal applications. This method calculates the number of connection requests initiated by the application within a time window, discarding requests when the number exceeds a flow control threshold. These connection requests include: restarting the mobile terminal's communication module or chip, enabling full functionality, attaching to the network, and sending data. However, when the communication module or chip restarts, the flow control count in memory is lost, making it impossible to determine the duration between the mobile terminal's power-off and power-on, and also impossible to update the flow control count, resulting in relatively low accuracy of flow control. Summary of the Invention

[0003] This invention provides a method, apparatus, mobile terminal device, and medium for updating flow control data in mobile terminals, aiming to improve the accuracy of flow control in existing mobile terminals.

[0004] In a first aspect, embodiments of the present invention provide a mobile terminal flow control data update method, applied to a communication unit in a mobile terminal, wherein the mobile terminal further includes memory and non-volatile storage connected to the communication unit, and the method includes:

[0005] Check if the reading conditions are met;

[0006] If the read condition is met, the flow control count read from the memory will be written into the non-volatile storage, wherein the flow control count includes the absolute start time of the time window, the current remaining duration of the time window, and the number of RRC connection requests within the time window;

[0007] After startup, the flow control count is read from the non-volatile memory as the current flow control count in the memory;

[0008] If an attached network is detected after startup, the memory and the flow control count in the non-volatile memory are updated based on the current absolute time, the relative duration since this startup, the total length of the time window, and the flow control count read from the non-volatile memory.

[0009] Secondly, embodiments of the present invention also provide a mobile terminal flow control data update device, applied to a communication unit in a mobile terminal, wherein the mobile terminal further includes memory and non-volatile storage connected to the communication unit, and the device includes:

[0010] The detection unit is used to detect whether the reading conditions are met;

[0011] The write unit is configured to write the flow control count read from the memory into the non-volatile storage if the read condition is met, wherein the flow control count includes the absolute start time of the time window, the current remaining duration of the time window, and the number of RRC connection requests within the time window;

[0012] A readout unit is used to read the flow control count from the non-volatile memory after startup as the current flow control count of the memory;

[0013] An update unit is used to update the memory and the flow control count in the non-volatile memory based on the current absolute time, the relative duration since this startup, the total length of the time window, and the flow control count read from the non-volatile memory if an attached network is detected after startup.

[0014] Thirdly, embodiments of the present invention also provide a mobile terminal device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-described method.

[0015] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the above-described method.

[0016] This invention provides a method, apparatus, mobile terminal device, and medium for updating flow control data in a mobile terminal. The method includes: detecting whether a reading condition is met; if the reading condition is met, writing a flow control count read from memory into non-volatile storage, wherein the flow control count includes the absolute start time of a time window, the current remaining duration of the time window, and the number of RRC connection requests within the time window; after startup, reading the flow control count from the non-volatile storage as the current flow control count in memory; if a network attachment is detected after startup, updating the flow control count in memory and the non-volatile storage based on the acquired current absolute time, the relative duration since startup, the total duration of the time window, and the flow control count read from the non-volatile storage. This invention improves the accuracy of flow control by updating the flow control count in memory and the non-volatile storage based on the current absolute time, the relative duration since startup, the total duration of the time window, and the flow control count read from the non-volatile storage after network attachment. Attached Figure Description

[0017] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 This is a flowchart illustrating a mobile terminal flow control data update method provided in an embodiment of the present invention.

[0019] Figure 2 This is a schematic diagram of the full-function shutdown provided in an embodiment of the present invention;

[0020] Figure 3 This is a schematic diagram of a soft reboot provided in an embodiment of the present invention;

[0021] Figure 4 This is a schematic diagram of the startup limit waiting time provided in an embodiment of the present invention;

[0022] Figure 5 for Figure 1 The current absolute time is unknown after the attachment network in the diagram;

[0023] Figure 6 for Figure 1 A diagram showing that the absolute starting time of the time window is empty;

[0024] Figure 7 for Figure 1 The diagram shows that the current absolute time is known after the attachment network is established, and the communication unit has not been reset.

[0025] Figure 8 for Figure 1 The diagram shows that the time window had already ended before the communication unit started, based on the current absolute time obtained from the attached network.

[0026] Figure 9 for Figure 1 The diagram shows the current absolute time obtained after the attachment network is established, and the time window has ended before the attachment network is established after the communication unit is started.

[0027] Figure 10 for Figure 1 The current absolute time is obtained after attaching the network. The time window has not yet ended after attaching the network.

[0028] Figure 11 A schematic block diagram of a mobile terminal flow control data update device provided in an embodiment of the present invention; and

[0029] Figure 12This is a schematic block diagram of a mobile terminal device provided in an embodiment of the present invention. Detailed Implementation

[0030] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0031] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0032] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0033] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0034] As used in this specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrases "if determined" or "if [described condition or event] is detected" may be interpreted, depending on the context, as "once determined," "in response to determination," "once [described condition or event] is detected," or "in response to detection of [described condition or event]."

[0035] Please see Figure 1 , Figure 1This is a flowchart illustrating a mobile terminal flow control data update method according to an embodiment of the present invention. The mobile terminal flow control data update method of this embodiment is applied to a communication unit in a mobile terminal. The mobile terminal also includes memory and non-volatile storage connected to the communication unit. For example, the mobile terminal flow control data update method can be implemented through software programs configured on the communication unit to improve the flow control accuracy of the mobile terminal. It should be noted that in this embodiment, the communication unit can be a communication chip or a communication module including the communication chip; the non-volatile storage is Flash storage. Figure 1 As shown, the method includes the following steps S100-S130.

[0036] S100, Check if the reading conditions are met.

[0037] In this embodiment of the invention, if a full-function shutdown or soft reboot command is received, it indicates that the flow control count in the memory of the communication module or communication chip may be lost, and the reading condition is determined to be met. If the PSM (Power Saving Mode) state is entered, it indicates that the memory will be powered off and data will be lost. However, in order to avoid frequent write operations to non-volatile memory, the flow control count is not written to non-volatile memory at this time. This is because when the mobile terminal enters the PSM state, the mobile terminal application does not have a communication requirement in the following few hours, and the reading condition is determined not to be met.

[0038] S110. If the read condition is met, the flow control count read from the memory is written into the non-volatile storage, wherein the flow control count includes the absolute start time of the time window, the current remaining duration of the time window, and the number of RRC connection requests within the time window.

[0039] In this embodiment of the invention, if the read condition is met, i.e., if a full-function shutdown or soft reboot command is received, the flow control count read from the memory is written into the non-volatile storage. The flow control count includes the absolute start time of the time window, the current remaining duration of the time window, and the number of RRC connection requests within the time window. Specifically, as... Figure 2 and Figure 3 As shown, in Figure 3 In the middle, a soft reboot is performed. Figure 2If, after performing a full-feature shutdown (AT+CFUN=0), the flow control count read from the memory is written to the non-volatile memory, and if a full-feature enable (AT+CFUN=1) is subsequently performed, it indicates that the data written to the non-volatile memory has not been used, and therefore there is no need to read the flow control count from the non-volatile memory. If, after performing a full-feature shutdown, any of the following is performed: a soft reboot, a hardware reboot, or a hardware power-on after a hardware power-off, it indicates that the memory has lost power, and the flow control count in the memory will be lost, requiring the flow control count to be read from the non-volatile memory.

[0040] S120. After startup, the flow control count is read from the non-volatile storage as the current flow control count in the memory.

[0041] In this embodiment of the invention, after the communication unit starts, it reads the flow control count from the non-volatile memory as the current flow control count in the memory. If the number of RRC connection requests within the time window is at its limit, it waits for the time window to end, and after the time window ends, it sets the flow control count to null and writes it back to the non-volatile memory. During the waiting period, each time hardware startup is detected, the remaining duration of the time window is reduced by a preset time, and each time the remaining duration of the time window is reduced by a preset value, the flow control count is written back to the non-volatile memory. It should be noted that, in this embodiment, if... Figure 4 As shown, the preset time is 30 seconds, and the preset value is 60 seconds. Specifically, to prevent hardware power failure or hardware startup from occurring again without performing a "full-function shutdown" or "soft reboot" during this waiting period, the remaining duration of the flow control time window in memory is reduced by 30 seconds each time the hardware startup occurs. To prevent hardware power failure or hardware startup from occurring again without performing a "full-function shutdown" or "soft reboot" during this waiting period, a new flow control count is written to non-volatile memory every time the current remaining duration of the flow control time window in memory decreases by 60 seconds. Understandably, in other embodiments, the preset time and the preset value can be determined according to actual conditions and are not specifically limited here.

[0042] S130. If an attached network is detected after startup, the memory and the flow control count in the non-volatile memory are updated based on the current absolute time, the relative duration since this startup, the total length of the time window, and the flow control count read from the non-volatile memory.

[0043] In this embodiment of the invention, the current absolute time, the relative duration since the start of this operation, and the total length of the time window are obtained, and the flow control count is read from the non-volatile storage; based on the current absolute time and the start absolute time of the time window, it is determined whether a preset condition is met; specifically, it is determined whether the current absolute time is a valid value and whether the start absolute time of the time window is empty. If the current absolute time is a valid value, it indicates that the communication chip or communication module has obtained the current absolute time; if the current absolute time is an invalid value, it indicates that the communication chip or communication module has not obtained the current absolute time, and the preset condition is not met. Figure 5 As shown, the flow control count in the non-volatile memory is deleted; if the absolute start time of the time window is empty, it indicates that the flow control count read from the non-volatile memory does not contain the absolute time, and the preset condition is not met. Figure 6 As shown, the flow control count in the non-volatile storage is deleted. If the current absolute time is a valid value and the start absolute time of the time window is not empty, it indicates that the preset condition is met. Then, the flow control count in the memory and the non-volatile storage is updated according to the known current absolute time, the relative duration since this startup, the total length of the time window, and the flow control count.

[0044] Furthermore, such as Figure 7 As shown, the absolute time of writing to non-volatile memory is calculated based on the absolute start time of the time window, the total length of the time window, and the current remaining duration of the time window. Specifically, the absolute time of writing to non-volatile memory = absolute start time of the time window + (total length of the time window - current remaining duration of the time window). It is then determined whether the relative duration since the current startup is greater than the difference between the current absolute time and the absolute time of writing to non-volatile memory. If the relative duration since the current startup is greater than the difference between the current absolute time and the absolute time of writing to non-volatile memory, it indicates that the communication module or communication chip has not restarted since startup, the flow control count in memory has not been lost, and no update is necessary. Therefore, the flow control count in memory remains unchanged, and the flow control count in non-volatile memory is updated. Specifically, if the time window in non-volatile memory has ended, the flow control count in non-volatile memory is deleted.

[0045] Furthermore, such as Figure 8As shown, the startup time is obtained by calculating the difference between the current absolute time and the relative duration since the current startup, and the end time of the time window is obtained by calculating the sum of the start absolute time of the time window and the total length of the time window. If the end time of the time window is less than the startup time, i.e., startup time = current absolute time - relative duration since the current startup, and end time of the time window = start absolute time of the time window + total length of the time window; if the end time of the time window < startup time, it means that the time window has ended before the current startup, then the flow control count in the non-volatile storage is deleted, and it is determined whether the relative duration since the current startup is less than the current remaining duration of the time window in the non-volatile storage; if the relative duration since the current startup is less than the current remaining duration of the time window in the non-volatile storage, then the number of RRC connection requests within the time window in memory and the start absolute time of the time window are updated. Specifically, the number of RRC connection requests within the time window = number of RRC connection requests within the time window - number of requests in storage; the start absolute time of the time window in memory = startup time.

[0046] Furthermore, such as Figure 9 As shown, the startup time is obtained by calculating the difference between the current absolute time and the relative duration since the current startup, and the end time of the time window is obtained by calculating the sum of the start absolute time of the time window and the total length of the time window. If the startup time is less than the end time of the time window and the end time of the time window is less than the current absolute time, that is, if startup time < end time of time window < current absolute time, it indicates that the flow control time window has ended after the communication chip or communication module has started but before the network attachment is successful. In this case, the flow control count in the non-volatile memory is deleted, and it is determined whether the difference between the current absolute time and the end time of the time window in the non-volatile memory is less than the total length of the time window. If the difference between the current absolute time and the end time of the time window in the non-volatile memory is less than the total length of the time window, the number of RRC connection requests in the time window in the memory is updated to the difference between the number of RRC connection requests in the time window in the memory and the number of RRC connection requests in the time window in the non-volatile memory, and the start absolute time of the time window in the memory is updated to the end time of the time window in the non-volatile memory. That is, the number of RRC connection requests within the time window in memory = the number of RRC connection requests within the time window in memory - the number of RRC connection requests within the time window in non-volatile storage; the absolute start time of the time window in memory = the end time of the time window in non-volatile storage.

[0047] Furthermore, such as Figure 10As shown, if the end time of the time window is greater than the current absolute time, it indicates that the flow control time window has not yet ended after the successful attachment to the network. Therefore, the flow control count in the non-volatile storage remains unchanged. The end time of the time window in memory is calculated based on the relative duration since the start of this operation, the current time, and the time of the previous round of writing data to the non-volatile storage. Specifically, the end time of the time window in memory = the end time of the time window in memory – [(current time - relative duration since the start of this operation) – the time of the previous round of writing data to the non-volatile storage]. The current remaining duration of the time window in memory is updated based on the end time of the time window.

[0048] In summary, once the communication module or chip is attached to the network and knows the current absolute time, the flow control counts in non-volatile storage and memory can be updated accordingly for different scenarios, thereby improving the accuracy of flow control.

[0049] Figure 11 This is a schematic block diagram of a mobile terminal flow control data update device 200 provided in an embodiment of the present invention. Figure 11 As shown, corresponding to the above-described mobile terminal flow control data update method, the present invention also provides a mobile terminal flow control data update apparatus 200. This mobile terminal flow control data update apparatus 200 includes a unit for executing the above-described mobile terminal flow control data update method. Specifically, please refer to... Figure 11 The mobile terminal flow control data update device 200 includes a detection unit 201, a writing unit 202, a reading unit 203, and an update unit 204.

[0050] The detection unit 201 is used to detect whether the read conditions are met; the writing unit 202 is used to write the flow control count read from the memory into the non-volatile storage if the read conditions are met, wherein the flow control count includes the absolute start time of the time window, the current remaining duration of the time window, and the number of RRC connection requests within the time window; the reading unit 203 is used to read the flow control count from the non-volatile storage after startup as the current flow control count in the memory; the updating unit 204 is used to update the flow control count in the memory and the non-volatile storage according to the current absolute time, the relative duration since this startup, the total duration of the time window, and the flow control count read from the non-volatile storage if an attached network is detected after startup.

[0051] In some embodiments, such as this one, the mobile terminal flow control data update device 200 further includes a write detection unit.

[0052] The write detection unit is configured to wait for the time window to end if the number of RRC connection requests within the time window is in a limited state, and then write the flow control count to the non-volatile storage after the time window ends, setting the flow control count to a null value. During the waiting period, each time a hardware startup is detected, the remaining duration of the time window is reduced by a preset time, and the flow control count is written to the non-volatile storage whenever the remaining duration of the time window is reduced by a preset value.

[0053] In some embodiments, such as this one, the update unit 204 includes an acquisition unit, a judgment unit, a deletion unit, and an update unit.

[0054] The acquisition unit is used to acquire the current absolute time, the relative duration since the start of this startup, and the total length of the time window, and read the flow control count from the non-volatile storage; the judgment unit is used to determine whether a preset condition is met based on the current absolute time and the start absolute time of the time window; the deletion unit is used to delete the flow control count in the non-volatile storage if the preset condition is not met; the update unit is used to update the flow control count in the memory and the non-volatile storage based on the current absolute time, the relative duration since the start of this startup, the total length of the time window, and the flow control count if the preset condition is met.

[0055] In some embodiments, such as this one, the update unit includes a first calculation unit and a first update subunit.

[0056] The first calculation unit is used to calculate the absolute time when writing to non-volatile storage based on the absolute start time of the time window, the total length of the time window, and the current remaining duration of the time window; the first update subunit is used to keep the flow control count in memory unchanged and update the flow control count in non-volatile storage if the relative duration since the current startup is greater than the difference between the current absolute time and the absolute time when writing to non-volatile storage.

[0057] In some embodiments, such as this one, the update unit further includes a second calculation unit, a first deletion determination unit, and a second update subunit.

[0058] The second calculation unit is used to calculate the difference between the current absolute time and the relative duration since the start of the current startup to obtain the startup time, and to calculate the sum of the start absolute time of the time window and the total length of the time window to obtain the end time of the time window; the first deletion judgment unit is used to delete the flow control count in the non-volatile storage if the end time of the time window is less than the startup time, and to determine whether the relative duration since the start of the current startup is less than the current remaining duration of the time window in the non-volatile storage; the second update subunit is used to update the number of RRC connection requests within the time window in the memory and the start absolute time of the time window if the relative duration since the start of the current startup is less than the current remaining duration of the time window in the non-volatile storage.

[0059] In some embodiments, such as this one, the update unit further includes a third calculation unit, a second deletion judgment unit, and a third update subunit.

[0060] The third calculation unit is used to calculate the difference between the current absolute time and the relative duration since the start of the current startup to obtain the startup time, and to calculate the sum of the start absolute time of the time window and the total length of the time window to obtain the end time of the time window; the second deletion judgment unit is used to delete the flow control count in the non-volatile storage if the startup time is less than the end time of the time window and the end time of the time window is less than the current absolute time, and to determine whether the difference between the current absolute time and the end time of the time window in the non-volatile storage is less than the total length of the time window; the third update subunit is used to update the number of RRC connection requests in the time window in memory to the difference between the number of RRC connection requests in the time window in memory and the number of RRC connection requests in the time window in the non-volatile storage if the difference between the current absolute time and the end time of the time window in the non-volatile storage is less than the total length of the time window, and to update the start absolute time of the time window in memory to the end time of the time window in the non-volatile storage.

[0061] In some embodiments, such as this one, the update unit further includes a holding unit and a fourth update subunit.

[0062] The holding unit is used to keep the flow control count in the non-volatile storage unchanged if the end time of the time window is greater than the current absolute time; the fourth update subunit is used to calculate the end time of the time window in the memory based on the relative duration since the start of this startup, the current time obtained and the time of the previous round of writing data to the non-volatile storage, and update the current remaining duration of the time window in the memory based on the end time of the time window.

[0063] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the mobile terminal flow control data update device 200 and each unit can be referred to the corresponding description in the foregoing method embodiments. For the sake of convenience and brevity, it will not be repeated here.

[0064] The aforementioned mobile terminal flow control data update device can be implemented as a computer program, which can, for example... Figure 12 It runs on the mobile terminal device shown.

[0065] Please see Figure 12 , Figure 12 This is a schematic block diagram of a mobile terminal device provided in an embodiment of this application. The mobile terminal device 900 is a terminal.

[0066] See Figure 12 The mobile terminal device 900 includes a processor 902, a memory, and an interface 905 connected via a system bus 901. The memory may include a storage medium 903 and internal memory 904.

[0067] The storage medium 903 may store an operating system 9031 and a computer program 9032. When the computer program 9032 is executed, it causes the processor 902 to execute a mobile terminal flow control data update method.

[0068] The processor 902 provides computing and control capabilities to support the operation of the entire mobile terminal device 900.

[0069] The internal memory 904 provides an environment for the operation of the computer program 9032 in the storage medium 903. When the computer program 9032 is executed by the processor 902, the processor 902 can execute a mobile terminal flow control data update method.

[0070] This interface 905 is used for communication with other devices. Those skilled in the art will understand that... Figure 12 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the mobile terminal device 900 to which the present application is applied. The specific mobile terminal device 900 may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0071] The processor 902 is used to run a computer program 9032 stored in a memory to implement the process steps of the above-described method embodiments.

[0072] It should be understood that in the embodiments of this application, the processor 902 may be a central processing unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0073] It will be understood by those skilled in the art that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the wireless communication system to implement the process steps of the embodiments of the above methods.

[0074] Therefore, the present invention also provides a storage medium. This storage medium can be a computer-readable storage medium. The storage medium stores a computer program. When executed by a processor, the computer program causes the processor to perform any embodiment of the mobile terminal flow control data update method described above.

[0075] The storage medium can be any computer-readable storage medium capable of storing program code, such as a USB flash drive, portable hard drive, Flash memory, read-only memory (ROM), magnetic disk, or optical disk.

[0076] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For example, the division of each unit is merely a logical functional division, and there may be other division methods in actual implementation. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.

[0077] The steps in the method of this invention can be adjusted, merged, or reduced in order according to actual needs. The units in the device of this invention can be merged, divided, or reduced according to actual needs. Furthermore, the functional units in the various embodiments of this invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0078] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This wireless communication software product is stored in a storage medium and includes several instructions to cause a mobile terminal device (which may be a personal wireless communication device, a terminal, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention.

[0079] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0080] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Since these modifications and variations fall within the scope of the claims and their equivalents, this invention also intends to include these modifications and variations.

[0081] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for updating flow control data in a mobile terminal, applied to a communication unit in a mobile terminal, wherein the mobile terminal further includes memory and non-volatile storage connected to the communication unit, characterized in that, include: Check if the reading conditions are met; If the read condition is met, the flow control count read from the memory will be written into the non-volatile storage, wherein the flow control count includes the absolute start time of the time window, the current remaining duration of the time window, and the number of RRC connection requests within the time window; After startup, the flow control count is read from the non-volatile memory as the current flow control count in the memory; If an attached network is detected after startup, the memory and the flow control count in the non-volatile memory are updated based on the current absolute time, the relative duration since this startup, the total length of the time window, and the flow control count read from the non-volatile memory.

2. The mobile terminal flow control data update method according to claim 1, characterized in that, After the step of reading the flow control count from the non-volatile storage as the current flow control count in the memory after startup, the method further includes: If the number of RRC connection requests reaches the limit within the time window, wait for the time window to end, and after the time window ends, set the flow control count to null and write it to the non-volatile storage. During the waiting period, every time a hardware startup is detected, reduce the current remaining duration of the time window by a preset time, and write the flow control count to the non-volatile storage every time the current remaining duration of the time window is reduced by a preset value. The preset time is 30s and the preset value is 60s.

3. The mobile terminal flow control data update method according to claim 1, characterized in that, The step of updating the flow control count in the memory and the non-volatile memory based on the acquired current absolute time, the relative duration since this startup, the total length of the time window, and the flow control count read from the non-volatile memory includes: Obtain the current absolute time, the relative duration since this startup, and the total length of the time window, and read the flow control count from the non-volatile memory; Determine whether the preset conditions are met based on the current absolute time and the start absolute time of the time window; If the preset conditions are not met, the flow control count in the non-volatile storage is deleted; If the preset conditions are met, the flow control count in the memory and the non-volatile storage is updated based on the current absolute time, the relative duration since the start of this operation, the total length of the time window, and the flow control count.

4. The mobile terminal flow control data update method according to claim 3, characterized in that, The step of updating the flow control count in the memory and the non-volatile storage based on the current absolute time, the relative duration since this startup, the total length of the time window, and the flow control count includes: The absolute time for writing to non-volatile memory is calculated based on the absolute start time of the time window, the total length of the time window, and the current remaining duration of the time window. If the relative duration since the start of this operation is greater than the difference between the current absolute time and the absolute time when writing to non-volatile storage, then the flow control count in memory remains unchanged, and the flow control count in non-volatile storage is updated.

5. The mobile terminal flow control data update method according to claim 3, characterized in that, The step of updating the flow control count in the memory and the non-volatile storage based on the current absolute time, the relative duration since this startup, the total length of the time window, and the flow control count includes: The start time is obtained by calculating the difference between the current absolute time and the relative duration since the start of this startup, and the end time of the time window is obtained by calculating the sum of the start absolute time of the time window and the total length of the time window. If the end time of the time window is less than the start time, the flow control count in the non-volatile storage is deleted, and it is determined whether the relative duration since the start is less than the current remaining duration of the time window in the non-volatile storage. If the relative duration since the start of this operation is less than the current remaining duration of the time window in the non-volatile storage, then the number of RRC connection requests within the time window in the memory and the absolute start time of the time window are updated.

6. The mobile terminal flow control data update method according to claim 3, characterized in that, The step of updating the flow control count in the memory and the non-volatile storage based on the current absolute time, the relative duration since this startup, the total length of the time window, and the flow control count includes: The start time is obtained by calculating the difference between the current absolute time and the relative duration since the start of this startup, and the end time of the time window is obtained by calculating the sum of the start absolute time of the time window and the total length of the time window. If the start time is less than the end time of the time window and the end time of the time window is less than the current absolute time, then delete the flow control count in the non-volatile storage, and determine whether the difference between the current absolute time and the end time of the time window in the non-volatile storage is less than the total length of the time window. If the difference between the current absolute time and the end time of the time window in the non-volatile storage is less than the total length of the time window, then the number of RRC connection requests within the time window in the memory is updated to the difference between the number of RRC connection requests within the time window in the memory and the number of RRC connection requests within the time window in the non-volatile storage, and the start absolute time of the time window in the memory is updated to the end time of the time window in the non-volatile storage.

7. The mobile terminal flow control data update method according to claim 5, characterized in that, The step of updating the flow control count in the memory and the non-volatile storage based on the current absolute time, the relative duration since this startup, the total length of the time window, and the flow control count includes: If the end time of the time window is greater than the current absolute time, then the flow control count in the non-volatile storage remains unchanged; The end time of the time window in memory is calculated based on the relative duration since the start of this operation, the current time, and the time of the previous round of writing data to non-volatile storage. The remaining duration of the time window in memory is then updated based on the end time of the time window.

8. A mobile terminal flow control data update device, applied to a communication unit in a mobile terminal, wherein the mobile terminal further includes memory and non-volatile storage connected to the communication unit, characterized in that, include: The detection unit is used to detect whether the reading conditions are met; The write unit is configured to write the flow control count read from the memory into the non-volatile storage if the read condition is met, wherein the flow control count includes the absolute start time of the time window, the current remaining duration of the time window, and the number of RRC connection requests within the time window; A readout unit is used to read the flow control count from the non-volatile memory after startup as the current flow control count of the memory; The update unit is used to update the time window if an attached network is detected after startup, based on the current absolute time, the relative duration since startup, and the time window. The total length and the flow control count read from the non-volatile memory are used to update the flow control count in the memory and the non-volatile memory.

9. A mobile terminal device, characterized in that, The mobile terminal device includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that, when executed by a processor, can implement the method as described in any one of claims 1-7.