Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The following describes a page debugging method, a page debugging device, and a client of a terminal application in detail with reference to the accompanying drawings. Fig. 1 is a method flowchart illustrating an embodiment of a page debugging method for a terminal application provided in the present application. Although the present application provides method operational steps or apparatus configurations as illustrated in the following examples or figures, more or fewer operational steps or module configurations may be included in the method or apparatus based on conventional or non-inventive efforts. In the case of steps or structures where there is no logically necessary cause-and-effect relationship, the execution order of the steps or the block structure of the apparatus is not limited to the execution order or the block structure provided in the embodiments of the present application. When the described method or module structure is implemented in an actual device or end product, it can be executed sequentially or executed in parallel (e.g., in the context of parallel processors or multi-threaded processing) according to the embodiments or the method or module structure shown in the figures.
Specifically, as shown in fig. 1, an embodiment of a page debugging method for a terminal application provided by the present application may include:
s1: and constructing a front-end resource file of page debugging and setting debugging configuration information of the page debugging.
In this embodiment, a front-end resource file required for opening a page when the debugging terminal performs page debugging may be pre-constructed. For example, the resource file contents such as pictures, user information data, colors, frame layout, and the like required when the product application a opens a Web page on a certain terminal. The front-end resource files used in the debugging process can be built and stored locally in advance. If the application a needs to load and call user data information when opening a page, in the embodiment of the present application, a user information database may be locally constructed in advance for debugging the terminal application a to open the page. Of course, the specific front-end resource file to be constructed may be set according to the page to be debugged. The debugging terminal can comprise mobile terminal equipment such as a smart phone and a tablet personal computer, and can also be a PC, a server and the like.
Typically, opening a Web page typically requires loading some specified resource file information. The front-end resource file can be used for loading and using resource file data when an application in the debugging terminal opens a page. In a specific implementation process, the front-end resource file may be all resources required for opening a page for an application of the debugging terminal, or may be a part of the resource file. For example, the picture data required by the test terminal application for opening the page is the sample picture stored in the designated server position, in the embodiment of the application, a front-end resource file of a new picture database for page display can be locally established during page debugging, and the front-end resource file can be loaded and used when the debugging terminal opens the page, so that the application of the debugging terminal can be ensured to normally open the Web page, and the page debugging can be ensured to be smoothly carried out.
According to the specific implementation mode for constructing the front-end resource file, the front-end resource can be constructed by calling webpack, and a final resource file used for page debugging is generated. The specific type of the constructed front-end resource file can be determined according to the requirement of debugging, such as js, html, css and the like. The content of the constructed resource file can be stored in a local device for debugging the terminal application page, and specifically can be set by a debugger to be stored in a memory or an output disk. The webpack used in the embodiment of the application is a front-end resource loading/packaging tool, and various functions required by engineering optimization such as debugging and detection of a debugging terminal page can be provided through relatively simple configuration in the specific implementation process of the embodiment. Of course, the front-end resource file for constructing the page debug described in the present application is not limited to the method of constructing through webpack described in this embodiment, and the front-end resource file for page debug constructed by using other methods or tools may still be applied to the present application.
Meanwhile, debugging configuration information of page debugging can be preset in the embodiment. The debugging configuration information may include configuration information of object information of page debugging, control instructions of a debugging module, an interception policy, a debugging mode, control and monitoring of whether a debugging function is enabled, and the like. The debugging configuration information can be stored in a local configuration file, and can describe the debugging related information of the terminal application. In an embodiment of the present application, the debugging configuration information may be configured to include:
and indicating a debugging terminal to acquire all resource file information for opening a specified page and forwarding all the resource file information to the interception setting information of the local application server.
In another embodiment, the debugging configuration information may be configured to include:
and indicating a debugging terminal to acquire the set appointed intercepted resource file information when opening the page and forwarding the acquired resource file information to the interception setting information of the local application server.
In the embodiment of the application, a front-end resource file used for page debugging can be pre-constructed and debugging configuration information of page debugging can be set. Different interception modes for intercepting and acquiring the resource file information can be set in different page debugging processing scenes according to debugging processing requirements.
S2: and sending the debugging configuration information to a cross-platform message pushing application.
In one embodiment of the present application, a local application server may be configured and enabled. The local application server in the application scenario of this embodiment may be configured to push relevant information that needs to start the debugging service, such as the debugging configuration information described in this embodiment, to the cross-platform message pushing application. The cross-platform message pushing application generally comprises a message pushing platform which can be directly interconnected with a debugging terminal to perform data communication so as to send and push a pushing message to an application of a specified debugging terminal. In different application scenarios, terminal devices of different systems may have corresponding cross-platform message push applications. For example, in an application scenario of the terminal using the iOS system in this embodiment, the cross-platform message Push application may be an APNS (Apple Push Notification Service, APNS, Apple Push Notification Service).
A local application server may be started koa in a particular application scenario. Koa is a smaller, more robust, and more expressive Web framework tool that can set up and launch a local application server via koa. Generally, the local application server may further provide a resource access interface for external access to the content of the constructed front-end resource file. The local application server, e.g., initiated at koa, may provide an http service, e.g., http://10.12.11.110:8000, so that outside world modules or components or application services may access the contents of the built front-end resource file via url. It should be noted that the above-mentioned external environment may include a device on a public network, for example, the apple terminal device may access the front-end resource file through the url resource access interface provided. Other application fields can also comprise other terminal equipment belonging to the same local area network, for example, the set resource access interface can be http://127.0.0.1:8000, so that the debugging terminal belonging to the same local area network can access the constructed front-end resource file.
In the embodiment of the application, a notification message (notification) including debugging configuration information can be sent to a cross-platform message push application of a debugging terminal through a local application server. Of course, further, the cross-platform message pushing application may push the received notification message to the corresponding terminal device. Therefore, the page debugging method for the terminal application described in the present application may further include:
s3: and the cross-platform message pushing application pushes the debugging configuration information to a corresponding debugging terminal.
Specifically, for example, in an application scenario where the test terminal is an iOS system, the application server may send a notification message notification including the debugging configuration information to the APNS, and then push the notification message to the corresponding mobile terminal through the APNS.
In the application scenario of this embodiment, the cross-platform message PUSH application APNS is an apple PUSH server. Generally, when the iOS device is connected to the network, it will automatically maintain a long TCP-like link with the APNS for monitoring the notification messages pushed by the APNS. When an application request terminal (Provider) such as a mobile terminal or a debugging application needs to push a message to a mobile terminal application, the Provider can package push content, a device identifier (device token) for receiving the push message and the like according to a data format specified by the APNS and then send the package to the APNS. After receiving the message sent by the Provider, the APNS may search for the device according to the corresponding device identifier. If the device and the APNS establish a connection, the message can be pushed to the device immediately, and if the device is not online, the message can be pushed to the device after the device is connected to the APNS next time. The local application server configured in the embodiment of the present application is equivalent to a role of the Provider in the foregoing APNS application scenario, and in this embodiment, the local application server may send the debugging information of the relevant device to the APNS through the notification message, and then the APNS may push the notification message to the corresponding terminal device.
It should be noted that, in this embodiment, the debugging configuration information may be sent to the debugging terminal through a set local application server, specifically, for example, the notification message including the debugging configuration information is sent to the debugging terminal through the cross-platform message push application corresponding to the debugging terminal. The present application does not exclude embodiments where the commissioning configuration information is sent directly to the commissioning terminal in some application scenarios.
S4: the debugging terminal receives a notification message comprising debugging configuration information, then opens a page of a corresponding application based on the constructed front-end resource file and the provided resource access interface, acquires interception resource file information of the page based on the setting content in the received debugging configuration information, and forwards the acquired interception resource file information to a set local application server.
In this embodiment, after receiving the notification message notification, the debug terminal may enable the debug mode of the application in the debug device, and then open the Web page of the corresponding application with the container. A local application server may be enabled, for example, through koa, and the local application server may provide a resource access interface, for example, http service, so that the debugging terminal may access the front-end resource file constructed by webpack, and open the application page of the debugging terminal is ensured. The specific application page to be opened of the debugging terminal can be preset in the debugging configuration information. Of course, in the application, the App debugged by the debugging terminal can be directly and manually opened by the debugging personnel, the debugging mode of the App is started, and then the corresponding page is opened based on the triggering of the debugging personnel.
Further, in the embodiment of the present application, when the Web page is opened, the resource file information required for opening the Web page may be intercepted and acquired. And then forwarding the resource file information obtained by interception to the local application server. The intercepted resource file information may include page source code data in one or more page languages, and may generally include page text control information, picture information, scripts, and the like. In a specific application scenario, for example, a payment product application of a certain debugging terminal is designed to call a background picture used by a homepage title when a Web page is opened, and the background picture is img _001 ═ http://127.0.0.1/pictures/picture _ 001. In the embodiment of the application, intercepting and acquiring the source code data of the resource file information of the background picture called by the opened Web page can be set, and then forwarding the source code data of the resource file information to the local application server.
And different interception modes for intercepting and acquiring the resource file information can be set according to debugging processing requirements in different page debugging processing scenes. In an embodiment of the application, intercepting and acquiring all information of resource files of opened Web can be set in the debugging configuration information. Therefore, modification and replacement of resource file information can be integrally carried out during subsequent debugging and modification of the resource file, the debugging risk of the terminal application is reduced, and the debugging reliability and the debugging safety of the terminal application page are guaranteed. Therefore, in an embodiment of the present application, acquiring the intercepted resource file information of the page based on the setting content in the received debugging configuration information, and forwarding the acquired intercepted resource file information to the set local application server may include:
s401: and acquiring all resource file information for opening the page, and forwarding all resource file information to the local application server.
In a specific implementation process, the whole resource file information when the corresponding Web page is opened by the debugging terminal application can be intercepted and then forwarded to the local application server. Therefore, the method can be used for completely replacing the resource file of the page in the debugging terminal after debugging and modifying the intercepted whole resource file information by the local application server, and realizing whole interception of the debugging terminal page and whole replacement after debugging and modifying.
Of course, in other embodiments of the interception method, a specified resource file or file type to be intercepted, or other page resource information, etc. may also be set in the debugging configuration information. Therefore, only the specified resource file is intercepted and acquired and forwarded to the local application server when the terminal real machine is debugged at a single time, the data processing amount of page debugging can be reduced, the processing time is further reduced, and the page debugging efficiency is improved. Therefore, in another embodiment of the method of the present application, acquiring the intercepted resource file information of the page based on the setting content in the received debugging configuration information, and forwarding the acquired intercepted resource file information to the set local application server may include:
s402: and acquiring the appointed intercepted resource file information set in the debugging configuration information when the page is opened, and forwarding the acquired resource file information to the local application server.
In the application scenario of this embodiment, after the mobile terminal of the mobile iOS is online, the notification message notification pushed by the APNS may be received. After the debugging configuration information in the notification message is analyzed and obtained, the debugging mode of the application can be started, and the Web page of the corresponding application can be opened based on the debugging configuration information. In the embodiment of the present application, the resource file required by the Web page may be intercepted and acquired, and forwarded to the local application server, such as koa. In the embodiment provided by the application, all resource files of the opened Web page can be intercepted and set in the debugging configuration information, and then all the intercepted resource files are forwarded to the local application server for debugging processing. In another embodiment, only the content of the specified resource file information set in the debugging configuration information, such as only the picture information or the page font information, may be intercepted, and then the intercepted resource file information is forwarded to the local application server for performing the page source code debugging processing.
S5: receiving intercepted resource file information sent by a debugging terminal, locally modifying the content of the intercepted resource file information, and then constructing resources to generate a debugged resource file; and sending the debugged resource file to a debugging terminal.
The debugging terminal forwards the intercepted resource file information to a local application server, and the local application server can receive the resource file information sent by the debugging terminal, usually the source code data of the Web page, and then locally debug and modify the content of the resource file information. Further, the resource builder such as the webpack can be used for building the locally modified resource file information in real time to generate a resource file type which can be used by the debugging terminal application. After the construction is completed, the constructed resource file information may be fed back to a debugging terminal, such as a mobile terminal of the iOS system in the application scenario of this embodiment.
The local application server may send the constructed modified resource file information to the debugging terminal through the cross-platform message push application, or may send the modified resource file information to the debugging terminal through another communication link, for example, the constructed local application server and the same local area network to which the debugging terminal belongs.
S6: and the debugging terminal receives the debugged resource file and updates the page resource file information of the corresponding application.
The debugging terminal, such as the apple terminal device, can receive the debugged resource file after the local application server is locally modified based on the intercepted resource file information, and update the page resource file information of the corresponding application.
In the method of the embodiment of the application, the debugging terminal can receive the resource file information constructed after local debugging and modification, and then can automatically refresh and update the resource file information content of the terminal application, so as to realize the debugging processing of the terminal application page.
As described above, the local application server may send the constructed modified resource file information to the debugging terminal through the cross-platform message push application, or may send the modified resource file information to the debugging terminal through another communication link, for example, the constructed local application server and the same local area network to which the debugging terminal belongs. Based on the limitation of the debugging mode in the prior art, the terminal device is usually debugged by using a specific debugging platform after being physically connected with the debugging terminal through a USB or other dedicated data line. In an implementation mode of the terminal application page debugging method, interactive communication with a debugging terminal can be achieved through a wireless communication network, so that page debugging is more flexible and convenient, and the efficiency of Web page debugging in a debugging terminal APP is improved. Therefore, in an embodiment of the present application, at least one of the debugging configuration information, the intercepted resource file information, and the debugged resource file performs information interaction with the debugging terminal in a wireless communication network manner.
The wireless communication network may include a mobile communication network based on communication technologies such as 3G and 4G, or a local area network communication network such as WIFI, bluetooth and infrared, and the internet. In a specific implementation manner, for example, a local area network may be established, the client performing the page debugging and the debugged mobile terminal device are set to be in the same local area network, and then the Web page debugging of the debugged mobile terminal device is implemented in a wireless interaction manner. Certainly, in the actual implementation process, a corresponding message driver may be configured, so that the mobile terminal device can identify the wireless network interaction message, and perform operations such as opening an application page, intercepting and forwarding a resource file, and updating the resource file.
It should be noted that, the method described in this application may further obtain a device identifier (devicetoken) of the debug terminal, where the device identifier may be recorded in the local disk for reading by the local application server. Specifically, after a communication link is established between a debugging device, such as a local application server, and a debugging terminal, a debugger can manually use an application to be debugged in the debugging terminal once, thereby obtaining device adjustment information of the debugging terminal. Like this, can take notes the corresponding equipment sign of a plurality of debugging terminals of storage, and an equipment sign corresponds a debugging terminal, realizes preventing to influence other debuggers' debugging operation in the debugging process simultaneously, because local application server can learn the equipment sign of different debugging terminals, can set up a plurality of equipment signs into a debugging scope when facing the debugging of many terminals, can realize then carrying out the true quick-witted debugging of page simultaneously to a plurality of debugging terminals. If the local area network and the public network are combined to realize multiple times of debugging of a plurality of local and remote debugging terminals, obviously, the team cooperation capacity and the page debugging efficiency can be greatly improved by the implementation scheme of the application. Therefore, in another embodiment of the method for debugging a terminal application page according to the present application, the method may further include:
s0: acquiring a device identifier of a debugging terminal;
correspondingly, the debugging configuration information for setting page debugging comprises: setting a device identifier of a debugging terminal for indicating to receive the notification message in the debugging configuration information; and the number of the first and second groups,
the step of sending the debugged resource file to a debugging terminal comprises the following steps: and sending the debugged resource file to a corresponding debugging terminal based on the equipment identifier set in the adjustment configuration information.
The page debugging method of the terminal application, provided by the application, provides a more convenient and flexible way to debug the Web page running in the client APP, and solves the problem that the debugging of the terminal application page under an iOS or android system limits an inherent debugging platform. By the method, the page debugging of the terminal application can be more convenient and flexible, and the debugging efficiency of the terminal page is improved.
Based on the page debugging method of the terminal application, the application also provides a page debugging device of the terminal application. Fig. 2 is a schematic block structure diagram of an embodiment of a page debugging apparatus for a terminal application, as shown in fig. 2, the apparatus may include:
the resource configuration module 101 may be configured to construct a front-end resource file for page debugging and set debugging configuration information for page debugging;
the application service module 102 may be configured to send the notification message of the debugging configuration information to a debugging terminal, and send the debugged resource file to the debugging terminal; the debugging terminal can also be used for receiving intercepted resource file information sent by the debugging terminal, locally modifying the content of the intercepted resource file information, then constructing resources and generating a debugged resource file; and the method can also be used for providing an access interface for the debugging terminal to access the front-end resource file constructed in the resource configuration module 101.
In a specific implementation manner, the resource configuration module 101 may include a tool such as webpack to implement the construction of the front-end resource file, so as to produce the final resource file (js, html, css, etc.). The debugging configuration information may be set in a local configuration file, and the configuration file may describe information related to the debugging function that needs to be started. When the debugging terminal is debugged by the page, the loaded local configuration file can be read, and the information content of the page debugging can be obtained.
The application service module 102 may specifically be koa, and may locally launch a local application server through koa. The local application server may provide a resource access interface for http services such as http://10.12.11.110:8000, so that outside modules or components or application services may access the contents of the built front-end resource file through the url. In addition, the local application server started by the application module according to the present application may also push relevant information that needs to start the debugging server, for example, the notification message (notification) including the debugging configuration information, to a corresponding cross-platform message push application of the debugging terminal, and then push the notification message (notification) to the corresponding debugging terminal through the cross-platform message push application.
The debugging configuration information may set corresponding configuration information according to debugging requirements, for example, configuration information of object information (device token) of page debugging, a debugging module control instruction, an interception policy, a debugging mode, control and monitoring of whether a debugging function is enabled, and the like may be included. In an embodiment of the apparatus of the present application, different interception manners for intercepting and acquiring the resource file information may be set according to debugging processing requirements, and specifically, the debugging configuration information set in the resource configuration module 101 may include:
and indicating the debugging terminal to acquire all resource file information for opening the specified page and forwarding all the resource file information to the interception setting information of the specified application server.
In another embodiment of the apparatus of the present application, it may also be configured to intercept only a specified part of the resource file information. Therefore, in another embodiment of the present application, the debugging configuration information may include:
and when the debugging terminal is instructed to open a specified page, the set specified intercepted resource file information is obtained and forwarded to the interception setting information of a specified application server.
The method intercepts all the resource file information of the debugging terminal opening page, so that the resource file information can be integrally modified and replaced during subsequent debugging and modification of the resource file, the debugging risk of the terminal application is reduced, and the debugging reliability and the debugging safety of the terminal application page are guaranteed. In another embodiment, a specified resource file or file type to be intercepted, or other page resource information, etc. may be set in the debugging configuration information. Therefore, only the specified resource file is intercepted and acquired and forwarded to the local application server when the terminal real machine is debugged at a single time, the data processing amount of page debugging can be reduced, the processing time is further reduced, and the page debugging efficiency is improved.
Fig. 3 is a schematic block diagram of an embodiment of the application service module 102 according to the present application. As shown in fig. 3, the application service module 102 may include:
the wireless communication module 1021 is configured to perform information interaction between at least one of the debugging configuration information, the intercepted resource file information, and the debugged resource file and the debugging terminal in a wireless communication network.
The wireless communication network may include a mobile communication network based on communication technologies such as 3G and 4G, or a local area network communication network such as WIFI, bluetooth and infrared, and the internet. Certainly, in an actual implementation process, the wireless communication module 103 may configure a corresponding message driver, so that the mobile terminal device can identify a wireless network interaction message, and perform operations such as opening an application page, intercepting and forwarding a resource file, and updating the resource file.
Fig. 4 is a schematic block structure diagram of another embodiment of a debugging apparatus for a terminal application page according to the present application. As shown in fig. 4, the apparatus may further include:
the identification module 103 may be configured to obtain a device identifier of the debug terminal;
correspondingly, the setting, by the resource configuration module 101, of the configuration information of page debugging includes: sending the debugged resource file to a corresponding debugging terminal based on the equipment identifier set in the adjustment configuration information; and the number of the first and second groups,
the sending, by the application service module 102, the debugged resource file to a debugging terminal includes: and sending the debugged resource file to a corresponding debugging terminal based on the equipment identifier set in the adjustment configuration information.
The device identifier (device token) may be recorded in a local disk, and may be read by the application service module 102. Generally, one device identifier set in the identifier module 104 in this embodiment usually corresponds to only one debugging terminal, so as to prevent the debugging operations of other debuggers from being affected during the debugging process. Certainly, in the extensible embodiment, the device identifiers corresponding to the multiple debugging terminals may also be recorded and stored, the application service module 102 may acquire the device identifiers of different debugging terminals, and may set the multiple device identifiers to a debugging range when facing the multi-terminal debugging, so that the simultaneous page live debugging of the multiple debugging terminals may be implemented, and the team cooperation capability and the page debugging efficiency may be greatly improved.
The debugging method, the device and the client of the terminal application page can enable a developer to be free from the limitation of an original specific debugging platform, for example, if the page of mobile Safari in iOS is to be debugged, the mobile Safari can be operated only by being connected with Safari under Macs, and footstep languages (javascript), css, html and the like of a debugging page section are taken in a more flexible and boundary mode, so that the debugging information and the user experience of the terminal page are greatly improved. Certainly, in the implementation process, information interaction is usually required to be performed with the terminal device to be debugged, so that debugging and modification are performed locally after resource file information of a page opened by the debugging terminal is intercepted. Therefore, the present application further provides a client for debugging an application page, fig. 5 is a schematic block structure diagram of an embodiment of the client for debugging an application page provided in the present application, and as shown in fig. 5, the client is configured to include:
the data receiving unit 201 may be configured to receive a notification message including debugging configuration information, and receive a debugged resource file that is locally modified by the local application server based on the acquired intercepted resource file information;
the data processing unit 202 may be configured to open a page of a corresponding application based on the built front-end resource file and the provided resource access interface; the method can also be used for acquiring the interception resource file information of the page according to the setting content in the debugging configuration information and forwarding the acquired interception resource file information to a set local application server; the method can also be used for updating the page resource file information of the corresponding application based on the received debugged resource file information.
The notification message may be directly sent by the debugging device of the terminal application page, or may be sent to the client by the cross-platform message push application based on a device identifier (device token) of the client after the device sends the cross-platform message push application.
According to the setting of the debugging configuration information, the client can intercept and acquire all resource file information of the opened application page, and can also intercept only the set specified part of resource file information. Therefore, in an embodiment of the client according to the present application, acquiring the interception resource file information of the page based on the setting content in the received debugging configuration information, and forwarding the acquired interception resource file information to the set local application server may include:
and acquiring all resource file information for opening the page, and forwarding all resource file information to the local application server.
In other embodiments, obtaining the intercepted resource file information of the page based on the setting content in the received debugging configuration information, and forwarding the obtained intercepted resource file information to the set local application server may include:
and acquiring the appointed intercepted resource file information set in the debugging configuration information when the page is opened, and forwarding the acquired resource file information to the local application server.
Of course, the client may also exchange communication with the debugging apparatus of the above embodiment in a wireless communication network manner, so as to transmit at least one of the notification message, the intercepted resource file information, and the debugged resource file in a wireless communication network manner.
According to the debugging method, the debugging device and the client of the terminal application page, the resource file can be built locally, and the service information needing to be started for debugging is pushed to the debugging terminal through the cross-platform message pushing application by using the locally-arranged application server. The debugging terminal application can start the debugging mode of the application according to the content of the debugging configuration information, access the local resource file through the interface provided by the application server, and open the corresponding Web page. And then forwarding the resource file information of the interception page to a local application server for debugging and modifying according to the resource file information of the set interception page. The local application server can feed back the resource file after debugging and modification to the debugging terminal, and the debugging terminal can automatically refresh and update the resource file after receiving and modifying, so that the limitation of the original inherent platform on debugging is eliminated, and the debugging processing can be more conveniently and flexibly performed on the page of the terminal application.
Although the description of data processing and information interaction by using tools such as webpack and koa for file construction, server setting and enabling, setting of access interface and configuration information, information interaction mode and the like is mentioned in the content of the application, the application is not limited to the case of data processing and information interaction which are necessarily completely standard or in the mentioned mode. The above description of the embodiments of the present application is only an application of some embodiments of the present application, and the embodiments of the present application may be implemented on the basis of some standards, models, and methods with slight modifications. Of course, other non-inventive variations of the processing method steps described in the above embodiments consistent with the present application may still be implemented in the same application, and are not described herein again.
Although the present application provides method steps as described in an embodiment or flowchart, additional or fewer steps may be included based on conventional or non-inventive efforts. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an actual apparatus or client product executes, it may execute sequentially or in parallel (e.g., in the context of parallel processors or multi-threaded processing) according to the embodiments or methods shown in the figures.
The apparatuses, units or modules illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. The functionality of the modules may be implemented in the same one or more software and/or hardware implementations of the present application. Of course, a module that implements a certain function may be implemented by a plurality of sub-modules or sub-units in combination.
The methods, apparatus or modules described herein may be implemented in computer readable program code to a controller implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, Application Specific Integrated Circuits (ASICs), programmable logic controllers and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may therefore be considered as a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
Some of the modules in the apparatus described herein may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, classes, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary hardware. Based on such understanding, the technical solutions of the present application may be embodied in the form of software products or in the implementation process of data migration, which essentially or partially contributes to the prior art. The computer software product may be stored in a storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, mobile terminal, server, or network device, etc.) to perform the methods described in the various embodiments or portions of the embodiments of the present application.
The embodiments in the present specification are described in a progressive manner, and the same or similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. All or portions of the present application are operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, mobile communication terminals, multiprocessor systems, microprocessor-based systems, programmable electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
While the present application has been described with examples, those of ordinary skill in the art will appreciate that there are numerous variations and permutations of the present application without departing from the spirit of the application, and it is intended that the appended claims encompass such variations and permutations without departing from the spirit of the application.