Test apparatus, methods and storage media
By designing a testing device that includes a fixing component and a motion module, automated life testing of sensors is achieved, solving the problems of long testing time, low efficiency and poor accuracy of existing testing methods, and improving testing efficiency and accuracy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- LETARON ELECTRONICS
- Filing Date
- 2023-04-27
- Publication Date
- 2026-07-03
AI Technical Summary
Existing methods for testing sensor lifespan are time-consuming, inefficient, and produce inaccurate results.
A testing device is provided, including a first fixing member, a second fixing member, a counting module, and a motion module. The motion module drives the fixing members to reciprocate, causing the sensor to repeatedly sense the fixing members and generate sensing signals. The counting module counts the sensing signals to achieve automated testing.
It reduced testing time, improved testing efficiency, reduced statistical errors, and increased the accuracy of test results.
Smart Images

Figure CN116429165B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of equipment testing technology, and more specifically, to a testing apparatus, method, and storage medium. Background Technology
[0002] A sensor is an instrument that can sense external factors and convert them into usable output signals. It uses high-precision, high-stability sensors and signal processing circuits. The sensor outputs a sensed signal through the signal processing circuit, realizing at least one of the functions of detecting, displaying, alarming, and controlling external factors.
[0003] In the production of sensor products, to ensure their proper functioning after leaving the factory, it is necessary to sample some or all products for lifespan testing before shipment. Conventional lifespan testing involves manual inspection of the sampled products, that is, controlling the generation of sensing signals for each product by manually moving the sensors and counting the number of times to obtain lifespan test results. This method is time-consuming, inefficient, and prone to statistical errors, affecting the accuracy of the test results. Summary of the Invention
[0004] This application provides a testing apparatus, method, and storage medium that can solve the problems of long testing time, low efficiency, and poor accuracy of test results in existing testing methods. To achieve this objective, this application provides the following solutions.
[0005] According to one aspect of the embodiments of this application, a testing device is provided, the device including a first fixing member, a second fixing member, a counting module, and a motion module connected to the first fixing member or the second fixing member;
[0006] The sensor to be tested is fixed on the second fixing member, and the counting module is connected to the sensor.
[0007] The motion module is used to drive the first fixed member or the second fixed member to reciprocate, so that the sensor reciprocates to sense the first fixed member and generates a sensing signal.
[0008] The counting module is used to count the sensing signals to obtain the test results of the sensor.
[0009] In one possible implementation, the device further includes a motion setting module connected to the motion module. The motion setting module is used to receive input motion setting information and control the reciprocating motion of the motion module according to the motion setting information. The motion setting information includes at least one of the following: the number of reciprocating motions, speed, motion angle, and motion type.
[0010] In one possible implementation, the first fixing member is provided with a sensing device, the sensor generates a sensing signal when it senses the sensing device, the counting module includes a counting indicator circuit with an indicator light, the counting indicator circuit is connected to the sensor, and the counting indicator circuit controls the indicator light to light up when the sensor generates the sensing signal.
[0011] In one possible implementation, the device further includes a controller connected to the motion setting module and the sensor. The controller and the sensor are correspondingly connected to form a working circuit, and the motion setting module controls the power supply to the working circuit.
[0012] In one possible implementation, the output end of the motion module is connected to the first fixing member, the testing device includes a housing, a portion of one side of the housing is recessed to form a placement platform, the bracket of the first fixing member is disposed on the placement platform, and the output end of the motion module and the sensor are disposed on different sides of the placement platform.
[0013] In one possible implementation, the first fixing member further includes a fixing clip for holding the sensing device, the fixing clip being disposed at the top of the bracket and having one end connected to the output end of the motion module.
[0014] According to another aspect of the embodiments of this application, a testing method is provided for use with the testing apparatus as described above, comprising:
[0015] S101: The control motion module drives the first or second fixed component to reciprocate, and receives the sensing signal generated by the first fixed component by the sensor reciprocating;
[0016] S102: Count the sensing signals and obtain the test result of the sensor based on the counting result.
[0017] Optionally, the control motion module drives the first or second fixing member to reciprocate, including:
[0018] The system receives input motion setting information and controls the motion module to reciprocate according to the motion setting information. The motion setting information includes at least one of the following: the number of reciprocating movements, speed, motion angle, and motion type.
[0019] Optionally, obtaining the test result of the sensor based on the counting result includes:
[0020] The results are compared with a preset number of sensing attempts. The test result is determined based on the comparison results and then output.
[0021] According to another aspect of the embodiments of this application, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described above.
[0022] The beneficial effects of the technical solutions provided in this application are:
[0023] This application provides a testing device, method, and storage medium, specifically including: a first fixing member, a second fixing member, and a motion module connected to the first or second fixing member; a sensor to be tested is fixed on the second fixing member; and a counting module is connected to the sensor; the motion module drives the first or second fixing member to reciprocate; during reciprocating motion, the sensor repeatedly senses the first fixing member, generating a sensing signal; and the counting module calculates the number of sensing signals. This application embodiment uses the motion module to drive the first or second fixing member to reciprocate, causing the sensor to repeatedly generate a sensing signal due to the reciprocating sensing of the first fixing member; the counting module counts the sensing signals to obtain the test result. Therefore, this application embodiment eliminates the need for manual testing and statistics. After the sensor to be tested is fixed on the testing device, the testing device can automatically control the sensor to generate sensing signals and count the number of times, reducing testing time, improving testing efficiency, reducing the likelihood of statistical errors, and improving the accuracy of the test results. Attached Figure Description
[0024] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments of this application will be briefly introduced below.
[0025] Figure 1 A structural diagram of the testing apparatus provided in the embodiments of this application;
[0026] Figure 2 An external structural diagram of the testing device provided in the embodiments of this application;
[0027] Figure 3 A schematic diagram of the connection of the testing device provided in the embodiments of this application;
[0028] Figure 4 A flowchart illustrating the operation of the testing apparatus provided in the embodiments of this application;
[0029] Figure 5 A flowchart of the testing method provided in the embodiments of this application.
[0030] Explanation of icon numbers:
[0031] 1. Testing equipment;
[0032] 11. First fastener; 111. Fastener clip; 112. Bracket;
[0033] 12. Second fastener; 121. First outer casing; 122. Second outer casing; 1221. Mounting hole;
[0034] 123. Casters; 124. Placement platform;
[0035] 13. Counting module; 131. Indicator light; 132. Counting meter; 133. Counting control key; 14. Motion module; 15. Control panel. Detailed Implementation
[0036] The embodiments of this application are described below with reference to the accompanying drawings. It should be understood that the embodiments described below with reference to the accompanying drawings are exemplary descriptions for explaining the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions of the embodiments of this application.
[0037] Those skilled in the art will understand that, unless otherwise stated, the singular forms “a,” “an,” “the,” and “the” used herein may also include the plural forms. It should be further understood that the terms “comprising” and “including” as used in embodiments of this application mean that the corresponding feature can be implemented as the presented feature, information, data, step, operation, element, and / or component, but do not exclude implementation as other features, information, data, step, operation, element, component, and / or combinations thereof supported by the art. It should be understood that when we say that an element is “connected” or “coupled” to another element, the one element can be directly connected or coupled to the other element, or it can mean that the one element and the other element establish a connection relationship through an intermediate element. Furthermore, “connected” or “coupled” as used herein can include wireless connection or wireless coupling. The term “and / or” as used herein indicates at least one of the items defined by the term; for example, “A and / or B” indicates implementation as “A,” or implementation as “A,” or implementation as “A and B.”
[0038] To make the objectives, technical solutions, and advantages of the present invention clearer, the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.
[0039] The technical solutions of the embodiments of the present invention and the technical effects produced by the technical solutions of the present invention will be described below through several exemplary embodiments. It should be noted that the following embodiments can be referred to, learned from, or combined with each other, and the same terms, similar features, and similar implementation steps in different embodiments will not be described again.
[0040] A sensor is an instrument that can sense external factors and convert them into usable output signals. It uses high-precision, high-stability sensors and signal processing circuits. The sensor outputs a sensed signal through the signal processing circuit, realizing at least one of the functions of detecting, displaying, alarming, and controlling external factors.
[0041] In the production of sensor products, to ensure their proper functioning after leaving the factory, it is necessary to sample some or all products for lifespan testing before shipment. Conventional lifespan testing involves manual inspection of the sampled products, that is, controlling the generation of sensing signals for each product by manually moving the sensors and counting the number of times to obtain lifespan test results. This method is time-consuming, inefficient, and prone to statistical errors, affecting the accuracy of the test results.
[0042] The testing apparatus, method, and storage medium provided in this application are intended to solve at least one problem existing in the prior art.
[0043] This application provides a testing device in its embodiments. For example... Figure 1 As shown, the testing device 1 includes a first fixing member 11, a second fixing member 12, a counting module 13, and a motion module 14 connected to either the first fixing member 11 or the second fixing member 12. The sensor to be tested is fixed to the second fixing member 12, and the counting module 13 is connected to the sensor. The motion module 14 drives the first fixing member 11 or the second fixing member 12 to reciprocate, causing the sensor to repeatedly sense the first fixing member 11 and generate a sensing signal. The counting module 13 counts the sensing signals to obtain the test result of the sensor. The motion module 14 can drive the first fixing member 11 or the second fixing member 12 to rotate, translate vertically, horizontally, forwardly, backward, or perform other operations, as long as the sensor can repeatedly sense the first fixing member 11 and generate a sensing signal.
[0044] Optionally, the first fixing member 11 is provided with a sensing device, which corresponds to the sensor. When the sensor detects the sensing device, it generates a sensing signal. The first fixing member 11 or the second fixing member 12 is driven to reciprocate by the motion module 14 to realize the situation where the sensing device is repeatedly detected by the sensor, thereby generating multiple sensing signals.
[0045] Optionally, the sensor may include at least one of infrared sensors, temperature sensors, microwave sensors, and other types of sensors. The corresponding sensing device may include an infrared sensor, a temperature sensor, a microwave sensor, and other devices that can be detected by the sensor, generate a sensing signal, and be repeatedly detected by the sensor due to reciprocating motion.
[0046] Optionally, the motion module 14 is equipped with a drive motor, which drives the first fixing member 11 or the second fixing member 12 to reciprocate.
[0047] Optionally, multiple sensors are fixed on the second fixing member 12, and the multiple sensors are arranged at equal intervals. The types of sensors fixed on the second fixing member 12 can be the same or different.
[0048] Optionally, the fixing method between the first fixing member 11 and the sensor may include any one of a variety of fixing methods such as clamping, fitting, snapping, bolt fixing, and adhesive.
[0049] In one embodiment, the second fixing member 12 has multiple grooves, and the sensor is fixed in the grooves. The first fixing member 11 is provided with a sensing device, which is opposite to the sensor. The motion module 14 is connected to the first fixing member 11 and drives the first fixing member 11 to rotate. When the first fixing member 11 rotates, the sensing device is repeatedly detected by the sensor. Each time the sensor detects the sensing device, it generates a sensing signal. The counting module 13 counts the number of times the sensor generates a sensing signal, thereby obtaining the number of times the sensor emits a sensing signal before it stops generating a sensing signal. Based on this number, the life test result of the sensor is obtained (wherein, this number can be used as the life test result of the sensor).
[0050] Optionally, the sensing device can be a metal sensing device, a heating film, a high-temperature generating device, or other devices capable of enabling the sensor to detect the sensing device at a specific location or area and generate a sensing signal. Specifically, the motion module 14 drives the first fixing member 11 or the second fixing member 12 to reciprocate, and this reciprocating motion repeatedly achieves the scenario where the sensor detects the sensing device at a specific location or area, causing the sensor to emit a sensing signal. This specific location or area can be set according to the reciprocating motion method and the structure and function of the sensor.
[0051] Optionally, the test device 1 may also be equipped with a communication module, which acquires the counting result of the counting module 13 and sends the counting result to the test object.
[0052] The testing device 1 of this application embodiment includes a first fixing member 11, a second fixing member 12, and a motion module 14 connected to either the first fixing member 11 or the second fixing member 12. The sensor to be tested is fixed on the second fixing member 12, and a counting module 13 is connected to the sensor. The motion module 14 drives the first fixing member 11 or the second fixing member 12 to reciprocate. During the reciprocating motion, the sensor repeatedly senses the first fixing member 11, generating a sensing signal. The counting module 13 calculates the number of sensing signals to obtain the number of sensing times. In this application embodiment, the motion module 14 drives the first fixing member 11 or the second fixing member 12 to reciprocate, causing the sensor to repeatedly generate a sensing signal due to the reciprocating sensing of the first fixing member 11. The counting module 13 counts the sensing signals to obtain the test result. Therefore, this application embodiment eliminates the need for manual testing and statistics. After the sensor to be tested is fixed on the testing device, the testing device can automatically control the sensor to generate sensing signals and count the number of times, reducing testing time, improving testing efficiency, reducing the likelihood of statistical errors, and improving the accuracy of the test results.
[0053] This application also provides a testing device, such as... Figure 1-4 As shown, the motion module 14 in the testing device 1 is connected to the first fixing member 11 or the second fixing member 12. The sensor to be tested is fixed on the second fixing member 12, and the counting module 13 is connected to the sensor. The motion module 14 is used to drive the first fixing member 11 or the second fixing member 12 to reciprocate so that the sensor reciprocates to sense the first fixing member 11 to generate a sensing signal. The counting module 13 is used to count the sensing signal to obtain the test result of the sensor.
[0054] Optionally, the sensor includes various types of sensors such as hand-scanning switches, door control switches, and human body sensing switches.
[0055] Optionally, the testing device 1 further includes a motion setting module connected to the motion module 14. The motion setting module is used to receive input motion setting information and control the motion module 14 to reciprocate according to the motion setting information. The motion setting information includes at least one of the following: the number of reciprocating movements, speed, motion angle, and motion type.
[0056] In one embodiment, the motion module 14 drives the first fixing member 11 or the second fixing member 12 to rotate. The motion setting module may include a control panel 15, which has multiple buttons, knobs, or setting circuits to receive motion setting information input by the test object. Specifically, the control panel 15 includes a speed controller knob, a counting setting circuit, and an angle knob. The speed controller knob controls the rotation speed of the motion module 14, the counting setting circuit sets the number of tests (i.e., the number of rotations), and the angle knob obtains the angle of each rotation. The counting setting circuit includes a total counter, which counts the total number of tests performed by the testing device 1.
[0057] The control panel 15 may also include a start button, a stop button, and a power button. The start button and stop button control the start and stop of the test device 1, respectively, and the power button controls whether the test device 1 is powered on.
[0058] Optionally, the first fixing member 11 is provided with a sensing device. When the sensor senses the sensing device, it generates a sensing signal. The counting module 13 includes a counting indicator circuit with an indicator light 131. The counting indicator circuit is connected to the sensor. When the sensor generates a sensing signal, the counting indicator circuit controls the indicator light 131 to light up.
[0059] The indicator light 131 is configured according to the output load or voltage of the sensor, and its voltage is the same as the voltage of the sensor. When the sensor generates a sensing signal, the indicator light 131 lights up.
[0060] Optionally, each sensor corresponds to a counting indicator circuit. When a sensor generates a sensing signal, the corresponding counting indicator circuit controls the indicator light 131 to illuminate. The counting indicator circuit also includes a counting control key 133, which controls whether the counting indicator circuit counts the number of times the sensing signal is generated.
[0061] In one embodiment, the counting indicator circuit includes a counter 132, which displays the number of times the sensor generates a sensing signal. Specifically, the indicator light 131, the counter 132, and the counting control key 133 are arranged on the same side of the testing device 1, and the counter 132 is located between the indicator light 131 and the counting control key 133.
[0062] Optionally, the testing device 1 further includes a controller, which is connected to the motion setting module and the sensor. The controller and the sensor are correspondingly connected to form a working circuit, and the motion setting module controls the power supply to and from the working circuit. The controller can be connected to either the input or output terminal of the sensor, and the connection method between the sensor and the controller can be set according to the sensor's operating mode.
[0063] In one embodiment, the working circuit includes a controller, sensors, and indicator lights 131 for the counting indicator circuit. The control panel 15 includes a controller switch button connected to the input terminal of the controller, which controls the power supply to the working circuit. The controller is configured to correspond one-to-one with each sensor, and activates the sensor's sensing function after the working circuit is powered on.
[0064] In other embodiments, the operating parameters of the sensor (such as sensing distance, sensing angle, detection frequency, etc.) can also be controlled by the controller.
[0065] Optionally, the output end of the motion module 14 is connected to the first fixing member 11, the second fixing member 12 includes a housing (not shown), a portion of one side of the housing is recessed to form a placement platform 124, the bracket 112 of the first fixing member 11 is disposed on the placement platform 124, and the output end of the motion module 14 and the sensor are disposed on different sides of the placement platform 124.
[0066] In one embodiment, the housing includes a first outer shell 121 and a second outer shell 122, in addition to the placement platform 124. The first outer shell 121 and the second outer shell 122 are perpendicular to each other and form an angle, with the placement platform 124 located within this angle. A control panel 15 is disposed on the first outer shell 121, and a first fixing member 11 is fixed to the side of the first outer shell 121 facing the placement platform 124. The motion module 14 is disposed within the first outer shell 121. One end of the bracket 112 is fixed to the placement platform 124. The controller is fixed to the side of the second housing near the placement platform 124. Indicator lights 131, counters 132, and counting control keys 133 are all disposed on the top of the second housing. A plurality of mounting holes 1221 are also provided on the side of the second outer shell 122 near the placement platform 124. Each mounting hole 1221 corresponds to a sensing device on the first fixing member 11, and the sensor is fixed within the mounting hole 1221. Specifically, the second housing 122 is also provided with terminals at positions corresponding to the two ends of the controller for connecting to the input and output ends of the controller, through which power is supplied to the controller or the controller is connected to the sensor.
[0067] Optionally, the first fixing member 11 further includes a fixing clip 111 for holding the sensing device. The fixing clip 111 is located at the top of the bracket 112 and one end is connected to the output end of the motion module 14.
[0068] In one embodiment, the top of the bracket 112 is rotatably connected to both ends of the fixing clamp 111, and the motion module 14 drives the fixing clamp 111 to rotate on the bracket 112.
[0069] Optionally, an angle dial is provided at the connection between the first housing 121 and the fixing clamp 111. The angle dial has a pointer that indicates the rotation angle of the fixing clamp 111, so as to facilitate angle adjustment of the test object. The control panel 15 can also be equipped with a tachometer that displays the rotation angle of the fixing clamp 111.
[0070] Optionally, the housing also includes a power supply, which includes a low-voltage power supply, to power the counting indicator circuit, controller, sensor, motion module 14, and other devices in the test device 1.
[0071] Optionally, to facilitate the movement of the testing device 1, the bottom of the housing is also provided with a plurality of casters 123. In one embodiment, the number of casters 123 is four, and they can be omnidirectional wheels.
[0072] In one embodiment, in order to facilitate power supply to the power source or other devices in the housing, a socket or power input interface is also provided on the housing, through which power is supplied.
[0073] Optionally, after acquiring the counting result from the counting module 13, the testing device 1 compares it with the pre-stored number of sensor lifespans, and obtains information on whether the sensor is qualified based on the comparison result. Specifically, if the counting result is greater than or equal to the pre-stored number of sensor lifespans, the sensor is determined to be qualified; otherwise, it is determined to be unqualified.
[0074] The following section provides a further explanation of the specific workflow of test device 1.
[0075] In one embodiment, the motion setting module of the testing device 1 or the test object acquires the lifespan count information (preset sensing count) of the sensor to be tested. The sensor is installed on the second fixing member 12 of the testing device 1 (i.e., the sensor is installed in the mounting hole 1221), and the controller is connected to the sensor (alternatively, the controller can be omitted, and the sensor can be directly connected to the motion setting module). The sensing device is then installed on the first fixing member 11. The motion setting module acquires the rotation angle setting information and resets the counter to zero. The total number of tests for the sensor is obtained through the total counter of the motion setting module (this number of tests can be determined according to the preset sensing count of the sensor). The rotation speed of the motion module 14 is set through the motion setting module (this rotation speed is determined according to the sensor's sensing response time, and this rotation speed is less than the sensor's sensing response time).
[0076] The testing device 1 powers on the controller, and the sensor begins to operate. The counting control key 133 controls the counting indicator circuit to count, and checks whether indicator light 131 illuminates when the sensor detects a signal. If it illuminates (one count), the test continues. When the sensor generates a signal, indicator light 131 does not illuminate, and the test is paused to check the cause (a pause command can be received by pressing the stop button in the motion setting module on the test object; the testing device 1 can also pause the test if it detects a sensor generating a signal before counting begins and indicator light 131 does not illuminate). After confirming there are no problems, the test resumes. During the test, if the sensor is working normally, indicator light 131 illuminates; if the sensor is malfunctioning, indicator light 131 does not illuminate, and the corresponding counting indicator circuit does not count. After the entire test is completed (this can be done by allowing all tested sensors to complete their entire lifespan or by reaching the value set by the total counter), the count value in the counting table 132 of the counting indicator circuit is used to determine whether the number of times the sensor generated a signal is greater than or equal to the number in the lifespan information. If yes, the sensor is deemed qualified (meets design requirements); otherwise, it is deemed unqualified. The count value or test result indicating whether the design requirements are met is sent to the test object or the customer (i.e., the object providing the sensor or the object requiring the count value). The sensor's lifespan test is then complete, and the power supply to test device 1 is disconnected.
[0077] The test device 1 can intuitively obtain the number of times the sensor has been activated, thereby determining the lifespan of the sensor; it provides a convenient testing method for sensor users and manufacturers and improves the efficiency of obtaining the number of activations, enabling them to better control the quality of sensor products, facilitate better use of the sensor, and maximize the sensor's intended effect.
[0078] This application also proposes a testing method for use with the testing apparatus described in the above embodiments. For example... Figure 5 As shown, the test methods include:
[0079] S101: The control motion module drives the first or second fixed component to reciprocate, and receives the sensing signal generated by the sensor reciprocatingly sensing the first fixed component.
[0080] Optionally, controlling the motion module to drive the first or second fixed member to reciprocate includes: receiving input motion setting information, and controlling the motion module to reciprocate according to the motion setting information, wherein the motion setting information includes at least one of the following: the number of reciprocating movements, speed, motion angle, and motion type.
[0081] In one embodiment, the first fixing member is provided with a sensing device for generating a sensing signal from the sensor. The testing device receives motion setting information through the motion setting module and supplies power to the sensor after the test starts, causing the first fixing member or the second fixing member to reciprocate so that the sensing device on the first fixing member is detected by the sensor. After detecting the sensing device, the sensor generates a sensing signal, and the counting indicator circuit connected to the sensor controls the indicator light to light up.
[0082] S102: Count the sensed signals and obtain the sensor test results based on the count results.
[0083] Optionally, the test result of the sensor is obtained based on the counting result, including: comparing the result with a preset number of sensing times, determining the test result based on the comparison result, and outputting the test result.
[0084] In one embodiment, the testing device counts the sensing signals generated by the sensor using a counting indicator circuit. After obtaining the counting result, the testing device compares the result with a preset number of sensing attempts to determine if the count result is less than the preset number of sensing attempts. If so, the sensor corresponding to the count result is determined to be unqualified (not meeting design requirements); otherwise, the sensor corresponding to the count result is determined to be qualified (meeting design requirements).
[0085] Optionally, after all sensors have been tested, the testing device sends the counting result or test result data to the customer or test subject who needs the data.
[0086] This application also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it can implement the steps and corresponding content of the aforementioned liquid protection performance testing method embodiment.
[0087] The terms "first," "second," "third," "fourth," "1," "2," etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in a sequence other than that shown in the figures or text.
[0088] It should be understood that although arrows indicate various operation steps in the flowcharts of this application's embodiments, the order in which these steps are implemented is not limited to the order indicated by the arrows. Unless explicitly stated herein, in some implementation scenarios of this application's embodiments, the implementation steps in each flowchart can be executed in other orders as required. Furthermore, some or all steps in each flowchart, based on the actual implementation scenario, may include multiple sub-steps or multiple stages. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage can also be executed at different times. In scenarios where execution times differ, the execution order of these sub-steps or stages can be flexibly configured according to requirements, and this application's embodiments do not limit this.
[0089] The above description is only an optional implementation method for some implementation scenarios of this application. It should be noted that for those skilled in the art, other similar implementation methods based on the technical concept of this application without departing from the technical concept of this application also fall within the protection scope of the embodiments of this application.
Claims
1. A test device, characterized by It includes a first fixing member, a second fixing member, a counting module, and a motion module connected to the first fixing member; The sensor to be tested is fixed on the second fixing member, and the counting module is connected to the sensor. The motion module is used to drive the first fixed member to reciprocate, so that the sensor reciprocates to sense the first fixed member and generates a sensing signal. The counting module is used to count the sensing signals to obtain the test results of the sensor; The motion module is used to drive the first fixed component to rotate; The motion module also includes a control panel, which includes an angle knob for obtaining the angle of each rotation; The testing device also includes a controller for controlling the operating parameters of the sensor, including the sensing angle. The first fixing member is provided with a sensing device, and the sensor generates a sensing signal when it detects the sensing device. The output end of the motion module is connected to the first fixing member. The second fixing member includes a housing. A portion of one side of the housing is recessed to form a placement platform. The bracket of the first fixing member is disposed on the placement platform. The output end of the motion module and the sensor are disposed on different sides of the placement platform. The housing further includes: a first outer shell and a second outer shell; the first outer shell and the second outer shell are perpendicular to each other and form an included angle, and the placement platform is located inside the included angle; The control panel is mounted on the first outer casing; The motion module is disposed inside the first housing; The first fixing member further includes: a bracket and a fixing clip for clamping the sensing device; one end of the bracket is fixed to the placement platform; the fixing clip is disposed at the top of the bracket, and one end of the fixing clip is connected to the output end of the motion module; The second housing has multiple mounting holes on the side near the placement platform for mounting the sensor; The second fixing member is fixed with a plurality of sensors, and the sensors are arranged at equal intervals; the sensors are configured to be the same or different; the first fixing member is provided with a sensing device corresponding to each sensor; The device further includes a motion setting module connected to the motion module. The motion setting module is used to receive input motion setting information and control the reciprocating motion of the motion module according to the motion setting information. The motion setting information includes at least one of the number of reciprocating motions, speed, and motion angle.
2. The apparatus of claim 1, wherein, The counting module includes a counting indicator circuit with an indicator light. The counting indicator circuit is connected to the sensor. When the sensor generates the sensing signal, the counting indicator circuit controls the indicator light to light up.
3. The apparatus of claim 1, wherein, The controller is connected to the motion setting module and the sensor. The controller and the sensor are connected to form a working circuit. The motion setting module controls the power supply to the working circuit.
4. A test method characterized by, The test apparatus as described in any one of claims 1-3 comprises: S101: The control motion module drives the first fixed member to reciprocate, and receives the sensing signal generated by the sensor in reciprocating sensing of the first fixed member; S102: Count the sensing signals and obtain the test result of the sensor based on the counting result.
5. The method of claim 4, wherein, The motion control module drives the first fixed member to reciprocate, including: The system receives input motion setting information and controls the motion module to reciprocate according to the motion setting information. The motion setting information includes at least one of the following: the number of reciprocating movements, speed, and motion angle.
6. The method of claim 4, wherein, The step of obtaining the test result of the sensor based on the counting result includes: The results are compared with a preset number of sensing attempts. The test result is determined based on the comparison results and then output.
7. A computer-readable storage medium having stored thereon a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 4-6.