CN110099160A - Apparatus control method and device, electronic equipment - Google Patents

Apparatus control method and device, electronic equipment Download PDF

Info

Publication number
CN110099160A
CN110099160A CN201810091932.XA CN201810091932A CN110099160A CN 110099160 A CN110099160 A CN 110099160A CN 201810091932 A CN201810091932 A CN 201810091932A CN 110099160 A CN110099160 A CN 110099160A
Authority
CN
China
Prior art keywords
electronic equipment
spatial attitude
processing operation
attitude information
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.)
Granted
Application number
CN201810091932.XA
Other languages
Chinese (zh)
Other versions
CN110099160B (en
Inventor
刘广鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201810091932.XA priority Critical patent/CN110099160B/en
Publication of CN110099160A publication Critical patent/CN110099160A/en
Application granted granted Critical
Publication of CN110099160B publication Critical patent/CN110099160B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/04Details of telephonic subscriber devices including near field communication means, e.g. RFID
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/22Details of telephonic subscriber devices including a touch pad, a touch sensor or a touch detector

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure is directed to a kind of apparatus control method and device, electronic equipment, this method may include: the spatial attitude information that electronic equipment determines compatible stylus;The electronic equipment implements corresponding processing operation according to the spatial attitude information.

Description

Apparatus control method and device, electronic equipment
Technical field
This disclosure relates to field of terminal technology more particularly to a kind of apparatus control method and device, electronic equipment.
Background technique
In the related art, user can carry out touch-control to electronic equipment by stylus, which can be electronics Provisioned in equipment, or by user's optional equipment.But stylus in the related technology only can realize letter to the finger of user Single substitution, or at most can be realized the control more refined than finger, but not for the control logic of electronic equipment Change, for example triggered still through the displaying content to electronic equipment, to realize that the operation to electronic equipment controls.
Summary of the invention
The disclosure provides a kind of apparatus control method and device, electronic equipment, to solve deficiency in the related technology.
According to the first aspect of the embodiments of the present disclosure, a kind of apparatus control method is provided, comprising:
Electronic equipment determines the spatial attitude information of compatible stylus;
The electronic equipment implements corresponding processing operation according to the spatial attitude information.
Optionally, the electronic equipment determines the spatial attitude information of compatible stylus, comprising:
The electronic equipment receives the spatial attitude information that the stylus is sent, and the spatial attitude information is by the touching Control pen is generated according to the spatial attitude parameter that built-in sensors detect;
Alternatively, the spatial attitude parameter that the electronic equipment is sent according to the stylus, generates the space appearance State information.
Optionally, the processing operation includes: system-level processing operation or application layer processing operation.
Optionally, the electronic equipment implements corresponding processing operation according to the spatial attitude information, comprising:
When the processing operation is system-level processing operation, the electronic equipment is according to predefined spatial attitude information The first mapping relations between processing operation determine and implement the processing operation corresponding to the spatial attitude information;
When the processing operation is application layer processing operation, the electronic equipment is according to determining spatial attitude letter In the application program on foreground when breath, the second mapping relations between predefined spatial attitude information and processing operation are determined, And and implementation determining based on second mapping relations corresponds to the processing operation of the spatial attitude information.
Optionally, further includes:
The electronic equipment determines itself assembled state between the stylus;
The electronic equipment implements corresponding processing operation according to the assembled state.
Optionally,
Further include: the electronic equipment determines itself assembled state between the stylus;
The electronic equipment implements corresponding processing operation according to the spatial attitude information, comprising: the electronic equipment According to the assembled state, the mapping relations between predefined spatial attitude information and processing operation are determined;And according to institute The spatial attitude information for stating mapping relations and electronic equipment determination determines and implements corresponding to the spatial attitude information Processing operation.
Optionally, the electronic equipment implements corresponding processing operation according to the spatial attitude information, comprising:
The electronic equipment shows the alternative processing operation for corresponding to the spatial attitude information;
The electronic equipment implements selected alternative processing operation according to the user's selection instruction received.
According to the second aspect of an embodiment of the present disclosure, a kind of plant control unit is provided, comprising:
Information determination unit is configured as the spatial attitude information for making electronic equipment determine compatible stylus;
First implementation unit is configured as making the electronic equipment according to the spatial attitude information, implements corresponding place Reason operation.
Optionally, the information determination unit includes: receiving subelement or generation subelement;
The receiving subelement is configured as, and the electronic equipment is made to receive the spatial attitude letter that the stylus is sent Breath, the spatial attitude information are generated by the stylus according to the spatial attitude parameter that built-in sensors detect;
The generation subelement is configured as, the spatial attitude for sending the electronic equipment according to the stylus Parameter generates the spatial attitude information.
Optionally, the processing operation includes: system-level processing operation or application layer processing operation.
Optionally, first implementation unit includes:
First implements subelement, is configured as setting the electronics when the processing operation is system-level processing operation For according to the first mapping relations between predefined spatial attitude information and processing operation, determines and implement corresponding to the sky Between posture information processing operation;
Second implements subelement, is configured as setting the electronics when the processing operation is application layer processing operation Standby basis determines the application program in foreground when the spatial attitude information, determines predefined spatial attitude information and place The second mapping relations between reason operation, and and implementation determining based on second mapping relations corresponds to the spatial attitude and believes The processing operation of breath.
Optionally, further includes:
First state determination unit is configured as that the electronic equipment is made to determine itself assembly between the stylus State;
Second implementation unit is configured as making the electronic equipment according to the assembled state, implements corresponding processing behaviour Make.
Optionally,
Further include: the second status determining unit, be configured as making the electronic equipment determine itself and the stylus it Between assembled state;
First implementation unit includes: that relationship determines that subelement and third implement subelement;The relationship determines that son is single Member is configured as making the electronic equipment according to the assembled state, determine predefined spatial attitude information and processing operation it Between mapping relations;And the third implements subelement and is configured as making according to the mapping relations and the electronic equipment Determining spatial attitude information determines and implements the processing operation corresponding to the spatial attitude information.
Optionally, first implementation unit includes:
It shows subelement, is configured as that the electronic equipment is made to show the alternative processing for corresponding to the spatial attitude information Operation;
4th implements subelement, is configured as making the electronic equipment according to the user's selection instruction received, implements quilt The alternative processing operation chosen.
According to the third aspect of an embodiment of the present disclosure, a kind of electronic equipment is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to realizing the method as described in any in above-described embodiment.
According to a fourth aspect of embodiments of the present disclosure, a kind of computer readable storage medium is provided, calculating is stored thereon with Machine instruction, which is characterized in that the step of any the method in such as above-described embodiment is realized when the instruction is executed by processor.
The technical scheme provided by this disclosed embodiment can include the following benefits:
As can be seen from the above embodiments, the disclosure, can be quickly to touch-control by the spatial attitude information of detection stylus The associated electronic equipment of pen is controlled, the electronic equipment is made to implement corresponding processing operation, directly right without user Electronic equipment is operated, and be can simplify user's operation, is promoted the control efficiency to electronic equipment.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of apparatus control method shown according to an exemplary embodiment.
Fig. 2 is the flow chart of another apparatus control method shown according to an exemplary embodiment.
Fig. 3 is the schematic diagram of the mobile phone and stylus under a kind of assembled state shown according to an exemplary embodiment.
Fig. 4 is the schematic diagram of the mobile phone and stylus under a kind of discrete state shown according to an exemplary embodiment.
Fig. 5 is a kind of schematic diagram for showing alternative application shown according to an exemplary embodiment.
Fig. 6 is the schematic diagram that double swerve occurs for a kind of stylus shown according to an exemplary embodiment.
Fig. 7 is the schematic diagram that a kind of stylus shown according to an exemplary embodiment is drawn a circle in the sky.
Fig. 8-13 is a kind of block diagram of plant control unit shown according to an exemplary embodiment.
Figure 14 is a kind of structural schematic diagram of device for controlling electronic devices shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application. It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
Fig. 1 is a kind of flow chart of apparatus control method shown according to an exemplary embodiment, as shown in Figure 1, the party Method is applied in electronic equipment, may comprise steps of:
In a step 102, electronic equipment determines the spatial attitude information of compatible stylus.
In one embodiment, touch screen or Trackpad can be equipped on electronic equipment, user can exist by stylus Touch control operation is carried out on the touch screen or Trackpad, for example is clicked, pulls, slides, presses, write.Wherein, stylus can be with Using arbitrary touch technology, this has no influence for the technical solution of the disclosure;By taking capacitance type touch control screen or Trackpad as an example, Stylus can be active capacitive touch pen or passive type capacitive touch pen.
In one embodiment, electronic equipment can be adapted in advance with stylus, thus in electronic equipment and stylus Between establish incidence relation, allow electronic equipment implemented based on the spatial attitude information of the stylus accordingly handle behaviour Make.For example, electronic equipment and stylus can establish the wireless connection of the types such as bluetooth, ZigBee, to set up two Incidence relation between person.
In one embodiment, electronic equipment can receive the spatial attitude information of stylus transmission, the spatial attitude letter Breath is generated by the stylus according to the spatial attitude parameter that built-in sensors detect;In other words, stylus passes through built-in After sensor detects spatial attitude parameter, corresponding spatial attitude information can be generated according to the spatial attitude parameter, and will The spatial attitude information is sent to electronic equipment, using the spatial attitude information as the stylus.
It in one embodiment, can be directly by the sky after stylus detects spatial attitude parameter according to built-in sensors Between attitude parameter be sent to electronic equipment, and the spatial attitude parameter sent by the electronic equipment according to stylus generates corresponding Spatial attitude information, using the spatial attitude information as the stylus.
In one embodiment, the sensor built in stylus may include gyroscope (such as three-axis gyroscope), acceleration biography At least one sensor (such as 3-axis acceleration sensor), or use other kinds of sensor, the disclosure not to this into Row limitation.
At step 104, the electronic equipment implements corresponding processing operation according to the spatial attitude information.
In one embodiment, the processing operation that electronic equipment is implemented may include system-level processing operation, such as volume Size, screen intensity adjusting etc..System-level processing operation can usually act on all application programs on electronic equipment simultaneously. Wherein, when the processing operation is system-level processing operation, the electronic equipment can be believed according to predefined spatial attitude The first mapping relations between breath and processing operation determine and implement the processing operation corresponding to the spatial attitude information.
In one embodiment, the processing operation that electronic equipment is implemented may include application layer processing operation, for example apply The functionality controls etc. in the function interface in page turning, selection application program in program.Application layer processing operation usually only acts on In single application program, and it is invalid to other applications.Wherein, when the processing operation is application layer processing operation, institute Stating electronic equipment can be according to application program (usually electronic equipment when determining the spatial attitude information in foreground Other discriminating fashions are not precluded in the corresponding application program of display content on screen, certain disclosure), determine predefined sky Between the second mapping relations between posture information and processing operation, and it is determining based on second mapping relations and implement to correspond to The processing operation of the spatial attitude information.
In one embodiment, the electronic equipment can determine itself assembled state between the stylus, then According to the assembled state, implement corresponding processing operation.For example, assembled state may include assembled state, discrete state etc.. Wherein, when stylus and electronic equipment are assemblied in integrated, determine that assembled state is assembled state, stylus is set with electronics at this time The synchronous variation of standby spatial attitude;When stylus and electronic equipment are not assemblied in integrated, assembled state is determined to separate shape State, stylus and the spatial attitude of electronic equipment are mutually indepedent at this time.
Wherein, electronic equipment can determine itself assembled state between stylus in several ways.For example, electronics The surface that stylus is matched in equipment can be equipped with equipped with the surface for being matched with electronic equipment in the first contact, stylus Second contact, when stylus is assembled to electronic equipment, the first contact contacts with each other with the second contact, so that it is determined that in assembling State, when stylus is separated with electronic equipment, the first contact is also separated from each other with the second contact, so that it is determined that in separation shape State.For another example being equipped with NFC (Near Field Communication, near-field communication) reader, stylus on electronic equipment Built-in NFC induction coil, when stylus is assembled to electronic equipment, NFC reader can sense NFC induction coil, thus really Surely it is in assembled state, when stylus is separated with electronic equipment, NFC reader loses the induction to NFC induction coil, thus It determines and is in discrete state.In another example electronic equipment can believe the spatial attitude of the spatial attitude information of itself and stylus Breath is compared, and when the spatial attitude information of the two is continuously consistent in preset duration, can be determined in assembling shape State, and when the spatial attitude information of the two occurs inconsistent, it can determine in discrete state.
In one embodiment, electronic equipment can according to the assembled state, determine predefined spatial attitude information with Mapping relations between processing operation;And the spatial attitude information determined according to the mapping relations and the electronic equipment, It determines and implements the processing operation corresponding to the spatial attitude information.For example, use is predefined when being in assembled state Mapping relations one between spatial attitude information and processing operation, and when being in discrete state, using predefined space appearance Mapping relations two between state information and processing operation.
It is noted that stylus is generally only to follow electronics when electronic equipment and stylus are in assembled state Equipment and spatial attitude variation occurs, and non-user really wish by the spatial attitude information of stylus to electronic equipment into Row control, thus in the assembled state, the corresponding processing operation of predefined spatial attitude information can be to abandon stylus Spatial attitude information does not implement any operation.Further, when electronic equipment and stylus are in assembled state, due to Family, which is usually not desirable, controls electronic equipment by the spatial attitude information of stylus, thus can make stylus Suspend the detection to spatial attitude parameter in the assembled state, this also contributes to the continuation of the journey for extending stylus.
In one embodiment, the electronic equipment can show the alternative processing behaviour corresponding to the spatial attitude information Make, so that user selects, and user is avoided to cause maloperation to stylus;Then, the electronic equipment is according to receiving User's selection instruction, implement selected alternative processing operation.Wherein, user still may be used when choosing alternative processing operation With by making stylus form specific spatial attitude information, to realize the selection to alternative processing operation.
As can be seen from the above embodiments, the disclosure, can be quickly to touch-control by the spatial attitude information of detection stylus The associated electronic equipment of pen is controlled, the electronic equipment is made to implement corresponding processing operation, directly right without user Electronic equipment is operated, and be can simplify user's operation, is promoted the control efficiency to electronic equipment.
In order to make it easy to understand, being carried out in detail below by taking the mobile phone for being equipped with stylus as an example for the technical solution of the disclosure Explanation.Correspondingly, Fig. 2 is the flow chart of another apparatus control method shown according to an exemplary embodiment, such as Fig. 2 institute To show, this method is applied in above-mentioned mobile phone, it may comprise steps of:
In step 202, the assembled state between stylus and mobile phone is determined;When the stylus is taken out out of mobile phone When, it is transferred to step 204.
In one embodiment, stylus can be assembled in the assembly space in mobile phone, so that mobile phone and stylus assemble It is structure as a whole, in order to store and carry.When user wishes to carry out in use, can take out touch-control out of mobile phone stylus Pen, so that being separated from each other between stylus and mobile phone.
For example, Fig. 3 is the signal of the mobile phone under a kind of assembled state shown according to an exemplary embodiment and stylus Figure;Fig. 4 is the schematic diagram of the mobile phone and stylus under a kind of discrete state shown according to an exemplary embodiment.Such as Fig. 3 institute Show, when stylus 2 is assembled to the assembly space in mobile phone 1, be assembled into one structure between mobile phone 1 and stylus 2;And After stylus 2 and mobile phone 2 are separated from each other, discrete state as shown in Figure 4 can be formed.
In one embodiment, it can be equipped with contact 11 as shown in Figure 4 on mobile phone 1, contact can be equipped in stylus 2 21, contact 11 be located in assembly space towards on the inner wall of stylus 2, contact 21 be located at table in stylus 2 towards mobile phone 1 Face, when so that stylus 2 being assembled to the assembly space in mobile phone 1, contact 1 can contact with each other with contact 2.Therefore, mobile phone 1 can With according to the contact situation between contact 1 and contact 2, determine itself assembled state between stylus 2 be assembled state or Discrete state.
In other embodiments, mobile phone 1 can also determine itself assembly shape between stylus 2 by other means State, the disclosure are limited not to this.For example, mobile phone 1 can be built-in with NFC reader, the NFC line of induction built in stylus 2 Circle, when stylus 2 is assembled to mobile phone 1, NFC reader can sense NFC induction coil, so that it is determined that it is in assembled state, When stylus 2 is separated with mobile phone 1, NFC reader loses the induction to NFC induction coil, so that it is determined that being in discrete state. For another example the spatial attitude information of itself can be compared by mobile phone 1 with the spatial attitude information of stylus 2, when the two When spatial attitude information is continuously consistent in preset duration, it can determine in assembled state, and when the space appearance of the two When state information occurs inconsistent, it can determine in discrete state.
In step 204, alternative application is shown.
In step 206, start selected recording application.
In one embodiment, when determining that stylus is taken out out of mobile phone assembly space, mobile phone can be shown to user Alternative application, so that user selects.For example, Fig. 5 is a kind of displaying alternative application shown according to an exemplary embodiment Schematic diagram;Mobile phone 1 can show alternative application selection interface as shown in Figure 5 after determining that stylus 2 is removed to user 12, which may include several alternative applications, for example, " handwriting pad ", " recording pen ", " memorandum ", " camera " etc., so that user selects.It is assumed that user chooses " recording pen ", mobile phone 1 can star corresponding recording application.
In one embodiment, when there is only an alternative application, determining that stylus 2 takes from the assembly space of mobile phone 1 After out, mobile phone 1 can directly initiate the alternative application, be chosen manually without user.Certainly, even if it is standby there is only one Choosing application, still can be showed in alternative application selection interface 12 as shown in Figure 5, actively to be determined whether by user It needs to start the alternative application, avoid starting automatically.
In one embodiment, alternative application can be set according to actual needs by user;In another embodiment, alternatively Using can be preset default application on mobile phone 1.
In one embodiment, user can in several ways carry out the alternative application in alternative application selection interface 12 Selection, the disclosure are limited not to this.For example, user can click on the touch screen of mobile phone 1, needed for choosing The alternative application of starting.For another example user can manipulate stylus 2, for example produce the spatial attitude information of stylus 2 Raw specific change, to select alternative application;For example, when stylus 2 generates whipping from the top down or from bottom to top When, alternative application (such as the background colour difference for the alternative application being instructed to that can make to be instructed in alternative application selection interface 12 The alternative application being instructed in other alternative applications, such as Fig. 5 is deeper " handwriting pad " of background colour, is different from other backgrounds The shallower alternative application of color) changed downward or upward.
In a step 208, the spatial attitude information of stylus is monitored.
In following step 210A-212A, a kind of spatial attitude information realization based on stylus has been illustrated Equipment control program:
In step 210A, determine whether stylus occurs double swerve;When double swerve occurs, it is transferred to step 212A, otherwise return step 208.
In step 212A, screenshotss function is triggered.
In one embodiment, when double swerve as shown in FIG. 6 occurs for stylus 2, the stylus 2 can be shown as The corresponding change of spatial attitude information, therefore mobile phone 1 can be matched with " left and right in the spatial attitude information of the stylus 2 When the variation of shaking ", such as above-mentioned screenshotss function is triggered.
In following step 210B-212B, another spatial attitude information realization based on stylus has been illustrated Equipment control program:
In step 210B, determine whether stylus draws a circle in the sky;When stylus is drawn a circle in the sky, it is transferred to step 212B, otherwise return step 208.
In step 212B, pause recording.
In one embodiment, when stylus 2 occur it is as shown in Figure 7 draw a circle in the air when, the stylus 2 can be shown as The corresponding change of spatial attitude information, therefore mobile phone 1 can be matched with " in the air in the spatial attitude information of the stylus 2 Draw a circle " variation when, triggering such as pause recording.
In one embodiment, the available default of mobile phone 1 or the customized mapping relations of user, the mapping relations instruction It is associated with situation between spatial attitude information and operating function, to be based on the mapping relations and the actual sky of stylus 2 Between posture information, determine needed for implement processing operation.Wherein, processing operation may include that such as step 212A is implemented The system-level processing operation such as " screenshotss " also may include that " pause " etc. for recording application implemented of step 212B is answered With grade processing operation.
In conclusion the space appearance of assembled state and stylus 2 of the mobile phone 1 by acquisition itself between stylus 2 The situation of change of state information may be implemented or assist to realize the quick start to processing operation, and to implementation required for user Operation is simplified, and helps to promote the starting efficiency to processing operation.
Corresponding with the embodiment of apparatus control method above-mentioned, the disclosure additionally provides the implementation of plant control unit Example.
Fig. 8 is a kind of plant control unit block diagram shown according to an exemplary embodiment.Referring to Fig. 8, which includes:
Information determination unit 81 is configured as the spatial attitude information for making electronic equipment determine compatible stylus;
First implementation unit 82 is configured as making the electronic equipment according to the spatial attitude information, implement corresponding Processing operation.
As shown in figure 9, Fig. 9 is the block diagram of another plant control unit shown according to an exemplary embodiment, the reality Example is applied on the basis of aforementioned embodiment illustrated in fig. 8, the information determination unit 81 includes: receiving subelement 811 or generates sub Unit 812;
The receiving subelement 811 is configured as, and the electronic equipment is made to receive the spatial attitude that the stylus is sent Information, the spatial attitude information are generated by the stylus according to the spatial attitude parameter that built-in sensors detect;
The generation subelement 812 is configured as, the space for sending the electronic equipment according to the stylus Attitude parameter generates the spatial attitude information.
As shown in Figure 10, Figure 10 is the block diagram of another plant control unit shown according to an exemplary embodiment, should For embodiment on the basis of aforementioned embodiment illustrated in fig. 8, the processing operation includes: system-level processing operation or application layer processing Operation;First implementation unit 82 includes:
First implements subelement 821, is configured as making the electronics when the processing operation is system-level processing operation Equipment determines according to the first mapping relations between predefined spatial attitude information and processing operation and implements to correspond to described The processing operation of spatial attitude information;
Second implements subelement 822, is configured as making the electronics when the processing operation is application layer processing operation Equipment according to the application program in foreground when determining the spatial attitude information, determine predefined spatial attitude information with The second mapping relations between processing operation, and and implementation determining based on second mapping relations corresponds to the spatial attitude The processing operation of information.
It should be noted that first in above-mentioned Installation practice shown in Fig. 10 implements subelement 821 and the second implementation The structure of subelement 822 also may be embodied in the Installation practice of earlier figures 9, be not limited to this disclosure.
As shown in figure 11, Figure 11 is the block diagram of another plant control unit shown according to an exemplary embodiment, should On the basis of aforementioned embodiment illustrated in fig. 8, which can also include: embodiment
First state determination unit 83 is configured as that the electronic equipment is made to determine itself dress between the stylus With state;
Second implementation unit 84 is configured as making the electronic equipment according to the assembled state, implements corresponding processing Operation.
It should be noted that the first state determination unit 83 and second in Installation practice shown in above-mentioned Figure 11 are implemented The structure of unit 84 also may be embodied in the Installation practice of earlier figures 9-10, be not limited to this disclosure.
As shown in figure 12, Figure 12 is the block diagram of another plant control unit shown according to an exemplary embodiment, should Embodiment can also include: on the basis of aforementioned embodiment illustrated in fig. 8
Second status determining unit 85 is configured as that the electronic equipment is made to determine itself dress between the stylus With state;
First implementation unit 82 includes: that relationship determines that subelement 823 and third implement subelement 824;The relationship It determines that subelement 823 is configured as making the electronic equipment according to the assembled state, determines predefined spatial attitude information Mapping relations between processing operation;And the third implements subelement 824 and is configured as making according to the mapping relations The spatial attitude information determined with the electronic equipment determines and implements the processing operation corresponding to the spatial attitude information.
It should be noted that the relationship in Installation practice shown in above-mentioned Figure 12 determines that subelement 823 and third are implemented The structure of subelement 824 also may be embodied in the Installation practice of earlier figures 9-11, be not limited to this disclosure.
As shown in figure 13, Figure 13 is the block diagram of another plant control unit shown according to an exemplary embodiment, should On the basis of aforementioned embodiment illustrated in fig. 8, first implementation unit 82 includes: embodiment
Show subelement 825, being configured as, which shows the electronic equipment, corresponds to the alternative of the spatial attitude information Processing operation;
4th implements subelement 826, is configured as making the electronic equipment according to the user's selection instruction received, implement Selected alternative processing operation.
It should be noted that the displaying subelement 825 and the 4th in Installation practice shown in above-mentioned Figure 13 implement son list The structure of member 826 also may be embodied in the Installation practice of earlier figures 9-12, be not limited to this disclosure.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize disclosure scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
Correspondingly, the disclosure also provides a kind of plant control unit, comprising: processor;It is executable for storage processor The memory of instruction;Wherein, the processor is configured to realizing the reality of the screen light filling as described in any in above-described embodiment Existing method, for example this method may include: the spatial attitude information that electronic equipment determines compatible stylus;The electronics is set For according to the spatial attitude information, implement corresponding processing operation.
Correspondingly, the disclosure also provides a kind of terminal, the terminal include memory and one or more than one Program, one of them perhaps more than one program be stored in memory and be configured to by one or more than one Managing device and executing the one or more programs includes for realizing the screen light filling as described in any in above-described embodiment Implementation method instruction, for example this method may include: the spatial attitude information that electronic equipment determines compatible stylus; The electronic equipment implements corresponding processing operation according to the spatial attitude information.
Figure 14 is a kind of block diagram of device 1400 for controlling electronic devices shown according to an exemplary embodiment.Example Such as, device 1400 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, and plate is set It is standby, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Fig.1 4, device 1400 may include following one or more components: processing component 1402, memory 1404, Power supply module 1406, multimedia component 1408, audio component 1410, the interface 1412 of input/output (I/O), sensor module 1414 and communication component 1416.
The integrated operation of the usual control device 1400 of processing component 1402, such as with display, telephone call, data communication, Camera operation and record operate associated operation.Processing component 1402 may include one or more processors 1420 to execute Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1402 may include one or more moulds Block, convenient for the interaction between processing component 1402 and other assemblies.For example, processing component 1402 may include multi-media module, To facilitate the interaction between multimedia component 1408 and processing component 1402.
Memory 1404 is configured as storing various types of data to support the operation in device 1400.These data Example includes the instruction of any application or method for operating on device 1400, contact data, telephone book data, Message, picture, video etc..Memory 1404 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Power supply module 1406 provides electric power for the various assemblies of device 1400.Power supply module 1406 may include power management System, one or more power supplys and other with for device 1400 generate, manage, and distribute the associated component of electric power.
Multimedia component 1408 includes the screen of one output interface of offer between described device 1400 and user.? In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more Media component 1408 includes a front camera and/or rear camera.When device 1400 is in operation mode, as shot mould When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1410 is configured as output and/or input audio signal.For example, audio component 1410 includes a wheat Gram wind (MIC), when device 1400 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt It is configured to receive external audio signal.The received audio signal can be further stored in memory 1404 or via communication Component 1416 is sent.In some embodiments, audio component 1410 further includes a loudspeaker, is used for output audio signal.
I/O interface 1412 provides interface, above-mentioned peripheral interface module between processing component 1402 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 1414 includes one or more sensors, and the state for providing various aspects for device 1400 is commented Estimate.For example, sensor module 1414 can detecte the state that opens/closes of device 1400, the relative positioning of component, such as institute The display and keypad that component is device 1400 are stated, sensor module 1414 can be with detection device 1400 or device 1,400 1 The position change of a component, the existence or non-existence that user contacts with device 1400,1400 orientation of device or acceleration/deceleration and dress Set 1400 temperature change.Sensor module 1414 may include proximity sensor, be configured in not any physics It is detected the presence of nearby objects when contact.Sensor module 1414 can also include optical sensor, as CMOS or ccd image are sensed Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1416 is configured to facilitate the communication of wired or wireless way between device 1400 and other equipment.Dress The wireless network based on communication standard, such as WiFi can be accessed by setting 1400,2G or 3G or their combination.It is exemplary at one In embodiment, communication component 1416 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, the communication component 1416 further includes near-field communication (NFC) module, to promote short distance Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1400 can be by one or more application specific integrated circuit (ASIC), number Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 1404 of instruction, above-metioned instruction can be executed by the processor 1420 of device 1400 to complete the above method.Example Such as, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, soft Disk and optical data storage devices etc..
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (16)

1. a kind of apparatus control method characterized by comprising
Electronic equipment determines the spatial attitude information of compatible stylus;
The electronic equipment implements corresponding processing operation according to the spatial attitude information.
2. the method according to claim 1, wherein the electronic equipment determines the space of compatible stylus Posture information, comprising:
The electronic equipment receives the spatial attitude information that the stylus is sent, and the spatial attitude information is by the stylus It is generated according to the spatial attitude parameter that built-in sensors detect;
Alternatively, the spatial attitude parameter that the electronic equipment is sent according to the stylus, generates the spatial attitude letter Breath.
3. the method according to claim 1, wherein the processing operation includes: system-level processing operation or answers With grade processing operation.
4. according to the method described in claim 3, it is characterized in that, the electronic equipment is according to the spatial attitude information, reality Apply corresponding processing operation, comprising:
When the processing operation is system-level processing operation, the electronic equipment is according to predefined spatial attitude information and place The first mapping relations between reason operation determine and implement the processing operation corresponding to the spatial attitude information;
When the processing operation is application layer processing operation, when the electronic equipment is according to the spatial attitude information is determined Application program in foreground determines the second mapping relations between predefined spatial attitude information and processing operation, and base In second mapping relations, determining and implementation corresponds to the processing operation of the spatial attitude information.
5. the method according to claim 1, wherein further include:
The electronic equipment determines itself assembled state between the stylus;
The electronic equipment implements corresponding processing operation according to the assembled state.
6. the method according to claim 1, wherein
Further include: the electronic equipment determines itself assembled state between the stylus;
The electronic equipment implements corresponding processing operation according to the spatial attitude information, comprising: the electronic equipment according to The assembled state determines the mapping relations between predefined spatial attitude information and processing operation;And it is reflected according to described The spatial attitude information for penetrating relationship and electronic equipment determination determines and implements the processing corresponding to the spatial attitude information Operation.
7. the method according to claim 1, wherein the electronic equipment is according to the spatial attitude information, reality Apply corresponding processing operation, comprising:
The electronic equipment shows the alternative processing operation for corresponding to the spatial attitude information;
The electronic equipment implements selected alternative processing operation according to the user's selection instruction received.
8. a kind of plant control unit characterized by comprising
Information determination unit is configured as the spatial attitude information for making electronic equipment determine compatible stylus;
First implementation unit is configured as making the electronic equipment according to the spatial attitude information, implements corresponding processing behaviour Make.
9. device according to claim 8, which is characterized in that the information determination unit includes: receiving subelement or life At subelement;
The receiving subelement is configured as, and the electronic equipment is made to receive the spatial attitude information that the stylus is sent, institute It states spatial attitude information and is generated by the stylus according to the spatial attitude parameter that built-in sensors detect;
The generation subelement is configured as, and joins the electronic equipment according to the spatial attitude that the stylus is sent Number, generates the spatial attitude information.
10. device according to claim 8, which is characterized in that the processing operation includes: system-level processing operation or answers With grade processing operation.
11. device according to claim 10, which is characterized in that first implementation unit includes:
First implements subelement, is configured as making the electronic equipment root when the processing operation is system-level processing operation According to the first mapping relations between predefined spatial attitude information and processing operation, determines and implement to correspond to the space appearance The processing operation of state information;
Second implements subelement, is configured as making the electronic equipment root when the processing operation is application layer processing operation According to the application program in foreground when determining the spatial attitude information, determine that predefined spatial attitude information and processing are grasped The second mapping relations between work, and and implementation determining based on second mapping relations corresponds to the spatial attitude information Processing operation.
12. device according to claim 8, which is characterized in that further include:
First state determination unit is configured as that the electronic equipment is made to determine itself assembly shape between the stylus State;
Second implementation unit is configured as making the electronic equipment according to the assembled state, implements corresponding processing operation.
13. device according to claim 8, which is characterized in that
Further include: the second status determining unit is configured as that the electronic equipment is made to determine itself between the stylus Assembled state;
First implementation unit includes: that relationship determines that subelement and third implement subelement;The relationship determines subelement quilt It is configured to make the electronic equipment according to the assembled state, determine between predefined spatial attitude information and processing operation Mapping relations;And the third implements subelement and is configured as making to be determined according to the mapping relations and the electronic equipment Spatial attitude information, determine the processing operation simultaneously implemented corresponding to the spatial attitude information.
14. device according to claim 8, which is characterized in that first implementation unit includes:
It shows subelement, is configured as that the electronic equipment is made to show that the alternative processing for corresponding to the spatial attitude information is grasped Make;
4th implements subelement, is configured as making the electronic equipment according to the user's selection instruction received, implement selected Alternative processing operation.
15. a kind of electronic equipment characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to realizing such as method of any of claims 1-7.
16. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor It is realized when execution such as the step of any one of claim 1-7 the method.
CN201810091932.XA 2018-01-30 2018-01-30 Equipment control method and device and electronic equipment Active CN110099160B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810091932.XA CN110099160B (en) 2018-01-30 2018-01-30 Equipment control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810091932.XA CN110099160B (en) 2018-01-30 2018-01-30 Equipment control method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110099160A true CN110099160A (en) 2019-08-06
CN110099160B CN110099160B (en) 2021-07-06

Family

ID=67442244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810091932.XA Active CN110099160B (en) 2018-01-30 2018-01-30 Equipment control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110099160B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111610924A (en) * 2020-04-30 2020-09-01 北京小米移动软件有限公司 Data processing method and device based on color acquisition, touch pen and terminal equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090322691A1 (en) * 2008-06-26 2009-12-31 Chi Mei Communication Systems, Inc. Method and system for adjusting orientations of user interfaces by detecting gravity acceleration values
CN105718079A (en) * 2014-12-18 2016-06-29 苹果公司 Stylus With Touch Sensor
CN205827348U (en) * 2016-06-17 2016-12-21 合肥联宝信息技术有限公司 Multifunction touch-controlling pen and touch-controlled electronic devices
CN106406535A (en) * 2016-09-29 2017-02-15 深圳天珑无线科技有限公司 Operation method and device for mobile device, and mobile device
CN107066119A (en) * 2015-11-05 2017-08-18 禾瑞亚科技股份有限公司 Touch-control system, stylus and its method of instruction are assigned using motion
CN107247521A (en) * 2017-06-06 2017-10-13 深圳市泰衡诺科技有限公司 Mobile terminal stylus condition checkout gear, detection method and stylus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090322691A1 (en) * 2008-06-26 2009-12-31 Chi Mei Communication Systems, Inc. Method and system for adjusting orientations of user interfaces by detecting gravity acceleration values
CN105718079A (en) * 2014-12-18 2016-06-29 苹果公司 Stylus With Touch Sensor
CN107066119A (en) * 2015-11-05 2017-08-18 禾瑞亚科技股份有限公司 Touch-control system, stylus and its method of instruction are assigned using motion
CN205827348U (en) * 2016-06-17 2016-12-21 合肥联宝信息技术有限公司 Multifunction touch-controlling pen and touch-controlled electronic devices
CN106406535A (en) * 2016-09-29 2017-02-15 深圳天珑无线科技有限公司 Operation method and device for mobile device, and mobile device
CN107247521A (en) * 2017-06-06 2017-10-13 深圳市泰衡诺科技有限公司 Mobile terminal stylus condition checkout gear, detection method and stylus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111610924A (en) * 2020-04-30 2020-09-01 北京小米移动软件有限公司 Data processing method and device based on color acquisition, touch pen and terminal equipment

Also Published As

Publication number Publication date
CN110099160B (en) 2021-07-06

Similar Documents

Publication Publication Date Title
CN105259654B (en) Spectacle terminal and its control method
RU2630189C1 (en) Method of controlling button functions in one-hand operation mode, device and electronic device
KR101668138B1 (en) Mobile device which automatically determines operating mode
CN105975166B (en) Application control method and device
US10776184B2 (en) Managing device functions based on physical interaction with device modules
CN106850938A (en) Mobile terminal and its control method
KR101971736B1 (en) Mobile terminal and method for controlling the same
KR20150007799A (en) Electronic device and method for controlling image display
CN111970456B (en) Shooting control method, device, equipment and storage medium
US9524199B2 (en) Activating device functions based on configurations of device modules
EP2887648B1 (en) Method of performing previewing and electronic device for implementing the same
CN105389113B (en) Application control method, apparatus based on gesture and terminal
CN106878558A (en) Dropproof based reminding method and device
JP2016527577A (en) User command execution method, execution device, program, and storage medium
CN105549960B (en) Control the method and device of camera
CN104216525A (en) Method and device for mode control of camera application
KR20170001219A (en) Mobile terminal and method for unlocking thereof
CN104750478B (en) The display methods and device of application interface
CN105701245B (en) Picture recommendation method and device
CN108983971A (en) Labeling method and device based on augmented reality
CN109213349A (en) Exchange method and device, computer readable storage medium based on touch screen
CN110099160A (en) Apparatus control method and device, electronic equipment
CN104166480B (en) Use the method and device of physical button operation control terminal
US10063770B2 (en) Communication apparatus and method of controlling same
CN106155701B (en) Icon display method and device

Legal Events

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