CN108965047B - Test method based on router equipment - Google Patents

Test method based on router equipment Download PDF

Info

Publication number
CN108965047B
CN108965047B CN201810676016.2A CN201810676016A CN108965047B CN 108965047 B CN108965047 B CN 108965047B CN 201810676016 A CN201810676016 A CN 201810676016A CN 108965047 B CN108965047 B CN 108965047B
Authority
CN
China
Prior art keywords
tested
router
router device
switch
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810676016.2A
Other languages
Chinese (zh)
Other versions
CN108965047A (en
Inventor
吴征荻
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Phoenix Telecom Technology Co ltd
Original Assignee
Shenzhen Phoenix Telecom Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Phoenix Telecom Technology Co ltd filed Critical Shenzhen Phoenix Telecom Technology Co ltd
Priority to CN201810676016.2A priority Critical patent/CN108965047B/en
Publication of CN108965047A publication Critical patent/CN108965047A/en
Application granted granted Critical
Publication of CN108965047B publication Critical patent/CN108965047B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/10Monitoring; Testing of transmitters
    • H04B17/11Monitoring; Testing of transmitters for calibration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/20Monitoring; Testing of receivers
    • H04B17/21Monitoring; Testing of receivers for calibration; for correcting measurements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a test method based on router equipment, which comprises the following steps: the system acquires the equipment information of each router to be tested; the PC side sends the information of the router devices to be tested to the switch; the switch is allocated to the same network segment and different IP addresses of the router devices to be tested; the system controls each router device to be tested to be connected to the test port of the switch; the system controls the dial switches corresponding to the test ports to realize the connection between the system and the tested router equipment; after the connection is finished, modifying the LAN port address of the corresponding router device to be tested; and the system controls each router device to be tested to carry out radio frequency calibration. And a router device based test system. The radio frequency calibration efficiency of the wireless router product is improved. The wireless router can be automatically restored to a factory default configuration state after the calibration is completed and the power failure is guaranteed, so that the production efficiency is improved. Can be widely applied to the field of routers.

Description

Test method based on router equipment
Technical Field
The invention relates to the field of routers, in particular to a test method and a test system based on router equipment.
Background
With the advance of the national digital society, the demand of the national digital society for wireless routers is higher and higher. Therefore, high demands are made on manufacturers to complete the production of products in a shorter time. This requires the manufacturer to inspect its production links, to improve the production efficiency of each link as much as possible, and to meet the requirements of customers with quality and quantity.
In the production process, the radio frequency calibration of the wireless router is a time-consuming process. In the current situation, although one radio frequency calibrator has 2 or 4 calibration channels, all the produced and measured wireless routers have the same default LAN port IP address, so even if the switch calibrator is used, a plurality of devices to be tested cannot be controlled simultaneously to perform calibration. If the yield is to be increased, only the calibrator equipment is added, which wastes extra calibration channels on the calibrator, and wastes factory resources although the production cost is increased. And if the wireless router LAN port address is configured independently before calibration, an additional station and an industrial personal computer for configuration are needed, and the production cost is also increased.
Therefore, the problem that how to calibrate a plurality of wireless routers simultaneously without increasing stations and calibration equipment is a urgent need to be solved.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art. Therefore, an object of the present invention is to provide a method and a system for testing a router-based device, which can achieve fast detection without increasing the cost.
The technical scheme adopted by the invention is as follows:
the invention provides a test method based on router equipment, which comprises the following steps:
the system acquires the equipment information of each router to be tested;
the PC side sends the information of the router devices to be tested to the switch;
the switch is allocated to the same network segment and different IP addresses of the router devices to be tested;
the system controls each router device to be tested to be connected to the test port of the switch;
the system controls the dial switches corresponding to the test ports to realize the connection between the system and the tested router equipment;
after the connection is finished, modifying the LAN port address of the corresponding router device to be tested;
and the system controls each router device to be tested to carry out radio frequency calibration.
As an improvement of the technical solution, the information of each router device to be tested includes MAC address information of each router device to be tested.
As an improvement of this solution, the method further comprises: when a dial switch corresponding to a test port is turned on, and the system detects connection information, the obtained MAC address information is compared with the MAC address table item of the switch, and the fact that the router device to be tested is on line is confirmed.
As an improvement of this solution, the method further comprises: the system remotely logs in the LAN port address of the router device under test and modifies its LAN port address using an ifconfig command.
Furthermore, after the LAN port addresses of the router devices to be tested are modified, the confirmation information is sent to the PC end.
Further, the step of controlling each router device under test by the system to perform radio frequency calibration specifically includes: and the system controls the calibrator to open a calibration interface, simultaneously opens each calibration channel, and performs radio frequency calibration on each router device to be tested.
Further, after the power is cut off, the LAN port address of each router device under test is restored to the default factory state.
In another aspect, the present invention further provides a test system based on router device, including: the system comprises a PC (personal computer) end, a calibrator, a switch and router equipment to be tested; and the PC end and the calibrator are respectively connected with the switch, and the switch is respectively connected with each router device to be tested.
In another aspect, the present invention further provides a test system based on a router device, including:
the information acquisition module is used for executing the step and obtaining the information of each router device to be tested by the system;
the information processing module is used for executing the steps that the PC end sends the information of each router device to be tested to the switch; the switch is allocated to the same network segment and different IP addresses of the router devices to be tested;
the equipment testing module is used for executing the steps and controlling the router equipment to be tested to be connected to the testing port of the switch by the system; the system controls the dial switches corresponding to the test ports to realize the connection between the system and the tested router equipment;
after the connection is finished, modifying the LAN port address of the corresponding router device to be tested;
and the system controls each router device to be tested to carry out radio frequency calibration.
The invention has the beneficial effects that:
according to the test method and the test system based on the router equipment, the LAN port addresses of the multiple tested equipment are sequentially modified through software and the special switch, and then the multiple wireless routers are simultaneously calibrated on the calibrator by utilizing the multiple radio frequency test channels of the radio frequency tester, so that the radio frequency calibration efficiency of a wireless router product is improved. The wireless router can be automatically restored to the factory default configuration state after the calibration is completed and the power is cut off, so that the calibration time is greatly saved, and the production efficiency is improved.
Drawings
FIG. 1 is a system diagram of an embodiment of the present invention;
FIG. 2 is a control schematic of an embodiment of the present invention;
FIG. 3 is a schematic flow chart of another embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
The realization principle of the scheme is as follows:
the br-LAN port address of the wireless router can be temporarily set, and after power failure and restart, the modified address can be restored to a factory default state. By using the principle, a code scanning gun is firstly used for scanning the MAC addresses of 4 tested devices, the MAC information is transmitted to a special switch by a PC (personal computer) end control software background, and the software in the switch allocates the same network segment and different IP addresses to the MACs. The switchboard is also provided with a dial switch for controlling the corresponding test port. After 4 tested devices are inserted into the test port, the dial-up No. 1 switch is turned on, at the moment, the industrial control software establishes connection with the first tested device, and after the LAN port address of the first device is modified, a piece of confirmation information is sent to the PC client. And by parity of reasoning, sequentially opening switches No. 2, No. 3 and No. 4, and modifying IP addresses of LAN ports of other tested equipment. And after the LAN port addresses of the tested equipment are completely set, opening a calibration interface of the IQXEL calibrator, simultaneously opening 4 calibration channels, and performing radio frequency calibration on the 4 pieces of equipment. After the calibration is completed, the next procedure can be started after the power is cut off, and the LAN port address can be restored from the default factory state after the power is cut off.
Based on this, the invention provides a test system based on router equipment, comprising: the system comprises a PC (personal computer) end, a calibrator, a switch and router equipment to be tested; and the PC end and the calibrator are respectively connected with the switch, and the switch is respectively connected with each router device to be tested. Referring to fig. 1, as an embodiment, a PC for testing, an IQXEL calibrator, a switch, and a wireless router are connected. The default IP address of the LAN port of all routers is 192.168.0.1, and the IP address of the PC for testing is 192.168.0.100. The IP communication port address of the IQXEL calibrator is set to 192.168.0.200.
Referring to fig. 2 to 3, the present invention further provides a test method based on router device, including the following steps:
the system acquires the equipment information of each router to be tested;
the PC side sends the information of the router devices to be tested to the switch;
the switch is allocated to the same network segment and different IP addresses of the router devices to be tested;
the system controls each router device to be tested to be connected to the test port of the switch;
the system controls the dial switches corresponding to the test ports to realize the connection between the system and the tested router equipment;
after the connection is finished, modifying the LAN port address of the corresponding router device to be tested;
and the system controls each router device to be tested to carry out radio frequency calibration.
As an improvement of the technical solution, the information of each router device to be tested includes MAC address information of each router device to be tested.
As an improvement of this solution, the method further comprises: when a dial switch corresponding to a test port is turned on, and the system detects connection information, the obtained MAC address information is compared with the MAC address table item of the switch, and the fact that the router device to be tested is on line is confirmed.
As an improvement of this solution, the method further comprises: the system remotely logs in the LAN port address of the router device under test and modifies its LAN port address using an ifconfig command.
Furthermore, after the LAN port addresses of the router devices to be tested are modified, the confirmation information is sent to the PC end.
Further, the step of controlling each router device under test by the system to perform radio frequency calibration specifically includes: and the system controls the calibrator to open a calibration interface, simultaneously opens each calibration channel, and performs radio frequency calibration on each router device to be tested.
Further, after the power is cut off, the LAN port address of each router device under test is restored to the default factory state.
Referring to fig. 2, firstly, a test environment is set up, and MAC address information of equipment is acquired by scanning gun code scanning; the PC end displays the MAC addresses of 4 tested devices; then respectively inserting the tested equipment into different four ports of the switch; sequentially opening dial switches of the ports and modifying LAN port addresses of the devices; and then starting calibration software at the PC end to calibrate each device respectively.
Specifically, referring to fig. 3, the system scans the MAC addresses of 4 devices to be tested by the code scanning gun, and after scanning is completed, the MAC addresses are displayed on the PC client interface, and meanwhile, the PC client background transmits 4 pieces of MAC information to the industrial control switch. Ports 1, 2, 3 and 4 of the switch are defaulted to be port isolation and are controlled by a dial switch, and all ports are in a down state under the default condition. After receiving the MAC information, industrial control software embedded in the switch establishes an MAC/IP binding table, and binds 4 MAC addresses to different IP addresses of the same network segment respectively. 4 tested devices are inserted into ports 1, 2, 3 and 4 of the switch, then the dial-up switch 1 is turned on, the port 1 is released at the moment, and after the system detects the connection information, the obtained MAC information is compared with the MAC address table entry of the switch to confirm that the devices are on line. The telnet device under test LAN port address is then modified using the ifconfig command. And after the modification is finished, sending a piece of confirmation information to the PC client.
And after the first tested device is modified, opening the dial 2 switch, releasing the port 2, and modifying the LAN port address of the second tested device by the industrial control software according to the steps. And the like, and finishing the modification of the LAN port addresses of the tested devices such as the third station, the fourth station and the like.
Then, a system control or an operator opens the IQXEL calibration software on the PC, 4 calibration ports are connected to the radio frequency ports of 4 devices under test, and simultaneously opens 4 calibration pages, the communication addresses are the changed LAN port addresses of the 4 devices, and then the user clicks to start calibration. After the calibration is completed, the 4 tested devices are taken down, and because the LAN port address is temporarily set, the temporary configuration is lost after the power failure, and the devices still keep a factory state after the power is re-powered on.
In another aspect, the present invention further provides a test system based on a router device, including:
the information acquisition module is used for executing the step and obtaining the information of each router device to be tested by the system;
the information processing module is used for executing the steps that the PC end sends the information of each router device to be tested to the switch;
the switch is allocated to the same network segment and different IP addresses of the router devices to be tested;
the equipment testing module is used for executing the steps and controlling the router equipment to be tested to be connected to the testing port of the switch by the system;
the system controls the dial switches corresponding to the test ports to realize the connection between the system and the tested router equipment;
after the connection is finished, modifying the LAN port address of the corresponding router device to be tested;
and the system controls each router device to be tested to carry out radio frequency calibration.
According to the scheme, the default LAN port address is modified for the sequentially accessed wireless routers by the control switch in turn, so that the radio frequency calibrator makes full use of the self calibration channel, 2 or 4 wireless routers are calibrated simultaneously, compared with the mode that only one wireless router can be calibrated in the same time period, the calibration speed can be increased to 2 times or 4 times by using a new testing method of industrial control software, the default configuration of the wireless routers can be recovered after the calibration is completed and the power is cut off, the production efficiency is effectively improved, and resources are saved for enterprise production.
While the preferred embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (4)

1. A test method based on router equipment is characterized by comprising the following steps:
the system acquires information of a plurality of router devices to be tested;
the PC side sends the information of each router device to be tested to the switch;
the switch is allocated to the same network segment and different IP addresses of each router device to be tested;
the system controls each router device to be tested to be connected to a plurality of test ports of the switch respectively;
the system controls dial switches corresponding to the plurality of test ports to realize the connection between the system and each tested router device; when a dial switch corresponding to a test port is turned on and the system detects connection information, the obtained MAC address information is compared with the MAC address table item of the switch, and the fact that the router device to be tested is on line is confirmed;
after the connection is finished, modifying the LAN port address of the corresponding router device to be tested;
the system controls each router device to be tested to simultaneously carry out radio frequency calibration, and specifically comprises the following steps: the system controls the calibrator to open a calibration interface, simultaneously opens a plurality of calibration channels, and performs radio frequency calibration on a plurality of router devices to be tested;
wherein, the system remotely logs in the LAN port address of the router device under test and modifies the LAN port address thereof using the ifconfig command.
2. The router device based test method of claim 1, wherein: the information of the plurality of router devices under test includes MAC address information of the plurality of router devices under test.
3. The router device based test method according to claim 1 or 2, characterized in that: and after the LAN port addresses of the router devices to be tested are modified respectively, sending confirmation information to the PC end respectively.
4. The router-based testing method according to claim 1, wherein the LAN port address of each router device under test is restored to a default factory state after power failure.
CN201810676016.2A 2018-06-27 2018-06-27 Test method based on router equipment Active CN108965047B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810676016.2A CN108965047B (en) 2018-06-27 2018-06-27 Test method based on router equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810676016.2A CN108965047B (en) 2018-06-27 2018-06-27 Test method based on router equipment

Publications (2)

Publication Number Publication Date
CN108965047A CN108965047A (en) 2018-12-07
CN108965047B true CN108965047B (en) 2021-02-05

Family

ID=64486936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810676016.2A Active CN108965047B (en) 2018-06-27 2018-06-27 Test method based on router equipment

Country Status (1)

Country Link
CN (1) CN108965047B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111404779B (en) * 2020-03-12 2022-02-25 深圳市吉祥腾达科技有限公司 Method, device and system for testing role switching of router nodes

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104066110A (en) * 2014-07-17 2014-09-24 上海斐讯数据通信技术有限公司 Wireless router stability testing system and method
CN104954081A (en) * 2015-05-29 2015-09-30 深圳市共进电子股份有限公司 Electronic device test system and test method thereof
CN107396392A (en) * 2017-07-26 2017-11-24 深圳市共进电子股份有限公司 Radio-frequency indicator testing method, device, equipment and the storage medium of WAP

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104066110A (en) * 2014-07-17 2014-09-24 上海斐讯数据通信技术有限公司 Wireless router stability testing system and method
CN104954081A (en) * 2015-05-29 2015-09-30 深圳市共进电子股份有限公司 Electronic device test system and test method thereof
CN107396392A (en) * 2017-07-26 2017-11-24 深圳市共进电子股份有限公司 Radio-frequency indicator testing method, device, equipment and the storage medium of WAP

Also Published As

Publication number Publication date
CN108965047A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
US9935821B2 (en) Method for configuring one or more devices in an ethernet-based communication network
CN102421132B (en) Test system, test equipment and test method for mobile terminal
CN104486762A (en) Access control method of intelligent home appliance and intelligent home appliance system
US20150382219A1 (en) Methods, apparatus and articles of manufacture to test home networks
US20140128003A1 (en) Mobile communication terminal test system and mobile communication terminal test method
JP2004048334A5 (en)
EP2571196B1 (en) Method and device for upgrading radio relay equipment
CN109600809B (en) Channel switching method, device and equipment
CN104469660A (en) Bluetooth-based networking method
CN101431447B (en) Method and apparatus for testing capacity and performance of virtual special network server
CN101291506A (en) TDSCDMA terminal testing system and testing method for transmitter and receiver
CN104794034A (en) Acceptance check method and device for equipment
CN108770008A (en) Configuration method, device and the storage medium that household appliance networks
CN104797011A (en) Data transmission method of dual-frequency mobile WiFi terminal and mobile WiFi terminal
US20090013072A1 (en) Network apparatus test system and network apparatus test method
CN104836840A (en) Control method of mobile terminal, server, device and system
CN105636159A (en) Configuration method and apparatus for connection between electrical appliance and wireless router and mobile communication terminal
CN108965047B (en) Test method based on router equipment
JP5600720B2 (en) Test system and test method for mobile communication terminal device
CN111885621B (en) Wireless message grabbing method, system, terminal and storage medium
CN103973377A (en) Base station testing method, base station testing device and base station testing system
JP4600697B2 (en) Network equipment test system
CN101668228A (en) Device and method for testing interface
CN106162702A (en) Wireless aps maximum user connects number automated testing method and system
CN105722082A (en) Method for intelligent equipment to obtain operation network configuration by using access point function

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant