Performance testing device and method for remote controller
Technical Field
The invention relates to the technical field of remote control electronics, in particular to a performance testing device and a testing method of a remote controller.
Background
The remote controller (commonly called "car black box") is an essential component for car rental and management, and can monitor and manage the car. In order to ensure that the remote controller can effectively operate in an automobile, the remote controller needs to be checked before being delivered from a factory, and the stability and reliability of the remote controller operating on the automobile after being delivered from the factory are improved.
The existing performance testing device for testing the remote controller has the following defects: firstly, in the traditional performance testing devices, one testing device tests one remote controller, so that the testing efficiency is low, time and labor are consumed, and the testing cost is high; secondly, in the process of testing a plurality of remote controllers by using the traditional performance testing device and detecting an interrupt trigger signal and a DO signal, the traditional performance testing device is easily damaged by reverse surge current due to large conduction current, and simultaneously, the program is easy to run off and the condition of breakdown occurs, so that the reliability and the stability are poor; thirdly, when the remote controller is tested by using the traditional performance testing device, the testing accuracy is not high.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a performance testing device and a testing method of a remote controller, which can simultaneously carry out interrupt trigger signal detection and DO signal detection on a plurality of remote controllers, and have high testing efficiency, high reliability and high stability.
The technical scheme of the invention is as follows:
the utility model provides a remote controller's capability test device, including the host computer and with the host computer through RS485 communication connection's measurement and control platform, be provided with microcontroller MCU on the measurement and control platform and with microcontroller MCU communication connection's input/output signal detection module, power module and communication module.
The input and output signal detection module comprises an interruption trigger detection circuit, a dry contact detection circuit and a DO detection circuit.
The interruption triggering detection circuit comprises a signal relay K1 and a triode Q1, an eighth terminal of the signal relay K1 is connected with a collector of the triode Q1, and a third terminal and a sixth terminal of the signal relay K1 are respectively connected with a signal input end of the tested remote controller; the collector of the triode Q1 is connected with the power supply module through a diode D1, the emitter of the triode Q1 is grounded, the base of the triode Q1 is connected with the microcontroller MCU through a resistor R2 and is also connected with the ground through a resistor R1; the interrupt trigger detection circuit is mainly used for carrying out interrupt signal trigger detection on the remote controller, wherein the interrupt trigger signal comprises a key signal and a charging signal; when interrupt signal triggered, switch conduction current was great, and the signal relay K1 among the detection circuitry was triggered in this interruption can prevent that the heavy current from strikeing and bringing the hardware damage, has promoted capability test device's reliability.
The dry contact switch detection circuit comprises a photoelectric relay K2, a first terminal of the photoelectric relay K2 is connected with the power supply module through a resistor R3, a second terminal is connected with the microcontroller MCU and is also connected with the power supply module through a resistor R4, and a third terminal and a fourth terminal are respectively connected to a dry contact test connection end of the tested remote controller; the dry contact switch detection circuit is mainly used for simultaneously responding to a plurality of remote controllers and meeting the test requirements on the plurality of remote controllers simultaneously; switch on current is great, adopts signal relay K2 among this dry contact switch detection circuitry, can prevent that the heavy current from strikeing and bringing the hardware damage, has promoted capability test device's reliability.
The DO detection circuit comprises a DO high-level detection circuit and a DO low-level detection circuit, wherein the DO high-level detection circuit comprises a photoelectric relay K3, a diode D2 and a resistor R5 are sequentially connected between a first terminal and a second terminal of the photoelectric relay K3 in parallel, the first terminal of the photoelectric relay K3 is also connected with a power supply module through a resistor R6, the second terminal of the photoelectric relay K3 is connected with the microcontroller MCU, and a fourth terminal of the photoelectric relay K3 is connected with the power supply module through a resistor R7 and a DO port of the remote controller through a resistor R8; in the DO high level detection circuit, the photoelectric relay K3 is a high temperature resistant digital optical coupler, the resistors R5 and R6 can be used for setting the turn-off voltage of the optical coupler, the optical coupler is prevented from being abnormally opened, and the diode D2 can protect a light emitting diode in the device from being damaged by reverse surge voltage.
The DO low-level detection circuit comprises a photoelectric relay K4, a diode D3 and a resistor R9 are sequentially connected between a first terminal and a second terminal of the photoelectric relay K4 in parallel, the first terminal of the photoelectric relay K4 is also connected with the MCU through a resistor R10, a fourth terminal of the photoelectric relay K3 is connected with the power supply module through a resistor R7 and is also connected with a DO port of the remote controller through a resistor R11; in the DO low level detection circuit, the photoelectric relay K4 is a high temperature resistant digital optical coupler, the resistors R9 and R10 can be used for setting the turn-off voltage of the optical coupler, the optical coupler is prevented from being abnormally opened, and the diode D3 can protect a light emitting diode in the device from being damaged by reverse surge voltage.
Furthermore, a hardware watchdog circuit is further arranged on the measurement and control platform, the hardware watchdog circuit comprises a monitoring chip U1 and a triode Q2, an emitter of the triode Q2 is connected with a first wiring terminal on the monitoring chip U1, a collector of the triode Q2 is connected with a second wiring terminal on the microcontroller MCU, a base of the triode Q2 is connected with a third wiring terminal on the microcontroller MCU through a resistor R13, and a base of the triode Q2 is also connected with the ground through a resistor R14; a fourth terminal of the monitoring chip U1 is connected with a first terminal on the microcontroller MCU, a fifth terminal of the monitoring chip U1 is connected with the power module, a second terminal of the monitoring chip U1 is connected with the ground, and a capacitor C2 is connected between the fifth terminal and the second terminal; the hardware watchdog circuit is mainly used for preventing an uncertain state in the circuit from resetting the control chip, reliability and stability of the performance testing device are improved, and the capacitor C2 is used for filtering interference in the circuit to prevent error resetting of the single chip.
The invention also provides a test method for the remote controller, which is applied to a performance test device of the remote controller and comprises an interrupt trigger detection method of the remote controller, a dry contact input detection method of the remote controller and a DO high-low level detection method of the remote controller;
(1) the interrupt trigger detection method of the remote controller comprises the following steps:
the PC upper computer sends an interrupt trigger test instruction to the measurement and control platform, and the measurement and control platform sends a high-level control signal to an interrupt trigger detection circuit through a Micro Controller Unit (MCU) of the measurement and control platform;
a triode Q1 and a signal relay number K1 in the interrupt trigger detection circuit are sequentially conducted, and the interrupt trigger detection circuit outputs a high-level signal to the remote controller through a third terminal and a sixth terminal of the signal relay number K1;
after the remote controller receives a high-level signal through the interrupt trigger port of the remote controller, if the micro-controller unit (MCU) receives a feedback signal of the remote controller, the interrupt trigger detection of the remote controller is judged to be qualified;
(2) the dry contact input detection method of the remote controller comprises the following steps:
the PC upper computer sends a main contact input detection instruction to the measurement and control platform, the measurement and control platform sends a low-level control signal to the main contact switch detection circuit through the microcontroller, the photoelectric relay K2 is conducted, and a main contact switch of the remote controller is conducted;
if the microcontroller MCU receives a feedback signal from the remote controller, judging that the dry contact input detection of the remote controller MCU is qualified;
(3) the DO high-low level detection method of the remote controller comprises the following steps:
the PC upper computer sends a DO detection instruction to the measurement and control platform, and the measurement and control platform sends a low-level signal to the remote controller through the microcontroller;
and if the microcontroller MCU receives a low level signal from the remote controller, judging that the DO port of the remote controller is qualified for detection.
Further, PC host computer sends DO detection command to measurement and control platform, and measurement and control platform passes through microcontroller and sends low level signal to remote control ware, includes:
the PC upper computer sends a DO detection instruction to the measurement and control platform, and the measurement and control platform sends a high-level signal to a DO high-level detection circuit through a microcontroller;
the photoelectric relay K4 in the DO high-level detection circuit is turned on and sends a low-level signal to a high-level detection port of the remote controller.
Further, PC host computer sends DO detection command to measurement and control platform, and measurement and control platform passes through microcontroller and sends low level signal to remote control ware, includes:
the PC upper computer sends a DO detection instruction to the measurement and control platform, and the measurement and control platform sends a low-level signal to a DO low-level detection circuit through a microcontroller;
the photoelectric relay K3 in the DO low level detection circuit is turned on and sends a low level signal to the low level detection port of the remote controller.
The test method for the remote controller can detect the interrupt signal and the charging signal of the remote controller, and has the advantages of stable test process and high reliability.
The invention has the following beneficial effects:
1. the performance testing device can be connected with a plurality of remote controllers simultaneously and test the remote controllers simultaneously, has higher testing reliability and high testing efficiency, effectively saves testing time and labor and reduces testing cost.
2. The performance testing device and the testing method can detect the interrupt trigger signal and the DO signal of the remote controller, and have high accuracy; in the detection process, the damage of reverse surge current can be prevented, program runaway is prevented from occurring, the condition of downtime is prevented, the microcontroller is prevented from being reset by an uncertain state in a circuit, and the reliability and the stability of the performance testing device are improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic diagram of a performance testing apparatus of a remote controller according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an interrupt trigger detection circuit according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a dry contact switch detection circuit according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a DO high level detection circuit according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of the DO low level detection circuit according to the embodiment of the present invention;
FIG. 6 is a schematic diagram of a hardware watchdog circuit according to an embodiment of the present invention;
FIG. 7 is a flow chart of an interrupt trigger detection method of a remote controller according to an embodiment of the present invention;
FIG. 8 is a flow chart of a dry contact input detection method of a remote controller according to an embodiment of the present invention;
FIG. 9 is a flow chart of a DO high level detection method of the remote controller in an embodiment of the present invention;
fig. 10 is a flow chart of a DO low level detection method of the remote controller according to the embodiment of the present invention.
Detailed Description
The embodiments of the invention will be described in detail below with reference to the drawings, but the invention can be implemented in many different ways as defined and covered by the claims.
As shown in the attached figure 1, the performance testing device of the remote controller comprises an upper computer and a measurement and control platform which is in communication connection with the upper computer through RS485, wherein a microcontroller MCU, an input and output signal detection module which is in communication connection with the microcontroller MCU, a power supply module and a communication module are arranged on the measurement and control platform.
The input and output signal detection module comprises an interruption trigger detection circuit, a dry contact detection circuit and a DO detection circuit; as shown in fig. 2, the interruption triggering detection circuit includes a signal relay K1 and a transistor Q1, an eighth terminal of the signal relay K1 is connected with a collector of the transistor Q1, and a third terminal and a sixth terminal of the signal relay K1 are respectively connected with a signal input terminal of the tested remote controller; the collector of the triode Q1 is connected with the power supply module through a diode D1, the emitter of the triode Q1 is grounded, the base of the triode Q1 is connected with the microcontroller MCU through a resistor R2 and is also connected with the ground through a resistor R1.
As shown in fig. 3, the dry contact switch detection circuit includes a photo relay K2, a first terminal of the photo relay K2 is connected to the power module through a resistor R3, a second terminal is connected to the microcontroller MCU and also connected to the power module through a resistor R4, and a third terminal and a fourth terminal are respectively connected to a dry contact test connection terminal of the tested remote controller.
As shown in fig. 4, the DO low level detection circuit includes a photoelectric relay K4, a diode D3 and a resistor R9 are connected in parallel between a first terminal and a second terminal of the photoelectric relay K4 in sequence, the first terminal of the photoelectric relay K4 is further connected to the microcontroller MCU through a resistor R10, and a fourth terminal of the photoelectric relay K3 is connected to the power module through a resistor R7 and is further connected to the DO port of the remote controller through a resistor R11.
As shown in fig. 5, the DO detection circuit includes a DO high level detection circuit and a DO low level detection circuit, wherein the DO high level detection circuit includes a photo relay K3, a diode D2 and a resistor R5 are connected in parallel between a first terminal and a second terminal of the photo relay K3 in sequence, the first terminal of the photo relay K3 is further connected to the power module through a resistor R6, the second terminal of the photo relay K3 is connected to the microcontroller MCU, and a fourth terminal of the photo relay K3 is connected to the power module through a resistor R7 and to a DO port of the remote controller through a resistor R8.
As shown in fig. 6, a hardware watchdog circuit is further disposed on the measurement and control platform, the hardware watchdog circuit includes a monitoring chip U1 and a transistor Q2, an emitter of the transistor Q2 is connected to a first terminal on the monitoring chip U1, a collector of the transistor Q2 is connected to a second terminal on the microcontroller MCU, a base of the transistor Q2 is connected to a third terminal on the microcontroller MCU through a resistor R13, and a base of the transistor Q2 is further connected to ground through a resistor R14; a fourth terminal of the monitoring chip U1 is connected with a first terminal on the microcontroller MCU, a fifth terminal of the monitoring chip U1 is connected with the power module, a second terminal of the monitoring chip U1 is connected with the ground, and a capacitor C2 is connected between the fifth terminal and the second terminal.
The performance testing device of the remote controller in the embodiment of the invention is in communication connection with an upper computer through a measurement and control platform, wherein the measurement and control platform is provided with a microcontroller MCU, and the microcontroller MCU is in communication connection with an input and output signal detection module, a power supply module and a communication module respectively; the input and output signal detection module is mainly used for carrying out performance detection on an input and output port of a remote controller, and specifically comprises an interrupt trigger detection circuit, a dry contact detection circuit and a DO detection circuit, wherein the interrupt trigger detection circuit is used for carrying out performance detection on signal input ports of interrupt signal triggers such as charging signals, smoke sensing signals and key starting signals of the remote controller, the dry contact detection circuit is mainly used for simultaneously responding to a plurality of remote controllers and meeting the test requirements on the plurality of remote controllers, and the DO detection circuit is mainly used for carrying out performance detection on the output port of the remote controller.
In order to improve the stability and reliability during performance detection, the performance testing device provided by the embodiment of the invention adopts the signal relay K1 through the interruption triggering detection circuit and adopts the signal relay K2 through the dry contact switch detection circuit, so that the hardware damage caused by large-current impact can be effectively prevented, and the reliability of the performance testing device is improved; meanwhile, the diode D2 and the diode D3 are adopted in the DO detection circuit, so that the light-emitting diode can be effectively prevented from being damaged by reverse surge voltage, and the control chip is prevented from being reset by an uncertain state in the circuit by utilizing a hardware watchdog circuit, so that the performance test device is prevented from being crashed when a program is run away, and the reliability and the stability of the performance test device are effectively improved.
The embodiment of the invention also provides a test method for the remote controller, which is applied to a performance test device of the remote controller and comprises an interrupt trigger detection method of the remote controller, a dry contact input detection method of the remote controller and a DO high-low level detection method of the remote controller.
As shown in fig. 7, the interrupt trigger detection method of the remote controller includes an interrupt trigger signal for starting a vehicle key, an interrupt trigger signal for charging the vehicle, and an interrupt trigger signal for sensing smoke, and includes the following steps:
s101: the PC upper computer sends an interrupt trigger test instruction to the measurement and control platform, and the measurement and control platform sends a high-level control signal to an interrupt trigger detection circuit through a Micro Controller Unit (MCU) of the measurement and control platform;
s102: a triode Q1 and a signal relay number K1 in the interrupt trigger detection circuit are sequentially conducted, and the interrupt trigger detection circuit outputs a high-level signal to the remote controller through a third terminal and a sixth terminal of the signal relay number K1;
s103: after the remote controller receives a high-level signal through the interrupt trigger port of the remote controller, if the micro-controller unit (MCU) receives a feedback signal of the remote controller, the interrupt trigger detection of the remote controller is judged to be qualified;
as shown in fig. 8, the dry contact input detection method of the remote controller includes the following steps:
s201: the PC upper computer sends a main contact input detection instruction to the measurement and control platform, the measurement and control platform sends a low-level control signal to the main contact switch detection circuit through the microcontroller, the photoelectric relay K2 is conducted, and a main contact switch of the remote controller is conducted;
s202: if the microcontroller MCU receives a feedback signal from the remote controller, judging that the dry contact input detection of the remote controller MCU is qualified;
the DO high-low level detection method of the remote controller comprises a DO high-level detection method and a DO low-level detection method; as shown in fig. 9, the DO high level detection method includes the following steps:
s301: the PC upper computer sends a DO detection instruction to the measurement and control platform, and the measurement and control platform sends a high-level signal to a DO high-level detection circuit through a microcontroller;
s302: a photoelectric relay K4 in the DO high-level detection circuit is switched on and sends a low-level signal to a high-level detection port of the remote controller;
s303: and if the microcontroller MCU receives a low level signal from the remote controller, judging that the DO high level port of the remote controller is qualified for detection.
As shown in fig. 10, the DO low level detection method includes the following steps:
s401: the PC upper computer sends a DO detection instruction to the measurement and control platform, and the measurement and control platform sends a low-level signal to a DO low-level detection circuit through a microcontroller;
s402: a photoelectric relay K3 in the DO low-level detection circuit is switched on and sends a low-level signal to a low-level detection port of the remote controller;
s403: and if the microcontroller MCU receives a low level signal from the remote controller, judging that the DO low level port of the remote controller is qualified for detection.
The test method for the remote controller can complete the interrupt trigger detection, the dry contact switch detection and the DO detection of the remote controller, can connect a plurality of remote controllers and test the remote controllers simultaneously, has higher test reliability and high test efficiency, effectively saves the test time and labor and reduces the test cost.