The content of the invention
In view of this, the embodiment of the present application provides a kind of singly-bound multifunctional control method and equipment, existing to solve
Multifunction outdoor electronic equipment needs to set the technical problem of multiple corresponding buttons in technology.
According to the one side of the embodiment of the present application, there is provided a kind of singly-bound multifunctional control method, including:Monitor and list
The trigger signal of the key circuit of individual control key connection;Trigger signal according to listening to determines the button of the single operating key
Type of action;Perform control instruction corresponding to the actuation of keys type.
Preferably, the actuation of keys type for determining the single operating key according to the trigger signal listened to includes:According to
The time interval of trigger signal, the triggering times in the unit interval and trigger signal duration determine the single operating key
Actuation of keys type.
Preferably, the actuation of keys type for determining the single operating key according to the trigger signal listened to includes:According to
Preset order determines the actuation of keys type of the single operating key successively, and the preset order is that single is pressed, twice in succession
Press, continuous several times are pressed, short-press, long-press, long-press time-out.
Preferably, actuation of keys type is determined to grow on time, if the trigger signal listened to is still lasting, it is determined that press
Key type of action is long-press time-out, and control instruction corresponding to long-press time-out is not perform any action.
In one embodiment, control instruction corresponding to performing the actuation of keys type includes:According to actuation of keys class
Corresponding relation between type and functions of the equipments determines the corresponding functions of the equipments of the actuation of keys type;Execution switches to described set
The control instruction of standby function.
Preferably, perform and switch to the control instructions of the functions of the equipments and include:Perform satellite fix communication function and hand
The control instruction switched between torch function.
According to the other side of the embodiment of the present application, there is provided a kind of singly-bound Multifunctional controlling control equipment, including:Processing
Device;For storing the memory of processor-executable instruction;Wherein, the processor is configured as:Monitor and single operating key
The trigger signal of the key circuit of connection;Trigger signal according to listening to determines the actuation of keys class of the single operating key
Type;Perform control instruction corresponding to the actuation of keys type.
According to the other side of the embodiment of the present application, there is provided a kind of singly-bound Multifunctional controlling control equipment, including:Shell;
Single operating key, is arranged on case surface;Key circuit, set inside the housing and with the single control key connection;Center
Process chip, it is connected with the key circuit, the central processing element is believed by monitoring key circuit to obtain triggering information
Number, the actuation of keys type of the single operating key is determined according to the trigger signal listened to, performs the actuation of keys type
Corresponding control instruction.
The beneficial effect of the embodiment of the present application includes:Some are conventional by actuation of keys type and equipment for the embodiment of the present application
Operational order corresponds, and can substantially increase the singly-bound function of button.When button is pressed, the triggering letter of key circuit is listened to
Number, and after actuation of keys type is judged according to the corresponding relation of storage determine corresponding to control instruction, to the embedding of this equipment
Enter formula computer and send control instruction.It in summary it can be seen, central processing element is it is determined that can be with obstructed after actuation of keys type
Cross embedded computer software but directly send control command to equipment, can complete more to set by the different actions of singly-bound
Standby conventional operation, makes equipment operation become simple and fast.
Embodiment
The application is described below based on embodiment, but the application is not restricted to these embodiments.Under
Text is detailed to describe some specific detail sections in the detailed description of the application.Do not have for a person skilled in the art
The description of these detail sections can also understand the application completely.In order to avoid obscuring the essence of the application, known method, mistake
The not narration in detail of journey, flow, element and circuit.
In addition, it should be understood by one skilled in the art that provided herein accompanying drawing be provided to explanation purpose, and
What accompanying drawing was not necessarily drawn to scale.
It will also be appreciated that in the following description, " circuit " refers to be passed through by least one element or sub-circuit electric
The galvanic circle that connection or electromagnetism connect and compose." connected when claiming element or another element of circuit " being connected to " or element/circuit
" between two nodes when, it can directly be coupled or be connected to another element or there may be intermediary element, element it
Between connection can be physically, in logic or its combination.On the contrary, " connect when title element " being directly coupled to " or directly
Be connected to " another element when, it is meant that intermediary element is not present in both.
Unless the context clearly requires otherwise, otherwise entire disclosure is similar with the " comprising " in claims, "comprising" etc.
Word should be construed to the implication included rather than exclusive or exhaustive implication;That is, it is containing for " including but is not limited to "
Justice.
In the description of the present application, it is to be understood that term " first ", " second " etc. are only used for describing purpose, without
It is understood that to indicate or implying relative importance.In addition, in the description of the present application, unless otherwise indicated, the implication of " multiple "
It is two or more.
The embodiment of the present application is exactly to identify use by distinguishing the actuation of keys types such as long-press, short-press and continuous key-press number
The intention at family, uniquely single operating key completes the switchings of multiple functions to electronic equipment.The modeling that shaking interference is more, push button signalling is weak
Material membrane pushbutton and conductive rubber formula button cannot be applicable, it is necessary to use mechanical key or electrostatic capacitive button.
Fig. 1 is the theory diagram for the singly-bound Multifunctional controlling control equipment that the embodiment of the present application provides, including shell 10 is arranged on
The button 11 on the surface of shell 10, the key circuit 12 for being arranged on the inside of shell 10 and being connected with button 11 and with key circuit 12
The central processing element 13 of connection.Central processing element 13 is obtained and button electricity by monitoring the trigger signal of key circuit 12
The operating state of the connected button 11 in road 12.
Central processing element 13 stores the corresponding relation of actuation of keys type and control instruction, and actuation of keys type includes single
It is secondary press, press twice in succession, continuous several times are pressed, a variety of in short-press, long-press and long-press time-out.Central processing element 13
Monitor the trigger signal of key circuit 12, and the actuation of keys type according to corresponding to obtaining trigger signal condition adjudgement.According to guarantor
The actuation of keys type and the corresponding relation of control instruction deposited are sent out to determine control instruction to the embedded computer of this equipment
Go out control instruction.
Control instruction can be the shortcut instruction of embedded computer system, the serial keyboard instruction group of layout in order
Conjunction or self-defined human interface device (Human Interface Device, HID) data command.
, can be according to front and rear trigger signal twice when central processing element 13 determines actuation of keys type corresponding to trigger signal
Time interval, continuously there is duration of the number of trigger signal or trigger signal etc. in the unit interval to determine.Really
The order for determining actuation of keys type is followed successively by:Single is pressed, pressed twice in succession, continuous several times are pressed, short-press, long-press and length
By time-out.Actuation of keys type is determined to grow on time, if the trigger signal listened to is still continuing, it is determined that actuation of keys
Type is long-press time-out, and control instruction corresponding to long-press time-out is not perform any action.
The embodiment of the present application storage actuation of keys type press including at least single, press twice in succession, continuous several times by
Under, it is a variety of in short-press, long-press and long-press time-out, and by actuation of keys type and equipment some conventional operational orders one by one
It is corresponding, it can substantially increase the singly-bound function of button.When button is pressed, the trigger signal of key circuit is listened to, and judging
Go out after actuation of keys type the control instruction according to corresponding to determining the corresponding relation of storage, sent out to the embedded computer of this equipment
Go out control instruction.It in summary it can be seen, central processing element is it is determined that can not pass through embedding assembly after actuation of keys type
Machine software but directly send control command to equipment, the conventional operation of more equipment can be completed by the different actions of singly-bound,
Equipment operation is set to become simple and fast.
The function of modern electronic equipment is more and more, and in order to be switched between multiple functions, that is arranged in equipment presses
Key is more and more.And each button must be consistent with the contact area of finger, allow for that button is more, the area that it takes is just
It is bigger.For the electronic equipment that many small volume spaces are limited, the design of more buttons can not be realized.In addition, many electronics are set
It is standby to need singlehanded fast operating, if button is excessive, one-handed performance can not be completed.Having described in the embodiment of the present application is multiple
Multi-functional single button is closed, the shortcut instruction of embedded device is stored in the central processing element of key circuit connection
Or the serial keyboard instructing combination of layout in order, so pass through the single key stroke of button, it is possible to perform sequence of operations
Instruction so that user uses more convenient so that the limited equipment in space need to only lay a button.Realize use
Single button replaces keyboard shortcut or the in order serial keyboard instruction of layout by simple ground easy to remember composition operation can
Combine to complete task.It can also be switched over using single operating key between multiple functions of electronic equipment, now, can root
The corresponding functions of the equipments of actuation of keys type are determined according to the corresponding relation between actuation of keys type and functions of the equipments, are then performed
The control instruction of the functions of the equipments is switched to, so that uniquely single operating key completes the switchings of multiple functions to electronic equipment.
Preferably, the embodiment of the present application can be applicable to the new product of the applicant --- in satellite flashlight, by single
Operating key switches to realize between satellite fix communication function and flashlight function, and is used for satellite fix communication function and torch
Other control operations of cylinder function, for example, open, to close satellite fix communication function or flashlight function, regulation lighting bright
Degree etc..
Based on discussed above, the embodiment of the present application provides a kind of singly-bound multifunctional control method, suitable for the more work(of singly-bound
The central processing element of energy control device, as shown in Fig. 2 this method comprises the following steps.
S20, monitor the trigger signal with the key circuit of single control key connection;
S21, the actuation of keys type of single operating key is determined according to the trigger signal listened to;
S22, perform control instruction corresponding to actuation of keys type.
Wherein S21 can further comprise:According to the time interval of trigger signal, the triggering times in the unit interval and triggering
Signal duration determines the actuation of keys type of single operating key.It is determined that during actuation of keys type, can also further press
Determine the actuation of keys type of the single operating key successively according to preset order, the preset order be single press, continuous two
It is secondary press, continuous several times are pressed, short-press, long-press, long-press time-out.
Actuation of keys type is determined according to the duration of trigger signal to grow on time, if the trigger signal listened to is still
So continue, it is determined that actuation of keys type is long-press time-out, and control instruction corresponding to long-press time-out is not perform any action.I.e.
It is determined that length is on time, control instruction corresponding to long-press action is triggered first, if pressed after control instruction triggering corresponding to long-press action
Key does not lift, and trigger signal is still continuing, it is determined that and it is long-press time-out actuation of keys type, long-press time-out actuation of keys type
Corresponding control instruction now still only carries out control instruction corresponding to long-press action to be failure to actuate.
Wherein, S22 can further comprise when electronic equipment possesses multiple functions:According to actuation of keys type and functions of the equipments
Between corresponding relation determine functions of the equipments corresponding to actuation of keys type, perform the control instruction for switching to functions of the equipments.It is excellent
Choosing, for the applicant invention the flashlight with satellite communication function for, can perform satellite fix communication function and
The control instruction switched between flashlight function.
During by central processing element to realize above-mentioned each program step, central processing element can further comprise:Place
Manage device;For storing the memory of processor-executable instruction;Wherein, processor is configured as performing the embodiment of the present application offer
Singly-bound multifunctional control method, including:Monitor the trigger signal with the key circuit of single control key connection;According to listening to
Trigger signal determine the actuation of keys type of single operating key;Perform control instruction corresponding to actuation of keys type.
Preferably, the actuation of keys type for determining single operating key according to the trigger signal listened to includes:According to triggering
The time interval of signal, the triggering times in the unit interval and trigger signal duration determine the actuation of keys of single operating key
Type.
Preferably, the actuation of keys type for determining single operating key according to the trigger signal listened to includes:According to default
Order determines the actuation of keys type of single operating key successively, and preset order is pressed, pressed twice in succession for single, continuous several times
Press, short-press, long-press, long-press time-out.
Preferably, actuation of keys type is determined to grow on time, if the trigger signal listened to is still lasting, it is determined that press
Key type of action is long-press time-out, and control instruction corresponding to long-press time-out is not perform any action.
In one embodiment, control instruction corresponding to execution actuation of keys type includes:
The corresponding equipment work(of actuation of keys type is determined according to the corresponding relation between actuation of keys type and functions of the equipments
Energy;Perform the control instruction for switching to functions of the equipments.
Preferably, perform and switch to the control instructions of functions of the equipments and include:Perform satellite fix communication function and flashlight
The control instruction switched between function.
It will be understood by those skilled in the art that embodiments herein can be provided as method, apparatus (equipment) or computer
Program product.Therefore, in terms of the application can use complete hardware embodiment, complete software embodiment or combine software and hardware
Embodiment form.Moreover, the application can use the meter for wherein including computer usable program code in one or more
The computer journey that calculation machine usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of sequence product.The computer-readable recording medium, is stored thereon with computer instruction, real when the instruction is executed by processor
The singly-bound multifunctional control method that existing the embodiment of the present application provides.
The management service system of the embodiment of the present application structure can be implemented as emergency commading system, transportation economy operating analysis
Data supporting is provided etc. many aspects.The trans-regional switching architecture of attention from government target dynamic information is realized, is made trans-regional
Supervision is closed to be possibly realized.At the same time, as a standard-sized sheet place system, data exchange channel can be established, realizes areal
Information communication between different government administration sections, the application for multidisciplinary collaboration, emergency cooperative etc. are laid a good foundation.
The application is the flow chart with reference to method, apparatus (equipment) and computer program product according to the embodiment of the present application
And/or block diagram describes.It should be understood that can be by each flow in computer program instructions implementation process figure and/or block diagram
And/or square frame and the flow in flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided to refer to
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is made to produce
One machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for realizing
The device for the function of being specified in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
The preferred embodiment of the application is the foregoing is only, is not limited to the application, for those skilled in the art
For, the application can have various changes and change.All any modifications made within spirit herein and principle, it is equal
Replace, improve etc., it should be included within the protection domain of the application.
The preferred embodiment of the application is the foregoing is only, is not limited to the application, for those skilled in the art
For, the application can have various changes and change.All any modifications made within spirit herein and principle, it is equal
Replace, improve etc., it should be included within the protection domain of the application.