Electronic device control method and electronic device
By detecting the action parameters of the stylus and controlling the electronic device to switch display pages, the problem of low operating performance in the existing technology is solved, diversified touch operation methods are realized, and the user experience is improved.
Patent Information
- Application Number
- CN202011170033.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-28
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-10-28
AI Technical Summary
The operating performance of existing electronic devices is poor. The stylus operation is limited to replacing fingers on the touch screen, which lacks diversity and convenience.
By detecting the action parameters of the stylus when plugging and unplugging the electronic device, such as rotation parameters and movement position parameters, the display content of the electronic device is controlled to switch pages, and operations such as quick unlocking, screen locking, and page turning are realized.
It improves the operating performance of electronic devices and provides a variety of operation methods, which are simple and fast. Users can perform different events by plugging, unplugging and rotating the stylus to enhance user experience.
Smart Images

Figure CN112286378B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and specifically relates to an electronic device control method and an electronic device. Background Art
[0002] Mobile terminals such as mobile phones have become electronic devices that most people carry with them. In order to facilitate user use, some electronic devices are equipped with a stylus as an auxiliary operation device. Such electronic devices usually choose to have a slot in the body to accommodate the stylus. The user can take it out of the pen slot when using it.
[0003] In the prior art, the terminal generally only supports touch operation on the touch screen of the electronic device instead of the user's finger for the stylus. It can be seen that the operation performance of the current electronic device is relatively poor. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide an electronic device control method and an electronic device, which can solve the problem of poor operating performance of current electronic devices.
[0005] In order to solve the above technical problems, this application is implemented as follows:
[0006] In a first aspect, an embodiment of the present application provides a method for controlling an electronic device, the method comprising:
[0007] In the case of detecting that the stylus is plugged in or out of the electronic device, detecting motion parameters of the stylus, wherein the motion parameters include rotation parameters or movement position parameters;
[0008] Based on the action parameter, the display content of the electronic device is controlled to switch from the first page to the second page.
[0009] In a second aspect, an embodiment of the present application provides an electronic device control device, including a stylus, and the electronic device control device further includes:
[0010] A detection module, configured to detect an action parameter of the stylus when detecting that the stylus is plugged in or out of the electronic device, wherein the action parameter includes a rotation parameter or a movement position parameter;
[0011] The control module is used to control the display content of the electronic device to switch from the first page to the second page based on the action parameter.
[0012] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0013] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0014] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0015] In an embodiment of the present application, when the plugging and unplugging of the stylus of the electronic device is detected, the action parameters of the stylus are detected, wherein the action parameters include rotation parameters or movement position parameters; based on the action parameters, the display content of the electronic device is controlled to switch from the first page to the second page. In this way, when the user plugs and unplugs the stylus of the electronic device, the electronic device can also be controlled to switch the display page by detecting the action parameters of the stylus, so that the stylus of the electronic device is no longer limited to replacing the user's fingers on the touch screen for touch operations, thereby improving the operating performance of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a flow chart of an electronic device control method provided by an embodiment of the present application;
[0017] Figure 2a is a schematic diagram of an operation interface when a stylus pen is pulled out provided in an embodiment of the present application;
[0018] Figure 2b is a schematic diagram of an operation interface when pulling out and rotating the stylus pen provided in an embodiment of the present application;
[0019] Figure 2c is a schematic diagram of an operation interface when inserting and rotating a stylus pen provided in an embodiment of the present application;
[0020] Figure 3a This is one of the schematic diagrams of the operation interface for inputting a password during the process of pulling out the stylus pen provided in the embodiment of the present application;
[0021] Figure 3b This is the second schematic diagram of the operation interface for inputting a password during the process of pulling out the stylus pen provided in the embodiment of the present application;
[0022] Figure 3c This is the third schematic diagram of the operation interface for inputting a password during the process of pulling out the stylus pen provided in the embodiment of the present application;
[0023] Figure 3d This is the fourth schematic diagram of the operation interface for inputting a password during the process of pulling out the stylus pen provided in the embodiment of the present application;
[0024] Figure 3e This is a schematic diagram of an operation interface for locking the screen during the process of inserting a stylus pen provided in an embodiment of the present application;
[0025] Figure 4 is a structural schematic diagram of an electronic device control device provided in an embodiment of the present application;
[0026] Figure 5 is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0027] Figure 6 It is a schematic diagram of the structure of another electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0029] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0030] The electronic device control method provided by the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0031] See also Figure 1 , Figure 1 A flowchart of an electronic device control method provided in an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:
[0032] Step 101: When it is detected that a stylus is plugged in or out of an electronic device, detecting motion parameters of the stylus, wherein the motion parameters include rotation parameters or movement position parameters.
[0033] In an embodiment of the present application, the electronic device may be configured with a stylus and a pen slot for placing the stylus. For example, a pen slot may be opened on one side of the electronic device to place the stylus, and the stylus may be stored in the pen slot when not in use.
[0034] In order to improve the operating performance of the electronic device, the stylus pen is not limited to the operation mode of touching the touch screen. When the user plugs in and out the stylus pen, the user's different actions on the stylus pen can be combined to control the electronic device to execute corresponding events.
[0035] The plugging and unplugging of the stylus pen of the electronic device may include inserting the stylus pen or pulling out the stylus pen.
[0036] The above-mentioned action parameters may refer to parameters when the user performs a specific action on the stylus, and may specifically include rotation parameters or movement position parameters. For example, the rotation parameters generated when the user rotates the stylus during the process of plugging and unplugging the stylus, such as the rotation direction. For another example, the user may place the stylus at different positions or specific positions in the pen slot during the process of plugging and unplugging the stylus. The action parameters may include the dwell position, dwell time, position change parameters, etc.
[0037] In this step, when it is detected that the user plugs in or out the stylus of the electronic device, the action parameters of the stylus can be detected based on the action performed by the user on the stylus, and the electronic device can be controlled according to the action parameters.
[0038] Step 102: Based on the action parameter, control the display content of the electronic device to switch from the first page to the second page.
[0039] After detecting the action parameters of the stylus, the target event associated with it can be determined based on the action parameters, and the electronic device can be controlled to execute the target event. The target event can be switching display pages, such as controlling the display content of the electronic device to switch from a first page to a second page, wherein the first page can be the current display page, or the page triggered by plugging and unplugging the stylus, and the second page can be determined based on the action parameters. For example, different rotation directions are used to trigger unlocking, locking the screen, or turning pages, then the second page can be a desktop page, a lock screen page, or a page adjacent to the first page, or, specific moving position parameters are used to unlock or lock the screen, then the second page can be a desktop page or a lock screen page. Specifically, the electronic device can pre-set the association between the action parameters and the event, that is, pre-set a certain action parameter of the stylus to trigger the electronic device to execute a specific event.
[0040] For example, when the action parameter is a rotation direction, different rotation directions can be used to trigger the electronic device to unlock (i.e., switch from the lock screen page to the desktop page) or lock the screen (i.e., switch from the current display page to the lock screen page, and the screen can be further turned off), or can be used to trigger the electronic device screen to turn the page in the corresponding direction (such as turning the page to the left or turning the page to the right). When the action parameter is a moving position parameter, the different positions where the stylus stays during the movement can be used to enter the corresponding password to trigger the electronic device to unlock.
[0041] In this way, when the user is plugging in and out the stylus, the user can also control the action parameters of the stylus to perform different page switching operations on the electronic device, thereby improving its operating performance.
[0042] In one implementation, the user can rotate the stylus while plugging or unplugging the stylus, thereby triggering the electronic device to quickly unlock or lock the screen. This method is suitable for scenarios where there is no unlock password, and the action parameter of the stylus can be its rotation direction.
[0043] Optionally, step 101 includes:
[0044] In the case where it is detected that the stylus is pulled out of the electronic device, detecting the rotation direction of the stylus;
[0045] The step 102 includes:
[0046] When the rotation direction is the first preset direction, the display content of the electronic device is controlled to switch from the lock screen page to the desktop page.
[0047] In this embodiment, the user can quickly unlock the electronic device by pulling out the stylus of the electronic device and rotating the stylus in a first preset direction during the pulling out process. Specifically, when it is detected that the user pulls out the stylus of the electronic device, the rotation direction of the stylus can be further detected. If it is detected that the stylus rotates in the first preset direction, the electronic device can be triggered to unlock, that is, the display content of the electronic device is controlled to switch from the lock screen page to the desktop page, and the main screen interface of the electronic device can be quickly entered. Among them, the rotation direction of the stylus can be detected by placing a gyroscope in the stylus, and the first preset direction can be a pre-set clockwise rotation direction or counterclockwise rotation direction.
[0048] It should be noted that, in this implementation, before the user starts to pull out the stylus, the electronic device is in a locked screen state. Specifically, the electronic device can be in a locked screen state with the screen off, or in a locked screen state with the screen on. In the screen off state, unlocking the electronic device can be lighting up the screen of the electronic device and entering the main screen interface from the lock screen interface. In the screen on state, unlocking the electronic device can be controlling the screen of the electronic device to enter the main screen interface from the lock screen interface.
[0049] Furthermore, when the rotation direction is the first preset direction, before controlling the display content of the electronic device to switch from the lock screen page to the desktop page, the method further includes:
[0050] When it is detected that the stylus pen of the electronic device is pulled out, the screen of the electronic device is lit and a lock screen interface is displayed.
[0051] In this implementation, when the electronic device is in the screen-off state, it can be detected whether the user has pulled out the stylus of the electronic device. If so, the screen of the electronic device can be lit up to enter the lock screen interface. And the rotation direction of the stylus can be further detected. If the rotation direction is a first preset direction, the electronic device can be controlled to switch from the lock screen page to the desktop page to unlock the electronic device. Specifically, the screen of the electronic device can be lit up before the stylus is completely pulled out of the pen slot, that is, when the user's action of pulling out the stylus is detected, the screen of the electronic device can be immediately lit up to enter the lock screen interface, and then the rotation direction of the stylus during the pulling out process can be detected to control the electronic device to switch from the lock screen page to the desktop page.
[0052] The controlling the electronic device to switch from the lock screen page to the desktop page may be to control the lock screen page of the electronic device to gradually move from one side of the screen to the other side as the stylus rotates, and gradually display the desktop page during the movement of the lock screen interface. Figure 2a and Figure 2b As shown, when the user just starts to pull out the stylus 21, the screen of the electronic device 20 is lit and the lock screen page 22 is displayed. When the user continues to pull out the stylus 21 and rotates the stylus 21 in the direction shown in the figure, the lock screen page 22 moves to the right side of the screen, and the desktop page 23 gradually starts to be displayed from the left side of the screen.
[0053] It should be noted that, when the user pulls out the stylus and rotates it in the first preset direction, if it is detected that the user suddenly rotates the stylus in the opposite direction, the lock screen page of the electronic device can be controlled to move in the opposite direction accordingly to gradually cover the desktop page.
[0054] Optionally, step 101 includes:
[0055] In case of detecting a stylus pen inserted into the electronic device, detecting a rotation direction of the stylus pen;
[0056] The step 102 includes:
[0057] When the rotation direction is the second preset direction, the display content of the electronic device is controlled to switch from the current page to the lock screen page.
[0058] In this embodiment, the user can quickly lock the electronic device by inserting a stylus into the electronic device and rotating the stylus in a second preset direction during the insertion process. Specifically, when monitoring the user inserting the stylus into the electronic device, the rotation direction of the stylus can be further detected. If it is detected that the stylus rotates in the second preset direction, the electronic device can be triggered to lock the screen, that is, the display content of the electronic device is controlled to switch from the current page to the lock screen page, and the electronic device can be quickly locked. Among them, the rotation direction of the stylus can be detected by placing a gyroscope in the stylus, and the second preset direction can be a pre-set counterclockwise rotation direction or a clockwise rotation direction, and the second preset direction can be the opposite direction of the first preset direction, which is convenient for users to distinguish operations.
[0059] It should be noted that, in this implementation, before the user starts to insert the stylus, the electronic device is in a screen-on use state, that is, an unlocked screen state, and locking the electronic device can be controlling the electronic device screen to switch to a lock screen page, or can further control the electronic device to turn off the screen.
[0060] The controlling of switching the display content of the electronic device from the current page to the lock screen page may be to control the lock screen page of the electronic device to start displaying from one side of the screen, and gradually move to the other side as the stylus rotates, gradually covering the original display page. Figure 2c As shown, when the user pulls out the stylus 21 and rotates it in the direction shown in the figure, the lock screen page 22 starts to be displayed from the right side of the screen of the electronic device 20, and gradually moves to the left side of the screen, gradually covering the desktop page 23.
[0061] It should be noted that, when the user inserts the stylus and rotates it in the second preset direction, if it is detected that the user suddenly rotates the stylus in the opposite direction, the lock screen page of the electronic device can be controlled to move in the opposite direction accordingly, gradually restoring the desktop page.
[0062] In this way, the user can quickly unlock or lock the electronic device by rotating the stylus in a preset direction during the process of plugging and unplugging the stylus of the electronic device, so that the stylus can have multiple operation modes and the operation mode is relatively simple, thereby improving the operation performance of the electronic device.
[0063] In another embodiment, the user can trigger the electronic device to quickly unlock or lock the screen by moving the stylus in the pen slot and stopping it at the target position during the process of inserting and removing the stylus. This method is suitable for scenarios with an unlock password, and the action parameters of the stylus can be its moving position parameters.
[0064] Optionally, step 101 includes:
[0065] In the case of detecting that the stylus pen is pulled out of the electronic device, displaying a virtual unlocking interface at a first preset position on the screen of the electronic device, and detecting movement position parameters of the stylus pen in the pen slot of the electronic device;
[0066] Determining a password sequence input by the stylus pen based on the movement position parameter, and displaying the password sequence on the virtual unlocking interface;
[0067] The step 102 includes:
[0068] When the password sequence matches the unlock password of the electronic device, the display content of the electronic device is controlled to switch from the lock screen page to the desktop page.
[0069] In this implementation, the user can input the unlocking password by pulling out the stylus pen of the electronic device and moving and stopping the stylus pen at different positions in the pen slot during the pulling out process, thereby realizing quick unlocking of the electronic device.
[0070] Specifically, when it is detected that the user pulls out the stylus of the electronic device (optionally, the stylus is not completely pulled out from the pen slot at this time), a virtual unlocking interface can be displayed at a first preset position on the screen of the electronic device, and the moving position parameter of the stylus in the pen slot of the electronic device can be detected, wherein the first preset position can be a position on the screen of the electronic device corresponding to the position where the stylus is placed. For example, if the pen slot of the stylus is located on the right side of the screen, the first preset position can be the right edge area of the screen. The virtual unlocking interface can be a lock screen interface for inputting an unlocking password, such as displaying a column of numbers for the user to input a digital sequence, i.e., an unlocking password, in the interface through the moving position parameter of the stylus in the pen slot. The moving position parameter can be a parameter generated when the stylus moves and stays at different positions in the pen slot. For example, when the user moves the stylus to a certain position in the pen slot and stays there for a certain period of time, a moving position parameter can be generated, and when the stylus is moved to another position in the pen slot and stays there for a certain period of time, another moving position parameter can be generated, and so on.
[0071] As the stylus moves in the pen slot, multiple moving position parameters can be generated successively, and each moving position parameter can correspond to the input of a digital password. In this way, the password sequence input by the stylus can be determined based on the detected moving position parameters, and the password sequence can be displayed on the virtual unlocking interface. Specifically, different positions in the pen slot correspond to a digit respectively, so that the digital sequence input by the user through the stylus can be determined according to the positions where the stylus stops in the pen slot, and in order to facilitate feedback to the user on the digital sequence input, each time a digit is entered, the digit can be displayed on the virtual unlocking interface to facilitate user verification and confirmation. For example, when the stylus stops at a certain position in the pen slot, and the number corresponding to the position is "8", the number "8" can be displayed on the virtual unlocking interface, or the number "8" displayed on the virtual unlocking interface can be highlighted to prompt the user that the password "8" is currently entered.
[0072] After obtaining the password sequence input by the stylus pen, the password sequence can be matched with the unlock password of the electronic device, and if there is a match, the electronic device can be unlocked, that is, the display content of the electronic device is controlled to switch from the lock screen page to the desktop page. If there is a mismatch, the user can be prompted that the password input is incorrect and needs to be re-entered.
[0073] Furthermore, displaying a virtual unlocking interface at a first preset position on the screen of the electronic device includes:
[0074] A virtual stylus, a virtual pen slot and a digital sequence are displayed at a first preset position on the screen of the electronic device, wherein the digital sequence is displayed along an edge of the virtual pen slot, and the position of the virtual stylus in the virtual pen slot is displayed corresponding to the position of the stylus in the pen slot.
[0075] In this implementation, in order to obtain a better human-computer interaction effect, the virtual unlocking interface may be an interface displaying a virtual stylus, a virtual pen slot and a digital sequence, wherein the virtual stylus and the virtual pen slot may be virtually displayed on the screen, and the movement trajectory of the stylus in the pen slot may be simulated, that is, the position of the virtual stylus in the virtual pen slot may be displayed correspondingly according to the position of the stylus in the pen slot, and when the stylus moves outward in the pen slot, the screen may correspondingly display the virtual stylus moving outward in the virtual pen slot, and the digital sequence may be displayed along the edge of the virtual pen slot, and different numbers may be displayed correspondingly at different positions in the virtual pen slot.
[0076] When the user controls the stylus to move to a certain position in the pen slot, the position of the virtual stylus in the virtual pen slot can be displayed accordingly on the screen of the electronic device. When the stylus stays at the position for a certain period of time, it means that a number corresponding to the position has been entered. At this time, the number at the position in the virtual pen slot can be marked and displayed to prompt the user that the digital password is currently entered.
[0077] It should be noted that in order to improve security and avoid being spied on during the process of inputting the unlock password through the stylus, the digital sequence can be displayed in random order, that is, not in the order of 0 to 9, but in a random order.
[0078] For example, Figure 3a , Figure 3b , Figure 3c and Figure 3d As shown, taking the unlock password of "8614" as an example, when it is detected that the user pulls out the stylus 31 of the electronic device 30, the virtual stylus 32, the virtual pen slot 33 and the digital sequence 34 can be displayed at the position corresponding to the stylus on the screen of the electronic device 30, that is, on the right side of the screen; when it is detected that the user keeps the stylus 31 in a corresponding digital block in the pen slot for a certain period of time, the digit can be highlighted and the digital password can be recorded. The electronic device 30 continuously detects the user's action of pulling out the stylus 31 and stopping at a certain position, and highlights the digit at the corresponding position, and records the digital password until the user enters a four-digit password. If the four-digit passwords entered by the user are all correct, the electronic device 30 can be unlocked to enter the main screen interface.
[0079] Optionally, step 101 includes:
[0080] In the case of detecting a stylus pen inserted into the electronic device, detecting a moving position parameter of the stylus pen in the pen slot of the electronic device;
[0081] The step 102 includes:
[0082] When the moving position parameter indicates that the stylus moves to a target position in the pen slot and stays at the target position for a preset period of time, the display content of the electronic device is controlled to switch from a current page to a lock screen page.
[0083] In this implementation, the user can quickly lock the electronic device by inserting the stylus of the electronic device and moving the stylus to a target position in the pen slot during the insertion process and stopping at the target position.
[0084] Specifically, when it is detected that the user has inserted the stylus into the electronic device (the stylus is not fully inserted into the pen slot), the moving position parameters of the stylus in the pen slot of the electronic device can continue to be detected, wherein the moving position parameters can be parameters generated when the stylus moves in the pen slot and stays at a certain position; if the moving position parameters indicate that the stylus moves to the target position in the pen slot and stays there for a preset period of time, the electronic device can be triggered to lock the screen, that is, the electronic device can be controlled to switch from the current page to the lock screen page, wherein the target position can be a preset position for triggering the lock screen.
[0085] Furthermore, when the moving position parameter indicates that the stylus moves to a target position in the pen slot and stays at the target position for a preset time, before controlling the electronic device to switch from the current page to the lock screen page, the method further includes:
[0086] In the case where a stylus pen inserted into the electronic device is detected, a lock screen option is displayed at a second preset position on the screen of the electronic device;
[0087] The target position is a position in the pen slot corresponding to the lock screen option.
[0088] In this implementation, in order to obtain a better human-computer interaction effect, when it is detected that a user has inserted a stylus into the electronic device, a lock screen option can be displayed at a second preset position on the screen of the electronic device, and the second preset position can be a position on the screen of the electronic device corresponding to the middle of the pen slot, such as the middle of the right side of the screen. In order to improve the visual display effect, a virtual stylus and a virtual pen slot can be displayed on the screen of the electronic device at the same time, and the lock screen option can be displayed next to the virtual pen slot, so that the movement effect of the stylus in the pen slot can be simulated on the screen of the electronic device.
[0089] When the user controls the stylus pen to stay at the position corresponding to the lock screen option in the pen slot for a preset period of time, the lock screen can be triggered, and the electronic device can be controlled to switch from the current page to the lock screen page, that is, the electronic device is locked.
[0090] like Figure 3e As shown, when it is detected that a user has inserted a stylus 31 into an electronic device 30, a virtual stylus 32 and a virtual pen slot 33 may be displayed on the screen of the electronic device 30 at a position corresponding to the stylus, i.e., on the right side of the screen, and a lock screen option 35 may be displayed in the middle of the side of the virtual pen slot 33. When it is detected that the user moves the stylus 31 to the position corresponding to the lock screen option 35 in the pen slot and stays there for a preset period of time, a lock screen operation may be triggered to lock the screen of the electronic device.
[0091] In this way, when plugging or unplugging the stylus of an electronic device, the user can quickly unlock or lock the electronic device by moving the stylus to the target position in the pen slot and keeping it at the target position. This allows the stylus to have multiple and novel operating modes, thereby improving the operating performance of the electronic device.
[0092] The electronic device control method in the embodiment of the present application, when detecting the plugging and unplugging of the stylus of the electronic device, detects the action parameters of the stylus, wherein the action parameters include rotation parameters or movement position parameters; based on the action parameters, controls the display content of the electronic device to switch from the first page to the second page. In this way, when the user plugs and unplugs the stylus of the electronic device, the electronic device can also be controlled to switch the display page by detecting the action parameters of the stylus, so that the stylus of the electronic device is no longer limited to replacing the user's fingers on the touch screen for touch operations, thereby improving the operating performance of the electronic device.
[0093] It should be noted that the electronic device control method provided in the embodiment of the present application can be executed by an electronic device control device, or a control module in the electronic device control device for executing the electronic device control method. In the embodiment of the present application, the electronic device control device provided in the embodiment of the present application is described by taking the electronic device control device executing the electronic device control method as an example.
[0094] See also Figure 4 , Figure 4 A schematic diagram of the structure of the electronic device control device provided in the embodiment of the present application is shown in FIG. Figure 4 As shown, the electronic equipment control device 400 includes:
[0095] The detection module 401 is used to detect the action parameters of the stylus when the stylus is detected to be plugged in or out of the electronic device, wherein the action parameters include rotation parameters or movement position parameters;
[0096] The control module 402 is used to control the display content of the electronic device to switch from the first page to the second page based on the action parameter.
[0097] Optionally, the detection module 401 is used to detect the rotation direction of the stylus pen when it is detected that the stylus pen is pulled out of the electronic device;
[0098] The control module 402 is used to control the display content of the electronic device to switch from the lock screen page to the desktop page when the rotation direction is the first preset direction.
[0099] Optionally, the electronic equipment control device 400 further includes:
[0100] The first display module is used to light up the screen of the electronic device and display a lock screen page when it is detected that the stylus of the electronic device is pulled out.
[0101] Optionally, the detection module 401 is used to detect the rotation direction of the stylus when detecting the stylus inserted into the electronic device;
[0102] The control module 402 is used to control the display content of the electronic device to switch from the current page to the lock screen page when the rotation direction is the second preset direction.
[0103] Optionally, the detection module 401 includes:
[0104] A display and detection unit, configured to display a virtual unlocking interface at a first preset position on a screen of the electronic device and detect movement position parameters of the stylus pen in a pen slot of the electronic device when the stylus pen is detected to be pulled out of the electronic device;
[0105] a determining unit, configured to determine a password sequence input by the stylus pen based on the moving position parameter, and display the password sequence on the virtual unlocking interface;
[0106] The control module 402 is used to control the display content of the electronic device to switch from the lock screen page to the desktop page when the password sequence matches the unlock password of the electronic device.
[0107] Optionally, the display and detection unit is used to display a virtual stylus, a virtual pen slot and a digital sequence at a first preset position on the screen of the electronic device, wherein the digital sequence is displayed along an edge of the virtual pen slot, and the position of the virtual stylus in the virtual pen slot is displayed corresponding to the position of the stylus in the pen slot.
[0108] Optionally, the detection module 401 is used to detect the moving position parameters of the stylus pen in the pen slot of the electronic device when the stylus pen inserted into the electronic device is detected;
[0109] The control module 402 is used to control the display content of the electronic device to switch from the current page to the lock screen page when the dwell position parameter indicates that the stylus pen stays at the target position in the pen slot for a preset time.
[0110] Optionally, the electronic equipment control device 400 further includes:
[0111] A second display module, configured to display a lock screen option at a second preset position on the screen of the electronic device when a stylus pen is detected to be inserted into the electronic device;
[0112] The target position is a position in the pen slot corresponding to the lock screen option.
[0113] The electronic device control device in the embodiment of the present application detects the action parameters of the stylus when the stylus is plugged in or out of the electronic device, wherein the action parameters include rotation parameters or movement position parameters; based on the action parameters, the display content of the electronic device is controlled to switch from the first page to the second page. In this way, when the user plugs in or out the stylus of the electronic device, the action parameters of the stylus can also be detected to control the electronic device to switch the display page, so that the stylus of the electronic device is no longer limited to replacing the user's fingers on the touch screen for touch operations, thereby improving the operating performance of the electronic device.
[0114] The electronic device control device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0115] The electronic device control device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0116] The electronic equipment control device provided in the embodiment of the present application can achieve Figure 1 to Figure 3e To avoid repetition, the various processes implemented by the electronic device control device in the method embodiment are not described here.
[0117] Optionally, an embodiment of the present application also provides an electronic device, including a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, each process of the above-mentioned electronic device control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0118] Optional, such as Figure 5 As shown, an embodiment of the present application also provides an electronic device 500, including a processor 501, a memory 502, and a program or instruction stored in the memory 502 and executable on the processor 501. When the program or instruction is executed by the processor 501, each process of the above-mentioned electronic device control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0119] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0120] Figure 6 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0121] The electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610 and a stylus 611 and other components.
[0122] Those skilled in the art will appreciate that the electronic device 600 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 610 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0123] The processor 610 is configured to detect the motion parameters of the stylus 611 when the stylus 611 of the electronic device 600 is detected to be plugged in or out, wherein the motion parameters include rotation parameters or movement position parameters;
[0124] Based on the action parameters, the display content of the electronic device 600 is controlled to switch from the first page to the second page.
[0125] Optionally, the processor 610 is further configured to detect a rotation direction of the stylus 611 when detecting that the stylus 611 of the electronic device 600 is pulled out;
[0126] When the rotation direction is the first preset direction, the display content of the electronic device 600 is controlled to switch from the lock screen page to the desktop page.
[0127] Optionally, the display unit 606 is used to light up the screen of the electronic device 600 and display a lock screen page when it is detected that the stylus 611 of the electronic device 600 is pulled out.
[0128] Optionally, the processor 610 is further configured to detect a rotation direction of the stylus 611 when detecting that the stylus 611 is inserted into the electronic device 600;
[0129] When the rotation direction is the second preset direction, the display content of the electronic device 600 is controlled to switch from the current page to the lock screen page.
[0130] Optionally, the display unit 606 is further configured to display a virtual unlocking interface at a first preset position on the screen of the electronic device 600 when detecting that the stylus pen 611 of the electronic device 600 is pulled out;
[0131] The processor 610 is further configured to detect movement position parameters of the stylus pen 611 in the pen slot of the electronic device 600;
[0132] Based on the movement position parameter, determine the password sequence input by the stylus 611, and display the password sequence on the virtual unlocking interface;
[0133] When the password sequence matches the unlock password of the electronic device 600, the display content of the electronic device 600 is controlled to switch from the lock screen page to the desktop page.
[0134] Optionally, the display unit 606 is also used to display a virtual stylus, a virtual pen slot and a digital sequence at a first preset position on the screen of the electronic device 600, wherein the digital sequence is displayed along an edge of the virtual pen slot, and the position of the virtual stylus in the virtual pen slot is displayed corresponding to the position of the stylus in the pen slot.
[0135] Optionally, the processor 610 is further configured to detect a moving position parameter of the stylus 611 in the pen slot of the electronic device 600 when detecting that the stylus 611 is inserted into the electronic device 600;
[0136] When the moving position parameter indicates that the stylus pen 611 moves to the target position in the pen slot and stays at the target position for a preset time, the display content of the electronic device 600 is controlled to switch from the current page to the lock screen page.
[0137] Optionally, the display unit 606 is further configured to display a lock screen option at a second preset position on the screen of the electronic device 600 when a stylus 611 inserted into the electronic device 600 is detected;
[0138] The target position is a position in the pen slot corresponding to the lock screen option.
[0139] The electronic device in the embodiment of the present application, when detecting the plugging and unplugging of the stylus of the electronic device, detects the action parameters of the stylus, wherein the action parameters include rotation parameters or movement position parameters; based on the action parameters, controls the display content of the electronic device to switch from the first page to the second page. In this way, when the user plugs and unplugs the stylus of the electronic device, the electronic device can also be controlled to switch the display page by detecting the action parameters of the stylus, so that the stylus of the electronic device is no longer limited to replacing the user's fingers on the touch screen for touch operations, thereby improving the operating performance of the electronic device.
[0140] It should be understood that in the embodiment of the present application, the input unit 604 may include a graphics processor (GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 607 includes a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts: a touch detection device and a touch controller. Other input devices 6072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 609 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 610 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 610.
[0141] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned electronic device control method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0142] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0143] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned electronic device control method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0144] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0145] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0146] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0147] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A method for controlling an electronic device, characterized in that: include: In the case of detecting that the stylus is plugged in or out of the electronic device, detecting motion parameters of the stylus, wherein the motion parameters include rotation parameters or movement position parameters; Based on the action parameter, controlling the display content of the electronic device to switch from the first page to the second page; In the case where the plugging and unplugging of the stylus pen of the electronic device is detected, detecting the action parameters of the stylus pen includes: In the case of detecting that the stylus pen of the electronic device is pulled out, displaying a virtual unlocking interface at a first preset position on the screen of the electronic device, and detecting movement position parameters of the stylus pen in the pen slot of the electronic device; Determining a password sequence input by the stylus pen based on the movement position parameter, and displaying the password sequence on the virtual unlocking interface; The controlling the display content of the electronic device to switch from the first page to the second page based on the action parameter includes: When the password sequence matches the unlock password of the electronic device, the display content of the electronic device is controlled to switch from the lock screen page to the desktop page.
2. The method according to claim 1, characterized in that In the case where the plugging and unplugging of the stylus pen of the electronic device is detected, detecting the action parameters of the stylus pen includes: In the case where it is detected that the stylus is pulled out of the electronic device, detecting the rotation direction of the stylus; The controlling the display content of the electronic device to switch from the first page to the second page based on the action parameter includes: When the rotation direction is the first preset direction, the display content of the electronic device is controlled to switch from the lock screen page to the desktop page.
3. The method according to claim 2, characterized in that When the rotation direction is the first preset direction, before controlling the display content of the electronic device to switch from the lock screen page to the desktop page, the method further includes: When it is detected that the stylus of the electronic device is pulled out, the screen of the electronic device is lit and a lock screen page is displayed.
4. The method according to claim 1, characterized in that: In the case where the plugging and unplugging of the stylus pen of the electronic device is detected, detecting the action parameters of the stylus pen includes: In case of detecting a stylus pen inserted into the electronic device, detecting a rotation direction of the stylus pen; The controlling the display content of the electronic device to switch from the first page to the second page based on the action parameter includes: When the rotation direction is the second preset direction, the display content of the electronic device is controlled to switch from the current page to the lock screen page.
5. The method according to claim 1, characterized in that The step of displaying a virtual unlocking interface at a first preset position on the screen of the electronic device includes: A virtual stylus, a virtual pen slot and a digital sequence are displayed at a first preset position on the screen of the electronic device, wherein the digital sequence is displayed along an edge of the virtual pen slot, and the position of the virtual stylus in the virtual pen slot is displayed corresponding to the position of the stylus in the pen slot.
6. The method according to claim 1, characterized in that In the case where the plugging and unplugging of the stylus pen of the electronic device is detected, detecting the action parameters of the stylus pen includes: In the case of detecting a stylus pen inserted into the electronic device, detecting a moving position parameter of the stylus pen in the pen slot of the electronic device; The controlling the display content of the electronic device to switch from the first page to the second page based on the action parameter includes: When the moving position parameter indicates that the stylus moves to a target position in the pen slot and stays at the target position for a preset period of time, the display content of the electronic device is controlled to switch from a current page to a lock screen page.
7. The method according to claim 6, characterized in that Before controlling the display content of the electronic device to switch from the current page to the lock screen page when the moving position parameter indicates that the stylus pen moves to the target position in the pen slot and stays at the target position for a preset time, the method further includes: In the case where a stylus pen inserted into the electronic device is detected, a lock screen option is displayed at a second preset position on the screen of the electronic device; The target position is a position in the pen slot corresponding to the lock screen option.
8. An electronic equipment control device, characterized in that: Including a stylus pen, the electronic device control device also includes: A detection module, configured to detect an action parameter of the stylus when detecting that the stylus is plugged in or out of the electronic device, wherein the action parameter includes a rotation parameter or a movement position parameter; A control module, configured to control the display content of the electronic device to switch from the first page to the second page based on the action parameter; The detection module comprises: A display and detection unit, configured to display a virtual unlocking interface at a first preset position on a screen of the electronic device and detect movement position parameters of the stylus pen in a pen slot of the electronic device when the stylus pen is detected to be pulled out of the electronic device; a determining unit, configured to determine a password sequence input by the stylus pen based on the moving position parameter, and display the password sequence on the virtual unlocking interface; The control module is used to control the display content of the electronic device to switch from the lock screen page to the desktop page when the password sequence matches the unlock password of the electronic device.
9. The electronic equipment control device according to claim 8, characterized in that: The detection module is used to detect the rotation direction of the stylus pen when it is detected that the stylus pen is pulled out of the electronic device; The control module is used to control the display content of the electronic device to switch from a lock screen page to a desktop page when the rotation direction is a first preset direction.
10. The electronic equipment control device according to claim 9, characterized in that: The electronic equipment control device further comprises: The first display module is used to light up the screen of the electronic device and display a lock screen interface when it is detected that the stylus pen of the electronic device is pulled out.
11. The electronic equipment control device according to claim 8, characterized in that: The detection module is used to detect the rotation direction of the stylus pen when detecting the stylus pen inserted into the electronic device; The control module is used to control the display content of the electronic device to switch from the current page to the lock screen page when the rotation direction is the second preset direction.
12. The electronic equipment control device according to claim 8, characterized in that: The display and detection unit is used to display a virtual stylus, a virtual pen slot and a digital sequence at a first preset position on the screen of the electronic device, wherein the digital sequence is displayed along the edge of the virtual pen slot, and the position of the virtual stylus in the virtual pen slot is displayed corresponding to the position of the stylus in the pen slot.
13. The electronic equipment control device according to claim 8, characterized in that: The detection module is used to detect the moving position parameters of the stylus pen in the pen slot of the electronic device when the stylus pen inserted into the electronic device is detected; The control module is used to control the display content of the electronic device to switch from the current page to the lock screen page when the moving position parameter indicates that the stylus moves to the target position in the pen slot and stays at the target position for a preset time.
14. The electronic equipment control device according to claim 13, characterized in that: The electronic equipment control device further comprises: A second display module, configured to display a lock screen option at a second preset position on the screen of the electronic device when a stylus pen is detected to be inserted into the electronic device; The target position is a position in the pen slot corresponding to the lock screen option.
15. An electronic device, characterized in that: The invention comprises a processor, a memory and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the electronic device control method as described in any one of claims 1 to 7.
16. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the electronic device control method according to any one of claims 1 to 7 are implemented.
