CN106383785B - The adjustment method and device of mobile application - Google Patents
The adjustment method and device of mobile application Download PDFInfo
- Publication number
- CN106383785B CN106383785B CN201610836144.XA CN201610836144A CN106383785B CN 106383785 B CN106383785 B CN 106383785B CN 201610836144 A CN201610836144 A CN 201610836144A CN 106383785 B CN106383785 B CN 106383785B
- Authority
- CN
- China
- Prior art keywords
- applications client
- functional unit
- request
- file
- client
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 112
- 238000012545 processing Methods 0.000 claims abstract description 100
- 230000003993 interaction Effects 0.000 claims abstract description 36
- 230000027455 binding Effects 0.000 claims description 200
- 238000009739 binding Methods 0.000 claims description 200
- 238000012544 monitoring process Methods 0.000 claims description 142
- 230000004044 response Effects 0.000 claims description 32
- 230000005540 biological transmission Effects 0.000 claims description 27
- 230000002452 interceptive effect Effects 0.000 claims description 27
- 241000208340 Araliaceae Species 0.000 claims description 6
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims description 6
- 235000003140 Panax quinquefolius Nutrition 0.000 claims description 6
- 235000008434 ginseng Nutrition 0.000 claims description 6
- 125000000524 functional group Chemical group 0.000 claims description 4
- 229910002056 binary alloy Inorganic materials 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 abstract description 8
- 230000008569 process Effects 0.000 description 83
- 230000006870 function Effects 0.000 description 49
- 238000004891 communication Methods 0.000 description 19
- 230000006855 networking Effects 0.000 description 16
- 238000013515 script Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 10
- 238000011161 development Methods 0.000 description 6
- 230000018109 developmental process Effects 0.000 description 6
- 230000008901 benefit Effects 0.000 description 5
- 238000013507 mapping Methods 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 230000036961 partial effect Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000007547 defect Effects 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 241001269238 Data Species 0.000 description 1
- 238000010009 beating Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 230000001568 sexual effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/362—Debugging of software
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of adjustment method of mobile application and devices.Wherein, this method includes:Wireless network connection is established between the applications client run on the functional unit and mobile terminal of user terminal setting;Data interaction is carried out in functional unit and applications client by wireless network connection, wherein functional unit is for executing debugging of the user to applications client.The present invention solves in the related technology due to the limitation by mobile terminal use environment, the technical problem that the ability of the data processing when the applications client run on to mobile terminal is debugged is limited and treatment effeciency is lower.
Description
Technical field
The present invention relates to internet areas, in particular to the adjustment method and device of a kind of mobile application.
Background technique
The relevant technologies are in the development process of game of mobile terminal, due to the limitation of mobile terminal environment, mobile whole
Picture is difficult on end in fixed terminal, such as:Personal computer (PC), upper operation applications client (such as:Game application, payment
Using, application of making friends) equally, by opening the debugging log checked in applications client operational process of debugging window and holding
Row debugging instruction, therefore, debugging applications client on mobile terminals is problem urgently to be resolved during development of games always.
By taking game application as an example, currently, common hand trip debud mode includes following several:
Mode one builds hypertext transfer protocol (HTTP) server module on a game server, then by user
Terminal provides a web Debugging interface.By user terminal open browser input network address open webpage Debugging interface, and
The information of applications client respective player is debugged on webpage to game server HTTP request, that is, current logging device
The upper various data being stored on server corresponding with the player account of applications client, such as:The grade of game role, warp
It tests, equip, the game datas such as stage property article.When the corresponding server game data of player account change, game logic
Associated change can be synchronized to applications client, to achieve the purpose that debug player object in applications client indirectly.
Mode two increases by one layer of user interface (UI) Debugging interface in debugging version applications client, that is, in application client
One layer of interface UI is mounted on the interface UI at end again, that include in the interface UI is some UIs relevant to debugging applications client
Control can include but is not limited to:It is quick to input debugging instruction edit box, debugging log display box and some instruction executions
Button.The UI Debugging interface can usually be designed to limit the sidebar in applications client one side, when need to use can be with
Pop-up comes, and can shrink back when without using, reducing the interference to the interface game UI itself with this.It is created in UI Debugging interface
After the completion of building, debugging instruction can be directly executed on UI Debugging interface, corresponding debugging result also can applied directly
It is executed in client, Debugging message can also be checked on UI Debugging interface.
Mode three, the chat module for being directly multiplexed applications client, input debugging instruction information in chat module
It is directly executed in applications client, and shows Debugging message in chat channel.
Although the mode of above-mentioned several debugging applications clients can achieve the purpose that debug applications client, but
There are following defects:
(1) for mode one, the mode of HTTP service is built using server, the content substantially debugged is service
Player's data at end then also need additionally if necessary to debug client-side information by logical between game garment and applications client
Letter, easily increases the operation complexity of debugging process, in addition, also will cause, debugging code and release code are easy to be coupled and pollute hair
Cloth code.Such as:If necessary to obtain the debugging log in applications client, then need to ask to game server HTTP
It asks, then sends request message from game server to applications client to obtain the debugging log of applications client.And normal
In the case of, there is no in this way for the relevant communication logic of communication when game is formally issued between game server and applications client
Communication requirement, therefore, using such mode go debugging applications client, it is necessary to additionally in game server and application client
Plus the agreement for obtaining applications client debugging log in communication protocol between end, essence is:It will be needed for debugging demand
Logic be coupled in the communication logic code between game server and applications client, be unfavorable for the formal outer publication generation put
Code code dehind relevant to debugging is easy the formal publication game identification code of pollution.
(2) for mode two and mode three, applications client additionally increase a UI Debugging interface and by
Chat module is debugged the problem for all depositing that instruction editor is inconvenient on mobile terminals, and it is easy to be dry to increase UI Debugging interface
The normal operating of game is disturbed, and is then easy to interfere the normal chat function of game by chat module.
Currently, the exploitation environment overwhelming majority of game of mobile terminal all supports Cross-border congestion management, i.e. mobile application client
Both there is the game version run on PC, there is also the versions that Android, ios platform are run.And applications client is run on PC
When one and applications client independently operated debugging window mutually would generally be provided, in order to execute debugging on debugging window
Information does not influence the normal use operation of applications client again.But the applications client version run on mobile terminals is simultaneously
Do not support that Start-up and Adjustment window is debugged.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of adjustment method of mobile application and device, at least solve in the related technology by
It is limited in by mobile terminal use environment, at the data when the applications client run on to mobile terminal is debugged
The technical problem that the ability of reason is limited and treatment effeciency is lower.
According to an aspect of an embodiment of the present invention, a kind of adjustment method of mobile application is provided, including:At user's end
It holds and establishes wireless network connection between the applications client run on the functional unit and mobile terminal of setting;Pass through wireless network
It is connected between functional unit and applications client and carries out data interaction, wherein functional unit is for executing user to application visitor
The debugging at family end.
Optionally, nothing is established between the applications client run on the functional unit and mobile terminal of user terminal setting
Line is connected to the network:Worked as according to the identification information of the identification information of functional unit and/or user terminal to functional unit transmission
Whole application client client informations of preceding connection, wherein the whole applications client information currently connected include:Each application client
Whether the identification information of the mobile terminal where the identification information at end, each applications client and each applications client
In binding state;Alternatively, whether the identification information of each applications client and each applications client have been in binding shape
State;Receive the bind-request message from functional unit, wherein the mark letter of mobile terminal is carried in bind-request message
The identification information of breath and/or applications client;If determine applications client according to bind-request message while being in connection shape
State and unbound state are then established between functional unit and applications client and are associated with binding relationship;Respectively to functional unit and
Applications client sends binding success message.
Optionally, nothing is established between the applications client run on the functional unit and mobile terminal of user terminal setting
After line network connection, further include:Receive from functional unit unbinding request or detect functional unit disconnect nothing
Line network connection;Search the applications client with functional unit binding;Releasing exists between functional unit and applications client
Association binding relationship, and be released to the whole user terminal broadcasted application clients currently connected the message of binding.
Optionally, nothing is established between the applications client run on the functional unit and mobile terminal of user terminal setting
After line network connection, further include:Detect that applications client disconnection of wireless is connected to the network;It searches to exist with applications client and tie up
Determine the functional unit of relationship;The existing association binding relationship between functional unit and applications client is released, and respectively to function
Energy component and application client notification applications client has been released from the message of binding and has removed user's end to what is currently connected
Remaining user terminal broadcasted application client except end has been released from the message of binding.
Optionally, carrying out data interaction with applications client by functional unit includes:It receives from functional unit
Debugging instruction, wherein debugging instruction executes correspondence according to the debugging demand for including in debugging instruction for controlling applications client
Debugging operations;Search the applications client with functional unit binding;Debugging instruction is forwarded to applications client.
Optionally, carrying out data interaction with applications client by functional unit includes:It receives from applications client
Debugging log, wherein debugging log is sent out after the output interface to debugging log redirects by applications client
Out;Search the functional unit with applications client binding;Debugging log is forwarded to functional unit.
Optionally, carrying out data interaction with applications client by functional unit includes:It receives from functional unit
File upload request, wherein carry functional unit in file upload request and pass through to the local file to be uploaded of user terminal
Filename and file content carry out the binary word obtained after serializing processing throttling;Search the application visitor with functional unit binding
Family end;File upload request is forwarded to applications client, wherein the binary word throttling carried in file upload request is used for
Applications client is set to rebuild user terminal locally file to be uploaded.
Optionally, carrying out data interaction with applications client by functional unit includes:It receives from functional unit
Obtain listed files request;The applications client with functional unit binding is searched, and is forwarded to applications client and obtains file column
Table request;The catalogue file list got from applications client is forwarded to functional unit, and is received from functional unit
File download request, wherein the file to be downloaded chosen from catalogue file list is carried in file download request;It will be literary
Part downloading request is forwarded to applications client, and receives applications client and rung according to the file download that file download request returns
It answers, wherein carry applications client in file download response and carried out by filename to file to be downloaded and file content
The binary word throttling obtained after serializing processing;File download response is forwarded to functional unit, wherein file download response
The binary word throttling of middle carrying is for making functional unit rebuild file to be downloaded.
Optionally, carrying out data interaction with applications client by functional unit includes:It receives from functional unit
Screenshotss request, wherein screenshotss request calls screenshot capture interface to generate screenshotss according to screen message for controlling applications client
Image;The applications client with functional unit binding is searched, and screenshotss request is forwarded to applications client;It receives from answering
It is responded with client screenshotss, and screenshotss response is back to functional unit, wherein carry applications client pair in screenshotss response
The filename and file content for storing the file of screenshotss image carry out the binary word obtained after serializing processing throttling, binary system
The file that byte stream is used to that functional unit to be made to rebuild storage screenshotss image.
Optionally, carrying out data interaction with applications client by functional unit includes:It receives from functional unit
Obtain monitoring parameter list request, wherein obtaining requested monitoring parameter in monitoring parameter list request is applied with operation
It is chosen in the over-all properties parameter of client associate;The applications client with functional unit binding is searched, and to application client
End forwarding obtains monitoring parameter list request;The monitoring parameter list got from applications client is forwarded to functional unit,
It wherein, include newest adopt corresponding with requested monitoring parameter in monitoring parameter list request is obtained in monitoring parameter list
The numerical value of collection.
Optionally, carrying out data interaction with applications client by functional unit includes:It receives from functional unit
It closes monitoring to request, wherein close monitoring request and cancel for controlling applications client in acquisition monitoring parameter list request
Requested monitoring parameter is monitored;The applications client with functional unit binding is searched, and forwards and closes to applications client
Close monitoring request.
Optionally, carrying out data interaction with applications client by functional unit includes:It receives from functional unit
Cancel the request of part monitoring parameter, wherein cancel the request of part monitoring parameter and arrange for controlling applications client from monitoring parameter
Monitoring parameter corresponding with the request of part monitoring parameter is cancelled is removed in table;The applications client with functional unit binding is searched,
And it is forwarded to applications client and cancels the request of part monitoring parameter.
According to another aspect of an embodiment of the present invention, a kind of debugging apparatus of mobile application is additionally provided, including:Establish mould
Block establishes wireless network company between the applications client for running on the functional unit and mobile terminal that user terminal is arranged
It connects;Interactive module, for carrying out data interaction between functional unit and applications client by wireless network connection, wherein
Functional unit is for executing debugging of the user to applications client.
Optionally, establishing module includes:First transmission unit, for according to functional unit identification information and/or user
The identification information of terminal sends the whole application client client informations currently connected to functional unit, wherein the whole currently connected
Applications client information includes:The mark of mobile terminal where the identification information of each applications client, each applications client
Know information and whether each applications client has been in binding state;Alternatively, the identification information of each applications client and
Whether each applications client has been in binding state;First receiving unit, for receiving the binding from functional unit
Request message, wherein the identification information of mobile terminal and/or the mark letter of applications client are carried in bind-request message
Breath;Unit is established, if for determining applications client according to bind-request message while being in connection status and unbound shape
State is then established between functional unit and applications client and is associated with binding relationship;Second transmission unit, for respectively to functional group
Part and applications client send binding success message.
Optionally, above-mentioned apparatus further includes:Processing module, for receive from functional unit unbinding request or
Detect that functional unit disconnection of wireless is connected to the network;Searching module, for searching the applications client with functional unit binding;Solution
Except module, for releasing the existing association binding relationship between functional unit and applications client, and it is complete to what is currently connected
Portion's user terminal broadcasted application client has been released from the message of binding.
Optionally, above-mentioned apparatus further includes:Processing module, for detecting that applications client disconnection of wireless is connected to the network;
Searching module, for searching, there are the functional units of binding relationship with applications client;Module is released, for releasing in functional group
Existing association binding relationship between part and applications client, and application client is notified to functional unit and applications client respectively
End has been released from the message of binding and to remaining user terminal broadcasted application visitor in addition to the user terminals currently connected
Family end has been released from the message of binding.
Optionally, interactive module includes:Second receiving unit, for receiving the debugging instruction from functional unit,
In, debugging instruction is used to control applications client and executes corresponding debugging operations according to the debugging demand for including in debugging instruction;
First searching unit, for searching the applications client with functional unit binding;Third transmission unit, for turning debugging instruction
It is sent to applications client.
Optionally, interactive module includes:Third receiving unit, for receiving the debugging log from applications client,
Wherein, debugging log is issued after the output interface to debugging log redirects by applications client;Second looks into
Unit is looked for, for searching the functional unit with applications client binding;4th transmission unit, for debugging log to be forwarded to function
It can component.
Optionally, interactive module includes:4th receiving unit, for receive from functional unit file upload ask
It asks, wherein carry functional unit in file upload request and pass through the filename and text to the local file to be uploaded of user terminal
Part content carries out the binary word obtained after serializing processing throttling;Third searching unit is bound for searching with functional unit
Applications client;5th transmission unit, for file upload request to be forwarded to applications client, wherein file upload is asked
The binary word of middle carrying is asked to throttle for making applications client rebuild user terminal locally file to be uploaded.
Optionally, interactive module includes:5th receiving unit, for receiving the acquisition listed files from functional unit
Request;4th searching unit for searching the applications client with functional unit binding, and forwards to applications client and obtains text
Part list request;First processing units, the catalogue file list for will get from applications client are forwarded to functional unit,
And reception is from the file download request of functional unit, wherein is carried from catalogue file list in file download request
The file to be downloaded of selection;The second processing unit for file download request to be forwarded to applications client, and is received using visitor
Family end is responded according to the file download that file download request returns, wherein it is logical to carry applications client in file download response
It crosses and the binary word obtained after serializing processing throttling is carried out to the filename and file content of file to be downloaded;6th sends list
Member, for file download response to be forwarded to functional unit, wherein the binary word throttling carried in file download response is used for
Functional unit is set to rebuild file to be downloaded.
Optionally, interactive module includes:6th receiving unit, for receiving the screenshotss request from functional unit,
In, screenshotss request calls screenshot capture interface to generate screenshotss image according to screen message for controlling applications client;At third
Unit is managed, is forwarded to applications client for searching the applications client with functional unit binding, and by screenshotss request;Everywhere
Unit is managed, is responded for receiving from applications client screenshotss, and screenshotss response is back to functional unit, wherein screenshotss
Applications client is carried in response to the filename of the file of storage screenshotss image and after file content carries out serializing processing
Obtained binary word throttling, binary word throttling is for making functional unit rebuild the file of storage screenshotss image.
Optionally, interactive module includes:7th receiving unit, for receiving the acquisition monitoring parameter from functional unit
List request, wherein it is associated with operation applications client for obtaining requested monitoring parameter in monitoring parameter list request
It is chosen in over-all properties parameter;5th processing unit, for searching the applications client with functional unit binding, and to application
Client forwarding obtains monitoring parameter list request;7th transmission unit, the monitoring ginseng for will be got from applications client
Ordered series of numbers table is forwarded to functional unit, wherein includes to be requested in monitoring parameter list with acquisition monitoring parameter list request
The corresponding most freshly harvested numerical value of monitoring parameter.
Optionally, interactive module includes:8th receiving unit, for receive from functional unit closing monitoring ask
It asks, wherein close monitoring request and cancel for controlling applications client to requested prison in acquisition monitoring parameter list request
Control parameter is monitored;6th processing unit, for searching the applications client with functional unit binding, and to applications client
Monitoring request is closed in forwarding.
Optionally, interactive module includes:9th receiving unit, for receiving from the monitoring of the cancellation part of functional unit
Parameter request, wherein cancel the request of part monitoring parameter and remove and take from monitoring parameter list for controlling applications client
The part monitoring parameter that disappears requests corresponding monitoring parameter;7th processing unit, for searching the application visitor with functional unit binding
Family end, and forwarded to applications client and cancel the request of part monitoring parameter.
In embodiments of the present invention, using the application visitor run on the functional unit and mobile terminal that user terminal is arranged
The mode that wireless network connection is established between the end of family is carried out between functional unit and applications client by wireless network connection
Data interaction, wherein functional unit overcomes on mobile terminals for executing debugging of the user to applications client to application
The data-handling capacity of client is limited and the lower defect for the treatment of effeciency, utilizes and starts a function on remote user terminals
Component is communicated with applications client, supports to carry out data with the applications client on mobile terminal under user terminal environment
Interaction takes full advantage of the convenience advantage for carrying out data processing under user terminal environment to mobile terminal, extends to mobile whole
The data-handling capacity of the applications client run on end improves the efficiency that data processing is carried out to applications client, in turn
Solves the applications client due to the limitation by mobile terminal use environment, run on to mobile terminal in the related technology
The technical problem that the ability of data processing when being debugged is limited and treatment effeciency is lower.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the adjustment method of mobile application according to an embodiment of the present invention;
Fig. 2 is the application visitor on the functional unit and mobile terminal according to the preferred embodiment of the invention by user terminal
The flow chart of family end progress data exchange process;
Fig. 3 be multiple GMMonitor according to the preferred embodiment of the invention and multiple GameClient simultaneously with
GMServer establishes the topological structure schematic diagram of connection;
Fig. 4 is the applications client of the functional unit in user terminal and mobile terminal according to the preferred embodiment of the invention
Between be associated the flow chart of bindings process;
Fig. 5 is that the functional unit according to the preferred embodiment of the invention by user terminal initiates disassociation bindings mistake
The flow chart of journey;
Fig. 6 is that the applications client according to the preferred embodiment of the invention by mobile terminal initiates disassociation bindings
The flow chart of process;
Fig. 7 is that the functional unit of user terminal according to the preferred embodiment of the invention is sent out to the applications client of mobile terminal
The flow chart for sending debugging instruction to execute debugging process;
Fig. 8 is mobile in the functional unit real-time display of user terminal in debugging process according to the preferred embodiment of the invention
The flow chart for the debugging log process that applications client in terminal generates;
Fig. 9 is that the functional unit of the user terminal according to the preferred embodiment of the invention in debugging process will be on local file
Reach the flow chart of the applications client process of mobile terminal;
Figure 10 is the functional unit of the user terminal according to the preferred embodiment of the invention in debugging process by mobile terminal
Applications client on file download to user terminal local process flow chart;
Figure 11 is the functional unit of the user terminal according to the preferred embodiment of the invention in debugging process by mobile terminal
The screenshot capture that is obtained in current operational process of applications client download to the flow chart of user terminal local process;
Figure 12 is that the functional unit monitoring of the user terminal according to the preferred embodiment of the invention in debugging process is mobile eventually
The flow chart of the runnability process of the applications client at end;
Figure 13 is that the functional unit of the user terminal according to the preferred embodiment of the invention in debugging process cancels monitoring shifting
The flow chart of the runnability process of the applications client of dynamic terminal;
Figure 14 is the structural block diagram of the debugging apparatus of mobile application according to an embodiment of the present invention;
Figure 15 is the structural block diagram of the debugging apparatus of mobile application according to the preferred embodiment of the invention;
Figure 16 is the structural representation according to the preferred embodiment of the invention that data processing function is realized by network service end
Figure;
Figure 17 is the structural schematic diagram of the functional unit of user terminal according to the preferred embodiment of the invention;
Figure 18 is the knot of applications client corresponding with the functional unit of user terminal according to the preferred embodiment of the invention
Structure schematic diagram.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
The network service end that the embodiment of the present invention is built acts mainly as the role of interchanger, is responsible for each functional unit of management
Network connection and data forwarding between applications client.Information exchange between each functional unit is with network connection
The mode given out a contract for a project with network is completed, and network communication protocol can use transmission control protocol (TCP), User Datagram Protocol
(UDP) it is realized with the modes such as hypertext transfer protocol (HTTP), wherein the network communication protocol in the embodiment of the present invention is
Transmission Control Protocol, Transmission Control Protocol are that one kind is connection-oriented, reliably based on the communication protocol of byte stream, are led to using Transmission Control Protocol
Letter connection may insure the long connection performance after all connection foundation, convenient for network service end in functional unit and applications client
Between manage a fixed communication connection, to improve the efficiency of intercommunication process.
In addition, when applications client on to mobile terminal carries out data processing, in addition to needing the net fixed in an IP
Start except a long-term running network server under network environment, it is also necessary to which applications client can be counted by providing one
According to the user terminal of processing operation, terminal environments can be desktop computer, laptop, smart phone, IPAD etc., and move
Dynamic terminal can be supported for the portable mobile termianls such as mobile phone, tablet computer, the operating system platform of mobile terminal IOS or
Android system.
In a preferred implementation process, a long-term running server processes GMServer can built from the background as net
Network server-side, the server running environment of this example is on Linux exploitation machine and IP address is fixed.
Above-mentioned functional unit can be the application program run on the subscriber terminal, and program architecture includes:For leading to
The network function component of letter realizes code and the graphic user interface (GUI) for debugging operations.In embodiments of the present invention,
It needs to start on the subscriber terminal a program process GMMonitor as functional unit, and allows multiple GMMonitor
It runs, cooperates, to handle the data in different application client simultaneously.That is, functional unit and movement on user terminal
Terminal belongs to one-to-one relationship, and can support the functional unit on multiple user terminals and answering on multiple mobile terminals
It is worked at the same time with client, one-to-one relationship is presented between each functional unit and applications client.In other words, it supports multiple
Operator's startup function component on respective user terminal handles the data of the applications client on different mobile terminal,
Each functional unit can work independently and not interfere with each other simultaneously.
By taking game application as an example, need to start debug editions game process GameClient on mobile terminals as application
Client receiving processing, GameClient include that game master (GM) functional unit is responsible for opening for data process method
Hair, GM functional unit includes applications client GM command function component, and the TCP network visitor communicated with GMServer
Family end functional unit.
GM functional unit is to be responsible for executing some exceed outside game normal usage function permission in applications client code
Some function logics, such as:It executes GM instruction modification and obtains the game data of various applications clients, call application client
The engine interface at end obtains applications client process correlation performance parameters data, debugging log, these functions are formal right
The game player of the applications client of outer publication in function using what is be not present, and therefore, it is necessary to independent maintenances in a GM component
In, and just can include the GM component only in debug editions applications clients, it is used for various debugging logic developments.
It needs additionally to realize network communicating function in Games Software code, connect for the network between foundation and functional unit
It connects, and carries out the realization of functional unit interface required for information exchange with functional unit in data processing, these
Injecting codes belong to debugging code, need to carry out exploitation maintenance in above-mentioned GM component.
Mobile terminal is connected to by universal serial bus (USB) data line compared to what is be usually taken in the related technology
User terminal then operates mobile terminal using the mobile terminal assistant of user terminal, in order to reduce operation complexity and
Good debugging experience is provided for operator in operating process, the embodiment of the present invention provides a kind of based on wireless communication pair
The applications client of mobile terminal carries out the solution of data processing.Pass through the functional unit and mobile terminal in user terminal
Applications client between establish a stable communication connection, to realize that the network between functional unit and mobile terminal is logical
Letter, to realize the Debugging message interaction of both sides.
Based on above content introduction, according to embodiments of the present invention, a kind of implementation of the adjustment method of mobile application is provided
Example, it should be noted that step shown in the flowchart of the accompanying drawings can be in the calculating of such as a group of computer-executable instructions
It is executed in machine system, although also, logical order is shown in flow charts, and it in some cases, can be to be different from
Sequence herein executes shown or described step.
Fig. 1 is the flow chart of the adjustment method of mobile application according to an embodiment of the present invention, and this method takes applied to network
Business end, as shown in Figure 1, this method comprises the following steps:
Step S10 is established between the applications client that runs on the functional unit and mobile terminal of user terminal setting
Wireless network connection;
Step S12 carries out data interaction by wireless network connection between functional unit and applications client, wherein
Functional unit is for executing debugging of the user to applications client.
Through the above steps, using the applications client run on the functional unit and mobile terminal that user terminal is arranged
Between establish the mode of wireless network connection, by for executing debugging of the user to applications client functional unit with answer
With data interaction is carried out between client, overcomes limited to the data-handling capacity of applications client on mobile terminals and locate
The lower defect of efficiency is managed, is communicated, is propped up with applications client using a functional unit is started on remote user terminals
It holds and carries out data interaction with the applications client on mobile terminal under user terminal environment, take full advantage of user terminal environment
Under to mobile terminal carry out data processing convenience advantage, extend at the data to the applications client run on mobile terminal
Reason ability improves the efficiency for carrying out data processing to applications client, and then solves in the related technology due to being moved
The ability of the limitation of terminal use environment, the data processing when the applications client run on to mobile terminal is debugged has
Limit and the lower technical problem for the treatment of effeciency.
Optionally, in step slo, the application client run on the functional unit and mobile terminal of user terminal setting
It may include step performed below that wireless network connection is established between end:
Step S101 is sent according to the identification information of the identification information of functional unit and/or user terminal to functional unit
The whole application client client informations currently connected, wherein the whole applications client information currently connected include:Each application visitor
Whether the identification information of the mobile terminal where the identification information at family end, each applications client and each applications client
Through being in binding state;Alternatively, whether the identification information of each applications client and each applications client have been in binding
State;
Step S102 receives the bind-request message from functional unit, wherein shifting is carried in bind-request message
The identification information of dynamic terminal and/or the identification information of applications client;
Step S103, if determine applications client according to bind-request message while being in connection status and unbound shape
State is then established between functional unit and applications client and is associated with binding relationship;
Step S104 sends binding success message to functional unit and applications client respectively.
In a preferred embodiment, the functional unit and mobile terminal for being managed collectively user terminal by building background server
Applications client between the network connection established, in order to the connection management and function between functional unit and applications client
Telecommunication management between energy component and applications client.Repertoire component and application client is used as networking client, institute
Functional component and application client all passes through wireless network connection network service end, is attached management by network service end,
Itself the specific implementation process is as follows:
A server is built under the network environment of fixed IP.Network function group in functional unit and applications client
Part is networking client functional unit, and the Internet protocol (IP) that both sides are finished by configured in advance is connected to network service
Hold functional unit.After applications client is connected to network service end, by the identification information and/or mobile terminal of applications client
Identification information be sent to network service end, so that network service end collects the whole applications clients currently connected
Middle management.After functional unit is connected to network service end, the mark of the identification information of functional unit and/or user terminal is believed
Breath is sent to network service end, so that network service end manages the repertoire component currently connected concentratedly.Most
Eventually, after the applications client starting operation on functional unit and mobile terminal on the subscriber terminal, pass through applications client
The identification information of identification information and/or mobile terminal, the functional unit on user terminal can choose and answering on mobile terminal
One-to-one association bindings are carried out with client, and establish network communication between the two parties.
It is customized that the identification information of above-mentioned mobile terminal can be user, is mainly used for distinguishing mobile terminal,
Such as:It, can be using the customized device name of user as identification information in ios device;In Android device, it can adopt
Use the unique device identifier (UDID) of equipment as identification information.
It should be noted that data processing needs can be selected according to the concrete operations wish of operator.At data
Reason personnel expectation carries out data processing to the applications client on specific mobile terminal, can be by showing in functional unit
It is currently already attached in the applications client on the mobile terminal of network service end, according to the identification information of applications client
And/or the identification information of mobile terminal chooses mobile terminal to be bound, and carries out to the applications client on the mobile terminal
Data processing.That is, selecting applications client to be bound that can actively be chosen by functional unit by operator.
Network service end establishes the correspondence between the functional unit to be bound and applications client, and completes to double
The forwarding of square communication network data packet.All data processing behaviors between functional unit and applications client require to pass through net
Network communicates to realize.
After functional unit starting, interested applications client can independently be selected to carry out at binding and data
Reason can be used in any user terminal that can connect upper wireless network in order to meet functional unit, be applied also for meeting
Client can receive data processing, functional unit and application client on any mobile terminal that can connect upper wireless network
The Internet protocol address (IP) where end needs to be that can support revocable address, therefore, functional unit and application client
The network function component at end all cannot function as network service end, and reason is:It is to need to provide fixation as network service end
IP receives networking client connection, based on above-mentioned analysis, functional unit that the embodiment of the present invention is mentioned and applications client
Network function component is used as networking client, and communication between the two is not realized by the way of being directly connected to.
In addition, the preferred embodiment of the present invention also supports multiple functional units and the applications client on multiple mobile terminals same
When work, support freely to establish one-to-one communication connection between each functional unit and applications client, by an independent fortune
Capable server manages the communication between functional unit and applications client concentratedly.
Fig. 2 is the application visitor on the functional unit and mobile terminal according to the preferred embodiment of the invention by user terminal
The flow chart of family end progress data exchange process.After user terminal installs GMMonitor, by being operated at the end PC
GMMonitor realizes the data processing to applications client, as shown in Fig. 2, the process may include following processing step:
Step S202:User terminal starts GMMonitor, starts TCP networking client in functional unit, to GMServer
It initiates the connection, and after being successfully established connection with server-side, GMMonitor sends the mark letter of user terminal to GMServer
Breath.GMServer receives the identification information of user terminal, determines that connecting object is GMMonitor, then connects in functional unit
Connect the connecting object that GMMonitor is added in manager.GMServer sends current application client connecting tube to GMMonitor
Whole application client client informations in device are managed, after GMMonitor receives whole application client client informations, on gui interface
GameClient selection list of bindings in show the information of all GameClient, wherein the information content may include:
The identification information of mobile terminal where GameClient, the information whether GameClient has been bound.
Step S204:Start the GameClient on mobile terminal, the TCP network visitor in the GM functional unit of game process
Family end voluntarily starts, and initiates the connection to GMServer.After GameClient and server are successfully established connection,
The identification information of mobile terminal where GameClient sends the identification information and game process of itself to GMServer,
In, the machine name of the available mobile phone user's setting themselves of ios device is referred to as identification information, the available equipment of Android device
UDID is as identification information.The mark of mobile terminal where GMServer receives the identification information and game process of applications client
Know information, the connecting object of GameCLient is added in applications client connection manager, and saves shifting where game process
The identification information of dynamic terminal.The GameCLient connecting object information that is newly added is broadcast to all have connected by GMServer
GMMonitor, GMMonitor are after receiving the application client client information being newly added, GameClient of the meeting on gui interface
Select the information that new opplication client is added in list of bindings.
It should be noted that the execution sequencing that above-mentioned two step is not stringent, also support multiple GMMonitor with
Multiple GameClient are performed simultaneously above-mentioned steps.
Fig. 3 be multiple GMMonitor according to the preferred embodiment of the invention and multiple GameClient simultaneously with
GMServer establishes the topological structure schematic diagram of connection.As shown in figure 3, when any GMMonitor/GameClient closes process
Or network cause cause with GMServer disconnect be connected to the network when, GMServer will be from functional unit connection manager/application
Corresponding connecting object is removed in client connection manager.It is disconnected if it is GameClient, then also needing should
The information that GameClient is disconnected is broadcast to all GMMonitor in time, in order to which GMMonitor is somebody's turn to do determining
After GameClient is disconnected, the relevant information of the GameClient is removed from GameClient selection list of bindings.
Since wireless communication environmental stability is limited, network connection is easy to disconnect often, works as GMMonitor/
After GameClient disconnects the network connection with GMServer because of network problem, GMMonitor/GameClient will be according to above-mentioned
Step creates new network connection periodically to attempt to establish connection with GMServer again.
Step S206:Operator in the GameClient of GMMonitor by selecting to choose in list of bindings
GameClient is associated bindings, is determined by the identification information of the mobile terminal shown in list to be processed
GameClient object.
Step S208:After establishing binding relationship between GMMonitor and GameClient, GMMonitor
Data processing operation can be executed to GameClient.In data processing, GMMonitor executes GameClient
Data processing operation content can include but is not limited at least one of:
(1) editor's debugging instruction is executed to GameClient;
(2) debugging log that GameClient is generated is checked on GMMonitor in real time;
(3) under the files such as upload user terminal resource script to GameClient catalogue;
(4) local user terminal is downloaded the file into from the User Catalog of applications client;
(5) the performance parameter data obtained in real time in GameClient are monitored on GMMonitor.
In a preferred implementation process, Fig. 4 is the functional unit according to the preferred embodiment of the invention in user terminal and shifting
The flow chart of bindings process is associated between the applications client of dynamic terminal.As shown in figure 4, the process may include with
Lower processing step:
Step S402:Operator selects to select to be processed answer in list of bindings in the GameClient of GMMonitor
With client, the GameClient being selected must be not identified as having bound, and otherwise, GMMonitor refusal sends binding and asks
It asks.After successfully choosing GameClient, GMMonitor sends the GameClient information being selected to GMServer.
Step S404:GMServer receives the bind request of GMMonitor, obtains the letter of GameClient to be bound
Breath, indexes corresponding connecting object in applications client connection manager.If index illustrates corresponding less than connecting object
The already off connection of GameClient, and then notify GMMonitor Bind Failed message, i.e., bind request fails;If tying up
Determine the binding relationship for having existed corresponding GameClient in manager, illustrates GameCLient by other GMMonitor
It tries to be the first binding, GMMonitor Bind Failed message, i.e. bind request is notified to fail;In addition to this, other under normal circumstances,
GMServer establishes the binding relationship that is associated between GMMonitor and GameClient by binding management device, notice
GMMonitor and GameClient binding success message, and the GMMonitor GameClient for being broadcast to that remaining has connected is
It is preempted the message of binding.
Step S406:If the GMMonitor for initiating bind request receives Bind Failed notice, shows and unsuccessfully disappear
Breath, so that GMMonitor re-initiates bind request;If receiving binding success message, binding success is shown, and
GameClient selects to mark corresponding GameClient in list of bindings to have bound.Remaining GMMonitor is on receiving
After stating the bound broadcast message of GameClient, then by GameClient select in list of bindings corresponding GameClient for
It has bound.
Optionally, in step S10, the applications client that is run on the functional unit and mobile terminal of user terminal setting it
Between establish after wireless network connection, can also include step performed below:
Step S13, receive from functional unit unbinding request or detect functional unit disconnection of wireless network
Connection;
Step S14 searches the applications client with functional unit binding;
Step S15 releases the existing association binding relationship between functional unit and applications client, and connects to current
Whole user terminal broadcasted application clients be released from the message of binding.
In GMMonitor the and GameClient both sides for having established binding relationship if necessary to unbinding relationship, then both
Unbinding request can be actively initiated by GMMonitor, it can also be wherein the one of GMMonitor and GameClient both sides
After side disconnects network connection with GMServer, bipartite binding relationship is actively removed by GMServer.
Fig. 5 is that the functional unit according to the preferred embodiment of the invention by user terminal initiates disassociation bindings mistake
The flow chart of journey.As shown in figure 5, the process may include following processing step:
Step S502:When operator binding have execute unbinding operation on the GMMonitor of GameClient when,
GMMonitor can send unbinding request to GMServer.
It is disconnected with GMServer in the case where network connection in GMMonitor due to closing process or network appearance exception,
GMServer can detect that the network of corresponding applications client disconnects message.
Step S504:GMServer receives the unbinding request of GMMonitor or detects that GMMonitor is disconnected
After network connection, the GameClient connecting object of the corresponding binding of GMMonitor is searched in binding management device, to release
Binding relationship between GMMonitor and GameClient, and the unbinding message of the GameClient is broadcast to
All GMMonitor.
Step S506:Whole GMMonitor receive GMServer broadcast the unbinding message of GameClient after,
It selects to set unbound for the GameClient information in list of bindings in GameClient.
Optionally, in step S12, the applications client that is run on the functional unit and mobile terminal of user terminal setting it
Between establish after wireless network connection, can also include step performed below:
Step S16 detects that applications client disconnection of wireless is connected to the network;
Step S17, there are the functional units of binding relationship with applications client for lookup;
Step S18 releases the existing association binding relationship between functional unit and applications client, and respectively to function
Component and application client notification applications client has been released from the message of binding and has removed user terminal to what is currently connected
Except remaining user terminal broadcasted application client be released from the message of binding.
Fig. 6 is that the applications client according to the preferred embodiment of the invention by mobile terminal initiates disassociation bindings
The flow chart of process.As shown in fig. 6, the process may include following processing step:
Step S602:When the closing of GameClient process or Network Abnormal of having bound GMMonitor lead to its own
When disconnecting network connection with GMServer, GMServer monitors that the network of corresponding applications client disconnects message.
Step S604:After GMServer detects that GameClient disconnects network connection, first in binding management device
The GMMonitor connecting object for searching the corresponding binding of GameClient, secondly releases the binding of GMMonitor and GameClient
Relationship finally releases the GameClient then respectively by unbinding message informing to GMMonitor and GameCLient
The message of binding is broadcast to remaining GMMonitor.
Step S606:After whole GMMonitor receive the GameClient unbundlings message of GMServer broadcast,
Set unbound for the GameClient information in GameClient selection list of bindings.
Optionally, in step s 12, carrying out data interaction with applications client by functional unit may include following hold
Row step:
Step S1201 receives the debugging instruction from functional unit, wherein debugging instruction is for controlling application client
End executes corresponding debugging operations according to the debugging demand for including in debugging instruction;
Step S1202 searches the applications client with functional unit binding;
Debugging instruction is forwarded to applications client by step S1203.
In a preferred embodiment, when running applications client on mobile terminal, by starting one solely in user terminal
Vertical operation and the functional unit communicated with applications client, can support operator to utilize the functional unit pair in user terminal
Applications client on mobile terminal carries out corresponding debugging operations, by being debugged on the subscriber terminal using operator
The convenient sexual clorminance of operation improves debugging efficiency, while also by being propped up in the process of development using the functional unit of user terminal
The developing instrument held more limits looser characteristic comprehensively and to program feature to enrich debugging function exploitation content.That is,
Also it can start an independently operated debugging window pair in user terminal while running applications client on mobile terminals
Applications client is debugged, then both will not influence the normal use operation of applications client on mobile terminal, and also can be convenient
It is debugged in user terminal on ground.
After the functional unit of user terminal and the applications client of mobile terminal establish one-to-one binding relationship, Ke Yitong
It crosses functional unit editor debugging instruction and is sent to applications client, so that applications client executes in corresponding debugging instruction
Hold, it is final to realize debugging demand.
Fig. 7 is that the functional unit of user terminal according to the preferred embodiment of the invention is sent out to the applications client of mobile terminal
The flow chart for sending debugging instruction to execute debugging process.As shown in fig. 7, the process may include following processing step:
Step S702:Operator edits in the debugging instruction edit box that binding has the GMMonitor of GameClient
GM debugging instruction, after clicking transmission key, command content is sent to GMServer by GMMonitor.
Step S704:GMServer receives the GM command content from GMMonitor, is searched by binding management device
To the GameClient of binding, and GM debugging instruction is forwarded to the GameClient of binding.
Step S706:GameClient is receiving GM debugging instruction, searches in GM instruction execution functional unit corresponding
Instruction execution interface, call instruction executes interface and executes corresponding command content.
In general, the function realization of GM instruction can all safeguard an instruction execution mapping in GM functional unit
Table, GM functional unit will be gone to search instruction accordingly by instruction name and held after receiving corresponding instruction execution request
Line function, each instruction execution function are also maintained in GM functional unit, and instruction execution function can be called in game identification code and be supported
Code interface go to execute and debug the relevant specific operation of needs, such as:By taking game application as an example, change in game client
Interior game role data (including:Empirical data, stage property data, level data).
Optionally, in step s 12, carrying out data interaction with applications client by functional unit may include following hold
Row step:
Step S1204 receives the debugging log from applications client, wherein debugging log is to pass through application client
What end issued after the output interface to debugging log redirects;
Step S1205 searches the functional unit with applications client binding;
Debugging log is forwarded to functional unit by step S1206.
The engine layer identification code and script layer identification code of applications client call the standard outputs interface such as print in the process of running
When, it can all pass through standard output stdout interface output information content.Engine layer identification code and script layer generation when applications client
When encountering wrong exception in code operational process, traceback information and miscue in code operational process can all pass through mistake
Accidentally output stderr interface output error content, these contents are referred to as the debugging day generated in applications client operational process
Will.Debugging log is to position the important information source being abnormal in game play, and all debugging logs are all to pass through this
Two interfaces go acquisition.
After the functional unit of user terminal and the applications client of mobile terminal establish one-to-one binding relationship, using visitor
The debugging log generated in real time in the end of family, which is sent in functional unit, to be shown.
Fig. 8 is mobile in the functional unit real-time display of user terminal in debugging process according to the preferred embodiment of the invention
The flow chart for the debugging log process that applications client in terminal generates.As shown in figure 8, the process may include following processing
Step:
Step S802:GameClient receive from GMServer binding success message after, GameClient
Debugging log output interface can be redirected, to generate debugging log whenever GameClient, transmission interface can be called,
Debugging log content is sent to GMServer.
Debugging log is exported by two interfaces of standard output stdout and standard error stderr, Ke Yitong
It crosses and changes the execution contents of the two interfaces to modify relevant operation when log output.Such as:Original interface is defeated in log
The content that output is written in local log file can be only executed when out;And by changing above-mentioned two interface, it can be changed to
In log output, not only write-in exported content in local log file, but also sent network by network for output content and take
Business end.Therefore, calling interface does the logic executed when above-mentioned redirection operation can be understood as changing log output.
Step S804:GMServer passes through binding management after receiving the debugging log from GameClient
Device finds the GMMonitor of binding, and debugging log information is forwarded to the GMMonitor of binding.
Step S806:GMMonitor is being received after GMServer debugging log, in debugging log display window
Corresponding log content is printed in mouthful, operator can check corresponding debugging log information in debugging log display window.
When cancel between GameClient and GMMonitor be associated with binding relationship when, GameClient comes from receiving
In GMServer cancel association binding message after, GameClient can restore redirect interface, with cancel to
GMServer sends debugging log.
Optionally, in step s 12, carrying out data interaction with applications client by functional unit may include following hold
Row step:
Step S1207 receives the file upload request from functional unit, wherein carry in file upload request
Functional unit is by the way that user terminal, locally the filename of file to be uploaded and file content obtain after serializing processing
Binary word throttling;
Step S1208 searches the applications client with functional unit binding;
File upload request is forwarded to applications client, wherein two carried in file upload request by step S1209
System byte stream is for making applications client rebuild user terminal locally file to be uploaded.
The file of place user terminal local can be sent to applications client by wireless network by above-mentioned functional unit
On the mobile terminal at place, and the file data of applications client is modified according to debugging demand, is primarily used to modification and answers
With the resource script file of client.
Often there is demand of the downloading GameClient file to the local PC in debugging process, can also exist and upload PC
Local file is to the demand of GameClient, and there are a directories of user data under the application catalog of GameClient
Document, fine arts resource and code foot in the file data generated in GameClient operational process, GameClient
Originally the patch file that needs are placed when modification demand is stored under the document, the text for needing to upload in debugging process
Part or the file of downloading are also stored under document.
Fig. 9 is that the functional unit of the user terminal according to the preferred embodiment of the invention in debugging process will be on local file
Reach the flow chart of the applications client process of mobile terminal.As shown in figure 9, the process may include following processing step:
Step S902:Operator uploads selection user terminal in choice box by the file of GMMonitor and locally needs
The file of upload, and click upload button.GMMonitor obtains the path of selected file, opens and reads in a binary fashion
Filename and file content sequence are turned to byte stream and are given out a contract for a project the side of request by network packet by the file content for needing to upload
Formula is sent to GMServer.
Step S904:GMServer receives the file upload request from GMMonitor, is searched by binding management device
To the GameClient of binding, forward corresponding document content to the GameClient of binding.
Step S906:GameClient receives the file upload request from GMServer, reads in network packet
File name and file binary word throttling, create file under document catalogue, this document named according to file name,
Binary word is throttled, this document is written, to rebuild corresponding file.
It should be noted that the partial document for locally uploading to GameClient from user terminal can in debugging process
Directly to upload, however, there are also partial document can by pre-processed on GMMonitor (including:It is packaged, compression) after
GameClient can be just uploaded to, by taking game application as an example, such as:Resource script file, the resource foot in usual Games Software
It needs to carry out file replacement by way of beating patch when this document changes, that is, in the document catalogue of Games Software
It is lower that modified resource script file is packaged one patch file of boil down to according to predetermined format, it was run for game process
It reads and uses in journey.
Therefore, in the preferred embodiment, if the game resource scripted code of user terminal local uploaded to
Document catalogue under GameClient carries out in use, resource script can be packaged and be compressed into patch by GMMonitor
The process of file is as preprocessing process.For this purpose, the above-mentioned game resource script file by user terminal local uploads to
The process of document catalogue under GameClient is specific as follows:
The first step opens file upload choice box, chooses resource script file to be uploaded;
Second step clicks packing button, and GMMonitor calls the resource script patch baler disposed on user terminal
Selected resource script file is packaged as a patch file by tool;
Third step, GMMonitor obtain the file path after being packaged, and open in a binary fashion and read text to be uploaded
Filename and file content sequence are turned to byte stream in such a way that network packet gives out a contract for a project request and are sent to by part content
GMServer。
Optionally, in step s 12, carrying out data interaction with applications client by functional unit may include following hold
Row step:
Step S1210, the acquisition listed files received from functional unit are requested;
Step S1211 searches the applications client with functional unit binding, and forwards to applications client and obtain file column
Table request;
The catalogue file list got from applications client is forwarded to functional unit, and receives and come from by step S1212
In the file download request of functional unit, wherein carried in file download request chosen from catalogue file list under
Published article part;
File download request is forwarded to applications client, and receives applications client according to file download by step S1213
The file download response that request returns, wherein carry applications client in file download response and pass through to file to be downloaded
Filename and file content carry out the binary word obtained after serializing processing throttling;
Step S1214, by file download response be forwarded to functional unit, wherein file download response in carry two into
Byte stream processed is for making functional unit rebuild file to be downloaded.
Above-mentioned functional unit can pass through the mobile terminal download games log text where wireless network from applications client
Part is local to user terminal.
Figure 10 is the functional unit of the user terminal according to the preferred embodiment of the invention in debugging process by mobile terminal
Applications client on file download to user terminal local process flow chart.As shown in Figure 10, which may include
Following processing step:
Step S1002:Operator has the GMMonitor of GameClient to open file download choice box in binding,
GMMonitor sends to GMServer and requests, and obtains the file information column under the document catalogue of bound GameClient
Table.
Step S1004:GMServer receives the request message from GMMonitor, is found by binding management device
The GameClient of binding, and sent to the GameClient of binding and obtain listed files request.
Step S1006:GameClient receives document catalogue file list request, by All Files under document
List of file names be sent to GMServer.
Step S1008:GMServer receives document catalogue file list, finds binding by binding management device
GMMonitor, forwarding document catalogue file list is to GMMonitor.
Step S1010:After GMMonitor receives document catalogue file list, shown in file download choice box
Show document catalogue file list, operator can choose corresponding file download in list.In the case where operator clicks
After carrying button, GMMonitor sends file download request to GMServer.
Step S1012:GMServer receives the file download request from GMMonitor, is looked by binding management device
The GameClient of binding is found, and file download request is forwarded to the GameClient of binding.
Step S1014:GameClient receives the downloading file request from GMServer, searches at document
The content of file is opened in binary form and read to corresponding file, and filename and file content sequence are turned to byte stream
GMServer is sent to by the request of giving out a contract for a project of network packet.
Step S1016:GMServer receives downloading document content information, finds binding by binding management device
GMMonitor, GMMonitor of the content information that transmits a document to binding.
Step S1018:GMMonitor receives the file to be downloaded content information from GMServer, reads network number
According in packet filename and file binary word throttling, file is created in the case where catalogue is locally-downloaded in user terminal, according to filename
File is named, binary word is throttled, file is written, rebuild corresponding file.
Optionally, in step s 12, carrying out data interaction with applications client by functional unit may include following hold
Row step:
Step S1215, the screenshotss received from functional unit are requested, wherein screenshotss are requested for controlling application client
Screenshot capture interface is called to generate screenshotss image according to screen message in end;
Step S1216 searches the applications client with functional unit binding, and screenshotss request is forwarded to application client
End;
Step S1217 is received and is responded from applications client screenshotss, and screenshotss response is back to functional unit,
In, applications client is carried in screenshotss response, and the filename and file content of the file of storage screenshotss image are serialized
The binary word throttling obtained after processing, binary word throttling is for making functional unit rebuild the file of storage screenshotss image.
Above-mentioned functional unit can pass through the mobile terminal download screen snapshot where wireless network from applications client
As local to user terminal.
Figure 11 is the functional unit of the user terminal according to the preferred embodiment of the invention in debugging process by mobile terminal
The screenshot capture that is obtained in current operational process of applications client download to the flow chart of user terminal local process.Such as figure
Shown in 11, which may include following processing step:
Step S1102:Operator has the GMMonitor of GameClient to click screen shot button in binding,
GMMonitor sends screen shot request to GMServer.
Step S1104:GMServer receives the screen shot request from GMMonitor, is looked by binding management device
The GameClient of binding is found, screen shot is sent and requests to the GameClient of binding.
Step S1106:GameClient receives screen shot request, calls screenshot capture interface, and screen message is raw
It at image, is stored under document, opens and read the content of file in binary form, then by filename and file content
Sequence turns to byte stream and is sent to GMServer by network packet request of giving out a contract for a project.
Step S1108:GMServer receives screenshotss image content information, finds binding by binding management device
GMMonitor, GMMonitor of the content information that transmits a document to binding.
Step S1110:GMMonitor receives the screenshotss image content information from GMServer, reads network data
Filename and the throttling of file binary word in packet, create file in the case where catalogue is locally-downloaded in user terminal, are ordered according to filename
Name file, binary word is throttled, file is written, rebuild corresponding file, then user terminal image display program is called to show
Image.
Optionally, in step s 12, carrying out data interaction with applications client by functional unit may include following hold
Row step:
Step S1218 receives the acquisition monitoring parameter list request from functional unit, wherein obtains monitoring parameter
Requested monitoring parameter is chosen with the operation associated over-all properties parameter of applications client in list request;
Step S1219 searches the applications client with functional unit binding, and forwards to applications client and obtain monitoring ginseng
Number list request;
The monitoring parameter list got from applications client is forwarded to functional unit by step S1220, wherein monitoring
It include most freshly harvested numerical value corresponding with requested monitoring parameter in monitoring parameter list request is obtained in parameter list.
Above-mentioned functional unit can star a performance parameter monitoring interface, selection need the performance parameter that monitors it
Afterwards, monitoring parameter request is sent to applications client, to obtain corresponding performance parameter in application process operational process, with trip
For play application, it can include but is not limited to:Frame per second, memory usage, game rendering dough sheet number, game render textures number,
Applications client sends performance ginseng corresponding with monitoring parameter request to functional unit in real time after receiving monitoring parameter request
Several monitored results, functional unit carry out real-time exhibition in the debugging interface window UI after receiving corresponding monitored results,
Its exhibition method can include but is not limited to:Real-time rendering curve graph, print parameters data, to realize the property of application processes
It can parameter real time monitoring.
Figure 12 is that the functional unit monitoring of the user terminal according to the preferred embodiment of the invention in debugging process is mobile eventually
The flow chart of the runnability process of the applications client at end.In debugging process, operator can choose GameClient
Upper corresponding performance parameter, and shown on the monitoring interface of GMMonitor in real time, for monitoring GameClient in real time, with
Obtain GameClient performance parameter.As shown in figure 12, which may include following processing step:
Step S1202:Operator's opening performance parameter monitoring circle on the GMMonitor that binding has GameClient
Face, wherein performance parameter monitoring interface may include:Performance parameter selective listing and Drawing of Curve interface are selected in performance parameter
The performance parameter type chosen in list and need to monitor is selected, then GMMonitor, which will be sent, is checked parameter list information extremely
GMServer, request are monitored to choosing parameter.
Step S1204:GMServer receives monitoring parameter list request, finds binding by binding management device
GameClient, forwarding monitoring parameter list to GameClient.
Step S1206:GameClient receives monitoring parameter list request, needs to safeguard a watch-list, will join
The parameter of number request list is added to watch-list.When watch-list is not sky, acquisition timer is just opened, is periodically adjusted
The numerical value of each performance parameter in watch-list is acquired, with performance parameter acquisition interface to send out performance parameter number list
It send to GMServer.
Step S1208:After GMServer receives the performance parameter number list of GameClient feedback, managed by binding
Reason device finds the GMMonitor of binding, and performance parameter number list is then sent to GMMonitor.
Step S1210:GMMonitor is after receiving performance parameter number list, according in performance parameter monitoring interface
The corresponding each performance parameter type of numerical value in performance parameter number list is shown in curve graph surface and interface, curve graph
Each performance parameter type in surface and interface all will a corresponding performance parameter curve.By in corresponding performance parametric plot
Numerical point is drawn in upper increase, and refreshes coordinate position, sets current monitor parameter coordinate position for the numerical point position,
To realize that the performance parameter to applications client monitors in real time.
The preferred embodiment realizes corresponding graph making function using the library matlablib of python, and matlablib can
Curve interface is drawn to call, all properties parameter type and parameter values is incoming as parameter in a manner of two-dimensional array
Easy to use to draw out corresponding curve, each performance parameter graph color label can also automatic distinguishing.
In monitoring performance parametric procedure, increase the monitoring of some performance parameters if necessary, then it can be in monitoring interface
Parameter selection list in continue to choose newly-increased performance parameter, subsequent GMMonitor will send the performance parameter newly chosen
List request is to GameClient.And GameClient will be updated watch-list after receiving newly-increased performance parameter request,
The performance parameter of newly-increased request is added, next time is by that will increase the newly-increased performance of acquisition when acquisition timer acquisition performance parameter
Parameter.
Optionally, in step s 12, carrying out data interaction with applications client by functional unit may include following hold
Row step:
Step S1221, the closing received from functional unit monitor request, wherein close monitoring request for controlling
Applications client, which is cancelled, is monitored requested monitoring parameter in acquisition monitoring parameter list request;
Step S1222 searches the applications client with functional unit binding, and forwards closing monitoring to ask to applications client
It asks.
Optionally, in step s 12, carrying out data interaction with applications client by functional unit may include following hold
Row step:
Step S1223, the cancellation part monitoring parameter received from functional unit are requested, wherein are cancelled part and monitored
Parameter request removes prison corresponding with the request of part monitoring parameter is cancelled for controlling applications client from monitoring parameter list
Control parameter;
Step S1224 searches the applications client with functional unit binding, and forwards cancellation part to supervise to applications client
Control parameter request.
Figure 13 is that the functional unit of the user terminal according to the preferred embodiment of the invention in debugging process cancels monitoring shifting
The flow chart of the runnability process of the applications client of dynamic terminal.As shown in figure 13, which may include following processing step
Suddenly:
Step S1302:Operator is on the GMMonitor that binding has GameClient, if it is desired to cancel whole
The monitoring of energy parameter, then can choose closing monitoring interface, and then GMMonitor can send to GMServer and close asking for monitoring
It asks;If it is desired to cancel the performance parameter that part has monitored, then it can cancel in the parameter selection list of monitoring interface and choose
Corresponding performance parameter, then GMMonitor can send the performance parameter list of monitoring to be cancelled to GMServer.
Step S1304:GMServer is receiving closing monitoring or cancellation partial properties parameter from GMMonitor
After monitoring request, the GameClient of binding is found by binding management device, and the corresponding operation requests for cancelling monitoring are sent out
It send to the GameClient of binding.
Step S1306:If GameClient receives closing monitoring request, performance parameter is acquired in functional unit
Watch-list empty, and stop acquire timer, stop continue acquisition performance parameter;Cancel partial properties ginseng if received
Number monitoring request, then need to update watch-list, performance parameter corresponding in watch-list removed, and acquisition next time timer is adopted
The performance parameter being cancelled just will not be acquired again when collecting performance parameter, if watch-list is sky, without acquisition demand, equally
It needs to close acquisition timer, stops acquisition performance parameter.
When GameClient received during opening monitoring collection performance parameter unbinding message or
When GameClient detects the separated network connection with GMServer, then GameClient will no longer sending performance parameter,
It empties watch-list and closes acquisition timer.
According to embodiments of the present invention, a kind of embodiment of the debugging apparatus of mobile application is additionally provided.Figure 14 is according to this
The structural block diagram of the debugging apparatus of the mobile application of inventive embodiments.As shown in figure 14, the apparatus may include:Establish module
10, wireless network company is established between the applications client for running on the functional unit and mobile terminal that user terminal is arranged
It connects;Interactive module 20, for carrying out data interaction between functional unit and applications client by wireless network connection,
In, functional unit is for executing debugging of the user to applications client.
Optionally, establishing module 10 may include:First transmission unit (not shown), for according to functional unit
The identification information of identification information and/or user terminal sends the whole application client client informations currently connected to functional unit,
In, the whole applications client information currently connected include:The identification information of each applications client, each applications client institute
Mobile terminal identification information and each applications client whether be in binding state;Alternatively, each application visitor
Whether the identification information at family end and each applications client have been in binding state;First receiving unit (not shown),
For receiving the bind-request message from functional unit, wherein carry the mark of mobile terminal in bind-request message
The identification information of information and/or applications client;Unit (not shown) is established, if for true according to bind-request message
Determine applications client while being in connection status and unbound state, then establishes and be associated between functional unit and applications client
Binding relationship;Second transmission unit (not shown), for sending binding success to functional unit and applications client respectively
Message.
Optionally, Figure 15 is the structural block diagram of the debugging apparatus of mobile application according to the preferred embodiment of the invention.Such as figure
Shown in 15, above-mentioned apparatus can also include:Processing module 30, for receiving unbinding request or inspection from functional unit
Measure the network connection of functional unit disconnection of wireless;Searching module 40, for searching the applications client with functional unit binding;Solution
Except module 50, for releasing the existing association binding relationship between functional unit and applications client, and to currently connecting
Whole user terminal broadcasted application clients have been released from the message of binding.
Optionally, processing module 30, for detecting that applications client disconnection of wireless is connected to the network;Searching module 40 is used
In searching, there are the functional units of binding relationship with applications client;Module 50 is released, for releasing in functional unit and application
Existing association binding relationship between client, and respectively to functional unit and applications client notice applications client by
Unbinding message and to remaining the user terminal broadcasted application client in addition to the user terminals currently connected
It is released from the message of binding.
Optionally, interactive module 20 may include:Second receiving unit (not shown), for receiving from function
The debugging instruction of component, wherein debugging instruction is held for controlling applications client according to the debugging demand for including in debugging instruction
The corresponding debugging operations of row;First searching unit (not shown), for searching the applications client with functional unit binding;
Third transmission unit (not shown), for debugging instruction to be forwarded to applications client.
Optionally, interactive module 20 may include:Third receiving unit (not shown), for receiving from application
The debugging log of client, wherein debugging log is to be reset by applications client in the output interface to debugging log
It issues backward;Second searching unit (not shown), for searching the functional unit with applications client binding;4th hair
Unit (not shown) is sent, for debugging log to be forwarded to functional unit.
Optionally, interactive module 20 may include:4th receiving unit (not shown), for receiving from function
The file upload request of component, wherein carried in file upload request functional unit pass through it is locally to be uploaded to user terminal
The filename and file content of file carry out the binary word obtained after serializing processing throttling;Third searching unit is (in figure not
Show), for searching the applications client with functional unit binding;5th transmission unit (not shown) is used for file
Upload request is forwarded to applications client, wherein the binary word carried in file upload request throttles for making application client
End rebuilds user terminal locally file to be uploaded.
Optionally, interactive module 20 may include:5th receiving unit (not shown), for receiving from function
The acquisition listed files of component is requested;4th searching unit (not shown), for searching the application with functional unit binding
Client, and forwarded to applications client and obtain listed files request;First processing units (not shown), for will be from answering
The catalogue file list got with client is forwarded to functional unit, and reception is asked from the file download of functional unit
It asks, wherein the file to be downloaded chosen from catalogue file list is carried in file download request;The second processing unit (figure
In be not shown), for file download request to be forwarded to applications client, and receive applications client according to file download request
The file download of return responds, wherein carries applications client in file download response and passes through the file to file to be downloaded
Name and file content carry out the binary word obtained after serializing processing throttling;6th transmission unit (not shown), is used for
File download response is forwarded to functional unit, wherein the binary word carried in file download response throttles for making function
Component rebuilds file to be downloaded.
Optionally, interactive module 20 may include:6th receiving unit (not shown), for receiving from function
The screenshotss of component are requested, wherein screenshotss request calls screenshot capture interface raw according to screen message for controlling applications client
At screenshotss image;Third processing unit (not shown) for searching the applications client with functional unit binding, and will be cut
Screen request is forwarded to applications client;Fourth processing unit (not shown), for receiving from applications client screenshotss
Response, and screenshotss response is back to functional unit, wherein applications client is carried in screenshotss response to storage screenshotss image
File filename and file content carry out the binary word obtained after serializing processing throttling, binary word throttle for making
Functional unit rebuilds the file of storage screenshotss image.
Optionally, interactive module 20 may include:7th receiving unit (not shown), for receiving from function
The acquisition monitoring parameter list request of component, wherein obtaining requested monitoring parameter in monitoring parameter list request is and fortune
It is chosen in the associated over-all properties parameter of row applications client;5th processing unit (not shown), for lookup and function
The applications client of energy component binding, and forwarded to applications client and obtain monitoring parameter list request;7th transmission unit (figure
In be not shown), the monitoring parameter list for will get from applications client is forwarded to functional unit, wherein monitoring parameter
It include most freshly harvested numerical value corresponding with requested monitoring parameter in monitoring parameter list request is obtained in list.
Optionally, interactive module 20 may include:8th receiving unit (not shown), for receiving from function
The closing of component, which monitors, requests, wherein closes monitoring request and cancels for controlling applications client to acquisition monitoring parameter list
Requested monitoring parameter is monitored in request;6th processing unit (not shown) is tied up for searching with functional unit
Fixed applications client, and forwarded to applications client and close monitoring request.
Optionally, interactive module 20 may include:9th receiving unit (not shown), for receiving from function
The cancellation part monitoring parameter of component is requested, wherein cancels the request of part monitoring parameter for controlling applications client from monitoring
Monitoring parameter corresponding with the request of part monitoring parameter is cancelled is removed in parameter list;7th processing unit (not shown),
For searching the applications client with functional unit binding, and is forwarded to applications client and cancel the request of part monitoring parameter.
Above-mentioned preferred implementation process is done below in conjunction with preferred embodiment shown in Figure 16 to Figure 18 and is further retouched
It states.
Figure 16 is the structural representation according to the preferred embodiment of the invention that data processing function is realized by network service end
Figure.As shown in figure 16, GMServer process need to only use in the preferred embodiment in running background without gui interface
Python language is realized.GMServer is by TCP network service end, functional unit connection manager, binding management device and answers
It is formed with client connection manager, wherein TCP network service end is by network management component, message processing components, processing of giving out a contract for a project
Component composition.The concrete function of above-mentioned each component part is as follows:
(1) major function of network management component is as follows:
1) it is responsible for socket (socket) connection that TCP server listens to client, wherein the IP address listened to and port
It is fixed;
2) the packet receiving caching for being responsible for each connection networking client socket of TCP server periodicity repeating query obtains network and receives
It wraps and fills in packet receiving queue;
3) it is responsible for obtaining the network packet for being sent to each connection client from queue of giving out a contract for a project, and passes through socket
Interface of giving out a contract for a project sent.
(2) message processing components are responsible for obtaining the network data of each client from the packet receiving queue of network management component
Packet is parsed, and searches corresponding message processing function according to messaging protocol number, and corresponding message processing function is called to handle
The network request content of each connection client.
(3) processing component of giving out a contract for a project is responsible for that TCP server is needed to be sent to the message content of each network connection client
Sequence turns to network packet, and fills in network transmit queue, and network management device assembly is waited to be sent to network packet
Connect client.
After whole GMMonitor and GameClient and GMServer establish connection, it is required to GMServer
Send the identification information of itself.After GMServer receives identification information, corresponding ClientObj will be created, wherein
ClientObj is packaged with all information of connection client, including:Identity information, queue of giving out a contract for a project, is received connection socket information
Packet queue.The ClientObj of all GMMonitor is managed by functional unit manager;All GameClient's
ClientObj is managed by applications client connection manager.
After a GMMonitor is associated with binding relationship with a GameClient foundation, binding management device will
The ClientObj of the ClientObj and GameClient of GMMonitor establish a mapping relations;When a GMMonitor with
After one GameClient disassociation binding relationship, binding management device also needs to be removed corresponding mapping relations.
After GMMonitor or GameClient and GMServer are disconnected, functional unit connection manager and answer
Corresponding ClientObj object will be cleared up with client connection manager, if in binding management device including corresponding mapping
Relationship, then binding management device can also release the mapping relations.
Figure 17 is the structural schematic diagram of the functional unit of user terminal according to the preferred embodiment of the invention.Such as Figure 17 institute
Show, GMMonitor deployment on the subscriber terminal, can use the application development language that any user terminal is supported to be subject to
It realizes, this example carries out scripting language exploitation using python+pyqt language, and is packaged by py2exe tool using journey
Sequence.
The program architecture of GMMonitor is needed comprising a GUI operation interface, the function which is realized
May include:Debugging instruction edit box, debugging log display box, performance parameter monitoring interface, file upload under choice box, file
It carries choice box and GameClient binds choice box, wherein operator is sent out by debugging instruction edit box editor's debugging instruction
It is sent to GameClient execution, the debugging log that GameClient is generated, passage capacity ginseng are checked by debugging log display box
The performance parameter of number monitoring interface operation selection performance parameter type monitoring GameClient, uploads choice box selection by file
The file of local user terminal is uploaded under GameClient directories of user data, is selected by file download choice box
File download on GameClient is local to user terminal and binds choice box selection by GameClient
GameClient is associated bindings.
The program architecture of GMMonitor is also needed comprising a TCP networking client functional unit, which can be with
Including:Network management component, message processing components and processing component of giving out a contract for a project.After GMMonitor starting, TCP networking client
Functional unit will voluntarily start.The specific implementation function of above-mentioned various components is as follows:
(1) major function of network management component is as follows:
1) it is responsible for TCP networking client creation socket to initiate the connection to GMServer, wherein the IP address to be connected
All be pre-configured with completion with port, with GMServer to listen to IP address consistent with port;
2) the packet receiving caching for being responsible for TCP Client periodicity repeating query socket obtains the network number received from GMServer
According to packet, and fill in packet receiving queue;
3) it is responsible for obtaining from queue of giving out a contract for a project and will be sent to the network packet of GMServer, and the hair for passing through socket
Packet interface is sent.
(2) message processing components be responsible for obtaining from the packet receiving queue of network management component the network packet that receives into
Row parsing searches corresponding message processing function according to messaging protocol number, and calls corresponding message processing function processing corresponding
Message content.
(3) processing component of giving out a contract for a project is responsible for that TCP networking client is needed to be sent to the message of each network connection client
Content array turns to network packet, and fills in network transmit queue, to wait network management component to be sent to GMServer.
Figure 18 is the knot of applications client corresponding with the functional unit of user terminal according to the preferred embodiment of the invention
Structure schematic diagram.As shown in figure 18, GameClient needs to build in GM functional unit a TCP networking client component, trip
The service logic of play code is usually all scripting to realize, wherein python is common game scripts code development language
TCP networking component may be implemented in speech, the network library that python provides open source.The TCP networking client that the preferred embodiment is built
Component realizes that component may include using python network library:Network management component, message processing components and give out a contract for a project
Processing component;TCP networking client component will voluntarily start after GameClient starting.The specific reality of above-mentioned various components
Existing function is as follows:
(1) major function of network management component is as follows:
1) it is responsible for TCP networking client creation socket to initiate the connection to GMServer, wherein the IP address to be connected
It is all pre-configured with completion with port, is consistent with the IP address of listening to of GMServer with port;
2) the packet receiving caching for being responsible for TCP Client periodicity repeating query socket obtains the network number received from GMServer
According to packet, and fill in packet receiving queue;
3) it is responsible for obtaining the network packet that will be sent to GMServer, and the hair for passing through socket out of give out a contract for a project queue
Packet interface is sent.
(2) message processing components be responsible for obtaining from the packet receiving queue of network management component the network packet that receives into
Row parsing searches corresponding message processing function according to messaging protocol number, and calls corresponding message processing function processing corresponding
Message content.
In a preferred implementation process, the Message Processing that GameClient is received includes the following three types:
The first, call GM instruction execution component to execute corresponding GM command content;
Second, the performance parameter of invocation performance parameter acquisition component acquisition game play;
The third, call I/O component carry out file read-write on mobile terminals.
(3) processing component of giving out a contract for a project is responsible for that the message of each network connection client for TCP networking client will be sent to
Content array turns to network packet, and fills in network transmit queue, to wait network management component to be sent to GMServer.
After GameClient is associated with binding relationship with GMMonitor foundation, whenever the debugging log of GameClient is defeated
Log content can be given out a contract for a project by processing component of giving out a contract for a project by network and is sent to by component output journal content out
GMServer。
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code
Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (22)
1. a kind of adjustment method of mobile application, which is characterized in that including:
Wireless network connection is established between the applications client run on the functional unit and mobile terminal of user terminal setting;
Data interaction is carried out between the functional unit and the applications client by the wireless network connection, wherein
The functional unit is for executing debugging of the user to the applications client;
Wherein, the applications client run on the functional unit and the mobile terminal of user terminal setting
Between establish the wireless network connection and include:According to the identification information of the functional unit and/or the mark of the user terminal
Know information and send the whole application client client informations currently connected to the functional unit, wherein the whole currently connected
Applications client information includes:The mark of mobile terminal where the identification information of each applications client, each applications client
Know information and whether each applications client has been in binding state;Alternatively, the identification information of each applications client and
Whether each applications client has been in binding state;Receive the bind-request message from the functional unit, wherein
The identification information of the mobile terminal and/or the identification information of the applications client are carried in the bind-request message;
If determine the applications client according to the bind-request message while being in connection status and unbound state, in institute
It states to establish between functional unit and the applications client and is associated with binding relationship;Respectively to the functional unit and application visitor
Family end sends binding success message.
2. the method according to claim 1, wherein the functional unit and institute in user terminal setting
It states and is established between the applications client run on mobile terminal after the wireless network connection, further include:
Receive from the functional unit unbinding request or detect that the functional unit disconnects the wireless network
Connection;
Search the applications client with functional unit binding;
The existing association binding relationship between the functional unit and the applications client is released, and complete to what is currently connected
Portion's user terminal broadcasts the message that the applications client has been released from binding.
3. the method according to claim 1, wherein the functional unit and institute in user terminal setting
It states and is established between the applications client run on mobile terminal after the wireless network connection, further include:
Detect that the applications client disconnects the wireless network connection;
There are the functional units of binding relationship with the applications client for lookup;
The existing association binding relationship between the functional unit and the applications client is released, and respectively to the function
Component and the applications client notify the applications client to be released from the message of binding and removed to what is currently connected
Remaining user terminal except the user terminal broadcasts the message that the applications client has been released from binding.
4. the method according to claim 1, wherein being carried out by the functional unit and the applications client
Data interaction includes:
Receive the debugging instruction from the functional unit, wherein the debugging instruction is for controlling the applications client
Corresponding debugging operations are executed according to the debugging demand for including in the debugging instruction;
Search the applications client with functional unit binding;
The debugging instruction is forwarded to the applications client.
5. the method according to claim 1, wherein being carried out by the functional unit and the applications client
Data interaction includes:
Receive the debugging log from the applications client, wherein the debugging log is by the applications client
It is issued after the output interface to the debugging log redirects;
Search the functional unit with applications client binding;
The debugging log is forwarded to the functional unit.
6. the method according to claim 1, wherein being carried out by the functional unit and the applications client
Data interaction includes:
Receive the file upload request from the functional unit, wherein carry the function in the file upload request
Energy component is by locally obtaining the user terminal after the filename of file to be uploaded and file content carry out serializing processing
Binary word throttling;
Search the applications client with functional unit binding;
The file upload request is forwarded to the applications client, wherein two carried in the file upload request into
Byte stream processed is for making the applications client rebuild the user terminal locally file to be uploaded.
7. the method according to claim 1, wherein being carried out by the functional unit and the applications client
Data interaction includes:
The acquisition listed files received from the functional unit is requested;
The applications client with functional unit binding is searched, and forwards the acquisition file to the applications client
List request;
The catalogue file list got from the applications client is forwarded to the functional unit, and is received from described
The file download request of functional unit, wherein carry in the file download request and chosen from the catalogue file list
File to be downloaded;
The file download request is forwarded to the applications client, and receives the applications client according under the file
Carry the file download response that request returns, wherein carry the applications client in the file download response and pass through to institute
The filename and file content for stating file to be downloaded carry out the binary word obtained after serializing processing throttling;
File download response is forwarded to the functional unit, wherein the binary system carried in the file download response
Byte stream is for making the functional unit rebuild the file to be downloaded.
8. the method according to claim 1, wherein being carried out by the functional unit and the applications client
Data interaction includes:
The screenshotss received from the functional unit are requested, wherein the screenshotss request is for controlling the applications client
Screenshot capture interface is called to generate screenshotss image according to screen message;
The applications client with functional unit binding is searched, and screenshotss request is forwarded to the application client
End;
It receives and is responded from the applications client screenshotss, and screenshotss response is back to the functional unit, wherein
Filename and file content of the applications client to the file for storing the screenshotss image are carried in the screenshotss response
The binary word obtained after serializing processing throttling is carried out, the binary word throttling is for making the functional unit rebuild storage
The file of the screenshotss image.
9. the method according to claim 1, wherein being carried out by the functional unit and the applications client
Data interaction includes:
Receive the acquisition monitoring parameter list request from the functional unit, wherein the acquisition monitoring parameter list is asked
Seeking requested monitoring parameter is chosen with the operation associated over-all properties parameter of applications client;
The applications client with functional unit binding is searched, and forwards the acquisition monitoring to the applications client
Parameter list request;
The monitoring parameter list got from the applications client is forwarded to the functional unit, wherein the monitoring ginseng
It include most freshly harvested number corresponding with requested monitoring parameter in the acquisition monitoring parameter list request in ordered series of numbers table
Value.
10. according to the method described in claim 9, it is characterized in that, by the functional unit and the applications client into
Row data interaction includes:
The closing received from the functional unit monitors request, wherein the closing monitoring request is for controlling described answer
Requested monitoring parameter in the acquisition monitoring parameter list request is monitored with client cancellation;
The applications client with functional unit binding is searched, and forwards the closing monitoring to the applications client
Request.
11. according to the method described in claim 9, it is characterized in that, by the functional unit and the applications client into
Row data interaction includes:
The cancellation part monitoring parameter received from the functional unit is requested, wherein cancellation part monitoring parameter is asked
It asks and is removed and cancellation part monitoring parameter request pair from the monitoring parameter list for controlling the applications client
The monitoring parameter answered;
The applications client with functional unit binding is searched, and forwards the cancellation part to the applications client
Monitoring parameter request.
12. a kind of debugging apparatus of mobile application, which is characterized in that including:
Module is established, is established between the applications client for being run on the functional unit and mobile terminal that user terminal is arranged
Wireless network connection;
Interactive module, for being counted between the functional unit and the applications client by the wireless network connection
According to interaction, wherein the functional unit is for executing debugging of the user to the applications client;
Wherein, the module of establishing includes:First transmission unit, for according to the functional unit identification information and/or institute
The identification information for stating user terminal sends the whole application client client informations currently connected to the functional unit, wherein described
The whole applications client information currently connected include:Where the identification information of each applications client, each applications client
Mobile terminal identification information and each applications client whether be in binding state;Alternatively, each application client
Whether the identification information at end and each applications client have been in binding state;First receiving unit, for receive from
The bind-request message of the functional unit, wherein the mark letter of the mobile terminal is carried in the bind-request message
The identification information of breath and/or the applications client;Unit is established, if for according to bind-request message determination
Applications client is in connection status and unbound state simultaneously, then builds between the functional unit and the applications client
Vertical association binding relationship;Second transmission unit, for being bound into respectively to the functional unit and applications client transmission
Function message.
13. device according to claim 12, which is characterized in that described device further includes:
Processing module, for receive from the functional unit unbinding request or detect that the functional unit disconnects
The wireless network connection;
Searching module, for searching the applications client with functional unit binding;
Module is released, for releasing the existing association binding relationship between the functional unit and the applications client, and
The message that the applications client has been released from binding is broadcasted to the whole user terminals currently connected.
14. device according to claim 12, which is characterized in that described device further includes:
Processing module, for detecting that the applications client disconnects the wireless network connection;
Searching module, for searching, there are the functional units of binding relationship with the applications client;
Module is released, for releasing the existing association binding relationship between the functional unit and the applications client, and
Respectively to the functional unit and the applications client notify the applications client be released from binding message and
The applications client, which is broadcasted, to remaining user terminal in addition to the user terminal currently connected has been released from binding
Message.
15. device according to claim 12, which is characterized in that the interactive module includes:
Second receiving unit, for receiving the debugging instruction from the functional unit, wherein the debugging instruction is for controlling
It makes the applications client and executes corresponding debugging operations according to the debugging demand for including in the debugging instruction;
First searching unit, for searching the applications client with functional unit binding;
Third transmission unit, for the debugging instruction to be forwarded to the applications client.
16. device according to claim 12, which is characterized in that the interactive module includes:
Third receiving unit, for receiving the debugging log from the applications client, wherein the debugging log is logical
Cross what the applications client issued after the output interface to the debugging log redirects;
Second searching unit, for searching the functional unit with applications client binding;
4th transmission unit, for the debugging log to be forwarded to the functional unit.
17. device according to claim 12, which is characterized in that the interactive module includes:
4th receiving unit, for receiving the file upload request from the functional unit, wherein the file upload is asked
The functional unit is carried in asking by the way that locally the filename of file to be uploaded and file content carry out to the user terminal
The binary word throttling obtained after serializing processing;
Third searching unit, for searching the applications client with functional unit binding;
5th transmission unit, for the file upload request to be forwarded to the applications client, wherein the file uploads
The binary word throttling carried in request is for making the applications client rebuild the user terminal locally file to be uploaded.
18. device according to claim 12, which is characterized in that the interactive module includes:
5th receiving unit, for receiving the acquisition listed files request from the functional unit;
4th searching unit, for searching the applications client with functional unit binding, and to the application client
End forwards the acquisition listed files request;
First processing units, the catalogue file list for will get from the applications client are forwarded to the functional group
Part, and receive the file download request from the functional unit, wherein it is carried in the file download request from described
The file to be downloaded chosen in catalogue file list;
The second processing unit for the file download request to be forwarded to the applications client, and receives the application visitor
Family end is responded according to the file download that the file download request returns, wherein is carried in the file download response described
Applications client carries out the binary system obtained after serializing processing by filename to the file to be downloaded and file content
Byte stream;
6th transmission unit, for file download response to be forwarded to the functional unit, wherein the file download is rung
The binary word of middle carrying is answered to throttle for making the functional unit rebuild the file to be downloaded.
19. device according to claim 12, which is characterized in that the interactive module includes:
6th receiving unit, for receiving the screenshotss request from the functional unit, wherein the screenshotss request is for controlling
Making the applications client calls screenshot capture interface to generate screenshotss image according to screen message;
Third processing unit for searching the applications client with functional unit binding, and the screenshotss is requested
It is forwarded to the applications client;
Fourth processing unit is responded for receiving from the applications client screenshotss, and screenshotss response is back to
The functional unit, wherein carry the applications client to the file for storing the screenshotss image in the screenshotss response
Filename and file content carry out the binary word obtained after serializing processing throttling, binary word throttling is for making
It states functional unit and rebuilds the file for storing the screenshotss image.
20. device according to claim 12, which is characterized in that the interactive module includes:
7th receiving unit, for receiving the acquisition monitoring parameter list request from the functional unit, wherein described to obtain
Requested monitoring parameter in monitoring parameter list request is taken to be and run the associated over-all properties parameter of applications client
Middle selection;
5th processing unit, for searching the applications client with functional unit binding, and to the application client
End forwards the acquisition monitoring parameter list request;
7th transmission unit, the monitoring parameter list for will get from the applications client are forwarded to the functional group
Part, wherein include in the monitoring parameter list and requested monitoring parameter in the acquisition monitoring parameter list request
Corresponding most freshly harvested numerical value.
21. device according to claim 20, which is characterized in that the interactive module includes:
8th receiving unit, for receiving the closing monitoring request from the functional unit, wherein the closing monitoring is asked
It asks and cancels for controlling the applications client to monitoring parameter requested in acquisition monitoring parameter list request progress
Monitoring;
6th processing unit, for searching the applications client with functional unit binding, and to the application client
End forwards the closing monitoring request.
22. device according to claim 20, which is characterized in that the interactive module includes:
9th receiving unit, for receiving the cancellation part monitoring parameter request from the functional unit, wherein described to take
The part monitoring parameter that disappears request removes and the cancellation portion from the monitoring parameter list for controlling the applications client
Monitoring parameter is divided to request corresponding monitoring parameter;
7th processing unit, for searching the applications client with functional unit binding, and to the application client
End forwards the cancellation part monitoring parameter request.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610836144.XA CN106383785B (en) | 2016-09-21 | 2016-09-21 | The adjustment method and device of mobile application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610836144.XA CN106383785B (en) | 2016-09-21 | 2016-09-21 | The adjustment method and device of mobile application |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106383785A CN106383785A (en) | 2017-02-08 |
CN106383785B true CN106383785B (en) | 2018-11-27 |
Family
ID=57935801
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610836144.XA Active CN106383785B (en) | 2016-09-21 | 2016-09-21 | The adjustment method and device of mobile application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106383785B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107688529B (en) * | 2017-02-20 | 2020-07-21 | 平安科技(深圳)有限公司 | Component debugging method and device |
CN107040777A (en) * | 2017-06-08 | 2017-08-11 | 深圳市创维软件有限公司 | A kind of remote debugging method, set top box and server |
CN107528892A (en) * | 2017-08-08 | 2017-12-29 | 深圳创维数字技术有限公司 | A kind of remote debugging method, server end and set top box |
CN110008133B (en) * | 2019-04-16 | 2022-11-01 | 珠海金山数字网络科技有限公司 | Automated test system, automated test method, computing device, and storage medium |
CN111831538B (en) * | 2019-04-18 | 2024-03-26 | 腾讯科技(深圳)有限公司 | Debugging method, device and storage medium |
CN113535566B (en) * | 2021-07-20 | 2024-06-21 | 广州虎牙科技有限公司 | Android application verification method, device, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103164300A (en) * | 2011-12-13 | 2013-06-19 | 腾讯科技(深圳)有限公司 | Mobile terminal touch screen automatic testing method and device |
US9021443B1 (en) * | 2013-04-12 | 2015-04-28 | Google Inc. | Test automation API for host devices |
CN104834595A (en) * | 2015-02-15 | 2015-08-12 | 网易(杭州)网络有限公司 | Visual automatic test method and system |
CN104866509A (en) * | 2014-02-26 | 2015-08-26 | 阿里巴巴集团控股有限公司 | Page element positioning method and device |
CN104967585A (en) * | 2014-04-15 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Method for remote debugging of mobile terminal and apparatus thereof |
CN105868111A (en) * | 2016-03-29 | 2016-08-17 | 网易(杭州)网络有限公司 | Automatic testing method and device for mobile terminal game |
-
2016
- 2016-09-21 CN CN201610836144.XA patent/CN106383785B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103164300A (en) * | 2011-12-13 | 2013-06-19 | 腾讯科技(深圳)有限公司 | Mobile terminal touch screen automatic testing method and device |
US9021443B1 (en) * | 2013-04-12 | 2015-04-28 | Google Inc. | Test automation API for host devices |
CN104866509A (en) * | 2014-02-26 | 2015-08-26 | 阿里巴巴集团控股有限公司 | Page element positioning method and device |
CN104967585A (en) * | 2014-04-15 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Method for remote debugging of mobile terminal and apparatus thereof |
CN104834595A (en) * | 2015-02-15 | 2015-08-12 | 网易(杭州)网络有限公司 | Visual automatic test method and system |
CN105868111A (en) * | 2016-03-29 | 2016-08-17 | 网易(杭州)网络有限公司 | Automatic testing method and device for mobile terminal game |
Also Published As
Publication number | Publication date |
---|---|
CN106383785A (en) | 2017-02-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106383785B (en) | The adjustment method and device of mobile application | |
CN101600076B (en) | Video editing system, video editing server and communication terminal | |
CN105119877B (en) | Speech verification method, apparatus and system | |
CN103098023B (en) | The Unified frame controlling for Call-Control1 and media and method | |
CN103885426B (en) | Control method, client, server, intermediate equipment and the controlled device of equipment | |
CN108632633A (en) | A kind of data processing method and device of network direct broadcasting | |
CN103297475A (en) | Mock service system and processing method of Mock service | |
TWM425348U (en) | System providing interactive management service | |
CN108632632A (en) | A kind of data processing method and device of network direct broadcasting | |
CN105493446A (en) | Communication with on-calls and machines using multiple modalities through single historical tracking | |
CN107181779A (en) | Processing method, the device and system of access request | |
CN103229522A (en) | Host device, collaborative service management system, and collaborative service management method | |
CN111598428B (en) | Management method and device of flow node, storage medium and server | |
CN106293765A (en) | A kind of layout updates method and device | |
CN106075911A (en) | A kind of generation method and device of the micro-end of web game | |
CN113377682A (en) | Service testing method and device | |
CN101912685B (en) | Two-way set top box-based interactive game system | |
CN105903191B (en) | Cross-terminal data processing method and system | |
CN112817671B (en) | Image processing method, device, equipment and computer readable storage medium | |
EP3488585B1 (en) | Device and method for efficiently providing online and offline telephony in combination with the transmission and evaluation of user-specific data | |
US20070161392A1 (en) | Group management assistance apparatus, group management apparatus, group management assistance method, and group management method | |
CN102469218B (en) | Customer service automation method and system | |
CN112241301A (en) | IVR flow editing method, IVR implementation method and related equipment | |
KR102606939B1 (en) | System for providing lettering service | |
CN102970184A (en) | Operation state monitoring method of network application and application server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |