CN109451179B - Contextual model control method, terminal device and computer-readable storage medium - Google Patents

Contextual model control method, terminal device and computer-readable storage medium Download PDF

Info

Publication number
CN109451179B
CN109451179B CN201811622108.9A CN201811622108A CN109451179B CN 109451179 B CN109451179 B CN 109451179B CN 201811622108 A CN201811622108 A CN 201811622108A CN 109451179 B CN109451179 B CN 109451179B
Authority
CN
China
Prior art keywords
wireless network
preset
terminal equipment
contextual model
currently selected
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
CN201811622108.9A
Other languages
Chinese (zh)
Other versions
CN109451179A (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.)
Nanjing Weiwo Software Technology Co ltd
Original Assignee
Nanjing Weiwo Software Technology 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 Nanjing Weiwo Software Technology Co ltd filed Critical Nanjing Weiwo Software Technology Co ltd
Priority to CN201811622108.9A priority Critical patent/CN109451179B/en
Publication of CN109451179A publication Critical patent/CN109451179A/en
Application granted granted Critical
Publication of CN109451179B publication Critical patent/CN109451179B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/06Details of telephonic subscriber devices including a wireless LAN interface

Abstract

The invention provides a contextual model control method and terminal equipment, wherein the contextual model control method comprises the following steps: determining whether a wireless network currently connected with the terminal equipment is a preset wireless network; and when the wireless network currently connected with the terminal equipment is a preset wireless network, setting the contextual model option of the terminal equipment as unsettable when the contextual model of the terminal equipment is determined to be a preset contextual model. According to the scheme, the terminal equipment can be locked under the preset contextual model, the preset contextual model cannot be closed at will, the situation that a user closes the corresponding preset contextual model on the terminal equipment (for example, closes the flight mode on an airplane) due to neglect or misoperation under the preset contextual model is avoided, the use safety of the terminal equipment is ensured, the risk is avoided, and the problem that the risk still exists in the use of the flight mode of the mobile phone in the prior art is well solved.

Description

Contextual model control method, terminal device and computer-readable storage medium
Technical Field
The invention relates to the technical field of terminals, in particular to a contextual model control method and terminal equipment.
Background
With the release of the prohibition of the mobile phone 'flight mode' by the civil aviation administration, all the airlines continue to release the prohibition of the mobile phone 'flight mode', and how to effectively control the safe use of the mobile phone by passengers on the airplane in the conventional mobile phone flight mode has become an important subject. Because the mobile phone signal can interfere the electronic equipment on the airplane, the airplane is not allowed to use the mobile phone for communication, the related functions of the mobile phone signal are closed in the mode (namely, the mobile phone cannot make and receive calls and send short messages, the mobile phone does not have signal contact with the base station, and the mobile phone does not try to contact the base station), and the mobile phone can be opened to continuously use other functions, such as checking a phone book, appreciating articles and films on the mobile phone, and the like. The mobile phone can simply and quickly open and close the flight mode through a setting menu.
However, since the mode can be opened and closed simply and quickly, in flight, there is a possibility that the flight mode is closed again due to neglect or misoperation of individual passengers, so that the mobile phone is in the normal communication mode, certain risks are brought to the flight of civil airliners, aircraft accidents are caused, and huge life and property losses are brought to people. The mobile phone is used as a private article, and the crew members cannot monitor the mobile phone at any time and in real time. There is currently no strict and friendly way to solve this problem.
Disclosure of Invention
The invention aims to provide a contextual model control method and terminal equipment to solve the problem that the use of a mobile phone in a flight mode in the prior art still has risks.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a contextual model control method, applied to a terminal device, including:
determining whether a wireless network currently connected with the terminal equipment is a preset wireless network;
and when the wireless network currently connected with the terminal equipment is a preset wireless network, setting the contextual model option of the terminal equipment as unsettable when the contextual model of the terminal equipment is determined to be a preset contextual model.
In a second aspect, an embodiment of the present invention further provides a terminal device, including:
the first determining module is used for determining whether a wireless network currently connected with the terminal equipment is a preset wireless network;
the first processing module is used for setting the contextual model option of the terminal equipment as unsettable when the contextual model of the terminal equipment is determined to be a preset contextual model when the wireless network currently connected with the terminal equipment is a preset wireless network.
In a third aspect, an embodiment of the present invention further provides a terminal device, which includes a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the above-mentioned contextual model control method.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned scene mode control method are implemented.
In the embodiment of the invention, whether the wireless network currently connected with the terminal equipment is a preset wireless network is determined; when the wireless network currently connected with the terminal equipment is a preset wireless network, setting the contextual model option of the terminal equipment as unsettable when the contextual model of the terminal equipment is determined to be a preset contextual model; the method can lock the terminal equipment under the preset contextual model, and cannot close the preset contextual model at will, so that the situation that a user closes the corresponding preset contextual model on the terminal equipment (for example, closes the flight mode on an airplane) due to neglect or misoperation under the preset contextual model is avoided, the use safety of the terminal equipment is ensured, the risk is not brought, and the problem that the risk still exists in the use of the flight mode of the mobile phone in the prior art is well solved.
Drawings
Fig. 1 is a schematic flow chart of a contextual model control method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a terminal device interface according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an APK interface of an android application program according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a specific application flow of the contextual model control method according to the embodiment of the present invention;
fig. 5 is a first schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Aiming at the problem that the use of the 'flight mode' of the mobile phone in the prior art still has risks, the invention provides a contextual model control method which is applied to terminal equipment, as shown in figure 1, and comprises the following steps:
step 11: and determining whether the wireless network currently connected with the terminal equipment is a preset wireless network.
The predetermined wireless network may be a wireless network on an airplane or a wireless network in other specific environments, such as a wireless network in a hospital.
Step 12: and when the wireless network currently connected with the terminal equipment is a preset wireless network, setting the contextual model option of the terminal equipment as unsettable when the contextual model of the terminal equipment is determined to be a preset contextual model.
That is, after the terminal device is connected to the preset wireless network, the contextual model of the terminal device is locked in the preset contextual model.
The contextual model control method provided by the embodiment of the invention determines whether a wireless network currently connected with the terminal equipment is a preset wireless network; when the wireless network currently connected with the terminal equipment is a preset wireless network, setting the contextual model option of the terminal equipment as unsettable when the contextual model of the terminal equipment is determined to be a preset contextual model; the method can lock the terminal equipment under the preset contextual model, and cannot close the preset contextual model at will, so that the situation that a user closes the corresponding preset contextual model on the terminal equipment (for example, closes the flight mode on an airplane) due to neglect or misoperation under the preset contextual model is avoided, the use safety of the terminal equipment is ensured, the risk is not brought, and the problem that the risk still exists in the use of the flight mode of the mobile phone in the prior art is well solved.
With regard to specific time when the preset contextual model of the terminal device is turned on, the following two examples are given in the embodiment of the present invention:
the first example, before determining whether the wireless network to which the terminal device is currently connected is a preset wireless network, further includes: and after the starting operation of the user is detected, starting a preset contextual model of the terminal equipment.
Such as: after the user gets on the airplane, the user manually starts a flight mode and then connects a wireless network on the airplane;
thus, the method better meets the active requirements of users.
In a second example, when the wireless network to which the terminal device is currently connected is a preset wireless network, and it is determined that the contextual model of the terminal device is a preset contextual model, setting the contextual model option of the terminal device as unsettable includes: and when the wireless network currently connected with the terminal equipment is a preset wireless network, controlling to start a preset contextual model of the terminal equipment, and setting the contextual model option of the terminal equipment as unsettable.
That is, after the terminal device is connected to the preset wireless network, the terminal device automatically adjusts the contextual model to the preset contextual model and locks;
such as: after the user gets on the airplane, the wireless network on the airplane is connected, but the contextual model is not adjusted to the flight model; in this way, the terminal equipment can automatically adjust the contextual model to the preset contextual model and lock the contextual model; therefore, the use safety of the terminal equipment is ensured, and the risk is reduced.
In the embodiment of the present invention, the determining whether the wireless network currently connected to the terminal device is a preset wireless network includes: after an instruction for accessing the wireless network is detected, whether the feature information of the currently selected wireless network is matched with the preset feature information is confirmed; and when the characteristic information of the currently selected wireless network is matched with the preset characteristic information, accessing the currently selected wireless network, and confirming that the currently selected wireless network is the preset wireless network.
That is, when the terminal device accesses the wireless network, it is determined whether the currently selected wireless network is a preset wireless network (a wireless network in a special scene, such as an airplane);
the characteristic information may be a name of the wireless network, or special information (such as numbers or letters) in a routing address agreed with the terminal device in advance, but is not limited thereto;
therefore, the terminal equipment can conveniently and accurately identify whether the currently selected wireless network is the preset wireless network.
Specifically, when the feature information of the currently selected wireless network is matched with preset feature information, accessing the currently selected wireless network includes: when the characteristic information of the currently selected wireless network is matched with preset characteristic information, displaying prompt information and detecting whether an instruction for accessing the currently selected wireless network is acquired; when an instruction for accessing the currently selected wireless network is acquired, accessing the currently selected wireless network; the prompt message is used for reminding a user that when the terminal equipment is accessed to the currently selected wireless network, the terminal equipment is continuously in a preset contextual model and the setting of the contextual model option of the terminal equipment is forbidden in the period that the terminal equipment is connected to the currently selected wireless network.
Therefore, the user can be informed of the contextual model of the terminal equipment before being locked in the preset contextual model, so that the user is prevented from being mistakenly locked due to other special requirements, and the user experience is improved.
Further, after setting the profile option of the terminal device to be unsettable, the method further includes: and when the signal intensity of the currently connected wireless network is detected to be smaller than a preset threshold value, disconnecting the terminal equipment from the currently connected wireless network, and setting the contextual model option of the terminal equipment as settable.
This ensures subsequent normal use of the terminal device, such as: after the user gets off the airplane, the contextual model of the terminal device can be adjusted from the locked preset contextual model to other contextual models to carry out normal communication, and the requirement is met.
In the following, the contextual model control method provided by the embodiment of the present invention is further described, where the preset contextual model takes a flight mode as an example, the external environment takes a user carrying a terminal device to take an airplane as an example, and the terminal device takes a mobile phone as an example.
In view of the above technical problems, and considering that a passenger uses a mobile phone in a flight mode, the passenger can watch videos (online or local) and can communicate with the outside through a network, so that it is necessary to install a stable and high-speed wireless network WIFI in an airplane.
Taking a marine navigation as an example, assuming that a WIFI wireless network named as "HaiHang" is installed on an airplane, a passenger is prompted at a remarkable position on the airplane, the passenger can open a mobile phone flight mode according to the prompt after getting on the airplane and finding a seat, and then open a WLAN function, and the following process can be specifically realized:
(1) the passenger clicks and selects "HaiHang" in the searched wireless network list, and a prompt window (the prompt information) pops up at the moment, for example: the mobile phone locks the network in airplane flight, cannot randomly close the flight mode, and thank you for cooperation. The passenger can choose to "agree" or "disagree," and only after agreeing, can access the wireless network by entering his seat number.
(2) After the passenger selects "agree", the mobile phone is accessed to the wireless network, and meanwhile, the option of "offline mode (flight mode)" is grayed out, similar to the effect in fig. 2 (the content of grayed out is indicated by a dashed box), the user can not click to turn off:
specifically, what characteristics are defined in advance with the mobile phone by setting on a router of the airplane represents a wireless network on the airplane, and a graying option needs to be set in an offline mode (flight mode) after connection.
(3) The passengers use the wireless network in the whole process, the situation that the passengers are dense and the bandwidth of the internet is limited is considered, the servers can be installed on the plane to store videos and music for users to watch on line, and internet resources are saved.
(4) The crew can see which seats of passengers have access to WIFI via the corresponding APK, such as: the accessed display is a solid box and the non-accessed display is an open box (empty seats are shown as free boxes with an "x"). As shown in fig. 3, no WIFI is accessed by the passengers in rows 1 and 3. The crew can spot and focus.
(5) When the airplane lands on the ground, the WIFI wireless network can be closed by a crew member in a unified manner, after the WIFI is disconnected by the mobile phone, the flight mode option is automatically restored to be operable, and passengers can close the flight mode and restore the normal communication function of the mobile phone; even if the crew forgets to turn off the WIFI, after the passengers get off the airplane and cannot search the WIFI, the mobile phone is automatically disconnected, and the flight mode menu is restored to be operable, so that the normal use of the mobile phone of the user is ensured.
Specifically, the implementation of the scheme provided by the embodiment of the present invention can be shown in fig. 4, and includes:
step 41: the mobile phone is carried by a passenger to board and take a seat, and receives a WIFI prompt;
step 42: the mobile phone is accessed to WIFI, and the flight mode is locked;
step 43: the mobile phone carries out internet surfing and online video watching;
step 44: the APK displays whether the mobile phones corresponding to all seats are accessed to the wireless network according to the regulations or not, and the crew uses the APK to supervise the passengers;
step 45: passengers who do not meet the requirements are persuaded by a crew, or the reminding device is controlled by the controller to remind;
step 46: the airplane lands, the mobile phone is disconnected from the network, and the use is recovered (the 'flight mode' menu is recovered to be operable).
Therefore, the scheme provided by the embodiment of the invention can effectively control the use of the mobile phone by the user in places such as airplane flight and similar special environments where the mobile phone communication function cannot be used, so that the interference of mobile phone signals to communication equipment is reduced to the greatest extent, and the harm to personal safety and property is reduced.
Here, the application of the scheme to the flight airplane is only an example, and similar electronic devices such as medical treatment and the like may also be interfered by the communication of the mobile phone, and the scheme may also be adopted, which is not limited herein.
An embodiment of the present invention further provides a terminal device, as shown in fig. 5, including:
a first determining module 51, configured to determine whether a wireless network currently connected to the terminal device is a preset wireless network;
the first processing module 52 is configured to set the contextual model option of the terminal device to be unsettable when the wireless network to which the terminal device is currently connected is a preset wireless network and the contextual model of the terminal device is determined to be a preset contextual model.
The terminal equipment provided by the embodiment of the invention determines whether the wireless network currently connected with the terminal equipment is a preset wireless network; when the wireless network currently connected with the terminal equipment is a preset wireless network, setting the contextual model option of the terminal equipment as unsettable when the contextual model of the terminal equipment is determined to be a preset contextual model; the method can lock the terminal equipment under the preset contextual model, and cannot close the preset contextual model at will, so that the situation that a user closes the corresponding preset contextual model on the terminal equipment (for example, closes the flight mode on an airplane) due to neglect or misoperation under the preset contextual model is avoided, the use safety of the terminal equipment is ensured, the risk is not brought, and the problem that the risk still exists in the use of the flight mode of the mobile phone in the prior art is well solved.
With regard to specific time when the preset contextual model of the terminal device is turned on, the following two examples are given in the embodiment of the present invention:
in a first example, the terminal device further includes: the first starting module is used for starting the preset contextual model of the terminal equipment after detecting the starting operation of a user before determining whether the wireless network currently connected with the terminal equipment is a preset wireless network.
In a second example, the first processing module comprises: and the first processing submodule is used for controlling to start the preset contextual model of the terminal equipment and setting the contextual model option of the terminal equipment as unsettable when the wireless network currently connected with the terminal equipment is a preset wireless network.
In an embodiment of the present invention, the first determining module includes: the first confirming submodule is used for confirming whether the feature information of the currently selected wireless network is matched with the preset feature information or not after detecting the instruction of accessing the wireless network; and the second processing submodule is used for accessing the currently selected wireless network and confirming that the currently selected wireless network is a preset wireless network when the characteristic information of the currently selected wireless network is matched with preset characteristic information.
Specifically, the second processing sub-module includes: the first processing unit is used for displaying prompt information and detecting whether an instruction for accessing the currently selected wireless network is acquired or not when the characteristic information of the currently selected wireless network is matched with preset characteristic information; the second processing unit is used for accessing the currently selected wireless network when an instruction for accessing the currently selected wireless network is obtained; the prompt message is used for reminding a user that when the terminal equipment is accessed to the currently selected wireless network, the terminal equipment is continuously in a preset contextual model and the setting of the contextual model option of the terminal equipment is forbidden in the period that the terminal equipment is connected to the currently selected wireless network.
Further, the terminal device further includes: and the second processing module is used for disconnecting the connection between the terminal equipment and the currently connected wireless network and setting the contextual model option of the terminal equipment as settable when the situation that the contextual model option of the terminal equipment is unsettable and the signal intensity of the currently connected wireless network is detected to be smaller than a preset threshold value is detected.
The terminal device provided in the embodiment of the present invention can implement each process implemented by the terminal device in the method embodiments of fig. 1 to fig. 4, and is not described herein again to avoid repetition.
Fig. 6 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present invention, where the terminal device 60 includes, but is not limited to: radio frequency unit 61, network module 62, audio output unit 63, input unit 64, sensor 65, display unit 66, user input unit 67, interface unit 68, memory 69, processor 610, and power supply 611. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 6 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 610 is configured to determine whether a wireless network currently connected to the terminal device is a preset wireless network; and when the wireless network currently connected with the terminal equipment is a preset wireless network, setting the contextual model option of the terminal equipment as unsettable when the contextual model of the terminal equipment is determined to be a preset contextual model.
In the embodiment of the invention, whether the wireless network currently connected with the terminal equipment is a preset wireless network is determined; when the wireless network currently connected with the terminal equipment is a preset wireless network, setting the contextual model option of the terminal equipment as unsettable when the contextual model of the terminal equipment is determined to be a preset contextual model; the method can lock the terminal equipment under the preset contextual model, and cannot close the preset contextual model at will, so that the situation that a user closes the corresponding preset contextual model on the terminal equipment (for example, closes the flight mode on an airplane) due to neglect or misoperation under the preset contextual model is avoided, the use safety of the terminal equipment is ensured, the risk is not brought, and the problem that the risk still exists in the use of the flight mode of the mobile phone in the prior art is well solved.
Optionally, the processor 610 is further configured to, before determining whether the wireless network currently connected to the terminal device is a preset wireless network, start a preset contextual model of the terminal device after detecting a start operation of a user.
Optionally, the processor 610 is specifically configured to, when the wireless network currently connected to the terminal device is a preset wireless network, control to start a preset contextual model of the terminal device, and set a contextual model option of the terminal device as unsettable.
Optionally, the processor 610 is specifically configured to, after detecting an instruction to access the wireless network, determine whether feature information of the currently selected wireless network matches preset feature information; and when the characteristic information of the currently selected wireless network is matched with the preset characteristic information, accessing the currently selected wireless network, and confirming that the currently selected wireless network is the preset wireless network.
Optionally, the processor 610 is specifically configured to, when the feature information of the currently selected wireless network matches preset feature information, display a prompt message and detect whether an instruction for accessing the currently selected wireless network is obtained; when an instruction for accessing the currently selected wireless network is acquired, accessing the currently selected wireless network; the prompt message is used for reminding a user that when the terminal equipment is accessed to the currently selected wireless network, the terminal equipment is continuously in a preset contextual model and the setting of the contextual model option of the terminal equipment is forbidden in the period that the terminal equipment is connected to the currently selected wireless network.
Optionally, the processor 610 is further configured to, after setting the profile option of the terminal device to be unsettable, disconnect the terminal device from the currently connected wireless network when it is detected that the signal strength of the currently connected wireless network is smaller than a preset threshold, and set the profile option of the terminal device to be settable.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 61 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. Typically, the radio frequency unit 61 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 61 can also communicate with a network and other devices through a wireless communication system.
The terminal device provides wireless broadband internet access to the user via the network module 62, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 63 may convert audio data received by the radio frequency unit 61 or the network module 62 or stored in the memory 69 into an audio signal and output as sound. Also, the audio output unit 63 may also provide audio output related to a specific function performed by the terminal device 60 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 63 includes a speaker, a buzzer, a receiver, and the like.
The input unit 64 is used to receive an audio or video signal. The input Unit 64 may include a Graphics Processing Unit (GPU) 641 and a microphone 642, and the Graphics processor 641 processes image data of still pictures or video obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 66. The image frames processed by the graphic processor 641 may be stored in the memory 69 (or other storage medium) or transmitted via the radio frequency unit 61 or the network module 62. The microphone 642 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 61 in case of the phone call mode.
The terminal device 60 also includes at least one sensor 65, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 661 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 661 and/or the backlight when the terminal device 60 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 65 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 66 is used to display information input by the user or information provided to the user. The Display unit 66 may include a Display panel 661, and the Display panel 661 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 67 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 67 includes a touch panel 671 and other input devices 672. The touch panel 671, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 671 (e.g., operations by a user on or near the touch panel 671 using a finger, a stylus, or any other suitable object or attachment). The touch panel 671 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 671 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 671, the user input unit 67 may also include other input devices 672. In particular, the other input devices 672 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 671 can be overlaid on the display panel 661, and when the touch panel 671 detects a touch operation on or near the touch panel 671, the touch panel 671 can be transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 can provide a corresponding visual output on the display panel 661 according to the type of the touch event. Although in fig. 6, the touch panel 671 and the display panel 661 are implemented as two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 671 and the display panel 661 can be integrated to implement the input and output functions of the terminal device, which is not limited herein.
The interface unit 68 is an interface for connecting an external device to the terminal apparatus 60. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 68 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 60 or may be used to transmit data between the terminal apparatus 60 and the external device.
The memory 69 may be used to store software programs as well as various data. The memory 69 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 69 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 610 is a control center of the terminal device, connects various parts of the entire terminal device by various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 69 and calling data stored in the memory 69, thereby performing overall monitoring of the terminal device. Processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The terminal device 60 may further include a power supply 611 (such as a battery) for supplying power to various components, and preferably, the power supply 611 may be logically connected to the processor 610 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 60 includes some functional modules that are not shown, and are not described in detail here.
Preferably, an embodiment of the present invention further provides a terminal device, which includes a processor 610, a memory 69, and a computer program stored in the memory 69 and capable of running on the processor 610, where the computer program is executed by the processor 610 to implement each process of the above-mentioned contextual model control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned contextual model control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A contextual model control method is applied to terminal equipment and is characterized by comprising the following steps:
determining whether a wireless network currently connected with the terminal equipment is a preset wireless network;
when the wireless network currently connected with the terminal equipment is a preset wireless network, setting the contextual model option of the terminal equipment as unsettable when the contextual model of the terminal equipment is determined to be a preset contextual model;
the determining whether the wireless network currently connected to the terminal device is a preset wireless network includes:
after an instruction for accessing the wireless network is detected, whether the feature information of the currently selected wireless network is matched with the preset feature information is confirmed;
when the feature information of the currently selected wireless network is matched with preset feature information, accessing the currently selected wireless network, and confirming that the currently selected wireless network is a preset wireless network;
when the feature information of the currently selected wireless network is matched with preset feature information, accessing the currently selected wireless network comprises the following steps:
when the characteristic information of the currently selected wireless network is matched with preset characteristic information, displaying prompt information and detecting whether an instruction for accessing the currently selected wireless network is acquired;
when an instruction for accessing the currently selected wireless network is acquired, accessing the currently selected wireless network;
the prompt message is used for reminding a user that when the terminal equipment is accessed to the currently selected wireless network, the terminal equipment is continuously in a preset contextual model and the setting of the contextual model option of the terminal equipment is forbidden in the period that the terminal equipment is connected to the currently selected wireless network.
2. The method according to claim 1, wherein before determining whether the wireless network to which the terminal device is currently connected is a preset wireless network, the method further comprises:
and after the starting operation of the user is detected, starting a preset contextual model of the terminal equipment.
3. The method according to claim 1, wherein when the wireless network to which the terminal device is currently connected is a preset wireless network, and it is determined that the contextual model of the terminal device is a preset contextual model, setting the contextual model option of the terminal device to be unsettable comprises:
and when the wireless network currently connected with the terminal equipment is a preset wireless network, controlling to start a preset contextual model of the terminal equipment, and setting the contextual model option of the terminal equipment as unsettable.
4. The contextual model control method according to any one of claims 1 to 3, further comprising, after setting the contextual model option of the terminal device to be unsettable:
and when the signal intensity of the currently connected wireless network is detected to be smaller than a preset threshold value, disconnecting the terminal equipment from the currently connected wireless network, and setting the contextual model option of the terminal equipment as settable.
5. A terminal device, comprising:
the first determining module is used for determining whether a wireless network currently connected with the terminal equipment is a preset wireless network;
the first processing module is used for setting the contextual model option of the terminal equipment as unsettable when the contextual model of the terminal equipment is determined to be a preset contextual model when the wireless network currently connected with the terminal equipment is a preset wireless network;
the first determining module includes:
the first confirming submodule is used for confirming whether the feature information of the currently selected wireless network is matched with the preset feature information or not after detecting the instruction of accessing the wireless network;
the second processing submodule is used for accessing the currently selected wireless network and confirming that the currently selected wireless network is a preset wireless network when the characteristic information of the currently selected wireless network is matched with preset characteristic information;
the second processing submodule includes:
the first processing unit is used for displaying prompt information and detecting whether an instruction for accessing the currently selected wireless network is acquired or not when the characteristic information of the currently selected wireless network is matched with preset characteristic information;
the second processing unit is used for accessing the currently selected wireless network when an instruction for accessing the currently selected wireless network is obtained;
the prompt message is used for reminding a user that when the terminal equipment is accessed to the currently selected wireless network, the terminal equipment is continuously in a preset contextual model and the setting of the contextual model option of the terminal equipment is forbidden in the period that the terminal equipment is connected to the currently selected wireless network.
6. The terminal device according to claim 5, further comprising:
the first starting module is used for starting the preset contextual model of the terminal equipment after detecting the starting operation of a user before determining whether the wireless network currently connected with the terminal equipment is a preset wireless network.
7. The terminal device of claim 5, wherein the first processing module comprises:
and the first processing submodule is used for controlling to start the preset contextual model of the terminal equipment and setting the contextual model option of the terminal equipment as unsettable when the wireless network currently connected with the terminal equipment is a preset wireless network.
8. The terminal device according to any one of claims 5 to 7, further comprising:
and the second processing module is used for disconnecting the connection between the terminal equipment and the currently connected wireless network and setting the contextual model option of the terminal equipment as settable when the situation that the contextual model option of the terminal equipment is unsettable and the signal intensity of the currently connected wireless network is detected to be smaller than a preset threshold value is detected.
9. A terminal device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the contextual model control method according to any one of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the scene mode control method according to any one of claims 1 to 4.
CN201811622108.9A 2018-12-28 2018-12-28 Contextual model control method, terminal device and computer-readable storage medium Active CN109451179B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811622108.9A CN109451179B (en) 2018-12-28 2018-12-28 Contextual model control method, terminal device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811622108.9A CN109451179B (en) 2018-12-28 2018-12-28 Contextual model control method, terminal device and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN109451179A CN109451179A (en) 2019-03-08
CN109451179B true CN109451179B (en) 2020-10-23

Family

ID=65541975

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811622108.9A Active CN109451179B (en) 2018-12-28 2018-12-28 Contextual model control method, terminal device and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN109451179B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110187933A (en) * 2019-05-27 2019-08-30 维沃移动通信有限公司 A kind of application program prohibited method and terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9019068B2 (en) * 2010-04-01 2015-04-28 Apple Inc. Method, apparatus and system for automated change of an operating mode relating to a wireless device
CN106060188A (en) * 2016-05-31 2016-10-26 合肥联宝信息技术有限公司 Method for controlling scene mode of electronic device, electronic device and check-in system
CN106445596A (en) * 2016-09-27 2017-02-22 依偎科技(南昌)有限公司 Method and device for managing setting items
CN106534504A (en) * 2016-10-31 2017-03-22 深圳众思科技有限公司 Electronic device control method and device, and electronic device
CN106843885A (en) * 2017-01-24 2017-06-13 维沃移动通信有限公司 The method of controlling operation thereof and mobile terminal of a kind of mobile terminal
CN108377284A (en) * 2016-10-12 2018-08-07 中兴通讯股份有限公司 A kind of switching method and mobile terminal of contextual model

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104270520B (en) * 2014-09-26 2017-03-08 苏州佳世达电通有限公司 A kind of network management based on mobile terminal and system
CN107026935B (en) * 2016-10-28 2020-10-02 珠海格力电器股份有限公司 Mobile device and permission control method and device of mobile device
CN108763884B (en) * 2018-04-18 2022-01-11 Oppo广东移动通信有限公司 Authority management method, device, mobile terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9019068B2 (en) * 2010-04-01 2015-04-28 Apple Inc. Method, apparatus and system for automated change of an operating mode relating to a wireless device
CN106060188A (en) * 2016-05-31 2016-10-26 合肥联宝信息技术有限公司 Method for controlling scene mode of electronic device, electronic device and check-in system
CN106445596A (en) * 2016-09-27 2017-02-22 依偎科技(南昌)有限公司 Method and device for managing setting items
CN108377284A (en) * 2016-10-12 2018-08-07 中兴通讯股份有限公司 A kind of switching method and mobile terminal of contextual model
CN106534504A (en) * 2016-10-31 2017-03-22 深圳众思科技有限公司 Electronic device control method and device, and electronic device
CN106843885A (en) * 2017-01-24 2017-06-13 维沃移动通信有限公司 The method of controlling operation thereof and mobile terminal of a kind of mobile terminal

Also Published As

Publication number Publication date
CN109451179A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
US20220276909A1 (en) Screen projection control method and electronic device
CN109710132B (en) Operation control method and terminal
US11258893B2 (en) Method for prompting notification message and mobile terminal
CN109194818B (en) Information processing method and terminal
CN107734170B (en) Notification message processing method, mobile terminal and wearable device
CN108256308B (en) Face recognition unlocking control method and mobile terminal
CN108108111B (en) Method and device for checking lock screen picture information and mobile terminal
CN107835495B (en) Message prompting method and device and mobile terminal
CN111007995A (en) Data processing method and electronic equipment
CN108664818B (en) Unlocking control method and device
CN108710806B (en) Terminal unlocking method and mobile terminal
CN108089935B (en) Application program management method and mobile terminal
CN108540642B (en) Mobile terminal and operation method thereof
CN109451179B (en) Contextual model control method, terminal device and computer-readable storage medium
CN111124537B (en) Application starting method and electronic equipment
CN110795746B (en) Information processing method and electronic equipment
CN109547330B (en) Information sharing method and device
CN109739430B (en) Display method and mobile terminal
CN108810276B (en) Face recognition method and mobile terminal
CN111125680A (en) Permission setting method and terminal equipment
CN108259807B (en) Communication method, mobile terminal and computer readable storage medium
CN111261128A (en) Screen brightness adjusting method and electronic equipment
CN107491685B (en) Face recognition method and mobile terminal
CN110096863B (en) Alarm method and mobile terminal
CN111031172B (en) Method for controlling flight mode and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 5 / F, building B, No. 25, Andemen street, Yuhuatai District, Nanjing City, Jiangsu Province, 210012

Patentee after: NANJING WEIWO SOFTWARE TECHNOLOGY Co.,Ltd.

Address before: Room 306-2, building 3, No.30, Fengzhan Road, Yuhuatai District, Nanjing City, Jiangsu Province 210000

Patentee before: NANJING WEIWO SOFTWARE TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder