CN116567142A - Mode switching method, mode switching device, electronic device, storage medium and program product - Google Patents

Mode switching method, mode switching device, electronic device, storage medium and program product Download PDF

Info

Publication number
CN116567142A
CN116567142A CN202210109141.1A CN202210109141A CN116567142A CN 116567142 A CN116567142 A CN 116567142A CN 202210109141 A CN202210109141 A CN 202210109141A CN 116567142 A CN116567142 A CN 116567142A
Authority
CN
China
Prior art keywords
mode
electronic device
target
switching
electronic equipment
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.)
Pending
Application number
CN202210109141.1A
Other languages
Chinese (zh)
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.)
Chengdu TD Tech Ltd
Original Assignee
Chengdu TD Tech 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 Chengdu TD Tech Ltd filed Critical Chengdu TD Tech Ltd
Priority to CN202210109141.1A priority Critical patent/CN116567142A/en
Publication of CN116567142A publication Critical patent/CN116567142A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72466User interfaces specially adapted for cordless or mobile telephones with selection means, e.g. keys, having functions defined by the mode or the status of the device
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a mode switching method, a mode switching device, electronic equipment, a storage medium and a program product. The method is applied to the electronic equipment, the electronic equipment is provided with a first mode and a second mode, a first data storage space used by the electronic equipment for storing data in the first mode is mutually independent from a second data storage space used by the electronic equipment for storing data in the second mode, and the electronic equipment is currently in the first mode, and the method comprises the following steps: acquiring the value of at least one target parameter of the electronic equipment; at least one target parameter is associated with a mode switch condition; determining a target mode of the electronic equipment according to the value of at least one target parameter; the target mode is a first mode or a second mode; and if the target mode is the second mode, switching the electronic equipment from the first mode to the second mode. The method and the device improve the efficiency and accuracy of mode switching.

Description

Mode switching method, mode switching device, electronic device, storage medium and program product
Technical Field
The present invention relates to computer technology, and in particular, to a mode switching method, apparatus, electronic device, storage medium, and program product.
Background
Two modes may be set in an electronic device (e.g., a mobile phone), for example, a first mode is a normal mode and a second mode is a privacy mode. The electronic device may switch modes between the two modes.
When the mode is switched by using the existing mode switching method, unlocking passwords corresponding to different modes are required to be different. The electronic device first needs to receive the password entered by the user. Then, the electronic device needs to start loading the operation data corresponding to the mode after determining the mode of the electronic device according to the password input by the user. After the electronic device finishes loading the operation data corresponding to the mode, the electronic device can switch the mode.
However, the existing mode switching method has the problems of low efficiency and low accuracy.
Disclosure of Invention
The application provides a mode switching method, a mode switching device, electronic equipment, a storage medium and a program product, so that the efficiency and the accuracy of mode switching are improved.
In a first aspect, the present application provides a mode switching method, where the method is applied to an electronic device, the electronic device has a first mode and a second mode, a first data storage space used by the electronic device to store data in the first mode is independent of a second data storage space used by the electronic device to store data in the second mode, and the electronic device is currently in the first mode, and the method includes:
Acquiring the value of at least one target parameter of the electronic equipment; the at least one target parameter is associated with a mode switch condition;
determining a target mode of the electronic equipment according to the value of the at least one target parameter; the target mode is a first mode or a second mode;
and if the target mode is the second mode, switching the electronic equipment from the first mode to the second mode.
Optionally, before the electronic device is switched from the first mode to the second mode, the method further includes:
determining whether the electronic device is in a target state; the target state is a state allowing the electronic equipment to perform mode switching;
if the electronic equipment is determined to be in the target state, loading target operation data, wherein the target operation data is used for supporting the electronic equipment to operate in the second mode;
and switching the electronic equipment from the first mode to the second mode by using the target operation data.
Optionally, the target state is a standby state.
Optionally, if it is determined that the electronic device is not in the target state, the method further includes:
outputting first prompt information; the first prompt message is used for prompting a user to trigger the operation of switching the electronic equipment from the first mode to the second mode.
Optionally, the method further comprises:
switching the electronic device from the first mode to the second mode in response to the user-triggered operation of switching the electronic device from the first mode to the second mode;
or alternatively, the process may be performed,
and in response to the user-triggered operation of not switching the electronic device from the first mode to the second mode, maintaining the electronic device in the first mode.
Optionally, after switching the electronic device from the first mode to the second mode, the method further comprises:
responding to the operation of a first unlocking password input by a user, and displaying an interface corresponding to the second mode; the first unlocking password is a password required by the electronic equipment to enter the first mode and the second mode; the first mode is the same as the first unlocking password corresponding to the second mode.
Optionally, after switching the electronic device from the first mode to the second mode, the method further comprises:
responding to the operation of a second unlocking password corresponding to the target mode input by a user, and displaying an interface corresponding to the target mode; the second unlocking password corresponding to the first mode is different from the second unlocking password corresponding to the second mode.
Optionally, the method further comprises:
responding to a request of mode switching function setting triggered by a user, and displaying a mode switching function setting interface;
for any one of the at least one target parameter, receiving mapping relation between each value of the target parameter input by the user and the identifier of the mode through the mode switching function setting interface;
the determining the target mode of the electronic device according to the value of the at least one target parameter includes:
and determining the target mode of the electronic equipment according to the values of the at least one target parameter and the mapping relation between each value of the at least one target parameter and the identification of the mode.
In a second aspect, the present application provides a mode switching apparatus, where the apparatus is applied to an electronic device, the electronic device has a first mode and a second mode, a first data storage space used by the electronic device to store data in the first mode is independent of a second data storage space used by the electronic device to store data in the second mode, and the apparatus is currently in the first mode, where the apparatus includes:
The acquisition module is used for acquiring the value of at least one target parameter of the electronic equipment; the at least one target parameter is associated with a mode switch condition;
the processing module is used for determining a target mode of the electronic equipment according to the value of the at least one target parameter; when the target mode is the second mode, switching the electronic equipment from a first mode to the second mode; the target mode is a first mode or a second mode.
In a third aspect, the present application provides an electronic device, comprising: at least one processor, memory;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored in the memory to cause the electronic device to perform the method of any one of the first aspects.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon computer-executable instructions which, when executed by a processor, implement the method of any of the first aspects.
In a fifth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the method of any of the first aspects.
According to the mode switching method, the device, the electronic equipment, the storage medium and the program product, through the value of the at least one target parameter related to the mode switching condition, the electronic equipment can automatically determine the target mode of the electronic equipment. Then, when the target mode is the second mode, the electronic device may be switched from the first mode to the second mode. By the method, the electronic equipment does not need user operation in the process of switching from the first mode to the second mode, so that the problem caused by inaccurate unlocking passwords or identical unlocking passwords of different modes of the user memory is avoided, and the effect of improving the mode switching accuracy is achieved.
Drawings
For a clearer description of the technical solutions of the present application or of the prior art, the drawings that are used in the description of the embodiments or of the prior art will be briefly described, it being obvious that the drawings in the description below are some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an application scenario of a conventional mode switching method;
fig. 2 is a schematic flow chart of a mode switching method provided in the present application;
fig. 3 is a schematic diagram of an interface display of an electronic device provided in the present application;
FIG. 4 is a schematic diagram of an interface display of another electronic device provided in the present application;
FIG. 5 is a flow chart of another mode switching method provided in the present application;
FIG. 6 is a flow chart of another mode switching method provided in the present application;
FIG. 7 is a flow chart of another mode switching method provided in the present application;
FIG. 8 is a flow chart of another mode switching method provided in the present application;
FIG. 9 is a flow chart of another mode switching method provided in the present application;
FIG. 10 is a flow chart of another mode switching method provided in the present application;
FIG. 11 is a schematic structural diagram of a mode switching device provided in the present application;
fig. 12 is a schematic structural diagram of an electronic device provided in the present application.
Specific embodiments thereof have been shown by way of example in the drawings and will herein be described in more detail. These drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application, and it is apparent that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Taking the first mode as an example, the electronic device can operate in the first mode, and taking the second mode as the example, a first data storage space used by the electronic device for storing data in the first mode is independent of a second data storage space used by the electronic device for storing data in the second mode. That is, the electronic device may not invoke the data in the second data storage space while the electronic device is in the first mode. When the electronic device is in the second mode, the electronic device may not invoke the data in the first data storage space. For example, taking the electronic device as a mobile phone, the first mode may be, for example, a standard mode of the mobile phone, and the second mode may be, for example, a privacy mode of the mobile phone, or a security mode of the mobile phone.
Taking an electronic device as a mobile phone or a tablet computer as an example, fig. 1 is a schematic view of an application scenario of the existing mode switching method. As shown in fig. 1, the electronic device may display an interface for receiving an unlock code in response to a request by a user to open the electronic device. The unlocking password refers to a password required by the electronic device to enter the first mode or a password required by the electronic device to enter the second mode.
After receiving the unlock code input by the user, as shown in fig. 1, the electronic device may output, for example, an interface for prompting information that a mode switch is being performed. In addition, the electronic device needs to determine a mode corresponding to the unlocking password according to the unlocking password, and then load operation data corresponding to the mode. After the electronic device finishes loading the operation data corresponding to the mode, the electronic device can switch the mode. By the method, the user is required to input the unlocking password, and after the user inputs the unlocking password, the electronic equipment can complete the mode switching after waiting for a period of time, that is, the existing mode switching method has the problem of low efficiency.
In addition, when the mode is switched using the existing mode switching method, since the electronic device needs to determine the mode to be switched to based on the unlock code input by the user, the unlock codes corresponding to the modes corresponding to the different modes are required to be different, and the user needs to memorize the unlock codes of the different modes. In the case of using face recognition as an unlocking password, for example, since a user has only one characteristic face for unlocking, the accuracy of the above-described existing mode switching method may be low. Or, if the user does not accurately remember the unlocking passwords of different modes, the accuracy of the existing mode switching method may be lower.
Therefore, the existing mode switching method has the problems of lower efficiency and lower accuracy.
Considering that the reason why the conventional mode switching method has the problems is that after the user inputs the unlocking password, the electronic device performs mode switching according to the unlocking password input by the user, so the application provides a method for automatically performing mode switching on the electronic device without the unlocking password. Through the method, the electronic equipment can automatically judge the mode to be switched to and automatically realize the mode switching, and the mode switching is not performed after the user inputs the unlocking password, so that the efficiency and the accuracy of the mode switching are improved.
It should be understood that fig. 1 is only an exemplary illustration taking an electronic device as a mobile phone or a tablet computer, and the application is not limited to the type of the electronic device. Alternatively, the electronic device may be any terminal having a processing function, or a server or the like.
In addition, it should be understood that, the present application is an exemplary description of the mode switching method provided in the present application, taking a switching between the first mode and the second mode in the electronic device as an example, and the number of modes of the electronic device is not limited in the present application.
The technical scheme of the application is described in detail with reference to specific embodiments by taking an example that the electronic device has a first mode and a second mode and the electronic device is currently in the first mode. The following embodiments may be combined with each other, and some embodiments may not be repeated for the same or similar concepts or processes.
It should be understood that the present application is not limited to the specific details of the first mode and the second mode. The first mode or the second mode may be, for example, a security mode, a privacy mode, a teenager mode, an entertainment mode, a general mode, or the like. In some embodiments, the first mode or the second mode may be developed in advance for the user and stored in the electronic device, or may be a mode that is established by user definition for the user using the electronic device.
Fig. 2 is a flow chart of a mode switching method provided in the present application. As shown in fig. 2, the method may include the steps of:
s101, acquiring the value of at least one target parameter of the electronic equipment.
Wherein the at least one target parameter is associated with a mode switch condition. By way of example, the target parameter may include at least one of:
The method comprises the steps of identifying an area where the electronic equipment is located, identifying the current moment of the electronic equipment, identifying a network connected with the electronic equipment, identifying equipment connected with Bluetooth of the electronic equipment, representing a first detection result of whether the electronic equipment detects a target field, representing a second detection result of whether the electronic equipment detects a target user behavior, and the like.
Taking the above target parameter as an identifier of the area where the electronic device is located as an example, the electronic device may acquire location information of the electronic device, and then determine the identifier of the area where the electronic device is located according to the location information.
Taking the above-mentioned target parameter as an example of the first detection result for indicating whether the electronic device detects the target field, the application does not limit how the electronic device detects the target field. The electronic device may detect the target field by near field communication (Near Field Communication, NFC), for example.
Taking the above-mentioned target parameter as an example of the second detection result for characterizing whether the electronic device detects the target user behavior, the application does not limit how the electronic device detects the target user behavior. The target user behavior may be, for example, a combination action of physical keys set on the electronic device, a pressing action of a pressure-sensitive screen target position, a target shake track of the electronic device, a screen-off gesture for the electronic device, a target voice keyword, and the like.
S102, determining a target mode of the electronic equipment according to the value of at least one target parameter.
The target mode may be a first mode or a second mode.
Taking the electronic device to determine the target mode of the electronic device according to the value of one target parameter as an example, the electronic device may store in advance the mapping relationship between the value of the target parameter and the identifier of the mode, for example. After the electronic device obtains the value of the target parameter, the identifier of the mode corresponding to the value of the target parameter can be determined according to the value of the target parameter and the mapping relation between the value of the target parameter and the identifier of the mode, so as to determine the target mode of the electronic device.
Taking the electronic device to determine the target mode of the electronic device according to the values of the target parameters as an example, the electronic device may determine a plurality of initial modes according to the values of the target parameters. Then, the electronic device may set the mode having the largest number of occurrences among the plurality of initial modes as the target mode of the electronic device. Or, the electronic device may further execute the following steps S103 to S104 after determining that the plurality of initial modes are the same mode according to the values of the plurality of target parameters, so as to improve the accuracy of mode switching. In this implementation manner, if the determined multiple initial modes are not the same mode according to the values of the multiple target parameters, optionally, the electronic device may, for example, remain in the first mode.
S103, determining whether the target mode is a second mode.
For example, the electronic device may determine whether the target mode is the second mode by the identification of the target mode and the identification of the second mode. Optionally, if the identification of the target mode is the same as the identification of the second mode, the electronic device may determine that the target mode is the second mode. If the identification of the target mode is different from the identification of the second mode, the electronic device may determine that the target mode is not the second mode.
If it is determined that the target mode is the second mode, the electronic device may execute step S104 to switch from the first mode to the second mode. If the target mode is not the second mode, the electronic device may optionally not perform mode switching, that is, the electronic device may, for example, remain in the first mode.
S104, switching the electronic equipment from the first mode to the second mode.
Alternatively, the electronic device may load operation data for supporting the electronic device to operate in the second mode after determining that the target mode is the second mode, and then switch the electronic device from the first mode to the second mode using the operation data, for example.
In this embodiment, through the above-mentioned value of at least one target parameter related to the mode switching condition, the electronic device may automatically determine the target mode of the electronic device. Then, when the target mode is the second mode, the electronic device may be switched from the first mode to the second mode. By the method, the electronic equipment does not need user operation in the process of switching from the first mode to the second mode, so that the problem caused by inaccurate unlocking passwords or identical unlocking passwords of different modes of the user memory is avoided, and the effect of improving the mode switching accuracy is achieved.
As a possible implementation manner, before the electronic device is switched from the first mode to the second mode, the electronic device may further determine whether the electronic device is in a target state, and when it is determined that the electronic device is in the target state, perform mode switching, so as to improve efficiency of mode switching. The target state is a state allowing the electronic device to perform mode switching.
Alternatively, the target state may be, for example, a standby state. Alternatively, the standby state may refer to, for example, that the electronic device does not run any application program, and is in a screen locking state. When the electronic equipment is in a standby state, the mode of the electronic equipment is switched, so that the influence on the use of the electronic equipment by a user is avoided, misoperation of the user on the mode switching process is avoided, user experience is improved, and the accuracy of the mode switching is improved. Alternatively, the target state may be other preset states. For example, the preset state may be, for example, a preset time period (e.g., 2 to 3 a.m.).
It should be understood that the present application is not limited to how the electronic device determines whether the electronic device is in the target state. For example, taking the above target state as the standby state as an example, the electronic device may determine that the electronic device is in the target state when the electronic device is in the screen locking state and no application is running.
If the electronic device is determined to be in the target state, which indicates that the electronic device is allowed to perform mode switching, the electronic device may load target operation data for supporting the electronic device to operate in the second mode, and then switch the electronic device from the first mode to the second mode using the target operation data.
It should be understood that the present application is not limited to how the electronic device loads the above-described target operation data. For example, the target operation data may be stored in the electronic device in advance. In this implementation manner, the electronic device may read the target operation data from the data stored in the electronic device, so as to implement loading of the target operation data. Alternatively, the target operating data may be stored in another server or database. In this implementation manner, the electronic device may obtain the target operation data from the server or the database storing the target operation data, so as to implement loading of the target operation data.
If it is determined that the electronic device is not in the target state, optionally, the electronic device may output, for example, first prompt information for prompting a user to trigger an operation of switching the electronic device from the first mode to the second mode. By outputting the first prompt information, the user can know that the mode switching can be performed, and user experience is improved. For example, taking an example that the electronic device is provided with a display device, the electronic device may output the first prompt information through the display device.
In this implementation manner, optionally, after the electronic device outputs the first prompt information, the electronic device may further switch the electronic device from the first mode to the second mode in response to a user-triggered operation of switching the electronic device from the first mode to the second mode. Alternatively, the electronic device may also be responsive to a user-triggered operation that does not switch the electronic device from the first mode to the second mode, and optionally, the electronic device may maintain the electronic device in the first mode.
Still taking the electronic device as a mobile phone or a tablet computer as an example, fig. 3 is an interface display schematic diagram of an electronic device provided in the present application. As shown in fig. 3, when it is determined that the electronic device is not in the target state, the electronic device may display an interface including the first prompt information. It should be understood that the specific content of the first prompt information is not limited in this application, and fig. 3 is only an example. In addition, in the interface for displaying the first prompt information, the electronic device may further display a first control for characterizing switching the electronic device from the first mode to the second mode (as a yes control shown in fig. 3), and a second control for characterizing not switching the electronic device from the first mode to the second mode (as a no control shown in fig. 3).
The user may trigger an operation of switching the electronic device from the first mode to the second mode by clicking the first control, and the electronic device may further switch the electronic device from the first mode to the second mode in response to the operation. The user can trigger the operation of not switching the electronic device from the first mode to the second mode by clicking the second control, so that the electronic device is kept in the first mode.
In this embodiment, before the electronic device is switched from the first mode to the second mode, whether the electronic device is in the target state is further determined, and when the electronic device is determined to be in the target state, mode switching is performed, so that efficiency of mode switching is improved, interference to a user in using the electronic device is avoided, and user experience is further improved.
As one possible implementation, after switching the electronic device from the first mode to the second mode, in some embodiments, the electronic device may directly display an interface corresponding to the second mode in response to a user-triggered request to wake up the electronic device. It should be understood that the present application is not limited in the manner in which the electronic device is awakened.
In some embodiments, the electronic device may further display an interface corresponding to the second mode after receiving the unlock password input by the user. In the mode switching method provided in this embodiment, the unlocking password corresponding to the first mode and the unlocking password corresponding to the second mode may be the same or different, so that the flexibility of mode switching is improved.
Taking the example that the first unlocking password corresponding to the first mode is the same as the first unlocking password corresponding to the second mode, the electronic device may respond to the operation of the first unlocking password input by the user, and display an interface corresponding to the second mode. The first unlocking password is a password required by the electronic equipment to enter a first mode and a second mode. That is, in this embodiment, through automatic mode switching of the electronic device, different modes may correspond to the same unlocking password, so that the user does not need to remember passwords corresponding to the different modes, accuracy of mode switching of the electronic device is improved, and user experience is further improved.
Taking the example that the second unlocking password corresponding to the first mode is different from the second unlocking password corresponding to the second mode, after the electronic device is switched from the first mode to the second mode, the electronic device can respond to the operation of the second unlocking password corresponding to the target mode input by the user to display the interface corresponding to the target mode. By the method, the electronic equipment can not only switch the automatic mode, but also determine the interface corresponding to the target mode to be displayed according to the user operation, so that the flexibility of the electronic equipment is improved.
In this implementation manner, for example, the electronic device first receives an operation of inputting a first unlock code by a user, and displays an interface corresponding to the second mode. Then, the electronic device may display a mode switching interface in response to a mode switching request from the user while in the second mode. Through the mode switching interface, the electronic equipment can receive a second unlocking password corresponding to the target mode input by the user. Then, the electronic device may display an interface corresponding to the target mode in response to an operation of the second unlock password corresponding to the target mode input by the user.
As one possible implementation, the electronic device may also receive a mapping relationship between the values of the target parameters and the identifiers of the modes, which is input by the user and is used to determine the target mode of the electronic device. By receiving the mapping relation input by the user and determining the target mode of the electronic equipment based on the mapping relation, the electronic equipment can receive the mapping relation defined by the user, and accuracy of determining the target mode based on the mapping relation is improved.
Alternatively, the electronic device may display a mode switching function setting interface, for example, in response to a request for mode switching function setting triggered by a user. For any one of the at least one target parameter, the electronic device may set an interface through the mode switching function, and receive mapping relations between each value of the target parameter and the identifier of the mode, where the mapping relations are input by a user.
For example, still taking the electronic device as a mobile phone or a tablet computer as an example, fig. 4 is a schematic interface display of another electronic device provided in the present application. As shown in fig. 4, the setting interface of the electronic device may be displayed with, for example, a plurality of function setting options including a mode switching function setting. The user can trigger a mode switch function setting request by clicking a mode switch function setting option. In response to the request, the electronic device may display a mode switching function setting interface.
Taking the target parameter as an identifier of the network to which the electronic device is connected as an example, as shown in fig. 4, in the mode switching function setting interface, identifiers of a plurality of modes and input boxes corresponding to the identifiers of the modes may be displayed. For any mode, the electronic device can receive the identification of the network connected with the electronic device corresponding to the mode input by the user through the input box corresponding to the mode. Then, the electronic device may generate a mapping relationship between each value of the target parameter and the identifier of the mode according to the identifier of the network to which the electronic device corresponding to each mode is connected, which is input by the user.
In this implementation, optionally, the foregoing step S102 may include, for example: and determining the target mode of the electronic equipment according to the value of at least one target parameter and the mapping relation between each value of at least one target parameter and the identification of the mode.
For example, for any target parameter, the mapping relationship between each value of the target parameter and the identifier of the mode may be as shown in table 1 below:
TABLE 1
If the electronic device determines that the value of the target parameter is 1, according to the mapping relationship shown in table 1, the identifier of the target mode may be determined to be identifier 1.
Taking an electronic device as a terminal (e.g. a mobile phone) and a target parameter as an identifier of an area where the electronic device is located as an example, fig. 5 is a flow chart of another mode switching method provided in the present application. As shown in fig. 5, the electronic device may first perform creation of a parameter and a pattern, that is, creation of a mapping relationship between each value of the above-mentioned target parameter and an identifier of the pattern. The user can set the target geofence through a function setting interface of the electronic device. For example, a user may delineate one or more closed regions on a map displayed by an electronic device as a target geofence. Then, the target modes corresponding to the target geofences are set, that is, the mapping relationship between the areas and the modes is shown in fig. 5. The electronic device may write the mapping relationship between the region and the mode into configuration information of the electronic device.
In the mode switching stage, the terminal can read the mapping relation between the area and the mode in the configuration information, and according to the geographic position change, the mapping relation between the geographic position of the terminal and the area and the mode is compared, so that the terminal is determined to enter the set area. If yes, further judging whether the terminal meets the mode switching condition, namely determining whether the terminal is in the target state. And if the terminal meets the mode switching condition, switching the terminal to a mode corresponding to the area. If the terminal does not meet the mode switching condition, the terminal can wait for the next condition to be met, or output prompt information for prompting the user to manually confirm the mode switching. (it should be understood that Y in FIGS. 5-10 each represent "Yes" and N each represent "No")
When the mode is used, the terminal can receive an unlocking password input by a user, or a fingerprint, or a face, or the like, directly enter the switched mode, and then the user can normally use the terminal (such as a mobile phone). Optionally, the terminal may also receive a manual operation control of the user to exit the current mode. In some embodiments, when the terminal cannot acquire the geographic location, the terminal may not perform mode switching and maintain the current mode.
Taking an electronic device as a terminal (e.g. a mobile phone) and a target parameter as a current time of the electronic device as an example, fig. 6 is a flow chart of another mode switching method provided in the present application. As shown in fig. 6, the electronic device may first perform creation of a parameter and a pattern, that is, creation of a mapping relationship between each value of the above-mentioned target parameter and an identifier of the pattern. The user can create a time interval through a function setting interface that sets a time range. The user can then set the target pattern corresponding to each time interval, i.e., the time-to-pattern mapping relationship as shown in fig. 6.
In the mode switching stage, the terminal may determine whether the terminal satisfies the mode switching condition when the timer of the current mode expires, that is, whether the terminal is in the target state. And if the terminal meets the mode switching condition, switching the terminal to a mode corresponding to the area. If the terminal does not meet the mode switching condition, the terminal can wait for the next condition to be met, or output prompt information for prompting the user to manually confirm the mode switching.
In the mode of use, the terminal execution steps may refer to the foregoing embodiments, and will not be described herein.
Taking an electronic device as a terminal (e.g. a mobile phone) and a target parameter as an identifier of a network to which the electronic device is connected as an example, fig. 7 is a flow chart of another mode switching method provided in the present application. As shown in fig. 7, the electronic device may first perform creation of a parameter and a pattern, that is, creation of a mapping relationship between each value of the above-mentioned target parameter and an identifier of the pattern. The user can set the target wireless network identifier through the function setting interface of the electronic equipment so as to set the wireless network associated with each mode, and the wireless network identifier is written into the configuration information of the electronic equipment.
In the mode switching stage, the terminal can read the mapping relation between the network-free identifier and the mode in the configuration information, and compare the mapping relation between the wireless network identifier and the mode according to the identifier of the wireless network connected with the terminal. After determining that the radio network identity of the terminal connection is in the mapping relationship (i.e. in the list as illustrated in fig. 7), the terminal determines whether the network of the current connection is stable. If so, judging whether the terminal meets the mode switching condition, namely determining whether the terminal is in the target state. And if the terminal meets the mode switching condition, switching the terminal to a mode corresponding to the wireless network identifier. If the terminal does not meet the mode switching condition, the terminal can wait for the next condition to be met, or output prompt information for prompting the user to manually confirm the mode switching.
In the mode of use, the terminal execution steps may refer to the foregoing embodiments, and will not be described herein.
Taking an electronic device as a terminal (e.g. a mobile phone), and taking an identifier of a device connected to bluetooth of the electronic device as an example, fig. 8 is a flow chart of another mode switching method provided in the present application. As shown in fig. 8, the electronic device may first perform creation of a parameter and a pattern, that is, creation of a mapping relationship between each value of the above-mentioned target parameter and an identifier of the pattern. The user can set the Bluetooth identifier of the target device through the function setting interface of the electronic device. Then, the identification of the Bluetooth equipment associated with each mode is set, namely the mapping relation between the identification of the Bluetooth equipment and the mode. The electronic device may write the mapping relationship between the identifier of the bluetooth device and the mode into configuration information of the electronic device.
In the mode switching stage, the terminal may read the mapping relationship between the identifier of the bluetooth device and the mode in the configuration information, compare the identifier of the wireless network connected to the terminal with the mapping relationship between the identifier of the bluetooth device and the mode according to the identifier of the wireless network connected to the terminal, and determine whether the bluetooth device currently connected to the terminal is stable after determining that the identifier of the bluetooth device connected to the terminal is in the mapping relationship (i.e. in the list as illustrated in fig. 8). If so, judging whether the terminal meets the mode switching condition, namely determining whether the terminal is in the target state. And if the terminal meets the mode switching condition, switching the terminal to a mode corresponding to the identifier of the Bluetooth device. If the terminal does not meet the mode switching condition, the terminal can wait for the next condition to be met, or output prompt information for prompting the user to manually confirm the mode switching.
In the mode of use, the terminal execution steps may refer to the foregoing embodiments, and will not be described herein.
Taking the electronic device as a terminal (e.g. a mobile phone) and the target parameter as a first detection result for characterizing whether the electronic device detects the target field as an example, fig. 9 is a flowchart of another mode switching method provided in the present application. As shown in fig. 9, the electronic device may first perform creation of a parameter and a pattern, that is, creation of a mapping relationship between each value of the above-mentioned target parameter and an identifier of the pattern. The user can set the interface through the function of the electronic device, set the target field, and then set the NFC tag (or NFC field) associated with each mode, that is, the mapping relationship between the NFC tag and the mode. The electronic device may write the mapping relationship between the upper NFC tag and the mode into an NFC tag storage module of the electronic device.
In the mode switching stage, the terminal can read the mapping relation between the NFC tag and the mode in the NFC tag storage module, when the terminal (such as a mobile phone) is close to the NFC tag, the mobile phone can read the information of the NFC tag, and according to the mapping relation between the NFC tag and the mode, whether the information of the NFC tag read by the mobile phone is in a preset switching condition or not is determined. If yes, judging whether the terminal meets the mode switching condition, namely determining whether the terminal is in the target state. And if the terminal meets the mode switching condition, switching the terminal to a mode corresponding to the information of the NFC tag. If the terminal does not meet the mode switching condition, the terminal can wait for the next condition to be met, or output prompt information for prompting the user to manually confirm the mode switching.
In the mode of use, the terminal execution steps may refer to the foregoing embodiments, and will not be described herein.
Taking the electronic device as a terminal (e.g. a mobile phone) and the target parameter as a second detection result for characterizing whether the electronic device detects the target user behavior as an example, fig. 10 is a flowchart of another mode switching method provided in the present application. As shown in fig. 10, the electronic device may first perform creation of a parameter and a pattern, that is, creation of a mapping relationship between each value of the above-mentioned target parameter and an identifier of the pattern. The user can set the user behavior through the function setting interface of the electronic equipment so as to set the user behavior action triggering the switching, namely the mapping relation between the user behavior and the mode.
In the mode switching stage, the terminal may determine whether the terminal satisfies the mode switching condition, that is, whether the terminal is in the aforementioned target state, after detecting a specific user behavior through the system detection function. And if the terminal meets the mode switching condition, switching the terminal to a mode corresponding to the user behavior. If the terminal does not meet the mode switching condition, the terminal can output prompt information for prompting the user to manually confirm the mode switching.
In the mode of use, the terminal execution steps may refer to the foregoing embodiments, and will not be described herein.
Fig. 11 is a schematic structural diagram of a mode switching device provided in the present application. The device is applied to the electronic equipment. The electronic device has a first mode and a second mode, the electronic device being currently in the first mode. As shown in fig. 11, the apparatus includes: an acquisition module 21, and a processing module 22. Wherein, the liquid crystal display device comprises a liquid crystal display device,
the obtaining module 21 is configured to obtain a value of at least one target parameter of the electronic device. Wherein the at least one target parameter is related to a mode switching condition.
A processing module 22, configured to determine a target mode of the electronic device according to the value of the at least one target parameter; and when the target mode is the second mode, switching the electronic equipment from the first mode to the second mode. Wherein the target mode is a first mode or a second mode.
Optionally, the processing module 22 is further configured to determine, before the electronic device is switched from the first mode to the second mode, whether the electronic device is in a target state; and when the electronic equipment is determined to be in the target state, loading target operation data, and switching the electronic equipment from a first mode to the second mode by using the target operation data. The target state is a state allowing the electronic equipment to perform mode switching; the target operational data is for supporting the electronic device to operate in the second mode.
Optionally, the target state is a standby state.
Optionally, the apparatus may further include an output module 23, configured to output a first prompt message when it is determined that the electronic device is not in the target state. The first prompt message is used for prompting a user to trigger the operation of switching the electronic equipment from the first mode to the second mode.
Optionally, the processing module 22 is further configured to switch the electronic device from the first mode to the second mode in response to the operation triggered by the user to switch the electronic device from the first mode to the second mode. Or, the processing module 22 is further configured to, in response to the operation triggered by the user not to switch the electronic device from the first mode to the second mode, keep the electronic device in the first mode.
Optionally, the processing module 22 is further configured to, after the electronic device is switched from the first mode to the second mode, display an interface corresponding to the second mode in response to an operation of a first unlock code input by a user. The first unlocking password is a password required by the electronic equipment to enter the first mode and the second mode; the first mode is the same as the first unlocking password corresponding to the second mode.
Optionally, the processing module 22 is further configured to, after the electronic device is switched from the first mode to the second mode, display an interface corresponding to the target mode in response to an operation of a second unlock password corresponding to the target mode input by a user. The second unlocking password corresponding to the first mode is different from the second unlocking password corresponding to the second mode.
Optionally, the apparatus may further comprise a display module 24 for displaying a mode switching function setting interface in response to a user-triggered request for mode switching function setting. In this implementation manner, the obtaining module 21 may be further configured to receive, for any one of the at least one target parameter, a mapping relationship between each value of the target parameter and the identifier of the mode, which is input by the user, through the mode switching function setting interface. In this implementation manner, optionally, the processing module 22 is further configured to determine a target mode of the electronic device according to the values of the at least one target parameter and the mapping relationship between each value of the at least one target parameter and the identifier of the mode.
The mode switching device provided by the application is used for executing the mode switching method embodiment, and the implementation principle and the technical effect are similar, and are not repeated.
Fig. 12 is a schematic structural diagram of an electronic device provided in the present application. As shown in fig. 12, the electronic device 300 may include: at least one processor 301 and a memory 302.
A memory 302 for storing a program. In particular, the program may include program code including computer-operating instructions.
Memory 302 may comprise high-speed RAM memory or may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The processor 301 is configured to execute computer-executable instructions stored in the memory 302 to implement the mode switching method described in the foregoing method embodiments. The processor 301 may be a central processing unit (Central Processing Unit, abbreviated as CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, abbreviated as ASIC), or one or more integrated circuits configured to implement embodiments of the present application.
Optionally, the electronic device 300 may further comprise a communication interface 303. In a specific implementation, if the communication interface 303, the memory 302, and the processor 301 are implemented independently, the communication interface 303, the memory 302, and the processor 301 may be connected to each other and perform communication with each other through buses. The bus may be an industry standard architecture (Industry Standard Architecture, abbreviated ISA) bus, an external device interconnect (Peripheral Component, abbreviated PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated EISA) bus, among others. Buses may be divided into address buses, data buses, control buses, etc., but do not represent only one bus or one type of bus.
Alternatively, in a specific implementation, if the communication interface 303, the memory 302, and the processor 301 are integrated on a chip, the communication interface 303, the memory 302, and the processor 301 may complete communication through internal interfaces.
The present application also provides a computer-readable storage medium, which may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, etc., in which program codes may be stored, and in particular, the computer-readable storage medium stores program instructions for the methods in the above embodiments.
The present application also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the electronic device may read the execution instructions from the readable storage medium, and execution of the execution instructions by the at least one processor causes the electronic device to implement the mode switching method provided by the various embodiments described above.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (12)

1. A mode switching method, wherein the method is applied to an electronic device, the electronic device has a first mode and a second mode, a first data storage space used by the electronic device for storing data in the first mode is independent from a second data storage space used by the electronic device for storing data in the second mode, and the electronic device is currently in the first mode, the method comprises:
acquiring the value of at least one target parameter of the electronic equipment; the at least one target parameter is associated with a mode switch condition;
determining a target mode of the electronic equipment according to the value of the at least one target parameter; the target mode is a first mode or a second mode;
and if the target mode is the second mode, switching the electronic equipment from the first mode to the second mode.
2. The method of claim 1, wherein prior to the switching the electronic device from the first mode to the second mode, the method further comprises:
determining whether the electronic device is in a target state; the target state is a state allowing the electronic equipment to perform mode switching;
If the electronic equipment is determined to be in the target state, loading target operation data, wherein the target operation data is used for supporting the electronic equipment to operate in the second mode;
and switching the electronic equipment from the first mode to the second mode by using the target operation data.
3. The method of claim 2, wherein the target state is a standby state.
4. A method according to claim 2 or 3, wherein if it is determined that the electronic device is not in the target state, the method further comprises:
outputting first prompt information; the first prompt message is used for prompting a user to trigger the operation of switching the electronic equipment from the first mode to the second mode.
5. The method according to claim 4, wherein the method further comprises:
switching the electronic device from the first mode to the second mode in response to the user-triggered operation of switching the electronic device from the first mode to the second mode;
or alternatively, the process may be performed,
and in response to the user-triggered operation of not switching the electronic device from the first mode to the second mode, maintaining the electronic device in the first mode.
6. A method according to any of claims 1-3, wherein after switching the electronic device from the first mode to the second mode, the method further comprises:
responding to the operation of a first unlocking password input by a user, and displaying an interface corresponding to the second mode; the first unlocking password is a password required by the electronic equipment to enter the first mode and the second mode; the first mode is the same as the first unlocking password corresponding to the second mode.
7. A method according to any of claims 1-3, wherein after switching the electronic device from the first mode to the second mode, the method further comprises:
responding to the operation of a second unlocking password corresponding to the target mode input by a user, and displaying an interface corresponding to the target mode; the second unlocking password corresponding to the first mode is different from the second unlocking password corresponding to the second mode.
8. A method according to any one of claims 1-3, wherein the method further comprises:
responding to a request of mode switching function setting triggered by a user, and displaying a mode switching function setting interface;
For any one of the at least one target parameter, receiving mapping relation between each value of the target parameter input by the user and the identifier of the mode through the mode switching function setting interface;
the determining the target mode of the electronic device according to the value of the at least one target parameter includes:
and determining the target mode of the electronic equipment according to the values of the at least one target parameter and the mapping relation between each value of the at least one target parameter and the identification of the mode.
9. A mode switching apparatus, wherein the apparatus is applied to an electronic device, the electronic device having a first mode and a second mode, a first data storage space used by the electronic device to store data in the first mode being independent of a second data storage space used by the electronic device to store data in the second mode, the electronic device currently being in the first mode, the apparatus comprising:
the acquisition module is used for acquiring the value of at least one target parameter of the electronic equipment; the at least one target parameter is associated with a mode switch condition;
The processing module is used for determining a target mode of the electronic equipment according to the value of the at least one target parameter; when the target mode is the second mode, switching the electronic equipment from a first mode to the second mode; the target mode is a first mode or a second mode.
10. An electronic device, comprising: at least one processor, memory;
the memory stores computer-executable instructions;
the at least one processor executing computer-executable instructions stored in the memory causes the electronic device to perform the method of any one of claims 1-8.
11. A computer readable storage medium having stored thereon computer executable instructions which, when executed by a processor, implement the method of any of claims 1-8.
12. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the method of any of claims 1-8.
CN202210109141.1A 2022-01-28 2022-01-28 Mode switching method, mode switching device, electronic device, storage medium and program product Pending CN116567142A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210109141.1A CN116567142A (en) 2022-01-28 2022-01-28 Mode switching method, mode switching device, electronic device, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210109141.1A CN116567142A (en) 2022-01-28 2022-01-28 Mode switching method, mode switching device, electronic device, storage medium and program product

Publications (1)

Publication Number Publication Date
CN116567142A true CN116567142A (en) 2023-08-08

Family

ID=87486667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210109141.1A Pending CN116567142A (en) 2022-01-28 2022-01-28 Mode switching method, mode switching device, electronic device, storage medium and program product

Country Status (1)

Country Link
CN (1) CN116567142A (en)

Similar Documents

Publication Publication Date Title
US11914693B2 (en) Fingerprint recognition method and apparatus, and touchscreen terminal
EP3232299B1 (en) Physical key component, terminal, and touch response method and device
EP3547604B1 (en) Method and apparatus for security question generation and identity verification
US20170076080A1 (en) Method and system for processing input fingerprint information, and mobile terminal thereof
EP3144786B1 (en) Method and mobile terminal for processing fingerprint input information
CN111866270B (en) Application program control method and device and electronic equipment
WO2014026616A1 (en) Nfc-based information exchange method and device
US20180053177A1 (en) Resource transfer method, apparatus and storage medium
EP3699789A1 (en) Method and device for security verification and mobile terminal
JP2019504566A (en) Information image display method and apparatus
EP3407256A1 (en) Recognizing biological feature
CN112926710A (en) NFC analog card switching method, mobile terminal and computer readable storage medium
CN107105478A (en) network registering method and device
CN110891265B (en) Wireless connection control method and device, mobile terminal and storage medium
EP3567501B1 (en) Electronic device
CN109034808B (en) Operation method and device of payment application program and terminal equipment
CN110795012A (en) Control method of electronic device, and computer-readable storage medium
CN116567142A (en) Mode switching method, mode switching device, electronic device, storage medium and program product
CN107229490B (en) Multi-application smart card transaction method and multi-application smart card
US20210064770A1 (en) Electronic device for controlling access to device resource and operation method thereof
CN114237794A (en) Application available time duration display method, device, equipment and storage medium
CN109587325B (en) Application operation control method and device, storage medium and electronic equipment
CN107995063B (en) Network detection method, device, terminal and computer readable storage medium
WO2019134638A1 (en) Information processing method and device, terminal, and storage medium
CN112153219A (en) Alarm clock processing method and device, electronic equipment and readable storage medium

Legal Events

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