CN101499929B - Centralized plug and use production test system and method for network terminal equipment under Linux environment - Google Patents

Centralized plug and use production test system and method for network terminal equipment under Linux environment Download PDF

Info

Publication number
CN101499929B
CN101499929B CN 200910047110 CN200910047110A CN101499929B CN 101499929 B CN101499929 B CN 101499929B CN 200910047110 CN200910047110 CN 200910047110 CN 200910047110 A CN200910047110 A CN 200910047110A CN 101499929 B CN101499929 B CN 101499929B
Authority
CN
China
Prior art keywords
test
network
serial communication
instant
port
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.)
Expired - Fee Related
Application number
CN 200910047110
Other languages
Chinese (zh)
Other versions
CN101499929A (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.)
DAYA SCIENCE AND TECHNOLOGY Co Ltd SHANGHAI
Original Assignee
DAYA SCIENCE AND TECHNOLOGY Co Ltd SHANGHAI
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 DAYA SCIENCE AND TECHNOLOGY Co Ltd SHANGHAI filed Critical DAYA SCIENCE AND TECHNOLOGY Co Ltd SHANGHAI
Priority to CN 200910047110 priority Critical patent/CN101499929B/en
Publication of CN101499929A publication Critical patent/CN101499929A/en
Application granted granted Critical
Publication of CN101499929B publication Critical patent/CN101499929B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a 'plug and play' production test system and a method integrated on a network terminal device in Linux environment. The system comprises a test controlling host, a switching device, a distance analog device, a controller, an operation platform device and a local side device; the test controlling host is connected with the distance analog device and the operation platform device through the controller and is connected with the tested network terminal device through the switching device; and the local side device is connected with the tested network terminal device through the distance analog device. The method comprises the following steps: the system carries out test configuration, reads configuration files, starts test process, carries out test processing, writes the test results into a test result file, displays the test result and waits for replacing a next network terminal device. The 'plug and play' production test system and the method integrated on the network terminal device in Linux environment has the advantages of obviously raising the test efficiency and accuracy rate of the network terminal device, obviously reducing the production cost, raising the working stability and having a wider application range.

Description

Linux environment lower network terminal equipment is concentrated plug and play production test system and method
Technical field
The present invention relates to network communication field, particularly network-termination device production test technical field is meant that specifically a kind of Linux environment lower network terminal equipment concentrates plug and play production test system and method.
Background technology
In the modern society, along with continuous progress in science and technology, the development of computer network communication is to advance by leaps and bounds, and sharply increases for the network individual number of users especially, and in this case, the development of network-termination device must be caught up with.
In present network-termination device, using the most general is exactly Modem, router, switch etc., and the production test of existing Modem generally has steps such as upgrading, burn recording MAC information, test.Generally all undertaken by modes such as Post, Put, Telnet, serial ports.
Simultaneously, at present in the prior art, in the communication equipment manufacturing industry, the production model of network-termination device all is man-to-man from essence, computer of a people just, network-termination device of a computer production test, just the production test pattern of a pair of same form.And the operating efficiency of this pattern is very low.
For instance, such as in the process of test Modem product, 1 workman is responsible for a computer, and (Windows operating system is installed virtual another Windows operating system of virtual machine), during test, the workman is responsible for two Modem tests.Testing procedure is as follows:
The installation testing environment powers on, and Ping is logical, and DSL connects, check that DSL connects speed under the 0Km, the range simulation device manually is allocated to 3.5Km, wait for that DSL connects, check that 3.5Km connects speed, the range simulation device manually is allocated to 4.5Km, waits for that DSL connects, check that 4.5Km connects speed, test is finished.
A workman tests two at every turn, and most of the time has all spent in the installation testing environment, wait Ping leads to, waits on DSL connection and the fault recognition.Even uninterruptedly test, per hour also be merely able to test into about 40 equipment.This shows that such operating efficiency is low-down, and the lengthy and tedious complexity of test process step, occur mistake easily, thereby brought very big inconvenience for people's work and life.
Summary of the invention
The objective of the invention is to have overcome above-mentioned shortcoming of the prior art, a kind of testing efficiency that can significantly improve network-termination device is provided, change the production test pattern of the existing a pair of same form, significantly reduce network-termination device production cost, improve production test efficient and accuracy, stable and reliable working performance, the scope of application comparatively widely Linux environment lower network terminal equipment concentrate plug and play production test system and method.
In order to realize above-mentioned purpose, Linux environment lower network terminal equipment of the present invention concentrates plug and play production test system and method as follows:
Should concentrate instant inserted and instant using type production test system based on the network-termination device of Linux environment, its main feature is, described system comprises the test main control system, switch device, the range simulation device, controller, operation post device drawn game end device, described test main control system is connected with the operation post device with described range simulation device respectively by described controller, described test main control system also is connected by the tested network-termination device of described switch device and several, and described local side device is connected with these several tested network-termination device by described range simulation device.
Should be based on the switch that comprises several mutual cascades in the switch device in the concentrated instant inserted and instant using type production test system of the network-termination device of Linux environment, the switch on described cascade top is connected by the network port of the network port with the test main control system, and the switch of described cascade end is connected with described several tested network-termination devices by the network port, described test main control system is connected with described controller by serial communication interface, described range simulation device is connected with described tested network-termination device with described controller respectively by network interface, and this range simulation device is connected with described local side device by telephone wire.
Should concentrate the controller in the instant inserted and instant using type production test system to comprise serial communication interface module, a control board and several drive plates based on the network-termination device of Linux environment, described serial communication interface module be connected with the operation post device with described range simulation device respectively with several drive plates by described control board according to this.
Should concentrate the control board in the instant inserted and instant using type production test system to comprise central control unit and serial communication controlling unit based on the network-termination device of Linux environment, described serial communication interface module be connected with described drive plate with the serial communication controlling unit by this central control unit according to this.
Should concentrate the serial communication controlling unit in the instant inserted and instant using type production test system to comprise a 74LS138 serial communication chip and two 74LS244 serial communication chips based on the network-termination device of Linux environment, described central control unit is the W77E058A chip, described W77E058A chip is connected with described drive plate by these two 74LS244 serial communication chips respectively, and this W77E058A chip is connected with described drive plate with this 74LS138 serial communication chip by one of them 74LS244 serial communication chip according to this.
Should concentrate the drive plate in the instant inserted and instant using type production test system to comprise a 74LS138 serial communication chip and 8 74LS273 serial communication chips based on the network-termination device of Linux environment, described control board is connected with the operation post device with described range simulation device by these 8 74LS273 serial communication chips respectively, and described control board also is connected with the operation post device with described range simulation device by 8 74LS273 serial communication chips of this 74LS138 serial communication chip and this according to this.
Should concentrate the range simulation device in instant inserted and instant using type production test system to comprise based on network-termination device of Linux environment, describedly all be connected with 4.5 kilometers analog functional modules with described 0 kilometer analog functional module, 3.5 kilometers analog functional modules respectively apart from the Simulation Control module apart from Simulation Control module, 0 kilometer analog functional module, 3.5 kilometers analog functional modules and 4.5 kilometers analog functional modules.
Should concentrate the operation post device in the instant inserted and instant using type production test system to be provided with LED light based on the network-termination device of Linux environment, described test main control system be a PC.
This utilizes above-mentioned system to carry out the method that network-termination device is concentrated the instant inserted and instant using type production test, and its main feature is that described method may further comprise the steps:
(1) system carries out user log-in authentication according to user's operation;
(2) after user log-in authentication passed through, system entered configuration interface according to user's operation, carried out the test configurations operation;
(3) system enters test interface and reading configuration file information according to user's operation;
(4) if read unsuccessfully, then system withdraws from;
(5), then start test process according to profile information if read success;
(6) system carries out corresponding test processes operation;
(7) system writes test result file with the result of test processes;
(8) system's read test destination file, and in the test interface information that shows test results;
(9) system shows test results by controller control operation table apparatus;
(10) if all test event all test by or current test processes result pass through for test not, then the system wait user changes the tested network-termination device of the next one, and returns above-mentioned steps (6);
(11) otherwise, system directly returns above-mentioned steps (6).
This carries out network-termination device and concentrates the test processes operation in the method for instant inserted and instant using type production test may further comprise the steps:
(61) test process calls test module, and carries out the basic test information processing;
(62) test process is tested tested network-termination device by network service according to each concrete test item, and writes down corresponding test result;
(63) corresponding test simulation distance is switched by the range simulation device in system.
Adopted the Linux environment lower network terminal equipment of this invention to concentrate plug and play production test system and method, owing to wherein adopted centralized fashion, many network-termination devices of i.e. computer of people production test simultaneously, and adopted the mode of plug and play, promptly software can directly continue next network-termination device of production test after a certain network-termination device production test finished, used a PC to finish distance control in the simultaneity factor, data acquisition, functions such as data analysis, adopted Ubuntu operating system based on linux kernel, by serial ports transmission range simulation control command, test via switch by network interface, and by LED lamp and display demonstration test case, thereby obviously improved the testing efficiency of network-termination device, changed the production test pattern of the existing a pair of same form, significantly reduced the production cost of network-termination device, production test efficient and accuracy have been improved, and stable and reliable working performance, the scope of application is comparatively extensive, can be at Modem, disparate networks such as router and switch terminal equipment carries out production test, brings great convenience for people's work and life.
Description of drawings
Fig. 1 is that Linux environment lower network terminal equipment of the present invention is concentrated plug and play production test entire system configuration diagram.
Fig. 2 is that Linux environment lower network terminal equipment of the present invention concentrates the controller function module in the plug and play production test system to form schematic diagram.
Fig. 3 is that Linux environment lower network terminal equipment of the present invention is concentrated the control board structural representation in the plug and play production test system.
Fig. 4 is that Linux environment lower network terminal equipment of the present invention is concentrated the drive plate structural representation in the plug and play production test system.
Fig. 5 is that Linux environment lower network terminal equipment of the present invention is concentrated the range simulation device structural representation in the plug and play production test system.
Fig. 6 is that Linux environment lower network terminal equipment of the present invention is concentrated plug and play production test method overall workflow figure.
Embodiment
In order more to be expressly understood technology contents of the present invention, describe in detail especially exemplified by following examples.
See also Fig. 1 to shown in Figure 5, should concentrate instant inserted and instant using type production test system based on the network-termination device of Linux environment, wherein, described system comprises the test main control system, switch device, the range simulation device, controller, operation post device drawn game end device, described test main control system is connected with the operation post device with described range simulation device respectively by described controller, described test main control system also is connected by the tested network-termination device of described switch device and several, and described local side device is connected with these several tested network-termination device by described range simulation device.
Wherein, the switch that comprises several mutual cascades in the described switch device, the switch on described cascade top is connected by the network port of the network port with the test main control system, and the switch of described cascade end is connected with described several tested network-termination devices by the network port, described test main control system is connected with described controller by serial communication interface, described range simulation device is connected with described tested network-termination device with described controller respectively by network interface, and this range simulation device is connected with described local side device by telephone wire.
Simultaneously, described controller comprises serial communication interface module, a control board and several drive plates, and described serial communication interface module is connected with the operation post device with described range simulation device respectively with several drive plates by described control board according to this; The control board that is somebody's turn to do comprises central control unit and serial communication controlling unit, and described serial communication interface module is connected with described drive plate with the serial communication controlling unit by this central control unit according to this; Described serial communication controlling unit comprises a 74LS138 serial communication chip and two 74LS244 serial communication chips, described central control unit is the W77E058A chip, described W77E058A chip is connected with described drive plate by these two 74LS244 serial communication chips respectively, and this W77E058A chip is connected with described drive plate with this 74LS138 serial communication chip by one of them 74LS244 serial communication chip according to this; Described drive plate comprises a 74LS138 serial communication chip and 8 74LS273 serial communication chips, described control board is connected with the operation post device with described range simulation device by these 8 74LS273 serial communication chips respectively, and described control board also is connected with the operation post device with described range simulation device by 8 74LS273 serial communication chips of this 74LS138 serial communication chip and this according to this.
Moreover, described range simulation device comprises apart from Simulation Control module, 0 kilometer analog functional module, 3.5 kilometers analog functional modules and 4.5 kilometers analog functional modules, describedly all is connected with 4.5 kilometers analog functional modules with described 0 kilometer analog functional module, 3.5 kilometers analog functional modules respectively apart from the Simulation Control module.
And described operation post device is provided with LED light, and described test main control system is a PC.
In the middle of reality was used, the present invention was different from existing production model and mainly contains 2 points:
(1) centralized, be exactly many network-termination devices of computer of people production test simultaneously.
(2) instant inserted and instant using type, software can directly continue next network-termination device of production test after a certain network-termination device production test finished exactly.
The needed instrument and equipment of system of the present invention has PC, operation post (LED light is housed), switch, range simulation device, controller, local side etc.Operation post is the platform of production test.Switch is used for dividing the VLAN mouth, each mouthful connects a network-termination device, the centralized support that provides on the hardware is provided, its Truck mouth links to each other with the network interface of PC, each port that disposed VLAN then is connected (general switch has 24 mouthfuls and 48 mouthfuls, if not enough then can realize by the cascade of switch) with network-termination device.The range simulation device connects local side on one side, connect network-termination device on one side, it is the analogue zero kilometer simultaneously, 3.5 kilometer and 4.5 kilometers distance, the distance switching is controlled by controller, that is to say that the range simulation device has three lines to be connected with outside, and one by netting twine connection network-termination device, one connects local side by telephone wire, and one connects controller by netting twine.The serial ports of controller one edge joint PC is said the word to controller by PC, by netting twine connect LED lamp and range simulation device on one side.Local side is connected with the range simulation device by telephone wire.
Simultaneously, this system uses a PC to finish distance control, data acquisition, functions such as data analysis.Adopt Ubuntu operating system, by serial ports transmission range simulation control command, test via switch, and show test case by LED lamp and display by network interface.
See also Fig. 2 again to shown in Figure 4, the function of controller is exported 512 road high-low levels, command range simulator and LED lamp for understanding the host computer order.Convenient based on installation and drawing board, entire controller is divided into 2 kinds of pcb boards.A kind of is controller board, 1, be responsible for the PC communication, and understand the PC order, assign information to drive plate.The master chip of this plate is the magnificent W77E058A of nation chip, and uses 1 74LS138, and 2 74LS244 are divided into 8 bit data positions with the I/O mouth, and 3 chips are selected the position, and 3 plates select signal to use for drive plate.Another kind is a drive plate, totally 8, is responsible for the output to the high-low level of external port.Every drive plate uses 1 74LS138 chip, 8 74LS273 chips.Use network interface as signal output port.
See also shown in Figure 5ly again, in the range simulation device, each road range simulation device uses 3 road high-low levels control, respectively respective distances simulator 0Km, 3.5Km and 4.5Km state.Totally 16 groups of range simulation devices.The range simulation device adopts inductance, electric capacity, resistance to build, and simulates different distances with different sense value appearance value resistances.The simulated range of the required test of our company's product is 3.5Km, 4.5Km, and also the scalable components and parts are simulated other distance.
See also shown in Figure 6ly again, this utilizes above-mentioned system to carry out the method that network-termination device is concentrated the instant inserted and instant using type production test, comprising following steps:
(1) system carries out user log-in authentication according to user's operation;
(2) after user log-in authentication passed through, system entered configuration interface according to user's operation, carried out the test configurations operation;
(3) system enters test interface and reading configuration file information according to user's operation;
(4) if read unsuccessfully, then system withdraws from;
(5), then start test process according to profile information if read success;
(6) system carries out corresponding test processes operation, may further comprise the steps:
(a) test process calls test module, and carries out the basic test information processing;
(b) test process is tested tested network-termination device by network service according to each concrete test item, and writes down corresponding test result;
(c) corresponding test simulation distance is switched by the range simulation device in system;
(7) system writes test result file with the result of test processes;
(8) system's read test destination file, and in the test interface information that shows test results;
(9) system shows test results by controller control operation table apparatus;
(10) if all test event all test by or current test processes result pass through for test not, then the system wait user changes the tested network-termination device of the next one, and returns above-mentioned steps (6);
(11) otherwise, system directly returns above-mentioned steps (6).
In the middle of reality is used, centralized for realizing, program adopts and hairdo is carried out, main solution is according to the starting symbol of setting in advance and finishes number to generate a plurality of processes, each process is all carried out similar concrete test code, and shared data between the whole process and employing synchronously is that the mode that the V of system memory shared and file are locked realizes.A problem is that every computer has only one or two network interface cards, should how to connect the good PC of management of many Modem and rational and orderly and the communication between each Modem simultaneously? solution is exactly that each VLAN mouth of Modem and switch is linked to each other.Program then links to each other with the VLAN mouth of switch by each virtual network port of Linux.Since whole system need test that up-downgoing speed function under each distance and indication test finish display result, so increased a bright dark situation that controller board comes the simulation of command range and the LED lamp that control shows test results.Concrete production test procedure is made an executable file separately, is called by sh by principal function and carries out concrete production test module.After program brought into operation, program can each variable of initialization.The for example number of beginning, finish number, control order that each process is shared or the like.These essential informations are that the form with file is kept under the respective directories, and file content is read when program initialization, is read into behind the end of run.According to the beginning that obtains number with finish number for each number plays a process, each process is called corresponding test module by sh then.
The command format that calls test module is as follows:
./test <interface><ftp_ip><filename> <macaddr> <current?pid>。
This time, each subprocess was carried out program separately, and test process is to communicate by letter with host process by the mode of file with the result.Host process judges that by reading separately corresponding fileinfo thereby the testing procedure of each subprocess and test result make corresponding action.The mode that may transmit has Post, Put etc.Socket programming under the linux system and the curl class libraries under the linux system can be finished this requirement, and this submodule can be write detecting information in the specific file in real time.The following up-downgoing rate verification of the logical packet loss test of checking, ping, each distance that test module mainly contains the software essential information, the download of the ftp under the specific range etc.Relatively independent between each testing procedure, and wherein any one test does not just think that no longer this machine is defective by sundry item.Its basic principle and other two module class like but need to prove that controller will control simultaneously that the distance of all Modem is switched and the state of LED lamp, must can not influence each other between them, otherwise lose the meaning of distance switching and the demonstration of LED lamp.Just need be in order to finish this purpose the order that sends as global variable and be set to critical variable and be the variable that all processes can both be visited, guarantee all when this order being made amendment that other subprocesss can not make amendment to it at every turn.What this invention was adopted is to realize having only a process that this global variable is made amendment with the mode that file is locked at every turn, adopts the mode of the V of system memory shared to realize all processes sharing this order.The concrete use of this order is such: after testing software finishes logical packet loss test of ping and software verification, give an order by PC and to allow controller that the range simulation device is switched to zero kilometer, wait for that then Modem is connected to local side, obtain the up-downgoing rate value judge whether by, PC sends the order that switches to three kilometers and must be worth judgement if test so by zero kilometer.After waiting each distance performance test down to finish, thus carry out under Modem ins succession the situation of outside line that ftp downloads and according to downloaded files size and the speed of downloading used Time Calculation ftp download judge whether by.So will obtain signal and allow the still green light that sends out a warning such as LED according to the test result that obtains Deng host process behind the subprocess EOT.
The realization of instant inserted and instant using type is by circulation and each test process is provided with a marker bit flagarry[n] [1] to write down Modem be in test or EOT.Each subprocess in the process of implementation testing procedure and test result all can be real-time write in the detecting information file, when each subprocess in running, host process also begins these detecting information files of poll, and according to real-time refresh testing step of test file and the necessary data that obtains, when obtaining test result for failure or after successfully finishing, except on state to show test results and bright LED lamp, this time, the flag bit of this machine of EOT also can be changed to 1, it is 0 in the test process, if host process can be to go also to judge that this value of value of this flag bit has been 1 at poll detecting information file, next step just begins to have prepared for next machine test so.This is just in a door being set for the process number of each Modem correspondence, host process in test, can go to inquire about this be close or hold, this closes at ordinary times, what this was exactly out behind EOT at that time, host process just began to do production test for next machine of this port and prepared this time.First following step judges exactly when Modem is changed, because the MAC Address of two machines that will dispatch from the factory is unique, go so when subprocess is tested, can record the MAC Address of the machine of working as Pretesting in the specific file automatically, judgement is that same machine compares according to this address and current MAC Address exactly, if also being changed, identical then machine can not begin new test, when can not get the current address then is to change planes in the device process, then is familiar with machine and is changed when the MAC Address that obtains and current address are inequality.This time is according to the above-mentioned command format that provides, configuration parameter and to generate the new subprocess of new production test just passable.
Realizing promptly inserting is that brake can be enhanced productivity greatly, and the corresponding promptly slotting code of promptly surveying is as follows:
int?all_loop_start(char*eth_name,int?vlan_start,int?vlan_end)
{
int?i;
for(i=vlan_start;i<=vlan_end;i++)
{
if(flagarry[i-vlan_start][1]==0)continue;
char?newmac[50]=″00-00-00-00-00-00″;
char?sip[50],serfile[50],ldevice[50];
char?interface[50];
char?cmd[128];
char?*lmac=NULL;
int?isret=0;
lmac=read_lmac(i);
if(lmac==NULL)lmac=″^_^″;
isret=is_same_or_not(i,lmac,vlan_start);
if(isret!=1)?continue;
If (isret==1) printf (" VLAN %d change cat finish n ", i);
int?port_ret;
if(strcmp(lmac,″^_^″)==0)port_ret=port_value_solve(3,i);
if(open_software==1&&macopt==1)
{
loopmacaddr[0]=′\0′;
get_loop_fork(i);
Printf (" macaddr that obtains be %s n ", loopmacaddr);
strcpy(newmac,loopmacaddr);
int?int_row;
GdkColor color;
char?*text[2];
int_row=i-vlan_start;
text[0]=NULL;
text[0]=loopmacaddr;
gtk_clist_set_text (GTK_CLIST(clist_test),int_row,1,text[0]);
gtk_clist_set_foreground (GTK_CLIST(clist_test),int_row,&color);
while?(gtk_events_pending ())
gtk_main_iteration?();
}
sprintf(interface,″%s.%d″,eth_name,i);
strcpy(sip,test_config_table[0].varValue);
strcpy(serfile,test_config_table[1].varValue);
sprintf(cmd,″./test?%s?%s?%s?%s?%d″,interface,sip,serfile,newmac,
getpid());
printf(″%s\n″,cmd);
clean_its_log(i);
int?int_row=0;
char?*text[2];
char?flush[50];
GdkColor color;
gdk_color_parse(″blue″,&color);
int_row=i-vlan_start;
In strcpy (the flush, " test ... ");
text[0]=NULL;
text[0]=flush;
gtk_clist_set_text(GTK_CLIST(clist_test),int_row,2,text[0]);
gtk_clist_set_foreground?(GTK_CLIST(clist_test),int_row,&color);
while?(gtk_events_pending?())
gtk_main_iteration?();
tagarry[i-vlan_start][1]=0;
flagarry[i-vlan_start][1]=0;
SystemFtp(cmd,1);
}
}
As follows with the frame communication cryptology:
int?cmd_change_value(int?port,int?status)
{
float?ret,lret;
int?iret,mret,fret,lrret;
int?checksum;
char?temp[10];
ret=port/4.0;
lret=port/8.0;
lrret=ceil(lret);
iret=ceil(ret);
mret=4-(4*iret-port);
fret=4*(iret-1);
if(mret<=2)fret++;
else?fret+=2;
fret+=8;
fret--;
Printf (" the final %d## of the %d### that the concrete %d of ### is big n ", mret, iret, fret);
if(port_cmd[fret]==0x31&&(mret%2==1)&&status==1)port_cmd[fret]=0x35;//
else?if(port_cmd[fret]==0x31&&(mret%2==1)&&status==0)port_cmd[fret]=0x39;//
else?if(port_cmd[fret]==0x31&&(mret%2==0)&&status==1)port_cmd[fret]=0x31;
else?if(port_cmd[fret]==0x31&&(mret%2==0)&&status==0)port_cmd[fret]=0x32;
else?if(port_cmd[fret]==0x32&&(mret%2==1)&&status==1)port_cmd[fret]=0x36;//
else?if(port_cmd[fret]==0x32&&(mret%2==1)&&status==0)port_cmd[fret]=0x41;//
else?if(port_cmd[fret]==0x32&&(mret%2==0)&&status==1)port_cmd[fret]=0x31;
else?if(port_cmd[fret]==0x32&&(mret%2==0)&&status==0)port_cmd[fret]=0x32;
else?if(port_cmd[fret]==0x34&&(mret%2==1)&&status==1)port_cmd[fret]=0x34;
else?if(port_cmd[fret]==0x34&&(mret%2==1)&&status==0)port_cmd[fret]=0x38;
else?if(port_cmd[fret]==0x34&&(mret%2==0)&&status==1)port_cmd[fret]=0x35;//
else?if(port_cmd[fret]==0x34&&(mret%2==0)&&status==0)port_cmd[fret]=0x36;//
else?if(port_cmd[fret]==0x38&&(mret%2==1)&&status==1)port_cmd[fret]=0x34;
else?if(port_cmd[fret]==0x38&&(mret%2==1)&&status==0)port_cmd[fret]=0x38;
else?if(port_cmd[fret]==0x38&&(mret%2==0)&&status==1)port_cmd[fret]=0x39;//
else?if(port_cmd[fret]==0x38&&(mret%2==0)&&status==0)port_cmd[fret]=0x41;//
else?if(port_cmd[fret]==0x30&&(mret%2==1)&&status==1)port_cmd[fret]=0x34;
else?if(port_cmd[fret]==0x30&&(mret%2==1)&&status==0)port_cmd[fret]=0x38;
else?if(port_cmd[fret]==0x30&&(mret%2==0)&&status==1)port_cmd[fret]=0x31;
else?if(port_cmd[fret]==0x30&&(mret%2==0)&&status==0)port_cmd[fret]=0x32;
else?if(port_cmd[fret]==0x31&&(mret%2==0)&&status==3)port_cmd[fret]=0x30;
else?if(port_cmd[fret]==0x31&&(mret%2==1)&&status==3)port_cmd[fret]=0x31;
else?if(port_cmd[fret]==0x32&&(mret%2==0)&&status==3)port_cmd[fret]=0x30;
else?if(port_cmd[fret]==0x32&&(mret%2==1)&&status==3)port_cmd[fret]=0x32;
else?if(port_cmd[fret]==0x34&&(mret%2==0)&&status==3)port_cmd[fret]=0x34;
else?if(port_cmd[fret]==0x34&&(mret%2==1)&&status==3)port_cmd[fret]=0x30;
else?if(port_cmd[fret]==0x38&&(mret%2==0)&&status==3)port_cmd[fret]=0x38;
else?if(port_cmd[fret]==0x38&&(mret%2==1)&&status==3)port_cmd[fret]=0x30;
else?if(port_cmd[fret]==0x35&&(mret%2==0)&&status==3)port_cmd[fret]=0x34;
else?if(port_cmd[fret]==0x35&&(mret%2==1)&&status==3)port_cmd[fret]=0x31;
else?if(port_cmd[fret]==0x36&&(mret%2==0)&&status==3)port_cmd[fret]=0x34;
else?if(port_cmd[fret]==0x36&&(mret%2==1)&&status==3)port_cmd[fret]=0x31;
else?if(port_cmd[fret]==0x39&&(mret%2==0)&&status==3)port_cmd[fret]=0x38;
else?if(port_cmd[fret]==0x39&&(mret%2==1)&&status==3)port_cmd[fret]=0x31;
else?if(port_cmd[fret]==0x41&&(mret%2==0)&&status==3)port_cmd[fret]=0x38;
else?if(port_cmd[fret]==0x41&&(mret%2==1)&&status==3)port_cmd[fret]=0x32;
checksum=checksum_get(port_cmd,1,136);
sprintf(temp,″%X″,checksum);
printf(″---%s----\n″,temp);
port_cmd[137]=temp[2];
port_cmd[138]=temp[3];
}
After using system and method for the present invention, the simplest single port Modem is an example with test, needs that test powers on, network interface Ping is logical, DSL connects, connect speed, 3.5Km connects speed, 4.5Km connects speed.
In this Modem product process of test, 1 workman is responsible for a station terminal testing equipment.During test, the workman connects into the test of Modem plug and play in the test environment with Modem, and test is passed through, and then green LED lamp is bright, not by then red LED lamp is bright.The present invention has 16 test ports, can 16 Modem of plug and play test.Press single port Modem testing time opinion, a four-hole Modem testing time is about 3min, and the workman removes and a Modem is installed and takes about 20s under the ideal conditions, and this equipment can satisfy workman's non-stop run condition fully.Whole work just needs not measurement equipment and remove measurement equipment of plug-in mounting.The workman only needs according to the indication of LED lamp, differentiate by or do not pass through.Improved the testing time greatly, improved workman's operating efficiency, the liberation workman tests judgement, worker training's time.Uninterrupted test is per hour tested about 150, and the workman is familiar with the back production capacity can further be increased.
Adopted above-mentioned Linux environment lower network terminal equipment to concentrate plug and play production test system and method, owing to wherein adopted centralized fashion, many network-termination devices of i.e. computer of people production test simultaneously, and adopted the mode of plug and play, promptly software can directly continue next network-termination device of production test after a certain network-termination device production test finished, used a PC to finish distance control in the simultaneity factor, data acquisition, functions such as data analysis, adopted Ubuntu operating system based on linux kernel, by serial ports transmission range simulation control command, test via switch by network interface, and by LED lamp and display demonstration test case, thereby obviously improved the testing efficiency of network-termination device, changed the production test pattern of the existing a pair of same form, significantly reduced the production cost of network-termination device, production test efficient and accuracy have been improved, and stable and reliable working performance, the scope of application is comparatively extensive, can be at Modem, disparate networks such as router and switch terminal equipment carries out production test, brings great convenience for people's work and life.
In this specification, the present invention is described with reference to its certain embodiments.But, still can make various modifications and conversion obviously and not deviate from the spirit and scope of the present invention.Therefore, specification and accompanying drawing are regarded in an illustrative, rather than a restrictive.

Claims (9)

1. the network-termination device based on the Linux environment is concentrated instant inserted and instant using type production test system, it is characterized in that, described system comprises the test main control system, switch device, the range simulation device, controller, operation post device drawn game end device, described test main control system is connected with the operation post device with described range simulation device respectively by described controller, described test main control system also is connected by the tested network-termination device of described switch device and several, described local side device is connected with these several tested network-termination device by described range simulation device, the switch that comprises several mutual cascades in the described switch device, the switch on described cascade top is connected by the network port of the network port with the test main control system, and the switch of described cascade end is connected with described several tested network-termination devices by the network port, described test main control system is connected with described controller by serial communication interface, described range simulation device is connected with described tested network-termination device with described controller respectively by network interface, and this range simulation device is connected with described local side device by telephone wire.
2. the network-termination device based on the Linux environment according to claim 1 is concentrated instant inserted and instant using type production test system, it is characterized in that, described controller comprises serial communication interface module, a control board and several drive plates, and described serial communication interface module is connected with the operation post device with described range simulation device respectively with several drive plates by described control board according to this.
3. the network-termination device based on the Linux environment according to claim 2 is concentrated instant inserted and instant using type production test system, it is characterized in that, described control board comprises central control unit and serial communication controlling unit, and described serial communication interface module is connected with described drive plate with the serial communication controlling unit by this central control unit according to this.
4. the network-termination device based on the Linux environment according to claim 3 is concentrated instant inserted and instant using type production test system, it is characterized in that, described serial communication controlling unit comprises a 74LS138 serial communication chip and two 74LS244 serial communication chips, described central control unit is the W77E058A chip, described W77E058A chip is connected with described drive plate by these two 74LS244 serial communication chips respectively, and this W77E058A chip is connected with described drive plate with this 74LS138 serial communication chip by one of them 74LS244 serial communication chip according to this.
5. the network-termination device based on the Linux environment according to claim 2 is concentrated instant inserted and instant using type production test system, it is characterized in that, described drive plate comprises a 74LS138 serial communication chip and 8 74LS273 serial communication chips, described control board is connected with the operation post device with described range simulation device by these 8 74LS273 serial communication chips respectively, and described control board also is connected with the operation post device with described range simulation device by 8 74LS273 serial communication chips of this 74LS138 serial communication chip and this according to this.
6. the network-termination device based on the Linux environment according to claim 1 is concentrated instant inserted and instant using type production test system, it is characterized in that, described range simulation device comprises apart from Simulation Control module, 0 kilometer analog functional module, 3.5 kilometers analog functional modules and 4.5 kilometers analog functional modules, describedly all is connected with 4.5 kilometers analog functional modules with described 0 kilometer analog functional module, 3.5 kilometers analog functional modules respectively apart from the Simulation Control module.
7. the network-termination device based on the Linux environment according to claim 1 is concentrated instant inserted and instant using type production test system, it is characterized in that described operation post device is provided with LED light, and described test main control system is a PC.
8. one kind is utilized the described system of claim 1 to carry out the method that network-termination device is concentrated the instant inserted and instant using type production test, it is characterized in that described method may further comprise the steps:
(1) system carries out user log-in authentication according to user's operation;
(2) after user log-in authentication passed through, system entered configuration interface according to user's operation, carried out the test configurations operation;
(3) system enters test interface and reading configuration file information according to user's operation;
(4) if read unsuccessfully, then system withdraws from;
(5), then start test process according to profile information if read success;
(6) system carries out corresponding test processes operation;
(7) system writes test result file with the result of test processes;
(8) system's read test destination file, and in the test interface information that shows test results;
(9) system shows test results by controller control operation table apparatus;
(10) if all test event all test by or current test processes result pass through for test not, then the system wait user changes the tested network-termination device of the next one, and returns above-mentioned steps (6);
(11) otherwise, system directly returns above-mentioned steps (6).
9. method of carrying out the concentrated instant inserted and instant using type production test of network-termination device according to claim 8 is characterized in that, described test processes operation may further comprise the steps:
(61) test process calls test module, and carries out the basic test information processing;
(62) test process is tested tested network-termination device by network service according to each concrete test item, and writes down corresponding test result;
(63) corresponding test simulation distance is switched by the range simulation device in system.
CN 200910047110 2009-03-05 2009-03-05 Centralized plug and use production test system and method for network terminal equipment under Linux environment Expired - Fee Related CN101499929B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910047110 CN101499929B (en) 2009-03-05 2009-03-05 Centralized plug and use production test system and method for network terminal equipment under Linux environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910047110 CN101499929B (en) 2009-03-05 2009-03-05 Centralized plug and use production test system and method for network terminal equipment under Linux environment

Publications (2)

Publication Number Publication Date
CN101499929A CN101499929A (en) 2009-08-05
CN101499929B true CN101499929B (en) 2011-04-13

Family

ID=40946819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910047110 Expired - Fee Related CN101499929B (en) 2009-03-05 2009-03-05 Centralized plug and use production test system and method for network terminal equipment under Linux environment

Country Status (1)

Country Link
CN (1) CN101499929B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102955721B (en) * 2011-08-16 2016-05-04 阿里巴巴集团控股有限公司 A kind of pressing creation method and device of testing use
CN105207847B (en) * 2015-09-23 2018-10-12 上海斐讯数据通信技术有限公司 A kind of ethernet test system
CN105657740B (en) * 2016-01-29 2019-06-25 中国联合网络通信集团有限公司 Terminal test method, user terminal, server and system
CN110716877A (en) * 2019-09-30 2020-01-21 拉扎斯网络科技(上海)有限公司 Automatic test method, device, computer system and readable storage medium

Also Published As

Publication number Publication date
CN101499929A (en) 2009-08-05

Similar Documents

Publication Publication Date Title
CN108919778B (en) electric automobile vehicle control unit testing arrangement
CN101499929B (en) Centralized plug and use production test system and method for network terminal equipment under Linux environment
CN104007340A (en) Electronic product aging test system and aging test method
CN111737153B (en) Automatic testing method and system for vehicle machine
CN106776294B (en) Automatic android mobile phone testing method and system
CN102591327B (en) Virtual-real combined test method developed for automobile body control
CN105868111A (en) Automatic testing method and device for mobile terminal game
CN104267715A (en) Vehicle-mounted electronic control unit LIN bus communication automatic testing device and system
CN109406916A (en) A kind of test platform for semiconductor memory ageing tester
CN106154865A (en) A kind of vehicle bus phantom self-generating method and system
CN103268288A (en) Remote real machine debugging method and system of mobile terminal application software
CN102998613A (en) Test system and method capable of realizing parallel testing of circuit board
CN113190454A (en) Real-vehicle test method and system for vehicle-mounted terminal software
CN107688163A (en) A kind of performance detection analytical equipment of user power utilization information acquisition system
CN102340429A (en) Automatic Internet protocol recovery detection method
CN108802944B (en) Intelligent maintenance device of machine room optical fiber distribution frame and optical port positioner thereof
CN111224835A (en) Automatic switching method, device and system for serial port communication modes
CN109141588B (en) Automatic simulation test system for gas meter
CN202075860U (en) Automated testing system of remote control terminal
CN108909777B (en) Railway CIR basic data analysis and verification equipment
CN101354417A (en) Circuit board test device of electrical energy meter based on virtual instrument technique
CN203659446U (en) Portable full-plant DCS debugging device for nuclear power plant
CN203606698U (en) Test equipment of dual-machine hot standby switching board
CN105025108A (en) Mobile terminal based train control system device wireless debugging maintenance method
CN108153668A (en) The adjustment method of application, apparatus and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110413

Termination date: 20170305