Summary of the invention
The purpose that the embodiment of the invention provides is to provide a kind of start keyboard testing method and the device of a kind of signal measurement or signal generating Instrument, detects to simplify, and reduces to detect the probability of makeing mistakes, and improves detection efficiency.
On the one hand; The embodiment of the invention provides a kind of start keyboard testing method of instrument; Whether said method comprises: detect in the start process pre-conditioned satisfied; Get into start keyboard detection interface when pre-conditioned when satisfying, said start detects the interface and comprises and the corresponding dummy keyboard of instrument keyboard; Under said start keyboard detection interfacial state, detect push button signalling, when detecting push button signalling, with giving prominence to demonstration and light the keyboard light corresponding with said push button signalling corresponding virtual button in the said start keyboard detection interface with said push button signalling.
Preferably; Comprise at detection push button signalling under the said start keyboard detection interfacial state in the embodiment of the invention method: utilize complex programmable logic device (CPLD) to detect under the interfacial state keyboard is carried out continual rank scanning in start; When button was pressed, the scan code that current scanning is obtained sent to processing unit with interrupt mode.
Preferably; Show and light with the corresponding keyboard light of said push button signalling and comprise giving prominence to said push button signalling corresponding virtual button in the said start keyboard detection interface in the embodiment of the invention method: said processing unit carries out the key assignments conversion to obtain corresponding key information with scan code, in said start keyboard detection interface, gives prominence to demonstration and lights the keyboard light corresponding with said button with said button corresponding virtual button.
Preferably, pre-conditioned the comprising in the embodiment of the invention method: when specific keys is pressed or in the start process through a Preset Time.
Preferably; When detecting push button signalling in the embodiment of the invention method; Also comprise: judge that whether said push button signalling is for withdrawing from operation signal; If withdraw from operation signal, then withdraw from the start keyboard detection, otherwise with giving prominence to demonstration and light the keyboard light corresponding with said push button signalling with said push button signalling corresponding virtual button in the said start keyboard detection interface.
On the other hand; The embodiment of the invention also provides a kind of start keyboard detection device of instrument; Comprise: first detecting unit; Be used for detecting that start process is pre-conditioned whether satisfies, get into start keyboard detection interface when satisfying when pre-conditioned, said start detects the interface and comprises and the corresponding dummy keyboard of instrument keyboard; Second detecting unit is used under said start keyboard detection interfacial state, detecting push button signalling; Processing unit is used for when said second detection arrives push button signalling, with giving prominence to demonstration and light the keyboard light corresponding with said push button signalling with said push button signalling corresponding virtual button in the said start keyboard detection interface.
Preferably; Second detecting unit in the embodiment of the invention device specifically is used to utilize CPLD under start detection interfacial state, keyboard to be carried out continual rank scanning; When button was pressed, the scan code that current scanning is obtained sent to processing unit with interrupt mode.
Preferably, the processing unit in the embodiment of the invention device comprises: modular converter is used for scan code is carried out the key assignments conversion to obtain corresponding key information; Processing module is used for giving prominence to demonstration and lighting the keyboard light corresponding with said button with said button corresponding virtual button at said start keyboard detection interface.
Preferably, pre-conditioned the comprising in the embodiment of the invention device: when specific keys is pressed or in the start process through a Preset Time.
Preferably; The device of the embodiment of the invention also comprises: judging unit; Be used for when detecting push button signalling, judge that whether said push button signalling is for withdrawing from operation signal, if withdraw from operation signal; Then withdraw from the start keyboard detection, otherwise with giving prominence to demonstration and light the keyboard light corresponding with said push button signalling with said push button signalling corresponding virtual button in the said start keyboard detection interface.
The embodiment of the invention promptly can detect keyboard in start process; And testing process can detect in the interface in start and embody intuitively; Promptly can to detect fault be keyboard mechanical fault or because the press key lamp fault to one-touch in addition, therefore simplified the keyboard detection process, avoided the influence of the software of instrument own; Thereby reduce to detect the probability of makeing mistakes, improve detection efficiency.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Be illustrated in figure 1 as the start keyboard testing method schematic flow sheet of a kind of instrument that the embodiment of the invention provides, this method comprises the steps:
S101: pre-conditioned whether satisfied in the detection start process, if satisfy, get into step S102, satisfied as if, then normally start instrument.
As one embodiment of the present of invention; Here pre-conditioned can be in the start process when specific keys is pressed on the instrument; When being pressed such as a certain independent keyboard detection button; Perhaps in the start process through a Preset Time, automatically get into keyboard detection interface etc. such as start in back 3 seconds.Certainly, the embodiment of the invention is not limited in above-mentioned two kinds of situation pre-conditioned.
It is to be noted; Whether the embodiment of the invention is pre-conditioned when satisfying in detecting start process; The software of realizing the normal function of this instrument does not move, and so just can get rid of in the instrument other software to the influence of keyboard detection, thereby reduces detection time and simplify testing process.
S102: get into start keyboard detection interface, this start detects the interface and comprises and the corresponding dummy keyboard of instrument keyboard.
Start in the present embodiment detects the interface and comprises the corresponding dummy keyboard of instrument keyboard; Can observe testing result more intuitively like this; See also Fig. 2; The front elevation of a kind of instrument that it provides for the embodiment of the invention, visible by Fig. 2, the virtual key that the start in this device detects in the interface 201 is corresponding with the button on the instrument keyboard.Certainly, the embodiment of the invention also and do not require that the virtual key in the start keyboard detection interface is strict corresponding with keyboard.
S103: whether detection has push button signalling under start keyboard detection interfacial state, if detect push button signalling, then gets into step S104, detects otherwise continue this step.
S104: with giving prominence to demonstration and light the keyboard light corresponding with said push button signalling corresponding virtual button in the said start keyboard detection interface with said push button signalling.
Here the outstanding demonstration of virtual key can represent that the action of pressing this button is detected; This button does not have fault; The back virtual key no change if push button; Represent that then fault has appearred in this button, combine press key lamp whether to be lighted in addition, can check out the failure problems of press key lamp simultaneously.The outstanding demonstration of the virtual push button here can be adopted high bright demonstration, and perhaps inverse shows, perhaps with the specific color demonstration etc.Be illustrated in figure 3 as the synoptic diagram at a kind of keyboard detection interface of starting shooting that the embodiment of the invention provides, during M3 button on pressing the instrument keyboard, on start keyboard detection interface, can give prominence to demonstration to the M3 virtual key, its result can be referring to shown in Figure 4.
In the present embodiment, this keyboard detection process can stop according to user's selection at any time, such as when specific button is pressed, stopping, also can be when end condition satisfies, to stop, such as end when all buttons all detect a time etc.
The embodiment of the invention promptly can detect keyboard in start process; And testing process can detect in the interface in start and embody intuitively; Promptly can to detect fault be keyboard mechanical fault or because the press key lamp fault to one-touch in addition, therefore simplified the keyboard detection process, avoided the influence of the software of instrument own; Thereby reduce to detect the probability of makeing mistakes, improve detection efficiency.
Be illustrated in figure 5 as the start keyboard testing method schematic flow sheet of the another kind of instrument that the embodiment of the invention provides, this method comprises the steps:
S501: pre-conditioned whether satisfied in the detection start process, if satisfy, get into step S502, satisfied as if, then normally start instrument.
S502: get into start keyboard detection interface, this start detects the interface and comprises and the corresponding dummy keyboard of instrument keyboard.
S501 and S502 and above-mentioned S501 and S502 are similar, repeat no more at this.
S503: whether detection has push button signalling under start keyboard detection interfacial state, if detect push button signalling, then gets into S504, detects otherwise continue this step.
As one embodiment of the present of invention; The detection of push button signalling can realize through following mode: utilize complex programmable logic device (CPLD) to detect under the interfacial state in start keyboard is carried out continual rank scanning; When button is pressed, be about to the scan code that current scanning obtains and send to processing unit with interrupt mode.
S504: whether judge said push button signalling for withdrawing from operation signal, if withdraw from operation signal, then finish the start keyboard detection, otherwise get into S505.
In the present embodiment; The operation of withdrawing from detection also realizes through button; This just needs to distinguish to withdraw from operation and button detecting operation, can on instrument, set a specific button that withdraws from the present embodiment and accomplish exit function, also can utilize the original button of instrument to realize exit function; Such as, original a certain button is withdrawed from button detection etc. by three expressions continuously.
S505: with giving prominence to demonstration and light the keyboard light corresponding with said push button signalling corresponding virtual button in the said start keyboard detection interface with said push button signalling.
Processing unit is after receiving above-mentioned scan code; Can scan code be carried out the key assignments conversion to obtain corresponding key information; And in start keyboard detection interface to giving prominence to demonstration with this key information corresponding virtual button, and light the keyboard light corresponding with this key information.
Through above-mentioned keyboard detection mode; If mechanical fault has appearred in button; Will cause the key circuit can't operate as normal, so just can not scanned button by CPLD and press, processing unit also just can not receive scan code; Thereby on start keyboard detection interface, just do not have the response of respective virtual button, thereby can judge it specifically is that mechanical fault has appearred in which button.Simultaneously, if the back that pushes button reflects have key to press on start keyboard detection interface, but the corresponding key lamp do not lighted, then can detect press key lamp and fault occur.Through cooperatively interacting of button, start keyboard detection interface, press key lamp, promptly can, one-touch detect button itself simultaneously when operating and whether press key lamp is in proper working order.
The embodiment of the invention promptly can detect keyboard in start process; And testing process can detect in the interface in start and embody intuitively, has therefore simplified the keyboard detection process, has avoided the influence of the software of instrument own; Thereby reduce to detect the probability of makeing mistakes, improve detection efficiency.
Be illustrated in figure 6 as the structural representation of the start keyboard detection device of a kind of instrument that the embodiment of the invention provides; This device comprises: first detecting unit 610, second detecting unit 620 and processing unit 630, wherein second detecting unit 620 links to each other with first detecting unit 610 and processing unit 630 respectively.
First detecting unit 610 is used for detecting that start process is pre-conditioned whether satisfies, and gets into start keyboard detection interface when satisfying when pre-conditioned, and this start detection interface comprises and the corresponding dummy keyboard of instrument keyboard.
As one embodiment of the present of invention; Here pre-conditioned can be when specific keys is pressed on the instrument; When being pressed such as a certain independent keyboard detection button, perhaps in the start process through a Preset Time, automatically get into keyboard detection interface etc. such as start in back 3 seconds.Certainly, the embodiment of the invention is not limited in above-mentioned two kinds of situation pre-conditioned.
Second detecting unit 620 is used under start keyboard detection interfacial state, detecting push button signalling.
Processing unit 630 is used for when second detecting unit 620 detects push button signalling, with giving prominence to demonstration and light the keyboard light corresponding with push button signalling with push button signalling corresponding virtual button in the said start keyboard detection interface.
Here the outstanding demonstration of virtual key can represent that the action of pressing this button is detected; This button does not have fault; The back virtual key no change if push button; Represent that then fault has appearred in this button, combine press key lamp whether to be lighted in addition, can check out the failure problems of press key lamp simultaneously.The outstanding demonstration of the virtual push button here can be adopted high bright demonstration, and perhaps inverse shows, perhaps with the specific color demonstration etc.
Present embodiment is to realizing the description that device carried out of keyboard detection from the angle of logic function; On concrete the realization; Processing unit such as can pass through digital signal processing (Digital Signal Processing, DSP) CPU such as unit, ARM or single-chip microcomputer realize, and above-mentioned detecting unit also both can have been realized separately; Also can realize that the embodiment of the invention does not limit this through being integrated in the CPU.
The embodiment of the invention promptly can detect keyboard in start process; And testing process can detect in the interface in start and embody intuitively; Promptly can to detect fault be keyboard mechanical fault or because the press key lamp fault to one-touch in addition, therefore simplified the keyboard detection process, avoided the influence of the software of instrument own; Thereby reduce to detect the probability of makeing mistakes, improve detection efficiency.
Be illustrated in figure 7 as the structural representation of the start keyboard detection device of the another kind of instrument that the embodiment of the invention provides; This device comprises: first detecting unit 710, second detecting unit 720, processing unit 730 and judging unit 740; Wherein second detecting unit 720 links to each other with first detecting unit 710 and judging unit 740 respectively, and processing unit 730 then links to each other with the judging unit 740 and second detecting unit 720 respectively.
Similar among the corresponding embodiment of the effect of first detecting unit 710 and Fig. 6, repeat no more at this.
Second detecting unit 720 specifically is used to utilize CPLD under start detection interfacial state, keyboard to be carried out continual rank scanning, and when button was pressed, the scan code that current scanning is obtained sent to processing unit with interrupt mode.
Judging unit 740 is used for when second detecting unit 720 detects push button signalling; Judge that whether this push button signalling is for withdrawing from operation signal; If withdraw from operation signal; Then withdraw from the start keyboard detection, give prominence to demonstration and light the keyboard light corresponding with said push button signalling corresponding virtual button in the keyboard detection interface with said push button signalling otherwise will start shooting in notifier processes unit 730.
In the present embodiment; The operation of withdrawing from detection also realizes through button; This just needs to distinguish to withdraw from operation and button detecting operation, can on instrument, set a specific button that withdraws from the present embodiment and accomplish exit function, also can utilize the original button of instrument to realize exit function; Such as, original a certain button is withdrawed from button detection etc. by three expressions continuously.
As shown in Figure 8; Processing unit 730 comprises modular converter 731 and processing module 732 in the present embodiment; Wherein: modular converter 731 is used for scan code is carried out the key assignments conversion to obtain corresponding key information, promptly can navigate to the pairing concrete button of this time actuation of keys according to this key information; Processing module 732 is used for giving prominence to demonstration and lighting the keyboard light corresponding with said button with said key information corresponding virtual button at start keyboard detection interface.
Carry out keyboard detection through this device; If mechanical fault has appearred in button; Will cause the key circuit can't operate as normal, so just can not scanned button by CPLD and press, processing unit also just can not receive scan code; Thereby on start keyboard detection interface, just do not have the response of respective virtual button, thereby can judge it specifically is that mechanical fault has appearred in which button.Simultaneously, if the back that pushes button reflects have key to press on start keyboard detection interface, but the corresponding key lamp do not lighted, then can detect press key lamp and fault occur.Through cooperatively interacting of button, start keyboard detection interface, press key lamp, promptly can, one-touch detect button itself simultaneously when operating and whether press key lamp is in proper working order.
The embodiment of the invention promptly can detect keyboard in start process; And testing process can detect in the interface in start and embody intuitively, has therefore simplified the keyboard detection process, has avoided the influence of the software of instrument own; Thereby reduce to detect the probability of makeing mistakes, improve detection efficiency.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method; Can instruct relevant hardware to accomplish through computer program; Described program can be stored in the computer read/write memory medium; This program can comprise the flow process like the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above-described embodiment; The object of the invention, technical scheme and beneficial effect have been carried out further explain, and institute it should be understood that the above is merely embodiment of the present invention; And be not used in qualification protection scope of the present invention; All within spirit of the present invention and principle, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.