CN116095791A - Method for searching network and terminal equipment - Google Patents

Method for searching network and terminal equipment Download PDF

Info

Publication number
CN116095791A
CN116095791A CN202210579260.3A CN202210579260A CN116095791A CN 116095791 A CN116095791 A CN 116095791A CN 202210579260 A CN202210579260 A CN 202210579260A CN 116095791 A CN116095791 A CN 116095791A
Authority
CN
China
Prior art keywords
network
time
flight
take
terminal device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210579260.3A
Other languages
Chinese (zh)
Other versions
CN116095791B (en
Inventor
肖名鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210579260.3A priority Critical patent/CN116095791B/en
Publication of CN116095791A publication Critical patent/CN116095791A/en
Application granted granted Critical
Publication of CN116095791B publication Critical patent/CN116095791B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a method and terminal equipment for searching a network, wherein the method comprises the following steps: the terminal equipment acquires take-off time and landing time; the terminal equipment determines the flight time based on the take-off time and the landing time; starting from a take-off time point, the terminal equipment does not search for a mobile communication network in the flight duration; starting from the take-off time point, and searching the mobile communication network by the terminal equipment after the flight duration is reached. The method can improve the efficiency of registering the network.

Description

Method for searching network and terminal equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and a terminal device for searching a network.
Background
When a user takes an airplane, the mobile phone cannot detect a network signal in a high altitude state. After the airplane lands, the mobile phone can detect the network signal, however, the user frequently feeds back that the mobile phone still cannot be connected with the network after the airplane lands, or the network connection time is long, so that the user experience is seriously affected.
Therefore, how to connect to the network quickly after the aircraft lands becomes a problem to be solved.
Disclosure of Invention
The application provides a network searching method and terminal equipment, which can improve the efficiency of network registration.
In a first aspect, a method for searching a network is provided, comprising: the terminal equipment acquires take-off time and landing time; the terminal equipment determines the flight time based on the take-off time and the landing time; starting from a take-off time point, the terminal equipment does not search for a mobile communication network in the flight duration; starting from the take-off time point, and searching the mobile communication network by the terminal equipment after the flight duration is reached.
The take-off time may also be referred to as an aircraft take-off time, and the landing time may also be referred to as an aircraft landing time, which is not limited in this embodiment of the present application.
The time of flight may be the landing time minus the take-off time.
The takeoff time point is understood to be the time point of the aircraft takeoff. The take-off time point is reached, the aircraft takes off, the flight duration is reached, and the aircraft lands.
After the aircraft takes off, the terminal equipment does not search the mobile communication network in the flight time, and after the flight time is up, namely the aircraft lands, the terminal equipment can search the mobile communication network.
According to the network searching method, the terminal equipment does not search the mobile communication network in the flying time at the beginning of the take-off time, so that the terminal equipment can be prevented from searching a weak network signal in the high air to register the network, a network injection suppressing mechanism is triggered, and the network searching power consumption can be reduced; and after the time of departure reaches the flight time, the terminal equipment searches the mobile communication network, thereby being beneficial to quickly registering the network and improving the efficiency of registering the network.
With reference to the first aspect, in some implementations of the first aspect, after reaching the flight duration from the takeoff time point, the terminal device searches for the mobile communication network, including: starting from a take-off time point, after the flight duration is reached, if the terminal equipment meets at least one of the following conditions, searching a mobile communication network by the terminal equipment; the network state is a connection state; the location indicated by the geographic location is the destination of the flight.
After the flight duration arrives, the terminal device can also determine whether the aircraft falls to the ground according to the network state and the geographic position, and when the aircraft falls to the ground, the terminal device can search the mobile communication network.
The network searching method can help determine whether the flight falls to the ground by utilizing the network state and the geographic position, and is favorable for more accurately determining the landing of the aircraft.
With reference to the first aspect, in some implementations of the first aspect, after reaching the flight duration from the takeoff time point, the terminal device searches for the mobile communication network, including: and starting from the take-off time point, after the flight time is up, the terminal equipment sets the network searching period as a first network searching period, and searches the mobile communication network according to the first network searching period.
The first network searching period may be referred to as a default network searching period, which is not limited in the embodiment of the present application. The first network searching period may be an existing network searching period, and the terminal device may search the mobile communication network according to the first network searching period after the aircraft lands. The first network searching period may also be a preset duration, which is not limited in the embodiment of the present application.
With reference to the first aspect, in certain implementation manners of the first aspect, starting from a departure time point, during a time of flight, the terminal device does not search for the mobile communication network, including: and starting from the take-off time point, in the flight time, the terminal equipment sets a second network searching period according to the flight time, and does not search the mobile communication network in a period corresponding to the second network searching period.
The length of flight may also be referred to as the length of flight of the aircraft, which is not limited in this embodiment.
The second network searching period may be a flight duration, and the terminal device may not search for the mobile communication network in the flight duration.
According to the network searching method, the terminal equipment does not search the mobile communication network in the flight time, so that the terminal equipment can be prevented from searching a weak network signal in the high air to register the network, a network injection inhibiting mechanism is triggered, and the network searching power consumption can be reduced.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes: before a take-off time point, the terminal equipment searches a mobile communication network according to a first network searching period; and starting from the take-off time point, in the flight time, the terminal equipment sets the first network searching period as a second network searching period, and the time of the second network searching period is longer than that of the first network searching period.
Before the aircraft takes off, the terminal equipment can search the mobile communication network according to the first network searching period, the take-off time point arrives, the terminal equipment sets the first network searching period as a second network searching period, in the flight time, the mobile communication network is not searched, the duration of the second network searching period is longer than that of the first network searching period, namely the aircraft takes off, the terminal equipment searches the network with a longer network searching period, the terminal equipment can be prevented from searching a weak network signal in the high air to register the network, the network searching inhibition mechanism is triggered, and the network searching power consumption can be reduced.
With reference to the first aspect, in certain implementations of the first aspect, the method further includes: if the terminal device meets at least one of the following conditions, the terminal device determines the current time point as a take-off time point: the network state is the disconnected state; the position indicated by the geographic position is the departure place of the flight; the acceleration is greater than or equal to a first threshold and the velocity is greater than or equal to a second threshold.
The terminal device may determine a departure time point according to the network state, the geographical location, the acceleration and the speed, and when the aircraft departs, the terminal device may not search for the mobile communication network.
The network searching method can help determine the take-off time point of the airplane by utilizing the network state, the geographic position, the acceleration and the speed, and is beneficial to more accurately determining the take-off time point of the airplane.
With reference to the first aspect, in some implementations of the first aspect, the acquiring, by the terminal device, the take-off time and the landing time includes: and the terminal equipment acquires departure time and landing time from the flight application program and/or the short message application program.
In a second aspect, there is provided a terminal device comprising: an acquisition module and a processing module. The system comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring take-off time and landing time; the processing module is used for determining the flight duration based on the take-off time and the landing time; starting from a take-off time point, not searching for a mobile communication network in the flight duration; and searching the mobile communication network after the flight time is reached from the take-off time point.
With reference to the second aspect, in certain implementations of the second aspect, the processing module is further configured to: starting from a take-off time point, searching a mobile communication network if at least one of the following conditions is met after the flight duration is reached; the network state is a connection state; the location indicated by the geographic location is the destination of the flight.
With reference to the second aspect, in certain implementations of the second aspect, the processing module is further configured to: and after the flight time is up from the take-off time point, setting the network searching period as a first network searching period, and searching the mobile communication network according to the first network searching period.
With reference to the second aspect, in certain implementations of the second aspect, the processing module is further configured to: and setting a second network searching period according to the flight time in the flight time from the take-off time point, and not searching the mobile communication network in a period corresponding to the second network searching period.
With reference to the second aspect, in certain implementations of the second aspect, the processing module is further configured to: searching for a mobile communication network according to a first network searching period before a take-off time point; and starting from the take-off time point, setting the first network searching period as a second network searching period within the flight time, wherein the time of the second network searching period is longer than that of the first network searching period.
With reference to the second aspect, in certain implementations of the second aspect, the processing module is further configured to: determining the current point in time as the take-off point in time if at least one of the following conditions is met: the network state is the disconnected state; the position indicated by the geographic position is the departure place of the flight; the acceleration is greater than or equal to a first threshold and the velocity is greater than or equal to a second threshold.
With reference to the second aspect, in certain implementations of the second aspect, the acquisition module is further configured to: and acquiring departure time and landing time from the flight application program and/or the short message application program.
In a third aspect, the present application provides a terminal device comprising a processor coupled to a memory, operable to execute instructions in the memory to implement a method according to any one of the possible implementations of the first aspect. Optionally, the terminal device further comprises a memory. Optionally, the terminal device further comprises a communication interface, and the processor is coupled to the communication interface.
In a fourth aspect, the present application provides a processor comprising: input circuit, output circuit and processing circuit. The processing circuitry is configured to receive signals via the input circuitry and to transmit signals via the output circuitry such that the processor performs the method of any one of the possible implementations of the first aspect described above.
In a specific implementation process, the processor may be a chip, the input circuit may be an input pin, the output circuit may be an output pin, and the processing circuit may be a transistor, a gate circuit, a trigger, various logic circuits, and the like. The input signal received by the input circuit may be received and input by, for example and without limitation, a receiver, the output signal may be output by, for example and without limitation, a transmitter and transmitted by a transmitter, and the input circuit and the output circuit may be the same circuit, which functions as the input circuit and the output circuit, respectively, at different times. The specific implementation of the processor and various circuits is not limited in this application.
In a fifth aspect, the present application provides a processing device comprising a processor and a memory. The processor is configured to read instructions stored in the memory and to receive signals via the receiver and to transmit signals via the transmitter to perform the method of any one of the possible implementations of the first aspect.
Optionally, the processor is one or more and the memory is one or more.
Alternatively, the memory may be integrated with the processor or the memory may be separate from the processor.
In a specific implementation process, the memory may be a non-transient (non-transitory) memory, for example, a Read Only Memory (ROM), which may be integrated on the same chip as the processor, or may be separately disposed on different chips, where the type of the memory and the manner of disposing the memory and the processor are not limited in this application.
It should be appreciated that the related data interaction process, for example, transmitting the indication information, may be a process of outputting the indication information from the processor, and the receiving the capability information may be a process of receiving the input capability information by the processor. Specifically, the data output by the processing may be output to the transmitter, and the input data received by the processor may be from the receiver. Wherein the transmitter and receiver may be collectively referred to as a transceiver.
The processing means in the fifth aspect may be a chip, and the processor may be implemented by hardware or by software, and when implemented by hardware, the processor may be a logic circuit, an integrated circuit, or the like; when implemented in software, the processor may be a general-purpose processor, implemented by reading software code stored in a memory, which may be integrated in the processor, or may reside outside the processor, and exist separately.
In a sixth aspect, the present application provides a computer readable storage medium storing a computer program (which may also be referred to as code, or instructions) which, when run on a computer, causes the computer to perform the method of any one of the possible implementations of the first aspect.
In a seventh aspect, the present application provides a computer program product comprising: a computer program (which may also be referred to as code, or instructions) which, when executed, causes a computer to perform the method of any one of the possible implementations of the first aspect.
Drawings
Fig. 1 is a schematic diagram of an aircraft flight scenario provided in an embodiment of the present application;
Fig. 2 is a schematic structural diagram of a terminal device provided in an embodiment of the present application;
fig. 3 is a software structural block diagram of a terminal device provided in an embodiment of the present application;
FIG. 4 is a schematic flow chart of a method of searching a network provided by an embodiment of the present application;
fig. 5 is a schematic diagram of an aircraft takeoff detection method according to an embodiment of the present application;
FIG. 6 is a schematic flow chart diagram of another method of searching a network provided by an embodiment of the present application;
fig. 7 is a schematic block diagram of a terminal device provided in an embodiment of the present application;
fig. 8 is a schematic block diagram of another terminal device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the present application will be described below with reference to the accompanying drawings.
Before the aircraft takes off, if the user does not manually switch the communication mode of the mobile phone to the aircraft mode or the shutdown mode, the mobile phone can always keep the communication mode. After the aircraft takes off, the mobile phone cannot detect the network signal in the high altitude state. When the aircraft lands, the network signal is stable, but when the user surfs the internet through the mobile phone, the user can not surf the internet, the mobile phone still can not be connected with the network, or the user can not connect with the network until waiting for a long time, the internet surfing is performed, the contact time between the user and the outside is prolonged, and the user experience is seriously influenced.
By way of example, fig. 1 shows a schematic illustration of an aircraft flight scenario. As shown in fig. 1, when the aircraft flies at high altitude, the signal strength of the mobile phone is marked as blank, and the signal strength of the mobile phone is 0, that is, the mobile phone cannot detect the network signal. After the aircraft lands, the signal strength mark of the mobile phone is filled with black, so that the signal strength of the mobile phone is full, namely the mobile phone can detect stable network signals, but the mobile phone still cannot be connected with a network, and the user experience is affected.
Researchers analyze this phenomenon and consider that the reason for this phenomenon may be that the cell phone triggered the network injection suppression mechanism. The network injection suppressing mechanism refers to limiting the registered network within a preset time period. For example, in third generation mobile communication technology (3th Generation,3G), the inhibit-to-network mechanism refers to restricting the registered network for 12 minutes. If the mobile phone continuously triggers the network injection inhibition mechanism, the duration of a preset time period in the network injection inhibition mechanism is prolonged.
It should be noted that the network injection suppressing mechanism is merely an example of a name, and the embodiments of the present application are not limited thereto.
It has been found that a handset may trigger a suppressed network injection mechanism in the following cases:
1) After the aircraft lands, the mobile phone periodically registers with the network, but has not been successfully registered, and if the mobile phone fails to register with the network a plurality of times (e.g., 5 times) continuously in a period of time, a network injection suppressing mechanism is triggered. The mobile phone cannot register the network in the network-injection-inhibiting mechanism, and after the network-injection-inhibiting mechanism, the mobile phone can register the network again periodically.
If the mobile phone still continuously registers for a plurality of network failures, the network-injection-inhibiting mechanism is triggered again, the duration of the network-injection-inhibiting mechanism is prolonged, and the prolonged time can even reach several hours.
2) An aircraft may search for a weak net signal at high altitude or prior to landing, where a weak net signal refers to a weak signal strength, for example, in the scenario shown in fig. 1, the signal strength is not satisfactory. The mobile phone can not register the network through the weak network signal, or the mobile phone is refused by the network, or the mobile phone does not respond to the information of the registered network, the network-injection inhibition mechanism is triggered, so that after the airplane lands, the mobile phone is still in the network-injection inhibition mechanism, and the network can not be registered.
In view of this, the embodiments of the present application provide a method and a terminal device for searching a network, which can improve the efficiency of searching a network.
The method provided by the embodiment of the application can be suitable for a terminal device with a wireless communication function, wherein the terminal device can be a wearable terminal device such as a mobile phone, a tablet personal computer, a personal computer (personal computer, PC), an intelligent screen, an artificial intelligence (artificial intelligence, AI) sound box, an earphone, a car machine device, a smart watch and the like, and can also be various teaching auxiliary tools (such as a learning machine and an early education machine), an intelligent toy, a portable robot, a personal digital assistant (personal digital assistant, a PDA), an augmented reality technology (augmented reality, AR) device, a Virtual Reality (VR) device and the like, or can be a device with a mobile office function, a device with an intelligent home function, a device with an audio-video entertainment function, a device supporting intelligent travel and the like. It should be understood that the embodiments of the present application do not limit the specific technology and specific device configuration adopted by the terminal device.
In order to better understand the embodiments of the present application, the following describes a hardware structure of the terminal device of the embodiments of the present application. Fig. 2 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
The terminal device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a microphone 170B, a microphone 170C, a sensor module 180, keys 190, an indicator 192, a camera 193, a display 194, and the like.
Alternatively, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units. Wherein the different processing units may be separate devices or may be integrated in one or more processors. A memory may also be provided in the processor 110 for storing instructions and data.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge a terminal device, or may be used to transfer data between the terminal device and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other terminal devices, such as AR devices, etc.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. The power management module 141 is used for connecting the charge management module 140 and the processor 110.
The wireless communication function of the terminal device may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Antennas in the terminal device may be used to cover single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G or the like applied on a terminal device. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wirelesslocal area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), etc. as applied on a terminal device.
The terminal device implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. In some embodiments, the terminal device may include 1 or N display screens 194, N being a positive integer greater than 1.
The terminal device may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The camera 193 is used to capture still images or video. In some embodiments, the terminal device may include 1 or N cameras 193, N being a positive integer greater than 1.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to realize expansion of the memory capability of the terminal device. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer-executable program code that includes instructions. The internal memory 121 may include a storage program area and a storage data area.
The terminal device may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The terminal device can listen to music through the speaker 170A or listen to hands-free calls. A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When the terminal device picks up a call or voice message, the voice can be picked up by placing the microphone 170B close to the human ear. Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The gyro sensor 180B may be used to determine a motion gesture of the terminal device. The air pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a hall sensor. The acceleration sensor 180E may detect the magnitude of acceleration of the terminal device in various directions (typically three axes). A distance sensor 180F for measuring a distance. The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The ambient light sensor 180L is used to sense ambient light level. The fingerprint sensor 180H is used to collect a fingerprint. The temperature sensor 180J is for detecting temperature. The touch sensor 180K, also referred to as a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also referred to as a "touch screen". The bone conduction sensor 180M may acquire a vibration signal.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The terminal device may receive key inputs, generating key signal inputs related to user settings of the terminal device and function control. The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The software system of the terminal device can adopt a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture or a cloud architecture. The layered architecture may adopt an Android (Android) system, an apple (IOS) system, or other operating systems, which is not limited in this embodiment of the present application. Taking an Android system with a layered architecture as an example, a software structure of the terminal device is illustrated.
Fig. 3 is a software architecture block diagram of a terminal device applicable to the embodiment of the present application. The layered architecture divides the software system of the terminal device into a plurality of layers, each layer having a distinct role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system may be divided into four layers, an application layer (applications), an application framework layer (application framework), an Zhuoyun rows (Android run) and system libraries, and a kernel layer (kernel) in order from top to bottom.
The application layer may include a series of application packages that run applications by calling an application program interface (application programming interface, API) provided by the application framework layer. As shown in fig. 3, the application package may include applications such as cameras, gallery, calendar, phone calls, maps, navigation, bluetooth, music, video, text messages, etc.
The application framework layer provides APIs and programming frameworks for application programs of the application layer. The application framework layer includes a number of predefined functions. As shown in FIG. 3, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like. The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc. The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture. The telephony manager is arranged to provide communication functions for the terminal device. Such as the management of call status (including on, hung-up, etc.). The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like. The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the terminal equipment vibrates, and an indicator light blinks.
The android system runtime comprises a core library and a virtual machine. And the android system is responsible for scheduling and managing the android system when running. The core library consists of two parts: one part is a function which needs to be called by Java language, and the other part is a core library of android. The application layer and the application framework layer run in a virtual machine. The virtual machine executes Java files of the application layer and the application framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like. The system library may contain modules for a number of functions, such as: surface manager, media library, three-dimensional graphics processing library, etc.
The surface manager is used to manage the display subsystem and provides a fusion of the two-dimensional and three-dimensional layers for the plurality of applications. Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio video encoding formats, such as: JPG, PNG, etc. The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The kernel layer is a layer between hardware and software. The kernel layer is used for driving the hardware so that the hardware works. The kernel layer at least includes display driver, screen driver, camera driver, sensor driver, etc., which is not limited in this embodiment of the present application.
In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and effect. For example, the first indication information and the second indication information are for distinguishing different indication information, and the sequence of the first indication information and the second indication information is not limited. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
In this application, the terms "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
Furthermore, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, and c may represent: a, b, or c, or a and b, or a and c, or b and c, or a, b and c, wherein a, b and c can be single or multiple.
Fig. 4 is a schematic flowchart of a method 400 for searching a network according to an embodiment of the present application, where the method 400 may be applied to a terminal device, a hardware structure diagram of the terminal device may be shown in fig. 2, and a software structure diagram of the terminal device may be shown in fig. 3, but embodiments of the present application are not limited thereto.
As shown in fig. 4, the method 400 may include the steps of:
S401, acquiring the aircraft take-off time and the aircraft landing time from the flight application program.
The name of the application for viewing flight information of purchased tickets is merely an example, and embodiments of the present application are not limited in this respect. The flight application may or may not have the function of purchasing the air ticket, which is not limited in this embodiment of the present application.
The flight application may push flight information for the purchased air ticket, for example, the flight application may display the flight information for the purchased air ticket in the form of a pop-up window or a communication message. When the flight application program pushes the flight information of the purchased air ticket, the terminal device can acquire the airplane departure time and the airplane landing time in the flight information of the purchased air ticket.
When an unexpected situation occurs on a flight for which an air ticket is purchased, such as an unexpected situation of an aircraft delay, a flight cancellation, etc., the flight application may also push flight dynamics information to facilitate the user's understanding of the flight dynamics. When the flight application pushes the flight dynamic information, the terminal device may acquire information about the aircraft departure time and the aircraft landing time in order to re-determine the aircraft departure time and the aircraft landing time.
Optionally, the terminal device may further obtain flight information in the sms application program, for assisting in determining the departure time and landing time of the aircraft.
For example, if the flight application has the capability to purchase tickets, the user may purchase tickets at the flight application. When the user purchases the air ticket by the flight application program, the user can input the mobile phone number, after the air ticket is successfully purchased, the short message application program of the mobile phone can receive the flight information of the purchased air ticket, and the terminal equipment can acquire the airplane take-off time and the airplane landing time from the short message application program. When unexpected situations occur on flights with purchased air tickets, the short message application program can also receive short message information, and the terminal equipment can acquire information related to the aircraft take-off time and the aircraft landing time from the short message information so as to determine the aircraft take-off time and the aircraft landing time again.
The terminal device may preset a short message template of the flight information, and when the short message application program receives the short message, the terminal device may match the short message template of the preset flight information with the received short message, and if the short message template of the preset flight information can be matched with the received short message, the terminal device may obtain the aircraft departure time and the aircraft landing time from the short message template.
The terminal equipment acquires the aircraft take-off time and the aircraft landing time from at least one channel, so that the missing of flight variation information can be prevented, and the aircraft take-off time and the aircraft landing time can be timely determined again.
S402, when the aircraft takes off, changing the network searching period into the aircraft flight time length, wherein the aircraft flight time length is calculated according to the aircraft take-off time and the aircraft landing time.
The aircraft flight duration may be referred to as a second network search period, which is not limited in this embodiment of the present application.
The aircraft take-off includes a state in which the aircraft is about to take-off, or is taking-off, or has taken-off.
It should be understood that the condition of the aircraft about to take off may refer to a condition in which the aircraft is taxiing on a runway in preparation for take off. The state in which the aircraft is taking off may refer to a state in which the aircraft is leaving the runway, but not all in the air. The already taken-off state may refer to a state in which the aircraft is entirely in the air.
The aircraft flight duration may be the aircraft landing time minus the aircraft takeoff time, wherein the aircraft landing time and the aircraft takeoff time may be times under the 24 hour rule.
Illustratively, from the flights of the Chengdu Chongqing, the flight with the take-off time of 13:27 and the landing time of 15:35 exists, and then the flight corresponding to the flight has the flight duration equal to the landing time (15:35) minus the take-off time (13:27), and the flight duration is 2 hours and zero 8 minutes.
The search for a network is an abbreviation for search for a network. When the terminal equipment is in the communication mode, the network can be searched periodically so as to be convenient for registering the network. The network searching period when the mobile phone is in the communication mode can be a default network searching period. The default network searching period may also be referred to as a first network searching period, which is not limited in this embodiment of the present application.
It should be noted that the terminal device searching network refers to a mobile communication network searching by the terminal device based on a subscriber identity module (subscriber identity module, SIM) card, for example, the terminal device searches for a network of a second generation mobile communication network (for example, a global system for mobile communication (global system for mobile communications, GSM)), a third generation mobile communication network (for example, a universal mobile communication system (universal mobile telecommunications system, UMTS)), a fourth generation mobile communication network (for example, a long term evolution (long term evolution, LTE) of the universal mobile communication system), a fifth generation mobile communication network (for example, a New Radio (NR)) and a possible evolution system in the future based on the SIM card.
When the aircraft takes off, the terminal equipment can change the network searching period into the aircraft flight duration, and in the aircraft flight period, network searching and network registering are not performed, so that the terminal equipment is prevented from searching a weak network signal in the high air to register the network, and a network injection suppressing mechanism is triggered.
It should be noted that, if the flight information of the purchased air ticket includes the flight time of the aircraft, the terminal device may obtain the flight time of the aircraft from the flight information of the purchased air ticket, without calculating according to the departure time and the landing time of the aircraft.
It should be noted that, when the aircraft takes off, the terminal device changes the network searching period to the aircraft flight duration, which is only one possible implementation manner. The terminal device can also receive the operation of modifying the network searching period by the user, and respond to the operation of modifying the network searching period by the user to change the network searching period into the network searching period modified by the user. The operation of modifying the network searching period by the user can be the operation of starting the flight mode by the user or the operation of shutting down by the user. The operation of modifying the network searching period by the user can also be the operation of triggering an option of changing the duration of the network searching period by the user. For example, the terminal equipment provides a man-machine interaction interface for the user, the man-machine interaction interface comprises an option for changing the duration of the network searching period, and the terminal equipment responds to the operation of the user triggering the option for changing the duration of the network searching period to change the network searching period into the network searching period modified by the user.
Alternatively, the terminal device may first determine whether the aircraft is taking off or about to take off, and the terminal device determines that the aircraft is taking off, there may be a plurality of possible implementations.
In one possible implementation, the terminal device may determine the aircraft takeoff based on the aircraft takeoff time.
For example, the terminal device may determine that the aircraft is flying when the aircraft takeoff time arrives.
In another possible implementation, the terminal device may determine the aircraft takeoff based on the aircraft takeoff time and the network status.
For example, when the aircraft is flying at high altitude, no network signal is provided, the network state is in an off state, and if the aircraft take-off time is reached and the network state is in the off state, the terminal device can determine that the aircraft takes off. For example, a telephone communication (Telephony) module in the application framework layer of the terminal device may be used to obtain the network status and send the network status, the terminal device may monitor the network connection status and the signal strength through a listen (new PhoneStateListener ()) function in a telephone communication management (Telephony manager) interface, and when the terminal device determines that the network status is in a disconnected state through the telephone communication management interface and the aircraft takeoff time arrives, the terminal device may determine that the aircraft has taken off.
In a further possible implementation, the terminal device determines the aircraft takeoff from the aircraft takeoff time and the geographical location information.
For example, if the aircraft departure time arrives and the geographic position information indicates that the current position of the terminal device is the departure place of the present flight, the terminal device may determine that the aircraft has taken off.
In another possible implementation, the terminal device determines the aircraft takeoff based on the aircraft takeoff time, the network status, and the geographic location information.
For example, if the aircraft departure time arrives, the network state is in a disconnected state, and the geographic location information indicates that the current location of the terminal device is the departure place of the present flight, the terminal device may determine that the aircraft has taken off.
S403, when the aircraft lands, changing the network searching period into a default network searching period, and starting network searching to register the network.
It should be noted that the aircraft landing includes a state in which the aircraft is about to land, the aircraft is landing, or the aircraft has landed.
It should be understood that the impending landing state of the aircraft may refer to a state in which the aircraft is about to drive into a runway in the air. The state in which the aircraft is landing may refer to a state in which the aircraft is driving into the runway, but not all of the aircraft is on the runway. The aircraft landing state may refer to a state in which the aircraft is all on a runway.
The default network searching period may also be referred to as a network searching period before modification or an original network searching period, which is not limited in the embodiment of the present application. The default network search period may be an existing network search period that implements network registration, e.g., a network search is performed every 30 seconds.
When the aircraft is determined to land, the aircraft falls to the ground, and at the moment, the mobile phone can detect a stronger network signal, can restore to the original network searching period, and performs network searching in the original network searching period so as to register a network.
Optionally, in a preset time before the aircraft lands, the terminal device may change the network searching period into a default network searching period and start network searching. For example, within 2 minutes before the aircraft lands, the terminal device may change the network searching period to a default network searching period and begin searching.
In the preset time before the aircraft lands, the mobile phone can detect a stronger network signal, at the moment, the network searching period can be changed into a default network searching period, and network searching begins, so that the network can be registered more quickly.
Optionally, when it is determined that the aircraft lands, the terminal device may change the network searching period to a network searching period shorter than the default network searching period, and start network searching, so that the terminal device registers the network quickly, and when the terminal device detects that the network state is a connection state, the network searching period shorter than the default network searching period is changed to the default network searching period.
Alternatively, the terminal device may first determine whether the aircraft is or is about to land. There are many possible implementations for the terminal device to determine that the aircraft is landing.
In one possible implementation, the terminal device may determine that the aircraft is landing based on the aircraft landing time.
For example, the terminal device may determine that the aircraft is landed when the aircraft landing time arrives.
In another possible implementation, the terminal device determines the aircraft takeoff based on the aircraft landing time and the geographic location information.
For example, if the aircraft landing time arrives and the geographic location information indicates that the current location of the terminal device is the destination of the present flight, the terminal device may determine that the aircraft is landing.
According to the network searching method, after the airplane takes off, the network searching period is changed into the airplane flight time, so that the terminal equipment can be prevented from searching the weak network signal in the high air to register the network, the network searching power consumption can be reduced due to triggering of the network injection inhibition mechanism, the network searching period is changed into the default network searching period after the airplane falls, the network searching is actively performed, the quick network registration is facilitated, and the network registering efficiency is improved.
As an optional embodiment, the method for determining the take-off of the aircraft may further include: the terminal device can determine the take-off time of the airplane according to the take-off time of the airplane and the acceleration and the speed of the terminal device.
The terminal device includes an acceleration sensor through which the acceleration can be acquired. The terminal device may determine the speed based on the change in location information and time. If the aircraft take-off time arrives, the acceleration is greater than or equal to a first preset threshold value, and the speed is greater than or equal to a second preset threshold value, the terminal device can determine that the aircraft is flying.
By way of example, FIG. 5 illustrates a schematic diagram of a method 500 of determining aircraft takeoff. As shown in fig. 5, the method 500 may include the steps of:
s501, acquiring the acceleration and the speed of the terminal equipment.
The terminal device may schedule the acceleration SENSOR (sensor_type_accelerome) through the SENSOR manager (SENSOR manager) and then acquire the acceleration of the terminal device in real time or periodically through the SENSOR event (SENSOR event). The terminal equipment can acquire the position information of the terminal equipment at a certain time point by a global positioning system (global positioning system, GPS), then establish the corresponding relation between the time point and the position information, and calculate the speed of the terminal equipment according to the change of the position information at two time points and the time difference of the two time points.
S502, if the aircraft take-off time arrives, judging whether the acceleration of the terminal equipment is larger than or equal to a first threshold value.
The aircraft takeoff time may be obtained through S401 described above. If the aircraft takeoff time is reached, the terminal device may execute S502, and if the aircraft takeoff time is not reached, the terminal device may determine whether the aircraft takeoff time is reached.
The first threshold is preset. For example, the first threshold may be 1 m/s 2 (m/s 2 )。
If the acceleration is greater than or equal to the first threshold, the terminal device may continue to execute S503, and if the acceleration is less than the first threshold, the terminal device may continue to execute S502 to continuously determine whether the acceleration is greater than or equal to the first threshold.
S503, if the acceleration is greater than or equal to the first threshold value, judging whether the speed is greater than or equal to the second threshold value.
The second threshold is preset. For example, the second threshold may be 150 kilometers per hour (km/h).
If the speed is greater than or equal to the second threshold, the terminal device may continue to execute S504, and if the speed is less than the second threshold, the terminal device may continue to execute S503 to continue to determine whether the speed is greater than or equal to the second threshold.
It should be noted that, the execution sequence of S503 and S504 is not limited, the terminal device may first determine whether the speed is greater than or equal to the second threshold, and if the speed is greater than or equal to the second threshold, the terminal device may determine whether the acceleration is greater than or equal to the first threshold.
S504, if the speed is greater than or equal to a second threshold value, determining that the aircraft takes off.
If the aircraft take-off time arrives, the acceleration is greater than or equal to a first preset threshold value, and the speed is greater than or equal to a second preset threshold value, the terminal device can determine that the aircraft takes off.
According to the method for determining the aircraft take-off, on the basis of arrival of the aircraft flight time, whether the aircraft takes-off can be judged in an auxiliary mode through acceleration and speed of the terminal equipment, whether the aircraft takes-off can be judged more accurately, and accuracy of aircraft flight detection is improved.
It should be noted that, if the aircraft take-off time arrives, the terminal device may change the network searching period into the aircraft flight duration, otherwise, if the aircraft take-off time arrives and at least one of the following conditions is satisfied, the terminal device may change the network searching period into the aircraft flight duration:
1) The geographic position indicates that the current position of the terminal equipment is the departure place of the flight;
2) The network state is the disconnected state;
3) The acceleration of the terminal device is greater than or equal to a first preset threshold value and the speed of the terminal device is greater than or equal to a second preset threshold value.
It should be understood that the terminal device may determine that the aircraft takes off according to at least one of the above conditions, and change the network searching period to the aircraft flight duration.
As an alternative embodiment, the terminal device may switch on the flight mode when the terminal device determines that the aircraft is taking off. It will be appreciated that both the long-range communication transmission network and the short-range transmission network of the terminal device are switched off when the terminal device is in the flight mode.
When the terminal equipment is in the flight mode, network searching and network registering are not performed, so that the power consumption can be reduced, and the situation that network registering is performed by searching a weak network signal in the high air, so that a network injection suppressing mechanism is triggered can be prevented. When the terminal equipment determines that the aircraft falls to the ground, the flight mode can be closed, the terminal equipment can search the network and register the network, so that the quick network registration is facilitated, and the network registration efficiency is improved.
It should be noted that, the terminal device may start to take effect after the user authorization by turning on or off the function of the flight mode.
The terminal device may be a mobile phone, and the "setting" interface of the mobile phone may add an authorized option, and when receiving an operation of selecting the authorized option by the user, the mobile phone responds to the operation, and has a function of turning on or off the flight mode.
As an alternative embodiment, the terminal device may shut down the mobile network after the terminal device determines that the aircraft is taking off. The mobile network is a mode that the terminal equipment is connected to the public network to realize an internet method.
When the terminal equipment is in the flight mode, the connection of the mobile network is not performed, and the power consumption can be reduced. After the terminal equipment determines that the aircraft falls to the ground, the mobile network can be started to start connecting with the network, thereby being beneficial to quickly registering the network and improving the efficiency of registering the network.
Fig. 6 is a schematic flowchart of another method 600 for searching a network according to an embodiment of the present application, where the method 600 may be applied to a terminal device, and the terminal device may include a flight detection service module, an aircraft state detection module, and a network searching service module.
It should be noted that the flight detection service module, the aircraft state detection module, and the network search service module are merely examples of one name, which is not limited in the embodiments of the present application.
As shown in fig. 6, the method 600 may include the steps of:
s601, the flight detection service module acquires the departure time and the landing time of the airplane from the application program.
The application may be the flight application and/or the sms application described above.
S602, the flight detection service module sends the aircraft departure time and the aircraft landing time to the aircraft state detection module, and correspondingly, the network searching service module receives the aircraft departure time and the aircraft landing time.
There are many possible implementations in which the flight detection service module sends the aircraft departure time and the aircraft landing time to the aircraft state detection module.
In one possible implementation, the flight detection service module may send the aircraft departure time and the aircraft landing time to the aircraft state detection module in the form of a broadcast.
In another possible implementation, the flight detection service module may send the aircraft departure time and the aircraft landing time to the aircraft state detection module by a cross-process interface call.
S603, if the aircraft state detection module determines that the aircraft takes off, sending first indication information to the network searching service module, wherein the first indication information is used for indicating the network searching service module to change the network searching period into the aircraft flight time, the aircraft flight time is calculated according to the aircraft take-off time and the aircraft landing time, and correspondingly, the network searching service module receives the first indication information.
The aircraft state detection module may determine whether the aircraft is taking off based on the aircraft take-off time. In order to ensure the accuracy of the detection of the aircraft state detection module, the aircraft state detection module may also assist in determining according to at least one of the network state, the geographical location information, and the acceleration and speed of the terminal device.
The aircraft state detection module can calculate the aircraft flight duration according to the aircraft take-off time and the aircraft landing time. If the aircraft state detection module determines that the aircraft takes off, the first indication information can be sent to the network searching service module.
S604, the network searching service module changes the network searching period into the flight duration of the airplane according to the first indication information, and a new network searching period is obtained.
And the network searching service module determines the network searching period as a new network searching period according to the first indication information, wherein the duration of the new network searching period is the flight duration of the airplane.
S605, the network searching service module sends a new network searching period to the modem, and correspondingly, the modem receives the new network searching period.
Illustratively, the network searching service module may transfer the new network searching period to the modem module by calling an upper layer (radio interface layer, RIL) interface (setnetsearch period), and the modem module may update the network searching period to the new network searching period.
S606, the modem module performs network searching according to the new network searching period.
S607, if the aircraft state detection module determines that the aircraft falls to the ground, sending second indication information to the network searching service module, where the second indication information is used to instruct the network searching service module to change the network searching period into a default network searching period.
The aircraft state detection module may determine whether the aircraft is landed based on the aircraft landing time. In order to ensure the accuracy of the detection of the aircraft state detection module, the aircraft state detection module can also assist in judgment according to the geographic position information.
If the aircraft state detection module determines that the aircraft falls to the ground, the second indication information can be sent to the network searching service module.
And S608, the network searching service module changes the network searching period into a default network searching period according to the second indication information.
The network searching period is a new network searching period, and the network searching service module can determine the new network searching period as a default network searching period according to the second indication information.
S609, the network searching service module sends a default network searching period to the modem module, and correspondingly, the modem module receives the default network searching period.
S610, the modem module performs network searching according to a default network searching period.
According to the network searching method, the flight detection service module can acquire the take-off time and the landing time of the airplane, the network searching service module can prolong the network searching period when the airplane is in a flight state, can reduce power consumption, can prevent the network searching of weak network signals in high air from registering, and causes a trigger inhibition network injection mechanism, and the network searching service module can change the network searching period into a default network searching period and actively search the network when the airplane is in the landing state, so that the network searching method is beneficial to quickly registering the network and improves the network registering efficiency.
The sequence numbers of the above-mentioned processes do not mean the sequence of execution sequence, and the execution sequence of each process should be determined by its functions and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
The method provided by the embodiment of the present application is described in detail above with reference to fig. 1 to 6, and the terminal device provided by the embodiment of the present application will be described in detail below with reference to fig. 7 and 8.
Fig. 7 shows a schematic flow chart of a terminal device 700 provided in an embodiment of the present application. The terminal device 700 includes: an acquisition module 710 and a processing module 720. Wherein, the obtaining module 710 is configured to: acquiring take-off time and landing time; the processing module 720 is configured to: determining a flight duration based on the take-off time and the landing time; starting from a take-off time point, not searching for a mobile communication network in the flight duration; and searching the mobile communication network after the flight time is reached from the take-off time point.
Optionally, the processing module 720 is further configured to: starting from a take-off time point, searching a mobile communication network if at least one of the following conditions is met after the flight duration is reached; the network state is a connection state; the location indicated by the geographic location is the destination of the flight.
Optionally, the processing module 720 is further configured to: and after the flight time is up from the take-off time point, setting the network searching period as a first network searching period, and searching the mobile communication network according to the first network searching period.
Optionally, the processing module 720 is further configured to: and setting a second network searching period according to the flight time in the flight time from the take-off time point, and not searching the mobile communication network in a period corresponding to the second network searching period.
Optionally, the processing module 720 is further configured to: searching for a mobile communication network according to a first network searching period before a take-off time point; and starting from the take-off time point, setting the first network searching period as a second network searching period within the flight time, wherein the time of the second network searching period is longer than that of the first network searching period.
Optionally, the processing module 720 is further configured to: determining the current point in time as the take-off point in time if at least one of the following conditions is met: the network state is the disconnected state; the position indicated by the geographic position is the departure place of the flight; the acceleration is greater than or equal to a first threshold and the velocity is greater than or equal to a second threshold.
Optionally, the obtaining module 710 is further configured to: and acquiring departure time and landing time from the flight application program and/or the short message application program.
It should be understood that the terminal device 700 herein is embodied in the form of functional modules. The term module herein may refer to an application specific integrated circuit (application specific integrated circuit, ASIC), an electronic circuit, a processor (e.g., a shared, dedicated, or group processor, etc.) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that support the described functionality. In an alternative example, it will be understood by those skilled in the art that the terminal device 700 may be specifically a terminal device in the foregoing method embodiment, or the functions of the terminal device in the foregoing method embodiment may be integrated in the terminal device 700, and the terminal device 700 may be used to execute each flow and/or step corresponding to the terminal device in the foregoing method embodiment, which is not repeated herein for avoiding repetition.
The terminal device 700 has a function of implementing the corresponding steps executed by the terminal device in the method embodiment; the above functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
In an embodiment of the present application, the terminal device 700 in fig. 7 may also be a chip or a chip system, for example: system on chip (SoC).
Fig. 8 is a schematic block diagram of another terminal device 800 provided in an embodiment of the present application. The terminal device 800 comprises a processor 810, a communication interface 820 and a memory 830. Wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through an internal connection path, the memory 830 is configured to store instructions, and the processor 820 is configured to execute the instructions stored in the memory 830 to control the communication interface 820 to transmit signals and/or receive signals.
It should be understood that the terminal device 800 may be specifically a terminal device in the above method embodiment, or the functions of the terminal device in the above method embodiment may be integrated in the terminal device 800, and the terminal device 800 may be configured to perform the steps and/or flows corresponding to the terminal device in the above method embodiment. The memory 830 may optionally include read-only memory and random access memory, and provide instructions and data to the processor. A portion of the memory may also include non-volatile random access memory. For example, the memory may also store information of the device type. The processor 810 may be configured to execute instructions stored in the memory, and when the processor executes the instructions, the processor may perform steps and/or processes corresponding to the terminal device in the above-described method embodiments.
It is to be appreciated that in embodiments of the present application, the processor 810 may be a central processing unit (central processing unit, CPU), which may also 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. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor executes instructions in the memory to perform the steps of the method described above in conjunction with its hardware. To avoid repetition, a detailed description is not provided herein.
The application also provides a computer readable storage medium for storing a computer program, where the computer program is used to implement a method corresponding to the terminal device in the above method embodiment.
The application also provides a chip system, which is used for supporting the terminal equipment to realize the functions shown in the embodiment of the application in the embodiment of the method.
The present application also provides a computer program product, which comprises a computer program (which may also be referred to as code, or instructions), and which, when run on a computer, can perform the method corresponding to the terminal device shown in the above method embodiment.
Those of skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system, apparatus and module may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely specific embodiments of the present application, but the scope of the embodiments of the present application is not limited thereto, and any person skilled in the art may easily think about changes or substitutions within the technical scope of the embodiments of the present application, and the changes or substitutions are intended to be covered by the scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (18)

1. A method of searching for a network, comprising:
the terminal equipment acquires take-off time and landing time;
the terminal equipment determines the flight duration based on the take-off time and the landing time;
starting from a take-off time point, the terminal equipment does not search for a mobile communication network within the flight duration;
and starting from the take-off time point, and searching a mobile communication network by the terminal equipment after the flight duration is reached.
2. The method according to claim 1, wherein said terminal device searches for a mobile communication network after said time of flight has been reached from said take-off point in time, comprising:
starting from the take-off time point, after the flight duration is reached, if the terminal equipment meets at least one of the following conditions, searching a mobile communication network by the terminal equipment;
the network state is a connection state;
the location indicated by the geographic location is the destination of the flight.
3. The method according to claim 1 or 2, wherein said terminal device searches for a mobile communication network after said time of flight has been reached from said take-off point in time, comprising:
and after the take-off time point reaches the flight time, the terminal equipment sets the network searching period as a first network searching period, and searches the mobile communication network according to the first network searching period.
4. A method according to any one of claims 1 to 3, characterized in that said starting from the take-off point in time, during which the terminal device does not search for a mobile communication network, comprises:
and starting from the take-off time point, in the flight time, the terminal equipment sets a second network searching period according to the flight time, and does not search for a mobile communication network in a period corresponding to the second network searching period.
5. The method according to claim 4, wherein the method further comprises:
before the take-off time point, the terminal equipment searches for a mobile communication network according to a first network searching period;
and starting from the take-off time point, in the flight time, the terminal equipment sets the first network searching period as the second network searching period, wherein the time of the second network searching period is longer than that of the first network searching period.
6. The method according to any one of claims 1 to 5, further comprising:
if the terminal equipment meets at least one of the following conditions, the terminal equipment determines the current time point as the take-off time point:
the network state is the disconnected state;
The position indicated by the geographic position is the departure place of the flight;
the acceleration is greater than or equal to a first threshold and the velocity is greater than or equal to a second threshold.
7. The method according to any one of claims 1 to 6, wherein the terminal device obtains a take-off time and a landing time, comprising:
and the terminal equipment acquires the departure time and the landing time from a flight application program and/or a short message application program.
8. A terminal device, comprising:
the acquisition module is used for acquiring the take-off time and the landing time;
the processing module is used for determining the flight duration based on the take-off time and the landing time; starting from a take-off time point, not searching for a mobile communication network within the flight duration; and searching a mobile communication network after the flight duration is reached from the take-off time point.
9. The terminal device of claim 8, wherein the processing module is further configured to:
starting from the take-off time point, searching a mobile communication network if at least one of the following conditions is met after the flight duration is reached;
the network state is a connection state;
the location indicated by the geographic location is the destination of the flight.
10. The terminal device according to claim 8 or 9, wherein the processing module is further configured to:
and setting the network searching period as a first network searching period after the takeoff time point reaches the flight time, and searching the mobile communication network according to the first network searching period.
11. The terminal device according to any of the claims 8 to 10, wherein the processing module is further configured to:
and setting a second network searching period from the take-off time point in the flight time according to the flight time, and not searching for a mobile communication network in a period corresponding to the second network searching period.
12. The terminal device of claim 11, wherein the processing module is further configured to:
searching for a mobile communication network according to a first network searching period before the take-off time point;
and starting from the take-off time point, setting the first network searching period as the second network searching period within the flight time, wherein the time of the second network searching period is longer than that of the first network searching period.
13. The terminal device according to any of the claims 8 to 12, wherein the processing module is further configured to:
Determining the current point in time as the take-off point in time if at least one of the following conditions is met:
the network state is the disconnected state;
the position indicated by the geographic position is the departure place of the flight;
the acceleration is greater than or equal to a first threshold and the velocity is greater than or equal to a second threshold.
14. The terminal device according to any of the claims 8 to 13, wherein the acquisition module is further configured to:
and acquiring the departure time and the landing time from the flight application program and/or the short message application program.
15. A terminal device, comprising: a processor coupled to a memory for storing a computer program which, when invoked by the processor, causes the terminal device to perform the method of any one of claims 1 to 7.
16. A chip system, comprising: a processor for calling and running a computer program from a memory, such that a device on which the chip system is installed implements the method according to any of claims 1 to 7.
17. A computer readable storage medium storing a computer program comprising instructions for implementing the method of any one of claims 1 to 7.
18. A computer program product comprising computer program code embodied therein, which when run on a computer causes the computer to implement the method of any of claims 1 to 7.
CN202210579260.3A 2022-05-26 2022-05-26 Method for searching network and terminal equipment Active CN116095791B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210579260.3A CN116095791B (en) 2022-05-26 2022-05-26 Method for searching network and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210579260.3A CN116095791B (en) 2022-05-26 2022-05-26 Method for searching network and terminal equipment

Publications (2)

Publication Number Publication Date
CN116095791A true CN116095791A (en) 2023-05-09
CN116095791B CN116095791B (en) 2024-04-02

Family

ID=86185556

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210579260.3A Active CN116095791B (en) 2022-05-26 2022-05-26 Method for searching network and terminal equipment

Country Status (1)

Country Link
CN (1) CN116095791B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105101161A (en) * 2015-06-12 2015-11-25 联想(北京)有限公司 Information processing method and information processing device
CN106028289A (en) * 2016-07-20 2016-10-12 广东欧珀移动通信有限公司 Network searching method and equipment after roaming ends
CN106102130A (en) * 2016-06-07 2016-11-09 华为技术有限公司 Search network method and wireless terminal
CN107333325A (en) * 2017-07-26 2017-11-07 维沃移动通信有限公司 A kind of network search method and mobile terminal
CN107484148A (en) * 2017-07-26 2017-12-15 维沃移动通信有限公司 A kind of network search method and mobile terminal
WO2020173373A1 (en) * 2019-02-28 2020-09-03 华为技术有限公司 Method for controlling network searching, and terminal
WO2020193810A1 (en) * 2019-03-28 2020-10-01 Alfred Richard Tracer associated with a roaming entity and communication method between a system for supervising the geographical position of the entity and said tracer

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105101161A (en) * 2015-06-12 2015-11-25 联想(北京)有限公司 Information processing method and information processing device
CN106102130A (en) * 2016-06-07 2016-11-09 华为技术有限公司 Search network method and wireless terminal
CN106028289A (en) * 2016-07-20 2016-10-12 广东欧珀移动通信有限公司 Network searching method and equipment after roaming ends
WO2018014745A1 (en) * 2016-07-20 2018-01-25 广东欧珀移动通信有限公司 Network search method and device after roaming ends
CN107333325A (en) * 2017-07-26 2017-11-07 维沃移动通信有限公司 A kind of network search method and mobile terminal
CN107484148A (en) * 2017-07-26 2017-12-15 维沃移动通信有限公司 A kind of network search method and mobile terminal
WO2020173373A1 (en) * 2019-02-28 2020-09-03 华为技术有限公司 Method for controlling network searching, and terminal
WO2020193810A1 (en) * 2019-03-28 2020-10-01 Alfred Richard Tracer associated with a roaming entity and communication method between a system for supervising the geographical position of the entity and said tracer

Also Published As

Publication number Publication date
CN116095791B (en) 2024-04-02

Similar Documents

Publication Publication Date Title
CN110138959B (en) Method for displaying prompt of human-computer interaction instruction and electronic equipment
CN110708086A (en) Split-screen display method and electronic equipment
CN111510482B (en) Method and device for determining failed network request and computer storage medium
CN115655310B (en) Data calibration method, electronic device and readable storage medium
CN109936817B (en) Positioning method and terminal equipment
CN114500241A (en) Abnormal reset processing method and terminal equipment
CN114554416A (en) Device tracking detection method and electronic device
CN116095791B (en) Method for searching network and terminal equipment
CN114741256A (en) Sensor monitoring method and device and terminal equipment
CN108988413B (en) Mobile terminal charging method and mobile terminal
CN108710789B (en) Unlocking method and terminal equipment
CN113790732B (en) Method and device for generating position information
CN112734346B (en) Method, device and equipment for determining lane coverage and readable storage medium
CN117009005A (en) Display method, automobile and electronic equipment
CN112699906B (en) Method, device and storage medium for acquiring training data
CN114979949B (en) Flight state identification method and flight state identification device
WO2022244402A1 (en) Information processing device and information processing method
CN116668951B (en) Method for generating geofence, electronic equipment and storage medium
CN116708647B (en) Notification message reply method and electronic equipment
WO2022222743A1 (en) Data processing method, system, and apparatus
CN113407926B (en) Device matching method, device and computer readable storage medium
CN116049478B (en) Application program recommendation method and device and user equipment
CN116844375B (en) Parking information display method and electronic equipment
CN112014866B (en) Motion trail recording method and related equipment
CN116095223B (en) Notification display method and terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant