CN105024882A - C/S structure based WIFI communication testing system and method - Google Patents

C/S structure based WIFI communication testing system and method Download PDF

Info

Publication number
CN105024882A
CN105024882A CN201510438548.9A CN201510438548A CN105024882A CN 105024882 A CN105024882 A CN 105024882A CN 201510438548 A CN201510438548 A CN 201510438548A CN 105024882 A CN105024882 A CN 105024882A
Authority
CN
China
Prior art keywords
file
computer
control module
testing
terminal
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
CN201510438548.9A
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.)
SHANGHAI GETEST INFORMATION TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI GETEST INFORMATION 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 SHANGHAI GETEST INFORMATION TECHNOLOGY Co Ltd filed Critical SHANGHAI GETEST INFORMATION TECHNOLOGY Co Ltd
Priority to CN201510438548.9A priority Critical patent/CN105024882A/en
Publication of CN105024882A publication Critical patent/CN105024882A/en
Pending legal-status Critical Current

Links

Abstract

The inventiondiscloses a C/S structure based WIFI communication testing system and method. The system includes a testing control module, a wireless routing module and at least one terminal. The wireless routing module is connected to the testing control module and the terminals separately. The terminals are in Socket connection with the testing control module. The testing control module transmits file content to the terminals in a form of network packages. The terminals receive files and judge whether the files are received successfully. After the terminals receive the files successfully, the success result is sent back to the testing control module. According to the invention, C/S structure based control and application of communication software are realized on compute and terminal sides, and control and communication functions are realized conveniently and flexibly through feasible hardware equipment combination.

Description

Based on WIFI communication test macro and the method for C/S framework
Technical field
The invention belongs to communication test technical field, relate to a kind of WIFI communication test macro, particularly relate to a kind of WIFI communication test macro based on C/S framework; Meanwhile, the invention still further relates to a kind of WIFI communication method of testing based on C/S framework.
Background technology
When the batch production of end product, need conputer controlled end product to carry out transfer files or carry out the base band of end product or the performance test of radio frequency aspect.Conputer controlled end product also communicates common mode by serial ports or USB port with end product, and for current intelligent machine, USB is modal control and communication mode.But on-the-spot in batch production, there are following two major defects by the communication of USB control terminal product:
If 1. end product just in testing, the electromagnetic field formed in USB cable communication process or the subsidiary metallic character of USB can produce very erratic impact to the base band of end product or radio-frequency (RF) index, cause test by mistake, reduce test quality.
2. USB line too much between computer and end product is relatively more mixed and disorderly, bad maintenance, and it is attractive in appearance to affect production scene.
In view of this, nowadays in the urgent need to designing a kind of new method of testing, to overcome the above-mentioned defect of existing test mode.
Summary of the invention
Technical problem to be solved by this invention is: provide a kind of WIFI communication test macro based on C/S framework, can solve the problem of end product production scene usb communication interference.
In addition, the present invention also provides a kind of WIFI communication method of testing based on C/S framework, can solve the problem of end product production scene usb communication interference.
For solving the problems of the technologies described above, the present invention adopts following technical scheme:
Based on a WIFI communication test macro for C/S framework, described system comprises testing control module, wireless routing module, at least one end product, and described wireless routing module is connected with testing control module, each end product respectively;
Each end product and testing control module are set up Socket and are connected, and testing control module sends file content to each end product in the mode of network packet;
Each end product receives file, and end product side judges that whether file reception is successful; Each end product receives file success, by successful result feedback to testing control module.
Based on a WIFI communication test macro for C/S framework, described system comprises testing control module, wireless routing module, at least one end product, and described wireless routing module is connected with testing control module, each end product respectively;
Described testing control module is set up Socket with each end product and is connected, and testing control module starts test instrumentation, controls each end product and carries out radio-frequency transmissions; The radiofrequency signal of each end product measured by testing control module control instrument, and analyzes radiofrequency signal measurement result, judges whether measurement result is passed through.
As a preferred embodiment of the present invention, described testing control module comprises control program, a TCP/UDP communication unit, first network driver element, and described end product comprises communication unit, the 2nd TCP/UDP communication unit, second network driver element;
Described testing control module is carried out transmission by a TCP/UDP communication unit, end product by the 2nd TCP/UDP communication unit and is controlled;
Described testing control module is by first network driver element and wireless routing model calling, and end product is by second network driver element and wireless routing model calling.
Based on a WIFI communication method of testing for C/S framework, described method comprises the steps:
Step S101: system flow starts.
Step S102: computer is become local area network (LAN) with first terminal product, the second end product by router component.
Step S103: Socket successful connection set up by first terminal product and the second end product and computer.
Step S104: the file that the control program of computer will transmit reads in computer memory.
Step S105: computer precalculates quantity of documents, the size that will transmit, and calculate each file checksum value.
Step S106: the control program of computer sends each file and checksum value corresponding to file to first terminal product and the second end product in the mode of network packet simultaneously.
Step S107: first terminal product and the second end product start to receive file.
Step S108: whether file transfer is successful.End product side joint receives file, and calculate the checksum value of each file in end side, and the checksum value received compares, and if the same receives file success, until all files finish receiving all like this, it is exactly otherwise file transfer failure.
Step S109: after first terminal product and the second end product receive All Files success, by final successfully result feedback to computer program.
Step S110: computer program display file transmission success.
Step S111: first terminal product and the second end product receive file failure, by the result feedback of failure to computer program.
Step S112: computer program display file bust this.
Step S113: computer release is connected with the socket of first terminal product and the second end product.
Step S114: flow process terminates.
Based on a WIFI communication method of testing for C/S framework, described method comprises the steps:
Step S101: system flow starts.
Step S102: by computer and at least one end product composition local area network (LAN);
Step S103: Socket successful connection set up by each end product and computer;
Step S104: the file that the control program of computer will transmit reads in calculator memory;
Step S105: computer precalculates quantity of documents, the size that will transmit, and calculate each file checksum value;
Step S106: the control program of computer sends each file and checksum value corresponding to file to each end product in the mode of network packet simultaneously;
Step S107: each end product starts to receive file;
Step S108: judge that whether file transfer is successful; End product side joint receives file, and the checksum value of each file is calculated in end side, compare with the checksum value received, if the same file success is received, until all files finish receiving all by the way, think that file transfer is successful, otherwise think that file transfer is failed;
Step S109: after each end product receives All Files success, by final successfully result feedback to the control program of computer;
Step S110: the control program display file transmission success of computer;
Step S111: each end product receives file failure, by the result feedback of failure to the control program of computer;
Step S112: the control program display file bust this of computer;
Step S113: computer release is connected with the socket of each end product;
Step S114: flow process terminates.
Beneficial effect of the present invention is: the WIFI communication test macro based on C/S framework that the present invention proposes and method, utilize existing WIFI wireless communication technology, controlled in wireless and the communication port of an one-to-many topological structure is set up between computer and end product, be used for alternative original USB line control mode, realize computer to the control of end product with communicate, solve two more serious problems that current production scene exists.
Computer direct was connected WIFI and was connected with end product, and just simple realization equipment connection, cannot realize the special control in production scene and communication function, more cannot realize a computer and carry out controlling and communicating with multiple stage end product simultaneously.The present invention, by realizing at computer and end product side controlling and communication software based on the framework of C/S, realizes convenient, flexible control and communication function by feasible combination of hardware devices.
Accompanying drawing explanation
Fig. 1 is the block diagram of present system software module.
Fig. 2 is the software interactive flow chart based on TCP/UDP.
Fig. 3 is the flow chart based on the WIFI communication method of testing of C/S framework in embodiment one.
Embodiment
The preferred embodiments of the present invention are described in detail below in conjunction with accompanying drawing.
Embodiment one
Refer to Fig. 1 to Fig. 2, present invention is disclosed a kind of WIFI communication test macro based on C/S framework, in native system, end product one drags many transfer files.
Described system comprises testing control module, wireless routing module, at least one end product, and described wireless routing module is connected with testing control module, each end product respectively.The quantity of end product can be 1, more than 2 or 2.
Each end product and testing control module are set up Socket and are connected, and testing control module sends file content to each end product in the mode of network packet.
Each end product receives file, and end product side judges that whether file reception is successful; Each end product receives file success, by successful result feedback to testing control module.
Preferably, described testing control module comprises control program, a TCP/UDP communication unit, first network driver element, and described end product comprises communication unit, the 2nd TCP/UDP communication unit, second network driver element.
Described testing control module is carried out transmission by a TCP/UDP communication unit, end product by the 2nd TCP/UDP communication unit and is controlled.
Described testing control module is by first network driver element and wireless routing model calling, and end product is by second network driver element and wireless routing model calling.
Originally return and disclose a kind of WIFI communication method of testing based on C/S framework, refer to Fig. 3, described method of testing comprises the steps:
Step S101: system flow starts.
Step S102: computer is become local area network (LAN) with first terminal product, the second end product by router component.
Step S103: Socket successful connection set up by first terminal product and the second end product and computer.
Step S104: the file that the control program of computer will transmit reads in computer memory.
Step S105: computer precalculates quantity of documents, the size that will transmit, and calculate each file checksum value.
Step S106: the control program of computer sends each file and checksum value corresponding to file to first terminal product and the second end product in the mode of network packet simultaneously.
Step S107: first terminal product and the second end product start to receive file.
Step S108: whether file transfer is successful.End product side joint receives file, and calculate the checksum value of each file in end side, and the checksum value received compares, and if the same receives file success, until all files finish receiving all like this, it is exactly otherwise file transfer failure.
Step S109: after first terminal product and the second end product receive All Files success, by final successfully result feedback to computer program.
Step S110: computer program display file transmission success.
Step S111: first terminal product and the second end product receive file failure, by the result feedback of failure to computer program.
Step S112: computer program display file bust this.
Step S113: computer release is connected with the socket of first terminal product and the second end product.
Step S114: flow process terminates.
In sum, the WIFI communication test macro based on C/S framework that the present invention proposes and method, by realizing at computer and end product side controlling and communication software based on the framework of C/S, realize convenient, flexible control and communication function by feasible combination of hardware devices.
Here description of the invention and application is illustrative, not wants by scope restriction of the present invention in the above-described embodiments.Distortion and the change of embodiment disclosed are here possible, are known for the replacement of embodiment those those of ordinary skill in the art and the various parts of equivalence.Those skilled in the art are noted that when not departing from spirit of the present invention or substantive characteristics, the present invention can in other forms, structure, layout, ratio, and to realize with other assembly, material and parts.The occasion that when survey, functional test, antenna-coupled test are combined in the calibration being such as applied in mobile terminal, computer communicates with the control of terminal.When not departing from the scope of the invention and spirit, can other distortion be carried out here to disclosed embodiment and change.

Claims (5)

1. based on a WIFI communication test macro for C/S framework, it is characterized in that, described system comprises testing control module, wireless routing module, at least one end product, and described wireless routing module is connected with testing control module, each end product respectively;
Each end product and testing control module are set up Socket and are connected, and testing control module sends file content to each end product in the mode of network packet;
Each end product receives file, and end product side judges that whether file reception is successful; Each end product receives file success, by successful result feedback to testing control module.
2. based on a WIFI communication test macro for C/S framework, it is characterized in that, described system comprises testing control module, wireless routing module, at least one end product, and described wireless routing module is connected with testing control module, each end product respectively;
Described testing control module is set up Socket with each end product and is connected, and testing control module starts test instrumentation, controls each end product and carries out radio-frequency transmissions; The radiofrequency signal of each end product measured by testing control module control instrument, and analyzes radiofrequency signal measurement result, judges whether measurement result is passed through.
3. the WIFI communication method of testing based on C/S framework according to claim 1 and 2, is characterized in that:
Described testing control module comprises control program, a TCP/UDP communication unit, first network driver element, and described end product comprises communication unit, the 2nd TCP/UDP communication unit, second network driver element;
Described testing control module is carried out transmission by a TCP/UDP communication unit, end product by the 2nd TCP/UDP communication unit and is controlled;
Described testing control module is by first network driver element and wireless routing model calling, and end product is by second network driver element and wireless routing model calling.
4. based on a WIFI communication method of testing for C/S framework, it is characterized in that, described method comprises the steps:
Step S101: system flow starts.
Step S102: computer is become local area network (LAN) with first terminal product, the second end product by router component;
Step S103: Socket successful connection set up by first terminal product and the second end product and computer;
Step S104: the file that the control program of computer will transmit reads in computer memory;
Step S105: computer precalculates quantity of documents, the size that will transmit, and calculate each file checksum value;
Step S106: the control program of computer sends each file and checksum value corresponding to file to first terminal product and the second end product in the mode of network packet simultaneously;
Step S107: first terminal product and the second end product start to receive file.
Step S108: whether file transfer is successful.End product side joint receives file, and calculate the checksum value of each file in end side, and the checksum value received compares, and if the same receives file success, until all files finish receiving all like this, it is exactly otherwise file transfer failure.
Step S109: after first terminal product and the second end product receive All Files success, by final successfully result feedback to computer program.
Step S110: computer program display file transmission success.
Step S111: first terminal product and the second end product receive file failure, by the result feedback of failure to computer program.
Step S112: computer program display file bust this.
Step S113: computer release is connected with the socket of first terminal product and the second end product.
Step S114: flow process terminates.
5. based on a WIFI communication method of testing for C/S framework, it is characterized in that, described method comprises the steps:
Step S101: system flow starts.
Step S102: by computer and at least one end product composition local area network (LAN);
Step S103: Socket successful connection set up by each end product and computer;
Step S104: the file that the control program of computer will transmit reads in calculator memory;
Step S105: computer precalculates quantity of documents, the size that will transmit, and calculate each file checksum value;
Step S106: the control program of computer sends each file and checksum value corresponding to file to each end product in the mode of network packet simultaneously;
Step S107: each end product starts to receive file;
Step S108: judge that whether file transfer is successful; End product side joint receives file, and the checksum value of each file is calculated in end side, compare with the checksum value received, if the same file success is received, until all files finish receiving all by the way, think that file transfer is successful, otherwise think that file transfer is failed;
Step S109: after each end product receives All Files success, by final successfully result feedback to the control program of computer;
Step S110: the control program display file transmission success of computer;
Step S111: each end product receives file failure, by the result feedback of failure to the control program of computer;
Step S112: the control program display file bust this of computer;
Step S113: computer release is connected with the socket of each end product;
Step S114: flow process terminates.
CN201510438548.9A 2015-07-23 2015-07-23 C/S structure based WIFI communication testing system and method Pending CN105024882A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510438548.9A CN105024882A (en) 2015-07-23 2015-07-23 C/S structure based WIFI communication testing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510438548.9A CN105024882A (en) 2015-07-23 2015-07-23 C/S structure based WIFI communication testing system and method

Publications (1)

Publication Number Publication Date
CN105024882A true CN105024882A (en) 2015-11-04

Family

ID=54414607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510438548.9A Pending CN105024882A (en) 2015-07-23 2015-07-23 C/S structure based WIFI communication testing system and method

Country Status (1)

Country Link
CN (1) CN105024882A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107426563A (en) * 2017-05-27 2017-12-01 四川长虹电器股份有限公司 The method for testing TV WIFI performances
WO2018103447A1 (en) * 2016-12-07 2018-06-14 广东欧珀移动通信有限公司 Method and device for enabling wi-fi/hotspot

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1261698A (en) * 1998-12-09 2000-08-02 国际商业机器公司 Figure interface and system for copying set-up to multiple network equipment
CN1304098A (en) * 2000-01-07 2001-07-18 神达电脑股份有限公司 CMOS data loading method
CN101184006A (en) * 2007-12-07 2008-05-21 深圳国人通信有限公司 Test method and system for WLAN equipment index
CN101330516A (en) * 2007-06-18 2008-12-24 得捷股份有限公司 Method for transmitting files based on network digital signage system
CN101893660A (en) * 2010-05-05 2010-11-24 中兴通讯股份有限公司 Testing device and method for communication terminal
CN102348225A (en) * 2011-11-24 2012-02-08 青岛海信移动通信技术股份有限公司 Mobile terminal test method and test system as well as mobile terminal
CN102386986A (en) * 2011-10-21 2012-03-21 中兴通讯股份有限公司 Method, device and system for testing OTA (over the air) performance of wireless terminal
CN102707994A (en) * 2012-04-27 2012-10-03 西安电子科技大学 Method for controlling computer by handheld mobile equipment in local area network
CN103414529A (en) * 2013-08-26 2013-11-27 华北计算技术研究所 Universal automatic testing and fault diagnosis system
CN104349346A (en) * 2014-11-13 2015-02-11 广东欧珀移动通信有限公司 Mobile terminal WiFi throughout automatic testing method
CN104410986A (en) * 2014-11-10 2015-03-11 福建联迪商用设备有限公司 Method and device for testing WIFI (Wireless Fidelity) compatibility of terminal
CN104424069A (en) * 2013-09-02 2015-03-18 名硕电脑(苏州)有限公司 Tablet personal computer testing system
CN104506252A (en) * 2014-12-24 2015-04-08 上海极测信息科技有限公司 Method and system for mobile phone antenna coupling test on production line
CN104581785A (en) * 2014-12-29 2015-04-29 大唐移动通信设备有限公司 Wireless network testing method, testing device and mobile terminal
CN104768198A (en) * 2015-03-23 2015-07-08 努比亚技术有限公司 Mobile terminal and intelligent switching method and device for terminal network of mobile terminal

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1261698A (en) * 1998-12-09 2000-08-02 国际商业机器公司 Figure interface and system for copying set-up to multiple network equipment
CN1304098A (en) * 2000-01-07 2001-07-18 神达电脑股份有限公司 CMOS data loading method
CN101330516A (en) * 2007-06-18 2008-12-24 得捷股份有限公司 Method for transmitting files based on network digital signage system
CN101184006A (en) * 2007-12-07 2008-05-21 深圳国人通信有限公司 Test method and system for WLAN equipment index
CN101893660A (en) * 2010-05-05 2010-11-24 中兴通讯股份有限公司 Testing device and method for communication terminal
CN102386986A (en) * 2011-10-21 2012-03-21 中兴通讯股份有限公司 Method, device and system for testing OTA (over the air) performance of wireless terminal
CN102348225A (en) * 2011-11-24 2012-02-08 青岛海信移动通信技术股份有限公司 Mobile terminal test method and test system as well as mobile terminal
CN102707994A (en) * 2012-04-27 2012-10-03 西安电子科技大学 Method for controlling computer by handheld mobile equipment in local area network
CN103414529A (en) * 2013-08-26 2013-11-27 华北计算技术研究所 Universal automatic testing and fault diagnosis system
CN104424069A (en) * 2013-09-02 2015-03-18 名硕电脑(苏州)有限公司 Tablet personal computer testing system
CN104410986A (en) * 2014-11-10 2015-03-11 福建联迪商用设备有限公司 Method and device for testing WIFI (Wireless Fidelity) compatibility of terminal
CN104349346A (en) * 2014-11-13 2015-02-11 广东欧珀移动通信有限公司 Mobile terminal WiFi throughout automatic testing method
CN104506252A (en) * 2014-12-24 2015-04-08 上海极测信息科技有限公司 Method and system for mobile phone antenna coupling test on production line
CN104581785A (en) * 2014-12-29 2015-04-29 大唐移动通信设备有限公司 Wireless network testing method, testing device and mobile terminal
CN104768198A (en) * 2015-03-23 2015-07-08 努比亚技术有限公司 Mobile terminal and intelligent switching method and device for terminal network of mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018103447A1 (en) * 2016-12-07 2018-06-14 广东欧珀移动通信有限公司 Method and device for enabling wi-fi/hotspot
CN107426563A (en) * 2017-05-27 2017-12-01 四川长虹电器股份有限公司 The method for testing TV WIFI performances
CN107426563B (en) * 2017-05-27 2019-06-14 四川长虹电器股份有限公司 The method for testing TV WIFI performance

Similar Documents

Publication Publication Date Title
CN102036430B (en) Wireless communication transceiver and mode switch device thereof
CN106537792A (en) Adaptive load for coupler in broadband multimode multi-band front end module
CN105024882A (en) C/S structure based WIFI communication testing system and method
CN104618527A (en) Antenna switching device and mobile communication terminal
CN102568177B (en) Radio frequency remote control
CN101291506A (en) TDSCDMA terminal testing system and testing method for transmitter and receiver
CN105406930A (en) Multichannel channel emulator, terminal conformance test system and phase calibration system
CN103873102B (en) Radio frequency chip, radio circuit and electronic equipment
CN104661256A (en) Method for multi-machine test of wireless throughput
CN103152005B (en) A kind of adjustment method of match circuit and device
CN205123751U (en) Mobile terminal radio frequency uniformity automatic test system
CN103728502A (en) Antenna test method and system and wireless terminal
TW201528712A (en) Wireless coupling for RF calibration and testing of wireless transmitters and receivers
CN205176076U (en) Switching device who connects multiport testing arrangement and multiport device
CN103067548B (en) Mobile phone receives debug system and the method for the sensitivity of difference match circuit
CN104168071A (en) A method and system for calibrating reciprocity between RRUs
CN106159406A (en) A kind of frequency and the tunable directional coupler of isolation and autotuning algorithm thereof
CN103973377A (en) Base station testing method, base station testing device and base station testing system
CN203027289U (en) System for realizing serial communication among computer, host computer and slave computer
CN207869404U (en) A kind of wide bandwidth base station front end passive cross modulation test system
CN206023818U (en) Household Internet of Things communicates connection system
CN107426760B (en) Double-frequency integrated test method and system for wireless router
CN103138858A (en) Test system for interface board
CN206506525U (en) A kind of adjustable radio transmitting device of frequency and bandwidth and system
CN105738738A (en) Radio frequency test device 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151104