Control circuit board of light guide through keyboard and detection method thereof, and readable storage medium
By using a main control chip to automatically detect pin short circuits, data transmission abnormalities, and key presses on the optically conductive keyboard, and using the keyboard light status to indicate the results, the problem of low detection efficiency of optically conductive keyboards has been solved, achieving efficient and reliable automatic detection.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-23
- Publication Date
- 2026-03-03
AI Technical Summary
The traditional detection process for optically conductive keyboards is cumbersome, resulting in low detection efficiency and failing to meet the rapid detection needs of industrial production.
The main control chip automatically performs pin short-circuit self-test, data transmission communication connectivity test, and optical conduction key pair abnormality test, and uses different working states of the keyboard lights to indicate the test results, thus achieving automated testing.
Significantly improves testing efficiency, reduces manual intervention, ensures testing reliability and speed, and meets the high-efficiency production needs of optical conductive keyboard production lines.
Smart Images

Figure CN114994501B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of keyboard technology, and in particular to a control circuit board for an optically conductive keyboard, a detection method thereof, and a readable storage medium. Background Technology
[0002] On the traditional production line of optical keyboards, after the control printed circuit board containing the main control chip of the optical keyboard is produced, it needs to be tested and inspected for quality. This process is mainly done manually. Testers need to check multiple items, including the main control chip, the keyboard lights, the data transmission interface, and the soldering of the optical key pins, to ensure that the optical keyboard can work properly. The process is complicated and requires testers to handle multiple tasks. For example, testers need to visually inspect whether the soldering of the keyboard lights on the circuit board is intact and without abnormalities. Testers also need to connect the main control chip of the control circuit board to the computer host and press each key controlled by the main control chip to test whether there are any abnormalities in the actual function of each key.
[0003] Therefore, this testing scheme requires testers to simultaneously observe the computer monitor to confirm the keyboard keys are functioning correctly and the keyboard backlighting on the control circuit board. This cumbersome and inconvenient process leads to low testing efficiency. Especially with the rapid development of industrialization, the production efficiency of optical keyboards has increased rapidly, placing higher demands on the testing efficiency and reliability of optical keyboards. Otherwise, the testing cannot match the production efficiency, thus affecting shipments. The aforementioned testing scheme, which requires testers to observe different test items simultaneously, clearly cannot meet the current industry demands for testing efficiency. Summary of the Invention
[0004] In view of this, the purpose of the present invention is to provide a control circuit board for an optically conductive keyboard and a detection method thereof, as well as a readable storage medium, to solve the above problems.
[0005] To achieve the above objectives, the present invention adopts the following technical solution:
[0006] This invention provides a method for detecting the control circuit board of an optically conductive keyboard. The control circuit board includes a main control chip and keyboard lights corresponding one-to-one with the keys of the optically conductive keyboard. The detection method includes: detecting whether a short circuit occurs in the pins of the main control chip; if so, the keyboard lights operate in a first state and the detection stops; if not, the keyboard lights operate in a second state; detecting whether the main control chip can perform data transmission communication; if not, the keyboard lights operate in a third state and the detection stops; detecting whether each key pair of the optically conductive keyboard can normally transmit key signals; if not, the keyboard lights operate in a fourth state and the detection stops.
[0007] Preferably, when the keyboard lights are working in the first state or the second state, it is determined whether there are any keyboard lights that cannot light up normally; if so, the detection is stopped.
[0008] Preferably, before detecting whether a short circuit occurs in the pins of the main control chip, the control circuit board detection method further includes: powering on the control circuit board, reading the identification code pre-written on the flash memory of the main control chip corresponding to the untested control circuit board, stopping the detection if the identification code is not confirmed, and after detecting that each key pair of the optical conductive keyboard can transmit key signals normally, the control circuit board detection method further includes: modifying the identification code on the flash memory of the main control chip and stopping the detection.
[0009] Preferably, the method for detecting whether a pin of the main control chip is short-circuited includes: outputting each pin at a high level and a low level respectively, detecting whether the adjacent pins of the current pin under test maintain the same high or low state as the output level of the current pin under test; if so, it is determined that the current pin under test is not short-circuited; if not, it is determined that the current pin under test is short-circuited.
[0010] Preferably, the control circuit board further includes a communication interface. The method for detecting whether the main control chip can perform data transmission communication includes: the main control chip connects to the computer host through the communication interface for communication, and detects whether there is signal transmission at the communication interface and whether the device enumeration of the optically conductive keyboard can be completed. If yes, it is determined that the main control chip can perform data transmission communication; if no, it is determined that the main control chip cannot perform data transmission communication.
[0011] Preferably, the communication interface is a USB interface, and the method for detecting whether the communication interface is transmitting signals includes: detecting the signal transmission of the input signal line and the output signal line of the USB interface.
[0012] Preferably, the method for detecting whether each key pair of the optically conductive keyboard can transmit key signals normally includes: the transmitting end of the key pair sends a signal, and the receiving end of the key pair detects whether there is a corresponding signal input. If yes, it is determined that the key pair can transmit key signals normally; if no, it is determined that the key pair cannot transmit key signals normally.
[0013] Preferably, the first state of the keyboard light is that the keyboard light flashes for a first preset number of times at a first preset frequency, the second state of the keyboard light is that the keyboard light stays on for a preset duration and then turns off, the third state of the keyboard light is that the keyboard light flashes for a second preset number of times at a second preset frequency, and the fourth state of the keyboard light is that it stays on.
[0014] The present invention also provides a readable storage medium storing a control circuit board detection program for an optically conductive keyboard. The control circuit board detection program for an optically conductive keyboard is executed by the main control chip of the controlled circuit board to implement the control circuit board detection method for an optically conductive keyboard as described above.
[0015] The present invention also provides a control circuit board for an optically conductive keyboard, the control circuit board including a main control chip and keyboard lights corresponding one-to-one with the keys of the optically conductive keyboard, the main control chip including the readable storage medium as described above.
[0016] The technical effects achieved by the technical solution of this invention include:
[0017] Based on the main control chip, it automatically performs corresponding pin short-circuit self-tests, data transmission communication connectivity tests, and optical conduction key pair anomaly tests. The keyboard lights indicate different test results through different working states for observation. At the same time, it completes the keyboard lights' own tests, realizing the overall testing of the control circuit board. It is not necessary to check the computer monitor connected to the control circuit board to confirm whether the keyboard function is normal. It can easily identify defective control circuit boards. Testers do not need to check the soldering and the host monitor connected to the control circuit board from multiple aspects. It can effectively reduce testing time, greatly improve testing efficiency, and meet the rapid testing needs brought about by the current optical conduction keyboard industry's increased production line efficiency. Attached Figure Description
[0018] Figure 1 This is a structural block diagram of the control circuit board detection method for an optically conductive keyboard provided in an embodiment of the present invention;
[0019] Figure 2 This is a schematic diagram showing the connection of the main control chip on the control circuit board. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of the present invention clearer, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Examples of these preferred embodiments are illustrated in the drawings. The embodiments of the present invention shown in and described with reference to the drawings are merely exemplary, and the present invention is not limited to these embodiments.
[0021] It should also be noted that, in order to avoid obscuring the invention with unnecessary details, only the structures and / or processing steps closely related to the solution according to the invention are shown in the accompanying drawings, while other details that are not closely related are omitted.
[0022] See Figure 1 and Figure 2 As shown, this embodiment of the invention provides a method for detecting the control circuit board of a light-conducting keyboard. The control circuit board includes a main control chip 1 and keyboard lights corresponding one-to-one with the keys of the light-conducting keyboard. The method for detecting the control circuit board includes:
[0023] Step S1: Check if there is a short circuit in the pins of the main control chip 1. If yes, the keyboard lights work in the first state and the detection stops. If no, the keyboard lights work in the second state.
[0024] Step S2: Check if the main control chip 1 can perform data transmission communication. If not, the keyboard lights work in the third state and the detection stops.
[0025] Step S3: Check whether each key pair of the optically conductive keyboard can transmit key signals normally. If not, the keyboard lights work in the fourth state and the detection stops.
[0026] The control circuit board detection method for the optically conductive keyboard provided by this invention is based on the main control chip 1 performing corresponding pin short-circuit self-tests, data transmission communication connectivity tests, and optically conductive key pair abnormality tests. The keyboard lights can represent different test results with different operating states. Once a corresponding faulty keyboard light state is detected, the test can be stopped to confirm the fault. Therefore, the above-mentioned test results of the control circuit board of the optically conductive keyboard can be obtained simply by observing the keyboard light states, thus completing the overall test of the control circuit board without having to check each key on the computer monitor connected to the control circuit board to confirm whether the keyboard function is normal. Furthermore, by simultaneously observing whether the keyboard lights are on or off in different operating states, it is also possible to confirm whether any of the keyboard lights themselves are abnormal.
[0027] In summary, this control circuit board testing method can automatically and quickly complete the testing through the main control chip 1 of the control circuit board. The defective control circuit board can be easily identified by observing the status of the keyboard lights. Testers do not need to check the soldering and the host display connected to the control circuit board from multiple aspects. This can effectively reduce the testing time, greatly improve the testing efficiency, and meet the rapid testing needs brought about by the increased production efficiency of optical keyboards.
[0028] like Figure 2 As shown, in this embodiment, the main control chip 1 of the control circuit board is connected to the computer host 40 for power-on via a data transmission interface. Since the keyboard keys are generally arranged in a matrix, the keyboard lights corresponding to them also form a keyboard light matrix 2. Similarly, the corresponding number of key pairs form a key pair matrix 3. The main control chip 1 controls the keyboard light matrix 2 corresponding to the keys of the light-conducting keyboard, and receives input signals from the key pair matrix 3 to send corresponding signals to the computer host 40 through the data transmission interface.
[0029] Furthermore, before step S1 detects whether a short circuit has occurred on the pins of the main control chip 1, the control circuit board detection method further includes:
[0030] Step P1: Power on the control circuit board and read the identification code pre-written on the flash memory of the main control chip 1 corresponding to the untested control circuit board. If the identification code is not confirmed, the detection stops.
[0031] In this embodiment, the main control chip 1 of the control circuit board is connected to the computer host 40 through the data transmission interface for power-on. An identification code is pre-written on a specific area of the flash memory of the main control chip. This identification code indicates that the control circuit board has not been tested. Then, the system reads the corresponding identification code on the flash memory of the main control chip 1. If the identification code is confirmed to be consistent with the pre-written identification code, the control circuit board enters the detection mode for the main control chip 1, data transmission communication connection, keyboard lights, and light-conducting key pairs, and begins to execute the above step S1. If the identification code is not confirmed, it means that the control circuit board does not need to be tested, and the control circuit board does not enter the detection mode and stops testing.
[0032] For example, in step S1, the method for detecting whether a pin of the main control chip 1 is short-circuited includes: outputting each pin at a high level and a low level respectively, detecting whether the adjacent pins of the current pin under test are in a consistent high or low state with the output level of the current pin under test; if so, it is determined that the current pin under test is not short-circuited; if not, it is determined that the current pin under test is short-circuited.
[0033] Combination Figure 2 As shown, step S1 above, during the self-test process of the main control chip 1, is used to detect whether there is a short circuit in the I / O port pins. Specifically, in this embodiment, every three adjacent pins are grouped together for detection, referring to... Figure 2 As shown, for example, the main control chip 1 includes three adjacent first pins 11a, second pins 11b and third pins 11c. The first pins 11a and third pins 11c, which are adjacent to the second pin 11b, are set to a high-impedance input state. When the second pin 11b outputs a low level, it is detected whether the first pins 11a and third pins 11c output a low level synchronously. When the second pin 11b outputs a high level, it is detected whether the first pins 11a and third pins 11c output a high level synchronously. This is recorded. If the adjacent pins of the current pin under test are in a consistent high or low state with the output level of the current pin under test, it is determined that the current pin under test is not short-circuited. Otherwise, if they are inconsistent, it is determined that the current pin under test is short-circuited.
[0034] Furthermore, when the keyboard lights are working in the first or second state, it is determined whether any keyboard lights are not emitting light normally; if so, the detection is stopped.
[0035] This embodiment uses the status of the keyboard lights to indicate the detection results of the control circuit board for the light-conducting keyboard. Therefore, the presence of any abnormalities in the keyboard lights can be directly confirmed by whether they can turn on and off normally. If any keyboard lights cannot turn on and off normally, they are marked, and the testing is stopped. This eliminates the need for separate testing steps such as soldering the keyboard lights, further improving testing efficiency. In this embodiment, conventional LED lights are generally used for the keyboard lights.
[0036] The aforementioned control circuit board also includes a communication interface. For example, in step S2, the method for detecting whether the main control chip can perform data transmission communication includes: the main control chip 1 connects to the computer host 40 through the communication interface to communicate; detecting whether there is signal transmission through the communication interface and whether the device enumeration of the optically conductive keyboard can be completed; if yes, it is determined that the main control chip 1 can perform data transmission communication; if no, it is determined that the main control chip 1 cannot perform data transmission communication.
[0037] In this embodiment, the communication interface is a USB interface, and the method for detecting whether the communication interface is transmitting signals includes: detecting the signal transmission of the input signal line and the output signal line of the USB interface.
[0038] Specifically, in step S1, after confirming that all keyboard lights can be turned on and off normally, data transmission communication is tested. The control circuit board is connected to the computer host via USB interface for USB communication, and then the input signal line D of the USB interface is tested. + and output signal line D - If USB signal transmission exists and device enumeration, i.e., successfully sending device information to the computer host, is achieved, it proves that the main control chip can perform data transmission and communication normally.
[0039] For example, in step S3, the method for detecting whether each key pair of the optically conductive keyboard can transmit key signals normally includes: the transmitting end of the key pair sends a signal, and the receiving end of the key pair detects whether there is a corresponding signal input. If yes, it is determined that the key pair can transmit key signals normally; if no, it is determined that the key pair cannot transmit key signals normally.
[0040] Specifically, by opening the keyboard key pair transmitters row by row, it is detected whether the receiver of each key pair in that row can receive the signal input sent by the corresponding transmitter. If each key can receive the signal, it proves that the conduction of each key pair is normal. If there is a key receiver that cannot receive the signal or continuously receives the signal (i.e., receives a signal that is not sent the corresponding number of times by the corresponding transmitter), it proves that the key pair is abnormal, and the detection is stopped.
[0041] Furthermore, after step S3 detects that each key pair of the optically conductive keyboard can transmit key signals normally, the control circuit board detection method further includes: step P2, modifying the identification code on the flash memory of the main control chip 1, and stopping the detection.
[0042] If no abnormalities occur after performing step S3, it proves that the control circuit board of the optical keyboard has completed the detection and can exit the detection mode. The control circuit board will not need to be detected again the next time it is powered on. Therefore, by modifying the identification code on the flash memory in step P2, step P1 will not be able to confirm the corresponding identification code upon power-on, thus preventing the control circuit board from re-entering the detection mode. For example, in this embodiment, pressing a combination hotkey on the optical keyboard is used to exit the detection mode, completing the detection of the optical keyboard's control circuit board. Afterwards, step P3 is executed: re-entering the optical keyboard's normal function mode.
[0043] The embodiments of the present invention can be regarded as a detection system consisting of a main control chip welding detection module, a USB connectivity detection module, a button light abnormality detection module, a light conduction button pair abnormality detection module, and a test mode exit module.
[0044] For example, the first state of the keyboard light is that the keyboard light flashes at a first preset frequency for a first preset number of times. Specifically, the first preset frequency can be set to 4Hz, and the first preset number of times can be set to 5 times. The first state of the keyboard light is that the keyboard light flashes rapidly at 4Hz 5 times. The second state of the keyboard light is that the keyboard light stays on for a preset duration and then turns off. Specifically, the preset duration can be set to 2 seconds, and the keyboard light stays on for 2 seconds and then turns off. The third state of the keyboard light is that it flashes at a second preset frequency for a second preset number of times. Specifically, the second preset frequency can be set to 1Hz, and the second preset number of times can be set to 2 times. The third state of the keyboard light is that it flashes slowly at 1Hz 2 times. The fourth state of the keyboard light is that it remains on. Since step S3 in this embodiment detects key pairs row by row, the keyboard light in the third state activates the entire row of key pairs, while the fourth state marks abnormal keyboard lights and keeps them on, thus indicating abnormal key pairs.
[0045] This invention also provides a readable storage medium storing a control circuit board detection program for an optically conductive keyboard. The control circuit board detection program for an optically conductive keyboard is executed by the main control chip 1 of the controlled circuit board to implement the control circuit board detection method for an optically conductive keyboard as described above.
[0046] This invention also provides a control circuit board for an optically conductive keyboard. The control circuit board includes a main control chip 1 and keyboard lights that correspond one-to-one with the keys of the optically conductive keyboard. The main control chip 1 includes the readable storage medium described above.
[0047] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0048] The above description is only a specific embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A method for detecting the control circuit board of a light-conducting keyboard, characterized in that, The control circuit board includes a main control chip and keyboard lights that correspond one-to-one with the keys of the optically conductive keyboard. The detection method for the control circuit board includes: Check if there is a short circuit in the pins of the main control chip. If so, the keyboard lights work in the first state and the detection stops. If not, the keyboard lights work in the second state. When the keyboard lights are working in the first or second state, determine if there are any keyboard lights that cannot light up normally. If so, mark the keyboard lights that cannot light up or turn off normally and stop the detection. The system checks whether the main control chip can perform data transmission and communication. If not, the keyboard lights operate in the third state, and the test stops. The system checks whether each key pair of the optically conductive keyboard can transmit key signals normally. If not, the keyboard lights operate in the fourth state, and the test stops. The control circuit board detection method further includes, before detecting whether a short circuit occurs on the pins of the main control chip: When the control circuit board is powered on, it reads the identification code pre-written on the flash memory of the main control chip corresponding to the untested control circuit board. If the identification code is not found, the testing stops. After verifying that each key pair of the optically conductive keyboard can transmit key signals normally, the control circuit board testing method further includes: Modify the identification code on the flash memory of the main control chip to stop the detection.
2. The method for detecting the control circuit board of the optically conductive keyboard according to claim 1, characterized in that, Methods for detecting short circuits in the pins of the main control chip include: Each pin is output at a high level and a low level respectively. The adjacent pins of the current pin under test are checked to see if they are in the same high or low state as the output level of the current pin under test. If they are, it is determined that the current pin under test is not short-circuited. If not, it is determined that the current pin under test is short-circuited.
3. The method for detecting the control circuit board of the optically conductive keyboard according to claim 1, characterized in that, The control circuit board also includes a communication interface, and the method for detecting whether the main control chip can perform data transmission communication includes: The main control chip connects to the computer host through the communication interface to communicate. It detects whether there is a signal transmission through the communication interface and whether the device enumeration of the optically conductive keyboard can be completed. If yes, it determines that the main control chip can perform data transmission communication; otherwise, it determines that the main control chip cannot perform data transmission communication.
4. The method for detecting the control circuit board of the optically conductive keyboard according to claim 3, characterized in that, The communication interface is a USB interface. The method for detecting whether there is signal transmission at the communication interface includes detecting the signal transmission of the input signal line and the output signal line of the USB interface.
5. The method for detecting the control circuit board of the optically conductive keyboard according to claim 1, characterized in that, Methods for testing whether each key pair of a photoconductive keyboard can transmit key signals normally include: The transmitter of the button pair sends a signal and checks whether the receiver of the button pair has a corresponding signal input. If yes, it is determined that the button pair can transmit the button signal normally; otherwise, it is determined that the button pair cannot transmit the button signal normally.
6. The method for detecting the control circuit board of a light-conducting keyboard according to any one of claims 1 to 5, characterized in that, The first state of the keyboard light is that the keyboard light flashes for a first preset number of times at a first preset frequency. The second state of the keyboard light is that the keyboard light stays on for a preset duration and then turns off. The third state of the keyboard light is that the keyboard light flashes for a second preset number of times at a second preset frequency. The fourth state of the keyboard light is that it stays on.
7. A readable storage medium, characterized in that, The readable storage medium stores a control circuit board detection program for an optically conductive keyboard. The control circuit board detection program for an optically conductive keyboard is executed by the main control chip of the controlled circuit board to implement the control circuit board detection method for an optically conductive keyboard as described in any one of claims 1 to 6.
8. A control circuit board for a light-conducting keyboard, characterized in that, It includes a main control chip and keyboard lights that correspond one-to-one with the keys of the optically conductive keyboard. The main control chip includes the readable storage medium as described in claim 7.
Citation Information
Patent Citations
Keyboard circuit board detection system
CN109254239A