CN109947583A - The test method of USB wireless network card driving installation reliability - Google Patents

The test method of USB wireless network card driving installation reliability Download PDF

Info

Publication number
CN109947583A
CN109947583A CN201910160867.6A CN201910160867A CN109947583A CN 109947583 A CN109947583 A CN 109947583A CN 201910160867 A CN201910160867 A CN 201910160867A CN 109947583 A CN109947583 A CN 109947583A
Authority
CN
China
Prior art keywords
usb
connecting line
wireless
plug
connect
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.)
Pending
Application number
CN201910160867.6A
Other languages
Chinese (zh)
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 JIXIANG TENDA TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN JIXIANG TENDA 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 JIXIANG TENDA TECHNOLOGY Co Ltd filed Critical SHENZHEN JIXIANG TENDA TECHNOLOGY Co Ltd
Priority to CN201910160867.6A priority Critical patent/CN109947583A/en
Publication of CN109947583A publication Critical patent/CN109947583A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of test methods of USB wireless network card driving installation reliability, the following steps are included: step S10, will link together by the first USB connecting line for remaining with the first USB plug of shearing, the 2nd USB connecting line for remaining with the second USB plug by shearing and the 3rd USB connecting line for remaining with third USB plug by shearing;First USB plug is connect by step S20 with usb hub, and USB wireless network card to be measured is connect with usb hub;Step S30, the wireless interface that pc client obtains Wireless USB network interface card drive version number, judge whether wireless interface driving version number is consistent with driving version number, if unanimously, pc client transmission re-powers signal to intelligent socket to carry out re-powering operation.Test method of the invention, it is at low cost, the time in each Wireless USB network interface card test process is manually participated in less than 5 minutes.

Description

The test method of USB wireless network card driving installation reliability
Technical field
The invention belongs to USB wireless network card the field of test technology more particularly to a kind of driving installation of USB wireless network card are reliable The test method of property.
Background technique
Currently, most of test USB wireless network card, for example number of patent application is CN201220116515, applies for name Referred to as Wireless USB network card test system, the test method utilized still need to manually go to participate in testing by key module Journey, therefore the degree of automation is low, and entire test process need to use the structures such as solenoid valve, cylinder, greatly improve testing cost. Existing test method, the method for manually installing and unloading repeatedly USB network card driving are very time-consuming.One wireless network card from Be inserted into PC check whether hardware normally identifies, carry out the installation of driver, installation after check that driving version information, unloading drive It is dynamic, a length of at least time of 60 s when needing in total, wireless network card test 1000 installations unloading driving need total duration for H= 60*1000=60000 second ≈ 16.67 hours, this test item needed to put into artificial 16.67 hours.
Therefore, the prior art is to be improved.
Summary of the invention
It is a primary object of the present invention to propose a kind of test method of USB wireless network card driving installation reliability, with solution Certainly mentioned in background technique the technical issues of.
The test method of USB wireless network card driving installation reliability of the invention, comprising the following steps:
Step S10 remains with second by the first USB connecting line for remaining with the first USB plug for passing through shearing, by shearing 2nd USB connecting line of USB plug and the 3rd USB connecting line for remaining with third USB plug by shearing link together;
Step S20, the first USB plug is connect with usb hub, the second USB plug is connect with pc client, by third USB plug is connect with USB Power Adapter, and USB Power Adapter is connect with intelligent socket, USB wireless network card and USB to be measured Hub connection;
Step S30, pc client test Wireless USB network interface card based on the testing time and driving version number inputted, PC Client obtain Wireless USB network interface card wireless interface drive version number, judge wireless interface driving version number whether with driving version This number consistent, if unanimously, pc client transmission re-powers signal to intelligent socket to carry out re-powering operation.
Preferably, include: before step S10
Step S1 shears the first USB connecting line with the first USB plug, to second with the second USB plug USB connecting line is sheared, and is sheared to the 3rd USB connecting line with third USB plug.
Preferably, step S10 is specifically included:
The end D+ of first USB connecting line is connect by step S5 with the end D+ of the 2nd USB connecting line, by the D- of the first USB connecting line End is connect with the end D- of the 2nd USB connecting line;
Step S6, by the end GND, the end GND of the 2nd USB connecting line and the end GND of the 3rd USB connecting line of the first USB connecting line It links together, the end VCC of the first USB connecting line is connect with the end VCC of the 3rd USB connecting line;
Step S7, the end VCC of the 2nd USB connecting line is hanging, the end D+ of the 3rd USB connecting line and the end D- is hanging.
Preferably, pc client includes the computer with USB interface.
The test method of USB wireless network card driving installation reliability of the invention, especially in the class of USB wireless network card Type is free drive network interface card type, is had the advantages that
1, compared with traditional network card testing method for Wireless USB, the present invention by three USB connecting lines by pc client, Test can be completed in intelligent socket, usb hub, Wireless USB network interface card to be measured, USB Power Adapter, low in cost, is not required to Using solenoid valve, cylinder, plug interface module, test environment is greatly simplified.
2, it is connect based on intelligent socket with USB Power Adapter, during the test, pc client obtains Wireless USB net The wireless interface of card drives version number, if wireless interface driving version number is consistent with the driving version number inputted, PC client End sends and re-powers signal to intelligent socket to carry out re-powering operation, avoids manually going to carry out Wireless USB network interface card from USB The operation being inserted into is extracted in hub, greatly improves testing efficiency, the degree of automation.
Detailed description of the invention
Fig. 1 is the process signal of the first embodiment for the test method that USB wireless network card of the present invention drives installation reliability Figure;
Fig. 2 is the flow diagram of the second embodiment for the test method that USB wireless network card of the present invention drives installation reliability;
Fig. 3 is the refinement flow diagram that USB wireless network card of the present invention drives step S10 in the test method of installation reliability;
Fig. 4 is test macro schematic diagram corresponding with the USB wireless network card of the present invention driving test method of installation reliability.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention. It should be noted that relational language such as " first ", " second " can be used for describing various assemblies, but these terms and unlimited Make the component.These terms are only used to distinguish a component and another component.For example, the scope of the present invention is not departed from, first group Part can be referred to as the second component, and the second component can also similarly be referred to as first assembly.Term "and/or" refers to phase It closes item and describes the combination of any one or more of item.
As shown in Figure 1 and Figure 4, the test method of USB wireless network card of the invention driving installation reliability, including following step It is rapid:
Step S10 will pass through the first USB connecting line 31 for remaining with the first USB plug 311 of shearing, by the reservation of shearing There is the 2nd USB connecting line 32 of the second USB plug 321 and connects by the 3rd USB for remaining with third USB plug 331 of shearing Wiring 33 links together;In step slo, it is therefore an objective to which forming a tool, there are three the connecting lines of USB plug, in order to subsequent It can will be connected between pc client 10, USB Power Adapter 30 and usb hub 20.
For step S10, specifically, as shown in Figure 3 and Figure 4, step S10 is specifically included: step S5, and the first USB is connected The end D+ of wiring 31 is connect with the end D+ of the 2nd USB connecting line 32, and the end D- of the first USB connecting line 31 is connect with the 2nd USB The end D- of line 32 connects;Step S6, by the end GND of the first USB connecting line 31, the end GND of the 2nd USB connecting line 32 and third The end GND of USB connecting line 33 links together, and the end VCC of the first USB connecting line and the end VCC of the 3rd USB connecting line are connected It connects;Step S7, the end VCC of the 2nd USB connecting line is hanging, the end D+ of the 3rd USB connecting line and the end D- is hanging.Above-mentioned step Rapid S5, S6 and S7 substantially reduce link cost so that three USB plugs link together, if it is the existing USB line of utilization It arranges in pairs or groups, can additionally utilize a usb hub, therefore can reduce cost here, and pc client is enabled to be sent out The signal that re-powers out is sent to intelligent socket and completes pc client in a manner of by first powering off, being powered afterwards for be measured The identification of USB wireless network card avoids artificial deduplication plug USB wireless network card, greatly improves testing efficiency, automation;On and The connection type for stating three USB connecting lines did not use connectors based on connection type, and only simple connection, mentions The transmission speed of height control signal.Being particularly advantageous to pc client will re-power during signal is sent to intelligent socket.
First USB plug 311 is connect, by the second USB plug 321 and pc client by step S20 with usb hub 20 10 connections, third USB plug 33 is connect with USB Power Adapter 30, and USB Power Adapter 30 is connect with intelligent socket 50, USB wireless network card 88 to be measured is connect with usb hub 20;In step S20, purpose is exactly to utilize formed in step S10 Tool there are three USB plug connecting line complete pc client, usb hub and USB Power Adapter connection.
Step S30, pc client survey Wireless USB network interface card based on the testing time and driving version number inputted Examination, pc client obtain Wireless USB network interface card wireless interface drive version number, judge wireless interface driving version number whether with drive Dynamic version number is consistent, if unanimously, pc client transmission re-powers signal to intelligent socket to carry out re-powering operation.? In step S30, the step of test using pc client USB wireless network card to be measured for tester, wherein PC client End is primarily based on the testing time that tester is inputted and driving version number tests Wireless USB network interface card, specifically, PC Client according to driving version number from be stored in test file obtain with driving version numbers match Test driver file, and benefit Wireless USB network interface card is tested with Test driver file;Then, the wireless interface for obtaining Wireless USB network interface card drives version number, Judge whether wireless interface driving version number is consistent with driving version number, if unanimously, showing that the Wireless USB network interface card is free drive class Type, i.e., included driving;At this point, pc client transmission re-powers signal to intelligent socket to carry out re-powering operation, so that It obtains pc client to go to obtain the wireless interface driving version number being stored in Wireless USB network interface card, then be tested.This ground Side, intelligent socket go to execute re-power operation be it is very crucial, otherwise just need manually to go to connect with usb hub USB wireless network card is extracted, and operation is inserted into, and substantially reduces manual steps, improves testing efficiency.Preferably, PC visitor Family end includes the computer with USB interface.
As shown in Figure 2, it is preferable that include: before step S10
Step S1 shears the first USB connecting line with the first USB plug, to second with the second USB plug USB connecting line is sheared, and is sheared to the 3rd USB connecting line with third USB plug;Step S1 is exactly to utilize three USB connecting line, carries out shearing manipulation respectively, formed three by shearing and the USB connecting lines that remain with USB plug; In order to subsequent test environmental structure, not using valuable structures such as key module, solenoid valves, cost is substantially reduced.
Specifically, in step S30, pc client transmission re-powers signal to intelligent socket to be re-powered Operation, comprising:
Pc client transmission re-powers signal to intelligent socket, and intelligent socket, which executes, closes power supply, judges that intelligent socket switchs State prints judging result, executes and opens power supply, judges intelligent socket switch state, prints judging result, call operation system Input order " netsh wlan show driver ";Judge the drive whether wireless interface driving version number inputs with user's keyboard Dynamic version number is consistent;It generates result file to be sandwiched in C disk, each run generates one all with present system time as log Log file be stored in result file.
It is as follows for test code pre-stored in pc client:
#coding=utf-8
from time import sleep
import requests
import os
import psutil
import time
ac1up = "http://192.168.1.100:8117//devices/mcp2/9/value/1"
ac1down = "http://192.168.1.100:8117//devices/mcp2/9/value/0"
dip="192.168.1.100:8117"
headers = {'Host': '%s'%dip,'Accept':'*/*','Content-Length': '0',' Content-Type': 'application/x-www-form-urlencoded'}
timestr=time.strftime(u"%Y-%m-%d_%H%M%S",time.localtime())
if not os.path.exists(r"C:\result\%s" %timestr):
os.makedirs(r"C:\result\%s" %timestr)
def IOT_test():
p=input("please input test number:")
p=int(p)
q=raw_input("please input nic driver version:")
q1=raw_input("Is it a plug and play network card please input yes or no:")
The path of # storage driver:
if q1=="no":
q2=raw_input("please input driver file path:")
drive_path=q2+r"\Setup.exe"
The drive of # acquisition plug and play network card:
if q1=="yes":
drive_num=len(psutil.disk_partitions())
drive=psutil.disk_partitions()[drive_num-1].device[0]
drive_path=drive+r":\\Setup.exe"
success=0
sleep(5)
for i in range(1,p+1,1):
os.system(drive_path)
sleep(10)
driver_result=os.popen("netsh wlan show driver")
if q in driver_result.read():
print ("No"+str(i)+" test success")
result=1
else:
print ("No"+str(i)+" test fail")
result=0
sleep(3)
# calls driving Uninstaller
os.system("uninstall.au3")
print("uninstall driver success")
sleep(5)
if q1=="yes":
code = requests.post(ac1down,headers=headers)
if code.status_code == 200:
print ("IOT is turn off")
else:
print ("IOT is turn off is ERROR")
sleep(6)
code = requests.post(ac1up,headers=headers)
if code.status_code == 200:
print ("IOT is turn on")
sleep(4)
else:
print ("IOT is turn off is ERROR")
sleep(12)
success=success+result
print("########"+"TEST_SUM: "+str(i)+"\tTEST_SUCCESS: "+str (success)+"#########")
fd=open(r'C:\result\%s\log.txt' %(timestr),"a+")
fd.write("TEST_SUM: "+str(i)+"\tTEST_SUCCESS: "+str(success)+"\ n")
fd.close()
IOT_test()
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment method can Realize by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases the former It is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially makes tribute to the prior art in other words The part offered can be embodied in the form of software products, which is stored in a storage medium (such as ROM/RAM, magnetic disk, CD) in, including some instructions are used so that a terminal device (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (4)

1. a kind of test method of USB wireless network card driving installation reliability, which comprises the following steps:
Step S10 remains with second by the first USB connecting line for remaining with the first USB plug for passing through shearing, by shearing 2nd USB connecting line of USB plug and the 3rd USB connecting line for remaining with third USB plug by shearing link together;
Step S20, the first USB plug is connect with usb hub, the second USB plug is connect with pc client, by third USB plug is connect with USB Power Adapter, and USB Power Adapter is connect with intelligent socket, USB wireless network card and USB to be measured Hub connection;
Step S30, pc client test Wireless USB network interface card based on the testing time and driving version number inputted, PC Client obtain Wireless USB network interface card wireless interface drive version number, judge wireless interface driving version number whether with driving version This number consistent, if unanimously, pc client transmission re-powers signal to intelligent socket to carry out re-powering operation.
2. the test method of USB wireless network card as described in claim 1 driving installation reliability, which is characterized in that step S10 it Before include:
Step S1 shears the first USB connecting line with the first USB plug, to second with the second USB plug USB connecting line is sheared, and is sheared to the 3rd USB connecting line with third USB plug.
3. the test method of USB wireless network card driving installation reliability as described in claim 1, which is characterized in that step S10 tool Body includes:
The end D+ of first USB connecting line is connect by step S5 with the end D+ of the 2nd USB connecting line, by the D- of the first USB connecting line End is connect with the end D- of the 2nd USB connecting line;
Step S6, by the end GND, the end GND of the 2nd USB connecting line and the end GND of the 3rd USB connecting line of the first USB connecting line It links together, the end VCC of the first USB connecting line is connect with the end VCC of the 3rd USB connecting line;
Step S7, the end VCC of the 2nd USB connecting line is hanging, the end D+ of the 3rd USB connecting line and the end D- is hanging.
4. the test method of USB wireless network card driving installation reliability as described in claim 1, which is characterized in that pc client Computer including having USB interface.
CN201910160867.6A 2019-03-04 2019-03-04 The test method of USB wireless network card driving installation reliability Pending CN109947583A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910160867.6A CN109947583A (en) 2019-03-04 2019-03-04 The test method of USB wireless network card driving installation reliability

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910160867.6A CN109947583A (en) 2019-03-04 2019-03-04 The test method of USB wireless network card driving installation reliability

Publications (1)

Publication Number Publication Date
CN109947583A true CN109947583A (en) 2019-06-28

Family

ID=67008248

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910160867.6A Pending CN109947583A (en) 2019-03-04 2019-03-04 The test method of USB wireless network card driving installation reliability

Country Status (1)

Country Link
CN (1) CN109947583A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140297899A1 (en) * 2013-04-02 2014-10-02 Realtek Semiconductor Corporation Universal serial bus network interface controller and operation mode switching method
CN105515811A (en) * 2014-10-14 2016-04-20 中兴通讯股份有限公司 USB wireless network card configuration method, host, USB wireless network card and communication system
CN106982448A (en) * 2017-05-27 2017-07-25 美的智慧家居科技有限公司 Wi Fi module test methods and device and computer-readable recording medium
CN109344023A (en) * 2018-11-02 2019-02-15 郑州云海信息技术有限公司 A kind of test macro and method of server USB3.0 interface stability
CN209312011U (en) * 2019-01-29 2019-08-27 深圳市吉祥腾达科技有限公司 A kind of test macro of USB wireless network card equipment identification certainty

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140297899A1 (en) * 2013-04-02 2014-10-02 Realtek Semiconductor Corporation Universal serial bus network interface controller and operation mode switching method
CN105515811A (en) * 2014-10-14 2016-04-20 中兴通讯股份有限公司 USB wireless network card configuration method, host, USB wireless network card and communication system
CN106982448A (en) * 2017-05-27 2017-07-25 美的智慧家居科技有限公司 Wi Fi module test methods and device and computer-readable recording medium
CN109344023A (en) * 2018-11-02 2019-02-15 郑州云海信息技术有限公司 A kind of test macro and method of server USB3.0 interface stability
CN209312011U (en) * 2019-01-29 2019-08-27 深圳市吉祥腾达科技有限公司 A kind of test macro of USB wireless network card equipment identification certainty

Similar Documents

Publication Publication Date Title
CN103793326B (en) Assembly test method and device
CN104268079B (en) A kind of method and system of POS Application testings
CN109726136A (en) Test method, device, equipment and the storage medium of database
WO2005071545A3 (en) Method and system for rule-based generation of automation test scripts from abstract test case representation
CN104854558A (en) Systems, methods, and computer program products for a software build and load process using a compilation and deployment service
CN111506345B (en) Non-flash memory instruction combination verification method, system, storage medium and terminal
CN110502430B (en) Flexible HIL test center and test method for vehicle electronic control unit
CN108228465A (en) A kind of Software function test method and device
CN101441592A (en) Test system and method of embedded system
CN104932962A (en) USB (Universal Serial Bus) plug testing system and method thereof
CN104834591A (en) Method and system for testing AUTOSAR software component
CN109947583A (en) The test method of USB wireless network card driving installation reliability
CN105738720A (en) Electronic product test method, device and system
CN102620746A (en) Navigator testing system
CN102201877B (en) Method and apparatus for testing air interface of TTCN (Testing and Test Control Notation)-3-based digital interphone
CN108073516A (en) One kind is towards airborne embedded software data-driven testing engine design method
CN113079061A (en) Internet of things performance testing method and system
CN109766276A (en) Open platform test method, device, computer readable storage medium and system
US8319517B2 (en) Generator tester
CN108875368A (en) A kind of safety detection method, apparatus and system
CN101452419A (en) Remote testing system and method based on remote installation technology
US20220058530A1 (en) Method and device for optimizing deep learning model conversion, and storage medium
CN115629815A (en) FPGA prototype verification platform capable of verifying EMMC user interface
CN208938094U (en) A kind of universal serial bus test macro
CN111427764B (en) Test method for software and hardware adaptation of electronic government project

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190628

WD01 Invention patent application deemed withdrawn after publication