A street lamp terminal controller automatic production test tool device and method

By using automated production testing fixtures and methods, the problems of cumbersome wiring and low efficiency of manual testing in the production testing of street light terminal controllers have been solved. This has enabled efficient and accurate storage of test results and batch testing, thereby improving equipment capacity and product quality.

CN116540671BActive Publication Date: 2026-01-20XIAMEN IOTCOMM TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310523568.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-10
Publication Date
2026-01-20
Estimated Expiration
2043-05-10

AI Technical Summary

Technical Problem

Existing street light terminal controllers suffer from problems such as cumbersome wiring, low efficiency of manual testing, and troublesome result statistics during production and testing, which affect equipment capacity and product quality.

Method used

The automated production testing fixtures and methods are adopted. The testing software is connected to the network interface of the testing equipment, control equipment and data acquisition equipment to realize automated testing, simplify the wiring process, and automatically judge and save the test results through sending instructions and data query operations.

Benefits of technology

It improves testing efficiency and accuracy, reduces manual operations, enables batch testing and automatic result saving, and reduces labor costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116540671B_ABST
    Figure CN116540671B_ABST
Patent Text Reader

Abstract

This invention proposes an automated production testing fixture and method for street light terminal controllers, comprising: mounting a testing device, external devices, a control device, and a data acquisition device within the fixture; the testing device providing a controllable network interface for controlling the external devices, and the data acquisition device for acquiring data parameters from the external devices; testing software electrically connected to the testing device via the network interface; the testing software sending a first command to the control device via a serial port to execute a power-on / off operation, and a second command to the data acquisition device via a serial port to execute an information query operation; the testing software performing a polling test on the functionality of the testing device by sending the first and second commands, automatically determining the test results based on the returned data, and recording and saving the final test results. This invention automatically performs functional tests on each test item, enabling batch testing of devices and significantly improving testing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of urban intelligent lighting, in particular to a street lamp terminal controller automatic production test tool and method. BACKGROUND

[0002] With the rapid growth of urban population, and the increase of human activity range and frequency, the number of urban lighting facilities is rapidly increasing, and has become one of the most dense and numerous municipal facilities in the city. Lighting facilities are increasingly intelligent and managed, so the functions of the devices equipped inside are increasingly rich, and the types of devices are increasingly rich. Before these many devices are produced and leave the factory, they need to be tested in detail to ensure complete and normal functions, and the detection efficiency and accuracy of the products will greatly affect the production capacity and product quality of the devices, so the automatic test system has become an indispensable function in the tool test. However, the current production test has the following problems:

[0003] (1) Complicated wiring: the device generally needs to be connected to the system line, including power line, GPS antenna, network cable, serial port line, etc.

[0004] (2) Low efficiency of manual testing: manual testing mode requires a lot of manual operation, such as issuing instructions, controlling devices, waiting for manual checking of data or device status, etc. The process is too cumbersome, and manual detection is prone to detection errors;

[0005] (3) Result statistics are troublesome: after testing, the test results and various test information need to be saved or updated, and it is very cumbersome and inefficient for manual recording and saving of this information.

[0006] In view of the above problems, the present application provides a street lamp terminal controller automatic production test tool device and method, which can greatly improve the test efficiency. SUMMARY

[0007] In order to solve the problems of complicated wiring, low efficiency of manual testing and troublesome result statistics in the function test of existing lighting devices, the present application provides a street lamp terminal controller automatic production test tool device and method to solve the above technical defect problems.

[0008] According to one aspect of the present application, a street lamp terminal controller automatic production test method is provided, comprising the following steps:

[0009] S1, the test device, the external device, the control device and the acquisition device are all loaded into the tool device, wherein the test device is provided with a controllable access network interface, the test device is used to control the external device, and the acquisition device is used to acquire the data parameters of the external device;

[0010] S2, the test software is electrically connected with the test equipment through a network interface, the test software sends a first instruction to the control equipment through a serial port to perform a power-on / off operation, and the test software sends a second instruction to the acquisition equipment through the serial port to perform an information query operation;

[0011] S3, the test software tests the functions of the test equipment by sending the first instruction and the second instruction, automatically judges the test result according to the returned data information, and records and saves the final test result.

[0012] Through the above technical solution, the test equipment can be directly loaded into the tooling equipment, and the complex manual wiring is simplified. The automatic function test and batch test can reduce the participation of personnel in the test process, simplify the manual operation, make the test result more efficient and accurate, and automatically save and count the result, further improving the test efficiency.

[0013] In a specific embodiment, in step S3, the test software tests the functions of the test equipment by sending the first instruction and the second instruction, including the following sub-steps:

[0014] S311, initializing the tooling equipment after the test equipment is online;

[0015] S312, obtaining a test item to be tested of the test equipment, and executing a test process of the test item;

[0016] S313, judging whether the time of executing the test process in step S312 exceeds a preset time length, if not, executing step S314, and if yes, executing step S315;

[0017] S314, updating the test result of the current test item, and jumping to step S312;

[0018] S315, judging whether the number of timeout tests of the current test item is less than a preset threshold, if yes, retesting the current test item, and if not, ending the test operation of the current test item;

[0019] S316, repeatedly executing steps S312 to S315 until all test items of the test equipment are tested.

[0020] Through the above technical solution, the test software can automatically test multiple test items.

[0021] In a specific embodiment, in step S3, the test software tests the functions of the test equipment by sending the first instruction and the second instruction, including the following sub-steps:

[0022] S321, obtaining a list of test equipment, and starting the test software to test;

[0023] S322, obtaining a test device to be detected, and testing all test items of the test device;

[0024] S323, updating the test result and statistical information of the current test device after the test of the current test device is completed;

[0025] S324, repeating steps S322 to S323 until all test devices have completed the test.

[0026] Through the above technical solution, batch testing of test devices can be realized, and the efficiency of automatic testing is greatly improved.

[0027] In specific embodiments, in step S3, the test result is automatically judged according to the returned data information, and the final test result is recorded and saved, including the following sub-steps:

[0028] S331, pre-configuring detection range data, and judging whether the returned data information is within the range of the detection range data;

[0029] S332, in response to determining that the returned data information is within the range of the detection range data, the test result is successful, and the test result is recorded and saved;

[0030] S333, in response to determining that the returned data information is not within the range of the detection range data, the test result is failed, the test result is recorded and saved, and the test result is marked as red;

[0031] S334, in response to determining that the test device is not responsive due to timeout, the obtained test result is also failed, the test result is recorded and saved, and the test result is marked as red.

[0032] Through the above technical solution, the detection range data can be customized and configured by the user, which is convenient for adjusting the data. The automatic recording and saving of the test result and the marking can facilitate the user to verify whether the detection result is successful or not, and quickly query the test items that fail to detect.

[0033] In specific embodiments, each test software is configured with different serial ports to connect different tooling devices, and the test software communicates with the test device through the serial port control communication module.

[0034] Through the above technical solution, multiple tooling devices can be tested on one computer at the same time.

[0035] In specific embodiments, the test device includes a concentrator, a monitoring box and a street lamp terminal controller, and the external device includes a lamp and a sensor.

[0036] In specific embodiments, the returned data information in step S3 includes:

[0037] The test software sends first data returned after a power-on / off operation performed by a first instruction sent to the control device through a serial port, second data returned after an information query operation performed by a second instruction sent to the acquisition device through the serial port, and third data returned by a third instruction directly sent to the test device.

[0038] According to the technical solution, the test software can obtain returned data information in different ways according to test requirements, and then verify the returned data information to determine whether it is normal.

[0039] In a second aspect, the application provides a street lamp terminal controller automatic production test tool device, which comprises:

[0040] An external device;

[0041] A test device configured with a controllable access network interface and used for controlling the external device;

[0042] An acquisition device used for acquiring data parameters of the external device;

[0043] A control device used for performing a power-on / off operation;

[0044] A tool body used for accommodating the external device, the test device, the acquisition device and the control device; and further comprising:

[0045] Test software used for electrically connecting with the test device through the network interface, sending a first instruction to the control device through a serial port to perform a power-on / off operation, and sending a second instruction to the acquisition device through the serial port to perform an information query operation; performing a function test on the test device by sending the first instruction and the second instruction, automatically determining a test result according to returned data information, and recording and saving a final test result.

[0046] In a third aspect, the application provides a terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above-mentioned street lamp terminal controller automatic production test methods when executing the computer program.

[0047] In a fourth aspect, the application provides a computer readable storage medium, which stores a computer program, wherein the computer program is executable on a processor to implement the steps of any of the above-mentioned street lamp terminal controller automatic production test methods.

[0048] Compared with the prior art, the application has the following advantages:

[0049] (1) Directly into the test equipment, external equipment, control equipment and acquisition equipment into tooling equipment, simplify the complex manual wiring.

[0050] (2) Can automatically perform each test item function test, including the following instructions, control equipment, data acquisition, data verification, etc., and the detection range data can be configured, simplify the manual operation, more efficient and accurate.

[0051] (3) Automatic test results are saved and statistics, improve test efficiency.

[0052] (4) Batch testing, reduce personnel involved in the testing process, reduce labor costs. BRIEF DESCRIPTION OF DRAWINGS

[0053] Other features, objects and advantages of the present application will become more apparent from the following detailed description of non-limiting embodiments, made with reference to the attached drawings:

[0054] Figure 1 is a flow chart of the street lamp terminal controller automatic production test method according to the present application;

[0055] Figure 2 is a schematic diagram of the system structure of the street lamp terminal controller automatic production test according to the present application;

[0056] Figure 3 is a schematic diagram of the communication connection of the street lamp terminal controller automatic production test method according to the present application;

[0057] Figure 4 is a schematic diagram of the interaction between the test software, control equipment, acquisition equipment and test equipment according to the present application;

[0058] Figure 5 is a schematic diagram of the test flow of all test items in a single test equipment according to the present application;

[0059] Figure 6 is a schematic diagram of the test list of a test equipment according to the present application;

[0060] Figure 7 is a schematic diagram of the test flow of batch testing of multiple test equipment according to the present application;

[0061] Figure 8 is a schematic diagram of the test list of batch testing of multiple test equipment according to the present application;

[0062] Figure 9 is a schematic diagram of the test results automatically saved to the excel table according to the present application;

[0063] Figure 10is a schematic diagram of judging test results according to meter data of the present application;

[0064] Figure 11 is a schematic diagram of a test list of concentrators according to the present application;

[0065] Figure 12 is a schematic diagram of a test list of monitoring boxes according to the present application;

[0066] Figure 13 is a schematic diagram of a test list of street lamp terminal controllers according to the present application;

[0067] Figure 14 is a structural schematic diagram of a computer system of an electronic device suitable for implementing embodiments of the present application. DETAILED DESCRIPTION

[0068] The present application will be further described below in conjunction with the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the related application, and not to limit the application. In addition, it should be noted that only the parts related to the application are shown in the drawings for ease of description.

[0069] It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.

[0070] To greatly improve the test efficiency of street lamp terminal controllers, the present application proposes a street lamp terminal controller automatic production test tool device and method, which adopts the mode of "single machine deployment of multiple application software" and "single package multi-dimensional diagnosis". The following will explain and describe it.

[0071] Single machine deployment of multiple application software: In order to test multiple tool devices on one computer (PC) at the same time, multiple software corresponding to the computer (PC) is run, so different serial ports are configured in each test software, and multiple tool devices can be tested in parallel.

[0072] Single package multi-dimensional diagnosis: Because the communication technology currently adopted by the terminal controller is mostly a low-rate technical solution, the communication efficiency is low and cannot reach the millisecond level. If single instruction is used for single function test, there is a low efficiency problem, and there is a certain packet loss rate. Each time the packet loss is retransmitted, it will also waste a certain amount of time. Therefore, a single package multi-dimensional diagnosis scheme is proposed. Single package multi-dimensional means that different functions of the terminal controller are issued to the device through specific protocol instructions, the device decodes and automatically detects multiple functions at a time, and returns the data that needs to be verified together, reduces the delivery times, and further improves the efficiency.

[0073] Figure 1The flow chart of the street lamp terminal controller automatic production test method of the present application is shown, Figure 2 The system structure schematic diagram of the street lamp terminal controller automatic production test is shown, in combination with reference Figure 1 and Figure 2 The method comprises the following steps:

[0074] S1, the test equipment, the external equipment, the control equipment and the acquisition equipment are all loaded into the tooling equipment, wherein the test equipment is externally provided with a controllable access network interface, the test equipment is used for controlling the external equipment, and the acquisition equipment is used for acquiring the data parameters of the external equipment.

[0075] In the embodiment, the test equipment comprises a concentrator, a monitoring box and a street lamp terminal controller, and the external equipment comprises lamps and sensors. The external equipment is connected with the test equipment and is controlled by the test equipment. The tooling equipment is mainly set to simplify the equipment wiring process, and automatic wiring of the power supply, the external equipment (bulb, sensor, etc.), the control equipment, the acquisition equipment and the like can be realized after the multiple equipment is directly pressed into the tooling equipment. Each test software is configured with different serial ports to connect different tooling equipment, so that multiple tooling equipment can be tested on one computer. Preferably, the test software directly communicates with the tooling equipment through Ethernet (for example: tcp, http, mq service, etc.).

[0076] Figure 3 The communication connection schematic diagram of the street lamp terminal controller automatic production test method of the present application is shown, as Figure 3 shown, part of the test equipment is communicated by using a communication module, and the communication module also needs to be connected on the test software platform (the pc end needs to add a corresponding communication model), the communication module is connected with the machine where the test software is located through a usb serial port, and the test software can control the communication module (for example: plc, double mode, wisun, etc.) to communicate with the test equipment through the serial port.

[0077] S2, the test software is electrically connected with the test equipment through a network interface, the test software sends a first instruction to the control equipment through a serial port to perform power-on / off operation, and the test software sends a second instruction to the acquisition equipment through a serial port to perform information query operation.

[0078] In the embodiment, the control equipment is connected with the machine where the test software is located through a usb serial port, and the test software can send an instruction to the control equipment through the serial port to realize the above power-on, power-off and the like. The acquisition equipment is connected with the machine where the test software is located through a usb serial port, and the test software can send an instruction to the acquisition equipment through the serial port to query information such as analog quantity (for example: current, voltage, etc.) and state quantity (for example: switch state).

[0079] S3, the test software tests the functions of the test device by sending the first instruction and the second instruction, automatically judges the test result according to the returned data information, and records and saves the final test result.

[0080] In step S3, the returned data information includes: the first data returned by the test software after sending the first instruction to the control device through the serial port to execute the power-on / off operation, the second data returned by the test software after sending the second instruction to the acquisition device through the serial port to execute the information query operation, and the third data returned by the test software after directly sending the third instruction to the test device.

[0081] Figure 4 The interaction schematic diagram among the test software, the control device, the acquisition device and the test device of the application is shown as follows. Figure 4 As shown in the figure, the test software sends a light-on instruction to the test device, and the test device returns data information, which is used to test whether the light-on is normal; the test software sends an instruction to the acquisition device to acquire the analog quantity of the acquisition device, and the acquisition device returns data information, which is verified by the test device, and the function is mainly to test whether the power-off is successful. The current on the loop after the light is turned off will become 0, at this time the test software can acquire the analog quantity (i.e. the current value of the acquisition circuit) through the acquisition device, and then judge whether it is correct according to the configured range; the test software sends a control power-off instruction to the control device, and the control device returns data information, which is verified by the test software. The function is mainly to test whether the power-off alarm function of the test device is normal. After the test software disconnects the power supply of the test device through the controller, the test device continues to supply power through the battery (the function of the test device itself), and the test device itself detects that the power supply has been disconnected. At this time, the test device will report the power-off alarm information to the test software. If the power-off alarm information is received, it is considered that the power-off alarm function is correct, otherwise, if it is not received within a certain time, it is considered that there is a problem with the function.

[0082] The street lamp terminal controller automatic production test method provided by the application can test all test items in a single test device, and can also test multiple test devices. For multiple test devices, the test software tests all test items in each test device.

[0083] Figure 5 The test flow schematic diagram of all test items in a single test device of the application is shown as follows. Figure 5 As shown in the figure, the test software tests the functions of the test device by sending the first instruction and the second instruction, including the following sub-steps:

[0084] S311, after the test device is online, initializing the tooling device;

[0085] S312, obtaining a test item to be detected of the test device, and executing a test procedure of the test item;

[0086] S313, judging whether a time of executing the test procedure in step S312 exceeds a preset time length, if not, executing step S314, if yes, executing step S315;

[0087] S314, updating a test result of the current test item and jumping to step S312;

[0088] S315, judging whether a timeout test number of the current test item is less than a preset threshold, if yes, retesting the current test item, if not, ending the test operation of the current test item;

[0089] S316, repeatedly executing steps S312 to S315 until all test items of the test device are tested.

[0090] The test software supports testing multiple test items automatically, and each functional test is automatically followed by testing the next function. Each test item contains a timeout time and a timeout number, and when the timeout time is reached, the item is retested, and when the retest number reaches a specified number, the next item is directly failed and continues to be tested.

[0091] The following will be described by taking a test device UIDd2908 as an example, Figure 6 The test list of a test device (UIDd2908) of the present application is shown in the schematic diagram as shown in the figure, Figure 6 The test software formulates a test item list according to the functions to be tested by the test device, and starts to execute the first item in the test item list after starting, and the test procedure of each item is different and is realized by code. The test device UIDd2908 tests in the following manner: starting the first item, the test software sends a configuration information instruction, and the tooling device returns success, and the first item is passed. Starting the second item, the test software sends a specified query meter, the tooling device returns data, the test software verifies the data, and obtains a verification result indicating that the second item is passed or failed. Starting the third item, and so on, after each test item is ended, the test software automatically obtains the next test item to be tested from the list and executes the test procedure of the test item, and if all test items are tested, the test result is recorded.

[0092] Figure 7 The test procedure schematic diagram of batch testing of multiple test devices of the present application is shown in the figure, Figure 7 As shown in the figure, the test software tests the functions of the test device by sending a first instruction and a second instruction, including the following sub-steps:

[0093] S321, obtaining a list of test devices, and starting the test software to test;

[0094] S322, obtaining a test device to be detected, testing all test items of the test device;

[0095] S323, updating the test results and statistical information of the current test device after the test of the current test device is completed;

[0096] S324, repeating steps S322 to S323 until all test devices have completed the test.

[0097] Figure 8 The test list schematic diagram of batch testing of multiple test devices of the present application is shown, as shown in Figure 8 The user can perform batch testing by independently selecting / inputting the test device UID to be tested.

[0098] Further, the test software will also automatically judge the test results according to the returned data information, and record and save the final test results Figure 9 The schematic diagram of the present application for automatically saving the test results to the excel table is shown, which specifically includes the following sub-steps:

[0099] S331, pre-configuring detection range data, and judging whether the returned data information is within the range of the detection range data;

[0100] S332, in response to determining that the returned data information is within the range of the detection range data, then

[0101] The test result is successful, and the test result is recorded and saved;

[0102] S333, in response to determining that the returned data information is not within the range of the detection range data, then the test result is failed, the test result is recorded and saved and marked as red;

[0103] S334, in response to determining that the test device is timed out and does not respond, then the obtained test result is also failed, the test result is recorded and saved and marked as red.

[0104] The following will be described by taking the test result judgment of the ammeter data as an example, Figure 10 The schematic diagram of the present application for judging the test result of the ammeter data is shown, as shown in Figure 10As shown, taking the test item of data query of the electric meter data as an example, the data area of the electric meter data is the data information returned by the query, and the detection configuration area is the configured detection range data. The judgment of the test result of the electric meter data is specifically realized through the following steps: the test software sends a data query, the tool equipment returns data, the test software detects each data value, and compares the range according to the detection configuration, if it is not within the range, it indicates that the test fails, and the result is marked as red, if the device is not responded due to timeout, it also indicates failure. For example, the returned voltage is 237.884, which is within the configured detection range data (the configured voltage range is 220-240), so the voltage test judgment result is successful. The test result and test information (such as the tester, test time) are automatically saved to an excel table at the end of the test.

[0105] Different test equipment has different functions, and the corresponding test functions of each test equipment need to be customized, but the automatic process and principle are similar. The test software functions corresponding to each test equipment are similar. The display information of each test item is different, and the detection range data of each test item can be configured. Figure 11 A test list schematic diagram of the concentrator of the present application is shown as Figure 9 As shown, the test items of the concentrator include: 485-1 electric meter setting, information query, 485-2 query, GPS query, DO opening, DI state query, electric meter data query, RTC time setting, 485-1 electric meter query, 220V power failure alarm, 220V power recovery query, SD card state query, parameter issuing and resetting, factory parameter setting, and resetting. Figure 12 A test list schematic diagram of the monitoring box of the present application is shown as Figure 12 As shown, the test items of the monitoring box include: query AI closing, opening AI switch, information query, RTC time setting, electric meter data query, DO opening, DO closing, terminal light turning on, terminal light turning off, terminal PLC channel, terminal wireless channel, query AI opening, closing AI switch, 220V power failure alarm, 220V power recovery query, SD card state query, voltage and current query, parameter issuing, resetting, factory parameter setting, and GPS query. Figure 13 A test list schematic diagram of the street lamp terminal controller of the present application is shown as Figure 13 As shown, the test items of the street lamp terminal controller include: configuration, data query, leakage current query, dimming 70%, RTC time setting, version query, tilt query, dimming AI detection, light turning off, GPS data query, RTC time setting, wireless test, light turning off state query.

[0106] As an implementation of the above method, the present application provides an embodiment of a street lamp terminal controller automatic production test tool device, which can be applied to various electronic devices. The device includes the following modules:

[0107] external device;

[0108] a test device configured with a controllable access network interface and a control device for controlling the external device;

[0109] a collection device for collecting data parameters of the external device;

[0110] a control device for performing power-on / off operation;

[0111] a tool body for accommodating the external device, the test device, the collection device and the control device; further comprising:

[0112] a test software for electrically connecting with the test device through the network interface, sending a first instruction to the control device through a serial port to perform power-on / off operation, and sending a second instruction to the collection device through a serial port to perform information query operation; the functions of the test device are tested by sending the first instruction and the second instruction, and the test result is automatically judged according to the returned data information, and the final test result is recorded and saved.

[0113] The street lamp terminal controller automatic production test tool device and method provided by the application directly loads the test device, the external device, the control device and the collection device into the tool device, simplifies the complex manual wiring, can automatically perform function test of each test item, including issuing instructions, controlling devices, data collection, data verification and the like, and each detection parameter can be configured, manual operation is simplified, and the method is more efficient and accurate. The test results are automatically saved and counted, the test efficiency is improved, batch testing is performed, personnel participation in the test process is reduced, and labor cost is reduced. The method can be widely applied to test various intelligent devices in the field of road lighting, and various devices need to formulate their own test items according to their respective functions.

[0114] Reference is made below to Figure 14 which shows a structural schematic diagram of a computer system 500 of an electronic device suitable for implementing embodiments of the application. Figure 14 The electronic device shown is merely an example and should not bring any limitation to the functions and use range of embodiments of the application.

[0115] As Figure 14As shown, the computer system 500 includes a central processing unit (CPU) 501 which can perform various appropriate actions and processes according to programs stored in a read only memory (ROM) 502 or loaded into a random access memory (RAM) 503 from a storage section 508. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0116] Connected to the I / O interface 505 are an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a display such as a liquid crystal display (LCD), and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as necessary. A removable recording medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, and the like is attached to the drive 510 as necessary, so that a computer program read therefrom is installed into the storage section 508 as necessary.

[0117] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer readable medium, the computer program comprising program code for executing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication section 509, and / or installed from the removable recording medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-described functions defined in the methods of the present application are performed.

[0118] Note that the computer readable storage medium described in the present application can be a computer readable signal medium or a computer readable storage medium or any combination thereof. The computer readable storage medium may, for example, be, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any suitable combination thereof. More specific examples of the computer readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present application, the computer readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus or device. In the present application, the computer readable signal medium can include a data signal that propagates in a baseband or as part of a carrier wave, in which the computer readable program code is carried. Such a propagated data signal can take any of a variety of forms, including, but not limited to, an electromagnetic signal, an optical signal, or any suitable combination thereof. The computer readable signal medium can also be any computer readable storage medium that can send, propagate or transfer the program for use by or in connection with the instruction execution system, apparatus or device. The program code contained on the computer readable storage medium can be transmitted or propagated using any suitable medium, including, but not limited to, wireless, wireline, optical fiber, RF, etc., or any suitable combination thereof.

[0119] Computer program code for carrying out operations of the present application can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).

[0120] The computer program product of the present application can be a computer program embodied on a computer readable medium. The computer program product can be stored in the memory 120 and executed by the processor 110 in the electronic device 100, as described above. The computer program product can include a plurality of programs configured to implement a plurality of methods according to various embodiments of the present application. The computer program product can include a plurality of programs configured to implement a plurality of methods according to various embodiments of the present application.

[0121] The units described in the embodiments of the present application can be implemented by software, or by hardware. The units described can be located in a processor, for example, a processor can be described as including a first determining unit, a second determining unit, a generating unit, a first extracting unit, and a first storing unit. In some cases, the names of the units do not limit the units themselves. For example, the first determining unit can also be described as a unit that determines whether there is new event information in a preset event information list.

[0122] As another aspect, the present application provides a computer readable storage medium, which can be included in the electronic device described in the embodiments above, or can exist separately and not be assembled into the electronic device. The computer readable storage medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: determine whether there is new event information in a preset event information list, wherein each event information in the event information list includes event description information; in response to a determination that there is, determine the new event information as target event information; identify the event description information of the target event information, and generate a label of the target event information; extract a set of element information from the target event information; and store the target event information, the set of element information, and the label in a preset event information database in association.

[0123] The above description is only the preferred embodiment of the present application and the explanation of the technical principles. It should be understood by those skilled in the art that the scope of the protection of the present application is not limited to the technical solutions formed by the specific combinations of the above technical features. It should also cover other technical solutions formed by the combinations of the above technical features or their equivalent features without departing from the concept of the present application. For example, the technical solutions formed by the mutual replacement of the above features and the technical features with similar functions disclosed (but not limited to) in the present application.

Claims

1. An automated production testing method for street light terminal controllers, characterized in that, The method comprises the following steps: S1, the test equipment, external equipment, control equipment and acquisition equipment are loaded into the tooling equipment, wherein the test equipment is externally provided with a controllable access network interface, the test equipment is used for controlling the external equipment, the acquisition equipment is used for collecting data parameters of the external equipment, the test equipment comprises a concentrator, a monitoring box and a street lamp terminal controller, and the external equipment comprises lamps and sensors; S2, the test software is electrically connected with the test equipment through the network interface, the test software sends a first instruction to the control equipment through a serial port to execute power-on / off operation, and the test software sends a second instruction to the acquisition equipment through the serial port to execute information query operation; S3, the test software tests the functions of the test equipment by sending the first instruction and the second instruction, automatically judges the test results according to the returned data information, and records and saves the final test results; The data information returned in step S3 comprises: The first data returned after the test software sends the first instruction to the control equipment through the serial port to execute power-on / off operation, the second data returned after the test software sends the second instruction to the acquisition equipment through the serial port to execute information query operation, and the third data returned after the test software directly sends a third instruction to the test equipment; In step S3, the test software tests the functions of the test equipment by sending the first instruction and the second instruction, which comprises the following sub-steps: S311, after the test equipment is online, the tooling equipment is initialized; S312, a test item to be detected of the test equipment is acquired, and a test process of the test item is executed; S313, whether the time of executing the test process in step S312 exceeds a preset time length is judged, if not, step S314 is executed, and if yes, step S315 is executed; S314, the test results of the current test item are updated, and step S312 is jumped to; S315, whether the number of timeout tests of the current test item is less than a preset threshold is judged, if yes, the current test item is retested, and if not, the test operation of the current test item is ended; S316, steps S312 to S315 are repeatedly executed until all test items of the test equipment are tested; The display information of each test item is different, and each test item can be configured with respective detection range data; Each test software is configured with different serial ports to connect different tooling equipment, and multiple tooling equipment can be tested.

2. The street light terminal controller automated production testing method of claim 1, wherein, In step S3, the test software tests the functions of the test equipment by sending the first instruction and the second instruction, which comprises the following sub-steps: S321, a list of the test equipment is acquired, and the test software is started for testing; S322, a test equipment to be detected is acquired, and all test items of the test equipment are tested; S323, after the current test equipment is tested, the test results and statistical information of the current test equipment are updated. S324, repeating steps S322 to S323 until all the test equipment has completed testing.

3. The street light terminal controller automated production testing method of claim 1, wherein, In step S3, automatically determine the test result according to the returned data information, and record the final test result, including the following sub-steps: S331, pre-configure detection range data, determine whether the returned data information is within the detection range data range; S332, in response to determining that the returned data information is within the detection range data range, the test result is successful, and the test result is recorded; S333, in response to determining that the returned data information is not within the detection range data range, the test result is failed, the test result is recorded and marked as red; S334, in response to determining that the test equipment is not responding, the test result obtained is also failed, and the test result is recorded and marked as red.

4. The street light terminal controller automated production testing method of claim 1, wherein, The test software communicates with the test equipment through the serial port control communication module.

5. A street light terminal controller automatic production test tool device, characterized in that, Comprising: External equipment; Test equipment, configured with a controllable access network interface, and for controlling the external equipment; The test equipment includes concentrator, monitoring box and street lamp terminal controller, and the external equipment includes lamps and sensors; Acquisition device for acquiring data parameters of the external equipment; Control device for performing power on / off operation; Tool body for accommodating the external equipment, test equipment, acquisition device and control device; further comprising: Test software for electrically connecting with the test equipment through the network interface, sending a first instruction to the control device through the serial port to perform power on / off operation, and sending a second instruction to the acquisition device through the serial port to perform information query operation; The function of the test equipment is tested by sending the first instruction and the second instruction, and the test result is automatically determined according to the returned data information, and the final test result is recorded; The returned data information includes: The first data returned after the test software sends a first instruction to the control device through the serial port to perform power on / off operation, and the second data returned after the test software sends a second instruction to the acquisition device through the serial port to perform information query operation, and the third data returned after the test software directly sends a third instruction to the test equipment; In step S3, the test software tests the function of the test equipment by sending the first instruction and the second instruction, including the following sub-steps: S311, after the test equipment is online, initialize the tool equipment; S312, get a test item to be detected of the test equipment, execute the test flow of the test item; S313, determine whether the time of executing the test flow in step S312 exceeds the preset time length, if not, execute step S314, if yes, execute step S315; S314, update the test result of the current test item, and jump to step S312; S315, judging whether the timeout test number of the current test item is less than a preset threshold value, if yes, retesting the current test item, if not, ending the test operation of the current test item; S316, repeatedly executing the step S312 to the step S315 until all test items of the test equipment are tested; The display information of each test item is different, and each test item can be configured with respective detection range data. Each test software is configured with different serial ports to connect different tooling equipment, and multiple tooling equipment can be tested.

6. A terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, The processor executes the computer program to realize the steps of the street lamp terminal controller automatic production test method in any one of claims 1 to 4.

7. A computer-readable storage medium storing a computer program, wherein the computer program comprises the following steps of: receiving a request for a resource from a client; determining whether the client is authorized to access the resource; and if the client is authorized to access the resource, providing the resource to the client. The computer program is executed by the processor to realize the steps of the street lamp terminal controller automatic production test method in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Test tool and test method for solar street lamp controller production

    CN110320897A