Network staying method and device, computer device and computer readable storage medium

By initializing the count with a counter, the number of times the device can be registered on the network within a preset period, thus avoiding frequent registration of the vehicle communication device. This solves the problem of operators suspending SIM cards and enables stable network connection for vehicle communication devices.

CN116614801BActive Publication Date: 2025-11-28CHONGQING CHANGAN TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310464667.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-26
Publication Date
2025-11-28
Estimated Expiration
2043-04-26

AI Technical Summary

Technical Problem

Frequent network registration operations by vehicle-mounted communication devices within a short period of time can lead to the suspension of SIM cards by operators, especially when network disconnection occurs due to tunnels or other reasons while the vehicle is in motion, resulting in repeated network registrations.

Method used

A counter is used to initialize the count based on a preset period. It is determined whether the number of times the network is logged in within the preset period is less than the threshold number of times the network is logged in. If it is less than the threshold, the network is switched to the logged state and the count is updated to avoid frequent network logging.

Benefits of technology

This effectively avoids frequent network access for communication devices, reduces the number of SIM card suspensions by operators, and ensures that communication devices maintain a stable connection most of the time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116614801B_ABST
    Figure CN116614801B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a network staying method and device, computer equipment and computer readable storage medium, belong to network communication technical field. The network staying method is applied to a communication device including a counter. The network staying method comprises: obtaining a current network state; in the case that the current network state is an un-staying network state, obtaining a count of the counter; determining whether the number of staying network in a preset period is less than a staying network number threshold based on the count; in the case that the number of staying network is less than the staying network number threshold, switching the current network state to a staying network state, and updating the count of the counter. Since the count of the counter is initialized based on a preset period, whether the number of staying network in a preset period is less than a staying network number threshold is determined based on the count of the counter, and then whether to switch to a staying network state is determined, thereby avoiding frequent staying network of the communication device, and further avoiding the operator from stopping the SIM card used by the communication device.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of network communication, in particular to a network staying method, device, computer equipment and computer readable storage medium. BACKGROUND

[0002] With the rapid development of vehicle industry, vehicle-mounted communication devices are widely used in various types of vehicles. During the driving process of the vehicle, the vehicle-mounted communication device performs network staying operation, accesses the communication network provided by the operator and maintains network connection. Using the vehicle-mounted communication device for communication organically combines the vehicle, the vehicle driver and the driving environment, and improves the safety of the vehicle. Usually, the vehicle-mounted communication device uses the SIM (Subscriber Identity Module) card provided by the operator to perform network staying operation, and the operator will stop the SIM card if the number of network staying operations within one hour exceeds 50 times, and the SIM card that has been stopped cannot stay in the network within one day.

[0003] However, during the test process of the vehicle-mounted communication device, network staying operation needs to be frequently performed, and there is a risk that the operator will stop the SIM used by the vehicle-mounted communication device. In addition, during the actual driving process of the vehicle, after the vehicle-mounted communication device disconnects the network connection, it will repeatedly perform network staying operation to re-access the communication network. The vehicle entering a tunnel and other situations will cause the vehicle-mounted communication device to frequently disconnect the network connection, causing the vehicle-mounted communication device to frequently perform network staying operation in a short period of time, and thus causing the operator to stop the SIM card. SUMMARY

[0004] One of the purposes of the present application is to provide a network staying method to solve the problem that the communication device frequently stays in the network in a short period of time, and thus the operator stops the SIM card. The second purpose is to provide a network staying device. The third purpose is to provide a computer equipment. The fourth purpose is to provide a computer readable storage medium.

[0005] In order to achieve the above purpose, the technical scheme adopted by the present application is as follows:

[0006] In the first aspect, the present application provides a network staying method applied to a communication device comprising a counter, the network staying method comprising:

[0007] obtaining a current network state, wherein the current network state comprises a network staying state and a non-network staying state;

[0008] in the case that the current network state is the non-network staying state, obtaining the count of the counter, wherein the count of the counter is initialized based on a preset period;

[0009] based on the count, determining whether the number of network staying operations within the preset period is less than a network staying operation threshold.

[0010] In a case where the number of camping times is less than the camping time threshold, the current network state is switched to the camping state, and the count of the counter is updated.

[0011] With reference to the first aspect, in a first possible implementation manner, the camping method further includes:

[0012] In a case where the number of camping times is equal to the camping time threshold, the step of acquiring the current network state is performed after an interval of a first time length.

[0013] With reference to the first aspect, in a second possible implementation manner, the camping method further includes:

[0014] In a case where the number of camping times is equal to the camping time threshold, a target time is determined, where the target time is a time at which the count of the counter is initialized;

[0015] Based on the current time and the target time, the current network state is switched to the camping state, and the count of the counter is updated.

[0016] With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner, after the target time is determined based on the count time length and the time length of the preset period, the camping method further includes:

[0017] Based on the target time, a prompt information is generated, where the prompt information is used to prompt a time at which the current network state is switched to the camping state.

[0018] With reference to the first aspect, in a fourth possible implementation manner, the camping method further includes:

[0019] In a case where the current network state is the camping state, the step of acquiring the current network state is performed after an interval of a second time length.

[0020] With reference to the first aspect, in a fifth possible implementation manner, in a case where the number of camping times is less than the camping time threshold, the current network state is switched to the camping state, and the count of the counter is updated, including:

[0021] In a case where the number of camping times is less than the camping time threshold, a camping request signal is sent to the communication network of the operator;

[0022] In response to the camping completion signal, the count of the counter is controlled to be incremented by one.

[0023] With reference to the first aspect, in a sixth possible implementation manner, before the current network state is acquired, the camping method further includes:

[0024] Based on the maximum number of camping times of the operator, a camping time threshold in a preset period is determined.

[0025] In a second aspect, the present application provides a network staying device applied to a communication device comprising a counter, the network staying device comprising:

[0026] a network state obtaining module configured to obtain a current network state, wherein the current network state comprises a network staying state and a network non-staying state;

[0027] a counter obtaining module configured to obtain a counter value of the counter when the current network state is the network non-staying state, wherein the counter value of the counter is initialized based on a preset period;

[0028] a network staying frequency determining module configured to determine whether a network staying frequency in the preset period is less than a network staying frequency threshold based on the counter value;

[0029] a network state switching module configured to switch the current network state to the network staying state and update the counter value when the network staying frequency is less than the network staying frequency threshold.

[0030] In a third aspect, the present application provides a computer device, which comprises a memory and a processor, the memory stores a computer program, and the computer program is executed by the processor to implement the network staying method of the first aspect.

[0031] In a fourth aspect, the present application provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the network staying method of the first aspect.

[0032] The present application has the following beneficial effects:

[0033] Since the counter value is initialized based on the preset period, the network staying frequency in the preset period is determined based on the counter value, and then it is determined whether to switch to the network staying state, thereby avoiding the frequent network staying of the communication device, and further avoiding the SIM card used by the communication device from being stopped by the operator. BRIEF DESCRIPTION OF DRAWINGS

[0034] The accompanying drawings are included to provide a further understanding of the embodiments of the present application, constitute a part of the specification and are used to explain the embodiments of the present application together with the specific embodiments below, but do not constitute a limitation to the embodiments of the present application. In the drawings:

[0035] Figure 1 A first flow chart of the network staying method provided by the embodiments of the present application is shown;

[0036] Figure 2 A second flow chart of the network staying method provided by the embodiments of the present application is shown;

[0037] Figure 3 A structural schematic diagram of the communication device provided by the embodiments of the present application is shown;

[0038] Figure 4 A structure diagram of the network resident device provided by the embodiment of the present application is shown. DETAILED DESCRIPTION

[0039] The specific embodiments of the present application will be described in detail hereinafter with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely intended to explain and illustrate the present application, and are not intended to limit the present application.

[0040] The components of the present application embodiments generally described and illustrated herein can be arranged and designed in a wide variety of different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the application, but merely represents selected embodiments of the application. All other embodiments obtained from the embodiments of the present application by one of ordinary skill in the art without creative work are within the scope of the present application.

[0041] Hereinafter, the terms "include", "have", and their conjugates used in various embodiments of the present application are intended to denote a certain characteristic, number, step, operation, element, component or a combination thereof, and should not be construed as excluding the existence or addition of one or more other characteristics, numbers, steps, operations, elements, components or combinations thereof.

[0042] In addition, the terms "first", "second", "third", and the like are used only to distinguish descriptions, and should not be understood as indicating or implying relative importance.

[0043] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the present application belong. The terms (such as those defined in commonly used dictionaries) will be interpreted as having a meaning that is the same as the contextual meaning in the relevant technical field and will not be interpreted in an idealized or overly formal sense, unless clearly defined in various embodiments of the present application.

[0044] Embodiment 1

[0045] Please refer to Figure 1 , Figure 1 A first flowchart of the network resident method provided by the embodiment of the present application is shown. Figure 1 The network resident method in the embodiment of the present application is applied to a communication device including a counter, Figure 1 The network resident method in the embodiment of the present application includes:

[0046] S110, acquire a current network state.

[0047] It should be understood that the type of the communication device is according to actual needs, which is not limited herein. For ease of understanding, in the embodiments of the present application, the communication device is a vehicle-mounted communication device arranged in a vehicle. During the driving of the vehicle, the vehicle entering a tunnel and the like will cause the vehicle-mounted communication device to frequently disconnect the network connection. In order to ensure that the vehicle can maintain a communication state, the vehicle-mounted communication device will repeatedly perform a network camping operation to re-access the operator communication network. It should be understood that the network camping action refers to the vehicle-mounted communication device accessing the communication network of the operator through the LTE (Long Term Evolution) network and maintaining the state of accessing the communication network.

[0048] After the vehicle is powered on, the vehicle-mounted communication device acquires a current network state in real time, wherein the current network state includes a network camping state and a non-network camping state. According to the current network state, it is determined whether the network camping action needs to be performed to access the communication network. In the case that the current network state is the network camping state, it is determined that the vehicle-mounted communication device has accessed the communication network and maintains the state of accessing the communication network. The vehicle-mounted communication device in the network camping state can perform communication actions such as voice calls with other vehicles and devices of the road in the communication network, thereby ensuring the driving safety of the vehicle.

[0049] S120, in the case that the current network state is the non-network camping state, acquiring a count of a counter.

[0050] In the case that the current network state is the non-network camping state, it is determined that the vehicle-mounted communication device has not accessed the communication network or the vehicle-mounted communication device is disconnected from the communication network of the operator, and the network camping action needs to be performed to access the communication network of the operator. However, the communication device frequently performs the network camping in a preset period, which will cause the operator to stop the SIM card used by the communication device.

[0051] In the embodiments, the communication device includes a counter, and the count of the counter is initialized based on a preset period. It should be understood that the preset period is set according to the network camping limit configured by the operator for the SIM card. For ease of understanding, in the embodiments of the present application, the network camping limit condition configured by the operator for the SIM card is that the number of network campings in 1 hour exceeds 50 times, and the SIM card is stopped. According to the network camping limit condition, it is determined that the preset period should be greater than or equal to 1 hour. For ease of understanding, in the embodiments of the present application, the preset period for initializing the count of the counter is 1 hour. The counter is used to record the number of network campings of the communication device per hour, and the counter is initialized once per hour. In the case that the current network state is the non-network camping state, the count of the counter is acquired to determine whether the SIM card currently used by the communication device meets the condition of the network camping limit.

[0052] S130, determine whether the number of camping-in times in the preset period is less than the camping-in time threshold based on the count.

[0053] Based on the count of the counter, determine the number of camping-in times in the preset period, wherein the number of camping-in times refers to the number of times that the communication device accesses the communication network of the operator and remains in the state of accessing the communication network. Specifically, the count threshold of the counter can be set to a value equal to the camping-in time threshold. In the case where the count of the counter is equal to the count threshold, the counter directly feeds back that the number of camping-in times in the preset period is equal to the camping-in time threshold. In the case where the count of the counter is less than the count threshold, the counter directly feeds back that the number of camping-in times in the preset period is less than the camping-in time threshold.

[0054] In the case where the number of camping-in times in the preset period is less than the camping-in time threshold, it is determined that the SIM card used by the communication device does not meet the camping-in restriction condition. The communication device continues to perform the camping-in action and will not cause the operator to perform the card suspension processing on the SIM card used by the communication device.

[0055] In the case where the number of camping-in times in the preset period is equal to the camping-in time threshold, it is determined that the SIM card used by the communication device meets the camping-in restriction condition. The communication device continues to perform the camping-in action and will cause the operator to perform the card suspension processing on the SIM card used by the communication device.

[0056] In the embodiments of the present application, before obtaining the current network state, the method further comprises:

[0057] Based on the maximum camping-in times of the operator, determine the camping-in time threshold in the preset period.

[0058] Since different operators have different camping-in restrictions on the SIM card, the camping-in time threshold in the preset period needs to be determined based on the maximum camping-in times of the SIM card within a certain period of time configured by the operator. In the embodiments of the present application, the camping-in restriction condition configured by the operator is that the number of camping-in times within 1 hour exceeds 50 times. According to the camping-in restriction condition, it is determined that the maximum camping-in times of the operator is 50 times. Based on the maximum camping-in times of the operator, the camping-in time threshold in the preset period is determined to be a value less than 50.

[0059] It needs to be understood that the counting type of the counter can be a minus one counting type or a plus one counting type according to actual requirements, which is not limited herein. In the case that the counter is the minus one counting type, the counter initializes the count to 50 every hour. When the count of the counter is zero, it is determined that the number of camping times in the preset period is equal to the camping time threshold. When the count of the counter is not zero, it is determined that the number of camping times in the preset period is less than the camping time threshold. In the case that the counter is the plus one counting type, the counter initializes the count to 0 every hour. When the count of the counter is 50, it is determined that the number of camping times in the preset period is equal to the camping time threshold. When the count of the counter is not 50, it is determined that the number of camping times in the preset period is less than the camping time threshold.

[0060] S140, in the case that the number of camping times is less than the camping time threshold, switching the current network state to the camping state and updating the count of the counter.

[0061] In the case that the number of camping times is less than the camping time threshold, the communication device continues to perform the camping action, which does not cause the operator to stop the SIM card used by the communication device. The communication device performs the camping action, accesses the communication network of the operator and remains in the state of accessing the communication network, and switches the current network state from the non-camping state to the camping state. After the current network state is switched to the camping state, the count of the counter is updated, so that the count of the counter can reflect whether the number of camping times of the communication device in the preset period is less than the camping time threshold.

[0062] Since the count of the counter is initialized based on the preset period, whether the number of camping times in the preset period is less than the camping time threshold is determined based on the count of the counter, and then whether to switch to the camping state is determined, which avoids the communication device from frequently camping, and further avoids the operator from stopping the SIM card used by the communication device.

[0063] Please refer to Figure 2 , Figure 2 A second flowchart of the camping method provided by the embodiment of the application is shown.

[0064] In the embodiment of the application, the camping method further comprises:

[0065] S150, in the case that the number of camping times is equal to the camping time threshold, intervaling a first time duration and performing the step of acquiring the current network state.

[0066] In the case that the number of camping times is less than the camping time threshold, the communication device continues to perform the camping action, which will cause the operator to stop the SIM card used by the communication device. The counter is initialized for counting, and the step of acquiring the current network state is performed after intervaling a first time duration.

[0067] If the counter has not been initialized after the first time length, the step of obtaining the current network state is continued. If the counter has been initialized after the first time length, the current network state is switched to the camped state. On the basis of avoiding the carrier from stopping the SIM card used by the communication device, the communication device is in the camped state most of the time.

[0068] In the embodiments of the present application, the camping method further comprises:

[0069] In the case that the camping times equal the camping times threshold, a target time is determined, wherein the target time is a time at which the counter is initialized to zero;

[0070] Based on the current time and the target time, the current network state is switched to the camped state, and the count of the counter is updated.

[0071] In the case that the camping times equal the camping times threshold, a target time is determined. For ease of understanding, in the embodiments of the present application, the counter is initialized every hour, and the target time is every whole hour, such as 12:00 and 1:00. Based on the current time and the target time, a waiting time length for waiting for the counter to be initialized is determined. Specifically, if the current time is 12:30 and the target time is 1:00, the waiting time length is determined to be 30 minutes. The communication device switches the current network state to the camped state after the waiting time length, and updates the count of the counter.

[0072] In the embodiments of the present application, based on the counting time length and the time length of the preset period, after the target time is determined, the method further comprises:

[0073] Based on the target time, a prompt information is generated, wherein the prompt information is used to prompt the time at which the current network state is switched to the camped state.

[0074] In the embodiments of the present application, in the case that the current network state is the uncamped state and the camping times equal the camping times threshold, the communication device switches the current network state from the uncamped state to the camped state after the target time. The communication device is disconnected from the carrier's communication network before the target time and cannot communicate. Based on the target time, a prompt information is generated. The prompt information is used to prompt the time at which the current network state is switched to the camped state, thereby prompting the user of the time at which the communication device can be used to communicate.

[0075] In the embodiments of the present application, the camping method further comprises:

[0076] In the case that the current network state is the camped state, the step of obtaining the current network state is executed after a second time length.

[0077] Due to the vehicle entering a tunnel or the like, the communication device will be disconnected from the communication network of the operator, and will be switched from the network-attached state to the network-unattached state. In the case where the current network state is the network-attached state, the communication device executes the step of acquiring the current state at an interval of a second time length, so that the communication device can be switched from the network-unattached state to the network-attached state in a short time after being switched from the network-attached state to the network-unattached state, and the communication device is in the network-attached state most of the time.

[0078] In the embodiment of the application, in the case where the network-attached times is less than the network-attached times threshold, the current network state is switched to the network-attached state, and the count of the counter is updated, comprising:

[0079] In the case where the network-attached times is less than the network-attached times threshold, a network-attached request signal is sent to the communication network of the operator;

[0080] In response to the network-attached completion signal, the count of the counter is controlled to be incremented by one.

[0081] Please refer to Figure 3 , Figure 3 A structure schematic diagram of the communication device provided by the embodiment of the application is shown.

[0082] In the embodiment of the application, the communication device 200 comprises a scheduler 210, a counter 220 and a network-attached sub-device 230. The scheduler 210 is used to acquire the current network state and acquire the count of the counter 220. In the case where the network-attached times is less than the network-attached times threshold, the scheduler 210 is further used to control the network-attached sub-device 230 to perform the network-attached action. Specifically, the network-attached sub-device 230 sends a network-attached request signal to the communication network of the operator. The operator authorizes the communication device 200, so that the communication device 200 accesses to the communication network of the operator. After the communication device 200 is switched to the network-attached state, the network-attached sub-device 230 acquires a network-attached completion signal. In response to the network-attached completion signal, the network-attached sub-device 230 controls the count of the counter 220 to be incremented by one. The counter 220 writes and stores the count, so as to avoid the count loss due to the power-off of the communication device 200. In the embodiment of the application, the communication device 200 is switched from the network-unattached state to the network-attached state, and the count of the counter 220 is controlled to be incremented by one, so that the count of the counter 220 is equal to the network-attached times in a preset period, and the network-attached times of the communication device 200 in the preset period is quickly determined by using the count of the counter 220.

[0083] The application provides a network staying method applied to a communication device including a counter, the network staying method comprising: obtaining a current network state; in a case where the current network state is an un-staying network state, obtaining a counter count; determining whether a network staying number in a preset period is less than a network staying number threshold based on the counter count; in a case where the network staying number is less than the network staying number threshold, switching the current network state to a staying network state and updating the counter count. Since the counter count is initialized based on the preset period, whether the network staying number in the preset period is less than the network staying number threshold is determined based on the counter count, and then whether to switch to the staying network state is determined, thereby avoiding frequent network staying of the communication device and avoiding a carrier from stopping a SIM card used by the communication device.

[0084] Embodiment 2

[0085] Please refer to Figure 4 , Figure 4 A structure schematic diagram of a network staying device provided by an embodiment of the application is shown. Figure 4 The network staying device 300 in the communication device, Figure 4 The network staying device 300 in the communication device comprises:

[0086] A network state obtaining module 310 is configured to obtain a current network state, wherein the current network state comprises a staying network state and an un-staying network state;

[0087] A counter obtaining module 320 is configured to obtain a counter count in a case where the current network state is the un-staying network state, wherein the counter count is initialized based on a preset period;

[0088] A network staying number determining module 330 is configured to determine whether a network staying number in a preset period is less than a network staying number threshold based on the counter count;

[0089] A network state switching module 340 is configured to switch the current network state to the staying network state and update the counter count in a case where the network staying number is less than the network staying number threshold.

[0090] In an embodiment of the application, the network staying device 300 further comprises:

[0091] A first time length executing module is configured to execute the step of obtaining the current network state at an interval of a first time length in a case where the network staying number is equal to the network staying number threshold.

[0092] In an embodiment of the application, the network staying device 300 further comprises:

[0093] A target time determining module is configured to determine a target time in a case where the network staying number is equal to the network staying number threshold, wherein the target time is a time when the counter count is initialized;

[0094] The state switching module is configured to switch the current network state to the camped state and update the count of the counter based on the current time and the target time.

[0095] In an embodiment of the present application, the camped device 300 further comprises:

[0096] The prompt module is configured to generate prompt information based on the target time, wherein the prompt information is used to prompt the time when the current network state is switched to the camped state.

[0097] In an embodiment of the present application, the camped device 300 further comprises:

[0098] The second duration execution module is configured to execute the step of obtaining the current network state at intervals of a second duration in the case that the current network state is the camped state.

[0099] In an embodiment of the present application, the network state switching module 340 comprises:

[0100] The request signal sending submodule is configured to send a camped request signal to the operator's communication network in the case that the camped number of times is less than the camped number of times threshold.

[0101] The completion signal response submodule is configured to control the count of the counter to be incremented by one in response to the camped completion signal.

[0102] In an embodiment of the present application, the camped device 300 further comprises:

[0103] The number of times threshold determination module is configured to determine the camped number of times threshold within a preset period based on the maximum camped number of times of the operator.

[0104] The camped device 300 is configured to execute the corresponding steps in the camped method described above, and the specific implementation of each function is not described one by one here. In addition, the optional examples in Embodiment 1 are also applicable to the camped device 300 of Embodiment 2.

[0105] The present application also provides a computer device, which comprises a memory and a processor, the memory stores a computer program, and the computer program is executed by the processor to implement the camped method of Embodiment 1.

[0106] The network state obtaining module 310, the count obtaining module 320, the camped number of times determination module 330, and the network state switching module 340 in the present embodiment are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to implement the corresponding functions.

[0107] The processor comprises a core, and the core retrieves corresponding program units in the memory. The core can be one or more, and the problem of the SIM card being stopped by the operator due to the communication device frequently camping on the network in a short time can be solved by adjusting the core parameters.

[0108] The memory can comprise non-permanent memory in a computer readable medium, random access memory (RAM) and / or non-volatile memory such as read-only memory (ROM) or flash memory (flash RAM), and the memory comprises at least one memory chip.

[0109] The embodiment of the present application further provides a computer readable storage medium, and the computer readable storage medium stores a computer program. When the computer program is executed by the processor, the method for camping on the network in the embodiment 1 is implemented.

[0110] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can be in the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can be in the form of a computer program product implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.

[0111] The present application is described with reference to flowcharts and / or block diagrams of the method, device (system), and computer program product according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of the flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing apparatus to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing apparatus produce a device implemented in the flowcharts and / or block diagrams. Figure 1 The device for implementing the functions specified in one or more flows and / or blocks. Figure 1 The device for implementing the functions specified in one or more flows and / or blocks.

[0112] These computer program instructions can also be stored in a computer readable storage medium capable of directing the computer or other programmable data processing apparatus to work in a specific manner, so that the instructions stored in the computer readable storage medium produce a manufactured product comprising instruction devices, which implement the flows and / or blocks in the flowcharts and / or block diagrams. Figure 1 The device for implementing the functions specified in one or more flows and / or blocks. Figure 1 The device for implementing the functions specified in one or more flows and / or blocks.

[0113] These computer program instructions can also be loaded into a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 Figure 1

[0114] In one typical configuration, the computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0115] The memory can include non-persistent memory and / or volatile memory, such as random access memory (RAM) about which the processor can execute instructions. The memory can also include non-volatile memory, such as read only memory (ROM), electrically programmable read only memory (EPROM), electrically erasable programmable read only memory (EEPROM), flash memory, or other memory technologies, CD-ROM, digital versatile disc (DVD), or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transitory medium that can be used to store information for access by a computing device. In no case does the medium include a transitory signal.

[0116] Computer readable storage media can include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Examples of computer readable storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transitory medium that can be used to store information for access by a computing device. According to the definitions provided herein, computer readable media does not include transitory computer readable media, such as modulated data signals and carrier waves.

[0117] It is further noted that the terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the existence of additional identical elements in the process, method, article, or apparatus that comprises the element.

[0118] ​​The above merely provides an example of the present application, and is not intended to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall fall into the scope of claims of the present application.

Claims

1. A method for camping on a network, applied to a communication device comprising a counter, characterized in that, The method comprises: acquiring a current network state, wherein the current network state comprises a network camped state and a network uncamped state; in a case where the current network state is the network uncamped state, acquiring a count of a counter, wherein the count of the counter is initialized based on a preset period; based on the count, determining whether a network camping frequency in the preset period is less than a network camping frequency threshold value; in a case where the network camping frequency is less than the network camping frequency threshold value, switching the current network state to the network camped state and updating the count of the counter; in a case where the network camping frequency is equal to the network camping frequency threshold value, executing the step of acquiring the current network state after a first time interval.

2. The method of claim 1, wherein, The method further comprises: in a case where the network camping frequency is equal to the network camping frequency threshold value, determining a target time, wherein the target time is a time when the count of the counter is initialized; based on a current time and the target time, switching the current network state to the network camped state and updating the count of the counter.

3. The method of claim 2, wherein, The method further comprises: based on the target time, generating a prompt information, wherein the prompt information is used to prompt a time when the current network state is switched to the network camped state.

4. The method of claim 1, wherein, The method further comprises: in a case where the current network state is the network camped state, executing the step of acquiring the current network state after a second time interval.

5. The method of claim 1, wherein, The switching, in a case where the network camping frequency is less than the network camping frequency threshold value, the current network state to the network camped state and updating the count of the counter, comprises: in a case where the network camping frequency is less than the network camping frequency threshold value, sending a network camping request signal to a communication network of an operator; in response to a network camping completion signal, controlling the count of the counter to be incremented by one.

6. The method of claim 1, wherein, Before the acquiring, the method further comprises: based on a maximum network camping frequency of an operator, determining a network camping frequency threshold value in a preset period.

7. A network-connected device, applied to a communication device including a counter, characterized in that, The apparatus comprises: a network state acquiring module configured to acquire a current network state, wherein the current network state comprises a network camped state and a network uncamped state; a count acquiring module configured to, in a case where the current network state is the network uncamped state, acquire a count of a counter, wherein the count of the counter is initialized based on a preset period; a network camping frequency determining module configured to, based on the count, determine whether a network camping frequency in the preset period is less than a network camping frequency threshold value; a network state switching module configured to, in a case where the network camping frequency is less than the network camping frequency threshold value, switch the current network state to the network camped state and update the count of the counter; a first time interval executing module configured to, in a case where the network camping frequency is equal to the network camping frequency threshold value, execute the step of acquiring the current network state after a first time interval.

8. A computer device, comprising: The computer device comprises a memory and a processor, the memory stores a computer program, and the computer program, when executed on the processor, implements the network camping method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the network staying method in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Network registration control method and device and terminal equipment

    CN112351487A