Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some 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 technical solutions provided by the embodiments of the present description are described in detail below with reference to the accompanying drawings.
The present specification provides a routing method to implement real-time repair of online problems and support for emergency service requirements. As shown in fig. 1, fig. 1 is a flowchart of a routing method in an embodiment of the present disclosure. The routing method comprises the following steps: obtaining a routing request, wherein the routing request comprises a keyword; determining a first routing strategy corresponding to the keyword according to the keyword, wherein the first routing strategy is searched by a server according to the keyword; and executing routing operation on the routing request by utilizing the first routing strategy.
Specifically, step S101: and acquiring a routing request, wherein the routing request comprises a keyword.
In an embodiment of the present specification, the keyword may be a specific routing keyword, a specific routing request corresponds to the routing keyword, and a specific routing operation corresponds to the routing keyword. It should be noted that the routing keywords correspond to the routing requests one to one, and one routing request corresponds to one specific routing operation, but the same specific routing operation may correspond to a plurality of different routing requests. That is, one routing request corresponds to one routing operation through one routing key, but the same routing operation may correspond to a plurality of routing requests through a plurality of routing keys, respectively.
In another embodiment of this specification, the keyword may also be information of a configuration file of a routing policy, for example, the information is a file name of the configuration file, and of course, in other embodiments of this specification, the information may also be other information of the configuration file, which is not described in detail herein. The routing strategy refers to a mapping relation between a routing request and a routing operation corresponding to the routing request, and the configuration file refers to a file for recording the routing strategy. At this time, specifically, the keyword is a file name of a configuration file of a routing policy in which the routing request is recorded.
Further, the configuration file may record mapping relationships between all routing requests and routing operations corresponding to the routing requests of an application program, or record mapping relationships between some routing requests and routing operations corresponding to the routing requests, for example, record mapping relationships between all routing requests and routing operations corresponding to a function module in an application program.
Step S103: and determining a first routing strategy corresponding to the keyword according to the keyword, wherein the first routing strategy is searched by the server according to the keyword.
Firstly, the server receives the query message, and the query message contains the keyword.
And when the keyword is a specific routing keyword, the query message further comprises routing operation corresponding to the routing keyword in a second routing strategy preset in the terminal equipment.
When the keyword is the file name of the configuration file, the query message further includes version information of the configuration file, and the configuration file included in the query message is a configuration file of a second routing policy preset in the terminal device.
In an embodiment of this specification, a time when the terminal device sends the query message to the server may be any idle time in a normal working process of the terminal device running the application program, may also be an idle time in a running process of the application program, may also be a time when the application program is started, and of course, may also be a time when the application program initiates a routing request. Of course, the above is only a limited number of specific embodiments listed in this specification, and in other embodiments of this specification, the time at which the query message is sent to the server is not limited to this.
Secondly, receiving a query result sent by the server, wherein the query result comprises the keyword and a first routing strategy corresponding to the keyword.
And the server searches whether an updated routing strategy exists according to the keyword. And if so, determining the updated routing strategy as a first routing strategy corresponding to the keyword, and sending a query result to the terminal equipment, wherein the query result comprises the keyword and the first routing strategy corresponding to the keyword.
And the server searches whether an updated routing strategy exists according to the keyword, and the method comprises the following steps. Specifically, when the keyword is a specific routing keyword, the server determines, according to the routing keyword, a routing operation stored in the server and corresponding to the routing keyword. And the server matches the routing operation corresponding to the routing keyword stored on the server with the routing operation corresponding to the routing keyword in the second routing strategy contained in the query message, and when the matching is successful, the server does not store the updated routing strategy, otherwise, the server has the updated routing strategy. And determining the updated routing strategy as a first routing strategy corresponding to the keyword, and sending a query result to the terminal equipment, wherein the query result comprises the keyword and the first routing strategy corresponding to the keyword.
When the keyword is the file name of the configuration file of the routing policy, the server finds the configuration file stored on the server according to the file name, determines the version information of the configuration file stored on the server, and judges whether an updated routing policy exists on the server according to the version information of the configuration file stored on the server and the version information of the configuration file of the second routing policy contained in the query message.
Specifically, the version information of the configuration file stored on the server is matched or compared with the version information of the configuration file of the second routing policy, and when the two are not matched, it indicates that the configuration file stored on the server is inconsistent with the configuration file of the second routing policy, and thus it can be indicated that the routing policy on the server is different from the second routing policy, that is, an updated routing policy exists on the server. And determining the updated routing strategy as a first routing strategy corresponding to the keyword, and sending a query result to the terminal equipment, wherein the query result comprises the keyword and the first routing strategy corresponding to the keyword.
And finally, according to the keywords, determining a first routing strategy corresponding to the keywords from the query result.
And the terminal equipment receives the query result and determines a first routing strategy corresponding to the keyword from the query result according to the keyword.
Specifically, when the keyword is a specific routing keyword, the first routing policy corresponding to the keyword is a routing operation corresponding to the routing keyword. And when the keyword is the file name of the configuration file of the routing strategy, the first routing strategy is the configuration file of the routing strategy corresponding to the keyword.
Step S105: and executing routing operation on the routing request by utilizing the first routing strategy.
Specifically, when the keyword is a specific routing keyword, and when the terminal device receives the routing request, the terminal device executes a routing operation corresponding to the routing keyword according to the first routing policy. And when the keyword is the file name of the configuration file and the terminal equipment receives the routing request, executing the routing operation corresponding to the routing request in the first routing strategy according to the first routing strategy.
When the terminal device performs a routing operation on the routing request by using the first routing policy, the method further includes: and if the first routing strategy comprises the version information of the application program, matching the version information of the application program corresponding to the routing request with the version of the application program contained in the first routing strategy, if the matching is successful, executing routing operation on the routing request by using the first routing strategy, otherwise, executing the routing operation on the routing request according to the second routing strategy.
Further, when the first routing policy is utilized to perform a routing operation on the routing request, the method further includes: and if the first routing strategy comprises version information of an operating system, matching the version information of the operating system of the terminal equipment with the version information contained in the first routing strategy, if the matching is successful, executing routing operation on the routing request by using the first routing strategy, otherwise, executing routing operation on the routing request by using the second routing strategy.
In other embodiments of this specification, when executing the first routing policy, the terminal device may determine whether the first routing policy is applicable according to version information of the application program and/or version information of the operating system, and may limit the first routing policy in other manners according to actual needs in an actual application process. For example, the type of operating system of the terminal device, the hardware configuration of the terminal device, and so on. That is, in the actual application process, the online problem occurring on a specific type of terminal device may be solved, or a new service requirement may be supported on a certain version of operating system or application program.
Of course, in the embodiment of this specification, determining whether the first routing policy is applicable is not limited to the version information of the application program, the version information of the operating system of the terminal device, the type of the operating system, and the hardware configuration, and the problem to be solved is not limited to the above-mentioned on-line problem occurring on a certain type of terminal device, or the new service requirement supported on a certain version of the operating system or application program, and is not described herein again.
The version information of the application program and the version information of the operating system may be in an interval range, or may be different version numbers in a discrete form.
And when the terminal equipment does not receive the first routing strategy sent by the server, executing routing operation on the routing request according to the second routing strategy. It should be noted that the terminal device does not receive the first routing policy sent by the server yet, and the first routing policy includes but is not limited to: the query result does not have any routing policy, the query result is empty, and the query result is that the first routing policy is not found.
Further, when the server does not find the updated routing policy, receiving and executing a routing instruction sent by the server, where the routing instruction includes: and executing the routing operation on the routing request according to the second routing strategy.
Specifically, when the server does not find the updated routing policy, the server sends a query result to the terminal device, where the query result includes a routing instruction, and the routing instruction includes: and the terminal equipment executes routing operation on the routing request according to the preset second routing strategy. And after receiving the routing instruction, the terminal equipment executes the routing instruction, namely executes the routing operation corresponding to the routing request in the second routing strategy for one routing request.
An embodiment of the present specification further provides a routing method, including: receiving an inquiry message sent by terminal equipment, wherein the inquiry message contains a keyword; searching whether a first routing strategy corresponding to the keyword exists or not according to the routing keyword; and under the condition that the first routing strategy is found, sending the first routing strategy to the terminal equipment, and executing routing operation on the received routing request by the terminal equipment according to the first routing strategy.
Specifically, as shown in fig. 2, fig. 2 is a flowchart of a routing method in an embodiment of the present specification.
Step S200: receiving an inquiry message sent by terminal equipment, wherein the inquiry message contains a keyword.
In an embodiment of this specification, the keyword may be a specific routing keyword, a specific routing request corresponds to the routing keyword, and a specific routing operation corresponds to the routing keyword. It should be noted that the routing keywords correspond to the routing requests one to one, and one routing keyword corresponds to one routing operation one to one, so that one routing request corresponds to one specific routing operation, but the same specific routing operation may correspond to a plurality of different routing requests. That is, one routing request corresponds to one routing operation through one routing key, but the same routing operation may correspond to a plurality of routing requests through a plurality of routing keys, respectively.
And when the keyword is a specific routing keyword, the query message further comprises routing operation corresponding to the routing keyword in a second routing strategy preset in the terminal equipment.
In another embodiment of the present specification, the keyword may also be information of a configuration file of a routing policy, and the information may be any relevant information of the configuration file, for example, a file name of the configuration file, and in this embodiment, the information is referred to as an example of the file name of the configuration file. The routing strategy refers to a mapping relation between a routing request and a routing operation corresponding to the routing request, and the configuration file refers to a file for recording the routing strategy. At this time, specifically, the keyword is a file name of a configuration file of a routing policy in which the routing request is recorded.
Further, the configuration file may record mapping relationships between all routing requests and routing operations corresponding to the routing requests of an application program, or record mapping relationships between some routing requests and routing operations corresponding to the routing requests, for example, record mapping relationships between all routing requests and routing operations corresponding to a function module in an application program.
When the keyword is the file name of the configuration file, the query message further includes version information of the configuration file, and the configuration file included in the query message is a configuration file of a second routing policy preset in the terminal device.
The time when the terminal device sends the query message to the server may be any idle time in a normal working process of the terminal device running the application program, may also be an idle time of the application program in a running process, may also be a time when the application program is started, and of course, may also be a time when the application program initiates a routing request. Of course, the above is only a limited number of specific embodiments listed in this specification, and in other embodiments of this specification, the time at which the query message is sent to the server is not limited to this.
Step S202: and searching whether a first routing strategy corresponding to the keyword exists or not according to the keyword.
Specifically, when the keyword is a specific routing keyword, the server determines, according to the routing keyword, a routing operation stored in the server and corresponding to the routing keyword. And the server matches the routing operation corresponding to the routing keyword stored on the server with the routing operation corresponding to the routing keyword in the second routing strategy contained in the query message, and when the matching is successful, the server does not store the updated routing strategy, otherwise, the server has the updated routing strategy.
When the keyword is the file name of the configuration file of the routing strategy, the server finds the configuration file stored on the server according to the file name, determines the version information of the configuration file stored on the server, and judges whether an updated routing strategy exists on the server according to the version information of the configuration file stored on the server and the version information of the configuration file of the second routing strategy.
Specifically, the version information of the configuration file stored on the server is matched or compared with the version information of the configuration file of the second routing policy, and when the two are not matched, it indicates that the configuration file stored on the server is inconsistent with the configuration file of the second routing policy, and thus it can be indicated that the routing policy on the server is different from the second routing policy, that is, an updated routing policy exists on the server. Otherwise, it means that there is no updated routing policy on the server.
In another embodiment of the present specification, the server may obtain version information of the configuration file of the second routing policy on the terminal device at regular time, compare the version information with the version information of the configuration file of the routing policy stored in the server, and when the version information and the version information are not matched, indicate that an updated routing policy exists on the server.
In another embodiment of the present specification, the server may directly push the first routing policy to the terminal device. The terminal device may receive unconditionally, or may select to receive or not receive the first routing policy pushed by the server. And under the condition that the terminal equipment receives the first routing strategy, executing routing operation on the received routing request according to the first routing strategy.
Step S204: and under the condition that the first routing strategy is found, sending the first routing strategy to the terminal equipment, and executing routing operation on the received routing request by the terminal equipment according to the first routing strategy.
And determining the updated routing strategy as a first routing strategy corresponding to the keyword, and sending a query result to the terminal equipment by the server, wherein the query result comprises the keyword and the first routing strategy corresponding to the keyword. And the terminal equipment receives the first routing strategy and executes the routing strategy to the received routing request according to the first routing strategy.
Specifically, when the keyword is a specific routing keyword, the first routing policy corresponding to the keyword is a routing operation corresponding to the routing keyword, and the server sends the routing operation corresponding to the routing keyword to the terminal device. And when the keyword is the file name of the configuration file of the routing strategy, the first routing strategy is the configuration file of the routing strategy corresponding to the keyword, and the server sends the configuration file of the first routing strategy to the terminal equipment.
And the terminal equipment executes the updated routing strategy after receiving the first routing strategy sent by the server. Specifically, when the keyword is a specific routing keyword, and when the terminal device receives the routing request, the terminal device executes a routing operation corresponding to the routing keyword according to the first routing policy. And when the keyword is the file name of the configuration file and the terminal equipment receives the routing request, executing the routing operation corresponding to the routing request in the first routing strategy according to the first routing strategy.
When the terminal device executes the routing operation on the routing request by using the first routing policy, the method further includes: and if the first routing strategy comprises the version information of the application program, matching the version information of the application program corresponding to the routing request with the version information of the application program in the first routing strategy, if the matching is successful, executing routing operation on the routing request according to the first routing strategy, otherwise, executing the routing strategy on the routing request according to the second routing strategy.
Further, when the first routing policy is utilized to perform a routing operation on the routing request, the method further includes: and if the first routing strategy comprises version information of an operating system, matching the version information of the operating system of the terminal equipment with the version information in the first routing strategy, if the matching is successful, executing routing operation on a routing request according to the first routing strategy, otherwise, executing the routing strategy on the routing request according to the second routing strategy.
Thirdly, receiving and executing a routing instruction sent by the server under the condition that the server does not find the updated routing policy, wherein the routing instruction comprises: and executing the routing operation on the routing request according to the second routing strategy.
Specifically, when the server does not find the updated routing policy, the server sends the routing instruction to the terminal device, and the terminal device executes the routing instruction after receiving the routing instruction, that is, executes, for one routing request, a routing operation corresponding to the routing request in the second routing policy.
Next, the above routing method is explained with an example of interaction between a terminal device and a server. As shown in fig. 3, fig. 3 is a schematic diagram of a routing method in an embodiment of the present specification.
First, as shown in step S301 in fig. 3, the terminal device receives a routing request, where the routing request includes a keyword.
Step S303, the terminal device sends a query message to the server, wherein the query message contains the keyword.
The query message also comprises a preset second routing strategy corresponding to the keyword in the terminal equipment.
Step S305, after receiving the query message, the server searches whether there is an updated routing policy on the server according to the keyword.
Specifically, the server obtains a routing policy corresponding to the keyword, which is stored in the server, and then matches the second routing policy with the routing policy stored in the server, and when the second routing policy and the routing policy are not matched, it is indicated that an updated routing policy exists on the server, and the updated routing policy is the first routing policy.
Step S307, the server sends the query result to the terminal device.
And when the updated routing strategy exists on the server, the query result comprises the keyword and a first routing strategy corresponding to the keyword.
When no updated routing policy exists on the server, the query result includes routing instructions that include: and executing routing operation on the routing request according to the second routing strategy.
Step S309, the terminal device receives the query result, and performs a routing operation on the routing request according to the query result.
Specifically, when the query result includes the first routing policy, the terminal device performs a routing operation on the routing request by using the first routing policy.
And when the query result does not contain the first routing strategy, the terminal equipment executes the routing instruction, namely, executes routing operation on the routing request by using the second routing strategy.
The embodiment in fig. 3 is that the terminal device actively sends out the query message to the server, but in another embodiment of the present specification, the server may also actively send the update message to the terminal device. Specifically, as shown in fig. 4, fig. 4 is a schematic diagram of a routing method in another embodiment of this specification.
Step S400, after updating the routing strategy, the server sends an updating message to the terminal equipment, wherein the updating message comprises a keyword and a first routing strategy corresponding to the keyword.
The server may be any idle time in the running process of the terminal device, may also be any idle time in the running process of the application program, and may also be the time when the terminal device starts the application program.
Step S402, the terminal equipment receives the updating message.
In an embodiment of the present specification, the terminal device may store a keyword included in the update message and a first routing policy corresponding to the keyword in a routing update database of the terminal device.
In another embodiment of the present specification, after receiving the update message, the terminal device may select whether to receive the first routing policy. And when the terminal equipment selects to receive the first routing strategy, storing the keyword and the first routing strategy corresponding to the keyword into a routing update database of the terminal equipment. And when the terminal equipment selects not to receive the first routing strategy, ignoring the first routing strategy in the updating message.
Step S404, the terminal device determines a first routing strategy corresponding to the keyword from the routing update database according to the keyword.
Specifically, if the terminal device receives the first routing policy, when the terminal device receives the routing request, the first routing policy corresponding to the keyword is determined from the routing update database according to the keyword.
If the terminal device ignores the first routing policy in the update message, then when the terminal device receives the routing request, the step S303 is executed.
In another embodiment of this specification, when an updated routing policy exists on the server, an update message is sent to the terminal device to notify that the updated routing policy exists on the server, and the terminal device executes the step S303 after receiving the update message.
Next, the actions performed by the terminal device after receiving the routing request will be described in detail with an embodiment of web page hopping. As shown in fig. 5, fig. 5 is a schematic flowchart of a web page jump implemented according to the routing method in an embodiment of the present specification.
In the second routing policy, a routing operation corresponding to one routing request 1 jumps from the webpage pageA to the webpage pageB. Due to the requirement of on-line development or when solving an on-line problem, when the terminal device receives the route request 1, the routing operation corresponding to the route request 1 needs to be jumped from the webpage pageA to the webpage c. A routing policy may be updated on the server, where the updated routing policy is a first routing policy, and in the first routing policy, a routing operation corresponding to the routing request 1 jumps from the webpage pageA to the webpage pageC.
When the terminal device receives the routing request 1, in the current technical scheme, the terminal device can jump from the webpage pageA to the webpage b only according to the preset second routing policy.
In the technical solution of this specification, the terminal device sends an inquiry message to the server to inquire whether an updated routing policy exists on the server, if the updated routing policy exists on the server, the updated routing policy is the first routing policy, the server sends the first routing policy to the terminal device, and after receiving the first routing policy, the terminal device jumps from the webpage pageA to the webpage c according to the first routing policy. Therefore, the requirement of on-line development is realized, and the real-time repair of on-line problems is met.
An embodiment of the present specification further provides a routing device, as shown in fig. 6, and fig. 6 is a schematic structural diagram of the routing device in an embodiment of the present specification. Specifically, the routing device includes: an obtaining module 602, a control processing module 604, and an executing module 606, where the obtaining module 602 obtains a routing request, and the routing request includes a keyword; the control processing module 604 determines, according to the keyword, a first routing policy corresponding to the keyword, where the first routing policy is found by the server according to the keyword; the executing module 606 executes a routing operation on the routing request using the first routing policy.
The control processing module 604 further includes a sending module 6040, a receiving module 6044, and a processing module 6042. The control processing module 604 determines, according to the keyword, a first routing policy corresponding to the keyword, including: firstly, the server receives the query message sent by the sending module 6040, and searches whether an updated routing policy exists according to the keyword in the query message, where when the updated routing policy exists, the updated routing policy is a first routing policy, and the server sends a query result to the terminal device, where the query result includes the keyword and the first routing policy corresponding to the keyword; the receiving module 6044 receives the query result sent by the server; the processing module 6042 determines, according to the keyword, a first routing policy corresponding to the keyword from the query result.
When the server does not find an updated routing policy, the server sends an inquiry result to the terminal device, where the inquiry result includes a routing instruction, the receiving module 6044 receives the inquiry result sent by the server, and the processing module 6042 executes the routing instruction in the inquiry result, where the routing instruction includes: and executing the routing operation on the received routing request according to the second routing strategy.
If the first routing policy includes version information of an application program, the processing module 6042 matches the version information of the application program corresponding to the routing request with the version information of the application program included in the first routing policy; if the matching is successful, the executing module 606 executes a routing operation on the routing request by using the first routing policy. Otherwise, the executing module 606 executes a routing operation on the routing request according to the second routing policy. If the first routing policy includes version information of an operating system, the processing module 6042 matches the version information of the operating system of the terminal device with the version information of the operating system included in the first routing policy; if the matching is successful, the executing module 606 executes a routing operation on the routing request by using the first routing policy. Otherwise, the executing module 606 executes a routing operation on the routing request according to the second routing policy.
It should be noted that the routing device provided in the embodiment of the present disclosure may be implemented by software, or may be implemented by hardware, and is not limited specifically herein. When an online problem occurs or a new service requirement needs to be supported, the updated routing strategy aiming at the online problem and the service requirement can be uploaded to the server, the terminal equipment acquires the updated routing strategy from the server in the operation process, and performs routing operation on the routing request through the updated routing strategy, so that the online problem is solved and the support of the new service requirement is realized.
Based on the same inventive concept, an embodiment of this specification further provides a routing device, including: at least one memory and at least one processor, wherein: the memory has a program stored therein and is configured to be executed by the processor to: obtaining a routing request, wherein the routing request comprises a keyword; determining a first routing strategy corresponding to the keyword according to the keyword, wherein the first routing strategy is searched by a server according to the keyword; and executing routing operation on the routing request by utilizing the first routing strategy.
The specific implementation manner of the processor described in the embodiments of this specification may adopt the implementation manner described above, and is not described here any more.
In another embodiment in this specification, a routing device is further provided, as shown in fig. 7, and fig. 7 is a schematic structural diagram of the routing device in the further embodiment in this specification. The routing device comprises: the system comprises a receiving module 705, a processing module 703 and a sending module 701, wherein the receiving module 705 receives a query message sent by a terminal device, and the query message contains a keyword; the processing module 703 searches whether a first routing policy corresponding to the keyword exists according to the keyword; when the first routing policy is found, the sending module 701 sends the first routing policy to the terminal device, and the terminal device performs a routing operation on the received routing request according to the first routing policy.
The processing module 703, according to the keyword, searching whether a first routing policy corresponding to the keyword exists includes: the processing module 703 searches whether an updated routing policy exists according to the keyword; and if so, determining the updated routing strategy as a first routing strategy corresponding to the keyword.
When the server does not find the first routing policy, the sending module 701 sends a query result to the terminal device, where the query result is used to inform that the terminal device does not find the first routing policy, so that the terminal device executes a routing operation on the received routing request according to a preset second routing policy.
The routing method performed by the routing device provided in the embodiments of the present specification is the same as the routing method described above, and is not described herein again.
It should be noted that the routing device provided in the embodiment of the present disclosure may be implemented by software, or may be implemented by hardware, and is not limited specifically herein. When an online problem occurs or a new service requirement needs to be supported, the updated routing strategy aiming at the online problem and the service requirement can be uploaded to the server, the terminal equipment acquires the updated routing strategy from the server in the operation process, and executes routing operation on the routing request through the updated routing strategy, so that the online problem is solved and the support on the new service requirement is realized.
Based on the same inventive concept, an embodiment of this specification further provides a routing device, including: at least one memory and at least one processor, wherein: the memory has a program stored therein and is configured to be executed by the processor to: receiving an inquiry message sent by terminal equipment, wherein the inquiry message contains a keyword; searching whether a first routing strategy corresponding to the keyword exists or not according to the keyword; and under the condition that the first routing strategy is found, sending the first routing strategy to the terminal equipment, so that the terminal equipment executes routing operation on the received routing request according to the first routing strategy.
The specific implementation manner of the processor described in the embodiments of this specification may adopt the implementation manner described above, and is not described here any more.
In another embodiment of this specification, a routing system is further provided, as shown in fig. 8, and fig. 8 is a schematic structural diagram of the routing system in another embodiment of this specification. The system comprises: the terminal device 802 sends a query message to the server 804, the query message includes a keyword, receives a first routing policy corresponding to the keyword, which is found by the server 804 according to the keyword, and executes a routing operation on a received routing request according to the first routing policy.
The server 804 receives the query message sent by the terminal device 802, searches whether a first routing policy corresponding to the keyword exists according to the keyword contained in the query message, and sends the first routing policy to the terminal device under the condition that the first routing policy is found.
In an embodiment of the present specification, the terminal device includes, but is not limited to: smart phones, personal computers, notebook computers, and tablet computers.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be 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, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, 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 thus be considered 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.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The application 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, 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.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.