CN113533953B - Automatic detection method, device, equipment and storage medium for key board - Google Patents

Automatic detection method, device, equipment and storage medium for key board Download PDF

Info

Publication number
CN113533953B
CN113533953B CN202110782077.9A CN202110782077A CN113533953B CN 113533953 B CN113533953 B CN 113533953B CN 202110782077 A CN202110782077 A CN 202110782077A CN 113533953 B CN113533953 B CN 113533953B
Authority
CN
China
Prior art keywords
key
operating system
board
triggered
value
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.)
Active
Application number
CN202110782077.9A
Other languages
Chinese (zh)
Other versions
CN113533953A (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.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics 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 Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202110782077.9A priority Critical patent/CN113533953B/en
Publication of CN113533953A publication Critical patent/CN113533953A/en
Application granted granted Critical
Publication of CN113533953B publication Critical patent/CN113533953B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/327Testing of circuit interrupters, switches or circuit-breakers
    • G01R31/3277Testing of circuit interrupters, switches or circuit-breakers of low voltage devices, e.g. domestic or industrial devices, such as motor protections, relays, rotation switches

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Input From Keyboards Or The Like (AREA)

Abstract

The invention discloses an automatic detection method, device, equipment and storage medium for a key board, which comprises the steps of judging whether an operating system shields a key trigger response of the key board when the key board enters a state to be detected; if the operating system shields the key triggering response, acquiring a key value of the triggered key recorded by the operating system; comparing the key value of the triggered key with the configuration key value of the key control board; and judging whether the key control board accords with a preset detection standard according to a comparison result. According to the invention, when the key board enters the mode to be detected, the key value of the triggered key recorded by the operating system is acquired under the state that the operating system shields the key triggering response, and the key value of the triggered key is compared with the configuration key value, so that whether the key board meets the preset detection standard is judged according to the comparison result, the technical problem of long time consumption in key board detection in the prior art is solved, and the key board detection efficiency is improved.

Description

Automatic detection method, device, equipment and storage medium for key board
Technical Field
The present invention relates to the field of intelligent manufacturing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for automatically detecting a key board.
Background
The television is an electric device which is necessary for the current household, the home has a significant position, and the key board is the most original control device of the television and still has an important position in a television system. At present, a plurality of users use the starting key of a television key board as a first-choice television starting button; the television key control board is the only mode for controlling the television under the condition that the remote controller is not powered on or cannot be found; in many manufacturers and display applications, a key board is still used to operate a television.
In the production process of the television, the key board is a process of checking, on the whole machine detection line, a production line worker is required to touch each case of the key board, then whether the key board is installed in place or not is judged according to touch handfeel, and then whether the key board is qualified or not is judged according to the response of the television and the prompt of the UI.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide an automatic detection method, device and equipment for a key board and a storage medium, and aims to solve the technical problem of low detection efficiency of the key board in the prior art.
In order to achieve the above object, the present invention provides an automatic detection method for a key board, the method comprising the steps of:
When the key control board enters a state to be detected, judging whether an operating system shields a key trigger response of the key control board or not;
if the operating system shields the key triggering response, acquiring a key value of the triggered key recorded by the operating system;
Comparing the key value of the triggered key with the configuration key value of the key control board;
and judging whether the key control board accords with a preset detection standard according to a comparison result.
Optionally, after the step of judging whether the key board meets the preset detection standard according to the comparison result, the method further includes:
when the key control board is detected to be finished, a release instruction is sent to the operating system, so that the operating system releases a key trigger response according to the release instruction;
And when the operating system releases the key trigger response, sending a key board detection result to the operating system.
Optionally, if the operating system has shielded the key triggering response, acquiring a key value of the triggered key recorded by the operating system includes:
If the operating system shields the key triggering response, a recording instruction is sent to the operating system, so that the operating system records the key value of the triggered key according to the recording instruction;
and acquiring the key value of the triggered key recorded by the operating system.
Optionally, before the operating system judges whether to shield the key trigger response of the key board when the key board enters the state to be detected, the method further includes:
acquiring a control signal sent to an operating system by control equipment, and judging whether the control signal is triggered by a preset key in the control equipment or not;
and when the control signal is triggered by a preset key in the control equipment, judging that the key control board enters a state to be detected.
Optionally, before the step of shielding the key trigger response of the key board when the key board enters the state to be detected, the method further includes:
acquiring a control command sent to an operating system through a preset interface, and judging whether the control command is a key board detection command or not;
And when the control command is a key board detection command, judging that the key board enters a state to be detected.
Optionally, the comparing the key value of the triggered key with the configuration key value of the key board includes:
Determining a trigger key function corresponding to the triggered key according to the key value of the triggered key;
determining a configuration key function corresponding to the triggered key according to the configuration key value of the triggered key;
and comparing the trigger key function with the configuration key function.
Optionally, the judging whether the key board meets the preset detection standard according to the comparison result includes:
And when the trigger key function is consistent with the configuration key function, judging that the key control board meets a preset detection standard.
In addition, in order to achieve the above object, the present invention also provides an automatic detection device for a key board, the device comprising:
the first judging module is used for judging whether the operating system shields the key trigger response of the key control board when the key control board enters a state to be detected;
The acquisition module is used for acquiring a key value of the triggered key recorded by the operating system if the operating system shields the key triggering response;
the comparison module is used for comparing the key value of the triggered key with the configuration key value of the key control board;
and the second judging module is used for judging whether the key control board accords with a preset detection standard or not according to the comparison result.
In addition, in order to achieve the above object, the present invention also proposes an automatic detection device for a key board, the device comprising: the system comprises a memory, a processor and a key board automatic detection program stored on the memory and capable of running on the processor, wherein the key board automatic detection program is configured to realize the steps of the key board automatic detection method.
In addition, in order to achieve the above object, the present invention also proposes a storage medium having stored thereon a key board automatic detection program which, when executed by a processor, implements the steps of the key board automatic detection method as described above.
When the key control board enters a state to be detected, judging whether an operating system shields a key trigger response of the key control board or not; if the operating system shields the key triggering response, acquiring a key value of the triggered key recorded by the operating system; comparing the key value of the triggered key with the configuration key value of the key control board; and judging whether the key control board accords with a preset detection standard according to a comparison result. According to the invention, when the key board enters the mode to be detected, the key value of the triggered key recorded by the operating system is acquired under the state that the operating system shields the key triggering response, and the key value of the triggered key is compared with the configuration key value, so that whether the key board meets the preset detection standard is judged according to the comparison result, the technical problem of long time consumption in key board detection in the prior art is solved, and the key board detection efficiency is improved.
Drawings
FIG. 1 is a schematic diagram of a key board automatic detection device of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a first embodiment of an automatic detection method of a key board of the present invention;
FIG. 3 is a flowchart of a key board automatic detection method according to a second embodiment of the present invention;
FIG. 4 is a flowchart of a third embodiment of an automatic detection method of a key board according to the present invention;
fig. 5 is a block diagram showing the structure of a first embodiment of the automatic detection device for a key board of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a key board automatic detection device of a hardware operation environment according to an embodiment of the present invention.
As shown in fig. 1, the key pad automatic detection apparatus may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (WI-FI) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) or a stable nonvolatile Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the configuration shown in fig. 1 is not limiting of the key pad automatic detection apparatus and may include more or fewer components than shown, or may combine certain components, or may be a different arrangement of components.
As shown in fig. 1, an operating system, a data storage module, a network communication module, a user interface module, and a key pad automatic detection program may be included in the memory 1005 as one storage medium.
In the key board automatic detection device shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the automatic detection device for a key board of the present invention may be provided in the automatic detection device for a key board, and the automatic detection device for a key board calls the automatic detection program for a key board stored in the memory 1005 through the processor 1001 and executes the automatic detection method for a key board provided by the embodiment of the present invention.
The embodiment of the invention provides an automatic detection method for a key board, and referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of the automatic detection method for the key board.
In this embodiment, the method for automatically detecting a key board includes the following steps:
Step S10: when the key control board enters a state to be detected, judging whether an operating system shields a key trigger response of the key control board.
The execution body of the present embodiment may be a computing service device having functions of data processing, network communication, and program running, such as a host computer, a tablet computer, a personal computer, or an electronic device, a key board automatic detection device, or the like capable of implementing the above functions, and the present embodiment and the following embodiments will be described below by taking the key board automatic detection device as an example.
It is understood that the key board is a control device of the display device, and a user can control the display device to perform a corresponding operation through the key board, where the key board may be a television key board, a computer key board or other key boards with display devices having the same or similar functions, and this embodiment is not limited to this, and the television key board is taken as an example, and the operating system is a television operating system when the television key board is taken as a detection object.
It should be understood that in the production process of the television, the key board of the television needs to be detected, in the detection process, whether the key function of the key board is correct, whether the key board is installed in place or not is detected, and the state to be detected is the state of the key board of the television, in which the above detection needs to be performed.
It can be understood that whether the operating system shields the key trigger response of the key board can be determined by judging whether the operating system of the television responds to the key instruction triggered by the trigger key, if the key of the key board is triggered, the operating system of the television responds to the key instruction corresponding to the triggered key, the operating system can be determined to not shield the key trigger response of the key board, and if the key board is triggered, the operating system of the television does not respond to the key instruction corresponding to the triggered key, the operating system can be determined to shield the key trigger response of the key board.
It should be appreciated that the operating system masks the key trigger response of the key pad by intercepting the key command at the key command transmission of the triggered key when the key pad is triggered, preventing the key command from being transmitted to the operating system of the television to mask the key trigger response of the key pad.
Step S20: and if the operating system shields the key triggering response, acquiring a key value of the triggered key recorded by the operating system.
It should be understood that, the key value of the triggered key is a key instruction generated when the key is triggered, the operating system records the key value of the triggered key by firstly judging whether the key value is the key value of the key board, if the key value is the key value of the key board, continuously judging whether the key value is already recorded, if the key value is not already recorded, recording the key value, and because the operating system possibly intercepts the key value of the non-key board in the key board detection process, the key value of the non-key board is irrelevant to the detection of the key board, the recording is not needed, and in the key board detection process, one key of the key board can be triggered for a plurality of times, at this time, only the key value of the key board triggered for the first time needs to be recorded, thereby not only ensuring the detection omission, but also shortening the detection time of the key board and saving the storage space of the recorded key value.
It can be understood that the recorded key values may be stored in the local memory, a part of the storage area may be pre-divided in the local memory, and the key value of the triggered key is specially used for storing the recorded key value of the triggered key, and the key board automatic detection device may obtain the key value of the triggered key from the memory.
Step S30: and comparing the key value of the triggered key with the configuration key value of the key control board.
It can be understood that the configuration key value is a key value set by the key board and required to be sent when the key is touched, and the key value of the triggered key is a key value actually sent when the key is triggered in the key board detection process.
Step S40: and judging whether the key control board accords with a preset detection standard according to a comparison result.
It should be understood that the preset detection standard is a preset standard for qualified detection of the key board, the preset detection standard may be set to be that the key value of the triggered key of the key board is consistent with the configuration key value of the key board, in the process of detecting the key board, the key value of the triggered key of the key board is compared with the configuration key value of the key board, and when the triggered key value and the configuration key value are consistent, the key board can be determined to meet the preset detection standard.
Further, in order to record the key value of the triggered key in time, if the operating system has shielded the key triggering response, the obtaining the key value of the triggered key recorded by the operating system includes: if the operating system shields the key triggering response, a recording instruction is sent to the operating system, so that the operating system records the key value of the triggered key according to the recording instruction; and acquiring the key value of the triggered key recorded by the operating system.
It can be understood that there may be a case where a key of the key board has been triggered in the detection process, but a key value of the triggered key has not been recorded by the operating system, so as to ensure detection accuracy while improving detection efficiency, and ensure that detection is not missed, the key board automatic detection device sends a recording instruction to the operating system, so that the operating system timely records the key value of the triggered key according to the recording instruction.
Further, in order to improve the efficiency of the key board detection, the step S30 includes: determining a trigger key function corresponding to the triggered key according to the key value of the triggered key; determining a configuration key function corresponding to the triggered key according to the configuration key value of the triggered key; and comparing the trigger key function with the configuration key function.
It should be understood that, the function of the trigger key is a function implemented by the television operating system controlled by a key value generated when the key of the key board is triggered, for example, the key value of the triggered key controls the television operating system to increase the volume, and the function of the trigger key corresponding to the triggered key is to increase the volume.
It can be understood that the key function is configured as a function that is preset to control the television operating system to implement when the key is triggered, for example, a certain key of the television key board is set to implement the volume increasing function when the key is triggered, and the television operating system implements the volume increasing function when the key is triggered, where the key meets the preset detection standard, and otherwise, does not meet the preset detection standard.
It can be understood that when the key is triggered, the function implemented by the operating system of the control television is compared with the preset function that should be implemented by the operating system when triggered, for example, when the key is triggered, the function corresponding to the key is determined according to the key value when the key is triggered, and the function is compared with the shutdown function to determine whether the two functions are consistent.
Further, in order to improve the detection efficiency of the key board, the judging whether the key board meets the preset detection standard according to the comparison result includes: and when the trigger key function is consistent with the configuration key function, judging that the key control board meets a preset detection standard.
It should be understood that when the key of the tv key board is triggered, the trigger key function and the configuration key function of the triggered key are consistent, it is determined that the tv key board meets the preset detection standard, the tv key board detects passing, and if the trigger key function and the configuration key function of the triggered key are inconsistent, it is determined that the tv key board does not meet the preset detection standard, and the tv key board does not detect passing.
When the key control board enters a state to be detected, judging whether an operating system shields a key trigger response of the key control board or not; if the operating system shields the key triggering response, acquiring a key value of the triggered key recorded by the operating system; comparing the key value of the triggered key with the configuration key value of the key control board; and judging whether the key control board accords with a preset detection standard according to a comparison result. In the embodiment, when the key board enters the mode to be detected, the key value of the triggered key recorded by the operating system is acquired in the state that the operating system has shielded the key triggering response, and the key value of the triggered key is compared with the configuration key value, so that whether the key board meets the preset detection standard is judged according to the comparison result, the technical problem that the time consumption is long in the key board detection in the prior art is solved, and the key board detection efficiency is improved.
Referring to fig. 3, fig. 3 is a flow chart of a second embodiment of the automatic detection method of the key board of the present invention.
Based on the first embodiment, in this embodiment, after the step S40, the method further includes:
Step S401: and when the key control board is detected to be finished, sending a release instruction to the operating system so that the operating system releases the key trigger response according to the release instruction.
It can be understood that the release instruction is an instruction for controlling the operating system to release the key trigger response of the key board of the television, the key board automatic detection device can transmit the release instruction to the operating system of the television through a set port on the television, and the set port can be a serial port, a USB port, etc. of the television, which is not limited in this embodiment.
It should be appreciated that most televisions now are provided with a wireless network connection module, and that the key board automatic detection device may also send a release instruction to the television operating system via the wireless network upon detection of the key board of the television.
In a specific implementation, when the detection of the television key board is completed, the key board automatic detection equipment sends a release instruction to the television operating system through a set port on the television, or through a wireless network or through other transmission modes, and when the television operating system receives the release instruction, the television operating system releases the key trigger response of the television key board according to the release instruction.
Step S402: and when the operating system releases the key trigger response, sending a key board detection result to the operating system.
It should be understood that, the key board detection result includes that the television key board detection passes and the television key board detection does not pass, if the television key board detection passes, a detection passing prompt message may be sent, and the detection passing prompt message may be a text prompt message, a voice prompt message, a video prompt message or other prompt messages, and the detection passing prompt message may include one or more of the above prompt messages, or may be set to display the key board detection result by sending the text prompt message initially, and when no related operation is performed on the television in a preset time, the voice prompt message is added again to draw attention, and the prompt message may also include information such as a detection item of the television key board, and time spent for completing the detection of the motor key board.
It can be understood that if the detection of the tv key board is failed, a prompt message that the detection is failed may be a text prompt message, a voice prompt message, a video prompt message or other prompt messages, and the prompt message that the detection is failed may include one or more of the foregoing prompt messages, and may further include a specific key detection failed by the tv key board and what the trigger key function and the configuration key function of the detection failed key are respectively, so as to facilitate the subsequent analysis of error data to find the cause of the error.
When the key board detection is completed, the embodiment sends a release instruction to the operating system so that the operating system releases a key trigger response according to the release instruction; and when the operating system releases the key trigger response, sending a key board detection result to the operating system. Because the key trigger response of the key board is released by sending the release instruction to the operating system when the key board detection is completed, and the detection result of the key board is sent to the television operating system when the key trigger instruction is released, the detection result of the key board is displayed in time, the key board which is not detected can be found out in time, bad products are prevented from flowing into the market, and the delivery quality of the products is improved while the detection efficiency of the key board is improved.
Referring to fig. 4, fig. 4 is a flow chart of a third embodiment of the automatic detection method of the key board of the present invention.
Based on the above embodiments, in this embodiment, before step S10, the method further includes:
Step S01: and acquiring a control signal sent to an operating system by control equipment, and judging whether the control signal is triggered by a preset key in the control equipment.
It should be understood that the operating system is an operating system of a detected device, the detected device in this embodiment is exemplified by a television, the operating system is a television operating system, the control device is a device capable of sending a control instruction to control the television to perform related operations, the control device may be a remote controller, a smart phone, an intelligent router or other devices with the same or similar functions, the embodiment is not limited thereto, for example, the control device is a remote controller, an instruction sent by a specific key or a specific combination key on the remote controller may be defined as a shielding instruction, and the operating system may shield a key triggering response when receiving the shielding instruction.
It can be understood that after the automatic detection device of the key board obtains the control signal sent to the television operating system by the control device, the control signal is analyzed, and whether the control signal is triggered by a preset key in the control device is judged according to the analysis result, the specific analysis process can be that a mapping relation table is constructed according to the key of the control device and the key combination and the control signal corresponding to the key, the mapping relation table is stored in a storage medium of the automatic detection device of the key board, when the automatic detection device of the key board obtains the control signal sent to the television operating system by the control device, the corresponding key or key combination of the control signal is searched in the mapping relation table, and whether the control signal is triggered by the preset key is judged according to the searched key or key combination.
Step S02: and when the control signal is triggered by a preset key in the control equipment, judging that the key control board enters a state to be detected.
It should be understood that when the key or the key combination found by the mapping relation table is consistent with the preset key, it can be determined that the control signal is triggered by the preset key of the remote controller, and the operating system shields the key triggering response according to the control signal, so as to determine that the television key board enters the state to be detected.
Further, in order to improve the accuracy of judging whether the key board enters the state to be detected, before the step of judging whether the operating system shields the key trigger response of the key board when the key board enters the state to be detected, the method further includes: acquiring a control command sent to an operating system through a preset interface, and judging whether the control command is a key board detection command or not; and when the control command is a key board detection command, judging that the key board enters a state to be detected.
It should be understood that, the control command may be sent to the television through a set port on the television, where the set port may be a serial port of the television, a USB port or other ports, if the set port is a serial port of the television, a specific serial port control command may be set as a key board detection command, for example, serial port control command "5a050F016F" is set as a key board detection command, after the key board automatic detection device obtains the control command sent through the serial port of the television, if the control command is consistent with the serial port control command, the serial port control command is a key board detection command, and it is determined that the key board enters the state to be detected.
In the embodiment, a control signal sent to an operating system by control equipment is obtained, and whether the control signal is triggered by a preset key in the control equipment is judged; when the control signal is triggered by a preset key in the control equipment, the key control board is judged to enter a state to be detected, whether the key control board enters the state to be detected can be timely judged, and the detection efficiency of the key control board is improved.
In addition, the embodiment of the invention also provides a storage medium, wherein the storage medium stores a key board automatic detection program, and the key board automatic detection program realizes the steps of the key board automatic detection method when being executed by a processor.
Referring to fig. 5, fig. 5 is a block diagram showing the structure of a first embodiment of the automatic detection device for a key board according to the present invention.
As shown in fig. 5, the device for automatically detecting a key board according to the embodiment of the present invention includes: the device comprises a first judging module 10, an acquiring module 20, a comparing module 30 and a second judging module 40.
The first judging module 10 is configured to judge whether an operating system shields a key triggering response of the key board when the key board enters a state to be detected;
The acquiring module 20 is configured to acquire a key value of the triggered key recorded by the operating system if the operating system has shielded the key triggering response;
The comparison module 30 is configured to compare a key value of the triggered key with a configuration key value of the key board;
the second judging module 40 is configured to judge whether the key board meets a preset detection standard according to the comparison result.
In the embodiment, when the key board enters a state to be detected, the first judging module 10 judges whether the operating system shields the key triggering response of the key board or not; the obtaining module 20 obtains a key value of the triggered key recorded by the operating system if the operating system shields the key triggering response; the comparison module 30 compares the key value of the triggered key with the configuration key value of the key board; the second judging module 40 judges whether the key board accords with a preset detection standard according to the comparison result. In the embodiment, when the key board enters the mode to be detected, the key value of the triggered key recorded by the operating system is acquired in the state that the operating system has shielded the key triggering response, and the key value of the triggered key is compared with the configuration key value, so that whether the key board meets the preset detection standard is judged according to the comparison result, the technical problem that the time consumption is long in the key board detection in the prior art is solved, and the key board detection efficiency is improved.
Based on the first embodiment of the automatic detection device for the key board, a second embodiment of the automatic detection device for the key board is provided.
In this embodiment, the second judging module 40 is further configured to send a release instruction to the operating system when the key board detection is completed, so that the operating system releases a key trigger response according to the release instruction; and when the operating system releases the key trigger response, sending a key board detection result to the operating system.
The obtaining module 20 is further configured to send a recording instruction to the operating system if the operating system has shielded the key triggering response, so that the operating system records a key value of the triggered key according to the recording instruction; and acquiring the key value of the triggered key recorded by the operating system.
The first judging module 10 is further configured to obtain a control signal sent by a control device to an operating system, and judge whether the control signal is triggered by a preset key in the control device; and when the control signal is triggered by a preset key in the control equipment, judging that the key control board enters a state to be detected.
The first judging module 10 is further configured to obtain a control command sent to the operating system through a preset interface, and judge whether the control command is a key board detection command; and when the control command is a key board detection command, judging that the key board enters a state to be detected.
The comparison module 30 is further configured to determine a trigger key function corresponding to the triggered key according to a key value of the triggered key; determining a configuration key function corresponding to the triggered key according to the configuration key value of the triggered key; and comparing the trigger key function with the configuration key function.
The comparing module 30 is further configured to determine that the key board meets a preset detection standard when the trigger key function is consistent with the configuration key function.
Other embodiments or specific implementation manners of the automatic detection device for a key board of the present invention may refer to the above method embodiments, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. read-only memory/random-access memory, magnetic disk, optical disk), comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (7)

1. An automatic detection method for a key board, comprising:
When the key control board enters a state to be detected, judging whether an operating system shields a key trigger response of the key control board or not;
if the operating system shields the key triggering response, acquiring a key value of the triggered key recorded by the operating system;
Comparing the key value of the triggered key with the configuration key value of the key control board;
Judging whether the key control board accords with a preset detection standard according to a comparison result;
before the step of judging whether the operating system shields the key trigger response of the key control board when the key control board enters the state to be detected, the method further comprises the following steps:
acquiring a control signal sent to an operating system by control equipment, and judging whether the control signal is triggered by a preset key in the control equipment or not;
When the control signal is triggered by a preset key in the control equipment, judging that the key control board enters a state to be detected;
after the step of judging whether the key board accords with the preset detection standard according to the comparison result, the method further comprises the following steps:
when the key control board is detected to be finished, a release instruction is sent to the operating system, so that the operating system releases a key trigger response according to the release instruction;
when the operating system releases the key trigger response, sending a key board detection result to the operating system;
And if the operating system has shielded the key triggering response, acquiring a key value of the triggered key recorded by the operating system, wherein the step comprises the following steps:
If the operating system shields the key triggering response, a recording instruction is sent to the operating system, so that the operating system records the key value of the triggered key according to the recording instruction;
and acquiring the key value of the triggered key recorded by the operating system.
2. The method of claim 1, wherein prior to the step of shielding a key trigger response of the key pad when the key pad enters a state to be detected, the method further comprises:
acquiring a control command sent to an operating system through a preset interface, and judging whether the control command is a key board detection command or not;
And when the control command is a key board detection command, judging that the key board enters a state to be detected.
3. The method of claim 1 or 2, wherein comparing the key value of the actuated key with the configuration key value of the key pad comprises:
Determining a trigger key function corresponding to the triggered key according to the key value of the triggered key;
determining a configuration key function corresponding to the triggered key according to the configuration key value of the triggered key;
and comparing the trigger key function with the configuration key function.
4. The method of claim 3, wherein the determining whether the key board meets a preset detection standard according to the comparison result comprises:
And when the trigger key function is consistent with the configuration key function, judging that the key control board meets a preset detection standard.
5. An automatic key board detection device, comprising:
the first judging module is used for judging whether the operating system shields the key trigger response of the key control board when the key control board enters a state to be detected;
The acquisition module is used for acquiring a key value of the triggered key recorded by the operating system if the operating system shields the key triggering response;
the comparison module is used for comparing the key value of the triggered key with the configuration key value of the key control board;
The second judging module is used for judging whether the key control board accords with a preset detection standard or not according to the comparison result;
the first judging module is further configured to:
acquiring a control signal sent to an operating system by control equipment, and judging whether the control signal is triggered by a preset key in the control equipment or not;
When the control signal is triggered by a preset key in the control equipment, judging that the key control board enters a state to be detected;
The second judging module is further configured to:
when the key control board is detected to be finished, a release instruction is sent to the operating system, so that the operating system releases a key trigger response according to the release instruction;
when the operating system releases the key trigger response, sending a key board detection result to the operating system;
The acquisition module is further configured to:
If the operating system shields the key triggering response, a recording instruction is sent to the operating system, so that the operating system records the key value of the triggered key according to the recording instruction;
and acquiring the key value of the triggered key recorded by the operating system.
6. An automatic key board detection device, the device comprising: a memory, a processor and a key board automatic detection program stored on the memory and executable on the processor, the key board automatic detection program being configured to implement the steps of the key board automatic detection method as claimed in any one of claims 1 to 4.
7. A storage medium, wherein a key board automatic detection program is stored on the storage medium, and the key board automatic detection program, when executed by a processor, implements the steps of the key board automatic detection method according to any one of claims 1 to 4.
CN202110782077.9A 2021-07-09 2021-07-09 Automatic detection method, device, equipment and storage medium for key board Active CN113533953B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110782077.9A CN113533953B (en) 2021-07-09 2021-07-09 Automatic detection method, device, equipment and storage medium for key board

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110782077.9A CN113533953B (en) 2021-07-09 2021-07-09 Automatic detection method, device, equipment and storage medium for key board

Publications (2)

Publication Number Publication Date
CN113533953A CN113533953A (en) 2021-10-22
CN113533953B true CN113533953B (en) 2024-06-11

Family

ID=78127420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110782077.9A Active CN113533953B (en) 2021-07-09 2021-07-09 Automatic detection method, device, equipment and storage medium for key board

Country Status (1)

Country Link
CN (1) CN113533953B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6108614A (en) * 1993-01-22 2000-08-22 Diablo Research Corporation System and method for serial communication between a central unit and a plurality of remote units
CN102193553A (en) * 2010-03-02 2011-09-21 珠海格力电器股份有限公司 Method, device and system for testing function of air conditioning controller
CN105912333A (en) * 2016-04-11 2016-08-31 上海斐讯数据通信技术有限公司 Method and system for shielding virtual key of mobile terminal
CN106341731A (en) * 2015-07-14 2017-01-18 Tcl集团股份有限公司 Method and device for responding to remote-control key of intelligent television
WO2017045444A1 (en) * 2015-09-18 2017-03-23 深圳Tcl数字技术有限公司 Remote controller key allocation method and device
CN107493396A (en) * 2017-09-28 2017-12-19 努比亚技术有限公司 Button screen method, terminal and computer-readable recording medium
CN111045590A (en) * 2019-12-04 2020-04-21 广州小鹏汽车科技有限公司 Method and system for vehicle-mounted key simulation, storage medium and vehicle
CN112019903A (en) * 2020-08-27 2020-12-01 深圳创维-Rgb电子有限公司 Television remote control key response method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6108614A (en) * 1993-01-22 2000-08-22 Diablo Research Corporation System and method for serial communication between a central unit and a plurality of remote units
CN102193553A (en) * 2010-03-02 2011-09-21 珠海格力电器股份有限公司 Method, device and system for testing function of air conditioning controller
CN106341731A (en) * 2015-07-14 2017-01-18 Tcl集团股份有限公司 Method and device for responding to remote-control key of intelligent television
WO2017045444A1 (en) * 2015-09-18 2017-03-23 深圳Tcl数字技术有限公司 Remote controller key allocation method and device
CN105912333A (en) * 2016-04-11 2016-08-31 上海斐讯数据通信技术有限公司 Method and system for shielding virtual key of mobile terminal
CN107493396A (en) * 2017-09-28 2017-12-19 努比亚技术有限公司 Button screen method, terminal and computer-readable recording medium
CN111045590A (en) * 2019-12-04 2020-04-21 广州小鹏汽车科技有限公司 Method and system for vehicle-mounted key simulation, storage medium and vehicle
CN112019903A (en) * 2020-08-27 2020-12-01 深圳创维-Rgb电子有限公司 Television remote control key response method and device

Also Published As

Publication number Publication date
CN113533953A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
EP3567478B1 (en) Method for preloading application, storage medium, and terminal
US10932196B2 (en) Method for reducing power consumption of mobile terminal, storage medium and mobile terminal
US9817484B2 (en) Method for capturing screen content of mobile terminal and device thereof
CN109840418B (en) Jump control method and device for application program, storage medium and terminal
CN110363888B (en) Door lock management method and device, electronic equipment and readable storage medium
CN108551521B (en) Login information prompting method and mobile terminal
EP3702913A1 (en) Input operation processing method and processing device, and computer-readable storage medium
CN112738046B (en) One-key login method, terminal and system server
CN107450839A (en) Control method, device, storage medium and mobile terminal based on blank screen gesture
US9348999B2 (en) User terminal, reliability management server, and method and program for preventing unauthorized remote operation
CN112583981B (en) Method and device for displaying screen after screen breaking
US10863521B1 (en) Broadcast receiver control method and apparatus, and mobile terminal
CN113533953B (en) Automatic detection method, device, equipment and storage medium for key board
CN113596593A (en) Multi-terminal interaction method, television and computer readable storage medium
CN110891265B (en) Wireless connection control method and device, mobile terminal and storage medium
CN105425936B (en) Method and device for adapting terminal to external device and terminal
CN107968799B (en) Information acquisition method, terminal equipment and system
CN113806700A (en) Information display method and device
CN111309613A (en) Application testing method, device, equipment and computer readable storage medium
CN114449511B (en) Product activation method, device, electronic equipment and computer readable storage medium
CN111061630A (en) Product debugging method, debugging device and readable storage medium
CN112083839A (en) Terminal operation method, terminal and device with storage function
CN112363662B (en) Screen locking and unlocking method of display screen, display terminal and readable storage medium
CN110795321A (en) Misoperation processing method and device and terminal equipment
CN108055377B (en) T card detection method and mobile terminal

Legal Events

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