CN109831496A - A kind of adjustment method of terminal data - Google Patents

A kind of adjustment method of terminal data Download PDF

Info

Publication number
CN109831496A
CN109831496A CN201910060116.7A CN201910060116A CN109831496A CN 109831496 A CN109831496 A CN 109831496A CN 201910060116 A CN201910060116 A CN 201910060116A CN 109831496 A CN109831496 A CN 109831496A
Authority
CN
China
Prior art keywords
controlled end
terminal
data
adjustment method
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910060116.7A
Other languages
Chinese (zh)
Other versions
CN109831496B (en
Inventor
卢建超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201910060116.7A priority Critical patent/CN109831496B/en
Publication of CN109831496A publication Critical patent/CN109831496A/en
Application granted granted Critical
Publication of CN109831496B publication Critical patent/CN109831496B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present invention provides a kind of adjustment methods of terminal data, the adjustment method can provide the scheme for quickly checking data and tune-up data library in software development process for software developer and software test personnel, the adjustment method can also help amateur developer to quickly understand software database and software operation logic, and the visualization Debugging interface used can make developer more intuitively obtain the process that database is debugged;And, the adjustment method can also execute different SQL statements according to different user's operations, and user can also open corresponding Web page console by accessing the Http server of mobile terminal local, the data and the real-time debugging process for obtaining database in database are checked with this, and whether the debugging of calibration database achieves the desired results, and greatly improves the debugging efficiency of database and shortens the debugging cycle of database.

Description

A kind of adjustment method of terminal data
Technical field
The present invention relates to the technical field of internet data service, in particular to a kind of adjustment method of terminal data.
Background technique
As the development of portable mobile termianl is universal, the portable mobile termianls such as mobile phone have been widely used for data Interaction and processing, and just need to debug the database in mobile phone by the interaction and processing of the progress data such as mobile phone, one As for, to the database in mobile phone debugged mainly include following several ways: first, by the SQLite data in mobile phone Library is exported to computer end, and the SQLite database is checked by the software installed in computer end, and executes relevant SQL language Sentence, to obtain corresponding debugging result;Second, Root operation is executed to mobile phone, and RE file manager is installed on mobile phone, connect Enter corresponding application program catalogue under, the file of target database is found, with the data checked in the target database; Third installs plug-in unit relevant to Android Studio in mobile phone, and carries out checking for associated databases by the plug-in unit With debugging, but part plug-in unit may need charge or there is a problem of checking that debugging speed is low.As it can be seen that existing be directed to The mode that the database of mobile phone is debugged directly can not directly be checked to database therein and debugging operations, needs Database is transferred to another adjustable and checks terminal or to mobile phone execution Root processing or by corresponding charge Plug-in unit is just able to achieve and checks debugging operations accordingly, i.e. user can not check the database of debugging mobile phone whenever and wherever possible, furthermore It adopts in manner just described, is not only taken considerable time during shifting database, and be also possible to execute to mobile phone Lead to the risk that mobile phone can not work normally after Root processing, thus the mode of above-mentioned any debugging mobile phone database all without Method meets the needs of quick user, the debugging of simple and efficient realization database.
In order to overcome shortcoming existing for above-mentioned mobile phone database debud mode, Amitshekhariitbhu is developed The debugging plan of Android-Debug-Database, abbreviation ADD scheme.According to the ADD scheme, mobile phone user can directly pass through Browser in mobile phone checks mobile phone database whenever and wherever possible, and directly can also execute SQL statement to mobile phone database to adjust Try the mobile phone database;In addition, by the ADD scheme, mobile phone user can also be directly viewable all databases in mobile phone application, Check mobile phone application in all shared preferences, to specified data library execute SQL statement, to specified data The corresponding data in library such as carry out visual edit processing or directly download database at various forms of operations, it is seen that the side ADD Case, which is able to use family, also can directly debug mobile phone database in the case where not needing by additional means.But the side ADD Case can only execute the debugging of local data base to mobile phone, long-range debugging in real time can not be executed to mobile phone database, this is serious Ground constrains the popularization and application of ADD scheme.
Summary of the invention
In the operation that mobile phone database is checked and debugged, although existing ADD scheme can pass through mobile phone Browser Web page progress database checks the interactive operations such as debugging, to provide the local data about android system Service function, but the ADD scheme is confined to carry out mobile phone the debugging of local data base, can not achieve opponent's machine number According to the long-range real-time debugging in library.With the mature of TCP long interconnection technique, mobile phone database is adjusted by remote mode Examination more meets the development trend of terminal data debugging, and the database implementation not currently existed to terminals such as mobile phones is long-range real-time The technical solution checked and debugged.In addition, in the mobile phone terminal software development process based on ADD scheme, it is logical to the operation of data It is often the operating result of code rank and data not as it can be seen that in order to which the operating result of inspection data then needs to take a significant amount of time It goes to execute code verification, the personnel that this code verification process needs to have corresponding development ability could complete, and the ADD scheme is simultaneously Cannot judge only according to visualization interface code verification as a result, which again increases the application difficulty of ADD scheme.
In view of the defects existing in the prior art, the present invention provides a kind of adjustment method of terminal data, the terminal data The purpose of adjustment method is to provide in the mobile terminal softwares development process such as mobile phone for software developer and software test personnel One quickly checks that the scheme of data and tune-up data library, the adjustment method can also help amateur developer to quickly understand Software database and software operation logic, the visualization Debugging interface used can make developer more intuitively obtain number According to library debug process, this be obviously different from it is passing can only be in such a way that database code be debugged;In addition, of the invention The adjustment method of terminal data can execute different SQL languages in carrying out internal database debugging according to different user's operations Sentence, and user can also open corresponding Web page console by accessing the Http server of mobile terminal local, be looked into this See the data and the real-time debugging process for obtaining database in database, and whether the debugging of calibration database reaches expected effect Fruit greatly improves the debugging efficiency of database and shortens the debugging cycle of database.
The present invention provides a kind of adjustment method of terminal data, which is characterized in that the adjustment method can pass through local At least one of service mode and remote agent mode debug the terminal data, it is characterised in that:
For the local service mode, the port based on controlled end is specifically included, constructs control terminal to described controlled The access control at end connects, while realizing the access operation to web console static page in the controlled end by browser, Based on the access operation, editor's debugging operations to the controlled end internal data are realized;
For the remote agent mode, building control terminal is specifically included to the remote agent access of controlled end, with reality The existing control terminal operates the access control of web console in the controlled end, is operated based on the access control, realization pair Editor's debugging operations of the controlled end internal data;
Further, in the local service mode, the port default of the controlled end is a random available port, works as structure It further include that the web console static resource of the controlled end and one is private after control terminal is built to the access control connection of controlled end There is catalogue web console resource to carry out matching treatment, to carry out dynamic update to web console static resource in the controlled end Operation;
Further, in the local service mode, further include the servo terminal constructed about the controlled end, work as building After control terminal is to the access control connection of controlled end, by customized http analytical framework in the servo terminal, institute is realized Browser is stated to the access operation of web console static page in the controlled end, wherein the http analytical framework specifically wraps Include using OPTIONS request be cross-domain confirmation request, using GET request as resource request and using POST request as business interface;
Further, in the http analytical framework, the GET request is for realizing the return about static file information Response, wherein the static file information includes json, text, html, javascript, application/octet- At least one of stream format, the POST request is for realizing the business about Action frame in the servo terminal Processing response;
Further, in the local service mode, further include the servo terminal constructed about the controlled end, work as building After control terminal is to the access control connection of controlled end, also by customized action frame in the servo terminal, institute is realized Browser is stated to the access operation of web console static page in the controlled end, wherein the action frame specifically includes A preload process device is determined using hash algorithm, then is completed between the POST request by the preload process device Data interaction;
Further, in the remote agent mode, building control terminal specifically includes the remote agent access of controlled end, Interaction and handshake authentication confirmation based on connection request and verification information, it is corresponding to be added to a server-side for the controlled end Register in list of devices, subsequently, based on the interaction of verification information, building based on the service terminal about the control terminal with It is corresponded in the registration list of devices and acts on behalf of channel access connection between a certain controlled end;
Further, in the remote agent service mode, after constructing remote agent access of the control terminal to controlled end, The control terminal sends a control instruction to the server-side, and the server-side generates an instruction id simultaneously according to the control instruction It is sent to the controlled end, the controlled end feeds back a command content acquisition request to the server-side according to described instruction id, The server-side sends a command content information, the controlled end root to the controlled end according to described instruction content acquisition request Dependent instruction is executed according to described instruction content information and feeds back an instruction execution result to the server-side, and the server-side is subsequent Described instruction implementing result is fed back into the control terminal, to realize the instruction letter between the control terminal and the controlled end Cease interactive operation;
Further, in the remote agent service mode, visit of the control terminal to web console in the controlled end Ask control operation specifically include the corresponding cloud web console of control terminal web console corresponding with the controlled end it Between pass through the matching confirmation of business interface, the interaction of service request instruction, the service request of static file and crossing on list At least one realizes access control operation;Wherein, the matching confirmation of the business interface is according to reception parameter sets Similarity realize, specifically, setting Ki=[k1..., ki] connect for the business of the corresponding cloud web console of control terminal Mouth parameter sets, kiFor i-th of interface parameters of the corresponding cloud web console of the control terminal, S is setj=[s1..., sj] For the business interface parameter sets of the corresponding web console of the controlled end, sjFor the corresponding web console of the controlled end J-th of interface parameters establishes concept tree-model using KM algorithm and obtains KiWith SjBetween best match M, and the best match The weight of M is the similarity,
Wherein, S (Ki,Sj) it is similarity between two business interface parameter sets, Weight (M) is best match M's Weight, a are the coupling number of M, wiFor the corresponding weighted value of each match parameter;
Further, the wiCalculating process it is as follows:
Wherein, l KiAnd SjIn the shortest path length of the concept tree-model, h KiAnd SjIn the concept tree-model In the height of nearest identical Upper Concept in tree, μ and ε be for adjust the disturbance degree of l and h in similarity calculation because Son, and μ >=0, ε >=0;
Then, according to obtained similarity S (K calculated abovei,Sj) and a scheduled threshold value, judge the similarity S (Ki,Sj) whether meet preset Interface Matching condition;
Further, in the remote agent service mode, the corresponding cloud web console of the control terminal and it is described by It controls and real time communication is realized by TCP long connection type between the corresponding web console in end, wherein the TCP long connection type tool Body includes that http request is packaged to an instruction packet, to realize the minimum of the TCP long connection transmitted data amount, is passed through simultaneously Http request realizes that the file of specific data amount uploads and downloads, to realize the corresponding cloud web control of the control terminal The asynchronous agency's connection of interface requests between platform web console corresponding with the controlled end;
Further, the debugging to the terminal data is realized by the local service mode and the remote agent mode Specifically include to the controlled end execute screenshot capture, controlled end internal information obtain, controlled end network environment information obtain, by Control at least one of the collection of end Dump stack information and App log.
Compared with the prior art, the debugging plan of terminal data of the invention was developed in mobile terminal softwares such as mobile phones Cheng Zhongwei software developer and software test personnel provide the scheme for quickly checking data and tune-up data library, the debugging side Method can also help amateur developer to quickly understand software database and software operation logic, the visualization debugging used Interface can make developer more intuitively obtain the process of database debugging, this, which is obviously different from, passing can only pass through data The mode that bank code is debugged;In addition, the adjustment method can also be during carrying out internal database debugging, according to not Same user's operation executes different SQL statements, and user can also be beaten by accessing the Http server of mobile terminal local Corresponding Web page console is opened, the data checked in database with this and the debugging process for obtaining database in real time, and verify Whether the debugging of database achieves the desired results, and greatly improves the debugging efficiency of database and shortens the tune of database Try the period.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by written explanation Specifically noted structure is achieved and obtained in book, claims and attached drawing.
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of different mode schematic diagram of the adjustment method of terminal data provided by the invention;
Fig. 2 (a) -2 (c) is that the process of local service mode in a kind of adjustment method of terminal data provided by the invention is shown It is intended to;
Fig. 3 (a) -3 (h) is that a kind of process of the adjustment method medium-long range proxy mode of terminal data provided by the invention is shown It is intended to.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
It refering to fig. 1, is a kind of different mode schematic diagram of the adjustment method of terminal data provided in an embodiment of the present invention.From The Fig. 1 as it can be seen that the adjustment method of the terminal data may include local service mode LDC and remote agent mode RDC the two not Same operating mode, it is preferable that the adjustment method can pass through at least one in the local service mode and remote agent mode Person debugs the terminal data;Preferably, which can correspond to number for different application in portable mobile termianl According to the data in library, it is preferable that the portable mobile termianl can be but be not limited to the mobile terminals such as mobile phone or tablet computer, Preferably, the corresponding terminal system of the portable mobile termianl can be android system.
Specifically, may particularly include for the ontology services mode, the port based on controlled end, control terminal is constructed Access control connection to the controlled end, while the visit to web console static page in the controlled end is realized by browser It asks operation, is based on the access operation, realize editor's debugging operations to the controlled end internal data;And for the remote agent mould Formula may particularly include, and construct control terminal to the remote agent access of controlled end, to realize the control terminal in the controlled end The access control of web console operates, and is operated based on the access control, realizes and debugs behaviour to the editor of the controlled end internal data Make.Preferably, the adjustment method of the terminal data is based on the local service mode and remote agent mode is realized to terminal data Debugging may include but be not limited to be to the controlled end execute screenshot capture, controlled end internal information obtain, controlled end network rings At least one of border acquisition of information, controlled end Dump stack information and collection of App log.
Further, after the local service mode starts, a servomechanism Server can be created in controlled end and bind one Port, it is preferable that the port can be a default random port, controlled in the corresponding local area network of local service mode in this way Hold corresponding equipment that access operation can be achieved;Then local clothes are accessed by the browser built in the corresponding equipment of controlled end The static cost control platform Web page of unlatching is defaulted in business mode, and Web page resource is packaged and is stored in database In, in all control functions for realizing Web page by the static cost control platform, then in the data such as database and file management Hold and carry out edit operation to reach simulation purpose, to realize the purpose for carrying out data debugging under the local service mode.
Further, under the remote agent mode, which is able to maintain It is consistent with each other with its operation in a local network, to establish about the data interaction bridge between internet and local area network, thus The internet data debugging management service having compared with high safety factor is provided;Further, when the controlled end is starting this remotely Before proxy mode, which first can start the local service mode according to its information configured, for example judge the local service Whether mode allows to be requested access to by non-proxy end, receives the access request at the non-proxy end if allowing, if not allowing to return One 403 permission error message are returned, in fact, the safety in order to guarantee the local service mode operation, locates under normal circumstances Local service mode under remote agent mode is that any type of non-proxy end is not allowed to request access to, when the local service Mode be activated after its can generate a secure connection code, which can be transferred into the remote agent mode, with It is used in the starting verifying of the remote agent mode, it is preferable that if the remote agent mode and untapped local service mode company Permission is connect, then needs to carry out verification operation to the secure connection code;Preferably, which is in the local service mode It is generated at random after being started each time;Preferably, which is not intended as permanent storage data and is saved, when this After the completion of the starting verifying of remote agent mode, corresponding secure connection code will be deleted.
Generally speaking, the adjustment method of the terminal data can not only provide the local service mould about android system Formula data debugging and the interactive operation that data debugging is realized by the Web page of mobile terminal, but also be capable of providing about The remote agent mode data of android system is debugged, which can be realized under mobile terminal different application The long-range real-time debugging of database, this is the adjustment method of terminal data of the invention and the debugging side of existing such as ADD scheme The significant difference of method;In addition, the remote agent mode can also expand cloud control function, the agency mechanism provided can reach mutual It networks any control equipment, the debugging library of the remote agent based on the MiniHttpServer for meeting Http agreement and is adopted With the Http resolver of the primary API exploitation of JAVA, generic interface request can be received and support uploading and downloading for file, it should Remote agent mode supports the standards Http agreement requests such as GET, POST, OPTIONS, PUT, the Web page of the remote agent mode Face design also adds upload, downloading, renaming, deletion and the creation file difference file management facilities of such as file, should It is current aobvious in order to be handled with Excel that remote agent mode additionally provides the functions such as data addition, export CSV, printing and duplication The data shown, the remote agent mode also provide data filtering, increase the behaviour such as data column, data contraction and data visibility selection Make in order to be hidden excessive data column, reads interference, the long-range generation to optimize data reading effect and reduce data Reason mode also supports dynamic acquisition and calls Json tool, inside do not integrate the library Json, so that improving its accesses stability With reduction database volume.
It is local service in a kind of adjustment method of terminal data provided in an embodiment of the present invention refering to Fig. 2 (a) -2 (c) The flow diagram of mode.Referring to the Fig. 2 (a), in the local service mode, the Booting sequence of the local service mode is specific Including carrying out port binding to Android first, wherein the port is preferably defaulted using available port, then built in inspection Web resource version and the privately owned catalogue web resource version of android system, to realize that the dynamic of Web static resource updates automatically, Wherein the corresponding resource packet of the web resource version be preferably subject to Android rely on difficulties that one is reluctant to bring to the notice of others Web_app.zip resource.
Further, referring to the Fig. 2 (b), in the local service mode, it may also include the servo constructed about the controlled end Terminal passes through customized http resolution block in the servo terminal after constructing access control connection of the control terminal to controlled end Frame realizes the browser to the access operation of web console static page in the controlled end, wherein the http analytical framework To specifically include using OPTIONS request be cross-domain confirmation request, is connect using GET request as resource request and by business of POST request Mouthful.In addition, the GET request is in the http analytical framework for realizing the returning response about static file information, wherein The static file information include in json, text, html, javascript, application/octet-stream at least A kind of format, the POST request is for realizing the business processing response about Action frame in the servo terminal.This locally takes Http analytical framework in business mode is specially using the MiniHttpServer of primary JAVA API exploitation, support section Http agreement especially belongs to the Http resolver of customization, it is preferable that the http analytical framework is placed in tissue on Github It increases income in itgowo.
It further, further include the servo end constructed about the controlled end in the local service mode referring to the Fig. 2 (c) End also passes through customized action frame in the servo terminal after constructing access control connection of the control terminal to controlled end, The browser is realized to the access operation of web console static page in the controlled end, wherein the action frame specifically wraps It includes and determines a preload process device using hash algorithm, then the number between the POST request is completed by the preload process device According to interaction.Wherein, each class for realizing action framework interface will realize doaction method, and by transmitting data with The request of http operation object finishing service to realize standard http interaction, while realizing that the processing class of action must have static state Constant ACTION, the static state constant are assigned a value of text type, are used for the action type that identification processor is capable of handling, and The assignment of the static state constant is unique.Action interface is realized in addition, also to create on demand when initialization action frame Processor, and putting it into a HashMap container, for example with the constant ACTION of action processor be key, processor Object is that value is put into wherein.In addition, after action frame receives service request, for example receive Json tool analysis request After content, action parameter is obtained, the processor of corresponding action is obtained from HashMap, to find and call The method of doaction ().
Refering to Fig. 3 (a) -3 (h), for a kind of adjustment method medium-long range agency of terminal data provided in an embodiment of the present invention The flow diagram of mode.In the remote agent mode, building control terminal can specifically wrap the remote agent access of controlled end It includes, which it is corresponding to be added to a server-side by interaction and handshake authentication confirmation based on connection request and verification information Registration list of devices in, subsequently, based on the interaction of verification information, building based on the service terminal about the control terminal and institute It states to correspond in registration list of devices and acts on behalf of channel access connection between a certain controlled end.
It further,, should after constructing remote agent access of the control terminal to controlled end in the remote agent service mode Control terminal to the server-side send a control instruction, the server-side according to the control instruction generate one instruction id and be sent to this by End is controlled, which feeds back a command content acquisition request to the server-side according to described instruction id, and the server-side is according to Command content acquisition request sends a command content information to the controlled end, which executes phase according to the command content information It closes instruction and feeds back an instruction execution result to the server-side, which then feeds back to the control for the instruction execution result End, to realize the command information interactive operation between the control terminal and the controlled end.
Further, in the remote agent service mode, access control of the control terminal to web console in the controlled end System operation, which specifically includes, passes through industry between the corresponding cloud web console of control terminal web console corresponding with the controlled end At least one of the matching confirmation of business interface, the interaction of service request instruction, the service request of static file and list upload To realize that the access control operates;Wherein, the business interface matching confirmation be according to receive parameter sets similarity come It realizes, specifically, setting Ki=[k1..., ki] be the corresponding cloud web console of control terminal business interface parameter sets, kiFor i-th of interface parameters of the corresponding cloud web console of the control terminal, S is setj=[s1..., sj] it is described controlled Hold the business interface parameter sets of corresponding web console, sjFor j-th of interface of the corresponding web console of the controlled end Parameter establishes concept tree-model using KM algorithm and obtains KiWith SjBetween best match M, and the weight of the best match M is For the similarity,
Wherein, S (Ki,Sj) it is similarity between two business interface parameter sets, Weight (M) is best match M's Weight, a are the coupling number of M, wiFor the corresponding weighted value of each match parameter;
Further, the wiCalculating process it is as follows:
Wherein, l KiAnd SjIn the shortest path length of the concept tree-model, h KiAnd SjIn the concept tree-model In the height of nearest identical Upper Concept in tree, μ and ε be for adjust the disturbance degree of l and h in similarity calculation because Son, and μ >=0, ε >=0;
Then, according to obtained similarity S (K calculated abovei,Sj) and a scheduled threshold value, judge the similarity S (Ki,Sj) whether meet preset Interface Matching condition.
In addition, standard Http agreement POST request data can also be sent by web console, and cloud server terminal is packaged into finger It enables and wraps and be associated with using UUID as the instruction packet ID, instruction packet ID is sent to the remote of controlled terminal by TCP long connection protocol In journey service, controlled terminal parses its type after receiving instruction packet ID, and it is signified then to carry instruction packet ID using Http agreement To instruction packet content, and obtain the part Body in Http agreement.Then Http request is sent to the local service of controlled end Corresponding authorization parameter is carried simultaneously, Body component requests of the instruction packet content as Http agreement are receiving controlled end After the processing result about the part Body that local service returns, Cloud Server is sent to using the processing result as the part Body Corresponding instruction ID is carried simultaneously, which receives the Web interface channel of look-up command package informatin after the processing result, The part the Body is finally sent to Web connection.
Further, in the remote agent service mode, the corresponding cloud web console of the control terminal and the controlled end Real time communication is realized by TCP long connection type between corresponding web console, wherein the TCP long connection type specifically includes Http request is packaged an instruction packet, to realize the minimum of the TCP long connection transmitted data amount, while by http request come Uploading and downloading for the file of specific data amount is realized, to realize the corresponding cloud web console of the control terminal and the controlled end The asynchronous agency's connection of interface requests between corresponding web console.
From above-described embodiment as can be seen that the adjustment method of the terminal data was developed in mobile terminal softwares such as mobile phones Cheng Zhongwei software developer and software test personnel provide the scheme for quickly checking data and tune-up data library, the debugging side Method can also help amateur developer to quickly understand software database and software operation logic, the visualization debugging used Interface can make developer more intuitively obtain the process that database is debugged;Also, the adjustment method can also pass through access The Http server of mobile terminal local opens corresponding Web page console, checks data in database and in real time with this The debugging process of database is obtained, and whether the debugging of calibration database achieves the desired results, and greatly improves database Debugging efficiency and shorten the debugging cycle of database.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of adjustment method of terminal data, which is characterized in that the adjustment method can be by local service mode and remote At least one of journey proxy mode debugs the terminal data, it is characterised in that:
For the local service mode, the port based on controlled end is specifically included, constructs control terminal to the controlled end Access control connection, while being realized by browser to the access operation of web console static page in the controlled end, it is based on The access operation realizes editor's debugging operations to the controlled end internal data;
For the remote agent mode, building control terminal is specifically included to the remote agent access of controlled end, to realize It states control terminal to operate the access control of web console in the controlled end, is operated, realized to described based on the access control Editor's debugging operations of controlled end internal data.
2. the adjustment method of terminal data as described in claim 1, it is characterised in that: in the local service mode, institute The port default for stating controlled end is a random available port, after constructing access control connection of the control terminal to controlled end, is also wrapped It includes and the web console static resource of the controlled end and a privately owned catalogue web console resource is subjected to matching treatment, to institute It states web console static resource in controlled end and carries out dynamic update operation.
3. the adjustment method of terminal data as described in claim 1, it is characterised in that: in the local service mode, also Including constructing the servo terminal about the controlled end, after constructing access control connection of the control terminal to controlled end, pass through institute Customized http analytical framework in servo terminal is stated, realizes the browser to web console static page in the controlled end The access operation in face, wherein the http analytical framework, which is specifically included, is asked with OPTIONS request for cross-domain confirmation request, with GET It asks for resource request and using POST request as business interface.
4. the adjustment method of terminal data as claimed in claim 3, it is characterised in that: in the http analytical framework, institute GET request is stated for realizing the returning response about static file information, wherein the static file information include json, At least one of text, html, javascript, application/octet-stream format, the POST request are used In business processing response of the realization about Action frame in the servo terminal.
5. the adjustment method of terminal data as claimed in claim 3, it is characterised in that: in the local service mode, also Including constructing the servo terminal about the controlled end, after constructing access control connection of the control terminal to controlled end, also pass through Customized action frame in the servo terminal realizes the browser to web console static page in the controlled end The access operation in face wherein the action frame, which is specifically included, determines a preload process device using hash algorithm, then passes through The preload process device completes the data interaction between the POST request.
6. the adjustment method of terminal data as described in claim 1, it is characterised in that: in the remote agent mode, structure It builds control terminal to specifically include the remote agent access of controlled end, interacting and shaking hands based on connection request and verification information is recognized Card confirmation, the controlled end is added in the corresponding registration list of devices of a server-side, subsequently, based on the friendship of verification information Mutually, building based on the service terminal about being corresponded between a certain controlled end in the control terminal and the registration list of devices Act on behalf of channel access connection.
7. the adjustment method of terminal data as claimed in claim 6, it is characterised in that: in the remote agent service mode In, after constructing remote agent access of the control terminal to controlled end, the control terminal sends a control instruction to the server-side, The server-side generates an instruction id according to the control instruction and is sent to the controlled end, and the controlled end is according to the finger Id is enabled to feed back a command content acquisition request to the server-side, the server-side is according to described instruction content acquisition request to institute It states controlled end and sends a command content information, the controlled end according to described instruction content information executes dependent instruction and to described Server-side feeds back an instruction execution result, and described instruction implementing result is then fed back to the control terminal by the server-side, from And realize the command information interactive operation between the control terminal and the controlled end.
8. the adjustment method of terminal data as described in claim 1, it is characterised in that: in the remote agent service mode In, the control terminal specifically includes the corresponding cloud of the control terminal to the access control operation of web console in the controlled end It holds between web console web console corresponding with the controlled end through the matching confirmation of business interface, service request instruction Interaction, static file service request and list at least one of upload to realize access control operation;Wherein, institute The matching confirmation for stating business interface is realized according to the similarity for receiving parameter sets, specifically, setting Ki=[k1..., ki] be the corresponding cloud web console of control terminal business interface parameter sets, kiFor the corresponding cloud web control of the control terminal I-th of interface parameters of platform processed sets Sj=[s1..., sj] join for the business interface of the corresponding web console of the controlled end Manifold is closed, sjFor j-th of interface parameters of the corresponding web console of the controlled end, concept tree-model is established using KM algorithm Obtain KiWith SjBetween best match M, and the weight of the best match M is the similarity,
Wherein, S (Ki,Sj) it is similarity between two business interface parameter sets, Weight (M) is the power of best match M Weight, a are the coupling number of M, wiFor the corresponding weighted value of each match parameter;
Further, the wiCalculating process it is as follows:
Wherein, l KiAnd SjIn the shortest path length of the concept tree-model, h KiAnd SjIn the concept tree-model most Height of the close identical Upper Concept in tree, μ and ε are the influence degree coefficient for adjusting l and h in similarity calculation, And μ >=0, ε >=0;
Then, according to obtained similarity S (K calculated abovei,Sj) and a scheduled threshold value, judge the similarity S (Ki,Sj) Whether preset Interface Matching condition is met.
9. the adjustment method of terminal data as claimed in claim 8, it is characterised in that: in the remote agent service mode In, pass through TCP long connection between the corresponding cloud web console of control terminal web console corresponding with the controlled end Mode realizes real time communication, wherein the TCP long connection type, which is specifically included, is packaged an instruction packet for http request, to realize The minimum of the TCP long connection transmitted data amount, while realizing by http request the upload of the file of specific data amount With downloading, to realize connecing between the corresponding cloud web console of control terminal web console corresponding with the controlled end Mouth requests asynchronous agency's connection.
10. the adjustment method of terminal data as described in claim 1, it is characterised in that: by the local service mode and The remote agent mode, which is realized to specifically include the debugging of the terminal data, executes screenshot capture, controlled to the controlled end It holds in the collection of internal information acquisition, the acquisition of controlled end network environment information, controlled end Dump stack information and App log extremely Few one.
CN201910060116.7A 2019-01-22 2019-01-22 Terminal data debugging method Active CN109831496B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910060116.7A CN109831496B (en) 2019-01-22 2019-01-22 Terminal data debugging method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910060116.7A CN109831496B (en) 2019-01-22 2019-01-22 Terminal data debugging method

Publications (2)

Publication Number Publication Date
CN109831496A true CN109831496A (en) 2019-05-31
CN109831496B CN109831496B (en) 2021-06-15

Family

ID=66861868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910060116.7A Active CN109831496B (en) 2019-01-22 2019-01-22 Terminal data debugging method

Country Status (1)

Country Link
CN (1) CN109831496B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113704298A (en) * 2020-05-20 2021-11-26 菜鸟智能物流控股有限公司 Data processing method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050131671A1 (en) * 2003-12-15 2005-06-16 Microsoft Corporation Subscriber identification module (SIM) emulator
CN104283713A (en) * 2014-10-13 2015-01-14 杭州华三通信技术有限公司 Remote management method and converting device
CN105450463A (en) * 2014-08-26 2016-03-30 阿里巴巴集团控股有限公司 Hardware equipment debugging method, hardware equipment debugging device and hardware equipment debugging system
CN106126420A (en) * 2016-06-21 2016-11-16 北京小米移动软件有限公司 Application program adjustment method and device
CN107026764A (en) * 2016-02-02 2017-08-08 腾讯科技(深圳)有限公司 A kind of remote debugging method, equipment, server and system
CN107463499A (en) * 2017-08-08 2017-12-12 百度在线网络技术(北京)有限公司 The long-range connection methods of ADB, device, equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050131671A1 (en) * 2003-12-15 2005-06-16 Microsoft Corporation Subscriber identification module (SIM) emulator
CN105450463A (en) * 2014-08-26 2016-03-30 阿里巴巴集团控股有限公司 Hardware equipment debugging method, hardware equipment debugging device and hardware equipment debugging system
CN104283713A (en) * 2014-10-13 2015-01-14 杭州华三通信技术有限公司 Remote management method and converting device
CN107026764A (en) * 2016-02-02 2017-08-08 腾讯科技(深圳)有限公司 A kind of remote debugging method, equipment, server and system
CN106126420A (en) * 2016-06-21 2016-11-16 北京小米移动软件有限公司 Application program adjustment method and device
CN107463499A (en) * 2017-08-08 2017-12-12 百度在线网络技术(北京)有限公司 The long-range connection methods of ADB, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113704298A (en) * 2020-05-20 2021-11-26 菜鸟智能物流控股有限公司 Data processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109831496B (en) 2021-06-15

Similar Documents

Publication Publication Date Title
US10977111B2 (en) Constraint solver execution service and infrastructure therefor
US10136243B2 (en) System and method for creating mobile application store
CN113272825B (en) Reinforcement learning model training by simulation
CN103324470B (en) A kind of method and apparatus of Web system generation
CN105389263B (en) Application software authority monitoring method, system and equipment
US20060173951A1 (en) System and method for transfer, control, and synchronization of data
CN104750487B (en) A kind of development approach and starting method of mobile terminal APP
CN106027330A (en) Message testing method for front-end system, and simulation baffle system
US20120191770A1 (en) System, a method and a computer program product for automated remote control
US20230308504A9 (en) Method and system of application development for multiple device client platforms
CN102651856A (en) Method, system and device for improving Internet surfing security of terminal
BR112012001510B1 (en) SYSTEM FOR MODIFYING A TERMINAL MACHINE AND A SERVICE PROVIDER MACHINE AND METHOD OF CONDUCTING A DIALOGUE BETWEEN A TERMINAL MACHINE AND A SERVICE PROVIDER MACHINE
CN109218368A (en) Realize method, apparatus, electronic equipment and the readable medium of Http reverse proxy
CN105138454B (en) A kind of automated testing method for B/S framework security softwares
CN102970342A (en) Automatic update method of embedded terminal based on over the air (OTA) technology
CN108614767A (en) A kind of remote debugging method and device
CN110011875A (en) Dial testing method, device, equipment and computer readable storage medium
CN105704178A (en) Task platform access method and task platform access device
CN110175464A (en) Data access control method, device, storage medium and electronic equipment
CN107887003A (en) Medical image processing method based on SaaS
CN109831496A (en) A kind of adjustment method of terminal data
CN112241266A (en) Authority control method, device and equipment under front-end rendering scene and storage medium
CN111241504B (en) Identity verification method, device, electronic equipment and storage medium
CN113296744A (en) Application development system and method
CN109726593A (en) A kind of implementation method and device of data sandbox

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant