Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Referring to fig. 1, fig. 1 is a flowchart illustrating a connection control method for an external device according to an embodiment of the invention. The connection control method for the external equipment is applied to USB connection equipment, wherein the USB connection equipment comprises a USB controller, a USB hub and a plurality of USB interfaces, the USB interfaces are respectively connected with the USB hub, and the USB controller is in communication connection with the USB hub to realize data information transmission.
Fig. 1 is a flow chart of a connection control method for an external device according to an embodiment of the present invention. As shown in fig. 1, the method includes the following steps S110 to S150.
S110, if the US B hub detects that the USB plug of the external device is plugged into any USB interface and establishes USB connection, an inserting signal is obtained, and the inserting signal is sent to the USB controller after delay for a preset time length.
In this embodiment, the external device may be plugged into any one of the USB interfaces by using a USB cable, and a connection relationship is established between the USB interfaces and the USB connection device, where the USB interfaces are respectively connected to the USB hub, and the USB hub may supply power to the external device through the USB interfaces. If the USB hub obtains the insertion signal, the delay is required to be 0.1 seconds, so that after the insertion operation is completed and the USB hub is in a normal working state, the insertion signal is sent to the USB controller, and the delay time length can be set according to the use requirement and is required to be greater than 0.1 seconds.
In one embodiment, after step S110, the method further includes:
and if the USB hub detects that the USB plug of the external equipment is disconnected with the USB connection equipment, acquiring a disconnection signal and sending the disconnection signal to the USB controller, and the USB controller receives the disconnection signal and updates topology information according to the disconnection signal.
In this embodiment, the plurality of USB interfaces are connected to the USB hub, and if the USB plug of the external device is disconnected from the USB connection device, the USB hub obtains a disconnection signal, at this time, the USB hub stops supplying power to the USB interface disconnected from the external device, and sends the disconnection signal to the USB controller, and the USB controller may update topology information according to the received disconnection signal, so that loss of electric energy may be effectively avoided.
S120, the USB controller sends out a corresponding reset instruction according to the insertion signal and transmits the reset instruction to a target USB interface through the USB hub so that the external device can execute reset operation after responding to the reset instruction, wherein the target USB interface is a USB interface plugged with the external device.
In this embodiment, the USB controller sends a corresponding reset instruction according to the insertion signal, and sends the reset instruction to the USB hub, where the USB hub receives the reset instruction and transmits the reset instruction to a target USB interface, and the reset signal transmitted to the target USB interface lasts for 0.01 seconds, so that the external device can successfully respond to the reset instruction and then successfully execute the reset operation, and the target USB interface is a USB interface plugged with the external device. If the external device successfully executes the reset operation, the external device is shifted to a default state, and the external device can respond to the default address. Before the external device responds to the reset instruction and executes the reset operation, the USB hub can supply power to the external device through the USB interface, but the supplied power is smaller than 100mA, and at the moment, the external device is in a power-on state.
In one embodiment, after step S120, the method further includes:
The USB controller monitors a reset result after the external device executes the reset operation through the target USB interface, and judges whether the external device needs to execute the reset operation again according to the reset result.
In this embodiment, the USB controller monitors, through the target USB interface, a reset result after the external device performs the reset operation, and if the USB controller detects that the external device does not successfully perform the reset operation, the USB controller reissues a corresponding reset instruction and transmits the reset instruction to the target USB interface through the USB hub, where the USB hub continues the reset signal transmitted to the target USB interface for 0.01 seconds, so that the external device can smoothly respond to the reset instruction and then perform the reset operation.
S130, the USB controller allocates a unique device address for the external device and sends the unique device address to the external device through the USB hub so as to enable the external device to be in an addressing state.
In this embodiment, the USB controller sends a reset instruction, and transmits the reset instruction to the target USB interface through the USB hub, so that the external device performs a reset operation after responding to the reset instruction, and if the external device successfully performs the reset operation, the default state is shifted, and at this time, the USB controller may assign a unique device address to the external device, so that the external device shifts to the addressing state.
And S140, the USB controller reads configuration information from the external equipment through the target USB interface, determines power supply configuration parameters corresponding to the configuration information and sends the power supply configuration parameters to the USB hub.
In this embodiment, the external device is turned into an addressing state, the USB controller may read configuration information from the external device through the target USB interface, and when the number of configurations is n, the configuration information is read from configuration 0 to configuration n-1, and the power supply configuration parameters required by the external device are determined by analyzing the read configuration information, and the power supply configuration parameters are sent to the USB hub.
In one embodiment, the configuration information includes a device descriptor, a configuration descriptor, an interface descriptor, and an endpoint descriptor, as shown in fig. 2, step S140 includes:
s1401, the USB controller reads a device descriptor from the external device, wherein the device descriptor defines various configurations;
S1402, the USB controller reads a configuration descriptor from the device descriptor, wherein the configuration descriptor defines a plurality of interfaces;
S1403, the USB controller reads an interface descriptor from the configuration descriptor, wherein the interface descriptor defines a plurality of endpoints in an interface;
S1404, the USB controller reads an endpoint descriptor from the interface descriptor.
In this embodiment, the configuration information includes a device descriptor, a configuration descriptor, an interface descriptor and an endpoint descriptor, where the device descriptor describes overall information of the external device, corresponds to the external device itself one by one, and one external device can only have one device descriptor, one external device can have multiple configurations, different configurations correspond to different working states, each configuration must have one configuration descriptor, the interface descriptor is used to describe an interface, and includes characteristics of the interface, such as endpoint number, etc., the endpoint descriptor is used to describe endpoint number, direction, endpoint transmission type, etc., reading of the device descriptor in the device information is layer by layer, the configuration descriptor can be known through the device descriptor, the interface descriptor can be known through the configuration descriptor, and the endpoint descriptor can be known through the interface descriptor.
In one embodiment, as shown in fig. 3, step S140 further includes:
S1411, determining that the target USB interface corresponds to an actual net data load according to the device descriptor;
s1412, determining power supply matching information corresponding to the target USB interface according to the parameters in the configuration descriptor;
s1413, determining endpoint transmission information corresponding to the target USB interface according to the interface descriptor;
s1414, obtaining matched power supply configuration parameters from a preset power supply strategy table according to the actual net data load, the power supply matching information and the endpoint transmission information, and sending the matched power supply configuration parameters to the USB hub.
In this embodiment, the configuration information includes a device descriptor, a configuration descriptor, an interface descriptor and an endpoint descriptor, where the device descriptor describes overall information of the external device, corresponds to the external device itself one by one, and one external device can only have one device descriptor, one external device can have multiple configurations, different configurations correspond to different working states, each configuration must have one configuration descriptor, the interface descriptor is used to describe an interface, and includes characteristics of the interface, such as endpoint number, etc., the endpoint descriptor is used to describe endpoint number, direction, endpoint transmission type, etc., reading of the descriptor is layer by layer, the configuration descriptor can be known through the device descriptor, the interface descriptor can be known through the configuration descriptor, and the endpoint descriptor can be known through the interface descriptor.
The USB controller reads a device descriptor from the external device, determines that the target USB interface corresponds to an actual net data load according to the device descriptor, reads a configuration descriptor from the device descriptor, and determines power supply matching information corresponding to the target USB interface according to parameters in the configuration descriptor, wherein the power supply matching information comprises a power supply mode and a current demand of the external device, the USB controller reads an interface descriptor from the configuration descriptor, and determines endpoint transmission information corresponding to the target USB interface according to the interface descriptor, namely reads the endpoint descriptor from the interface descriptor.
In an embodiment, the power supply configuration parameter further includes an interface type, and after step S1411, further includes:
And the USB controller determines the corresponding interface type of the target USB interface according to the actual net data load.
In this embodiment, the external device may be connected to the USB controller through the USB interface to implement data information transmission, where the USB interface types include USB 1.0, USB 2.0, and USB 3.0, the USB 1.0 data information transmission rate is 12mbps, the USB 2.0 data information transmission rate is 480mbps, and the USB 3.0 data information transmission rate is 5.0Gbps, and the USB controller reads the device descriptor from the external device, and determines that the target USB interface corresponds to an actual payload according to the device descriptor, and because the USB 1.0, USB 2.0, and USB 3.0 data information transmission rates are different, the USB controller may determine that the target USB interface corresponds to the interface type according to the actual payload.
In one embodiment, after step S1413, further comprising:
and acquiring matched power supply configuration parameters from a preset power supply strategy table according to the actual net data load, the power supply matching information, the interface type and the endpoint transmission information, and sending the matched power supply configuration parameters to the USB hub.
In this embodiment, the interface types are different, the current requirements corresponding to the interface types are different, and according to the actual net data load, the power supply matching information, the interface types, and the endpoint transmission information, matched power supply configuration parameters can be obtained from a preset power supply policy table, for example, the power supply mode of the external device is self-powered, the interface type is USB2.0, the endpoint transmission type is isochronous, and the power supply configuration parameters obtained by matching from the power supply policy table are 4v and 350ma.
And S150, the USB hub supplies power to the external equipment according to the received power supply configuration parameters.
In this embodiment, the USB controller obtains the power supply configuration parameters by reading the configuration information, and sends the power supply parameters to the USB hub, where the USB hub may supply power to the external device according to the received power supply configuration parameters, and the USB controller may monitor the external device through the USB interface, and if a problem in communication of the external device is detected, the USB controller may stop supplying power to the external device by sending an instruction to the USB hub, thereby achieving an avoidance effect, effectively avoiding loss of electric energy, and improving a success rate of connection between multiple external devices while ensuring communication quality.
In summary, in the connection process with the external device, the embodiment of the invention can ensure the communication quality and improve the success rate of the connection of multiple external devices by reading the device information and configuring the external device according to the read device information.
Fig. 4 is a schematic block diagram of a connection control apparatus for an external device according to an embodiment of the present invention. As shown in fig. 4, the present invention also provides a connection control apparatus for an external device, corresponding to the above connection control method for an external device. The connection control device for the external equipment comprises a unit for executing the connection control method for the external equipment, and the device can be configured in USB connection equipment, wherein the USB connection equipment comprises a USB controller, a USB hub and a plurality of USB interfaces, the USB interfaces are respectively connected with the USB hub, and the USB controller is in communication connection with the USB hub to realize data information transmission. Specifically, referring to fig. 4, the connection control apparatus 700 for an external device includes a first processing unit 701, a second processing unit 702, a third processing unit 703, a fourth processing unit 704, and a fifth processing unit 705.
The first processing unit 701 is configured to, if the USB hub detects that a USB plug of an external device is plugged into any one of the USB interfaces and establishes a USB connection, obtain an insertion signal, delay a preset duration, and send the insertion signal to the USB controller;
The second processing unit 702 is configured to send a corresponding reset instruction according to the insertion signal by using the USB controller, and transmit the reset instruction to a target USB interface through the USB hub, so that the external device executes a reset operation after responding to the reset instruction, where the target USB interface is a USB interface plugged with the external device;
A third processing unit 703, configured to allocate a unique device address to the external device by using the USB controller and send the unique device address to the external device through the USB hub, so that the external device is turned into an addressed state;
A fourth processing unit 704, configured to read, by the USB controller, configuration information from the external device through the target USB interface, and determine a power supply configuration parameter corresponding to the configuration information, and send the power supply configuration parameter to the USB hub;
And a fifth processing unit 705, configured to power the external device according to the received power supply configuration parameter by using the USB hub.
In some embodiments, after executing the step of obtaining the insertion signal and delaying the preset time period and then sending the insertion signal to the USB controller if the USB hub detects that the USB plug of the external device is plugged into any one of the USB interfaces and establishes the USB connection, the first determining unit 701 is further configured to:
and if the USB hub detects that the USB plug of the external equipment is disconnected with the USB connection equipment, acquiring a disconnection signal and sending the disconnection signal to the USB controller, and the USB controller receives the disconnection signal and updates topology information according to the disconnection signal.
In some embodiments, after executing the step that the USB controller sends a corresponding reset instruction according to the insert signal and transmits the reset instruction to the target USB interface through the USB hub, the second processing unit 702 is further configured to:
The USB controller monitors a reset result after the external device executes the reset operation through the target USB interface, and judges whether the external device needs to execute the reset operation again according to the reset result.
In some embodiments, the configuration information includes a device descriptor, a configuration descriptor, an interface descriptor, and an endpoint descriptor, and the fourth processing unit 704 is specifically configured to, when executing the step of reading, by the USB controller, the configuration information from the external device through the target USB interface:
The USB controller reads device descriptors from the external device, wherein the device descriptors define various configurations, the USB controller reads configuration descriptors from the device descriptors, wherein the configuration descriptors define various interfaces, the USB controller reads interface descriptors from the configuration descriptors, wherein the interface descriptors define a plurality of endpoints in the interface, and the USB controller reads endpoint descriptors from the interface descriptors.
In some embodiments, the fourth processing unit 704 is specifically configured to, when performing the step of determining the power supply configuration parameter corresponding to the configuration information:
The method comprises the steps of determining an actual net data load corresponding to a target USB interface according to a device descriptor, determining power supply matching information corresponding to the target USB interface according to parameters in a configuration descriptor, determining endpoint transmission information corresponding to the target USB interface according to the interface descriptor, obtaining matched power supply configuration parameters from a preset power supply strategy table according to the actual net data load, the power supply matching information and the endpoint transmission information, and sending the matched power supply configuration parameters to a USB hub.
In some embodiments, the power supply configuration parameters further include an interface type, and the fourth processing unit 704 is further configured to, after performing the step of determining that the target USB interface corresponds to an actual net data load according to the configuration descriptor:
And the USB controller determines the corresponding interface type of the target USB interface according to the actual net data load.
In some embodiments, after performing the step of determining, according to the interface descriptor, an endpoint transmission information corresponding to the target USB interface, the fourth processing unit 704 is further configured to:
and acquiring matched power supply configuration parameters from a preset power supply strategy table according to the actual net data load, the power supply matching information, the interface type and the endpoint transmission information, and sending the matched power supply configuration parameters to the USB hub.
It should be noted that, as those skilled in the art can clearly understand, the specific implementation process of the connection control device and each unit for the external device may refer to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, the detailed description is omitted herein.
The connection control apparatus for an external device described above may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 5.
Referring to fig. 5, fig. 5 is a schematic block diagram of an electronic device according to an embodiment of the present invention. The electronic device 800 may be a USB connection device, where the USB connection device includes a USB controller, a USB hub, and a plurality of USB interfaces, where the USB interfaces are respectively connected to the USB hub, and the USB controller is in communication connection with the USB hub to implement transmission of data information.
With reference to fig. 5, the electronic device 800 includes a processor 802, a memory, and a network interface 805, which are connected by a system bus 801, wherein the memory may include a non-volatile storage medium 803 and an internal memory 804.
The nonvolatile storage medium 803 may store an operating system 8031 and a computer program 8032. The computer program 8032 comprises program instructions which, when executed, cause the processor 802 to perform a connection control method for an external device.
The processor 802 is operable to provide computing and control capabilities to support the operation of the overall electronic device 800.
The internal memory 804 provides an environment for the execution of the computer program 8032 in the non-volatile storage medium 803, which computer program 8032, when executed by the processor 802, causes the processor 802 to perform a connection control method for an external device.
The network interface 805 is used for network communication with other devices. It will be appreciated by those skilled in the art that the structure shown in fig. 5 is merely a block diagram of a portion of the structure associated with the present inventive arrangements and is not limiting of the electronic device 800 to which the present inventive arrangements are applied, and that a particular electronic device 800 may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 802 is configured to execute a computer program 8032 stored in the memory, so as to implement the following steps:
If the USB hub detects that the USB plug of the external equipment is plugged into any USB interface and establishes USB connection, an inserting signal is obtained, and the inserting signal is sent to the USB controller after delay for a preset time length; the USB controller sends a corresponding reset instruction according to the insertion signal and transmits the reset instruction to a target USB interface through the USB hub so that the external device responds to the reset instruction and then executes reset operation, wherein the target USB interface is a USB interface plugged with the external device, the USB controller distributes a unique device address for the external device and transmits the unique device address to the external device through the USB hub so that the external device is in an addressing state, the USB controller reads configuration information from the external device through the target USB interface and determines power supply configuration parameters corresponding to the configuration information to transmit the configuration information to the USB hub, and the USB hub supplies power to the external device according to the received power supply configuration parameters.
In some embodiments, after implementing the step of obtaining the insertion signal and delaying the preset time period and then sending the signal to the USB controller if the USB hub detects that the USB plug of the external device is plugged into any one of the USB interfaces and establishes the USB connection, the processor 802 further implements the following steps:
and if the USB hub detects that the USB plug of the external equipment is disconnected with the USB connection equipment, acquiring a disconnection signal and sending the disconnection signal to the USB controller, and the USB controller receives the disconnection signal and updates topology information according to the disconnection signal.
In some embodiments, after implementing the step of transmitting the corresponding reset instruction by the USB controller according to the insert signal and transmitting the reset instruction to the target USB interface through the USB hub, the processor 802 further implements the following steps:
The USB controller monitors a reset result after the external device executes the reset operation through the target USB interface, and judges whether the external device needs to execute the reset operation again according to the reset result.
In some embodiments, the configuration information includes a device descriptor, a configuration descriptor, an interface descriptor, and an endpoint descriptor, and when implementing the step of reading, by the USB controller, the configuration information from the external device through the target USB interface, the processor 802 specifically implements the following steps:
The USB controller reads device descriptors from the external device, wherein the device descriptors define various configurations, the USB controller reads configuration descriptors from the device descriptors, wherein the configuration descriptors define various interfaces, the USB controller reads interface descriptors from the configuration descriptors, wherein the interface descriptors define a plurality of endpoints in the interface, and the USB controller reads endpoint descriptors from the interface descriptors.
In some embodiments, when implementing the step of determining the power supply configuration parameters corresponding to the configuration information, the processor 802 specifically implements the following steps:
The method comprises the steps of determining an actual net data load corresponding to a target USB interface according to a device descriptor, determining power supply matching information corresponding to the target USB interface according to parameters in a configuration descriptor, determining endpoint transmission information corresponding to the target USB interface according to the interface descriptor, obtaining matched power supply configuration parameters from a preset power supply strategy table according to the actual net data load, the power supply matching information and the endpoint transmission information, and sending the matched power supply configuration parameters to a USB hub.
In some embodiments, the power configuration parameters further include an interface type, and the processor 802 further implements the following steps after implementing the step of determining that the target USB interface corresponds to an actual net data load according to the configuration descriptor:
And the USB controller determines the corresponding interface type of the target USB interface according to the actual net data load.
In some embodiments, after implementing the step of determining, according to the interface descriptor, that the endpoint corresponding to the target USB interface transmits information, the processor 802 further implements the following steps:
and acquiring matched power supply configuration parameters from a preset power supply strategy table according to the actual net data load, the power supply matching information, the interface type and the endpoint transmission information, and sending the matched power supply configuration parameters to the USB hub.
It should be appreciated that in embodiments of the present invention, the Processor 802 may be a central processing unit (Central Processing Unit, CPU), the Processor 802 may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL processors, DSPs), application SPECIFIC INTEGRATED Circuits (ASICs), off-the-shelf Programmable gate arrays (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that all or part of the flow in a method embodying the above described embodiments may be accomplished by computer programs instructing the relevant hardware. The computer program comprises program instructions, and the computer program can be stored in a storage medium, which is a computer readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. The program instructions, when executed by the processor, cause the processor to perform the steps of:
If the USB hub detects that the USB plug of the external equipment is plugged into any USB interface and establishes USB connection, an inserting signal is obtained, and the inserting signal is sent to the USB controller after delay for a preset time length; the USB controller sends a corresponding reset instruction according to the insertion signal and transmits the reset instruction to a target USB interface through the USB hub so that the external device responds to the reset instruction and then executes reset operation, wherein the target USB interface is a USB interface plugged with the external device, the USB controller distributes a unique device address for the external device and transmits the unique device address to the external device through the USB hub so that the external device is in an addressing state, the USB controller reads configuration information from the external device through the target USB interface and determines power supply configuration parameters corresponding to the configuration information to transmit the configuration information to the USB hub, and the USB hub supplies power to the external device according to the received power supply configuration parameters.
In an embodiment, after executing the program instruction to implement the step of obtaining an insertion signal and delaying a preset time period and then sending the insertion signal to the USB controller if the USB hub detects that the USB plug of the external device is plugged into any one of the USB interfaces and establishes a USB connection, the processor further implements the following steps:
and if the USB hub detects that the USB plug of the external equipment is disconnected with the USB connection equipment, acquiring a disconnection signal and sending the disconnection signal to the USB controller, and the USB controller receives the disconnection signal and updates topology information according to the disconnection signal.
In one embodiment, after executing the program instructions to implement the step of sending, by the USB controller, a corresponding reset instruction according to the insert signal and transmitting the reset instruction to the target USB interface through the USB hub, the processor further implements the following steps:
The USB controller monitors a reset result after the external device executes the reset operation through the target USB interface, and judges whether the external device needs to execute the reset operation again according to the reset result.
In an embodiment, the configuration information includes a device descriptor, a configuration descriptor, an interface descriptor, and an endpoint descriptor, and when the processor executes the program instructions to implement the step of reading, by the USB controller, the configuration information from the external device through the target USB interface, the following steps are specifically implemented:
The USB controller reads device descriptors from the external device, wherein the device descriptors define various configurations, the USB controller reads configuration descriptors from the device descriptors, wherein the configuration descriptors define various interfaces, the USB controller reads interface descriptors from the configuration descriptors, wherein the interface descriptors define a plurality of endpoints in the interface, and the USB controller reads endpoint descriptors from the interface descriptors.
In one embodiment, the processor, when executing the step of determining the power supply configuration parameter corresponding to the configuration information, specifically implements the following steps:
The method comprises the steps of determining an actual net data load corresponding to a target USB interface according to a device descriptor, determining power supply matching information corresponding to the target USB interface according to parameters in a configuration descriptor, determining endpoint transmission information corresponding to the target USB interface according to the interface descriptor, obtaining matched power supply configuration parameters from a preset power supply strategy table according to the actual net data load, the power supply matching information and the endpoint transmission information, and sending the matched power supply configuration parameters to a USB hub.
In an embodiment, the power supply configuration parameters further include an interface type, and the processor further implements the following steps after executing the program instructions to implement the step of determining that the target USB interface corresponds to an actual net data load according to the configuration descriptor:
And the USB controller determines the corresponding interface type of the target USB interface according to the actual net data load.
In an embodiment, after executing the step of determining, according to the interface descriptor, the endpoint transmission information corresponding to the target USB interface, the processor further implements the following steps:
and acquiring matched power supply configuration parameters from a preset power supply strategy table according to the actual net data load, the power supply matching information, the interface type and the endpoint transmission information, and sending the matched power supply configuration parameters to the USB hub.
The storage medium may be a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, or other various computer-readable storage media that can store program codes.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be combined, divided and deleted according to actual needs. In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The integrated unit may be stored in a storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.