Background
With the rapid development of communication technology, the status of wireless communication service in telecom operation is more and more important, and the components of wireless communication system are also more and more purchased and equipped by telecom operation enterprises; in order to ensure the normal operation of the wireless communication system equipment, the environment of the machine room and the cabinet where the equipment is located needs to be monitored, and the monitored indexes mainly comprise: the system comprises a temperature sensor, a humidity sensor, a smoke sensor, a lightning sensor, a water logging sensor, an infrared sensor, an entrance guard sensor, a fan sensor and the like, so that normal operation of equipment in a machine room and a machine cabinet is ensured, and the equipment for completing monitoring is mainly an environment monitoring single board.
In the prior art, a test device and a method generally adopted for testing an environment monitoring single board are as follows: various real sensors are adopted to build various simulation devices to simulate various alarm signals, and whether the environment monitoring single board can normally alarm or not is observed. The technology has the advantages of simplicity and feasibility, can enable the environment monitoring single board to truly judge the condition of the current environment, and is feasible when applied to the single board debugging stage; however, if this technique is applied to the function test of the environment monitoring single boards produced in large quantities, some problems will be caused.
Firstly, the testing process is too complex, and the condition of various environment variable alarms needs to be simulated; for example, the environment monitoring single board needs to manually change the temperature of the current environment to test the signal of the temperature sensor; when the environment monitoring single board tests the smoke sensor signal, the detection of the smoke sensor signal link needs to be performed by simulating two conditions of smoke generation and smoke absence.
Meanwhile, for mass production of environment monitoring veneers, the test purpose is to filter the veneers with faults, for example: faults such as short circuit, open circuit, mispasting chips, chip damage and the like are welded on the single board; most of the faults can cause basic indexes such as environment monitoring signals of the single board to be far from normal values, and complex practical sensors are used for detecting faults of the single board, which is very wasteful.
Therefore, in the existing detection technology for the environment monitoring single plate, a real sensor is generally required to be directly adopted to build a signal simulation device of the universal environment monitoring sensor in the detection process, so that the automatic test is not facilitated, too much manual participation and too high cost are required, and the large-scale test of the environment monitoring single plate is not facilitated.
Detailed Description
In order to make the objects, technical features and effects of the present invention more apparent, preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
The invention discloses a simulation device for monitoring sensor signals in a general environment, which at least comprises the following test units as shown in figure 1: themain control unit 103, thelogic unit 104 and theinterface adapting unit 105, and may further include apower supply unit 106; the test units together form asimulation device 101 for the signal of the universal environment monitoring sensor, and provide a test for the single board to be tested, namely the environment monitoringsingle board 102, which is produced in large scale.
Fig. 1 also illustrates the organization structure between the test units, and the signal flow direction between theenvironment monitoring board 102 and the test units in thesimulation apparatus 101. Themain control unit 103 establishes connection with thelogic unit 104, sends a control signal to thelogic unit 104 through the connection, and interacts test commands and test result information with thelogic unit 104, theinterface adaptation unit 105 and thepower supply unit 106 through communication interfaces and an upper computer; thelogic unit 104 establishes a connection with theinterface adaptation unit 105, and sends a sensor signal to theinterface adaptation unit 105 through the connection, and theinterface adaptation unit 105 establishes a connection with the tested environment monitoringsingle board 102 as an external interface, so as to implement the connection between the environment monitoringsingle board 102 and thesimulation apparatus 101, and provide the single board with a level conversion function of the sensor signal, so that the level of the sensor signal generated by simulation is completely the same as that of the real sensor signal; the three units form asimulation device 101 for monitoring sensor signals of the general environment.
Meanwhile, apower supply unit 106 may also be present in thesimulation apparatus 101 for supplying power to one or more of themain control unit 103, thelogic unit 104 and theinterface adaptation unit 105, which is shown in fig. 1 as a preferred embodiment for supplying power to three test units at the same time.
To further disclose the working principle of the present technology, the following selects a preferred embodiment of the present invention for description, and still taking the working principle diagram of thesimulation apparatus 101 shown in fig. 1 as an example, the specific functions of each test unit in thesimulation apparatus 101 include:
themain control unit 103 mainly comprises a flow control module and a communication module, and is configured to send a control signal, where the control signal controls thelogic unit 104 to generate and send a sensor signal required by theenvironment monitoring board 102; the flow control module is used for running a test flow arranged in themain control unit 103 and generating the control signal, and the test flow can be realized by a program and can be customized and modified at any time according to the test requirement; themain control unit 103 may be implemented based on a general PC, in which case the communication module may adopt a common communication interface form such as an RS232(RS232, Recommended Standard 232) interface, a Service provider interface (SPI, Service provider interface) or a two-wire serial bus (I2C, Inter-Integrated Circuit), and if themain control unit 103 is based on a Compact Peripheral Component Interface (CPCI) platform, the communication module may adopt a CPCI bus to connect with thelogic unit 104. Meanwhile, the control signal may further control other related test units (not shown in the figure) to complete the configuration of the required test environment.
Themain control unit 103 is not only used for realizing the above basic functions, but also can provide a required user interaction interface and other extended functions according to the actual situation of a test site; for example, a test result report is provided for a user, data is remotely entered into a database, and the like, so that test data can be analyzed when needed, a test failure analysis platform of the environment monitoringsingle board 102 is formed, and referential historical data information is provided for production, processing and testing of the single board.
Thelogic unit 104 generates and transmits a sensor signal required by theenvironment monitoring board 102 according to the control signal of themain control unit 103. The sensor signal should at least comprise: signals such as level, current, frequency, duty ratio and the like which can be set within a certain range; these signals may be level signals or current signals, and in any case, they are required to be adapted to the test requirements of theenvironment monitoring board 102.
As shown in fig. 3, it is a schematic diagram of the internal structure of thelogic unit 104, and at least includes: a single bus (1-wire)simulation unit 301, a frequencysignal simulation unit 302, a fan alarmsignal simulation unit 303, and an IO signallevel simulation unit 304; wherein,
1-wire busanalog unit 301 for generating an analog temperature sensor signal;
a frequencysignal simulation unit 302 for generating simulated temperature and humidity sensor signals;
a fan alarmsignal simulation unit 303 for generating a simulated fan alarm signal; the fan warning signal needs to be converted into a 24V or-48V level signal through theinterface adapting unit 105, which is specifically determined by whether theenvironment monitoring board 102 adopts a 24V or-48V level signal; the smoke sensor signal also needs to be converted into a large and small current signal by theinterface adaptation unit 105.
And the IO signallevel simulation unit 304 is used for generating infrared, entrance guard, flooding and smoke sensor signals.
Theinterface adapting unit 105 is configured to provide a level conversion function of an interface signal for theenvironment monitoring board 102, and adopt a suitable signal adapting manner according to the type of the sensor and the type of the signal level of theenvironment monitoring board 102, for example, the interface adapting unit may convert into a level signal of 12V, 24V, and-48V or a current signal of several mA or several hundred uA; the connection between the environment monitoringsingle board 102 and thesimulation device 101 is realized, so that the sensor signal generated by simulation is completely the same as the signal generated by a real sensor. The interface adaptingunit 105 may be implemented in a test fixture, or may select another structure according to the interface type of theenvironment monitoring board 102.
Theenvironment monitoring board 102 as the tested board realizes communication connection with theinterface adapting unit 105 and communication with other units in the communication system through various interfaces provided by the environment monitoring board; the various interfaces may be various forms of common receptacles. As shown in fig. 2, different interfaces carried by theenvironment monitoring board 102 are described, including: apower interface 201, asensor signal interface 202, and acommunication interface 203.
Wherein,
thepower interface 201 is used for connecting with a power supply and providing electric power for theenvironment monitoring board 102;
thesensor signal interface 202 is used for being connected with theinterface adapting unit 105 in theanalog device 101 and receiving various sensor signals;
thecommunication interface 203 is used for establishing connection with themain control unit 103 of theenvironment monitoring board 102 and the like, and implementing communication.
Corresponding to thesimulation apparatus 101, the present invention further provides a simulation method of the signal of the general environmental monitoring sensor, and the following description will take the simulation process of the signal of the smoke sensor as a preferred embodiment. Wherein, two resistances arranged on theanalog device 101 are respectively 3K ohm and 400K ohm:
step 401, themain control unit 103 sends a control signal to thelogic unit 104 through a built-in communication module.
And step 402, enabling thelogic unit 104 to enable the built-in IO signallevel simulation unit 304 to generate 12V smoke sensor working levels and-12V smoke sensor working levels respectively according to the control signal.
In step 403, since the working currents of the smoke sensor during normal operation of the signal and the smoke alarm are about 20 microamperes and about 10 milliamperes, theinterface adapter unit 105 is connected to the two resistors, respectively, and outputs the signal of the smoke sensor.
Step 404, after the smoke sensor signal passes through theinterface adapting unit 105, the smoke sensor signal further reaches theenvironment monitoring board 102 through thesensor signal interface 202 built in theenvironment monitoring board 102.
Step 405, the signal is detected in theenvironment monitoring board 102 to generate test data, the test data is returned to themain control unit 103 through thecommunication interface 203, and the test data is analyzed by themain control unit 103; thereby testing whether the environment monitoringsingle board 102 smoke sensor signal link is normal.
The environment monitoring sensor signal simulation device provided by the invention has simple composition, can completely replace a real environment monitoring sensor to simulate sensor signals, can conveniently and quickly test indexes such as level, current, frequency, duty ratio and the like of the tested environment monitoring single board, and can perform fault location on a signal link of the environment monitoring single board; the single board testing device is suitable for testing environment monitoring single boards produced in large scale, and filtering most fault single boards to reduce subsequent detection procedures, thereby greatly reducing the testing cost on the whole; meanwhile, each main test unit in the simulation device can be realized by referring to a well-designed circuit in the test field, the technical difficulty is low, and the cost of the simulation device is favorably reduced.
It should be noted that the above preferred embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting, and all the values of the parameters can be adjusted according to the actual situation and are within the scope of the claims. It will be understood by those skilled in the art that various modifications and equivalent arrangements may be made without departing from the spirit and scope of the present invention and shall be covered by the appended claims.