CN106465160B - Network function switching method and device - Google Patents

Network function switching method and device Download PDF

Info

Publication number
CN106465160B
CN106465160B CN201680000710.1A CN201680000710A CN106465160B CN 106465160 B CN106465160 B CN 106465160B CN 201680000710 A CN201680000710 A CN 201680000710A CN 106465160 B CN106465160 B CN 106465160B
Authority
CN
China
Prior art keywords
network function
operation instruction
function
setting state
network
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.)
Active
Application number
CN201680000710.1A
Other languages
Chinese (zh)
Other versions
CN106465160A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Publication of CN106465160A publication Critical patent/CN106465160A/en
Application granted granted Critical
Publication of CN106465160B publication Critical patent/CN106465160B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user

Abstract

The disclosure provides a network function switching method and device, and belongs to the technical field of terminals. The method comprises the following steps: when a first operation instruction is received, storing the setting state of a first network function before the first operation instruction is received, wherein the first operation instruction is used for opening a second network function; when a second operation instruction is received, acquiring a setting state stored when the first operation instruction is received, wherein the second operation instruction is used for closing the second network function; and after the second operation instruction is executed, switching the first network function to the stored setting state. According to the method and the device, when the network environment where the mobile terminal is located is changed, the setting state of the network function before the change of the network environment is stored, and when the original network environment is recovered, the network function is switched to the setting state before the change of the network environment according to the pre-stored setting state, so that the manual switching of the network function can be avoided, and the intelligence of the system is improved.

Description

Network function switching method and device
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a method and an apparatus for switching network functions.
Background
With the development of terminal technology, the functions of mobile terminals are more and more powerful. For a mobile terminal, there may be multiple network functions. Such as WLAN (Wireless Local Area network) functionality and WLAN hotspot functionality. The WLAN function is a function of connecting a network by connecting a nearby WiFi (Wireless Fidelity) hotspot, and the WLAN hotspot function is a function of setting itself as a WiFi hotspot, and when the WLAN hotspot function of the mobile terminal is turned on, the mobile terminal may share its data traffic with other terminals for network connection. However, as the network environment in which the mobile terminal is located changes, a handoff between the WLAN function and the WLAN hotspot function may be involved.
Currently, the handoff procedure of the WLAN function and the WLAN hotspot function is as follows: when data traffic needs to be shared, the mobile terminal may turn on the WLAN hotspot function, and at the same time, the mobile terminal may automatically turn off the WLAN function. When the user finishes data traffic sharing, if the WiFi needs to be reconnected, the WLAN hotspot function needs to be manually turned off first, and then the WLAN function needs to be manually turned on.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a method and an apparatus for switching network functions.
According to a first aspect of the embodiments of the present disclosure, a method for switching a network function is provided, including:
when a first operation instruction is received, storing the setting state of a first network function before the first operation instruction is received, wherein the first operation instruction is used for opening a second network function;
when a second operation instruction is received, acquiring a setting state stored when the first operation instruction is received, wherein the second operation instruction is used for closing the second network function;
and after the second operation instruction is executed, switching the first network function to the stored setting state.
In a first implementation manner of the first aspect, the first network function is a WLAN function, and the second network function is a WLAN hotspot function.
In a second implementation manner of the first aspect, the storing the setting state of the first network function before receiving the first operation instruction includes:
storing the set state of the first network function prior to receiving the first operational instruction in a local configuration file.
In a third implementation manner of the first aspect, the storing the setting state of the first network function before receiving the first operation instruction in a local configuration file includes:
determining a target data item in the local configuration file, wherein the target data item is a data item used for storing the setting state of the second network function;
adding the set state of the first network function prior to receiving the first operation instruction to the target data item.
In a fourth implementation manner of the first aspect, the storing, when the setting state of the first network function before the receiving of the first operation instruction is stored, further includes:
storing a set state of a flight mode function, a data function, and the second network function at the time of receiving the first operating instruction.
According to a second aspect of the embodiments of the present disclosure, there is provided a network function switching apparatus, including:
the storage module is used for storing the setting state of a first network function before receiving a first operation instruction when the first operation instruction is received, wherein the first operation instruction is used for opening a second network function;
an obtaining module, configured to obtain, when a second operation instruction is received, a setting state stored when the first operation instruction is received, where the second operation instruction is used to close the second network function;
and the switching module is used for switching the first network function to the stored setting state after the second operation instruction is executed.
In a first implementation manner of the second aspect, the first network function is a WLAN function, and the second network function is a WLAN hotspot function.
In a second implementation manner of the second aspect, the storage module is further configured to store the setting state of the first network function before receiving the first operation instruction in a local configuration file.
In a third implementation manner of the second aspect, the storage module is further configured to add the setting state of the first network function before receiving the first operation instruction to a target data item of the local configuration file, where the target data item is a data item for storing the setting state of the second network function.
In a fourth implementation manner of the second aspect, the storage module is further configured to store setting states of the flight mode function, the data function, and the second network function when the first operation instruction is received.
According to a third aspect of the embodiments of the present disclosure, there is provided a network function switching apparatus, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when a first operation instruction is received, storing the setting state of a first network function before the first operation instruction is received, wherein the first operation instruction is used for opening a second network function;
when a second operation instruction is received, acquiring a setting state stored when the first operation instruction is received, wherein the second operation instruction is used for closing the second network function;
and after the second operation instruction is executed, switching the first network function to the stored setting state.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
when the network environment of the mobile terminal is changed, the setting state of the network function of the mobile terminal before the change of the network environment is stored, and when the original network environment is recovered, the network function is switched to the setting state before the change of the network environment according to the pre-stored setting state, so that the operation of manually switching the network function can be avoided, and the intelligence of a terminal system 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.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating a method for handover of a network function according to an example embodiment.
Fig. 2A is a flow chart illustrating a method for handover of a network function according to an example embodiment.
FIG. 2B is a schematic diagram illustrating a setup interface according to an exemplary embodiment.
FIG. 2C is a diagram illustrating the inclusion of data items in a local configuration file, according to an example embodiment.
FIG. 2D is a diagram illustrating the inclusion of data items in a local configuration file, according to an example embodiment.
FIG. 2E is a diagram illustrating the inclusion of data items in a local configuration file, according to an example embodiment.
Fig. 3 is a block diagram illustrating a network-enabled switching device in accordance with an exemplary embodiment.
Fig. 4 is a block diagram illustrating a network-enabled switching device in accordance with an example embodiment.
Detailed Description
To make the objects, technical solutions and advantages of the present disclosure more apparent, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
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 implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a method for handover of a network function according to an exemplary embodiment, where the method for handover of a network function is used in a mobile terminal, as shown in fig. 1, and includes the following steps.
In step 101, when a first operation instruction is received, a setting state of a first network function before the first operation instruction is received is stored, the first operation instruction being used to open a second network function.
In step 102, when a second operation instruction is received, the setting state stored when the first operation instruction is received is obtained, and the second operation instruction is used for closing the second network function.
In step 103, after executing the second operation instruction, the first network function is switched to the stored setting state.
In the embodiment of the disclosure, when the network environment of the mobile terminal is changed, the setting state of the network function of the mobile terminal before the change of the network environment is stored, and when the original network environment is restored, the network function is switched to the setting state before the change of the network environment according to the pre-stored setting state, so that the operation of manually switching the network function can be avoided, and the intelligence of the terminal system is improved.
In one possible implementation, the first network function is a WLAN function and the second network function is a WLAN hotspot function.
In one possible implementation, storing the setting state of the first network function before receiving the first operation instruction includes:
storing the set state of the first network function prior to receiving the first operating instruction in a local configuration file.
In one possible implementation, storing the setting state of the first network function before receiving the first operation instruction in a local configuration file includes:
determining a target data item in the local configuration file, wherein the target data item is a data item used for storing the setting state of the second network function;
adding the set state of the first network function before receiving the first operation instruction to the target data item.
In one possible implementation manner, when storing the setting state of the first network function before receiving the first operation instruction, the method further includes:
storing a set state of the flight mode function, the data function, and the second network function upon receiving the first operating instruction.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
Fig. 2A is a flowchart illustrating a method for switching a network function according to an exemplary embodiment, where the method for switching a network function is used in a mobile terminal, as shown in fig. 2A, and includes the following steps.
In step 201, the real-time setting status of each network function in the mobile terminal is stored.
The network functions of the mobile terminal may include an airplane mode function, a data function, a WLAN function, and a WLAN hotspot function. As shown in fig. 2B, the setting interface of the mobile terminal has a plurality of icons, each icon representing a setting button of a function, wherein the setting buttons of the network functions include, and selectable setting buttons, such as a setting button of a mute function, a setting button of a bluetooth function, and the like. The display state that sets up the button is the setting state of this function promptly, and each sets up the button and all has two kinds of display states: on/off, the display state of the setting button can be changed by a manual click operation, thereby changing the setting state of the function.
The storage refers to recording the setting state of the network function, and the specific form of storage may be storage in a temporary file. Further, in order to solidify the stored data, the setting state of the network function may also be stored in a local configuration file, and further, may also be stored in a data item in the local configuration file.
The real-time setting status refers to a setting status of the mobile terminal during operation, and for example, as shown in fig. 2C, the real-time setting status of each network function may be stored in a data item in a local configuration file. The data item a stores the real-time setting state of the flight mode function, the data item b stores the real-time setting state of the data function, the data item c stores the real-time setting state of the WLAN function, and the data item d stores the real-time setting state of the WLAN hotspot function.
In another embodiment, during the storing, the setting state of the WLAN function may be correspondingly stored in the data item where the WLAN hotspot function is located. The stored setting states of the WLAN function may store setting states at different times for different handover scenarios, for example, referring to fig. 2D, when the WLAN hotspot function is in an off state, a real-time setting state of the WLAN function may be stored, and referring to fig. 2E, when the WLAN hotspot function is in an on state, a setting state of the WLAN function before the WLAN hotspot function is on may be stored.
When the network environment changes, only the switching of one or more network functions may be involved, and thus, only the real-time setting status of one or more target network functions, which are the network functions where the switching occurs, may be stored. For example, if the first network function and the second network function are network functions for which linkage switching may occur in a switching scenario, only the real-time setting state of the first network function may be stored, or only the real-time setting states of the first network function and the second network function may be stored. For example, the first network function is a WLAN function and the second network function is a WLAN hotspot function. For example, in the process from turning on data traffic sharing to finishing data traffic sharing, only the switching between the WLAN hotspot function and the WLAN function is involved, so that only the real-time setting state of the WLAN function or only the real-time setting state of the WLAN function and the WLAN hotspot function may be stored.
If the setting state of each network function is not changed, the data stored in the local configuration file can be kept unchanged; if the setting state of a certain network function is changed, the local configuration file can update the data item of the network function to save the setting state of each network function in real time, or reestablish a new local configuration file to save the real-time setting state of each network function.
In step 202, when a first operation instruction is received, a setting state of the first network function before the first operation instruction is received is stored, and the first operation instruction is used for opening the second network function.
When the network environment where the mobile terminal is located changes, such as when data traffic needs to be shared, the user may trigger an operation instruction for opening the second network function by operating a setting button of the second network function. When the mobile terminal receives the operation instruction, the setting state of the first network function before receiving the operation instruction for opening the second network function is stored, and the storage may be the same as step 201.
Further, the real-time setting state of each network function may be stored, that is, when the setting state of any network function changes, the setting states of the remaining other network functions (for example, the flight mode function, the data function, and the like) are stored, so as to obtain the use habit of the user for the subsequent network behavior analysis.
Taking the data items stored in the local configuration file as an example, when an instruction to open the second network function is received, a target data item in the local configuration file is determined, where the target data item is a data item for storing the setting state of the second network function. Adding the set state of the first network function before receiving the first operation instruction to the target data item.
In step 203, when a second operation instruction is received, the setting state stored when the first operation instruction is received is obtained, and the second operation instruction is used for closing the second network function.
When the network environment changes, if the data traffic sharing needs to be ended, the user can trigger an operation instruction for closing the second network function by operating the setting button of the second network function. And when the second operation instruction is received, acquiring the setting state of the first network function stored when the first operation instruction is received by inquiring the pre-stored position. For example, the setting state of the second network function may be obtained by querying a pre-stored local configuration file, and further, the setting state of the second network function may be obtained by querying a target data item in the pre-stored local configuration file.
In step 204, a second operation instruction is executed to switch the first network function to the stored setting state.
And according to the acquired setting state stored when the first operation instruction is received, switching the first network function to the stored setting state. For example, the real-time setting state of the WLAN hotspot function is off, the real-time setting state of the WLAN function is on, when data traffic sharing is started, the state of the WLAN hotspot function is changed to on, the state of the WLAN function is changed to off, when data traffic sharing is ended, the WLAN hotspot function is turned off, and the state of the WLAN function is automatically switched from off to on.
Further, since the setting state of each network function can be stored in the data item of the local configuration file, the stored data cannot be lost, and when the mobile terminal is restarted, the network function of the mobile terminal can be automatically switched to the state before restarting according to the setting state stored in the configuration file.
In the embodiment of the disclosure, when the network environment of the mobile terminal is changed, the setting state of the network function of the mobile terminal before the change of the network environment is stored, and when the original network environment is restored, the network function is switched to the setting state before the change of the network environment according to the pre-stored setting state, so that the operation of manually switching the network function can be avoided, and the intelligence of the terminal system is improved.
Fig. 3 is a block diagram illustrating a switching arrangement of network functions in accordance with an exemplary embodiment. Referring to fig. 3, the apparatus includes a storage module 301, an acquisition module 302, and a switching module 303.
The storage module 301 is configured to store a setting state of the first network function before receiving a first operation instruction for opening the second network function, when the first operation instruction is received.
The obtaining module 302 is configured to obtain the setting state stored when the first operation instruction is received when a second operation instruction is received, where the second operation instruction is used to turn off the second network function.
The switching module 303 is configured to switch the first network function to the stored setting state after executing the second operation instruction.
In one possible implementation, the first network function is a WLAN function and the second network function is a WLAN hotspot function.
In one possible implementation, the storage module 301 is further configured to store the setting state of the first network function before receiving the first operation instruction in a local configuration file.
In one possible implementation, the storage module 301 is further configured to add the setting status of the first network function before receiving the first operation instruction to a target data item of the local configuration file, where the target data item is a data item for storing the setting status of the second network function.
In one possible implementation, the storage module 301 is further configured to store the setting states of the flight mode function, the data function and the second network function when receiving the first operation instruction.
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.
Fig. 4 is a block diagram illustrating a network function switching apparatus 400 according to an example embodiment. For example, the apparatus 400 may be a mobile terminal, such as a mobile phone, a tablet computer.
Referring to fig. 4, the apparatus 400 may include one or more of the following components: processing components 402, memory 404, power components 406, multimedia components 408, audio components 410, input/output (I/O) interfaces 412, sensor components 414, and communication components 416.
The processing component 402 generally controls overall operation of the apparatus 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the apparatus 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 404 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 supply components 406 provide power to the various components of device 400. The power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 400.
The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive 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 408 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 400 is in an operation mode, such as a photographing 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 410 is configured to output and/or input audio signals. For example, audio component 410 includes a Microphone (MIC) configured to receive external audio signals when apparatus 400 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 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 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 component 414 includes one or more sensors for providing various aspects of status assessment for the apparatus 400. For example, the sensor assembly 414 may detect an open/closed state of the apparatus 400, the relative positioning of the components, such as a display and keypad of the apparatus 400, the sensor assembly 414 may also detect a change in the position of the apparatus 400 or a component of the apparatus 400, the presence or absence of user contact with the apparatus 400, orientation or acceleration/deceleration of the apparatus 400, and a change in the temperature of the apparatus 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 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 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate wired or wireless communication between the apparatus 400 and other devices. The apparatus 400 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 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 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 400 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 switching method of the network functions.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the apparatus 400 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.
In an exemplary embodiment, there is also provided 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 the above-described handover method of a network function.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure 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 present disclosure is limited only by the appended claims.

Claims (9)

1. A method for switching network functions, the method comprising:
when a first operation instruction is received, storing the setting state of a first network function before the first operation instruction is received, wherein the first operation instruction is used for opening a second network function;
when a second operation instruction is received, acquiring a setting state stored when the first operation instruction is received, wherein the second operation instruction is used for closing the second network function;
after the second operation instruction is executed, switching the first network function to the stored setting state;
wherein the storing the setting state of the first network function before receiving the first operation instruction comprises: storing the set state of the first network function prior to receiving the first operating instruction in a local configuration file;
the method further comprises the following steps:
and when the mobile terminal is restarted, automatically switching the network function of the mobile terminal to the state before restarting according to the setting state stored in the local configuration file.
2. The method of claim 1, wherein the first network function is a WLAN function and the second network function is a WLAN hotspot function.
3. The method of claim 1, wherein storing the set state of the first network function prior to receiving the first operational instruction in a local configuration file comprises:
determining a target data item in the local configuration file, wherein the target data item is a data item used for storing the setting state of the second network function;
adding the set state of the first network function prior to receiving the first operation instruction to the target data item.
4. The method of claim 1, wherein storing the set state of the first network function prior to receiving the first operational instruction further comprises:
storing a set state of a flight mode function, a data function, and the second network function at the time of receiving the first operating instruction.
5. A network-enabled switching device, the device comprising:
the device comprises a storage module, a first switching module and a second switching module, wherein the storage module is used for storing the setting state of a first network function before receiving a first operating instruction when the first operating instruction is received, and the first operating instruction is used for opening a second network function;
an obtaining module, configured to obtain, when a second operation instruction is received, a setting state stored when the first operation instruction is received, where the second operation instruction is used to close the second network function;
the switching module is used for switching the first network function to the stored setting state after executing the second operation instruction;
the storage module is used for storing the setting state of the first network function before the first operation instruction is received in a local configuration file;
the apparatus is further configured to:
and when the mobile terminal is restarted, automatically switching the network function of the mobile terminal to the state before restarting according to the setting state stored in the local configuration file.
6. The apparatus of claim 5, wherein the first network function is a WLAN function and the second network function is a WLAN hotspot function.
7. The apparatus according to claim 5, wherein the storage module is configured to add the setting status of the first network function before receiving the first operation instruction to a target data item of the local configuration file, where the target data item is a data item for storing the setting status of the second network function.
8. The apparatus of claim 5, wherein the storage module is further configured to store the set states of the flight mode function, the data function, and the second network function upon receiving the first operating instruction.
9. A network-function switching apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when a first operation instruction is received, storing the setting state of a first network function before the first operation instruction is received, wherein the first operation instruction is used for opening a second network function;
when a second operation instruction is received, acquiring a setting state stored when the first operation instruction is received, wherein the second operation instruction is used for closing the second network function;
after the second operation instruction is executed, switching the first network function to the stored setting state;
wherein the storing the setting state of the first network function before receiving the first operation instruction comprises: storing the set state of the first network function prior to receiving the first operating instruction in a local configuration file;
the processor is further configured to:
and when the mobile terminal is restarted, automatically switching the network function of the mobile terminal to the state before restarting according to the setting state stored in the local configuration file.
CN201680000710.1A 2016-07-27 2016-07-27 Network function switching method and device Active CN106465160B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/091918 WO2018018465A1 (en) 2016-07-27 2016-07-27 Method and apparatus for switching network functions

Publications (2)

Publication Number Publication Date
CN106465160A CN106465160A (en) 2017-02-22
CN106465160B true CN106465160B (en) 2020-09-08

Family

ID=58215978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201680000710.1A Active CN106465160B (en) 2016-07-27 2016-07-27 Network function switching method and device

Country Status (2)

Country Link
CN (1) CN106465160B (en)
WO (1) WO2018018465A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107509108B (en) * 2017-08-23 2020-06-30 四川长虹电器股份有限公司 Method for recovering network type of smart television after restarting in abnormal condition
US11528328B2 (en) 2017-12-15 2022-12-13 Nokia Technologies Oy Stateless network function support in the core network
CN110233930B (en) * 2019-04-30 2021-01-05 深圳沸石科技股份有限公司 Automatic opening method for mobile phone hot spot
CN115297530B (en) * 2022-09-28 2023-04-07 荣耀终端有限公司 Network connection method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751114B (en) * 2008-12-22 2012-01-25 联想(北京)有限公司 Display switching method for mobile terminal and mobile terminal
CN103281799A (en) * 2013-05-31 2013-09-04 Tcl通讯(宁波)有限公司 Network connection switching method based on mobile phone hot spots and mobile phone
CN103476073A (en) * 2013-09-11 2013-12-25 中国联合网络通信集团有限公司 Cell falling-back method and equipment
CN105472676A (en) * 2015-12-21 2016-04-06 小米科技有限责任公司 Network connection method and device
CN105592346A (en) * 2015-12-17 2016-05-18 天脉聚源(北京)教育科技有限公司 Audio signal switching method and apparatus

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098761B (en) * 2009-12-10 2013-08-07 华为终端有限公司 Mobile communication terminal and network access method thereof
CN102111907A (en) * 2009-12-25 2011-06-29 康佳集团股份有限公司 Mobile terminal and method adopting same as wireless access point
CN103888983B (en) * 2014-03-31 2018-03-13 美的集团股份有限公司 Terminal WIFI mode of operations automatic switching method and system
US20170353872A1 (en) * 2014-12-19 2017-12-07 Thomson Licensing Method and device for device configuration

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101751114B (en) * 2008-12-22 2012-01-25 联想(北京)有限公司 Display switching method for mobile terminal and mobile terminal
CN103281799A (en) * 2013-05-31 2013-09-04 Tcl通讯(宁波)有限公司 Network connection switching method based on mobile phone hot spots and mobile phone
CN103476073A (en) * 2013-09-11 2013-12-25 中国联合网络通信集团有限公司 Cell falling-back method and equipment
CN105592346A (en) * 2015-12-17 2016-05-18 天脉聚源(北京)教育科技有限公司 Audio signal switching method and apparatus
CN105472676A (en) * 2015-12-21 2016-04-06 小米科技有限责任公司 Network connection method and device

Also Published As

Publication number Publication date
WO2018018465A1 (en) 2018-02-01
CN106465160A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
US9667774B2 (en) Methods and devices for sending virtual information card
US20200344661A1 (en) Unmanned aerial vehicle control method and apparatus
US20200401286A1 (en) Method, apparatus and medium for switching application interfaces
EP3110188A1 (en) Method and device for accessing operator network
EP3062196A1 (en) Method and apparatus for operating and controlling smart devices with hand gestures
EP2985989B1 (en) Method and device for acquiring multimedia data stream
US11221634B2 (en) Unmanned aerial vehicle control method and device, unmanned aerial vehicle and remote control device
CN106465160B (en) Network function switching method and device
US11284398B2 (en) Communication link configuration method and device
CN106507282B (en) Wireless connection control method and device
US11627615B2 (en) UAV indication method and apparatus
CN105227426B (en) Application interface switching method and device and terminal equipment
CN106933111B (en) Method and device for controlling equipment
CN107371222B (en) Virtual card disabling method and device
CN105786561B (en) Method and device for calling process
CN107885464B (en) Data storage method, device and computer readable storage medium
CN107948876B (en) Method, device and medium for controlling sound box equipment
CN108401518B (en) Channel coordination method and device
CN106899369B (en) Method and device for reserved playing of intelligent radio
CN106919302B (en) Operation control method and device of mobile terminal
CN114430370B (en) Method, device, equipment and storage medium for determining network slice
US20170316039A1 (en) Information acquisition method, device and system
CN109408271B (en) Response method and device for sliding cover operation and storage medium
CN109981729B (en) File processing method and device, electronic equipment and computer readable storage medium
CN107708106B (en) User identification card management method and user identification card management device

Legal Events

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