CN108390912A - A kind of method and apparatus of multiport test data acquisition - Google Patents

A kind of method and apparatus of multiport test data acquisition Download PDF

Info

Publication number
CN108390912A
CN108390912A CN201810047068.3A CN201810047068A CN108390912A CN 108390912 A CN108390912 A CN 108390912A CN 201810047068 A CN201810047068 A CN 201810047068A CN 108390912 A CN108390912 A CN 108390912A
Authority
CN
China
Prior art keywords
mobile terminal
data
client
code
connection
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.)
Granted
Application number
CN201810047068.3A
Other languages
Chinese (zh)
Other versions
CN108390912B (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.)
Zhuhai Xishanju Digital Technology Co ltd
Zhuhai Kingsoft Digital Network Technology Co Ltd
Original Assignee
Zhuhai Xishan Mobile Game Technology Co Ltd
Zhuhai Kingsoft Online Game 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 Zhuhai Xishan Mobile Game Technology Co Ltd, Zhuhai Kingsoft Online Game Technology Co Ltd filed Critical Zhuhai Xishan Mobile Game Technology Co Ltd
Priority to CN201810047068.3A priority Critical patent/CN108390912B/en
Publication of CN108390912A publication Critical patent/CN108390912A/en
Application granted granted Critical
Publication of CN108390912B publication Critical patent/CN108390912B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention provides a kind of methods of multiport test data acquisition comprising following steps:A. client acquires the first data by the first connection from mobile terminal;B. client transmission includes the request message of the first data;C. include the answer message of unique matching code to mobile terminal transmission after received server-side request message;D. mobile terminal is established second with client or server end according to the answer message and is connect, and uploads the second data of the corresponding mobile terminal, wherein the first data include the address of mobile terminal, and the second data include the detection data of mobile terminal.Additionally provide a kind of device of multiport test data acquisition.The detection data acquired at multiple equipment end can be incorporated into an equipment end.

Description

A kind of method and apparatus of multiport test data acquisition
Technical field
The present invention relates to field of communication technology, more particularly to a kind of method and apparatus of multiport test data acquisition.
Background technology
In mobile application testing field, in order to be best understood from the performance data of application, slave mobile device terminal is needed to receive Collect a series of data, most test methods need to only collect in same equipment.With the development of technology, Yi Jiqi The acquisition of the restriction of his factor, a part of data item can not be completed in an equipment, then be needed at this time at multiple equipment end Between be carried out at the same time the collection of data, and carry out data merging.
Invention content
In order to solve the problems, such as to merge the data at multiple equipment end.According to the first aspect of the disclosure, one is provided The method of kind multiport test data acquisition comprising following steps:A. client acquires first by the first connection from mobile terminal Data;B. client transmission includes the request message of the first data;C. after received server-side request message, to Mobile terminal transmission includes the answer message of unique matching code;D. mobile terminal is according to the answer message and client or server The second connection is established at end, and uploads the second data of the corresponding mobile terminal, wherein and the first data include the address of mobile terminal, the Two data include the detection data of mobile terminal.
Further, further include in step D following sub-step:Mobile terminal establishes second according to answer message and client Second data of the corresponding mobile terminal are uploaded to client by connection, mobile terminal, and client is by second with identical match code Data merge, and are uploaded to server end.
Further, further include in step D following sub-step:Mobile terminal establishes the according to answer message and server end Second data of the corresponding mobile terminal are uploaded to server end by two connections, mobile terminal, and server end will have identical match code The second data merge, for displaying.
Further, the matching code includes at least one of Quick Response Code, bar code or digital matching code.
Further, first data include the cell-phone number of the mobile terminal, and the answer message includes short message.
Further, first connection is locality connection, and second connection is remotely to connect.
Further, the short message is stored in the form of ciphertext.
According to the second aspect of the disclosure, a kind of device of multiport test data acquisition is provided comprising:First mould Block, client acquire the first data by the first connection from mobile terminal;Second module, client transmission includes the The request message of one data;Third module, after received server-side request message, it includes unique matching code to be sent to mobile terminal Answer message;4th module, mobile terminal are established second with client or server end according to the answer message and are connect, and on Pass the second data of the corresponding mobile terminal, wherein the first data include the address of mobile terminal, and the second data include the inspection of mobile terminal Measured data.
Further, the matching code includes at least one of Quick Response Code, bar code or digital matching code.
In terms of according to the third of the disclosure, a kind of computer readable storage medium is provided, computer is stored thereon with Program realizes the method described in the first aspect of the present invention when the program is executed by processor.
The beneficial effects of the present invention are:It can will be incorporated into an equipment end in the detection data at multiple equipment end.It is logical Connection can be established between client and mobile terminal automatically by crossing the mode of short message, realize the automation collection of data.Server Hold unloading detection information, it is ensured that mobile terminal also being capable of acquisition testing information when client is offline.By the way that the company of foundation is arranged It connects and is relatively easy to the first connection and establishes more complicated second connection of connection, the behaviour for establishing complex communication connection can be simplified Make.Whether network address by detecting client and mobile terminal to improve establishes connection in the same local network Efficiency.
Description of the drawings
Fig. 1 is the schematic diagram for the multi-terminal devices connection relation for indicating one or more embodiments of the invention;
Fig. 2 is the schematic diagram for the multi-terminal devices connection relation for indicating another embodiment of the present invention;
Fig. 3 is the flow chart for indicating one or more embodiments of the invention.
Specific implementation mode
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling that discusses or to be directly harmonious or communicate to connect can be indirect coupling by some interfaces, device or unit It closes or communicates to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in two processing units, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in two computer read/write memory mediums.Based on this understanding, technical scheme of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.
It will be appreciated by those skilled in the art that in the description of the present application, " first ", " secondly ", " first ", " Two ", the terms such as " A ", " B ", are not offered as the limitation to sequencing unless otherwise stated.For example, " step 3 " can be in " step Before rapid one ", " D " can also be carried out at the same time with " A ".
A kind of method of multiport test data acquisition is provided according to first embodiment of the present disclosure with reference to attached drawing 1 and 3, This method is based on the test system being made of mobile terminal 100, client 200 and server end 300.Wherein illustratively, mobile End 100 can be smart mobile phone, tablet computer, computer etc., and client 200 can be computer, and server end 300 can be Remote server.Mobile terminal 100 and client 200 can be multiple, in the present embodiment with 1 mobile terminal 100 and 1 client End 200 for illustrate, it will be understood by those skilled in the art that the technological thought of the present embodiment can be applied including In connection method between multiple mobile terminals 100 and/or multiple client 200.This approach includes the following steps:
Client 200 acquires the first data by the first connection from mobile terminal 100;Client 200 is sent out to server end 300 Send the request message for including the first data;After server end 300 receives request message, it includes unique to be sent to mobile terminal 100 The answer message of matching code;Mobile terminal 100 is established second with client 200 or server end 300 by the short message and is connect, and Upload the second data of the corresponding mobile terminal, wherein the first data include the address of mobile terminal 100, and the second data include movement The detection data at end 100.
Specifically, illustratively, the log-on data collection kit program on the mobile phone as mobile terminal 100 is collected The information such as CPU, memory, temperature, flow, and in the computer starting data gathering tool program as client 200, computer It is connected with testing mobile phone by data line, collects the detections such as the transmission frame number per second (Frames Per Second, FPS) of mobile phone The cell-phone number of data and the mobile phone.After test execution is completed, computer is sent out to the remote server as server end 300 Send the detection information for the mobile terminal 100 that part is measured including the client 200, the address of mobile terminal 100 (such as mobile terminal 100 Cell-phone number) request message, remote server generate include the network address match information, and with short message (Short Message Service, SMS) mode the match information is sent to specified mobile phone, wherein match information is with the shape of ciphertext Formula is stored in short message, and to prevent other from seeing, the user of short message directly accesses or attack the network address, and encryption method can Illustratively Base64 encryptions etc..The process of mobile phone (mobile terminal 100) monitoring short message service receives short message and decrypts the matching After information, computer (client 100) or remote server (server end) are connected based on the match information automatically.Work as mobile phone When establishing second with computer (client 200) and connecting, remote server sent to mobile phone include computer network address Connection message, the connection message can be direct network address and port numbers, can also further include that other are established needed for connection Information.Mobile phone is established with the computer by cellular data net and telenet and is communicated to connect according to the connection message, and mobile phone will Second data of the corresponding mobile terminal are uploaded to client 200.Client 200 closes the second data with identical match code And and it is uploaded to server end 300.When mobile phone establishes second with the remote server (server end 300) to be connect, mobile phone root Second is established according to answer message with remote server to connect, wherein the answer message has included the network of such as remote server Location and port numbers etc. are used to establish the data of connection between mobile phone and remote server, and mobile phone is counted the second of the corresponding mobile phone According to remote server is uploaded to, remote server merges the second data with identical match code, for displaying.Wherein Two data include the detection information of the mobile terminals such as above-mentioned CPU, memory, temperature, flow detection part.The remote server storage inspection Measured data, on backstage or to access the data of upper display multiple equipment end detection on the external equipment of the remote server.
In one or more embodiments, the first connection is locality connection, such as is directly connected by usb data connecting line It connects, either by the direct peer to peer connection of network modem (such as wireless network card) foundation or only via local area network (LAN) router or interchanger.And the second connection is remotely to connect, such as pass through wide area network (WAN) or wide area network and bee Nest network in conjunction with and realize indirect connection.It is noted here that locality connection and long-range connection herein not refer to Physical distance between client 200 and mobile terminal 100, but the topological variation of communication network.Under normal conditions, USB is utilized The locality connection that the modes such as data connecting line are realized is without complicated pairing setting.And remotely connect, need to configure network address With port etc., realize relatively complicated.It is possible thereby to simplify the operation for establishing complex network connection.First connection and second connects The connection type connect can be different or identical, but it is different to connect channel used.
In one or more embodiments, network address further includes public network IP and Intranet IP;When the public network IP of mobile terminal 100 When with the public network IP and Intranet IP all identical of Intranet IP and client 200, indicate mobile terminal 100 with client 200 at same In ground network, mobile terminal 100 is established P2P with client 200 and is connect at this time, and delay is reduced to improve connection speed.On the other hand, When one or two in the public network IP and Intranet IP of the public network IP of mobile terminal 100 and Intranet IP with client 200 differs, Mobile terminal 100 and client 200 are indicated not in same local network, mobile terminal 100 is established UDP with client 200 and connect.From And improve the efficiency for establishing connection.In addition, network address can also include open port numbers.
A kind of method of multiport test data acquisition is provided according to second embodiment of the present disclosure with reference to attached drawing 2, it should Method is based on the test system being made of mobile terminal 100~103, client 200 and server end 300.Wherein illustratively, it moves Moved end 100~103 is smart mobile phone, and client 200 is notebook computer, and server end 300 is remote server.This reality It is essentially identical with first embodiment of the present disclosure to apply example, therefore no longer superfluous words herein.
According to another embodiment of the disclosure, a kind of device of multiport test data acquisition is provided comprising:First Module, client 200 acquire the first data by the first connection from mobile terminal 100;Second module, client 200 is to server 300 transmission of end includes the request message of the first data;Third module, after server end 300 receives request message, to mobile terminal 100 transmissions include the answer message of unique matching code;4th module, mobile terminal 100 is according to the answer message and client 200 Or the second connection is established at 300 end of server, and uploads the second data of the corresponding mobile terminal 100, wherein the first data include The address of mobile terminal 100, the second data include the detection data of mobile terminal 100.Wherein, matching code includes Quick Response Code, bar code Or at least one of digital matching code.
The operation method of the embodiment and first embodiment of the present disclosure are essentially identical, therefore no longer superfluous words herein.
According to another embodiment of the disclosure, a kind of computer readable storage medium is provided, is stored thereon with calculating Machine program realizes the method that disclosure one embodiment is somebody's turn to do when the program is executed by processor.The operation method of the embodiment It is essentially identical with first embodiment of the present disclosure, therefore no longer superfluous words herein.
It is somebody's turn to do above, only specific implementation mode of the invention, but scope of protection of the present invention is not limited thereto, it is any ripe It knows those skilled in the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, should all cover Within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.Attached drawing Description of symbols:
100,101,102,103 mobile terminal
200 clients
300 server ends.

Claims (10)

1. a kind of method of multiport test data acquisition, it is characterised in that include the following steps:
A. client acquires the first data by the first connection from mobile terminal;
B. client transmission includes the request message of the first data;
C. include the answer message of unique matching code to mobile terminal transmission after received server-side request message;
D. mobile terminal is established second with client or server end according to the answer message and is connect, and uploads the corresponding mobile terminal The second data,
Wherein, the first data include the address of mobile terminal, and the second data include the detection data of mobile terminal.
2. the method according to any one of claim 1, which is characterized in that further include following sub-step in step D:
Mobile terminal is established second with client according to answer message and is connect,
Second data of the corresponding mobile terminal are uploaded to client by mobile terminal,
Client merges the second data with identical match code, and is uploaded to server end.
3. the method according to any one of claim 1, which is characterized in that further include following sub-step in step D:
Mobile terminal is established second with server end according to answer message and is connect,
Second data of the corresponding mobile terminal are uploaded to server end by mobile terminal,
Server end merges the second data with identical match code, for displaying.
4. according to the method described in claim 1, it is characterized in that:The matching code includes Quick Response Code, bar code or number With at least one of code.
5. method according to any one of claim 1-3, it is characterised in that:First data include the mobile terminal Cell-phone number, the answer message includes short message.
6. method according to any one of claim 1-3, it is characterised in that:First connection is locality connection, institute It is remotely to connect to state the second connection.
7. according to the method described in claim 4, it is characterized in that:The short message is stored in the form of ciphertext.
8. a kind of device of multiport test data acquisition, it is characterised in that including:
First module, client acquire the first data by the first connection from mobile terminal;
Second module, client transmission include the request message of the first data;
Third module, after received server-side request message, sent to mobile terminal include unique matching code answer message;
4th module, mobile terminal is established second with client or server end according to the answer message and is connect, and uploads correspondence Second data of the mobile terminal,
Wherein, the first data include the address of mobile terminal, and the second data include the detection data of mobile terminal.
9. device according to claim 8, it is characterised in that:The matching code includes Quick Response Code, bar code or number With at least one of code.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor Any one of claim 1-7 the methods are realized when execution.
CN201810047068.3A 2018-01-18 2018-01-18 Method and device for acquiring multi-terminal test data Active CN108390912B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810047068.3A CN108390912B (en) 2018-01-18 2018-01-18 Method and device for acquiring multi-terminal test data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810047068.3A CN108390912B (en) 2018-01-18 2018-01-18 Method and device for acquiring multi-terminal test data

Publications (2)

Publication Number Publication Date
CN108390912A true CN108390912A (en) 2018-08-10
CN108390912B CN108390912B (en) 2021-08-17

Family

ID=63077136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810047068.3A Active CN108390912B (en) 2018-01-18 2018-01-18 Method and device for acquiring multi-terminal test data

Country Status (1)

Country Link
CN (1) CN108390912B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112242054A (en) * 2020-10-16 2021-01-19 内蒙古电力(集团)有限责任公司内蒙古电力科学研究院分公司 Electric power data acquisition system and public network dynamic IP data transmission method
CN113395264A (en) * 2021-05-26 2021-09-14 深圳市元征未来汽车技术有限公司 Communication connection method, apparatus, server and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101154315A (en) * 2006-09-25 2008-04-02 佛山市顺德区顺达电脑厂有限公司 System and method for collecting test data
CN101695170A (en) * 2009-10-19 2010-04-14 山东碧通通信技术有限公司 Wireless communication network testing data collection and analysis method based on intelligent mobile phone
CN102711141A (en) * 2012-05-15 2012-10-03 上海交通大学无锡研究院 Mobile network service quality distributed type collection method based on mobile terminal
US20150324273A1 (en) * 2011-11-16 2015-11-12 International Business Machines Corporation Generating production server load activity for a test server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101154315A (en) * 2006-09-25 2008-04-02 佛山市顺德区顺达电脑厂有限公司 System and method for collecting test data
CN101695170A (en) * 2009-10-19 2010-04-14 山东碧通通信技术有限公司 Wireless communication network testing data collection and analysis method based on intelligent mobile phone
US20150324273A1 (en) * 2011-11-16 2015-11-12 International Business Machines Corporation Generating production server load activity for a test server
CN102711141A (en) * 2012-05-15 2012-10-03 上海交通大学无锡研究院 Mobile network service quality distributed type collection method based on mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112242054A (en) * 2020-10-16 2021-01-19 内蒙古电力(集团)有限责任公司内蒙古电力科学研究院分公司 Electric power data acquisition system and public network dynamic IP data transmission method
CN112242054B (en) * 2020-10-16 2021-11-12 内蒙古电力(集团)有限责任公司内蒙古电力科学研究院分公司 Electric power data acquisition system and public network dynamic IP data transmission method
CN113395264A (en) * 2021-05-26 2021-09-14 深圳市元征未来汽车技术有限公司 Communication connection method, apparatus, server and medium

Also Published As

Publication number Publication date
CN108390912B (en) 2021-08-17

Similar Documents

Publication Publication Date Title
CN102710549B (en) To be established a communications link the method for relation, terminal and system by shooting
CN109189698A (en) Apparatus control method, device and Internet of things system
WO2016193060A1 (en) Method, apparatus and system for device replacement detection and device recommendation
CN202372854U (en) System capable of realizing self-service automobile on-line diagnosis via intelligent cell phone through establishment of transparent channel
CN111861221A (en) Equipment fault information pushing method and device, storage medium and electronic device
US20240056463A1 (en) Method and system to detect abnormal message transactions on a network
CN108495075A (en) Video communication method and device
CN108390912A (en) A kind of method and apparatus of multiport test data acquisition
CN104536926B (en) The control method and device of serial equipment
CN103024540A (en) Method for collecting network activation information of intelligent television
CN108011970B (en) Universal acquisition control node, system and data acquisition method
CN103825910A (en) Method and device for acquiring internet authentication information
CN111586660A (en) Information display method and device, storage medium and electronic equipment
CN107743304B (en) A kind of device identification method and relevant device
CN111314488A (en) Tidal level remote reporting system based on GPRS wireless communication
CN105281944B (en) Method for setting network protocol address and service management system
CN109388598A (en) A kind of information processing method and general-purpose serial bus USB cluster server
CN107896240A (en) Single-chip microcomputer and configuration software telecommunication system based on Internet
CN109831825A (en) Sub-gateway and network access method thereof, gateway cluster and communication method thereof
CN109299195A (en) Data processing method, device and storage medium
CN112882973B (en) Method and device for determining expansion slot position, storage medium and electronic equipment
CN108965478A (en) Distribution type data collection method and system based on block chain technology
CN104852935B (en) Date storage method and system
CN113783755A (en) Network monitoring method, network monitoring device, storage medium and electronic device
CN106791658A (en) A kind of intelligent monitoring integrated terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 519000 Room 102, 202, 302 and 402, No. 325, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province, Room 102 and 202, No. 327 and Room 302, No. 329

Patentee after: Zhuhai Jinshan Digital Network Technology Co.,Ltd.

Patentee after: Zhuhai Xishanju Digital Technology Co.,Ltd.

Address before: 519000 building 3, Jinshan Software Park, 325 Qiandao Ring Road, Xiangzhou District, Zhuhai City, Guangdong Province

Patentee before: ZHUHAI KINGSOFT ONLINE GAME TECHNOLOGY Co.,Ltd.

Patentee before: ZHUHAI SEASUN MOBILE GAME TECHNOLOGY Co.,Ltd.