CN110389266A - A kind of LoRa is wireless electromechanical equipment test macro and its test method - Google Patents

A kind of LoRa is wireless electromechanical equipment test macro and its test method Download PDF

Info

Publication number
CN110389266A
CN110389266A CN201910629905.8A CN201910629905A CN110389266A CN 110389266 A CN110389266 A CN 110389266A CN 201910629905 A CN201910629905 A CN 201910629905A CN 110389266 A CN110389266 A CN 110389266A
Authority
CN
China
Prior art keywords
wireless
lora
test
light modulation
host
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.)
Pending
Application number
CN201910629905.8A
Other languages
Chinese (zh)
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.)
Hunan Pei Ke Traffic Engineering Technology Ltd By Share Ltd
Original Assignee
Hunan Pei Ke Traffic Engineering Technology Ltd By Share 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 Hunan Pei Ke Traffic Engineering Technology Ltd By Share Ltd filed Critical Hunan Pei Ke Traffic Engineering Technology Ltd By Share Ltd
Priority to CN201910629905.8A priority Critical patent/CN110389266A/en
Publication of CN110389266A publication Critical patent/CN110389266A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R19/00Arrangements for measuring currents or voltages or for indicating presence or sign thereof
    • 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
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The present invention relates to wireless electromechanical equipment the field of test technology, a kind of wireless electromechanical equipment test macro of LoRa and its test method are disclosed, quickly and accurately the wireless electromechanical equipment of LoRa is automatically configured and be tested;Test macro of the invention include host, with the host selecting module being wirelessly connected, the wireless coordinator connecting with host wireless telecommunications, the voltage feed unit that connect with the wireless electromechanical equipment of LoRa to be measured and dim test module, selecting module is connect with the wireless electromechanical equipment of LoRa to be measured;Switching module is selected to be used to select the wireless electromechanical equipment of LoRa to be measured according to the test instruction from host, wireless coordinator is used to test the wireless electromechanical equipment of LoRa to be measured that instruction is sent to corresponding type, the type of the wireless electromechanical equipment of LoRa to be measured includes at least three classes, respectively LoRa Wireless data acquisition unit, LoRa wireless LED lamp driving power source and LoRa wireless single-light controller, test instruction include type of test object information and test function information.

Description

A kind of LoRa is wireless electromechanical equipment test macro and its test method
Technical field
The present invention relates to wireless electromechanical equipment the field of test technology more particularly to a kind of wireless electromechanical equipment tests of LoRa System and its test method.
Background technique
In in recent years, lighting control system of the latest generation based on LoRa wireless technology obtains largely in highway It promotes and applies, the mainstream technology and product of vcehicular tunnel Electromechanical Control will be become.In the Lighting control system of LoRa wireless technology In system, LoRa is wireless, and electromechanical equipment accounts for very important status.Tunnel safety problem is great, it is necessary to ensure that LoRa wireless network The Product quality and safety of equipment, therefore, before use, needing to carry out LoRa Wireless Communication Equipment ID number configuration and function survey Examination, there is presently no the corresponding wireless electromechanical equipments of LoRa in LoRa Wireless Communication Equipment to be automatically configured and be tested Tool or mode.
In conventional method, Modbus debugging assistant can only be borrowed, is accomplished manually the ID configuration to the wireless electromechanical equipment of LoRa With functional test, this needs two people to cooperate in the process, and a people is mainly responsible for the wiring of test macro, and a people is responsible for operation and calculates Machine sends test instruction.Since the function code of Modbus agreement is more, data structure is different, protocol massages length differs, cause big The human configuration of batch Wireless Communication Equipment has the following problems with test: required manpower is more, large labor intensity, configuration and test Time is long, device id configuration error rate is high, testing efficiency is low, and can only test and debug every time an equipment, and effect is low, the time It is long, large labor intensity.It obviously, cannot be fine with test using the human configuration that Modbus debugging assistant carries out Wireless Communication Equipment Ground meets practical application request, the serious popularization and application for restricting LoRa wireless tunnel lighting system.
Therefore, how quickly and accurately the wireless electromechanical equipment of LoRa to be automatically configured and is tested, become a urgency Problem to be solved.
Summary of the invention
It is an object of that present invention to provide a kind of wireless electromechanical equipment test macro of LoRa and its test method, with quickly and Accurately the wireless electromechanical equipment of LoRa is automatically configured and tested.
To achieve the above object, the present invention provides a kind of wireless electromechanical equipment test macros of LoRa, comprising:
Host, with the host be wirelessly connected selecting module, connect with the host wireless telecommunications wireless coordinator, The voltage feed unit that is connect with the wireless electromechanical equipment of LoRa to be measured and light modulation test module, the selecting module with it is described to be measured Electromechanical equipment connection that LoRa is wireless;
The selection switching module is used to select the wireless electromechanical equipment of LoRa to be measured, institute according to the test instruction from host State wireless coordinator and be sent to the wireless electromechanical equipment of LoRa to be measured of corresponding type for that will test to instruct, the LoRa to be measured without The type of line electromechanical equipment includes at least three classes, respectively LoRa Wireless data acquisition unit, LoRa wireless LED lamp driving power source, And LoRa wireless single-light controller, the test instruction includes type of test object information and test function information;
When the type of test object information is LoRa Wireless data acquisition unit, the voltage feed unit is used for institute It states LoRa Wireless data acquisition unit to be measured and setting voltage is provided, the LoRa Wireless data acquisition unit to be measured acquires the setting voltage It obtains measurement voltage value and measurement voltage value is fed back into the wireless coordinator, the wireless coordinator will be for that will measure voltage Value feeds back to host, and the host is used to for the measurement voltage value being compared with the voltage value for setting voltage, if the two phase Symbol, then it is assumed that LoRa Wireless data acquisition unit passes through voltage acquisition functional test;
When the type of test object information is LoRa wireless single-light controller, the host is for generating the first light modulation Test instruction is sent to LoRa wireless single-light controller by wireless coordinator, and the first light modulation test instruction includes setting Dimmer voltage value range, light modulation test module execute under the first light modulation test instruction for acquiring LoRa wireless single-light controller Feedback dimmer voltage signal when corresponding actions is filtered enhanced processing to the feedback dimmer voltage signal and is converted to number It is sent to host after word voltage value or host is transmitted to by wireless coordinator, the host is also used to the digital voltage Value with setting dimmer voltage value range be compared, if the digital voltage value the setting dimmer voltage value range it Between, it is believed that LoRa wireless single-light controller passes through light modulation test function;
When the type of test object information is LoRa wireless LED lamp driving power source, the host is for generating second Light modulation test instruction is sent to the LoRa wireless LED lamp driving power source by wireless coordinator, and the second light modulation test refers to Enabling includes the light modulation current value range set, and light modulation test module is adjusted for acquiring LoRa wireless LED lamp driving power source second Light modulation current signal when corresponding actions is executed under optical tests instruction, and enhanced processing is filtered simultaneously to the light modulation current signal Host is sent to after being converted to digital current values or host is transmitted to by wireless coordinator, and the host is also used to will be described Digital current values are compared with the current value range of the light modulation current signal of setting, if the digital current values are in the setting Light modulation current value range between, it is believed that LoRa wireless LED lamp driving power source by light modulation test function.
Preferably, the test macro further includes electric current feed unit, for the LoRa data acquisition to be measured Device provides setting electric current, and the LoRa Wireless data acquisition unit to be measured acquires the measurement current value and the measurement current value by acquisition Feed back to the wireless coordinator;
The host is also used to receive the measurement current value from the wireless coordinator, by the measurement current value with set The current value of constant current is compared, if the two is consistent, then it is assumed that LoRa Wireless data acquisition unit is surveyed by current acquisition function Examination.
Preferably, the test macro further includes the on-off model analogue unit for simulating external switch state, institute The positive and negative anodes for stating on-off model analogue unit are shorted, and anode is connected to the Kin+ interface of LoRa Wireless data acquisition unit, cathode It is connected to the Kin- interface of LoRa Wireless data acquisition unit.
Preferably, the test macro further includes output switch state detection module, including for selecting single-lamp controller The first relay and the second relay for whether being worked normally for detecting single-lamp controller internal relay, described first after Electric appliance is connected on the firewire of the input terminal of the LoRa wireless single-light controller to be measured, and second relay is connected to described In the output line of fire and zero curve of LoRa wireless single-light controller to be measured;Wherein, the normally-closed contact one of second relay terminates Enter the two input module DI0 interface of number of board, the other end ground connection of the relay.
Preferably, the light modulation test module includes filtering and amplifying circuit and converter, the filtering and amplifying circuit with to Survey states LoRa wireless single-light controller and is connected, and the converter is connected with the filtering and amplifying circuit.
Preferably, the voltage feed unit includes and the DC power supply for providing setting voltage and company and mutual string The the first divider resistance R301 and the second divider resistance R302 of connection, between the first divider resistance R301 and the second divider resistance R302 Connect the Vin+ interface of LoRa Wireless data acquisition unit.
Preferably, the electric current feed unit include the first diode D301 being sequentially connected in series, the second diode D302 with And the anode connection of third diode D303, the first diode D301 are for providing the DC power supply of setting electric current, it is described The cathode of third diode D303 connects the lin+ interface of the LoRa Wireless data acquisition unit.
Preferably, the filtering and amplifying circuit includes chip CD4052BM96, the first operational amplifier, the second operation amplifier Device, third operational amplifier and four-operational amplifier;
2nd pin of first operational amplifier is signal input part, and the 2nd pin passes through resistance R201 and institute The output end for stating LoRa wireless single-light controller to be measured is connected, and the 1st pin of first operational amplifier is output end, should 1st pin is connected with the 13rd pin of the chip CD4052BM96;
6th pin of the second operational amplifier is input terminal, the 6th pin by resistance R203 and it is described to The output end for surveying LoRa wireless single-light controller is connected, and the 7th pin of the second operational amplifier is output end, and the 7th A pin is connected with the 3rd pin of the chip CD4052BM96;
The 13rd pin of the chip CD4052BM96 is connected to the 9th of third operational amplifier by resistance R205 10th pin of pin, the third operational amplifier is grounded by resistance R206, and the 9th of the third operational amplifier Feedback resistance R207 is concatenated between pin and the 8th pin, and in the both ends feedback resistance R207 shunt capacitance C201, it is described 8th pin of third operational amplifier is connected to converter ADS1256;
The 3rd pin of the chip CD4052BM96 is connected to the 13rd of four-operational amplifier by resistance R208 12nd pin of pin, the four-operational amplifier is grounded by resistance R209, and the of the 4th operational amplification circuit Feedback resistance R210 is concatenated between 13 pins and the 14th pin, and in the both ends feedback resistance R210 shunt capacitance The 14th pin of C202, the four-operational amplifier are connected to converter ADS1256.
Preferably, the test macro further includes the 4th diode D401 and Hall current mutual inductor, the four or two pole The ZL+ interface of the anode connection LoRa wireless LED lamp driving power source of pipe D401, the cathode of the 4th diode D401 connect institute Hall current mutual inductor is stated, and is equipped with switch K1-4 between the 4th diode D401 and the Hall current mutual inductor.
As a general technical idea, the present invention also provides one kind to be applied to the wireless electromechanical equipment test of above-mentioned LoRa The test method of system, specifically includes the following steps:
Host generates test instruction and is sent to selection switching module, and test instruction is sent to wireless coordinator simultaneously, Switching module is selected to select the wireless electromechanical equipment of LoRa to be measured according to test instruction, test instruction is sent to phase by wireless coordinator Answer the wireless electromechanical equipment of LoRa to be measured of type;
When the type of test object information is LoRa Wireless data acquisition unit, the voltage feed unit to it is described to It surveys LoRa Wireless data acquisition unit and setting voltage is provided, the LoRa Wireless data acquisition unit to be measured acquires the setting voltage and obtains Measurement voltage value is simultaneously fed back to the wireless coordinator by measurement voltage value, and the wireless coordinator is fed back to voltage value is measured Host, the measurement voltage value is compared the host with the voltage value for setting voltage, if the two is consistent, then it is assumed that LoRa Wireless data acquisition unit passes through voltage acquisition functional test;
When the type of test object information is LoRa wireless single-light controller, the host generates the first light modulation test Instruction is sent to LoRa wireless single-light controller by wireless coordinator, and the first light modulation test instruction includes the light modulation of setting Range of voltage values, light modulation test module acquisition LoRa wireless single-light controller execute corresponding actions under the first light modulation test instruction When feedback dimmer voltage signal, enhanced processing is filtered to the feedback dimmer voltage signal and is converted to digital voltage value After be sent to host or host be transmitted to by wireless coordinator, the host is also by the tune of the digital voltage value and setting Photovoltage value range is compared, if the digital voltage value is between the dimmer voltage value range of the setting, it is believed that LoRa Wireless single-light controller passes through light modulation test function;
When the type of test object information is LoRa wireless LED lamp driving power source, the host generates the second light modulation Test instruction is sent to the LoRa wireless LED lamp driving power source, the second light modulation test instruction packet by wireless coordinator The light modulation current value range of setting is included, light modulation test module acquisition LoRa wireless LED lamp driving power source refers in the second light modulation test Light modulation current signal when lower execution corresponding actions is enabled, enhanced processing is filtered to the light modulation current signal and is converted to number Be sent to host after word current value or host be transmitted to by wireless coordinator, the host also by the digital current values with The current value range of the light modulation current signal of setting is compared, if the digital current values are in the light modulation current value of the setting Between range, it is believed that LoRa wireless LED lamp driving power source passes through light modulation test function.
To sum up, the invention has the following advantages:
The present invention provides a kind of wireless electromechanical equipment test macro of LoRa and its test method, including host and host The selecting module of wireless connection, the wireless coordinator connecting with host wireless telecommunications are connect with the wireless electromechanical equipment of LoRa to be measured Voltage feed unit and light modulation test module, selecting module connect with the wireless electromechanical equipment of LoRa to be measured;Pass through selecting module Can flexible switch test object, can quickly and accurately the wireless electromechanical equipment of LoRa be automatically configured and be tested, mould Block easy switching, implementation cost are low.
Below with reference to accompanying drawings, the present invention is described in further detail.
Detailed description of the invention
The attached drawing constituted part of this application is used to provide further understanding of the present invention, schematic reality of the invention It applies example and its explanation is used to explain the present invention, do not constitute improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the wireless electromechanical equipment test macro electrical block diagram of LoRa of the preferred embodiment of the present invention;
Fig. 2 is the preferred embodiment of the present invention for testing the circuit diagram of LoRa Wireless data acquisition unit;
Fig. 3 is the preferred embodiment of the present invention for testing the circuit diagram of LoRa wireless single-light controller;
Fig. 4 is the filtering and amplifying circuit figure of the preferred embodiment of the present invention;
Fig. 5 is the preferred embodiment of the present invention for testing LoRa wireless LED lamp driving power circuit figure;
Fig. 6 is the test method selection signal of the wireless electromechanical equipment test macro of LoRa of the preferred embodiment of the present invention Figure;
Fig. 7 is the test method flow chart of the LoRa wireless single-light controller of the preferred embodiment of the present invention;
Fig. 8 is the test method flow chart of the LoRa wireless LED lamp driving power source of the preferred embodiment of the present invention;
Fig. 9 is the test method flow chart of the LoRa Wireless data acquisition unit of the preferred embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described in detail below in conjunction with attached drawing, but the present invention can be defined by the claims Implement with the multitude of different ways of covering.
Unless otherwise defined, all technical terms used hereinafter and the normally understood meaning of those skilled in the art It is identical." first ", " second " used in present patent application specification and claims and similar word are simultaneously Any sequence, quantity or importance are not indicated, and are intended merely to facilitate and corresponding components are distinguished.Equally, " one It is a " or the similar word such as " one " do not indicate that quantity limits, but indicate that there are at least one.The classes such as " connection " or " connected " As word be not limited to physics or mechanical connection, but may include electrical connection, either it is direct also It is indirect.
Embodiment 1
As shown in Figure 1, the present embodiment provides a kind of wireless electromechanical equipment test macros of LoRa, comprising:
Host, with the host be wirelessly connected selecting module, connect with the host wireless telecommunications wireless coordinator, The voltage feed unit that is connect with the wireless electromechanical equipment of LoRa to be measured and light modulation test module, the selecting module with it is described to be measured Electromechanical equipment connection that LoRa is wireless;
The selection switching module is used to select the wireless electromechanical equipment of LoRa to be measured, institute according to the test instruction from host State wireless coordinator and be sent to the wireless electromechanical equipment of LoRa to be measured of corresponding type for that will test to instruct, the LoRa to be measured without The type of line electromechanical equipment includes at least three classes, respectively LoRa Wireless data acquisition unit, LoRa wireless LED lamp driving power source, And LoRa wireless single-light controller, the test instruction includes type of test object information and test function information;
When the type of test object information is LoRa Wireless data acquisition unit, the voltage feed unit is used for institute It states LoRa Wireless data acquisition unit to be measured and setting voltage is provided, the LoRa Wireless data acquisition unit to be measured acquires the setting voltage It obtains measurement voltage value and measurement voltage value is fed back into the wireless coordinator, the wireless coordinator will be for that will measure voltage Value feeds back to host, and the host is used to for the measurement voltage value being compared with the voltage value for setting voltage, if the two phase Symbol, then it is assumed that LoRa Wireless data acquisition unit passes through voltage acquisition functional test;
When the type of test object information is LoRa wireless single-light controller, the host is for generating the first light modulation Test instruction is sent to LoRa wireless single-light controller by wireless coordinator, and the first light modulation test instruction includes setting Dimmer voltage value range, light modulation test module execute under the first light modulation test instruction for acquiring LoRa wireless single-light controller Feedback dimmer voltage signal when corresponding actions is filtered enhanced processing to the feedback dimmer voltage signal and is converted to number It is sent to host after word voltage value or host is transmitted to by wireless coordinator, the host is also used to the digital voltage Value with setting dimmer voltage value range be compared, if the digital voltage value the setting dimmer voltage value range it Between, it is believed that LoRa wireless single-light controller passes through light modulation test function.
Electromechanical equipment test macro that above-mentioned LoRa is wireless, by selecting module can flexible switch test object, can Quickly and accurately the wireless electromechanical equipment of LoRa is automatically configured and be tested, module easy switching, implementation cost is low.
It is worth noting that above-mentioned first light modulation test instruction is that 0-10V is dimmed, above-mentioned second light modulation test instruction is 0- The light modulation of 1A direct current.
As the present embodiment preferred embodiment, test macro further includes electric current feed unit, for LoRa to be measured Wireless data acquisition unit provides setting electric current, and LoRa Wireless data acquisition unit to be measured acquires the measurement current value and the survey by acquisition Constant current value feeds back to wireless coordinator;
Host is also used to receive the measurement current value from wireless coordinator, will measure the electric current of current value and setting electric current Value is compared, if the two is consistent, then it is assumed that LoRa Wireless data acquisition unit passes through current acquisition functional test.
As the present embodiment preferred embodiment, test macro further includes the switching value for simulating external switch state Signal imitation unit, as shown in Fig. 2, the positive and negative anodes of on-off model analogue unit are shorted, anode is connected to LoRa wireless data The Kin+ interface of collector, cathode are connected to the Kin- interface of LoRa Wireless data acquisition unit.
As the present embodiment preferred embodiment, test macro further includes output switch state detection module, such as Fig. 3 institute Show, including for selecting the first relay of single-lamp controller and for detecting the whether normal work of single-lamp controller internal relay The second relay made, the first relay is connected on the firewire of the input terminal of LoRa wireless single-light controller to be measured, second after Electric appliance is connected in the output line of fire and zero curve of LoRa wireless single-light controller to be measured;Wherein, the normally-closed contact of the second relay The two input module DI0 interface of number of board, the other end ground connection of relay are accessed in one end.
As the present embodiment preferred embodiment, voltage feed unit includes and is used to provide the direct current of setting voltage Source and the first divider resistance R301 and the second divider resistance R302, the first divider resistance R301 and second connect and being serially connected The Vin+ interface of the indirect LoRa Wireless data acquisition unit of divider resistance R302.
As the present embodiment preferred embodiment, electric current feed unit includes the first diode being sequentially connected in series (D301), the anode connection of the second diode D302 and third diode D303, first diode D301 are for providing setting The DC power supply of electric current, the lin+ interface of the cathode connection LoRa Wireless data acquisition unit of third diode D303.
As the present embodiment preferred embodiment, as shown in figure 4, filtering and amplifying circuit include chip CD4052BM96, First operational amplifier, second operational amplifier, third operational amplifier and four-operational amplifier;
2nd pin of the first operational amplifier is signal input part, the 2nd pin by resistance R201 with it is to be measured The output end of LoRa wireless single-light controller is connected, and the 1st pin of the first operational amplifier is output end, the 1st pin It is connected with the 13rd pin of chip CD4052BM96;
6th pin of second operational amplifier is input terminal, the 6th pin by resistance R203 and LoRa to be measured without The output end of line single-lamp controller is connected, and the 7th pin of second operational amplifier is output end, the 7th pin and chip The 3rd pin of CD4052BM96 is connected;
The 13rd pin of chip CD4052BM96 is drawn by the 9th that resistance R205 is connected to third operational amplifier 10th pin of foot, third operational amplifier is grounded by resistance R206, the 9th pin and the 8th of third operational amplifier Feedback resistance R207 is concatenated between a pin, and in the both ends feedback resistance R207 shunt capacitance C201, third operational amplifier 8th pin is connected to converter ADS1256;
The 3rd pin of chip CD4052BM96 is drawn by the 13rd that resistance R208 is connected to four-operational amplifier 12nd pin of foot, four-operational amplifier is grounded by resistance R209, the 13rd pin of the 4th operational amplification circuit and Feedback resistance R210 is concatenated between 14th pin, and in the both ends feedback resistance R210 shunt capacitance C202, the 4th operation amplifier 14th pin of device is connected to converter ADS1256.
Specifically, filtering and amplifying circuit realizes the gain automatic change of different input voltages, tested according to test macro Input range is divided into 0~1.25V, 1.25~2.5V, 2.5~5V and 5~10V tetra- by the actual change range of analog quantity Gear, different feedback resistance values is selected by program-controlled analog switch, obtains different voltage amplification factors, in the present embodiment, is put The amplification factor of big filter circuit is respectively 4 times, 2 times, 1 times and 0.5 times.Wherein, chip CD4052BM96, the first operation Amplifier, second operational amplifier, third operational amplifier, four-operational amplifier and associated peripheral circuits constitute two-stage and put Big circuit realizes Distinct matrix and the filtering of two-way analog input.The different feedback resistances of 4 of two-way level-one amplification R211~R214, R215~R218 are respectively connected to the X group and Y group input channel of CD4052, constitute variable 4 gains and reversely amplify Device;Second level amplifying circuit is the sign-changing amplifier that amplification factor is 1, feedback resistance R207 and capacitor C201 group as escribed above At unit gain filter circuit, make in circuit output voltage polarity and input voltage polarity always, moreover it is possible to filter out the height in signal Frequency noise.
As the present embodiment preferred embodiment, as shown in figure 5, test macro further includes R301 diode D401 and suddenly That current transformer, the ZL+ interface of the anode connection LoRa wireless LED lamp driving power source of R301 diode D401, bis- pole R301 The cathode of pipe D401 connects Hall current mutual inductor, and switch is equipped between R301 diode D401 and Hall current mutual inductor K1-4.In the present embodiment, the ZL+ interface (power supply output line anode) of LoRa wireless LED lamp driving power source meets diode D401, prevent Only the power of other equipment flows backward, and then accesses Hall current mutual inductor coil, the output termination amplification filter of Hall current mutual inductor Wave circuit input terminal;Hall current mutual inductor is used to current signal being converted to voltage signal, is then transferred to amplification filtered electrical Road, to detect the current signal on LoRa wireless LED lamp driving power source output line;The detection of this external equipment output switch state It is completed by current value situation of change on detection device output line.
Embodiment 2
As shown in fig. 6, the present embodiment provides a kind of test method applied to the test macro in above-described embodiment 1, tool Body the following steps are included:
Host generates test instruction and is sent to selection switching module, and test instruction is sent to wireless coordinator simultaneously, Switching module is selected to select the wireless electromechanical equipment of LoRa to be measured according to test instruction, test instruction is sent to phase by wireless coordinator Answer the wireless electromechanical equipment of LoRa to be measured of type;
When the type of test object information is LoRa Wireless data acquisition unit, the voltage feed unit to it is described to It surveys LoRa Wireless data acquisition unit and setting voltage is provided, the LoRa Wireless data acquisition unit to be measured acquires the setting voltage and obtains Measurement voltage value is simultaneously fed back to the wireless coordinator by measurement voltage value, and the wireless coordinator is fed back to voltage value is measured Host, the measurement voltage value is compared the host with the voltage value for setting voltage, if the two is consistent, then it is assumed that LoRa Wireless data acquisition unit passes through voltage acquisition functional test;
When the type of test object information is LoRa wireless single-light controller, the host generates the first light modulation test Instruction is sent to LoRa wireless single-light controller by wireless coordinator, and the first light modulation test instruction includes the light modulation of setting Range of voltage values, light modulation test module acquisition LoRa wireless single-light controller execute corresponding actions under the first light modulation test instruction When feedback dimmer voltage signal, enhanced processing is filtered to the feedback dimmer voltage signal and is converted to digital voltage value After be sent to host or host be transmitted to by wireless coordinator, the host is also by the tune of the digital voltage value and setting Photovoltage value range is compared, if the digital voltage value is between the dimmer voltage value range of the setting, it is believed that LoRa Wireless single-light controller passes through light modulation test function;
When the type of test object information is LoRa wireless LED lamp driving power source, the host generates the second light modulation Test instruction is sent to the LoRa wireless LED lamp driving power source, the second light modulation test instruction packet by wireless coordinator The light modulation current value range of setting is included, light modulation test module acquisition LoRa wireless LED lamp driving power source refers in the second light modulation test Light modulation current signal when lower execution corresponding actions is enabled, enhanced processing is filtered to the light modulation current signal and is converted to number Be sent to host after word current value or host be transmitted to by wireless coordinator, the host also by the digital current values with The current value range of the light modulation current signal of setting is compared, if the digital current values are in the light modulation current value of the setting Between range, it is believed that LoRa wireless LED lamp driving power source passes through light modulation test function.
Specifically, as shown in Figure 7, it should be noted that serial ports 1 refers to the RS485 converter in Fig. 1 to coordinator in Fig. 7. Serial ports 2 is embodied in the RS485 converter in Fig. 1 to multi-channel data acquisition module.
Due to the functional type to be measured of LoRa wireless single-light controller further include wireless communication function, ID number configuration feature, LED lamp driving power switch control functions, node failure detection positioning function and lamp failure detection function, therefore testing When LoRa wireless single-light controller, test method includes: the light modulation output maximum amplitude for initializing LoRa wireless single-light controller For 10V;A 9V light modulation is carried out to LoRa wireless single-light controller first, LoRa wireless single lamp is read by light modulation test module The dimmer voltage value V of controller outputAD.If 8.8V < VAD< 9.2V sets up (allowable range of error is set as 0.2V), then carries out down One step configuration, if 8.8V < VAD< 9.2V is invalid, then it is assumed that LoRa wireless single-light controller is not carried out dimming commands.It needs Bright, in a practical situation, single-lamp controller is sent close relay at this time there are the probability of two functional faults is extremely low Instruction illustrates that there are failures for light modulation if the actuating of relay, if relay is failure to actuate, being determined as single-lamp controller, there are nothings Line communication failure, system no longer carry out other function test to the node, continue to test next equipment.In the present embodiment, adjust Optical tests module includes filtering and amplifying circuit and converter, and filtering and amplifying circuit states LoRa wireless single-light controller phase with to be measured Even, converter is connected with filtering and amplifying circuit, is amplified, can be prevented by voltage signal of the filtering and amplifying circuit to acquisition Signal is distorted in transmission process, and filtering and amplifying circuit design is simple, reduces implementation cost.
After configuring ID number for LoRa wireless single-light controller, by sending single node dimming commands corresponding with ID number, allow It carries out 4V light modulation, if 3.8V < VAD< 4.2V illustrates that the single-lamp controller of this ID number performs light modulation movement, i.e., ID is configured to Function, if 3.8V < VAD< 4.2V is invalid, illustrates that the single-lamp controller of this ID does not receive instruction, i.e. ID configuration is unsuccessful.
Further, node is sent and disconnects relay instruction, after intra-node relay execution movement, node output line Upper voltage is 0, and board DI0 module, which reads data, can become low level.If detecting DI0=0, illustrate intra-node relay There is no failure, otherwise recording fault type is to disconnect relay failure.
When detection node reads the function of lamps and lanterns state, need to make the state of DO15=0 simulation lamp failure.Send shape State reads instruction XX 03 00 01, and the protocol format that equipment returns under normal circumstances is 03 00 01 LL of XX.Wherein LL is indicated Fault status information: LL 00 indicates that lamps and lanterns are broken, while also indicating that single-lamp controller is working properly, can be carried out wireless communication; LL is that 01 expression lamps and lanterns are normal;LL, which is 02, indicates that single-lamp controller is faulty, can not communicate.Because having simulated lamps and lanterns event Barrier, therefore the data that should be returned in this case are XX 03 00 01 00, so in test directly according to return number According to the 5th byte judgement.It should be noted that need to only judge single lamp control when judging driving power switch control functions The internal relay of device whether failure.
It should be noted that in a practical situation, LoRa wireless LED lamp driving power source be LoRa wireless single-light controller with Driving power combines composition, and the institute with LoRa wireless single-light controller is functional, therefore its functional type to be measured, test refer to It enables and testing sequence is identical as LoRa wireless single-light controller, as shown in Figure 8.But should distinguish, it is being adjusted When light functional test, LoRa wireless single-light controller is 0-10V light modulation, and LoRa wireless LED lamp driving power source is 0~1A direct current Stream light modulation.
Further, as shown in figure 9, LoRa Wireless data acquisition unit includes ID number configuration, 0~10V mould to brake Quasi- voltage signal input, 4~20mA analog current signal input, On-off signal exports, the transparent transmission of data.That is, except above-mentioned The test method described, the test method of LoRa Wireless data acquisition unit further include: configuration ID is sent by wireless coordinator It instructs and gives LoRa Wireless data acquisition unit, then retransmit the ID instruction for reading LoRa Wireless data acquisition unit, if read Wireless collection device ID is identical as configuration, then realizes that ID is successfully configured.
Transparent data is sent to wireless collection device by wireless coordinator by host, then collector will by serial ports Transparent data is transmitted to host, the transparent data of LoRa Wireless data acquisition unit transmission is judged in host and by no line coordination Whether the transparent data that device is sent is identical, and if they are the same, then transparent data function is normal.
It should be noted that above-mentioned test mode further includes the strike-machine test to the wireless electromechanical equipment of LoRa, strike-machine test It is mainly used for successfully configuring ID number, and the intact wireless electromechanical equipment of LoRa of function is tested, predominantly detecting equipment can By property.Roasting machine can be carried out to equipment by strike-machine test, it is ensured that equipment long-play and function is still normal.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of wireless electromechanical equipment test macro of LoRa characterized by comprising
Host, with the host be wirelessly connected selecting module, connect with the host wireless telecommunications wireless coordinator, and to Survey the voltage feed unit and light modulation test module, the selecting module and the LoRa to be measured of the wireless electromechanical equipment connection of LoRa Wireless electromechanical equipment connection;
The selection switching module is used to select the wireless electromechanical equipment of LoRa to be measured, the nothing according to the test instruction from host Line coordination device is used to test the wireless electromechanical equipment of LoRa to be measured that instruction is sent to corresponding type, the LoRa radio machine to be measured The type of electric equipment includes at least three classes, respectively LoRa Wireless data acquisition unit, LoRa wireless LED lamp driving power source and LoRa wireless single-light controller, the test instruction includes type of test object information and test function information;
When the type of test object information is LoRa Wireless data acquisition unit, the voltage feed unit be used for it is described to It surveys LoRa Wireless data acquisition unit and setting voltage is provided, the LoRa Wireless data acquisition unit to be measured acquires the setting voltage and obtains Measurement voltage value is simultaneously fed back to the wireless coordinator by measurement voltage value, and the wireless coordinator is anti-for that will measure voltage value It feeds host, the host is used to for the measurement voltage value being compared with the voltage value of setting voltage, if the two is consistent, Think that LoRa Wireless data acquisition unit passes through voltage acquisition functional test;
When the type of test object information is LoRa wireless single-light controller, the host is for generating the first light modulation test Instruction is sent to LoRa wireless single-light controller by wireless coordinator, and the first light modulation test instruction includes the light modulation of setting Range of voltage values, light modulation test module are used to acquire LoRa wireless single-light controller and execute accordingly under the first light modulation test instruction Feedback dimmer voltage signal when movement is filtered enhanced processing to the feedback dimmer voltage signal and is converted to digital electricity Be sent to host after pressure value or host be transmitted to by wireless coordinator, the host be also used to by the digital voltage value with The dimmer voltage value range of setting is compared, if the digital voltage value between the dimmer voltage value range of the setting, Think that LoRa wireless single-light controller passes through light modulation test function;
When the type of test object information is LoRa wireless LED lamp driving power source, the host is for generating the second light modulation Test instruction is sent to the LoRa wireless LED lamp driving power source, the second light modulation test instruction packet by wireless coordinator The light modulation current value range of setting is included, light modulation test module is surveyed for acquiring LoRa wireless LED lamp driving power source in the second light modulation Light modulation current signal when corresponding actions is executed under examination instruction, and enhanced processing is filtered to the light modulation current signal and is converted To be sent to host after digital current values or being transmitted to host by wireless coordinator, the host is also used to the number Current value is compared with the current value range of the light modulation current signal of setting, if the digital current values are in the tune of the setting Between photocurrent values range, it is believed that LoRa wireless LED lamp driving power source passes through light modulation test function.
2. the wireless electromechanical equipment test macro of LoRa according to claim 1, which is characterized in that the test macro is also Including electric current feed unit, for providing setting electric current to the LoRa Wireless data acquisition unit to be measured, the LoRa to be measured without Line data collector acquires the measurement current value and the measurement current value of acquisition is fed back to the wireless coordinator;
The host is also used to receive the measurement current value from the wireless coordinator, by the measurement current value and setting electricity The current value of stream is compared, if the two is consistent, then it is assumed that LoRa Wireless data acquisition unit passes through current acquisition functional test.
3. the wireless electromechanical equipment test macro of LoRa according to claim 1, which is characterized in that the test macro is also Including the on-off model analogue unit for simulating external switch state, the on-off model analogue unit it is positive and negative extremely short It connects, anode is connected to the Kin+ interface of LoRa Wireless data acquisition unit, and cathode is connected to the Kin- of LoRa Wireless data acquisition unit Interface.
4. the wireless electromechanical equipment test macro of LoRa according to claim 1, which is characterized in that the test macro is also Including exporting switch state detection module, including for selecting the first relay of single-lamp controller and for detecting single lamp control The second relay whether device internal relay works normally, first relay are connected to the LoRa wireless single lamp to be measured On the firewire of the input terminal of controller, second relay is connected to the output fire of the LoRa wireless single-light controller to be measured On line and zero curve;Wherein, the two input module DI0 interface of number of normally-closed contact one end access board of second relay, The other end of the relay is grounded.
5. the wireless electromechanical equipment test macro of LoRa according to claim 1 or 4, which is characterized in that the light modulation is surveyed Die trial block includes filtering and amplifying circuit and converter, and the filtering and amplifying circuit states LoRa wireless single-light controller phase with to be measured Even, the converter is connected with the filtering and amplifying circuit.
6. the wireless electromechanical equipment test macro of LoRa according to claim 1, which is characterized in that the voltage supply is single Member include with for provides setting voltage DC power supply and company and the first divider resistance (R301) being serially connected and second The indirect LoRa Wireless data acquisition unit of divider resistance (R302), the first divider resistance (R301) and the second divider resistance (R302) Vin+ interface.
7. the wireless electromechanical equipment test macro of LoRa according to claim 2, which is characterized in that the electric current supply is single Member includes the first diode (D301), the second diode (D302) and the third diode (D303) that are sequentially connected in series, and described the The anode connection of one diode (D301) is for providing the DC power supply of setting electric current, the cathode of the third diode (D303) Connect the lin+ interface of the LoRa Wireless data acquisition unit.
8. the wireless electromechanical equipment test macro of LoRa according to claim 5, which is characterized in that the amplification filtered electrical Road includes chip CD4052BM96, the first operational amplifier, second operational amplifier, third operational amplifier and the 4th fortune Calculate amplifier;
2nd pin of first operational amplifier is signal input part, the 2nd pin by resistance R201 and it is described to The output end for surveying LoRa wireless single-light controller is connected, and the 1st pin of first operational amplifier is output end, and the 1st A pin is connected with the 13rd pin of the chip CD4052BM96;
6th pin of the second operational amplifier is input terminal, the 6th pin by resistance R203 with it is described to be measured The output end of LoRa wireless single-light controller is connected, and the 7th pin of the second operational amplifier is output end, and the 7th Pin is connected with the 3rd pin of the chip CD4052BM96;
The 13rd pin of the chip CD4052BM96 is drawn by the 9th that resistance R205 is connected to third operational amplifier 10th pin of foot, the third operational amplifier is grounded by resistance R206, and the 9th of the third operational amplifier draws Feedback resistance R207 is concatenated between foot and the 8th pin, and in the both ends feedback resistance R207 shunt capacitance C201, described the 8th pin of three operational amplifiers is connected to converter ADS1256;
The 3rd pin of the chip CD4052BM96 is drawn by the 13rd that resistance R208 is connected to four-operational amplifier 12nd pin of foot, the four-operational amplifier is grounded by resistance R209, and the 13rd of the 4th operational amplification circuit the Feedback resistance R210 is concatenated between a pin and the 14th pin, and in the both ends feedback resistance R210 shunt capacitance C202, 14th pin of the four-operational amplifier is connected to converter ADS1256.
9. the wireless electromechanical equipment test macro of LoRa according to claim 1, which is characterized in that the test macro is also Including the 4th diode (D401) and Hall current mutual inductor, the anode connection LoRa of the 4th diode (D401) is wireless The ZL+ interface of LED light driving power, the cathode connection Hall current mutual inductor of the 4th diode (D401), and Switch (K1-4) is equipped between 4th diode (D401) and the Hall current mutual inductor.
10. a kind of test side applied to any wireless electromechanical equipment test macro of LoRa of the claims 1-9 Method, which is characterized in that specifically includes the following steps:
Host generates test instruction and is sent to selection switching module, and test instruction is sent to wireless coordinator simultaneously, selects Switching module selects the wireless electromechanical equipment of LoRa to be measured according to test instruction, and test instruction is sent to corresponding kind by wireless coordinator The wireless electromechanical equipment of LoRa to be measured of class;
When the type of test object information is LoRa Wireless data acquisition unit, the voltage feed unit is to described to be measured LoRa Wireless data acquisition unit provides setting voltage, and the LoRa Wireless data acquisition unit to be measured acquires the setting voltage and surveyed Measurement voltage value is simultaneously fed back to the wireless coordinator by constant voltage value, and the wireless coordinator feeds back to master for voltage value is measured Machine, the host by it is described measurement voltage value with setting voltage voltage value be compared, if the two is consistent, then it is assumed that LoRa without Line data collector passes through voltage acquisition functional test;
When the type of test object information is LoRa wireless single-light controller, the host generates the first light modulation test instruction It is sent to LoRa wireless single-light controller by wireless coordinator, the first light modulation test instruction includes the dimmer voltage of setting It is worth range, when light modulation test module acquisition LoRa wireless single-light controller executes corresponding actions under the first light modulation test instruction Dimmer voltage signal is fed back, enhanced processing is filtered to the feedback dimmer voltage signal and is sent out after being converted to digital voltage value It gives host or host is transmitted to by wireless coordinator, the host is also by the light modulation of the digital voltage value and setting electricity Pressure value range is compared, if the digital voltage value is between the dimmer voltage value range of the setting, it is believed that LoRa is wireless Single-lamp controller passes through light modulation test function;
When the type of test object information is LoRa wireless LED lamp driving power source, the host generates the second light modulation test Instruction is sent to the LoRa wireless LED lamp driving power source by wireless coordinator, and the second light modulation test instruction includes setting Fixed light modulation current value range, light modulation test module acquisition LoRa wireless LED lamp driving power source is under the second light modulation test instruction Light modulation current signal when corresponding actions is executed, enhanced processing is filtered to the light modulation current signal and is converted to digital electricity It is sent to host after flow valuve or host is transmitted to by wireless coordinator, the host is also by the digital current values and setting The current value range of light modulation current signal be compared, if the digital current values are in the light modulation current value range of the setting Between, it is believed that LoRa wireless LED lamp driving power source passes through light modulation test function.
CN201910629905.8A 2019-07-12 2019-07-12 A kind of LoRa is wireless electromechanical equipment test macro and its test method Pending CN110389266A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910629905.8A CN110389266A (en) 2019-07-12 2019-07-12 A kind of LoRa is wireless electromechanical equipment test macro and its test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910629905.8A CN110389266A (en) 2019-07-12 2019-07-12 A kind of LoRa is wireless electromechanical equipment test macro and its test method

Publications (1)

Publication Number Publication Date
CN110389266A true CN110389266A (en) 2019-10-29

Family

ID=68286590

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910629905.8A Pending CN110389266A (en) 2019-07-12 2019-07-12 A kind of LoRa is wireless electromechanical equipment test macro and its test method

Country Status (1)

Country Link
CN (1) CN110389266A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112037493A (en) * 2020-08-01 2020-12-04 山东恒远智能科技有限公司 DI switching value acquisition system and method based on wireless Lora
CN112133072A (en) * 2020-09-23 2020-12-25 中国兵器工业集团第二一四研究所苏州研发中心 Test system and test method for LoRa wireless data acquisition device
CN112839417A (en) * 2021-01-28 2021-05-25 中津沛科建设股份有限公司 Urban street lamp lighting control system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6021315A (en) * 1997-11-19 2000-02-01 Cellular Technical Services Co., Inc. System and method for testing of wireless communication devices
US20020196029A1 (en) * 2001-06-22 2002-12-26 Schmidt Dominik J. Systems and methods for testing wireless devices
CN103344924A (en) * 2013-07-22 2013-10-09 石庆生 Wireless transmission device and method of single LED lamp state detection in expressway tunnel
CN204129150U (en) * 2013-11-14 2015-01-28 国家电网公司 A kind of on-line measuring device of power equipment
CN104808048A (en) * 2015-04-24 2015-07-29 河海大学常州校区 Device and method for detecting operation state of road caution lamp
CN105931446A (en) * 2016-06-28 2016-09-07 常州机电职业技术学院 Test system for gas data acquisition unit and working method thereof
CN108337779A (en) * 2018-03-16 2018-07-27 湖南沛科交通工程技术股份有限公司 A kind of wireless single lamp control system based on LoRa technologies
CN210604818U (en) * 2019-07-12 2020-05-22 湖南沛科交通工程技术股份有限公司 Test system for LoRa wireless electromechanical device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6021315A (en) * 1997-11-19 2000-02-01 Cellular Technical Services Co., Inc. System and method for testing of wireless communication devices
US20020196029A1 (en) * 2001-06-22 2002-12-26 Schmidt Dominik J. Systems and methods for testing wireless devices
CN103344924A (en) * 2013-07-22 2013-10-09 石庆生 Wireless transmission device and method of single LED lamp state detection in expressway tunnel
CN204129150U (en) * 2013-11-14 2015-01-28 国家电网公司 A kind of on-line measuring device of power equipment
CN104808048A (en) * 2015-04-24 2015-07-29 河海大学常州校区 Device and method for detecting operation state of road caution lamp
CN105931446A (en) * 2016-06-28 2016-09-07 常州机电职业技术学院 Test system for gas data acquisition unit and working method thereof
CN108337779A (en) * 2018-03-16 2018-07-27 湖南沛科交通工程技术股份有限公司 A kind of wireless single lamp control system based on LoRa technologies
CN210604818U (en) * 2019-07-12 2020-05-22 湖南沛科交通工程技术股份有限公司 Test system for LoRa wireless electromechanical device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112037493A (en) * 2020-08-01 2020-12-04 山东恒远智能科技有限公司 DI switching value acquisition system and method based on wireless Lora
CN112133072A (en) * 2020-09-23 2020-12-25 中国兵器工业集团第二一四研究所苏州研发中心 Test system and test method for LoRa wireless data acquisition device
CN112133072B (en) * 2020-09-23 2021-07-06 中国兵器工业集团第二一四研究所苏州研发中心 Test system and test method for LoRa wireless data acquisition device
CN112839417A (en) * 2021-01-28 2021-05-25 中津沛科建设股份有限公司 Urban street lamp lighting control system

Similar Documents

Publication Publication Date Title
CN110389266A (en) A kind of LoRa is wireless electromechanical equipment test macro and its test method
CN102184750B (en) A kind of nuclear plant digital I&amp;C system test device
CN107861874B (en) Full-automatic automobile electronic equipment testing system
CN106405313A (en) Pseudo soldering test device and method for chip
CN110501594A (en) Railway signal debugs intelligent simulation board and its control method
CN110446213A (en) A kind of LoRa wireless single-light controller test macro and its test method
CN105510737A (en) Universal automatic testing system for carrier rocket
CN103558562B (en) A kind of power module proving installation and method
CN106018966B (en) Automatic testing device for guided missile initiating explosive devices
CN106571841A (en) Radio frequency matching system and method of realizing radio frequency matching automation
CN205608089U (en) Automatic testing arrangement of guided missile priming sytem
CN210604818U (en) Test system for LoRa wireless electromechanical device
CN205015434U (en) A test jig for burning record ware switching card
CN103760457A (en) Cable checking circuit structure and common-line-free cable checking method
CN210465652U (en) Portable multi-interface communication cable testing tool
CN218585226U (en) Shelter power station switch board detection device
CN209372983U (en) Microcontroller pin automatically testing parameters platform
CN209964309U (en) Test system for LoRa wireless single lamp controller
CN105403847A (en) Voltage monitoring system based on FPGA technology and verification method
CN201740835U (en) Wire testing device
CN104237838A (en) Metering working voltage drop automatic test platform and voltage drop modes
CN110389265A (en) A kind of LoRa Wireless data acquisition unit test macro and its test method
CN107478980A (en) A kind of POS mainboard automated testing method and circuit
CN203554773U (en) Combined light modulating circuit
CN106597344A (en) Short circuit current calibration circuit of spark test device

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