CN110779697B - Switch detection method and device and switch function detection device - Google Patents

Switch detection method and device and switch function detection device Download PDF

Info

Publication number
CN110779697B
CN110779697B CN201911049931.XA CN201911049931A CN110779697B CN 110779697 B CN110779697 B CN 110779697B CN 201911049931 A CN201911049931 A CN 201911049931A CN 110779697 B CN110779697 B CN 110779697B
Authority
CN
China
Prior art keywords
switch
information
pressing mechanism
detected
detection
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
CN201911049931.XA
Other languages
Chinese (zh)
Other versions
CN110779697A (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.)
Suzhou RS Technology Co Ltd
Original Assignee
Suzhou RS Technology 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 Suzhou RS Technology Co Ltd filed Critical Suzhou RS Technology Co Ltd
Priority to CN201911049931.XA priority Critical patent/CN110779697B/en
Publication of CN110779697A publication Critical patent/CN110779697A/en
Application granted granted Critical
Publication of CN110779697B publication Critical patent/CN110779697B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M13/00Testing of machine parts
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01LMEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
    • G01L5/00Apparatus for, or methods of, measuring force, work, mechanical power, or torque, specially adapted for specific purposes
    • G01L5/0028Force sensors associated with force applying means
    • G01L5/0038Force sensors associated with force applying means applying a pushing force
    • 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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Force Measurement Appropriate To Specific Purposes (AREA)
  • Push-Button Switches (AREA)

Abstract

The invention discloses a switch detection method, a device and a switch function detection device, wherein the method comprises the following steps: detecting the position of a pressing mechanism in the switch to be detected when the switch to be detected is in an initial state to obtain first position information; the initial state is a state in which the detection mechanism is in contact with the pressing mechanism; detecting the position of the pressing mechanism when the switch to be detected is switched from the initial state to the on-off switching state to obtain second position information; detecting the pushing force exerted on the pressing mechanism when the pressing mechanism is kept at the second position to obtain first pushing force information; obtaining first displacement information according to the first position information and the second position information; and judging whether the switch to be detected is a good product or not according to the first displacement information and the first thrust information. By implementing the method, the detection of the internal structure of the switch to be detected can be realized, the detection can be realized only by pressing the pressing mechanism twice by the detection mechanism, the detection efficiency is high, and therefore, the comprehensive detection can also be realized.

Description

Switch detection method and device and switch function detection device
Technical Field
The present invention relates to the field of switch detection technologies, and in particular, to a switch detection method and device, and a switch function detection device.
Background
The push type switch is a special switch, in particular to an electrical appliance which is connected or disconnected in a short time, and mainly comprises a normally open (dynamic closing) push switch and a normally closed (dynamic disconnection) push switch, wherein when a push mechanism of the normally open push switch is not pressed down, a contact and a terminal are disconnected, the contact and the terminal are closed and connected when pressed down, and simultaneously, after the push mechanism is loosened, the switch is reset and disconnected under the action of a reset spring; when the pressing mechanism of the normally closed switch is not pressed down, the contact and the terminal are closed, when the pressing mechanism is pressed down, the contact and the terminal are disconnected, and simultaneously, after the pressing mechanism is released, the switch is reset and closed under the action of the reset spring. In addition, the composite push switch also comprises a normally open and normally closed push switch which are combined into a whole. However, as one of the switches, like other switches, a common detection method of the conventional push switch is a sample life detection method, and has low detection efficiency and poor detection comprehensiveness.
Disclosure of Invention
In view of this, embodiments of the present invention provide a switch detection method, a switch detection device, and a switch function detection device, so as to solve the problems of low detection efficiency and poor detection comprehensiveness of the existing detection method for a push switch.
To this end, according to a first aspect, an embodiment of the present invention provides a switch detection method, including: detecting the position of a pressing mechanism in the switch to be detected when the switch to be detected is in an initial state to obtain first position information; the initial state is a state in which the detection mechanism is in contact with the pressing mechanism; detecting the position of the pressing mechanism when the switch to be detected is switched from the initial state to the on-off switching state to obtain second position information; detecting the pushing force exerted on the pressing mechanism when the pressing mechanism is kept at the second position to obtain first pushing force information; obtaining first displacement information according to the first position information and the second position information; and judging whether the switch to be detected is a good product or not according to the first displacement information and the first thrust information.
The detection mechanism detects first displacement information between an initial state and an on-off switching state of the switch to be detected (namely the displacement required for moving the pressing mechanism when the on-off switching state of the switch is completed) and first thrust information exerted on the pressing mechanism when the pressing mechanism is kept at a second position (namely the minimum force required for realizing the on-off switching state of the switch, namely reverse elastic force generated by the resetting mechanism when the switch is positioned at a critical point of the on-off switching state), judges whether the switch to be detected is good according to the first displacement information and the first thrust information, can realize the detection of the relative position relation (through the first displacement information) and the performance (through the first thrust information) of the internal structure of the switch to be detected, and can realize the detection only by pressing the pressing mechanism twice (respectively obtaining the first displacement information and the first thrust information), the detection efficiency is high, so that all switches can be used as switches to be detected, and comprehensive detection is realized.
With reference to the first aspect, in a first implementation manner of the first aspect, the switch detection method further includes: acquiring the maximum displacement of the pressing mechanism; detecting the pushing force applied to the pressing mechanism when the pressing mechanism is kept at the position corresponding to the maximum displacement, and obtaining second pushing force information; and judging whether the switch to be detected is a good product or not according to the second thrust information.
When the pressing mechanism is kept at the position corresponding to the maximum displacement through detection, the second thrust information applied to the pressing mechanism, namely, the reverse elastic force generated when the reset mechanism (the buffer mechanism is also included when the normally open switch is available) in the switch to be detected is detected through detection, whether the switch to be detected is a good product is judged, the detection of the performance of the mechanism (mainly the reset mechanism and the buffer mechanism) inside the switch to be detected can be further realized, the detection comprehensiveness of each switch to be detected can be improved, and the accuracy of a detection result is improved.
With reference to the first embodiment of the first aspect, in a second embodiment of the first aspect, the switch detection method further includes: detecting the position of the pressing mechanism when the state of the pressing mechanism is recovered to the on-off switching state from the position corresponding to the maximum displacement, and obtaining third position information; detecting the position of the pressing mechanism when the on-off switching state is restored to the initial state, and obtaining fourth position information; obtaining second displacement information according to the third position information and the fourth position information; and judging whether the switch to be detected is a good product or not according to the first displacement information and the second displacement information.
The reset performance of the reset mechanism in the switch to be detected is detected, namely the reusability of the switch to be detected is detected, so that the detection comprehensiveness of each switch to be detected can be further improved, and the accuracy of detection results is improved.
With reference to the first aspect, in a third embodiment of the first aspect, the step of obtaining the first thrust information by detecting a thrust applied to the pressing mechanism when the pressing mechanism is held at the second position includes: controlling the voice coil motor to move to a second position in a position mode, and acquiring the current running current of the voice coil motor to obtain a first running current; acquiring a conversion relation between the operating current and the thrust of the voice coil motor; and obtaining first thrust information according to the first operating current and the conversion relation.
With reference to the third embodiment of the first aspect, in the fourth embodiment of the first aspect, the step of obtaining a conversion relation between the operating current and the thrust of the voice coil motor includes: sequentially taking a plurality of preset current values as running currents, and controlling a voice coil motor to apply thrust to a force sensor to obtain a plurality of corresponding thrust values; and obtaining a conversion relation between the running current and the thrust of the voice coil motor according to the plurality of current values and the corresponding plurality of thrust values.
The voice coil motor is controlled to apply thrust to the force sensor by sequentially taking a plurality of preset current values as the running current, a plurality of corresponding thrust values are obtained, and then according to the plurality of current values and the plurality of corresponding thrust values, an (actual) conversion relation between the running current and the thrust of the voice coil motor is obtained, so that the (actual) conversion relation can be used for replacing a theoretical conversion relation between the running current and the thrust of the voice coil motor, the conversion relation between the running current and the thrust of the voice coil motor is corrected, and the accuracy of detecting a detection result by detecting a switch to be detected based on the voice coil motor is improved.
With reference to the second aspect, an embodiment of the present invention provides a switch detection apparatus, including: the first detection module is used for detecting the position of a pressing mechanism in the switch to be detected when the switch to be detected is in an initial state to obtain first position information; the initial state is a state in which the detection mechanism is in contact with the pressing mechanism; the second detection module is used for detecting the position of the pressing mechanism when the switch to be detected is switched from the initial state to the on-off switching state to obtain second position information; the third detection module is used for detecting the thrust applied to the pressing mechanism when the pressing mechanism is kept at the second position to obtain first thrust information; the displacement calculation module is used for obtaining first displacement information according to the first position information and the second position information; and the switch detection module is used for judging whether the switch to be detected is a good product or not according to the first displacement information and the first thrust information.
With reference to the third aspect, an embodiment of the present invention provides a switching function detecting apparatus, including: the positioning mechanism is used for limiting the movement of the switch to be detected arranged on the carrier; the conduction testing mechanism is electrically coupled with a fixed terminal in the switch to be tested and used for testing whether the switch to be tested is switched on or off; the detection control mechanism comprises a memory and a processor, and the positioning mechanism, the conduction testing mechanism and the detection mechanism are electrically coupled with the processor; the memory stores computer instructions, and the processor controls the operations of the positioning mechanism, the conduction testing mechanism and the detecting mechanism by executing the computer instructions, and executes the switch detecting method according to the first aspect or any one of the embodiments of the first aspect.
With reference to the fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer instructions are stored, and the computer instructions are configured to enable a computer to execute the switch detection method according to the first aspect or any one of the implementation manners of the first aspect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIGS. 1A-1D are schematic diagrams of application scenarios according to embodiments of the present invention;
fig. 2A is a schematic diagram of a first state of a 2-terminal normally-closed switch according to an embodiment of the present invention;
fig. 2B is a schematic diagram of a second state of a 2-terminal normally-closed switch according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a 2-terminal normally open switch according to an embodiment of the present invention;
fig. 4 is a flowchart of a method of detecting a switch according to embodiment 1 of the present invention;
FIG. 5 is a flowchart illustrating the detailed steps of step S403 in FIG. 4;
fig. 6 is a schematic block diagram of a switch detection device in embodiment 2 of the present invention;
fig. 7 is a schematic hardware configuration diagram of a switch function detection apparatus according to embodiment 2 of the present invention;
1-a carrier;
2-a positioning mechanism; 21-a pressing mechanism; 211-a compression member; 212-impact driver; 22-a limiting mechanism; 221-a limit stop; 2211-jaw; 222-limit drive;
3-a conduction testing mechanism; 31-a first set of probes; 32-a second set of probes; 33-a first probe drive mechanism; 34-a second probe drive mechanism;
4-a detection mechanism; 41-detection probe; 42-a probe driver;
51-a first chassis; 52-a second gantry;
61-fixed terminals; 62-a pressing mechanism; 63-a reset mechanism; 64-a base; 65-moving terminal; 66-a buffer mechanism;
71-a processor; 72-memory.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "first", "second", and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Fig. 1A to fig. 1D are schematic diagrams illustrating an application scenario of the embodiment of the present invention, in which a switch function detection apparatus is shown, the apparatus includes a carrier 1, a positioning mechanism 2, a conduction testing mechanism 3, and a detection mechanism 4.
As shown in fig. 1A, the carrier 1, the positioning mechanism 2, and the detection mechanism 4 are directly or indirectly fixed to a first frame 51, and the conduction testing mechanism 3 is fixed to a second frame 52. The carrier 1 is used for bearing the switches to be detected, installation spaces suitable for installing the switches to be detected with different sizes are formed in the carrier 1, and the positioning mechanism 2 is arranged corresponding to the carrier 1 and used for stably positioning the switches to be detected on the carrier 1 so as to limit the movement of the switches to be detected and prevent the switches to be detected from inclining to cause inaccurate test data when the detection mechanism 4 and the conduction testing mechanism 3 test the switches to be detected.
As shown in fig. 1B, the positioning mechanism 2 includes a pressing mechanism 21, specifically, as shown in fig. 1C, the pressing mechanism 21 includes a pressing member 211 and a pressing driving member 212 for driving the pressing member 211 to move, the pressing driving member 212 drives the pressing member 211 to abut against the surface of the switch to be detected, wherein a power output end of the pressing driving member 212 is connected to the pressing member 211, and under the driving of the pressing driving member 212, the pressing member 211 abuts against the surface of the switch to be detected, so as to achieve stable installation of the switch to be detected on the carrier 1, wherein the pressing driving member 212 is a common driving member, and may be an air cylinder or a driving motor.
In this embodiment, as shown in fig. 1B and fig. 1C, the positioning mechanism 2 may further include a limiting mechanism 22, where the limiting mechanism 22 is configured to position the switch to be detected when the switch to be detected is small and not enough to extend to the position corresponding to the pressing mechanism 21, specifically, the limiting mechanism 22 includes a limiting part 221 and a limiting driving part 222, the limiting part 221 is located along an outer peripheral edge of the switch to be detected (when the switch to be detected is disposed on the carrier 1, the outer peripheral edge is close to the pressing part 211), an end of the limiting part 221 is provided with a claw 2211, and correspondingly, an elastic lock catch (shown in the drawing) is disposed on the carrier 1 corresponding to the outer periphery of the switch to be detected, and under the driving of the limiting driving part 222, the claw 2211 can move toward the carrier 1 and is engaged with the elastic lock catch on the carrier 1, so as to limit the switch to be detected. Here, it should be noted that, the elastic latch is connected to the carrier 1 through a spring disposed inside the carrier 1, when the spring is in an initial state, the elastic latch protrudes out of the surface of the carrier 1, so that the switch to be detected is small and is not enough to extend to a position corresponding to the pressing mechanism 21 (i.e., when the switch to be detected is not pressed onto the elastic latch), the claw 2211 can be fastened with the protruding elastic latch, so as to limit the switch to be detected, and when the switch to be detected is large and can extend to the pressing mechanism 21, the switch to be detected is pressed onto the elastic latch, the elastic latch can be pressed into the carrier 1, and the switch to be detected can be stably positioned on the carrier 1 by the pressing mechanism 21.
As shown in fig. 1D, the detecting mechanism 4 includes a detecting probe 41 and a probe driving member 42 for driving the detecting probe 41 to move, wherein the probe driving member 42 may be a motor, and specifically, the probe driving member 42 may be a voice coil motor.
As shown in fig. 1A, the conduction testing mechanism 3 includes at least one probe group and a first probe driving mechanism 33 disposed corresponding to the probe group, and the first probe driving mechanism 33 is configured to drive the probe group to move along a direction close to or away from the switch to be tested on the carrier 1, so as to couple with a fixed terminal 61 in the switch to be tested, and test whether the switch to be tested is switched on or off. Here, the number of probes in one probe group and the positional relationship between the probes in one probe group may be set according to the position of the fixed terminal 61 in the switch to be detected, for example, when the switch to be detected is a 2-terminal normally closed switch as shown in fig. 2A and 2B or a 2-terminal normally open switch as shown in fig. 3, the probe group may be the first probe group 31 having 2 probes, and when the switch to be detected is a 4-terminal normally closed switch or a 4-terminal normally open switch or a 4-terminal one-open-one-close switch (the structure of the 4-terminal switch may be understood with reference to fig. 2A to 2B and the 2-terminal switch shown in fig. 3), the probe group may be the second probe group 32 having 4 probes, without any limitation.
In this embodiment, in order to further improve the detection efficiency, the detection of two switches to be detected is realized when performing the detection once, and then the carrier 1, the positioning mechanism 2 and the detection mechanism 4 can be correspondingly set to 2, and correspondingly, the number of probe sets in the conduction testing mechanism 3 can also be 2. In addition, in order to enable the conduction testing mechanism 3 to test different types of switches to be tested, one probe set may be provided as one layer, for example, as shown in fig. 1A, the conduction testing mechanism 3 may include a first probe layer composed of two first probe sets 31 and a second probe layer composed of two second probe sets 32 (of course, the specific number of the probe layers and the specific structure of the probe sets in each layer may be set according to actual needs, and are not limited herein), meanwhile, in order to switch different probe layers to detect the switch to be detected according to the requirement, the conduction testing device further comprises a second probe driving mechanism 34 for driving the probe layers to move along the direction vertical to the plane of the probes, thereby switching the probe layer corresponding to the switch to be tested for coupling with the fixed terminal 61 in the switch to be tested.
Fig. 2A and 2B are schematic structural diagrams of a 2-terminal normally closed switch that can be detected by the switch detection method according to the embodiment of the present invention, where fig. 2A and 2B respectively show a first state schematic diagram of the normally closed switch when the pressing mechanism 62 is in an initial state and a second state schematic diagram of the normally closed switch where the pressing mechanism 62 is pressed to a maximum displacement. As shown in fig. 2A and 2B, the 2-terminal normally-closed switch includes: two fixed terminals 61, a pressing mechanism 62 and a reset mechanism 63 (shown by a spring as an example in the figure), wherein one end of the pressing mechanism 62 extends to the outside of a base 64 of the normally closed switch without receiving external force to be used as a carrier to which the external force is applied (when the detection mechanism 4 applies pushing force to the pressing mechanism 62, namely, the end of the pressing mechanism 62 is contacted), the other end of the pressing mechanism 62 is connected with the base 64 through the reset mechanism 63, and the reset mechanism 63 is used for restoring the pressing mechanism 62 to an initial state through self elastic force when the external force on the pressing mechanism 62 is removed. Here, the pressing mechanism 62 is provided with a moving terminal 65 corresponding to the two fixed terminals 61, and the moving terminal 65 is coupled to the fixed terminal 61 to turn on the switch when the pressing mechanism 62 is in an initial state, and is separated from the fixed terminal 61 to turn off the switch when the pressing mechanism 62 is moved by an external force toward the reset mechanism 63.
Fig. 3 is a schematic structural diagram illustrating that the switch detection method in the embodiment of the present invention can detect a 2-terminal normally open switch (which is in a state of being closed and turned on by an external force applied thereto), as shown in fig. 3, the normally open switch is similar in structure to the normally closed switch of fig. 2A and 2B, and the difference between them is that, the movable terminal of the switch is connected to the pressing mechanism 62 by a buffer mechanism 66 (shown in the figure as a spring), and the moving terminal 65 is disengaged from the fixed terminal 61 when the pressing mechanism 62 is in the initial state, so that the switch is in the off state, when the pressing mechanism 62 is moved by an external force toward the reset mechanism 63 by a certain displacement, it is coupled to the fixed terminal 61, so that the switch is in a conducting state, after the buffer mechanism 66 closes and conducts the switch by applying an external force, the pressing mechanism 62 can continue to buffer and move a distance towards the reset mechanism 63 by the external force. The rest of the same mechanisms are not described in detail herein.
Example 1
Fig. 4 is a flowchart illustrating a switch detection method according to an embodiment of the present invention, which can be used for, but is not limited to, the switch function detection apparatus shown in fig. 1A to 1D for detecting the function of a switch to be detected disposed on a vehicle, so as to determine whether the switch is good. As shown in fig. 4, the method includes the steps of:
s401: and detecting the position of a pressing mechanism in the switch to be detected when the switch to be detected is in an initial state to obtain first position information. Here, the initial state refers to a state in which the detection mechanism is in contact with the pressing mechanism.
Here, taking the switch to be detected as a 2-terminal normally closed switch as shown in fig. 2A and 2B as an example, the initial state refers to a state in which the detection probe in the detection mechanism contacts the pressing mechanism in the switch to be detected, but the pressing mechanism is not displaced, that is, in the initial state, the switch to be detected is still in the state shown in fig. 2A.
Here, taking the example that the probe driving member in the detection mechanism is a voice coil motor, the voice coil motor is controlled to operate in a speed mode, the detection probe is driven to approach the pressing mechanism at a constant speed by a small thrust, the detection probe starts to receive a reverse thrust from the pressing mechanism at the moment when the detection probe contacts the pressing mechanism, the moving speed of the detection probe is greatly reduced, and therefore, at the moment when the moving speed of the detection probe starts to be greatly reduced, the position of the detection probe is the position of the pressing mechanism in the switch to be detected in the initial state, and the first position information can be obtained by recording the position.
S402: and detecting the position of the pressing mechanism when the switch to be detected is switched from the initial state to the on-off switching state to obtain second position information.
Here, along with the above example, the voice coil motor is still controlled to operate in the speed mode, and of course, since the reset mechanism in the pressing mechanism deforms during the conversion process from the initial state to the on-off switching state, and the deformation degree increases continuously, and the generated reverse thrust also increases continuously, in this process, the voice coil motor is controlled to generate a thrust greater than that in step S201 to drive the detection probe to push the pressing mechanism (if necessary, the thrust generated by the voice coil motor can also be controlled to increase gradually), until the on-off state change of the switch to be detected is detected through the conduction testing mechanism, the position of the detection probe at this time is recorded, and the second position information is obtained. Specifically, the on-off switching state of the switch to be detected can be detected by the conduction testing mechanism in a manner of directly coupling the probe group in the conduction testing mechanism with the processor executing the switch detection method in the embodiment of the present invention (when the corresponding port of the processor receives an electrical signal, the switch to be detected is in the on state, and vice versa, the switch to be detected is in the off state), and the on-off switching state of the switch to be detected can be detected by the conduction testing mechanism in a manner of connecting the probe group to a load loop provided with an ammeter and coupling the ammeter with the processor executing the switch detection method in the embodiment of the present invention (when the processor receives a current value sent by the ammeter, the switch to be detected is in the on state, and vice versa, the switch to be detected is in the off state).
Specifically, taking the switch to be detected as the normally closed switch shown in fig. 2A and 2B as an example, at the moment when the movable terminal on the pressing mechanism is separated from the fixed terminal, the switch to be detected reaches an on-off switching state, specifically, a state of switching from the on state to the off state.
S403: when the pressing mechanism is held at the second position, the pushing force applied to the pressing mechanism is detected, and first pushing force information is obtained.
Here, in the above example, the probe driving member in the detection mechanism is still a voice coil motor, and in this step, the voice coil motor is controlled to operate in the position mode, and the voice coil motor is controlled to drive the detection probe to stop when the detection probe operates to the second position, and then the thrust output by the voice coil motor at this time is recorded, that is, the first thrust information can be obtained.
S404: and obtaining first displacement information according to the first position information and the second position information.
S405: and judging whether the switch to be detected is a good product or not according to the first displacement information and the first thrust information.
Comparing the first displacement information with a first preset displacement (displacement of the pressing mechanism running from an initial state to a conduction switching state when the preset switch to be detected is good), comparing the first thrust information with a first preset thrust (thrust to be applied when the pressing mechanism is kept in the conduction switching state when the preset switch to be detected is good), and determining that the switch to be detected is good when the difference between the first displacement information and the first preset displacement is smaller than a first difference threshold value and the difference between the first thrust information and the first preset thrust is smaller than a second difference threshold value; otherwise, determining that the switch to be detected is a defective product. Here, the first difference threshold and the second difference threshold may be set according to a specific application scenario, and are not limited herein.
Here, when the switch to be detected is a 2-terminal normally-open switch as shown in fig. 3 or another 4-terminal type switch, a specific implementation manner of the embodiment of the present invention may be understood with reference to the above-mentioned 2-terminal normally-closed switch, and is not described herein again.
In the embodiment of the invention, the detection mechanism is used for detecting the first displacement information between the initial state and the on-off switching state of the switch to be detected (namely the displacement required for moving the pressing mechanism when the on-off switching state of the switch is completed) and detecting the first thrust information exerted on the pressing mechanism when the pressing mechanism is kept at the second position (namely the minimum force required for realizing the on-off switching state of the switch, namely the reverse elastic force generated by the resetting mechanism when the switch is positioned at the critical point of the on-off switching state), and judging whether the switch to be detected is good according to the first displacement information and the first thrust information, so that the detection of the relative position relation (through the first displacement information) and the performance (through the first thrust information) of the internal structure of the switch to be detected can be realized only by pressing the detection mechanism twice (respectively obtaining the first displacement information and the first thrust information), the detection efficiency is high, so that all switches can be used as switches to be detected, and comprehensive detection is realized.
As an optional implementation manner of the embodiment of the present invention, as shown in fig. 4, the switch detection method may further include the following steps:
s406: the maximum displacement of the pressing mechanism is acquired. Here, the maximum displacement is a preset value.
S407: and detecting the pushing force applied to the pressing mechanism when the pressing mechanism is kept at the position corresponding to the maximum displacement, and obtaining second pushing force information.
Here, in the above example, the probe driving member in the detection mechanism is still a voice coil motor, and in this step, the voice coil motor is controlled to operate in the position mode, and the voice coil motor is controlled to drive the detection probe to operate to the position corresponding to the maximum displacement, and then stop, and the thrust output by the voice coil motor at this time is recorded, so that the second thrust information can be obtained. Specifically, if the switch to be detected is a 2-terminal normally closed switch, when the detection probe moves to the position corresponding to the maximum displacement, the switch to be detected is in the state shown in fig. 2B.
S408: and judging whether the switch to be detected is a good product or not according to the second thrust information.
Here, the second thrust information is compared with a second preset thrust (a thrust that needs to be applied when the preset switch to be detected is good is kept in the maximum displacement state by the pressing mechanism), and when the difference between the second displacement information and the second preset displacement is smaller than a third difference threshold value, the switch to be detected is determined to be good; otherwise, determining that the switch to be detected is a defective product. Here, the third difference threshold may be set according to a specific application scenario, and is not limited herein.
Here, it should be noted that, when it is determined in step S405 that the switch to be detected is good, step S406 to step S408 are performed.
In the embodiment of the invention, when the pressing mechanism is kept at the position corresponding to the maximum displacement, the second thrust information applied to the pressing mechanism is detected, that is, the reverse elasticity generated when the reset mechanism (including the buffer mechanism when the normally open switch exists) in the switch to be detected is detected during the maximum deformation is used for judging whether the switch to be detected is good, so that the performance of the mechanisms (mainly the reset mechanism and the buffer mechanism) in the switch to be detected can be further detected, the detection comprehensiveness of each switch to be detected can be improved, and the accuracy of the detection result is improved.
As an optional implementation manner of the embodiment of the present invention, as shown in fig. 4, the switch detection method may further include the following steps:
s409: and detecting the position of the pressing mechanism when the state of the pressing mechanism is recovered to the on-off switching state from the position corresponding to the maximum displacement, and obtaining third position information.
Here, referring to step S401 and step S402, the voice coil motor is controlled to retract the detection probe in a direction away from the switch to be detected with a constant force until the conduction testing mechanism detects that the on-off state of the switch to be detected changes, and then the position of the detection probe at this time is recorded to obtain third position information.
Specifically, still taking the switch to be tested as the normally closed switch shown in fig. 2A and 2B as an example, at the moment when the movable terminal on the pressing mechanism contacts the fixed terminal again, the switch to be tested reaches the on-off switching state, specifically, the off state is switched to the on state.
S410: and detecting the position of the pressing mechanism when the on-off switching state is restored to the initial state, and obtaining fourth position information.
Here, referring to step S401 and step S402 as well, the voice coil motor is continuously controlled to retract the detection probe in the direction away from the switch to be detected with a constant force until the detection probe is separated from the pressing mechanism, the detection probe is no longer subjected to the reverse thrust from the pressing mechanism at the moment, the moving speed of the detection probe starts to be constant, the pressing mechanism returns to the initial state, the position of the detection probe at this time is recorded, and the fourth position information is obtained.
S411: and obtaining second displacement information according to the third position information and the fourth position information.
S412: and judging whether the switch to be detected is a good product or not according to the first displacement information and the second displacement information.
Comparing the second displacement information with the first displacement information, and determining that the switch to be detected is good when the difference value between the second displacement information and the first displacement information is smaller than a fourth difference threshold value; otherwise, determining that the switch to be detected is a defective product. Here, the fourth difference threshold may be set according to a specific application scenario, and is not limited herein.
Here, steps S409 to S412 may be performed after step S405, and at this time, when it is determined in step S405 that the switch to be detected is good, steps S409 to S412 are performed. Of course, the steps S409 to S412 may also be executed after the step S408, and in this case, when the switch to be detected is determined to be good in the step S405 and the switch to be detected is also determined to be good in the step S408, the steps S409 to S412 are executed.
In the embodiment of the invention, whether the switch to be detected is good is judged by comparing the second displacement information (obtained according to the third position information and the fourth position information) obtained by the detection with the first displacement information through the third position information and the fourth position information of the pressing mechanism in the switch to be detected, which are recovered to the on-off switching state from the position where the pressing mechanism is pressed to the maximum displacement and further recovered to the initial state, so that the detection of the resetting performance of the resetting mechanism in the switch to be detected is realized, that is, the detection of the reusability of the switch to be detected is realized, the detection comprehensiveness of each switch to be detected can be further improved, and the accuracy of the detection result is improved.
As an alternative implementation manner of the embodiment of the present invention, the switch detection method in the embodiment of the present invention is described by taking the probe driving member in the detection mechanism as a voice coil motor, and as shown in fig. 5, step S403 may include the following steps:
s501: and controlling the voice coil motor to move to a second position in a position mode, and acquiring the current running current of the voice coil motor to obtain a first running current.
S502: and sequentially taking a plurality of preset current values as running currents, and controlling the voice coil motor to apply thrust to the force sensor to obtain a plurality of corresponding thrust values. Here, the preset current values are at least three.
S503: and obtaining a conversion relation between the running current and the thrust of the voice coil motor according to the plurality of current values and the corresponding plurality of thrust values.
Here, it should be noted that the conversion relation may be obtained in advance before step S501, that is, step S502 to step S503 may be executed before step S501. In fact, in a specific application, the determination of the conversion relation is used as the basis for the calculation of the first thrust information in step S504, and may be performed before step S504, and even, steps S502 to S503 may be performed before step S401.
S504: and obtaining first thrust information according to the first operating current and the conversion relation.
Here, the second thrust information in step S407 may be detected by referring to the first thrust information.
In the embodiment of the invention, a plurality of preset current values are sequentially used as the running current, the voice coil motor is controlled to apply thrust to the force sensor to obtain a plurality of corresponding thrust values, and then the (actual) conversion relation between the running current and the thrust of the voice coil motor is obtained according to the plurality of current values and the plurality of corresponding thrust values, so that the (actual) conversion relation can be used for replacing the theoretical conversion relation between the running current and the thrust of the voice coil motor, the conversion relation between the running current and the thrust of the voice coil motor is corrected, and the accuracy of the detection result obtained by detecting the to-be-detected switch based on the voice coil motor is improved.
Example 2
Fig. 6 shows a schematic block diagram of a switch detection apparatus according to an embodiment of the present invention, which may be used to implement the switch detection method described in embodiment 1 or any alternative implementation thereof. As shown in fig. 6, the apparatus includes: a first detection module 10, a second detection module 20, a third detection module 30, a displacement calculation module 40 and a switch detection module 50.
The first detection module 10 is configured to detect a position of a pressing mechanism in the switch to be detected when the switch to be detected is in an initial state, and obtain first position information. Here, the initial state refers to a state in which the detection mechanism is in contact with the pressing mechanism.
The second detection module 20 is configured to detect a position of the pressing mechanism when the switch to be detected is switched from the initial state to the on-off switching state, so as to obtain second position information.
The third detecting module 30 is configured to detect a pushing force applied to the pressing mechanism when the pressing mechanism is held at the second position, and obtain first pushing force information.
The displacement calculation module 40 is configured to obtain first displacement information according to the first position information and the second position information.
The switch detection module 50 is configured to determine whether the switch to be detected is a good product according to the first displacement information and the first thrust information.
An embodiment of the present invention further provides a switch function detecting device, as shown in fig. 7, the switch function detecting device may include a positioning mechanism, a conduction testing mechanism, a detecting mechanism, and a detection control mechanism, wherein the positioning mechanism is configured to limit movement of a to-be-detected switch disposed on a carrier, the conduction testing mechanism is configured to be electrically coupled to a fixed terminal of the to-be-detected switch, and test whether the to-be-detected switch is switched on or off, the detecting control mechanism includes a memory 72 and a processor 71, and the positioning mechanism, the conduction testing mechanism, and the detecting mechanism are electrically coupled to the processor 71; the memory 72 stores computer instructions, and the processor 71 executes the computer instructions to control the operations of the positioning mechanism, the conduction testing mechanism and the detecting mechanism, and execute the switch detecting method described in embodiment 1 and any one of the embodiments. The processor 71, the memory 72, the positioning mechanism, the conduction testing mechanism, and the detecting mechanism may be connected by a bus or other means, and fig. 7 illustrates the connection by the bus as an example.
For a detailed description of the positioning mechanism, the conduction testing mechanism and the detecting mechanism, please refer to the description of the application scenario before embodiment 1, which is not repeated herein.
The processor 71 may be a Central Processing Unit (CPU). The Processor 71 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 72, as a non-transitory computer-readable storage medium, can be used for storing non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules corresponding to the switch detection method in embodiment 1 of the present invention (for example, the first detection module 10, the second detection module 20, the third detection module 30, the displacement calculation module 40, and the switch detection module 50 shown in fig. 6). The processor 71 executes various functional applications and data processing of the processor by running non-transitory software programs, instructions and modules stored in the memory 72, that is, implements the switch detection method in the above method embodiment.
The memory 72 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 71, and the like. Further, the memory 72 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 72 may optionally include memory located remotely from the processor 71, and such remote memory may be connected to the processor 71 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 72 and, when executed by the processor 71, perform the switch detection method in the embodiment shown in fig. 4-5.
The details of the switch function detecting device can be understood with reference to the corresponding descriptions and effects in the embodiments shown in fig. 1A to 1D, fig. 2A to 2B, and fig. 3 to 5, which are not repeated herein.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
It should be understood that the above examples are only for clarity of illustration and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications therefrom are within the scope of the invention.

Claims (6)

1. A switch detection method, comprising:
detecting the position of a pressing mechanism in a switch to be detected when the switch to be detected is in an initial state to obtain first position information; the initial state refers to a state that the detection mechanism is contacted with the pressing mechanism;
detecting the position of the pressing mechanism when the switch to be detected is switched from the initial state to the on-off switching state to obtain second position information;
detecting the pushing force exerted on the pressing mechanism when the pressing mechanism is kept at the second position to obtain first pushing force information;
obtaining first displacement information according to the first position information and the second position information;
judging whether the switch to be detected is a good product or not according to the first displacement information and the first thrust information;
wherein the method further comprises:
acquiring the maximum displacement of the pressing mechanism;
detecting the thrust applied to the pressing mechanism when the pressing mechanism is kept at the position corresponding to the maximum displacement, and obtaining second thrust information;
judging whether the switch to be detected is a good product or not according to the second thrust information;
detecting the position of the pressing mechanism when the state of the pressing mechanism is recovered to the on-off switching state from the position corresponding to the maximum displacement, and obtaining third position information;
detecting the position of the pressing mechanism when the on-off switching state is restored to the initial state, and obtaining fourth position information;
obtaining second displacement information according to the third position information and the fourth position information;
and judging whether the switch to be detected is a good product or not according to the first displacement information and the second displacement information.
2. The switch detection method according to claim 1, wherein the detection mechanism is a voice coil motor, and the step of detecting a pushing force applied to the pressing mechanism when the pressing mechanism is held at the second position to obtain the first pushing force information includes:
controlling the voice coil motor to move to the second position in a position mode, and acquiring the current running current of the voice coil motor to obtain a first running current;
acquiring a conversion relation between the operating current and the thrust of the voice coil motor;
and obtaining the first thrust information according to the first operating current and the conversion relation.
3. The switch detection method according to claim 2, wherein the step of obtaining the conversion relation between the operating current and the thrust of the voice coil motor comprises:
sequentially taking a plurality of preset current values as running currents, and controlling the voice coil motor to apply thrust to the force sensor to obtain a plurality of corresponding thrust values;
and obtaining a conversion relation between the running current and the thrust of the voice coil motor according to the plurality of current values and the corresponding plurality of thrust values.
4. A switch detection device, comprising:
the first detection module is used for detecting the position of a pressing mechanism in the switch to be detected when the switch to be detected is in an initial state to obtain first position information; the initial state refers to a state that the detection mechanism is contacted with the pressing mechanism;
the second detection module is used for detecting the position of the pressing mechanism when the switch to be detected is switched from the initial state to the on-off switching state, so as to obtain second position information;
the third detection module is used for detecting the pushing force exerted on the pressing mechanism when the pressing mechanism is kept at the second position to obtain first pushing force information;
the displacement calculation module is used for obtaining first displacement information according to the first position information and the second position information;
the switch detection module is used for judging whether the switch to be detected is a good product or not according to the first displacement information and the first thrust information;
wherein, the switch detection module is further configured to: acquiring the maximum displacement of the pressing mechanism;
detecting the thrust applied to the pressing mechanism when the pressing mechanism is kept at the position corresponding to the maximum displacement, and obtaining second thrust information;
judging whether the switch to be detected is a good product or not according to the second thrust information;
detecting the position of the pressing mechanism when the state of the pressing mechanism is recovered to the on-off switching state from the position corresponding to the maximum displacement, and obtaining third position information;
detecting the position of the pressing mechanism when the on-off switching state is restored to the initial state, and obtaining fourth position information;
obtaining second displacement information according to the third position information and the fourth position information;
and judging whether the switch to be detected is a good product or not according to the first displacement information and the second displacement information.
5. A switching function detecting device, comprising:
the positioning mechanism is used for limiting the movement of the switch to be detected arranged on the carrier;
the conduction testing mechanism is electrically coupled with a fixed terminal in the switch to be tested and used for testing whether the switch to be tested is switched on or off;
the detection control mechanism comprises a memory and a processor, and the positioning mechanism, the conduction testing mechanism and the detection mechanism are electrically coupled with the processor; the memory stores computer instructions, and the processor controls the operation of the positioning mechanism, the conduction testing mechanism and the detection mechanism by executing the computer instructions, and executes the switch detection method according to any one of claims 1 to 3.
6. A computer-readable storage medium storing computer instructions for causing a computer to perform the switch detection method of any one of claims 1 to 3.
CN201911049931.XA 2019-10-31 2019-10-31 Switch detection method and device and switch function detection device Active CN110779697B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911049931.XA CN110779697B (en) 2019-10-31 2019-10-31 Switch detection method and device and switch function detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911049931.XA CN110779697B (en) 2019-10-31 2019-10-31 Switch detection method and device and switch function detection device

Publications (2)

Publication Number Publication Date
CN110779697A CN110779697A (en) 2020-02-11
CN110779697B true CN110779697B (en) 2021-08-24

Family

ID=69388148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911049931.XA Active CN110779697B (en) 2019-10-31 2019-10-31 Switch detection method and device and switch function detection device

Country Status (1)

Country Link
CN (1) CN110779697B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112540589B (en) * 2020-11-27 2022-02-25 珠海格力智能装备有限公司 Detection method and detection device for remote controller and computer readable storage medium
CN112858303A (en) * 2021-03-22 2021-05-28 长春工业大学 Line cabinet terminal on-off state detection device based on machine vision
CN114495639B (en) * 2022-02-16 2024-03-22 深圳品阔信息技术有限公司 Real-time interaction system is used in piano teaching of low delay

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010262358A (en) * 2009-04-30 2010-11-18 Alps Electric Co Ltd Inspection device for input device
CN205940970U (en) * 2016-08-26 2017-02-08 西安开天铁路电气股份有限公司 Electric snap action switch's final detection device
CN206583400U (en) * 2016-12-01 2017-10-24 北京汽车研究总院有限公司 A kind of switch over travel measurement apparatus
CN207066350U (en) * 2017-06-19 2018-03-02 苏州赛腾精密电子股份有限公司 A kind of ejecting mechanism and range measurement mechanism
CN209373060U (en) * 2019-01-03 2019-09-10 深圳市思展自动化设备有限公司 Switch detection device
CN110243583A (en) * 2019-06-28 2019-09-17 上海工程技术大学 A kind of aviation push switch test device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201322689Y (en) * 2008-12-05 2009-10-07 比亚迪股份有限公司 Pressure switch performance testing device
CN206505160U (en) * 2017-02-09 2017-09-19 中山市汇丰机电科技有限公司 A kind of pressure switch detecting system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010262358A (en) * 2009-04-30 2010-11-18 Alps Electric Co Ltd Inspection device for input device
CN205940970U (en) * 2016-08-26 2017-02-08 西安开天铁路电气股份有限公司 Electric snap action switch's final detection device
CN206583400U (en) * 2016-12-01 2017-10-24 北京汽车研究总院有限公司 A kind of switch over travel measurement apparatus
CN207066350U (en) * 2017-06-19 2018-03-02 苏州赛腾精密电子股份有限公司 A kind of ejecting mechanism and range measurement mechanism
CN209373060U (en) * 2019-01-03 2019-09-10 深圳市思展自动化设备有限公司 Switch detection device
CN110243583A (en) * 2019-06-28 2019-09-17 上海工程技术大学 A kind of aviation push switch test device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
开关触点接触电阻动态测量方法研究;罗毅;《仪器仪表学报》;20150228;第36卷(第1期);第49-55页 *

Also Published As

Publication number Publication date
CN110779697A (en) 2020-02-11

Similar Documents

Publication Publication Date Title
CN110779697B (en) Switch detection method and device and switch function detection device
US20100100766A1 (en) Test apparatus
KR20170098049A (en) Apparatus of Analyzing Malfunction of Switch component and Method Thereof
CN104850475B (en) A kind of test method and device of equipment
CN102722286A (en) Reference updating method of touch detection terminal capable of removing large-scale interference and system
CN105072675A (en) Automatic WIFI connection switching off method and system and mobile terminal
US8401543B2 (en) Power switching for electronic device test equipment
CN105975391A (en) Restart testing method and device and mobile terminal
CN103678096A (en) Adaptation testing method and device of client side application
US20120253717A1 (en) Battery voltage detector and battery voltage detecting method
CN104980194A (en) File transmission method and terminal
CN113672415A (en) Disk fault processing method, device, equipment and storage medium
CN210603867U (en) Switch test system
JP2001201548A (en) Battery voltage detecting device and method
CN106980402B (en) Method and device for judging reset calibration and terminal
CN113874738B (en) Leakage detection device, leakage detection method, and electric vehicle
CN110617957A (en) Switch test system and test method
KR102256099B1 (en) Battery back
KR20210014992A (en) Electronic device for predicting faulty and method for controlling electronic device thereof
CA2729471C (en) Power switching for electronic device test equipment
CN105588957B (en) Test bench
CN109522223B (en) Automatic test method and system for vehicle-mounted Android multimedia host
CN112152736A (en) Client front-end device, failure detection method for client front-end device, and storage medium
CN112351361A (en) Earphone in-out box detection method and earphone box
CN112858894A (en) Detection method and detection device for working state of contactor, storage medium and vehicle

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