Background
With the popularization of the internet access function of the terminal equipment, more and more users are connected with the network through the terminal equipment to acquire required network information.
In the related art, most terminal devices have multiple network modes, and due to the benefits of operators, traffic packages enjoyed by users often differ according to different geographic locations of the users, and at this time, the users can select the types of the network modes by manually setting the network modes in the terminal devices so as to meet different application environments and scene requirements.
BRIEF SUMMARY OF THE PRESENT DISCLOSURE
In order to overcome the problems in the related art, the present disclosure provides a method, an apparatus, and a terminal for switching a network mode.
According to a first aspect of the embodiments of the present disclosure, a method for switching a network mode is provided, including:
acquiring current position information of the terminal equipment;
searching a corresponding relation between preset position information and a network mode according to the position information of the current position of the terminal equipment, and acquiring the network mode corresponding to the position information of the current position of the terminal equipment;
and accessing the terminal equipment into a network mode corresponding to the current position information of the terminal equipment.
With reference to the first aspect, in a first possible implementation manner of the first aspect, before the accessing, by the terminal device, the network mode corresponding to the location information where the terminal device is currently located includes:
searching a signal of a network mode corresponding to the current position information of the terminal equipment;
and if the signal of the network mode corresponding to the position information where the terminal equipment is currently located is searched and the signal is available, accessing the terminal equipment to the network mode corresponding to the position information where the terminal equipment is currently located.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the method further includes:
if the signal of the network mode corresponding to the position information where the terminal equipment is located currently is not searched, or the signal is unavailable, searching the signal of the first network mode according to the priority of the preset network mode; the priority of the first network mode is lower than that of the network mode corresponding to the position information where the terminal equipment is located currently;
and when the signal of the first network mode is searched and is available, the terminal equipment is switched into the first network mode.
With reference to the first aspect, in a third possible implementation manner of the first aspect, before the accessing, by the terminal device, the network mode corresponding to the location information where the terminal device is currently located includes:
acquiring the residual flow of the terminal equipment in a network mode corresponding to the current position information;
judging whether the residual flow is larger than a preset threshold value or not;
and if the residual flow is larger than a preset threshold value, accessing the terminal equipment to a network mode corresponding to the position information where the terminal equipment is currently located.
With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, the method further includes:
and if the residual flow is not greater than the preset threshold, accessing the terminal equipment to a second network mode according to the priority of the preset network mode, wherein the priority of the second network mode is lower than the priority of the network mode corresponding to the position information where the terminal equipment is located currently.
With reference to the first aspect, in a fifth possible implementation manner of the first aspect, the obtaining location information of a current location of the terminal device includes:
acquiring the current position information of the terminal equipment through a Global Positioning System (GPS); or,
and acquiring the current position information of the terminal equipment through a Public Land Mobile Network (PLMN).
According to a second aspect of the embodiments of the present disclosure, there is provided a network mode switching apparatus, including:
the terminal equipment comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is configured to acquire the current position information of the terminal equipment;
the searching module is configured to search a corresponding relation between preset position information and a network mode according to the position information of the terminal device, which is acquired by the first acquiring module, so as to acquire the network mode corresponding to the position information of the terminal device;
and the first access module is configured to access the terminal equipment to a network mode corresponding to the position information of the terminal equipment currently located, which is found by the search module.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the apparatus further includes:
the first searching module is configured to search a signal of a network mode corresponding to the position information where the terminal device is located currently;
and the second access module is configured to access the terminal equipment to the network mode corresponding to the position information where the terminal equipment is currently located when the first search module searches for the signal of the network mode corresponding to the position information where the terminal equipment is currently located and the signal is available.
With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the apparatus further includes:
the second searching module is configured to search the signal of the first network mode according to the priority of a preset network mode when the first searching module does not search the signal of the network mode corresponding to the current position information of the terminal device or the signal is unavailable; the priority of the first network mode is lower than that of the network mode corresponding to the position information where the terminal equipment is located currently;
a third accessing module configured to access the terminal device to the second network mode when the second searching module searches for the signal of the first network mode and the signal of the first network mode is available.
With reference to the second aspect, in a third possible implementation manner of the second aspect, the apparatus further includes:
the second acquisition module is configured to acquire the residual traffic of the terminal equipment in a network mode corresponding to the current position information;
the judging module is configured to judge whether the residual flow acquired by the second acquiring module is greater than a preset threshold value;
and the fourth access module is configured to access the terminal device to a network mode corresponding to the current position information of the terminal device when the judging module judges that the residual flow is greater than the preset threshold.
With reference to the third possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, the apparatus further includes:
and the fifth access module is configured to access the terminal device to a second network mode according to a priority of a preset network mode when the judging module judges that the residual flow is not greater than the preset threshold, wherein the priority of the second network mode is lower than the priority of a network mode corresponding to the current position information of the terminal device.
With reference to the second aspect, in a fifth possible implementation manner of the second aspect, the first obtaining module includes:
the first acquisition submodule is configured to acquire the current position information of the terminal equipment through a Global Positioning System (GPS);
and the second obtaining submodule is configured to obtain the current position information of the terminal equipment through a Public Land Mobile Network (PLMN).
According to a third aspect of the embodiments of the present disclosure, there is provided a network mode switching apparatus, including:
a memory;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring current position information of the terminal equipment;
searching a corresponding relation between preset position information and a network mode according to the position information of the current position of the terminal equipment, and acquiring the network mode corresponding to the position information of the current position of the terminal equipment;
and accessing the terminal equipment into a network mode corresponding to the current position information of the terminal equipment.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the method comprises the steps of obtaining the current position information of the terminal equipment, searching the corresponding relation between the preset position information and the network mode according to the current position information of the terminal equipment, obtaining the network mode corresponding to the current position information of the terminal equipment, and accessing the terminal equipment to the network mode corresponding to the current position information of the terminal equipment. The terminal device searches the network mode corresponding to the current position information according to the current position information of the terminal device, and accesses the terminal device into the network mode corresponding to the current position information of the terminal device, so that the phenomenon that the network mode is switched manually when the position information of the terminal device changes in the related art is avoided, the operation process of switching the network mode can be simplified, and the switching efficiency of the network mode is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a method for switching a network mode according to an exemplary embodiment, and as shown in fig. 1, the method for switching a network mode according to this embodiment is used in a terminal device, which may be, for example, a mobile phone, a Personal Digital Assistant (PDA), or the like, or may be another device with an internet access function. The network mode switching method includes the following steps.
In step S11, the location information where the terminal device is currently located is acquired.
In the embodiment of the present disclosure, the terminal device may obtain the current location information of the terminal device in real time, or may periodically obtain the current location information of the terminal device.
In step S12, according to the current location information of the terminal device, a corresponding relationship between the preset location information and the network mode is searched for, and a network mode corresponding to the current location information of the terminal device is obtained.
In step S13, the terminal device is accessed to the network mode corresponding to the location information where the terminal device is currently located.
In the embodiment of the present disclosure, a user may obtain a corresponding relationship between location information and a network mode by using a short message through a terminal device, for example: and acquiring a network mode of using 4G in Jiangsu province and using a 3G or 2G network mode in other domestic areas except Jiangsu province by the terminal equipment through short messages. The user may also actively set a correspondence between the location information and the network mode, for example: the terminal device can be set to use a 4G network mode in Jiangsu province, to use a 3G or 2G network mode in other domestic areas except for Jiangsu province, and the like. After the terminal device obtains the corresponding relationship between the location information and the network mode, the corresponding relationship is stored.
After the terminal device obtains the current location information, it needs to determine a location area to which the current location information of the terminal device belongs, and obtains a network mode corresponding to the current location information of the terminal device according to a correspondence between the location area and the network mode, which is stored in advance, for example: if the terminal device obtains that the terminal device is currently in Nanjing City, the terminal device matches the pre-stored geographic position information, finds that the location area to which the Nanjing City belongs is Jiangsu province, obtains that the network mode corresponding to the Jiangsu province is 4G according to the corresponding relation between the pre-stored position information and the network mode, and accesses the terminal device into the 4G network mode.
In the network mode switching method of this embodiment, the current location information of the terminal device is obtained, the corresponding relationship between the preset location information and the network mode is searched according to the current location information of the terminal device, the network mode corresponding to the current location information of the terminal device is obtained, and the terminal device is accessed to the network mode corresponding to the current location information of the terminal device. The terminal device searches the network mode corresponding to the current position information according to the current position information of the terminal device, and accesses the terminal device into the network mode corresponding to the current position information of the terminal device, so that the phenomenon that the network mode is switched manually when the position information of the terminal device changes in the related art is avoided, the operation process of switching the network mode can be simplified, and the switching efficiency of the network mode is improved.
Fig. 2 is a flowchart illustrating a method for switching a network mode according to another exemplary embodiment, where the method for switching a network mode according to this embodiment is used in a terminal device, and compared with the method embodiment illustrated in fig. 1, the method for switching a network mode in this embodiment mainly describes that before the terminal device is accessed to a network mode corresponding to location information where the terminal device is currently located, a signal of the network mode corresponding to the location information where the terminal device is currently located needs to be searched. As shown in fig. 2, the network mode switching method includes the following steps.
In step S21, the location information where the terminal device is currently located is acquired.
In step S22, according to the current location information of the terminal device, a corresponding relationship between the preset location information and the network mode is searched for, and a network mode corresponding to the current location information of the terminal device is obtained.
In step S23, a signal of a network mode corresponding to the location information where the terminal device is currently located is searched for.
In this embodiment of the present disclosure, after acquiring a network mode corresponding to location information where a terminal device is currently located, a signal corresponding to the network mode needs to be searched, for example: if the network mode corresponding to the acquired position information of the terminal equipment is the 4G mode, whether 4G signals exist in the area where the position is located needs to be searched. In a specific implementation process, the search may be performed by using a background search in the related art, or may be performed by using other search methods, and the specific method for searching the signal is not limited herein.
If the signal of the network mode corresponding to the location information where the terminal device is currently located is searched and available, the whole switching process is ended after step S24 is executed, otherwise, step S25 is executed.
In step S24, if the signal of the network mode corresponding to the location information where the terminal device is currently located is found and the signal is available, the terminal device is accessed to the network mode corresponding to the location information where the terminal device is currently located.
In practical application, whether the signal strength of the searched signal is greater than a preset value or not can be judged, if the signal strength is greater than the preset value, the signal is usable, and if the signal strength is not greater than the preset value, the signal is unusable. And when the searched signal of the network mode corresponding to the position information of the terminal equipment at present is available, accessing the terminal equipment into the network mode. For example: and the network mode corresponding to the current position information of the terminal equipment is the 4G network mode, and the signal intensity of the searched 4G network mode signal is greater than the preset value, the terminal equipment is accessed into the 4G network mode. The preset value may be set according to experience or actual conditions, and the specific value of the preset value is not limited in this embodiment of the present invention.
In step S25, if a signal of a network mode corresponding to the location information where the terminal device is currently located is not searched for, or the signal is unavailable, searching for a signal of a first network mode according to a preset priority of the network mode; the priority of the first network mode is lower than that of the network mode corresponding to the position information where the terminal equipment is located currently.
In the embodiment of the present disclosure, if no signal of the corresponding network mode is searched in the current location area of the terminal device, or the signal strength of the searched signal is not greater than a preset value, that is, the searched signal is unavailable, according to the priority of the preset network mode, other network modes having a lower priority than the network mode corresponding to the location information of the current location of the terminal device are searched. Specifically, the network mode that is lower in priority than the network mode corresponding to the location information where the terminal device is currently located and that is supported by the terminal device may be searched first, and whether a signal of the network mode is available is determined, if the signal of the network mode is available, the network mode is used as the first network mode, if the signal of the network mode is not available, the network mode that is lower in priority by one and that is supported by the terminal device is continuously searched, and so on until an available signal is searched. For example: if the network mode corresponding to the position information where the terminal device is located is the 4G mode, but the 4G signal is not found in the position area where the terminal device is located, or the found 4G signal is unavailable, the terminal device judges that the network mode lower than the priority of the 4G mode by one level is the 3G mode according to the preset priority of the network mode, judges whether the terminal device supports the 3G mode, if so, searches for the signal of the 3G mode, if not, judges whether the terminal device supports the 2G mode, and so on until the signal of the network mode supported by the terminal device is found and the signal is available.
In step S26, when the signal of the first network mode is searched and is available, the terminal device is switched into the first network mode.
In the embodiment of the disclosure, when a signal of the first network mode is searched and the signal strength of the signal is greater than a preset value, the terminal device is accessed to the first network mode. For example: and if the signal of the 4G mode is not searched or is unavailable and the terminal equipment supports the 3G mode, searching the signal of the 3G mode and enabling the signal, and switching the terminal equipment into the 3G mode.
In the network mode switching method of this embodiment, the current location information of the terminal device is obtained, the corresponding relationship between the preset location information and the network mode is searched according to the current location information of the terminal device, the network mode corresponding to the current location information of the terminal device is obtained, and the terminal device is accessed to the network mode corresponding to the current location information of the terminal device. The terminal device searches the network mode corresponding to the current position information according to the current position information of the terminal device, and accesses the terminal device into the network mode corresponding to the current position information of the terminal device, so that the phenomenon that the network mode is switched manually when the position information of the terminal device changes in the related art is avoided, the operation process of switching the network mode can be simplified, and the switching efficiency of the network mode is improved. In addition, before the terminal equipment is accessed to the network mode corresponding to the position information of the current terminal equipment, the signal of the network mode is searched, whether the signal is available or not is judged, and when the signal is available, the terminal equipment is accessed to the network mode, so that the accuracy of network mode switching is improved.
Fig. 3 is a flowchart illustrating a method for switching a network mode according to still another exemplary embodiment, where the method for switching a network mode according to this embodiment is used in a terminal device, and compared with the method embodiment illustrated in fig. 1, the method for switching a network mode in this embodiment mainly describes that, before the terminal device is accessed to a network mode corresponding to location information where the terminal device is currently located, residual traffic of the terminal device in the network mode is determined, and when the residual traffic is greater than a preset threshold, the terminal device is accessed to the network mode. As shown in fig. 3, the network mode switching method includes the following steps.
In step S31, the location information where the terminal device is currently located is acquired.
In step S32, according to the current location information of the terminal device, a corresponding relationship between the preset location information and the network mode is searched for, and a network mode corresponding to the current location information of the terminal device is obtained.
In step S33, the remaining traffic of the terminal device in the network mode corresponding to the current location information is obtained.
In the embodiment of the present disclosure, after acquiring the network mode corresponding to the current location information, the terminal device acquires the remaining traffic in the network mode. For example: if the traffic package corresponding to the terminal device is acquired to be 1G in the 4G network mode in Jiangsu province, the traffic in the 3G/2G network mode in other domestic areas except for the Jiangsu province is 300M, and when the terminal device is located in Nanjing City, the Nanjing City is found to belong to the Jiangsu province through matching, so that the network mode corresponding to the current position information of the terminal device is acquired to be the 4G mode, and the residual traffic is 1G. It should be noted that, if there is an internet record in the network mode corresponding to the location area where the terminal device is located before, the used traffic is subtracted from the traffic in the traffic package to obtain the remaining traffic in the network mode. The remaining traffic may be obtained in a short message manner, or the terminal device may monitor the service condition of the traffic, so as to obtain the remaining traffic.
In step S34, it is determined whether the remaining flow rate is greater than a preset threshold.
If the remaining traffic is greater than the preset threshold, step S35 is executed, and then the entire network mode switching process is completed, and if the remaining traffic is not greater than the preset threshold, step S36 is executed.
In step S35, the terminal device is accessed to the network mode corresponding to the location information where the terminal device is currently located.
In the embodiment of the present disclosure, since the traffic spent on surfing the internet in the network mode with the higher priority is greater than the traffic spent on surfing the internet in the network mode with the lower priority, if the remaining traffic is greater than the preset threshold, the terminal device is accessed to the network mode corresponding to the current location information of the terminal device. For example: if the network mode corresponding to the current position information of the terminal device is the 4G mode and the residual flow of the terminal device in the 4G mode is 800M, when the preset threshold value is 300M, the residual flow of the terminal device in the 4G mode is larger than the preset threshold value through judgment, and the terminal device is accessed into the 4G mode.
It should be noted that, when the remaining traffic of the terminal device in the network mode corresponding to the current location information is greater than the preset threshold, first, the signal of the network mode needs to be searched, when the signal of the network mode is searched and is available, the terminal device is accessed into the network mode, if the signal of the network mode is not searched or is unavailable, the signal of the network mode that is supported by the terminal device and has a lower priority needs to be searched according to the priority of the preset network mode, a specific process of which is similar to step S25, and details are not described here.
In step S36, the terminal device is accessed to the second network mode according to the priority of the preset network mode, where the priority of the second network mode is lower than the priority of the network mode corresponding to the location information where the terminal device is currently located.
In the embodiment of the present disclosure, if the remaining traffic is not greater than the preset threshold, the terminal device is accessed to the second network mode according to the priority of the preset network mode, where the priority of the second network mode is lower than the priority of the network mode corresponding to the location information where the terminal device is currently located. For example: if the network mode corresponding to the current position information of the terminal device is the 4G mode, and the residual flow of the terminal device in the 4G mode is 200M, when the preset threshold is 300M, judging that the residual flow of the terminal device in the 4G mode is not greater than the preset threshold, judging whether the terminal device supports the 3G mode with lower priority, if so, taking the 3G mode as the second network mode, if not, judging whether the terminal device supports the 2G mode, if so, taking the 2G mode as the second network mode, and the like.
The value is noted that when the remaining traffic of the terminal device in the network mode corresponding to the current location information is not greater than the preset threshold, the signal of the second network mode still needs to be searched, and the terminal device can be accessed into the second network mode only when the signal of the second network mode is searched and is available.
In the network mode switching method of this embodiment, the current location information of the terminal device is obtained, the corresponding relationship between the preset location information and the network mode is searched according to the current location information of the terminal device, the network mode corresponding to the current location information of the terminal device is obtained, and the terminal device is accessed to the network mode corresponding to the current location information of the terminal device. The terminal device searches the network mode corresponding to the current position information according to the current position information of the terminal device, and accesses the terminal device into the network mode corresponding to the current position information of the terminal device, so that the phenomenon that the network mode is switched manually when the position information of the terminal device changes in the related art is avoided, the operation process of switching the network mode can be simplified, and the switching efficiency of the network mode is improved. In addition, before the terminal equipment is accessed to the network mode corresponding to the position information of the current position of the terminal equipment, the residual flow of the terminal equipment in the network mode is judged, and when the residual flow is larger than a preset threshold value, the terminal equipment is accessed to the network mode, so that the flexibility of network mode switching is improved.
Optionally, on the basis of the embodiment shown in fig. 1, the current location information of the terminal device may be obtained in any one of the following manners: the information is obtained through a Global Positioning System (GPS) or a Public Land Mobile Network (PLMN). In addition, the frequency of acquiring the current position information of the terminal device may be periodic or real-time.
The above describes the implementation process of the network mode switching method, which can be implemented by the network mode switching device, and the internal function and structure of the network mode switching device will be explained below.
Fig. 4 is a block diagram illustrating a network mode switching device according to an example embodiment. As shown in fig. 4, the network mode switching device includes a first obtaining module 11, a searching module 12 and a first accessing module 13.
The first obtaining module 11 is configured to obtain the current location information of the terminal device.
The searching module 12 is configured to search a corresponding relationship between preset location information and a network mode according to the location information of the terminal device currently located acquired by the first acquiring module 11, and acquire the network mode corresponding to the location information of the terminal device currently located.
The first access module 13 is configured to access the terminal device to a network mode corresponding to the location information where the terminal device is currently located, which is found by the finding module 12.
As shown in fig. 5, fig. 5 is a block diagram of a network mode switching apparatus according to another exemplary embodiment, and on the basis of the embodiment shown in fig. 4, the apparatus further includes:
the first searching module 14 is configured to search for a signal of a network mode corresponding to the location information where the terminal device is currently located;
the second access module 15 is configured to access the terminal device to the network mode corresponding to the location information of the terminal device when the first search module 14 searches for a signal of the network mode corresponding to the location information of the terminal device, and the signal is available.
As shown in fig. 6, fig. 6 is a block diagram of a network mode switching apparatus according to still another exemplary embodiment, and on the basis of the embodiment shown in fig. 5, the apparatus further includes:
the second searching module 16 is configured to search for a signal of the first network mode according to a preset priority of the network mode when the first searching module 14 does not search for a signal of the network mode corresponding to the location information where the terminal device is currently located, or the signal of the network mode corresponding to the location information where the terminal device is currently located is unavailable; the priority of the first network mode is lower than that of the network mode corresponding to the position information where the terminal equipment is located currently;
the third access module 17 is configured to access the terminal device to the second network mode when the second search module 16 searches for the signal of the first network mode and the signal of the first network mode is available.
As shown in fig. 7, fig. 7 is a block diagram of a network mode switching apparatus according to still another exemplary embodiment, and on the basis of the embodiment shown in fig. 4, the apparatus further includes:
the second obtaining module 18 is configured to obtain the remaining traffic of the terminal device in the network mode corresponding to the current location information;
the judging module 19 is configured to judge whether the residual flow acquired by the second acquiring module 18 is greater than a preset threshold;
the fourth access module 20 is configured to access the terminal device to a network mode corresponding to the current location information of the terminal device when the determining module 19 determines that the remaining traffic is greater than the preset threshold.
As shown in fig. 8, fig. 8 is a block diagram of a network mode switching apparatus according to still another exemplary embodiment, and on the basis of the embodiment shown in fig. 7, the apparatus further includes:
the fifth access module 21 is configured to, when the determining module 19 determines that the remaining traffic is not greater than the preset threshold, access the terminal device to a second network mode according to a priority of a preset network mode, where the priority of the second network mode is lower than a priority of a network mode corresponding to the location information where the terminal device is currently located.
As shown in fig. 9, fig. 9 is a block diagram of a network mode switching apparatus according to still another exemplary embodiment, and based on the embodiment shown in fig. 4, the first obtaining module includes: a first acquisition submodule 111 and a second acquisition submodule 112.
The first obtaining submodule 111 is configured to obtain, through a global positioning system GPS, position information where the terminal device is currently located;
the second obtaining sub-module 112 is configured to obtain the location information where the terminal device is currently located through a public land mobile network PLMN.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The internal functions and structure of the network mode switching apparatus are described above, and as shown in fig. 10, the network mode switching apparatus can be implemented as:
acquiring current position information of the terminal equipment;
searching a corresponding relation between preset position information and a network mode according to the position information of the current position of the terminal equipment, and acquiring the network mode corresponding to the position information of the current position of the terminal equipment;
and accessing the terminal equipment into a network mode corresponding to the current position information of the terminal equipment.
In this embodiment, the network mode corresponding to the current location information of the terminal device is obtained by obtaining the current location information of the terminal device, searching for a corresponding relationship between preset location information and the network mode according to the current location information of the terminal device, and accessing the terminal device to the network mode corresponding to the current location information of the terminal device. The terminal device searches the network mode corresponding to the current position information according to the current position information of the terminal device, and accesses the terminal device into the network mode corresponding to the current position information of the terminal device, so that the phenomenon that the network mode is switched manually when the position information of the terminal device changes in the related art is avoided, the operation process of switching the network mode can be simplified, and the switching efficiency of the network mode is improved.
Fig. 11 is a block diagram illustrating a switching apparatus for a network mode according to an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 8, the apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 806 provides power to the various components of device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a mobile terminal, enable the mobile terminal to perform a network mode handover method, the method comprising:
acquiring current position information of the terminal equipment;
searching a corresponding relation between preset position information and a network mode according to the position information of the current position of the terminal equipment, and acquiring the network mode corresponding to the position information of the current position of the terminal equipment;
and accessing the terminal equipment into a network mode corresponding to the current position information of the terminal equipment.
Before the terminal device is accessed to the network mode corresponding to the current position information of the terminal device, the method includes:
searching a signal of a network mode corresponding to the current position information of the terminal equipment;
and if the signal of the network mode corresponding to the position information where the terminal equipment is currently located is searched and the signal is available, accessing the terminal equipment to the network mode corresponding to the position information where the terminal equipment is currently located.
Wherein the method further comprises:
if the signal of the network mode corresponding to the position information where the terminal equipment is located currently is not searched, or the signal is unavailable, searching the signal of the first network mode according to the priority of the preset network mode; the priority of the first network mode is lower than that of the network mode corresponding to the position information where the terminal equipment is located currently;
and when the signal of the first network mode is searched and is available, the terminal equipment is switched into the first network mode.
Before the terminal device is accessed to the network mode corresponding to the current position information of the terminal device, the method includes:
acquiring the residual flow of the terminal equipment in a network mode corresponding to the current position information;
judging whether the residual flow is larger than a preset threshold value or not;
and if the residual flow is larger than a preset threshold value, accessing the terminal equipment to a network mode corresponding to the position information where the terminal equipment is currently located.
Wherein the method further comprises:
and if the residual flow is not greater than the preset threshold, accessing the terminal equipment to a second network mode according to the priority of the preset network mode, wherein the priority of the second network mode is lower than the priority of the network mode corresponding to the position information where the terminal equipment is located currently.
The acquiring of the current location information of the terminal device includes:
acquiring the current position information of the terminal equipment through a Global Positioning System (GPS); or,
and acquiring the current position information of the terminal equipment through a Public Land Mobile Network (PLMN).
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.