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.
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.