Method, device and system for producing zigbee communication gateway and storage medium

By unifying the control of Zigbee communication gateways for production testing, the problems of complex production testing processes and long timelines have been solved, achieving an efficient and automated testing process that supports simultaneous testing of multiple channels, thereby reducing production costs and the probability of errors.

CN116170825BActive Publication Date: 2026-03-03ZHEJIANG REXENSE IOT TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310094967.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-14
Publication Date
2026-03-03
Estimated Expiration
2043-01-14

AI Technical Summary

Technical Problem

The production testing process for Zigbee communication gateways is complex, time-consuming, and has a low degree of automation, resulting in low testing efficiency and a high probability of errors.

Method used

This paper provides a method for production testing of Zigbee communication gateways. It obtains test work order configurations, writes LAN addresses, tests general functions, tests serial port connection status, tests Zigbee signals, and burns activation codes through unified control. It supports simultaneous testing of multiple channels, reducing the number of transfers and the probability of errors.

Benefits of technology

Improve testing efficiency, reduce the number of iterations, lower the probability of errors, reduce production costs, quickly connect with customers, and reduce testing time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116170825B_ABST
    Figure CN116170825B_ABST
Patent Text Reader

Abstract

The embodiment of the application discloses a Zigbee communication gateway production and measurement method, device, system and storage medium, the method obtains test work order configuration, writes local area network address, tests general functions, tests serial port connection state, tests Zigbee signals and burns and activates codes through unified control, can be used for supporting multi-path simultaneous test on one hand, improving test efficiency, can be used for realizing that all project tests are completed in one process on the other hand, reducing the number of circulation in the whole production link, reducing the technical effect of error probability, and through flexible configuration, the customer can be quickly connected, and the test time is reduced, the production cost is reduced, and the problems that the existing Zigbee production and measurement process is complex, the construction period is long and the automation degree is low can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer technology, and in particular to a method, apparatus, system, and storage medium for testing a Zigbee communication gateway. Background Technology

[0002] Zigbee is a low-power local area network (LAN) protocol based on the IEEE 802.15.4 standard. Its characteristics include short range, low complexity, self-organization, low power consumption, and low data rate. It is primarily suitable for automatic control and remote control applications and can be embedded in various devices. In short, Zigbee is an inexpensive, low-power, short-range wireless networking communication technology. As a low-speed, short-range wireless network protocol, Zigbee is widely used in smart homes.

[0003] Zigbee communication gateways are products integrating multiple functional modules, requiring testing of these modules during production testing. Due to the complexity and extensive content involved, a segmented, pipeline-style operation is employed. Multiple test stations are set up, distributing the various functional modules across different stations, with the gateway circulating between these stations for testing as needed. As the circulation process becomes more complex, the gateway system requires preheating for stable operation, resulting in repeated power-on preheating and wasted testing time. Multiple test stations require multiple testers and repetitive testing equipment, increasing testing costs. The increased number of test processes also raises the probability of errors during circulation, impacting delivery schedules. To address the issues of complex, time-consuming, and low-automation production testing processes for Zigbee communication gateways, further research into Zigbee communication gateway production testing technologies is necessary. Summary of the Invention

[0004] This invention provides a Zigbee communication gateway production testing method, apparatus, system, and storage medium to solve the problems of complex production testing processes, long project durations, and low automation in existing Zigbee communication gateway production testing.

[0005] On one hand, the present invention provides a method for testing a Zigbee communication gateway, comprising:

[0006] Obtain the test work order configuration for the Zigbee communication gateway under test;

[0007] Access the relay router via its network port and clear the list of tested devices in the relay router's Dynamic Host Configuration Protocol (DHCP).

[0008] Obtain the product serial number of the Zigbee communication gateway to be tested;

[0009] Obtain the LAN address of the Zigbee communication gateway under test based on the product serial number;

[0010] Write the local area network address into the Zigbee communication gateway under test;

[0011] Restart the network of the Zigbee communication gateway under test;

[0012] Configure and test the general functions of the Zigbee communication gateway under test according to the test work order;

[0013] After the general functional tests are passed, check the Zigbee and WIFI serial port connection status of the Zigbee communication gateway under test.

[0014] When the Zigbee and WIFI serial port connections of the Zigbee communication gateway under test are normal, send the Zigbee network establishment command, and after listening to the Zigbee network establishment data returned by the serial port, perform the Zigbee signal test of the Zigbee communication gateway under test.

[0015] Once the Zigbee signal test is passed, obtain the activation code for the Zigbee communication gateway under test;

[0016] Burn the activation code onto the Zigbee communication gateway to be tested.

[0017] Furthermore, after the step of burning the activation code onto the Zigbee communication gateway under test, the following steps are also included:

[0018] Verify the activation code information burned into the Zigbee communication gateway under test;

[0019] After verification, the test record will be uploaded to the production test server. The test record includes test information, log records, and the test time for each stage of the test.

[0020] Furthermore, the steps for testing the Zigbee signal of the Zigbee communication gateway under test include:

[0021] Obtain the signal strength of the distance mapping between the Zigbee communication gateway and the Zigbee signal generator under test;

[0022] Determine if the signal strength is within the error range; if so, the Zigbee signal test passes.

[0023] Furthermore, the steps for configuring and testing the general functions of the Zigbee communication gateway under test according to the test work order include:

[0024] Check if the network port function of the Zigbee communication gateway under test is normal;

[0025] If so, instruct the tester to press and hold the button on the Zigbee communication gateway under test, and determine whether the button function is normal based on the listening results;

[0026] If so, control the Zigbee communication gateway under test to first light up all indicator lights in a scrolling light pattern and then turn them off;

[0027] The system acquires information indicating that the indicator light function test has passed, controls the Zigbee communication gateway under test to send radio frequency signals, acquires radio frequency test data from the multi-channel radio frequency tester, compares the radio frequency test data with the radio frequency standard data, and controls the Zigbee communication gateway under test to perform radio frequency calibration based on the comparison results.

[0028] Furthermore, before obtaining the test ticket configuration of the Zigbee communication gateway under test, the following steps are also included:

[0029] The system and application firmware are burned into the chip via Flash programming.

[0030] SMT assembly is performed to produce the Zigbee communication gateway under test.

[0031] Affix a label with the product serial number to the PCBA board of the Zigbee communication gateway under test.

[0032] Further steps to check the Zigbee and Wi-Fi serial port connection status of the Zigbee communication gateway under test include:

[0033] Send serial port test command;

[0034] Listen for the Zigbee response success data returned by the serial port.

[0035] To address the issues of complex, time-consuming, and low-automation production testing processes for existing Zigbee communication gateways, this invention aims to provide a Zigbee communication gateway production testing method, comprising: obtaining the test work order configuration of the Zigbee communication gateway under test; accessing the relay router via the network port and clearing the list of tested devices in the relay router's Dynamic Host Configuration Protocol (DHCP); obtaining the product serial number of the Zigbee communication gateway under test; obtaining the local area network (LAN) address of the Zigbee communication gateway under test based on the product serial number; writing the LAN address into the Zigbee communication gateway under test; and restarting the network of the Zigbee communication gateway under test. Configure and test the general functions of the Zigbee communication gateway under test according to the test work order; after the general function test is passed, check the Zigbee and WIFI serial port connection status of the Zigbee communication gateway under test; when the Zigbee and WIFI serial port connection of the Zigbee communication gateway under test is normal, send the Zigbee network establishment command, and after listening for the Zigbee network establishment data returned by the serial port, perform the Zigbee signal test of the Zigbee communication gateway under test; after the Zigbee signal test is passed, obtain the activation code of the Zigbee communication gateway under test; burn the activation code into the Zigbee communication gateway under test.

[0036] Compared with the prior art, the present invention has the following advantages:

[0037] By unifying the control over obtaining test work order configurations, writing LAN addresses, testing general functions, testing serial port connection status, testing Zigbee signals, and burning activation codes, this system can support simultaneous multi-channel testing, improving testing efficiency. Furthermore, it enables the completion of all project tests in a single process, reducing the number of workflows in the entire production process and lowering the probability of errors. It also allows for quick customer integration through flexible configuration, reduces testing time, lowers production costs, and solves the problems of complex, long-term, and low-automation existing Zigbee production testing processes.

[0038] On the other hand, the present invention provides a Zigbee communication gateway production testing device, comprising:

[0039] The first acquisition module is used to acquire the test work order configuration of the Zigbee communication gateway under test;

[0040] The clearing module is used to access the relay router via the network port and clear the list of tested devices in the relay router's Dynamic Host Configuration Protocol (DHCP).

[0041] The second acquisition module is used to acquire the product serial number of the Zigbee communication gateway under test.

[0042] The third acquisition module is used to obtain the local area network address of the Zigbee communication gateway under test based on the product serial number;

[0043] The writing module is used to write the local area network address to the Zigbee communication gateway under test.

[0044] The restart module is used to restart the network of the Zigbee communication gateway under test.

[0045] The general function test module is used to configure and test the general functions of the Zigbee communication gateway under test according to the test work order.

[0046] The serial port connection test module is used to check the Zigbee and WIFI serial port connection status of the Zigbee communication gateway under test after the general functional test has passed.

[0047] The Zigbee signal testing module is used to send a Zigbee network establishment command when the Zigbee and WIFI serial port connections of the Zigbee communication gateway under test are normal, and to perform Zigbee signal testing on the Zigbee communication gateway under test after listening to the Zigbee network establishment data returned by the serial port.

[0048] The fourth acquisition module is used to obtain the activation code of the Zigbee communication gateway under test after the Zigbee signal test is passed;

[0049] The programming module is used to program the activation code onto the Zigbee communication gateway under test.

[0050] In another aspect, the present invention provides a Zigbee communication gateway production testing system, including testing equipment and the aforementioned Zigbee communication gateway production testing device. The testing equipment is controlled by the Zigbee communication gateway production testing device. The testing equipment includes any one or any combination of a test carrier, a barcode scanner, a firmware programmer, and a spectrum analyzer.

[0051] Furthermore, the test equipment also includes a relay router. After the Zigbee communication gateway under test is connected to the relay router, it is installed in the test carrier. Each test point includes at least two connection ports.

[0052] In another aspect, the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the method described above. Attached Figure Description

[0053] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0054] Figure 1 This is a flowchart of a Zigbee communication gateway production testing method according to an embodiment of the present invention.

[0055] Figure 2 This is a schematic diagram of a Zigbee communication gateway testing device according to another embodiment of the present invention.

[0056] Figure 3 This is a schematic diagram of a Zigbee communication gateway production and testing system according to another embodiment of the present invention.

[0057] Figure 4 This is a network topology diagram according to the present invention.

[0058] Figure 5 This is a test connection diagram of the present invention. Detailed Implementation

[0059] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0060] Please see Figure 1 An embodiment of the Zigbee communication gateway production testing method of the present invention includes the following steps:

[0061] Step 101: Obtain the test work order configuration for the Zigbee communication gateway under test.

[0062] Step 102: Access the relay router via the network port and clear the list of tested devices in the relay router's Dynamic Host Configuration Protocol (DHCP).

[0063] Step 103: Obtain the product serial number of the Zigbee communication gateway to be tested.

[0064] Step 104: Obtain the local area network address of the Zigbee communication gateway under test based on the product serial number.

[0065] Step 105: Write the local area network address into the Zigbee communication gateway under test.

[0066] Step 106: Restart the network of the Zigbee communication gateway under test.

[0067] Step 107: Configure the general functions of the Zigbee communication gateway under test according to the test work order.

[0068] Step 108: After the general functional test is passed, check the Zigbee and WIFI serial port connection status of the Zigbee communication gateway under test.

[0069] Step 109: When the Zigbee and WIFI serial port connections of the Zigbee communication gateway under test are normal, send the Zigbee network establishment command, and after listening to the Zigbee network establishment data returned by the serial port, perform the Zigbee signal test of the Zigbee communication gateway under test.

[0070] Step 110: After the Zigbee signal test is passed, obtain the activation code of the Zigbee communication gateway under test.

[0071] Step 111: Burn the activation code onto the Zigbee communication gateway to be tested.

[0072] This invention, through unified control, acquires test work order configurations, writes LAN addresses, tests general functions, tests serial port connection status, tests Zigbee signals, and burns activation codes. On the one hand, it can support simultaneous multi-channel testing, improving testing efficiency; on the other hand, it can achieve the technical effect of completing all project tests in one process, reducing the number of transfers in the entire production process, and reducing the probability of errors. Furthermore, it can quickly connect with customers through flexible configuration, reduce testing time, and lower production costs, solving the problems of complex, long-term, and low-automation Zigbee production testing processes in existing systems.

[0073] As another embodiment of the present invention, a further improvement based on the above Zigbee communication gateway production testing method includes the following steps:

[0074] Step 101': The system and application firmware are burned into the chip via Flash programming.

[0075] In this embodiment of the invention, before gateway production, technicians configure basic information such as the gateway production work order, test items, and test item parameters. Once gateway production begins, the system and application firmware are first burned into the chip via Flash programming.

[0076] Step 102': Perform SMT placement to produce the Zigbee communication gateway under test.

[0077] In this embodiment of the invention, after the gateway completes the chip program burning, it enters the SMT assembly process for hardware production.

[0078] Step 103': Affix the label with the product serial number to the PCBA board of the Zigbee communication gateway to be tested.

[0079] In this embodiment of the invention, after the gateway completes hardware production, a labeling process is performed, where a label bearing the gateway product serial number (SN) is affixed to the gateway PCBA board. After labeling is completed, the gateway enters the testing phase.

[0080] Step 104': Obtain the test work order configuration for the Zigbee communication gateway under test.

[0081] In this embodiment of the invention, the gateway enters the testing phase. Factory engineers connect to the testing equipment and configure the local testing environment. Testers enter the test work order number on the test client and obtain the test work order configuration.

[0082] Step 105': Access the relay router via the network port and clear the list of tested devices in the relay router's Dynamic Host Configuration Protocol (DHCP).

[0083] In this embodiment of the invention, the tester can connect the gateway to the relay router (PoE gateway). This ensures that at each test point, one device is always under test and another is being pre-powered on. During testing, the tester places the gateway into the test fixture, scans the gateway's tag serial number using a barcode scanner, and initiates the test. After the test begins, the production test client accesses the relay router via the network port and clears the list of tested devices in the router's DHCP server.

[0084] Step 106': Obtain the product serial number of the Zigbee communication gateway to be tested.

[0085] In this embodiment of the invention, the product serial number of the Zigbee communication gateway under test is obtained from the barcode scanner.

[0086] Step 107': Obtain the local area network address of the Zigbee communication gateway under test based on the product serial number.

[0087] In this embodiment of the invention, the production testing client uses the SN obtained by scanning the code to apply to the cloud for the gateway port MAC address to be written.

[0088] Step 108': Write the local area network address into the Zigbee communication gateway under test.

[0089] In this embodiment of the invention, after obtaining the MAC address from the cloud, the production testing client logs into the gateway via a serial port. The production testing client then writes the network port MAC address to the gateway through the production testing program within the gateway.

[0090] Step 109': Restart the network of the Zigbee communication gateway under test.

[0091] In this embodiment of the invention, after the gateway's network port MAC address is written, the production testing client sends a restart network configuration command to the gateway production testing program to restart the gateway system network configuration and perform a network restart of the gateway.

[0092] Step 110': Check if the network port function of the Zigbee communication gateway under test is normal;

[0093] In this embodiment of the invention, after the gateway network restarts, the production testing client pings the upstream router's IP address through the gateway port and checks whether the gateway port is functioning normally based on the ping results.

[0094] Step 111' prompts the tester to press and hold the button on the Zigbee communication gateway under test, and to determine whether the button function is normal based on the listening results.

[0095] In this embodiment of the invention, after the production testing client checks that the gateway network port passes the test, it enters the gateway button testing phase. At this time, the production testing client prompts the tester to press and hold the gateway button for 3 seconds through the interface, and listens for the result returned by the gateway production testing program to determine the gateway button function.

[0096] Step 112' If yes, control the Zigbee communication gateway under test to first light up all indicator lights in the form of a running light and then turn them off.

[0097] In this embodiment of the invention, after the production testing client checks that the gateway button test has passed, it enters the gateway indicator light test phase. The production testing client sends a command to the gateway production testing program to first light up and then turn off all the indicator lights on the gateway in a scrolling light pattern. The system then manually observes whether the indicator lights are flashing sequentially in a scrolling light pattern.

[0098] Step 113': Obtain the information that the indicator light function test has passed, control the Zigbee communication gateway under test to send radio frequency, obtain the radio frequency test data in the multi-channel radio frequency tester, compare the radio frequency test data with the radio frequency standard data, and control the Zigbee communication gateway under test to perform radio frequency calibration according to the comparison results.

[0099] In this embodiment of the invention, after the production testing client completes the gateway indicator light check, it performs the gateway WIFI RF performance testing and calibration phase. The production testing client sends RF test commands to the production testing program in the gateway, and accesses a multi-channel RF tester via the network to read test data. The test data is compared with standard data. Based on the comparison results, the production testing client sends RF calibration commands to the gateway production testing program.

[0100] Step 114': Send serial port test command.

[0101] Step 115': Listen for the Zigbee response success data returned by the serial port.

[0102] In this embodiment of the invention, after completing the gateway's Wi-Fi RF calibration, the production testing client begins checking the Zigbee and Wi-Fi serial port connection status. The production testing client sends a serial port test command to the gateway's production testing program and listens for the Zigbee response success data returned by the serial port. Upon receiving the Zigbee response success data, the serial port connection test is complete.

[0103] Step 116': When the Zigbee and WIFI serial port connections of the Zigbee communication gateway under test are normal, send the Zigbee network establishment command, and after listening to the Zigbee network establishment data returned by the serial port, perform the Zigbee signal test of the Zigbee communication gateway under test.

[0104] In this embodiment of the invention, after the gateway WIFI and Zigbee serial port connection pass the normal check, the production test client sends a Zigbee network establishment command to the gateway production test program and listens for the Zigbee network establishment success data returned by the serial port.

[0105] The Zigbee signal testing of the Zigbee communication gateway under test includes:

[0106] Obtain the signal strength of the distance mapping between the Zigbee communication gateway and the Zigbee signal generator under test;

[0107] Determine if the signal strength is within the error range; if so, the Zigbee signal test passes.

[0108] In this embodiment of the invention, after the Zigbee network of the gateway is established, the production testing client sends test commands to the Zigbee signal generator via a serial port and listens for the Zigbee signal data returned by the gateway's production testing program. Upon receiving the data, the client determines whether the signal meets the standard by comparing the signal strength of the distance mapping between the gateway and the Zigbee signal generator to see if it falls within the error range.

[0109] Step 117': After the Zigbee signal test is passed, obtain the activation code of the Zigbee communication gateway under test.

[0110] In this embodiment of the invention, after completing the gateway Zigbee signal test, the production test client obtains the gateway's activation code from the cloud and sends an instruction to burn the activation code to the gateway's production test program via serial port.

[0111] Step 118': Burn the activation code onto the Zigbee communication gateway to be tested.

[0112] Step 119': Verify the activation code information burned into the Zigbee communication gateway under test.

[0113] In this embodiment of the invention, after the activation code is burned, the production testing client reads the burned activation code information through the gateway production testing program and performs information verification.

[0114] Step 120': After verification, upload the test record to the production test server. The test record includes test information, log records, and the test time for each stage of the test.

[0115] In this embodiment of the invention, after the information verification is completed, the production testing client uploads the test information, log records, and test times for each stage of the test to the production testing server.

[0116] The production testing method of this invention supports simultaneous testing of multiple channels, improving testing efficiency. It completes all project tests in one process, reducing the number of transfers in the entire production process and lowering the probability of errors. In addition, it can be flexibly configured to quickly connect with customers and supports special requirements such as binding customer SNs and writing activation codes without affecting other tests. It can be used to reduce testing time and production costs. Furthermore, it can track test information and statistically analyze the test pass rate, which facilitates subsequent adjustments to test strategies and work hour statistics.

[0117] Please see Figure 2 Another embodiment of the present invention provides a Zigbee communication gateway testing device, which can be used to implement the corresponding steps of the above method embodiments, including:

[0118] The first acquisition module is used to acquire the test work order configuration of the Zigbee communication gateway under test;

[0119] The clearing module is used to access the relay router via the network port and clear the list of tested devices in the relay router's Dynamic Host Configuration Protocol (DHCP).

[0120] The second acquisition module is used to acquire the product serial number of the Zigbee communication gateway under test.

[0121] The third acquisition module is used to obtain the local area network address of the Zigbee communication gateway under test based on the product serial number;

[0122] The writing module is used to write the local area network address to the Zigbee communication gateway under test.

[0123] The restart module is used to restart the network of the Zigbee communication gateway under test.

[0124] The general function test module is used to configure and test the general functions of the Zigbee communication gateway under test according to the test work order.

[0125] The serial port connection test module is used to check the Zigbee and WIFI serial port connection status of the Zigbee communication gateway under test after the general functional test has passed.

[0126] The Zigbee signal testing module is used to send a Zigbee network establishment command when the Zigbee and WIFI serial port connections of the Zigbee communication gateway under test are normal, and to perform Zigbee signal testing on the Zigbee communication gateway under test after listening to the Zigbee network establishment data returned by the serial port.

[0127] The fourth acquisition module is used to obtain the activation code of the Zigbee communication gateway under test after the Zigbee signal test is passed;

[0128] The programming module is used to program the activation code onto the Zigbee communication gateway under test.

[0129] On the other hand, please see Figure 3 This invention provides a Zigbee communication gateway production testing system, including testing equipment and the aforementioned Zigbee communication gateway production testing device. The testing equipment is controlled by the Zigbee communication gateway production testing device. The testing equipment includes any one or any combination of a test carrier, a barcode scanner, a firmware programmer, and a spectrum analyzer. As one embodiment, the connection between the testing equipment and the Zigbee communication gateway production testing device is described in [reference needed]. Figure 4 and Figure 5 The test equipment also includes a relay router. The Zigbee communication gateway under test is connected to the relay router and then installed in the test carrier. Each test point includes at least two connection ports.

[0130] Please see Figure 4 The Zigbee communication gateway production testing system of this embodiment also includes:

[0131] Production testing server: Responsible for managing the production testing configuration items of gateway products, associating orders, customer information, etc., and recording the site testing records and gateway information of gateway products.

[0132] Production testing work order configuration client: responsible for configuring and managing gateway test items and other information.

[0133] The production testing client (i.e., the ZigBee communication gateway production testing device in the above embodiment) is responsible for controlling the testing equipment, testing the gateway, and uploading test records.

[0134] External router: Used to connect production testing clients and production testing servers.

[0135] Test equipment: Test equipment is not a specific device, but a general term for all related equipment used in testing. Test equipment mainly consists of hardware devices, including relay routers, barcode scanners, multi-channel RF spectrum analyzers, Zigbee signal generators, etc.

[0136] Gateway to be tested: Single-port gateway, the gateway supports power supply via the network port, is powered via a PoE gateway, and the connection test is conducted via the network port.

[0137] Gateway production test program: A test program that runs on the gateway WiFi.

[0138] As one implementation method, wherein Figure 5 A connection diagram of the Zigbee communication gateway production testing system is shown.

[0139] The Zigbee communication gateway production testing system interface of this invention supports simultaneous multi-channel testing, improving testing efficiency. It completes all project tests in one process, reducing the number of transfers in the entire production process and lowering the probability of errors. In addition, it can be flexibly configured to quickly connect with customers and support special requirements such as binding customer SNs and writing activation codes without affecting other tests. It can be used to reduce testing time and production costs. Furthermore, it can track test information and calculate the test pass rate, which facilitates subsequent adjustments to test strategies and work hour statistics.

[0140] In another aspect, the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the method described above.

[0141] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed in this invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0142] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0143] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for measuring Zigbee communication gateway, characterized in that, The method comprises the following steps: obtain a test work order configuration of a Zigbee communication gateway to be tested; access a relay router through a network port and clear a list of tested devices in a dynamic host configuration protocol of the relay router; obtain a product serial number of the Zigbee communication gateway to be tested; obtain a local area network address of the Zigbee communication gateway to be tested according to the product serial number; write the local area network address into the Zigbee communication gateway to be tested; restart the network of the Zigbee communication gateway to be tested; test the general function of the Zigbee communication gateway to be tested according to the test work order configuration; when the general function test is passed, check the connection status of Zigbee and WIFI serial ports of the Zigbee communication gateway to be tested; when the Zigbee and WIFI serial ports of the Zigbee communication gateway to be tested are normally connected, send a Zigbee network building instruction, and after Zigbee network building data returned by the serial port is listened to, perform Zigbee signal testing on the Zigbee communication gateway to be tested; after the Zigbee signal test is passed, obtain an activation code of the Zigbee communication gateway to be tested; burn the activation code into the Zigbee communication gateway to be tested; the step of accessing the relay router through the network port and clearing the list of tested devices in the dynamic host configuration protocol of the relay router comprises the following steps: access the relay router through the network port, and clear the list of tested devices in the dynamic host configuration protocol of the relay router; ensure that there is always one device under test and one device under pre-powering at each test point.

2. The method of claim 1, wherein, after the step of burning the activation code into the Zigbee communication gateway to be tested, the method further comprises the following steps: verify the activation code information burned into the Zigbee communication gateway to be tested; after verification, upload test records to a production test server, wherein the test records comprise test information, log records, and test time of each test phase.

3. The method of claim 1, wherein the Zigbee gateway is configured to: the step of performing Zigbee signal testing on the Zigbee communication gateway to be tested comprises the following steps: obtain signal strength of distance mapping of the Zigbee communication gateway to be tested and a Zigee signal generator; determine whether the signal strength is within an error range, and if yes, the Zigbee signal test is passed.

4. The method of claim 1, wherein, the step of testing the general function of the Zigbee communication gateway to be tested according to the test work order configuration comprises the following steps: check whether the network port function of the Zigbee communication gateway to be tested is normal; if yes, prompt a test personnel to long press a button of the Zigbee communication gateway to be tested, and determine whether the button function is normal according to a listening result; if yes, control the Zigbee communication gateway to be tested to first light up and then turn off all indicator lights in the form of a running light; obtain information that the indicator light function test is passed, control the Zigbee communication gateway to be tested to send radio frequency, obtain radio frequency test data in a multi-channel radio frequency tester, compare the radio frequency test data based on radio frequency standard data, and control the Zigbee communication gateway to be tested to perform radio frequency calibration according to a comparison result.

5. The method of claim 1, wherein, Before the step of obtaining the test work order configuration of the to-be-tested Zigbee communication gateway, the method further comprises: The system and application firmware are burned into the chip through a Flash burning method; SMT is performed to produce the to-be-tested Zigbee communication gateway; A label printed with the product serial number is attached to the PCBA board of the to-be-tested Zigbee communication gateway.

6. The method of claim 1, wherein, The step of checking the Zigbee and WIFI serial port connection state of the to-be-tested Zigbee communication gateway comprises: Sending a serial port test instruction; Listening to Zigbee response success data returned by the serial port.

7. A Zigbee communication gateway measurement device, characterized by, Comprise: A first obtaining module configured to obtain a test work order configuration of a to-be-tested Zigbee communication gateway; A clearing module configured to access a relay router through a network port and clear a tested device list in a dynamic host configuration protocol of the relay router; A second obtaining module configured to obtain a product serial number of the to-be-tested Zigbee communication gateway; A third obtaining module configured to obtain a local area network address of the to-be-tested Zigbee communication gateway according to the product serial number; A writing module configured to write the local area network address into the to-be-tested Zigbee communication gateway; A restarting module configured to restart a network of the to-be-tested Zigbee communication gateway; A general function test module configured to test a general function of the to-be-tested Zigbee communication gateway according to the test work order configuration; A serial port connection test module configured to check a Zigbee and WIFI serial port connection state of the to-be-tested Zigbee communication gateway when the general function test is passed; A Zigbee signal test module configured to, when the Zigbee and WIFI serial port connection of the to-be-tested Zigbee communication gateway is normal, send a Zigbee network building instruction, and perform Zigbee signal testing of the to-be-tested Zigbee communication gateway after listening to Zigbee network building data returned by the serial port; A fourth obtaining module configured to obtain an activation code of the to-be-tested Zigbee communication gateway when the Zigbee signal test is passed; A burning module configured to burn the activation code into the to-be-tested Zigbee communication gateway; The clearing module is further configured to: Access the relay router through the network port, and clean up the tested device list in the DHCP of the router; ensure that there is always one device under test and one device under pre-power-on at each test point.

8. A Zigbee communication gateway production measurement system, characterized by The test device and the Zigbee communication gateway production testing device of claim 7, wherein the test device is controlled by the Zigbee communication gateway production testing device, and the test device comprises any one or any combination of a test carrier, a code scanning gun, a firmware burner, and a spectrum tester.

9. The Zigbee communication gateway monitoring system of claim 8, wherein, The test device further comprises a relay router, and the to-be-tested Zigbee communication gateway is connected to the relay router and then loaded into the test carrier, and each test point comprises at least two connection ports.

10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program, when executed by the processor, can implement the method of any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method and system for production test burning

    CN102750983A

  • Intelligent detection system of OTT+DVB fusion-type intelligent-gateway

    CN107463472A

  • Bluetooth low energy BLE product testing method and BLE apparatus

    WO2021119922A1