CN112527135A - Electronic device, control method of electronic device, and readable storage medium - Google Patents

Electronic device, control method of electronic device, and readable storage medium Download PDF

Info

Publication number
CN112527135A
CN112527135A CN202011430706.3A CN202011430706A CN112527135A CN 112527135 A CN112527135 A CN 112527135A CN 202011430706 A CN202011430706 A CN 202011430706A CN 112527135 A CN112527135 A CN 112527135A
Authority
CN
China
Prior art keywords
contact
key
connecting piece
electrically connected
stylus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011430706.3A
Other languages
Chinese (zh)
Inventor
刘全忠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011430706.3A priority Critical patent/CN112527135A/en
Publication of CN112527135A publication Critical patent/CN112527135A/en
Priority to PCT/CN2021/134311 priority patent/WO2022121730A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus

Abstract

The embodiment of the application provides electronic equipment, a control method of the electronic equipment and a readable storage medium, and belongs to the technical field of communication. The electronic equipment comprises a touch control pen and an equipment body, wherein the touch control pen is provided with a function key, a first contact, a second contact and a key contact, the key contact is electrically connected with the function key, and the equipment body is provided with an accommodating groove; a first connecting piece and a second connecting piece are arranged in the accommodating groove; like this, the holding tank can be put into to the stylus can adopt the equidirectional not, and the equipment body is based on the connecting piece that detects and the contact connection condition, receives or shields the key signal that comes from the function button, realizes utilizing the function button on the stylus to carry out the key operation under specific scene, and can put into the direction through the adjustment stylus in other scenes, accomodates the function button, guarantees equipment outward appearance and holds experience.

Description

Electronic device, control method of electronic device, and readable storage medium
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to electronic equipment, a control method of the electronic equipment and a readable storage medium.
Background
Along with the great improvement of the processor performance and the network downloading rate of the intelligent electronic equipment, the stock of electronic equipment game users is larger and larger, and more large-scale network handgames are further popularized on the intelligent electronic equipment.
In response to the increasing entertainment demands of users, more and more intelligent electronic devices are specially designed for game entertainment. Through increasing pressure button or entity button design, increase the colored light area and show game rhythm effect, increase game operation handle accessory etc. all are in order to increase the recreation amusement element for intelligent terminal, promote game operation and experience.
Increase the intelligent electronic equipment that the pressure was felt the button design, though complete machine science and technology is felt and the outward appearance effect all has certain promotion, but the button sense of touch experience is comparatively poor, and the pressure is felt the button and is not obviously different with intelligent electronic equipment side frame from outward appearance and sense of touch, and the user is felt the relatively poor feedback when the button is felt in the operation pressure.
If the pressure key is changed into the solid key design, although the touch experience of the user key can be improved, the increase of the number of the side solid keys can influence the overall appearance of the mobile phone, and the holding feeling of the user can be influenced and the risk of mistaken touch of the solid key can be increased in a non-game scene.
Disclosure of Invention
An object of the embodiments of the present application is to provide an electronic device, a control method of the electronic device, and a readable storage medium, which can solve a problem that key operation experience and device appearance and hand-holding experience cannot be considered at the same time.
In a first aspect, an embodiment of the present application provides an electronic device, which includes a stylus and a device body, where the stylus is provided with a function key, a first contact, a second contact, and a key contact, the key contact is electrically connected to the function key, and the device body is provided with an accommodating groove;
the first contact and the key contact are arranged in a first area in the side face of the touch pen, the function key and the second contact are arranged in a second area in the side face of the touch pen, and the first area and the second area are not overlapped;
a first connecting piece and a second connecting piece are arranged in the accommodating groove;
when the stylus is positioned in the accommodating groove and the function key is exposed out of the accommodating groove, the first connecting piece is electrically connected with the first contact, and the second connecting piece is electrically connected with the key contact;
when the stylus is located in the accommodating groove and the function key faces the side wall of the accommodating groove, the first connecting piece is electrically connected with the second contact.
In a second aspect, an embodiment of the present application provides a control method for an electronic device, where the electronic device includes a stylus and a device body, the stylus is provided with a function key, a first contact, a second contact, and a key contact, the device body is provided with an accommodating groove, and the accommodating groove is provided with a first connecting piece and a second connecting piece;
the method comprises the following steps:
when the equipment body detects that the first connecting piece is electrically connected with the first contact and the second connecting piece is electrically connected with the key contact, the equipment body receives a key signal of the function key through the key contact;
when the equipment body detects that the first connecting piece is electrically connected with the second contact, the equipment body shields the key signal of the function key.
In a third aspect, an embodiment of the present application provides a control device for an electronic device, where the electronic device includes a stylus and a device body, the stylus is provided with a function key, a first contact, a second contact, and a key contact, the device body is provided with an accommodating groove, and the accommodating groove is provided with a first connecting piece and a second connecting piece;
the device comprises:
the first receiving module is used for receiving the key signal of the function key through the key contact when the equipment body detects that the first connecting piece is electrically connected with the first contact and the second connecting piece is electrically connected with the key contact;
and the shielding module is used for shielding the key signal of the function key when the equipment body detects that the first connecting piece is electrically connected with the second contact.
In a fourth aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the control method according to the second aspect.
In a fifth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, and when the program or instructions are executed by a processor, the program or instructions implement the steps of the control method according to the second aspect.
In a sixth aspect, the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the second aspect.
In a seventh aspect, the present invention also provides a computer program product stored in a non-volatile storage medium, the computer program product being configured to be executed by at least one processor to implement the steps of the method described above.
In an eighth aspect, the present invention further provides an executing apparatus, configured to execute the method described above.
In the embodiment of the application, set up the function button on the supporting stylus with the equipment body, and set up the contact in the different regions of stylus side, set up two connecting pieces in the holding tank that holds the stylus simultaneously, when the stylus is put into the holding tank with the mode that the function button is outside or including, be connected through the contact electricity on different connecting pieces and the stylus, the equipment body can be based on the contact connection condition that detects like this, receive or shield the key signal that comes from the function button, realize utilizing the function button on the stylus to carry out the key operation under specific scene, and can put into the direction through the adjustment stylus in other scenes, accomodate the function button, guarantee equipment outward appearance and hold experience.
Drawings
Fig. 1 is a schematic structural diagram of a stylus provided in an embodiment of the present application;
fig. 2a is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2b is a second schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 3 is a third schematic structural diagram of an electronic apparatus according to an embodiment of the present application;
fig. 4a is one of schematic application scenarios provided in the embodiment of the present application;
fig. 4b is a second schematic view of an application scenario provided in the embodiment of the present application;
fig. 5 is a schematic structural diagram of a control device of an electronic apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 7 is a second schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The electronic device provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1 to 3, an embodiment of the present application provides an electronic device, including a stylus 1 and a device body 2, where the stylus 1 is provided with a function key 10, a first contact 11, a second contact 12, and a key contact 13, the key contact 13 is electrically connected to the function key 10, and the device body 2 is provided with an accommodating groove 20;
in fig. 1, the stylus 1 is shown in three views, wherein the view in the middle is a front view of the stylus 1, the view on the left side is one of the side views of the stylus 1, and the view on the right side is the second of the side views of the stylus 1.
Referring to fig. 1, the first and second contacts 11 and 13 are disposed at a first area in a side surface of the stylus pen 1, and the function key 10 and the second contact 12 are disposed at a second area in the side surface of the stylus pen 1, the first area and the second area not overlapping;
it should be noted that, for a scene in which the side surface of the stylus is formed by a plurality of planes, for example, the shape of the stylus is a rectangular parallelepiped, the first area and the second area may be located on the side surfaces of the stylus in different directions, respectively; for a scenario in which the side surface of the stylus is an annular curved surface, for example, the shape of the stylus is a cylinder, the first area and the second area may be located in different radian ranges on the side surface of the stylus. Preferably, the first side surface and the second side surface are opposite sides of the stylus 1, so that the user only needs to select the forward direction (specifically, exposing the function keys 10) or the reverse direction (specifically, receiving the function keys 10) to place the stylus 1 into the receiving groove 20, and the operation is convenient.
The contacts 11, 12 may also be referred to as signal-in-place 1 and signal-in-place 2, and in a practical application scenario, the contacts 11, 12 may be made of a material having a conductive property, for example, the contacts 11, 12 may be metal contacts.
The key contact 13 shown in fig. 1 may specifically include two sub-key contacts, and it can be understood that the key contact 13 is mainly used for transmitting a key signal from the function key 10, and since the function key 10 has two states of not being pressed and being pressed, two sub-key contacts are provided, which correspond to the two states, respectively, so that the state of the function key 10 can be determined only based on which sub-key contact of the two sub-key contacts the key signal is received from, and then the corresponding key function is executed. In some embodiments, the two sub key contacts may be integrated into one sub key contact, and the specific arrangement form of the key contact 13 is not limited in this application example.
Referring to fig. 2a and 2b, a first connecting member 21 and a second connecting member 22 are disposed in the receiving groove 20;
in some embodiments, the first connecting member 21 and the second connecting member 22 may be supported by metal elastic pieces, and accordingly, the first connecting member 21 and the second connecting member 22 may be connected to the processor of the device body through an internal circuit, so that the device body can determine the connection condition between the connecting members and the contacts on the stylus pen.
It will be appreciated that since fig. 1 shows a scenario in which the key contact 13 comprises two sub-key contacts, the second connector 22 may also consist of two sub-connectors, each for electrically connecting to a different sub-key contact, corresponding to fig. 2a and 2 b.
As shown in fig. 2a, when the stylus 1 is located in the accommodating groove 20 and the function key 10 is exposed outside the accommodating groove 20, that is, the function key 10 is exposed outside the device body 2, the first connecting member 21 is electrically connected to the first contact 11, and the second connecting member 22 is electrically connected to the key contact 12;
as shown in fig. 2b, when the stylus 1 is located in the accommodating cavity 20 and the function key 10 faces the sidewall of the accommodating cavity 20, that is, the function key 10 is accommodated in the inside of the device body 2, the first connecting member 21 is electrically connected to the second contact 12.
In practical application scenarios, the accommodating groove 20 may have various forms, and in some embodiments: holding tank 20 can be along the length direction processing a deep hole of equipment body 2 to a rectangular opening of processing on the lateral wall in hole, like this when needs function button 10 to expose outside holding tank 20, only need with stylus 1 patchhole, and expose function button 10 through rectangular opening can. Accordingly, when the function key 10 needs to be accommodated, the stylus 1 is inserted into the hole, and the function key 10 faces the inside of the hole, i.e., the side wall of the accommodating groove 20.
In the embodiment of the application, set up the function button on the supporting stylus with the equipment body, and set up the contact on the not coplanar both sides face, set up the connecting piece in the holding tank that holds the stylus simultaneously, when the stylus with the function button outside or when the holding tank is put into to the mode including, be connected through the contact electricity on connecting piece and the stylus, the equipment body can be based on the contact connection condition that detects like this, receive or shield the key signal who comes from the function button, realize utilizing the function button on the stylus to carry out key operation under specific scene, and can put into the direction through the adjustment stylus in other scenes, accomodate the function button, guarantee equipment outward appearance and hold experience.
Further, in some embodiments, the first connector 21 includes a first sub-connector 211 and a second sub-connector 212;
as shown in fig. 2a, when the stylus pen 1 is located in the accommodating groove 20 and the function key 10 is exposed outside the accommodating groove 20, the first sub-connecting member 211 is electrically connected to the first contact 11;
in the scenario shown in fig. 2b, when the stylus pen 1 is placed into the receiving cavity 20 and the function key 10 faces the sidewall of the receiving cavity 20, the second sub-connecting member 212 is electrically connected to the second contact 12.
In the embodiment of the present application, corresponding to different insertion manners of the stylus 1, specifically, two scenarios of exposing or accommodating the function key 10, the first connecting element 21 is divided into two sub-connecting elements in the accommodating groove 20, the positions of the two sub-connecting elements are different, specifically, as shown in fig. 2a and fig. 2b, the two sub-connecting elements are arranged side by side, and adaptively, as shown in fig. 1, the first contact 11 and the second contact 12 are arranged at different heights on the stylus 1.
Like this, after stylus 1 puts into holding tank 20, equipment body 2 only need judge which sub-connecting piece has been connected with the contact electricity on the stylus 1, can confirm current stylus 1's the state of putting into, and then confirm that function button 10 is the exposed state or accomodates the state this moment to confirm to receive the key signal that comes from function button 10 or shield the key signal that comes from function button 10 in view of the above.
With continued reference to fig. 1, as shown in the right-hand side view of fig. 1, the first contact 11 and the key contact 13 are sequentially disposed in the first area along the axis of the stylus 1, and further the first contact 11 and the key contact 13 may be offset from the central symmetry line of the stylus 1, for example, the first contact 11 and the key contact 13 are arranged on the right-hand side of the central symmetry line of the stylus 1 in fig. 1;
as shown in the left-hand view of fig. 1, the second contact 12 is disposed in a second area along the axis of the stylus 1, and further the second contact 12 is offset from the central symmetry line of the stylus 1, for example, the second contact 12 is arranged on the left-hand side of the central symmetry line of the stylus 1 in fig. 1;
in the embodiment of the application, the contacts are staggered along two sides of the central symmetry line of the touch pen, so that the false detection of the contacts is avoided, because if all the contacts are designed on the central symmetry line, the contacts close to the inside can cause the false detection of the contacts close to the outside.
Referring to fig. 3, fig. 3 shows in detail the connection between the connector and the contact in the scenario of fig. 2 b. It should be noted that the enlarged partial view in fig. 3 is shown in a direction toward the first connector 21 and the second connector 22, and therefore the first contact 11 and the key contact 13 are depicted by solid lines, and the first connector 21, the second connector 22 and the second contact 12 are depicted by broken lines.
As can be seen from fig. 3, in a scene of accommodating the function key 10, the first connection element 21 is electrically connected to the second contact 12, specifically, the second sub-connection element 212 in the first connection element 21 is electrically connected to the second contact 12, and meanwhile, since the contacts are staggered along two sides of the central symmetry line of the stylus pen, the first contact 11 or the key contact 13 is prevented from affecting connection detection of the second contact 12.
In some embodiments, a wireless communication module (not shown) is further disposed in the stylus pen 1, and the wireless communication module is electrically connected to the function key 10;
in the embodiment of the present application, when the first connecting element 21 is not electrically connected to the first contact 11 and the first connecting element 21 is not electrically connected to the second contact 12, the wireless communication module is communicatively connected to the device body 2 and sends the first signal triggered by the function key 10 to the device body 2.
It can be understood that the first signal may also be referred to as a key signal or other names, which is not limited in the embodiment of the present application, when it is detected that the first connecting element 21 is not electrically connected to the first contact 11 and the first connecting element 21 is not electrically connected to the second contact 12, the device body 2 may determine that the stylus 1 is in the pull-out state, at this time, the stylus 1 may still send the key signal to the device body 2 in a wireless communication manner, so that when it is detected that the stylus 1 is inserted into the device body 2 and the function key 10 is in the exposed state, the device is switched to a wired communication mode (i.e., the key contact is used for transmitting with the second connection), and the key signal is transmitted to the device body 2 in a wired manner; when detecting that the stylus 1 is pulled out of the equipment body 2, the wireless communication mode is switched to, and the key signal is transmitted through the wireless communication module, so that more user-defined convenient functions are realized.
An embodiment of the present application further provides a method for controlling an electronic device, where the electronic device is shown in fig. 1 to 3, and the method includes:
(1) when the equipment body detects that the first connecting piece is electrically connected with the first contact and the second connecting piece is electrically connected with the key contact, the equipment body receives a first signal of the function key through the key contact;
in the embodiment of the application, if the device body detects that the first connecting piece is electrically connected with the first contact and the second connecting piece is electrically connected with the key contact, it is determined that the stylus pen is inserted into the accommodating groove at the moment, and the function key is exposed out of the device body at the moment, that is, the function key is enabled. In this scenario, the function key may be used as an entity key disposed on the device body, and specifically, the device body receives the first signal of the function key through the key contact.
Further, for the scenario where the function key is enabled, the method further includes:
(a) the method comprises the steps that a device body obtains a current application scene;
the current application scenario may correspond to an application running on the device body or a current operating state of the device body, for example: when the game application program is running on the device body, the current application scene can be determined to be a game scene; when the photographing application program is running on the device body, it can be determined that the current application scene is a photographing scene.
(b) The device body determines a first key function of the function key according to the current application scene;
according to the acquired current application scene, the device body calls a first key function corresponding to the device body, for example: if the current application scene is a game scene, the first key function called by the device body is a calling function of a game menu or a certain game operation function; when the shooting application program is running on the equipment body, the first key function called by the equipment body is a shooting function or a focusing function.
It can be understood that the corresponding relationship between the current application scenario and the first key function is preset, and the corresponding relationship between the current application scenario and the specific first key function is not limited in the embodiment of the present application.
After the first key function is determined based on the application scene, the device body multiplexes the first key function to the function key.
(2) When the equipment body detects that the first connecting piece is electrically connected with the second contact, the equipment body shields a first signal of the function key.
In this embodiment of the application, if the device body detects that the first connecting piece is electrically connected with the second contact, it is determined that the stylus pen is inserted into the accommodating groove at the time, and the function key is accommodated in the device body at the time, that is, the function key is not activated. Under this scene, the first signal of function button is shielded to the equipment body, to the scene that does not need the function button like this, can accomodate the function button inside the equipment body, effectively guarantees the whole outward appearance of equipment and the handheld experience of equipment.
Furthermore, a wireless communication module is also arranged in the touch control pen; the method also comprises the following steps:
(3) when the device body detects that the first connecting piece is not electrically connected with the first contact and the first connecting piece is not electrically connected with the second contact, the device body receives a first signal from the wireless communication module, and the first signal is received by the wireless communication module from the function key.
In the embodiment of the application, if the first connecting piece is not electrically connected with any one of the first contact or the second contact according to the detection result of the device body, it is determined that the stylus is pulled out of the accommodating groove at the moment, and the stylus can still send a first signal to the device body in a wireless communication manner, so that in combination with the scenario in the step (1), when the stylus is detected to be inserted into the device body and the function key is in an exposed state, the device is switched to a wired communication mode (i.e., the function key is transmitted through the key contact and the second connection), and the first signal is transmitted to the device body in a wired manner; when detecting that the stylus is pulled out of the equipment body, the wireless communication mode is switched to, and the first signal is transmitted through the wireless communication module, so that more user-defined convenient functions are realized.
In some embodiments, the function keys on the stylus may be combined with the function keys on the device body, and in a specific application scenario, the functions of the function keys on the device body may be reused for the function keys on the stylus, and new functions may be reused for the function keys on the device body.
For example, referring to fig. 4a, 2 function keys "volume +" and "volume-" are provided on the device body 2, when it is detected that the stylus is inserted and the function key 10 on the stylus is in an exposed state, that is, the function key 10 is in a start state, in a scenario of opening a game application, the function key 10 on the stylus serves as a first game key, and "volume +" is reused as a second game key. The operation of adjusting the volume is changed into 'volume-' calling out a volume adjusting progress bar in a game scene, when the volume adjusting progress bar is displayed, the 'volume +' key is restored to the original volume increasing function, and the function of the function key 10 on the touch pen 1 is reused as the volume decreasing function. After the volume adjustment progress bar disappears, the "volume +" key and the function key 10 on the stylus are restored to the game key function.
For another example, referring to fig. 4b, an "AI key" with an Artificial Intelligence (AI) function is provided on the device body 2, and the function of the "AI key" may be preset, for example: the "AI key" may be designed on the same side of the stylus and on the same side or different sides of the volume key and the power key, for example, for screenshot functions, call-to-designated contact functions, cache-clearing functions, etc.
When the insertion of the stylus is detected and the function key 10 on the stylus is in the exposed state, i.e. the function key 10 is in the activated state, in the scenario of opening the game application, the function key 10 on the stylus is used as the first game key, and the "AI key" is reused as the second game key. After exiting the game, the "AI button" is restored to the AI button function, and the function button 10 may be reused as the AI button function or other self-defined functions when the function button 10 on the stylus is not stored.
In the control method of the electronic device provided in the embodiment of the present application, the execution main body may be a control device of the electronic device, or a control module in the control device of the electronic device, for executing the control method of the electronic device. In the embodiment of the present application, a method for controlling an electronic device by a control device of the electronic device is taken as an example, and the control device of the electronic device provided in the embodiment of the present application is described.
Referring to fig. 5, an embodiment of the present application provides a control apparatus 500 of an electronic device, where the electronic device includes a stylus and a device body, the stylus is provided with a function key, a first contact, a second contact, and a key contact, the device body is provided with an accommodating groove, and the accommodating groove is provided with a first connecting piece and a second connecting piece;
the apparatus 500 comprises:
a first receiving module 501, configured to receive, by the device body through the key contact, a first signal of the function key when the device body detects that the first connecting element is electrically connected to the first contact and the second connecting element is electrically connected to the key contact;
a shielding module 502, configured to shield, when the device body detects that the first connector is electrically connected to the second contact, the device body shields the first signal of the function key.
In some embodiments, the apparatus 500 further comprises:
the acquisition module is used for acquiring the current application scene by the equipment body;
and the determining module is used for determining the first key function of the function key by the equipment body according to the current application scene.
In some embodiments, a wireless communication module is further disposed within the stylus;
the apparatus 500 further comprises:
the second receiving module is used for receiving a first signal from the wireless communication module when the equipment body detects that the first connecting piece is not electrically connected with the first contact and the first connecting piece is not electrically connected with the second contact, and the first signal is received by the wireless communication module from the function key.
The control device of the electronic device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The control device of the electronic apparatus in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
Optionally, as shown in fig. 6, an electronic device 600 is further provided in this embodiment of the present application, and includes a memory 601, a processor 602, and a program or an instruction stored in the memory 601 and executable on the processor 602, where the program or the instruction is executed by the processor 602 to implement each process of the control method embodiment of the electronic device, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic devices in the embodiments of the present application include mobile electronic devices and non-mobile electronic devices.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.
Those skilled in the art will appreciate that the electronic device 700 may also include a power supply (e.g., a battery) for powering the various components, and the power supply may be logically coupled to the processor 710 via a power management system, such that the functions of managing charging, discharging, and power consumption may be performed via the power management system. The electronic device structures shown in the figures do not constitute limitations of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
Wherein, the processor 710 is configured to:
when the equipment body detects that the first connecting piece is electrically connected with the first contact and the second connecting piece is electrically connected with the key contact, the equipment body receives a first signal of the function key through the key contact;
when the equipment body detects that the first connecting piece is electrically connected with the second contact, the equipment body shields the first signal of the function key.
Optionally, when the device body detects that the first connector is electrically connected to the first contact and the second connector is electrically connected to the key contact, the processor 710 is further configured to:
the equipment body acquires a current application scene;
and the equipment body determines a first key function of the function key according to the current application scene.
Optionally, a wireless communication module is further arranged in the stylus;
processor 710, further configured to:
when the equipment body detects that the first connecting piece is not electrically connected with the first contact and the first connecting piece is not electrically connected with the second contact, the equipment body receives a first signal from the wireless communication module, and the first signal is received by the wireless communication module from the function key.
In the embodiment of the application, set up the function button on the supporting stylus with the equipment body, and set up the contact on the not coplanar both sides face, set up two connecting pieces in the holding tank that holds the stylus simultaneously, when the stylus is put into the holding tank with function button mode outside or including, be connected through the contact electricity on different connecting pieces and the stylus, the equipment body can be based on the contact connection condition that detects like this, receive or shield the button signal that comes from the function button, realize utilizing the function button on the stylus to carry out the key operation under specific scene, and can put into the direction through the adjustment stylus in other scenes, accomodate the function button, guarantee equipment outward appearance and hold experience.
It should be understood that in the embodiment of the present application, the input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics Processing Unit 7041 processes image data of still pictures or videos obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes a touch panel 7071 and other input devices 1072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts of a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 709 may be used to store software programs as well as various data, including but not limited to applications and operating systems. Processor 710 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the control method embodiment of the electronic device, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the control method embodiment of the electronic device, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
Embodiments of the present application also provide a computer program product stored in a non-volatile storage medium, the computer program product being configured to be executed by at least one processor to implement the steps of the method described above.
The embodiment of the present application further provides an execution device, and the execution device is configured to execute the method described above.
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. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
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 application 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 application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1. An electronic device is characterized by comprising a touch pen and a device body, wherein the touch pen is provided with a function key, a first contact, a second contact and a key contact, the key contact is electrically connected with the function key, and the device body is provided with an accommodating groove;
the first contact and the key contact are arranged in a first area in the side face of the touch pen, the function key and the second contact are arranged in a second area in the side face of the touch pen, and the first area and the second area are not overlapped;
a first connecting piece and a second connecting piece are arranged in the accommodating groove;
when the stylus is positioned in the accommodating groove and the function key is exposed out of the accommodating groove, the first connecting piece is electrically connected with the first contact, and the second connecting piece is electrically connected with the key contact;
when the stylus is located in the accommodating groove and the function key faces the side wall of the accommodating groove, the first connecting piece is electrically connected with the second contact.
2. The electronic device of claim 1, wherein the first connector comprises a first sub-connector and a second sub-connector;
when the stylus is positioned in the accommodating groove and the function key is exposed out of the accommodating groove, the first sub-connecting piece is electrically connected with the first contact;
when the stylus pen is placed into the accommodating groove and the function key faces the side wall of the accommodating groove, the second sub-connecting piece is electrically connected with the second contact.
3. The electronic device of claim 1,
the first contact and the key contact are sequentially arranged in the first area along the axis of the touch control pen;
the second contact is disposed within the second region along an axis of the stylus.
4. The electronic device according to claim 1, wherein a wireless communication module is further disposed in the stylus pen, and the wireless communication module is electrically connected to the function key;
when the first connecting piece is not electrically connected with the first contact and the first connecting piece is not electrically connected with the second contact, the wireless communication module is in communication connection with the equipment body and sends a first signal triggered by the function key to the equipment body.
5. The control method of the electronic equipment is characterized in that the electronic equipment comprises a touch pen and an equipment body, wherein the touch pen is provided with a function key, a first contact, a second contact and a key contact, the equipment body is provided with an accommodating groove, and a first connecting piece and a second connecting piece are arranged in the accommodating groove;
the method comprises the following steps:
when the equipment body detects that the first connecting piece is electrically connected with the first contact and the second connecting piece is electrically connected with the key contact, the equipment body receives a first signal of the function key through the key contact;
when the equipment body detects that the first connecting piece is electrically connected with the second contact, the equipment body shields the first signal of the function key.
6. The method of claim 5, wherein when the device body detects that the first connector is electrically connected with the first contact and the second connector is electrically connected with the key contact, the method further comprises:
the equipment body acquires a current application scene;
and the equipment body determines a first key function of the function key according to the current application scene.
7. The method of claim 5, wherein a wireless communication module is further disposed within the stylus;
the method further comprises the following steps:
when the equipment body detects that the first connecting piece is not electrically connected with the first contact and the first connecting piece is not electrically connected with the second contact, the equipment body receives a first signal from the wireless communication module, and the first signal is received by the wireless communication module from the function key.
8. The control device of the electronic equipment is characterized in that the electronic equipment comprises a touch pen and an equipment body, wherein the touch pen is provided with a function key, a first contact, a second contact and a key contact, the equipment body is provided with an accommodating groove, and a first connecting piece and a second connecting piece are arranged in the accommodating groove;
the device comprises:
the first receiving module is used for receiving a first signal of the function key through the key contact when the equipment body detects that the first connecting piece is electrically connected with the first contact and the second connecting piece is electrically connected with the key contact;
and the shielding module is used for shielding the first signal of the function key by the equipment body when the equipment body detects that the first connecting piece is electrically connected with the second contact.
9. The apparatus of claim 8, further comprising:
the acquisition module is used for acquiring the current application scene by the equipment body;
and the determining module is used for determining the first key function of the function key by the equipment body according to the current application scene.
10. The device of claim 8, wherein a wireless communication module is further disposed in the stylus;
the device further comprises:
the second receiving module is used for receiving a first signal from the wireless communication module when the equipment body detects that the first connecting piece is not electrically connected with the first contact and the first connecting piece is not electrically connected with the second contact, and the first signal is received by the wireless communication module from the function key.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the control method according to any one of claims 5 to 7.
12. A readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the control method according to any one of claims 5 to 7.
CN202011430706.3A 2020-12-07 2020-12-07 Electronic device, control method of electronic device, and readable storage medium Pending CN112527135A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011430706.3A CN112527135A (en) 2020-12-07 2020-12-07 Electronic device, control method of electronic device, and readable storage medium
PCT/CN2021/134311 WO2022121730A1 (en) 2020-12-07 2021-11-30 Electronic device, electronic device control method, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011430706.3A CN112527135A (en) 2020-12-07 2020-12-07 Electronic device, control method of electronic device, and readable storage medium

Publications (1)

Publication Number Publication Date
CN112527135A true CN112527135A (en) 2021-03-19

Family

ID=74998604

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011430706.3A Pending CN112527135A (en) 2020-12-07 2020-12-07 Electronic device, control method of electronic device, and readable storage medium

Country Status (2)

Country Link
CN (1) CN112527135A (en)
WO (1) WO2022121730A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022121730A1 (en) * 2020-12-07 2022-06-16 维沃移动通信有限公司 Electronic device, electronic device control method, and readable storage medium
TWI832644B (en) * 2022-12-29 2024-02-11 宏碁股份有限公司 Joystick-like device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140107780A (en) * 2013-02-28 2014-09-05 삼성전자주식회사 Electronic pen, electronic pen connecting structure combined with the electronic pen thereof and a portable device comprising the electronic pen connecting structure
US11126280B2 (en) * 2017-05-25 2021-09-21 Cvr Global, Inc. Electronic stylus having image capabilities
CN110058700A (en) * 2018-01-17 2019-07-26 北京小米移动软件有限公司 Stylus and electronic equipment
CN110162197A (en) * 2019-05-08 2019-08-23 Oppo广东移动通信有限公司 Writing pencil, electronic equipment and its control method
CN112527134A (en) * 2020-12-03 2021-03-19 维沃移动通信有限公司 Touch pen, control method thereof and electronic equipment
CN112527135A (en) * 2020-12-07 2021-03-19 维沃移动通信有限公司 Electronic device, control method of electronic device, and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022121730A1 (en) * 2020-12-07 2022-06-16 维沃移动通信有限公司 Electronic device, electronic device control method, and readable storage medium
TWI832644B (en) * 2022-12-29 2024-02-11 宏碁股份有限公司 Joystick-like device

Also Published As

Publication number Publication date
WO2022121730A1 (en) 2022-06-16

Similar Documents

Publication Publication Date Title
CN110141859B (en) Virtual object control method, device, terminal and storage medium
CN111589125B (en) Virtual object control method and device, computer equipment and storage medium
CN108197450B (en) Face recognition method, face recognition device, storage medium and electronic equipment
CN109126138B (en) Energy-saving operation method, device, equipment and storage medium of online application program
CN108445970B (en) Assembled electronic device and information processing method
CN112527135A (en) Electronic device, control method of electronic device, and readable storage medium
CN106873898B (en) Application program working mode switching method and device and electronic equipment
CN109710150A (en) Key control method and terminal
CN113101657B (en) Game interface element control method, game interface element control device, computer equipment and storage medium
CN109656437A (en) A kind of information display method and terminal device
CN112286378A (en) Electronic equipment control method and electronic equipment
CN108388456A (en) A kind of application starts method, mobile terminal
CN110333785B (en) Information processing method and device, storage medium and augmented reality equipment
CN110191426A (en) A kind of method and terminal of information sharing
CN112269509B (en) Information processing method and device and electronic equipment
CN113676395A (en) Information processing method, related device and readable storage medium
CN110266892B (en) Interaction method, interaction device, storage medium, terminal back shell and terminal
CN110297684B (en) Theme display method and device based on virtual character and storage medium
WO2023045921A1 (en) Display method and apparatus, and electronic device
CN112957732B (en) Searching method, device, terminal and storage medium
CN113521724B (en) Method, device, equipment and storage medium for controlling virtual character
CN112887486B (en) Leading sound control method and device of electronic equipment
CN112311652B (en) Message sending method, device, terminal and storage medium
CN111355991B (en) Video playing method and device, storage medium and mobile terminal
CN110889102B (en) Image unlocking method and device, computer readable storage medium and terminal

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