A test system and test method for LoRa wireless electromechanical equipment

By designing a test system for LoRa wireless electromechanical equipment, using wireless connection and automatic comparison technology, the problem of high manual error rate and low efficiency in the configuration and testing of LoRa wireless electromechanical equipment is solved, and rapid and accurate automatic testing of equipment is achieved. , to meet the application needs of highway tunnel lighting systems.

CN110389266BActive Publication Date: 2024-10-15ZHONGJIN PEIKE CONSTR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910629905.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-07-12
Publication Date
2024-10-15
Estimated Expiration
2039-07-12

AI Technical Summary

Technical Problem

Existing LoRa wireless electromechanical equipment has problems such as high manual configuration error rate, low test efficiency, and high labor intensity in ID number configuration and functional testing, and cannot meet the rapid promotion and application needs of highway tunnel lighting systems.

Method used

A test system is designed that includes a host, a selection module, a wireless coordinator, a voltage supply unit and a dimming test module. It realizes automatic configuration and testing of LoRa wireless electromechanical equipment through wireless connections and supports LoRa wireless data collectors and single lamps. Functional testing of the controller and LED light driving power supply uses test instructions and feedback signals for automatic comparison to ensure test accuracy and efficiency.

Benefits of technology

It achieves fast, accurate automatic configuration and testing of LoRa wireless electromechanical equipment, reduces manpower requirements and testing time, improves testing efficiency, and reduces implementation costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110389266B_ABST
    Figure CN110389266B_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of wireless electromechanical equipment testing, and discloses a test system for LoRa wireless electromechanical equipment and a test method thereof, so as to automatically configure and test the LoRa wireless electromechanical equipment quickly and accurately. The test system of the invention comprises a host, a selection module wirelessly connected to the host, a wireless coordinator wirelessly connected to the host, a voltage supply unit and a dimming test module connected to the LoRa wireless electromechanical equipment to be tested, wherein the selection module is connected to the LoRa wireless electromechanical equipment to be tested; the selection switching module is used for selecting the LoRa wireless electromechanical equipment to be tested according to a test instruction from the host, and the wireless coordinator is used for sending the test instruction to the corresponding type of the LoRa wireless electromechanical equipment to be tested, wherein the types of the LoRa wireless electromechanical equipment to be tested include at least three types, namely a LoRa wireless data collector, a LoRa wireless LED lamp driving power supply, and a LoRa wireless single lamp controller, and the test instruction includes test object type information and test function type information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of wireless electromechanical equipment testing, and in particular to a test system and a test method for a LoRa wireless electromechanical equipment. Background Art

[0002] In recent years, the latest generation of lighting control systems based on LoRa wireless technology have been widely promoted and applied on highways, and will surely become the mainstream technology and product for electromechanical control of highway tunnels. In the lighting control system of LoRa wireless technology, LoRa wireless electromechanical devices occupy a pivotal position. Tunnel safety issues are serious, and the product quality and safety of LoRa wireless network devices must be ensured. Therefore, before use, the LoRa wireless network device needs to be configured with an ID number and tested for functions. At present, there is no corresponding tool or method for automatic configuration and testing of LoRa wireless electromechanical devices in LoRa wireless network devices.

[0003] In the traditional method, the ID configuration and functional testing of LoRa wireless electromechanical equipment can only be completed manually with the help of Modbus debugging assistant. This process requires the cooperation of two people, one of whom is mainly responsible for the wiring of the test system, and the other is responsible for operating the computer to send test instructions. Due to the large number of function codes, different data structures, and different lengths of protocol messages in the Modbus protocol, the manual configuration and testing of large quantities of wireless network equipment have the following problems: a large number of manpower required, high labor intensity, long configuration and testing time, high device ID configuration error rate, low testing efficiency, and only one device can be tested and debugged at a time, which is inefficient, time-consuming, and labor-intensive. Obviously, the manual configuration and testing of wireless network equipment using the Modbus debugging assistant cannot meet the actual application needs well, which seriously restricts the promotion and application of the LoRa wireless tunnel lighting system.

[0004] Therefore, how to quickly and accurately automatically configure and test LoRa wireless electromechanical devices has become an urgent problem that needs to be solved. Summary of the invention

[0005] The present invention aims to provide a test system and a test method for a LoRa wireless electromechanical device, so as to automatically configure and test the LoRa wireless electromechanical device quickly and accurately.

[0006] To achieve the above object, the present invention provides a test system for LoRa wireless electromechanical equipment, comprising:

[0007] A host, a selection module wirelessly connected to the host, a wireless coordinator wirelessly connected to the host, a voltage supply unit and a dimming test module connected to the LoRa wireless electromechanical device to be tested, wherein the selection module is connected to the LoRa wireless electromechanical device to be tested;

[0008] The selection switching module is used to select the LoRa wireless electromechanical device to be tested according to the test instruction from the host, and the wireless coordinator is used to send the test instruction to the corresponding type of LoRa wireless electromechanical device to be tested. The types of the LoRa wireless electromechanical devices to be tested include at least three types, namely LoRa wireless data collector, LoRa wireless LED lamp driving power supply, and LoRa wireless single lamp controller. The test instruction includes test object type information and test function type information;

[0009] When the test object type information is a LoRa wireless data collector, the voltage supply unit is used to provide a set voltage to the LoRa wireless data collector to be tested, the LoRa wireless data collector to be tested collects the set voltage to obtain a measured voltage value and feeds the measured voltage value back to the wireless coordinator, the wireless coordinator is used to feed the measured voltage value back to the host, and the host is used to compare the measured voltage value with the voltage value of the set voltage. If the two are consistent, it is considered that the LoRa wireless data collector has passed the voltage collection function test;

[0010] When the test object type information is a LoRa wireless single lamp controller, the host is used to generate a first dimming test instruction and send it to the LoRa wireless single lamp controller through a wireless coordinator, the first dimming test instruction includes a set dimming voltage value range, and the dimming test module is used to collect the feedback dimming voltage signal when the LoRa wireless single lamp controller performs a corresponding action under the first dimming test instruction, and the feedback dimming voltage signal is filtered and amplified and converted into a digital voltage value and then sent to the host or forwarded to the host through the wireless coordinator. The host is also used to compare the digital voltage value with the set dimming voltage value range. If the digital voltage value is between the set dimming voltage value range, it is considered that the LoRa wireless single lamp controller passes the dimming test function;

[0011] When the test object type information is a LoRa wireless LED lamp driver, the host is used to generate a second dimming test instruction and send it to the LoRa wireless LED lamp driver through a wireless coordinator. The second dimming test instruction includes a set dimming current value range. The dimming test module is used to collect a dimming current signal when the LoRa wireless LED lamp driver performs a corresponding action under the second dimming test instruction, filter and amplify the dimming current signal, convert it into a digital current value, and then send it to the host or forward it to the host through the wireless coordinator. The host is also used to compare the digital current value with the current value range of the set dimming current signal. If the digital current value is between the set dimming current value range, it is considered that the LoRa wireless LED lamp driver passes the dimming test function.

[0012] Preferably, the test system further comprises a current supply unit, which is used to provide a set current to the LoRa wireless data collector to be tested, and the LoRa wireless data collector to be tested collects the measured current value and feeds the collected measured current value back to the wireless coordinator;

[0013] The host is also used to receive the measured current value from the wireless coordinator, and compare the measured current value with the current value of the set current. If the two are consistent, it is considered that the LoRa wireless data collector has passed the current collection function test.

[0014] Preferably, the test system also includes a switch signal simulation unit for simulating the state of an external switch, the positive and negative poles of the switch signal simulation unit are short-circuited, the positive pole is connected to the Kin+ interface of the LoRa wireless data collector, and the negative pole is connected to the Kin- interface of the LoRa wireless data collector.

[0015] Preferably, the test system also includes an output switch state detection module, including a first relay for selecting a single-lamp controller and a second relay for detecting whether the internal relay of the single-lamp controller is working normally, the first relay is connected to the live wire of the input end of the LoRa wireless single-lamp controller to be tested, and the second relay is connected to the output live wire and neutral wire of the LoRa wireless single-lamp controller to be tested; wherein, one end of the normally closed contact of the second relay is connected to the DI0 interface of the digital two-input module of the board, and the other end of the relay is grounded.

[0016] Preferably, the dimming test module includes an amplifying and filtering circuit and a converter, the amplifying and filtering circuit is connected to the LoRa wireless single lamp controller to be tested, and the converter is connected to the amplifying and filtering circuit.

[0017] Preferably, the voltage supply unit includes a first voltage-dividing resistor R301 and a second voltage-dividing resistor R302 which are connected in parallel with a DC power supply for providing a set voltage and are connected in series with each other, and a Vin+ interface of a LoRa wireless data collector is connected between the first voltage-dividing resistor R301 and the second voltage-dividing resistor R302.

[0018] Preferably, the current supply unit includes a first diode D301, a second diode D302 and a third diode D303 connected in series in sequence, the positive pole of the first diode D301 is connected to a DC power supply for providing a set current, and the negative pole of the third diode D303 is connected to the lin+ interface of the LoRa wireless data collector.

[0019] Preferably, the amplifying and filtering circuit comprises a chip CD4052BM96, a first operational amplifier, a second operational amplifier, a third operational amplifier, and a fourth operational amplifier;

[0020] The second pin of the first operational amplifier is a signal input end, and the second pin is connected to the output end of the LoRa wireless single lamp controller to be tested through a resistor R201. The first pin of the first operational amplifier is an output end, and the first pin is connected to the 13th pin of the chip CD4052BM96;

[0021] The sixth pin of the second operational amplifier is an input end, and the sixth pin is connected to the output end of the LoRa wireless single lamp controller to be tested through a resistor R203. The seventh pin of the second operational amplifier is an output end, and the seventh pin is connected to the third pin of the chip CD4052BM96;

[0022] The 13th pin of the chip CD4052BM96 is connected to the 9th pin of the third operational amplifier through a resistor R205, the 10th pin of the third operational amplifier is grounded through a resistor R206, a feedback resistor R207 is connected in series between the 9th pin and the 8th pin of the third operational amplifier, and a capacitor C201 is connected in parallel across the feedback resistor R207, and the 8th pin of the third operational amplifier is connected to the converter ADS1256;

[0023] The third pin of the chip CD4052BM96 is connected to the 13th pin of the fourth operational amplifier through a resistor R208, the 12th pin of the fourth operational amplifier is grounded through a resistor R209, a feedback resistor R210 is connected in series between the 13th pin and the 14th pin of the fourth operational amplifier circuit, and a capacitor C202 is connected in parallel at both ends of the feedback resistor R210, and the 14th pin of the fourth operational amplifier is connected to the converter ADS1256.

[0024] Preferably, the test system also includes a fourth diode D401 and a Hall current transformer, the positive pole of the fourth diode D401 is connected to the ZL+ interface of the LoRa wireless LED lamp driving power supply, the negative pole of the fourth diode D401 is connected to the Hall current transformer, and a switch K1-4 is provided between the fourth diode D401 and the Hall current transformer.

[0025] As a general technical concept, the present invention also provides a test method applied to the above-mentioned LoRa wireless electromechanical device test system, which specifically includes the following steps:

[0026] The host generates a test instruction and sends it to the selection switching module, and at the same time sends the test instruction to the wireless coordinator. The selection switching module selects the LoRa wireless electromechanical device to be tested according to the test instruction, and the wireless coordinator sends the test instruction to the corresponding type of LoRa wireless electromechanical device to be tested;

[0027] When the test object type information is a LoRa wireless data collector, the voltage supply unit provides a set voltage to the LoRa wireless data collector to be tested, the LoRa wireless data collector to be tested collects the set voltage to obtain a measured voltage value and feeds the measured voltage value back to the wireless coordinator, the wireless coordinator feeds the measured voltage value back to the host, and the host compares the measured voltage value with the voltage value of the set voltage. If the two are consistent, it is considered that the LoRa wireless data collector has passed the voltage collection function test;

[0028] When the test object type information is a LoRa wireless single lamp controller, the host generates a first dimming test instruction and sends it to the LoRa wireless single lamp controller through a wireless coordinator. The first dimming test instruction includes a set dimming voltage value range. The dimming test module collects the feedback dimming voltage signal when the LoRa wireless single lamp controller performs a corresponding action under the first dimming test instruction, filters and amplifies the feedback dimming voltage signal, converts it into a digital voltage value, and then sends it to the host or forwards it to the host through the wireless coordinator. The host also compares the digital voltage value with the set dimming voltage value range. If the digital voltage value is between the set dimming voltage value range, it is considered that the LoRa wireless single lamp controller passes the dimming test function;

[0029] When the test object type information is a LoRa wireless LED lamp driver, the host generates a second dimming test instruction and sends it to the LoRa wireless LED lamp driver through a wireless coordinator. The second dimming test instruction includes a set dimming current value range. The dimming test module collects a dimming current signal when the LoRa wireless LED lamp driver performs a corresponding action under the second dimming test instruction, filters and amplifies the dimming current signal, converts it into a digital current value, and then sends it to the host or forwards it to the host through the wireless coordinator. The host also compares the digital current value with the set current value range of the dimming current signal. If the digital current value is between the set dimming current value range, it is considered that the LoRa wireless LED lamp driver passes the dimming test function.

[0030] In summary, the present invention has the following beneficial effects:

[0031] The present invention provides a test system for a LoRa wireless electromechanical device and a test method thereof, comprising a host, a selection module wirelessly connected to the host, a wireless coordinator wirelessly connected to the host, a voltage supply unit and a dimming test module connected to the LoRa wireless electromechanical device to be tested, wherein the selection module is connected to the LoRa wireless electromechanical device to be tested; the test object can be flexibly switched through the selection module, the LoRa wireless electromechanical device can be automatically configured and tested quickly and accurately, the module switching is convenient, and the implementation cost is low.

[0032] The present invention will be further described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The drawings constituting a part of this application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0034] Figure 1 It is a schematic diagram of the circuit structure of a test system for LoRa wireless electromechanical equipment according to a preferred embodiment of the present invention;

[0035] Figure 2 It is a circuit diagram for testing a LoRa wireless data collector according to a preferred embodiment of the present invention;

[0036] Figure 3 It is a circuit diagram for testing a LoRa wireless single lamp controller according to a preferred embodiment of the present invention;

[0037] Figure 4 is an amplifying and filtering circuit diagram of a preferred embodiment of the present invention;

[0038] Figure 5 This is a circuit diagram for testing a LoRa wireless LED lamp driving power supply according to a preferred embodiment of the present invention;

[0039] Figure 6 2. It is a schematic diagram of selecting a test method for a LoRa wireless electromechanical device test system according to a preferred embodiment of the present invention;

[0040] Figure 7 It is a flow chart of a test method of a LoRa wireless single lamp controller according to a preferred embodiment of the present invention;

[0041] Figure 8 It is a flow chart of a test method of a LoRa wireless LED lamp driving power supply according to a preferred embodiment of the present invention;

[0042] Fig. 9 It is a flow chart of a testing method of a LoRa wireless data collector according to a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0043] The embodiments of the present invention are described in detail below with reference to the accompanying drawings, but the present invention can be implemented in many different ways as defined and covered by the claims.

[0044] Unless otherwise defined, all technical terms used hereinafter have the same meaning as those generally understood by those skilled in the art. The words "first", "second" and similar words used in the patent application specification and claims of the present invention do not indicate any order, quantity or importance, but are merely for the convenience of distinguishing the corresponding parts. Similarly, words such as "one" or "an" do not indicate a quantity limitation, but indicate the existence of at least one. Words such as "connected" or "connected" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.

[0045] Example 1

[0046] like Figure 1 As shown, this embodiment provides a test system for LoRa wireless electromechanical equipment, including:

[0047] A host, a selection module wirelessly connected to the host, a wireless coordinator wirelessly connected to the host, a voltage supply unit and a dimming test module connected to the LoRa wireless electromechanical device to be tested, wherein the selection module is connected to the LoRa wireless electromechanical device to be tested;

[0048] The selection switching module is used to select the LoRa wireless electromechanical device to be tested according to the test instruction from the host, and the wireless coordinator is used to send the test instruction to the corresponding type of LoRa wireless electromechanical device to be tested. The types of the LoRa wireless electromechanical devices to be tested include at least three types, namely LoRa wireless data collector, LoRa wireless LED lamp driving power supply, and LoRa wireless single lamp controller. The test instruction includes test object type information and test function type information;

[0049] When the test object type information is a LoRa wireless data collector, the voltage supply unit is used to provide a set voltage to the LoRa wireless data collector to be tested, the LoRa wireless data collector to be tested collects the set voltage to obtain a measured voltage value and feeds the measured voltage value back to the wireless coordinator, the wireless coordinator is used to feed the measured voltage value back to the host, and the host is used to compare the measured voltage value with the voltage value of the set voltage. If the two are consistent, it is considered that the LoRa wireless data collector has passed the voltage collection function test;

[0050] When the test object type information is a LoRa wireless single lamp controller, the host is used to generate a first dimming test instruction and send it to the LoRa wireless single lamp controller through a wireless coordinator. The first dimming test instruction includes a set dimming voltage value range. The dimming test module is used to collect the feedback dimming voltage signal when the LoRa wireless single lamp controller performs a corresponding action under the first dimming test instruction, filter and amplify the feedback dimming voltage signal, convert it into a digital voltage value, and then send it to the host or forward it to the host through the wireless coordinator. The host is also used to compare the digital voltage value with the set dimming voltage value range. If the digital voltage value is between the set dimming voltage value range, it is considered that the LoRa wireless single lamp controller passes the dimming test function.

[0051] The above-mentioned test system for LoRa wireless electromechanical equipment can flexibly switch the test object by selecting the module, can automatically configure and test the LoRa wireless electromechanical equipment quickly and accurately, and the module switching is convenient and the implementation cost is low.

[0052] It is worth noting that the first dimming test instruction is 0-10V dimming, and the second dimming test instruction is 0-1A DC dimming.

[0053] As a preferred implementation of this embodiment, the test system also includes a current supply unit, which is used to provide a set current to the LoRa wireless data collector to be tested, and the LoRa wireless data collector to be tested collects the measured current value and feeds the collected measured current value back to the wireless coordinator;

[0054] The host is also used to receive the measured current value from the wireless coordinator, and compare the measured current value with the current value of the set current. If the two match, it is considered that the LoRa wireless data collector has passed the current collection function test.

[0055] As a preferred implementation of this embodiment, the test system also includes a switch signal simulation unit for simulating the external switch state, such as Figure 2 As shown, the positive and negative poles of the switch signal simulation unit are short-circuited, the positive pole is connected to the Kin+ interface of the LoRa wireless data collector, and the negative pole is connected to the Kin- interface of the LoRa wireless data collector.

[0056] As a preferred implementation of this embodiment, the test system also includes an output switch state detection module, such as Figure 3As shown, it includes a first relay for selecting a single lamp controller and a second relay for detecting whether the internal relay of the single lamp controller is working normally. The first relay is connected to the live wire of the input end of the LoRa wireless single lamp controller to be tested, and the second relay is connected to the output live wire and neutral wire of the LoRa wireless single lamp controller to be tested; wherein, one end of the normally closed contact of the second relay is connected to the DI0 interface of the digital two-input module of the board, and the other end of the relay is grounded.

[0057] As a preferred implementation of this embodiment, the voltage supply unit includes a first voltage-dividing resistor R301 and a second voltage-dividing resistor R302 which are connected in parallel with a DC power supply for providing a set voltage and are connected in series with each other, and the Vin+ interface of the LoRa wireless data collector is connected between the first voltage-dividing resistor R301 and the second voltage-dividing resistor R302.

[0058] As a preferred implementation of this embodiment, the current supply unit includes a first diode (D301), a second diode D302 and a third diode D303 connected in series in sequence, the positive pole of the first diode D301 is connected to a DC power supply for providing a set current, and the negative pole of the third diode D303 is connected to the lin+ interface of the LoRa wireless data collector.

[0059] As a preferred implementation of this embodiment, Figure 4 As shown, the amplification and filtering circuit includes a chip CD4052BM96, a first operational amplifier, a second operational amplifier, a third operational amplifier, and a fourth operational amplifier;

[0060] The second pin of the first operational amplifier is a signal input terminal, and the second pin is connected to the output terminal of the LoRa wireless single lamp controller to be tested through a resistor R201. The first pin of the first operational amplifier is an output terminal, and the first pin is connected to the 13th pin of the chip CD4052BM96;

[0061] The 6th pin of the second operational amplifier is an input end, and the 6th pin is connected to the output end of the LoRa wireless single lamp controller to be tested through a resistor R203. The 7th pin of the second operational amplifier is an output end, and the 7th pin is connected to the 3rd pin of the chip CD4052BM96;

[0062] The 13th pin of the chip CD4052BM96 is connected to the 9th pin of the third operational amplifier through the resistor R205, the 10th pin of the third operational amplifier is grounded through the resistor R206, a feedback resistor R207 is connected in series between the 9th pin and the 8th pin of the third operational amplifier, and a capacitor C201 is connected in parallel across the feedback resistor R207, and the 8th pin of the third operational amplifier is connected to the converter ADS1256;

[0063] The third pin of the chip CD4052BM96 is connected to the 13th pin of the fourth operational amplifier through a resistor R208, the 12th pin of the fourth operational amplifier is grounded through a resistor R209, a feedback resistor R210 is connected in series between the 13th pin and the 14th pin of the fourth operational amplifier circuit, and a capacitor C202 is connected in parallel across the feedback resistor R210, and the 14th pin of the fourth operational amplifier is connected to the converter ADS1256.

[0064] Specifically, the amplification and filtering circuit realizes automatic gain switching of different input voltages. According to the actual variation range of the analog quantity measured by the test system, the input range is divided into four gears of 0-1.25V, 1.25-2.5V, 2.5-5V, and 5-10V. Different feedback resistance values ​​are selected by the programmable analog switch to obtain different voltage amplification factors. In this embodiment, the amplification factors of the amplification and filtering circuit are 4 times, 2 times, 1 times, and 0.5 times, respectively. Among them, the chip CD4052BM96, the first operational amplifier, the second operational amplifier, the third operational amplifier, the fourth operational amplifier and the related peripheral circuits constitute a two-stage amplification circuit to realize variable gain control and filtering of two analog quantity inputs. The four different feedback resistors R211~R214 and R215~R218 of the two first-stage amplifiers are respectively connected to the X group and Y group input channels of CD4052 to form a variable 4-gain reverse amplifier; the second-stage amplifier circuit is a reverse amplifier with an amplification factor of 1, for example, the above-mentioned feedback resistor R207 and capacitor C201 form a unit gain filter circuit, so that the output voltage polarity in the circuit is consistent with the input voltage polarity, and the high-frequency noise in the signal can be filtered out.

[0065] As a preferred implementation of this embodiment, Figure 5 As shown, the test system also includes R301 diode D401 and a Hall current transformer, the positive electrode of R301 diode D401 is connected to the ZL+ interface of the LoRa wireless LED lamp driver power supply, the negative electrode of R301 diode D401 is connected to the Hall current transformer, and a switch K1-4 is provided between R301 diode D401 and the Hall current transformer. In this embodiment, the ZL+ interface (positive electrode of the power output line) of the LoRa wireless LED lamp driver power supply is connected to the diode D 401 , to prevent power backflow from other devices, and then connect to the Hall current transformer coil, and the output end of the Hall current transformer is connected to the input end of the amplification and filtering circuit; the Hall current transformer is used to convert the current signal into a voltage signal, and then transmit it to the amplification and filtering circuit, so as to detect the current signal on the output line of the LoRa wireless LED lamp driver power supply; in addition, the detection of the output switch state of the device is completed by detecting the change of the current value on the output line of the device.

[0066] Example 2

[0067] like Figure 6 As shown, this embodiment provides a testing method applied to the testing system in the above-mentioned embodiment 1, which specifically includes the following steps:

[0068] The host generates a test instruction and sends it to the selection switching module, and at the same time sends the test instruction to the wireless coordinator. The selection switching module selects the LoRa wireless electromechanical device to be tested according to the test instruction, and the wireless coordinator sends the test instruction to the corresponding type of LoRa wireless electromechanical device to be tested;

[0069] When the test object type information is a LoRa wireless data collector, the voltage supply unit provides a set voltage to the LoRa wireless data collector to be tested, the LoRa wireless data collector to be tested collects the set voltage to obtain a measured voltage value and feeds the measured voltage value back to the wireless coordinator, the wireless coordinator feeds the measured voltage value back to the host, and the host compares the measured voltage value with the voltage value of the set voltage. If the two are consistent, it is considered that the LoRa wireless data collector has passed the voltage collection function test;

[0070] When the test object type information is a LoRa wireless single lamp controller, the host generates a first dimming test instruction and sends it to the LoRa wireless single lamp controller through a wireless coordinator. The first dimming test instruction includes a set dimming voltage value range. The dimming test module collects the feedback dimming voltage signal when the LoRa wireless single lamp controller performs a corresponding action under the first dimming test instruction, filters and amplifies the feedback dimming voltage signal, converts it into a digital voltage value, and then sends it to the host or forwards it to the host through the wireless coordinator. The host also compares the digital voltage value with the set dimming voltage value range. If the digital voltage value is between the set dimming voltage value range, it is considered that the LoRa wireless single lamp controller passes the dimming test function;

[0071] When the test object type information is a LoRa wireless LED lamp driver, the host generates a second dimming test instruction and sends it to the LoRa wireless LED lamp driver through a wireless coordinator. The second dimming test instruction includes a set dimming current value range. The dimming test module collects a dimming current signal when the LoRa wireless LED lamp driver performs a corresponding action under the second dimming test instruction, filters and amplifies the dimming current signal, converts it into a digital current value, and then sends it to the host or forwards it to the host through the wireless coordinator. The host also compares the digital current value with the set current value range of the dimming current signal. If the digital current value is between the set dimming current value range, it is considered that the LoRa wireless LED lamp driver passes the dimming test function.

[0072] Specifically, Figure 7As shown, it should be noted that Figure 7 Serial port 1 refers to Figure 1 RS485 converter to the coordinator. Serial port 2 is reflected in Figure 1 RS485 converter in to multi-channel data acquisition module.

[0073] Since the types of functions to be tested of the LoRa wireless single lamp controller also include wireless communication function, ID number configuration function, LED lamp drive power switch control function, node fault detection and positioning function, and lamp fault detection function, when testing the LoRa wireless single lamp controller, the test method includes: initializing the maximum dimming output amplitude of the LoRa wireless single lamp controller to 10V; firstly, dimming the LoRa wireless single lamp controller at 9V, and reading the dimming voltage value V output by the LoRa wireless single lamp controller through the dimming test module. AD If 8.8V <V AD <9.2V (the error tolerance is set to 0.2V), then proceed to the next step. If 8.8V <V AD <9.2V does not hold, it is considered that the LoRa wireless single lamp controller has not executed the dimming instruction. It should be noted that, in actual situations, the probability of two functional failures in a single lamp controller is extremely low. At this time, a command to turn off the relay is sent. If the relay is activated, it means that there is a dimming failure. If the relay does not act, it is determined that there is a wireless communication failure in the single lamp controller. The system will no longer perform other functional tests on the node and continue to test the next device. In this embodiment, the dimming test module includes an amplifying filter circuit and a converter. The amplifying filter circuit is connected to the LoRa wireless single lamp controller to be tested, and the converter is connected to the amplifying filter circuit. The collected voltage signal is amplified by the amplifying filter circuit to prevent the signal from being distorted during transmission, and the amplifying filter circuit is simple in design, which reduces the implementation cost.

[0074] After configuring the ID number for the LoRa wireless single lamp controller, send the single node dimming command corresponding to the ID number to make it perform 4V dimming. If 3.8V <V AD <4.2V, it means that the single lamp controller of this ID number has executed the dimming action, that is, the ID configuration is successful. If 3.8V <V AD <4.2V is not true, indicating that the single lamp controller of this ID did not receive the command, that is, the ID configuration was unsuccessful.

[0075] Furthermore, a disconnect relay command is sent to the node. After the node's internal relay executes the action, the voltage on the node output line is 0, and the data read by the board card DI0 module will become low level. If DI0=0 is detected, it means that the node's internal relay has no fault, otherwise the fault type is recorded as disconnect relay fault.

[0076] When the function of detecting the node to read the status of the lamp, it is necessary to make DO15=0 to simulate the status of the lamp failure. Send the status reading instruction XX 03 00 01, and the protocol format returned by the device under normal circumstances is XX 03 00 01 LL. Among them, LL represents the fault status information: LL is 00, indicating that the lamp is broken, and it also indicates that the single lamp controller is working normally and can communicate wirelessly; LL is 01, indicating that the lamp is normal; LL is 02, indicating that the single lamp controller is faulty and cannot communicate. Because the lamp failure has been simulated, the data that should be returned in this case is XX 03 00 01 00, so when testing, it is directly judged based on the fifth byte of the returned data. It should be noted that when judging the driving power switch control function, it is only necessary to judge whether the internal relay of the single lamp controller is faulty.

[0077] It should be noted that in actual situations, the LoRa wireless LED lamp driver is a combination of the LoRa wireless single lamp controller and the driver, and has all the functions of the LoRa wireless single lamp controller. Therefore, its types of functions to be tested, test instructions, and test sequences are the same as those of the LoRa wireless single lamp controller. Figure 8 However, it should be distinguished that when testing the dimming function, the LoRa wireless single lamp controller is 0-10V dimming, and the LoRa wireless LED lamp driver power supply is 0-1A DC current dimming.

[0078] Furthermore, if Fig. 9 As shown, the functions to be tested of the LoRa wireless data collector include ID number configuration, 0-10V analog voltage signal input, 4-20mA analog current signal input, switch input and output, and data transparency. That is, in addition to the test method described above, the test method of the LoRa wireless data collector also includes: sending a configuration ID instruction to the LoRa wireless data collector through the wireless coordinator, and then sending an ID instruction to read the LoRa wireless data collector. If the read wireless collector ID is the same as the configuration, the ID is successfully configured.

[0079] The host sends the transparent data to the wireless collector through the wireless coordinator, and then the collector transmits the transparent data to the host through the serial port. The host determines whether the transparent data transmitted by the LoRa wireless data collector is the same as the transparent data sent by the wireless coordinator. If they are the same, the transparent data function is normal.

[0080] It should be noted that the above test method also includes a stress test on the LoRa wireless electromechanical device. The stress test is mainly used to test the LoRa wireless electromechanical device that has been successfully configured with an ID number and has intact functions, mainly to detect the reliability of the device. The stress test can be used to heat the device to ensure that the device can run for a long time and still function normally.

[0081] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A test system for LoRa wireless electromechanical equipment, characterized in that: include: A host, a selection module wirelessly connected to the host, a wireless coordinator wirelessly connected to the host, a voltage supply unit and a dimming test module connected to the LoRa wireless electromechanical device to be tested, wherein the selection module is connected to the LoRa wireless electromechanical device to be tested; The selection module is used to select the LoRa wireless electromechanical device to be tested according to the test instruction from the host, and the wireless coordinator is used to send the test instruction to the corresponding type of LoRa wireless electromechanical device to be tested. The types of the LoRa wireless electromechanical devices to be tested include at least three types, namely LoRa wireless data collector, LoRa wireless LED lamp driving power supply, and LoRa wireless single lamp controller. The test instruction includes test object type information and test function type information; When the test object type information is a LoRa wireless data collector, the voltage supply unit is used to provide a set voltage to the LoRa wireless data collector to be tested, the LoRa wireless data collector to be tested collects the set voltage to obtain a measured voltage value and feeds the measured voltage value back to the wireless coordinator, the wireless coordinator is used to feed the measured voltage value back to the host, and the host is used to compare the measured voltage value with the voltage value of the set voltage. If the two are consistent, it is considered that the LoRa wireless data collector has passed the voltage collection function test; When the test object type information is a LoRa wireless single lamp controller, the host is used to generate a first dimming test instruction and send it to the LoRa wireless single lamp controller through a wireless coordinator, the first dimming test instruction includes a set dimming voltage value range, and the dimming test module is used to collect the feedback dimming voltage signal when the LoRa wireless single lamp controller performs a corresponding action under the first dimming test instruction, and the feedback dimming voltage signal is filtered and amplified and converted into a digital voltage value and then sent to the host or forwarded to the host through the wireless coordinator. The host is also used to compare the digital voltage value with the set dimming voltage value range. If the digital voltage value is between the set dimming voltage value range, it is considered that the LoRa wireless single lamp controller passes the dimming test function; When the test object type information is a LoRa wireless LED lamp driver, the host is used to generate a second dimming test instruction and send it to the LoRa wireless LED lamp driver through a wireless coordinator, the second dimming test instruction includes a set dimming current value range, and the dimming test module is used to collect a dimming current signal when the LoRa wireless LED lamp driver performs a corresponding action under the second dimming test instruction, and the dimming current signal is filtered, amplified, and converted into a digital current value and then sent to the host or forwarded to the host through a wireless coordinator. The host is also used to compare the digital current value with the current value range of the set dimming current signal. If the digital current value is between the set dimming current value range, it is considered that the LoRa wireless LED lamp driver passes the dimming test function; The dimming test module includes an amplifying and filtering circuit and a converter, the amplifying and filtering circuit is connected to the LoRa wireless single lamp controller to be tested, and the converter is connected to the amplifying and filtering circuit; The amplifying and filtering circuit includes a chip CD4052BM96, a first operational amplifier, a second operational amplifier, a third operational amplifier, and a fourth operational amplifier; The second pin of the first operational amplifier is a signal input end, and the second pin is connected to the output end of the LoRa wireless single lamp controller to be tested through a resistor R201. The first pin of the first operational amplifier is an output end, and the first pin is connected to the 13th pin of the chip CD4052BM96; The sixth pin of the second operational amplifier is an input end, and the sixth pin is connected to the output end of the LoRa wireless single lamp controller to be tested through a resistor R203. The seventh pin of the second operational amplifier is an output end, and the seventh pin is connected to the third pin of the chip CD4052BM96; The 13th pin of the chip CD4052BM96 is connected to the 9th pin of the third operational amplifier through a resistor R205, the 10th pin of the third operational amplifier is grounded through a resistor R206, a feedback resistor R207 is connected in series between the 9th pin and the 8th pin of the third operational amplifier, and a capacitor C201 is connected in parallel across the feedback resistor R207, and the 8th pin of the third operational amplifier is connected to the converter ADS1256; The third pin of the chip CD4052BM96 is connected to the 13th pin of the fourth operational amplifier through a resistor R208, the 12th pin of the fourth operational amplifier is grounded through a resistor R209, a feedback resistor R210 is connected in series between the 13th pin and the 14th pin of the fourth operational amplifier, and a capacitor C202 is connected in parallel across the feedback resistor R210, and the 14th pin of the fourth operational amplifier is connected to the converter ADS1256; The test system also includes a current supply unit, which is used to provide a set current to the LoRa wireless data collector to be tested, and the LoRa wireless data collector to be tested collects a measured current value and feeds the collected measured current value back to the wireless coordinator; The host is also used to receive the measured current value from the wireless coordinator, and compare the measured current value with the current value of the set current. If the two are consistent, it is considered that the LoRa wireless data collector has passed the current collection function test.

2. The LoRa wireless electromechanical device test system according to claim 1, characterized in that: The test system also includes a switch signal simulation unit for simulating the state of an external switch, wherein the positive and negative poles of the switch signal simulation unit are short-circuited, the positive pole is connected to the Kin+ interface of the LoRa wireless data collector, and the negative pole is connected to the Kin- interface of the LoRa wireless data collector.

3. The LoRa wireless electromechanical device test system according to claim 1, characterized in that: The test system also includes an output switch state detection module, including a first relay for selecting a single lamp controller and a second relay for detecting whether the internal relay of the single lamp controller is working normally, the first relay is connected to the live wire of the input end of the LoRa wireless single lamp controller to be tested, and the second relay is connected to the output live wire and neutral wire of the LoRa wireless single lamp controller to be tested; wherein, one end of the normally closed contact of the second relay is connected to the DI0 interface of the digital two-input module of the board, and the other end of the relay is grounded.

4. The LoRa wireless electromechanical device test system according to claim 1, characterized in that: The voltage supply unit comprises a first voltage-dividing resistor (R301) and a second voltage-dividing resistor (R302) which are connected in parallel with a DC power supply for providing a set voltage and are connected in series with each other, and a Vin+ interface of a LoRa wireless data collector is connected between the first voltage-dividing resistor (R301) and the second voltage-dividing resistor (R302).

5. The LoRa wireless electromechanical device test system according to claim 1, characterized in that: The current supply unit comprises a first diode (D301), a second diode (D302) and a third diode (D303) which are connected in series in sequence, wherein the positive electrode of the first diode (D301) is connected to a DC power supply for providing a set current, and the negative electrode of the third diode (D303) is connected to a lin+ interface of the LoRa wireless data collector.

6. The LoRa wireless electromechanical device test system according to claim 1, characterized in that: The test system also includes a fourth diode (D401) and a Hall current transformer, wherein the positive electrode of the fourth diode (D401) is connected to the ZL+ interface of the LoRa wireless LED lamp driving power supply, the negative electrode of the fourth diode (D401) is connected to the Hall current transformer, and a switch (K1-4) is provided between the fourth diode (D401) and the Hall current transformer.

7. A test method for a LoRa wireless electromechanical device test system according to any one of claims 1 to 6, characterized in that: The specific steps include: The host generates a test instruction and sends it to the selection module, and at the same time sends the test instruction to the wireless coordinator. The selection module selects the LoRa wireless electromechanical device to be tested according to the test instruction, and the wireless coordinator sends the test instruction to the corresponding type of LoRa wireless electromechanical device to be tested; When the test object type information is a LoRa wireless data collector, the voltage supply unit provides a set voltage to the LoRa wireless data collector to be tested, the LoRa wireless data collector to be tested collects the set voltage to obtain a measured voltage value and feeds the measured voltage value back to the wireless coordinator, the wireless coordinator feeds the measured voltage value back to the host, and the host compares the measured voltage value with the voltage value of the set voltage. If the two are consistent, it is considered that the LoRa wireless data collector has passed the voltage collection function test; When the test object type information is a LoRa wireless single lamp controller, the host generates a first dimming test instruction and sends it to the LoRa wireless single lamp controller through a wireless coordinator. The first dimming test instruction includes a set dimming voltage value range. The dimming test module collects the feedback dimming voltage signal when the LoRa wireless single lamp controller performs a corresponding action under the first dimming test instruction, filters and amplifies the feedback dimming voltage signal, converts it into a digital voltage value, and then sends it to the host or forwards it to the host through the wireless coordinator. The host also compares the digital voltage value with the set dimming voltage value range. If the digital voltage value is between the set dimming voltage value range, it is considered that the LoRa wireless single lamp controller passes the dimming test function; When the test object type information is a LoRa wireless LED lamp driver, the host generates a second dimming test instruction and sends it to the LoRa wireless LED lamp driver through a wireless coordinator. The second dimming test instruction includes a set dimming current value range. The dimming test module collects a dimming current signal when the LoRa wireless LED lamp driver performs a corresponding action under the second dimming test instruction, filters and amplifies the dimming current signal, converts it into a digital current value, and then sends it to the host or forwards it to the host through the wireless coordinator. The host also compares the digital current value with the set current value range of the dimming current signal. If the digital current value is between the set dimming current value range, it is considered that the LoRa wireless LED lamp driver passes the dimming test function.