Disclosure of Invention
The object of the present invention is to solve at least to some extent one of the above mentioned technical problems.
To this end, a first object of the present invention is to provide a control method of a ZigBee network. The method can realize the identification of the product network information and the identification of the area position information by adopting Bluetooth for auxiliary communication, simplifies the operation steps, greatly shortens the network access time of the equipment, thereby efficiently finishing the functions of networking, pairing, binding and the like, and simplifying the installation and maintenance cost of the equipment.
The second purpose of the invention is to provide a control system of a ZigBee network.
In order to achieve the above object, a method for controlling a ZigBee network according to an embodiment of the first aspect of the present invention includes: setting network distribution configuration information aiming at a plurality of devices in a mobile terminal according to network distribution requirements, wherein the mobile terminal is provided with a first Bluetooth module, and the devices are provided with a ZigBee module and a second Bluetooth module; the network division configuration information is sent to a plurality of gateways and a plurality of devices in a plurality of ZigBee networks through the first Bluetooth module; the gateways construct a plurality of ZigBee networks according to the network division configuration information; the equipment generates ZigBee networking information according to the network division configuration information, and joins a corresponding ZigBee network through the ZigBee module according to the ZigBee networking information; the gateway in the corresponding ZigBee network judges whether the equipment under the gateway is legal or not according to the network distribution configuration information; and if the equipment under the gateway is judged to be legal, the gateway confirms the control authority aiming at the equipment and provides network communication service and control for the equipment.
According to the control method of the ZigBee network, the network division configuration information aiming at a plurality of devices is set in the mobile terminal according to the network division requirement, wherein the mobile terminal is provided with a first Bluetooth module, the devices are provided with a ZigBee module and a second Bluetooth module, the network division configuration information is sent to a plurality of gateways and devices in a plurality of ZigBee networks through the first Bluetooth module, the gateways construct a plurality of ZigBee networks according to the network division configuration information, the devices generate ZigBee networking information according to the network division configuration information, the ZigBee networking information is added into the corresponding ZigBee network through the ZigBee module according to the ZigBee networking information, the gateway in the corresponding ZigBee network judges whether the devices under the gateway are legal or not according to the network division configuration information, if so, the gateway confirms the control authority aiming at the devices and provides network communication service and control for the devices, namely, the identification of product network information and the identification of area position information can be realized through auxiliary communication by adopting Bluetooth, the method simplifies the operation steps, greatly shortens the network access time of the equipment, efficiently completes the functions of networking, pairing, binding and the like, and simplifies the installation and maintenance cost of the equipment.
According to an embodiment of the present invention, while setting the network distribution configuration information for a plurality of devices in the mobile terminal according to the network distribution requirements, the method further includes: setting information for the plurality of devices in the mobile terminal according to a pairing requirement or a grouping requirement; sending the setting information to the plurality of devices through the first Bluetooth module; after the plurality of devices complete networking communication, the plurality of devices respectively send the setting information to corresponding gateways; and the corresponding gateway generates a pairing table or a grouping control logic according to the setting information, and performs pairing or grouping control on corresponding equipment according to the pairing table or the grouping control logic.
According to an embodiment of the present invention, the determining, by the gateway in the corresponding ZigBee network according to the subnet configuration information, whether the device under the gateway is legal specifically includes: the gateway judges whether the networking configuration information is matched with the ZigBee networking information in the equipment under the gateway; and if the equipment is matched with the gateway, the gateway judges that the equipment under the gateway is legal.
According to an embodiment of the invention, the method further comprises: and if the equipment under the gateway is judged to be illegal, the gateway sends a leaving notification message to the equipment so that the equipment is disconnected from the gateway when receiving the leaving notification message.
According to one embodiment of the invention, the group control logic includes single control, group control and scenario.
According to an embodiment of the present invention, when the group control logic is the group control or the scene, the method further comprises: and the corresponding gateway generates the ID of the group control or the ID of the scene according to the setting information, and performs pairing or grouping control on corresponding equipment according to the ID of the group control or the ID of the scene, the pairing table or the grouping control logic.
According to an embodiment of the present invention, after the corresponding gateway generates a pairing table or a packet control logic according to the setting information, the method further includes: and the corresponding gateway transmits the grouping control logic to corresponding equipment for storage.
According to one embodiment of the invention, the device includes a light bulb and a wireless switch.
In order to achieve the above object, a control system of a ZigBee network according to an embodiment of the second aspect of the present invention includes: the ZigBee network comprises a mobile terminal, a plurality of devices and a plurality of ZigBee networks, wherein the mobile terminal is used for receiving network division configuration information which is set in the mobile terminal by a user according to network division requirements and aims at the devices, the mobile terminal is provided with a first Bluetooth module and sends the network division configuration information to the gateways and the devices in the ZigBee networks through the first Bluetooth module, and the devices are provided with a ZigBee module and a second Bluetooth module; the gateways are used for constructing a plurality of ZigBee networks according to the network division configuration information; the equipment is used for generating ZigBee networking information according to the network division configuration information and adding the ZigBee networking information into a corresponding ZigBee network through the ZigBee module; and the gateway in the corresponding ZigBee network judges whether the equipment under the gateway is legal or not according to the sub-network configuration information, confirms the control authority aiming at the equipment when judging that the equipment under the gateway is legal, and provides network communication service and control for the equipment.
According to the control system of the ZigBee network, the mobile terminal can receive the network division configuration information aiming at a plurality of devices, which is set in the mobile terminal by a user according to the network division requirement, and the network division configuration information is sent to a plurality of gateways and a plurality of devices in a plurality of ZigBee networks through the first Bluetooth module, the plurality of gateways construct a plurality of ZigBee networks according to the network division configuration information, the plurality of devices generate the ZigBee networking information according to the network division configuration information, and are added into the corresponding ZigBee networks through the ZigBee modules according to the ZigBee networking information, the gateways in the corresponding ZigBee networks judge whether the devices under the gateways are legal according to the network division configuration information, and when the devices under the gateways are judged to be legal, the control authority aiming at the devices is confirmed, and network communication service and control are provided for the devices, namely, the identification of product network information and the identification of regional position information can be realized by adopting Bluetooth for auxiliary communication, the method simplifies the operation steps, greatly shortens the network access time of the equipment, efficiently completes the functions of networking, pairing, binding and the like, and simplifies the installation and maintenance cost of the equipment.
According to an embodiment of the present invention, the mobile terminal is further configured to receive setting information for the plurality of devices, which is set in the mobile terminal by a user according to a pairing requirement or a grouping requirement, and send the setting information to the plurality of devices through the first bluetooth module; the plurality of devices are further used for sending the setting information to the corresponding gateways respectively after the plurality of devices complete networking communication; and the corresponding gateway is used for generating a matching table or a grouping control logic according to the setting information and carrying out matching or grouping control on corresponding equipment according to the matching table or the grouping control logic.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
A control method and a control system of a ZigBee network according to an embodiment of the present invention are described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a control method of a ZigBee network according to one embodiment of the present invention. As shown in fig. 1, the control method of the ZigBee network may include:
s101, network distribution configuration information aiming at a plurality of devices is set in the mobile terminal according to network distribution requirements, wherein the mobile terminal is provided with a first Bluetooth module, and the devices are provided with a ZigBee module and a second Bluetooth module.
Further, in embodiments of the present invention, the above-mentioned devices may include, but are not limited to, light bulbs, wireless switches, and the like. It should be noted that the ZigBee module and the second bluetooth module in the device may be integrated into two single chips, respectively, that is, the device may have a ZigBee chip and a second bluetooth chip; in addition, the device may further integrate the ZigBee module and the second bluetooth module into one chip, as shown in fig. 2, which is a hardware block diagram of the device according to the embodiment of the present invention, that is, it is shown that the ZigBee module and the second bluetooth module are integrated together to form a minimum system in the device. It can be understood that the ZigBee module and the second Bluetooth module are integrated into one chip, so that the cost is reduced.
Specifically, a user may set the network splitting configuration information for multiple devices in a mobile terminal (e.g., a mobile APP in the mobile terminal) according to network splitting requirements. In the embodiment of the present invention, the network splitting configuration information may include, for example, information such as an ID (IDentity, identification number) and a name of the ZigBee network to which the device is to join.
S102, the network distribution configuration information is sent to a plurality of gateways and a plurality of devices in a plurality of ZigBee networks through the first Bluetooth module.
Specifically, the mobile terminal can send the network division configuration information to the device through the first bluetooth module of the mobile terminal and the second bluetooth module of the device, and send the network division configuration information to the gateway in the ZigBee network through the first bluetooth module of the mobile terminal and the bluetooth module in the gateway, so that the gateway and the device perform a network division process according to the corresponding network division configuration information. It should be noted that, while the mobile terminal sends the network splitting configuration information to the device and the gateway, the mobile terminal may also store the network splitting configuration information in time, and if necessary, may also import the network splitting configuration information into the background management system for backup use.
S103, the plurality of gateways construct a plurality of ZigBee networks according to the network division configuration information.
Specifically, the gateway may construct a corresponding ZigBee network according to information such as the ZigBee network ID, name, and the like in the subnet configuration information. It is to be understood that the gateway in the embodiment of the present invention is a network coordinator gateway.
And S104, the plurality of devices generate ZigBee networking information according to the network division configuration information, and join the corresponding ZigBee network through the ZigBee module according to the ZigBee networking information.
Specifically, the device can generate ZigBee networking information according to information such as the ZigBee network ID and name in the networking configuration information, and add itself to the corresponding ZigBee network according to the ZigBee networking information.
And S105, judging whether the equipment under the gateway is legal or not by the corresponding gateway in the ZigBee network according to the network distribution configuration information.
Specifically, in the embodiment of the present invention, the gateway may determine whether the device under the gateway is legal by: the gateway can judge whether the sub-network configuration information is matched with ZigBee networking information in equipment under the gateway; if the device is matched with the gateway, the gateway judges that the device under the gateway is legal. That is to say, the gateway can judge whether the network distribution configuration information stored by the gateway is matched with the ZigBee networking information in the equipment under the gateway, and if the network distribution configuration information is matched with the ZigBee networking information, the equipment is judged to be legal, and then legal communication can be allowed.
S106, if the device under the gateway is judged to be legal, the gateway confirms the control authority aiming at the device and provides network communication service and control for the device.
Specifically, when the device under the gateway is judged to be legal, the gateway can confirm that the device has corresponding control authority, and can provide network communication service for the device and perform operations such as network management control and the like.
Optionally, in an embodiment of the present invention, the control method may further include: and if the equipment under the gateway is judged to be illegal, the gateway sends a leaving notification message to the equipment so that the equipment is disconnected from the gateway when receiving the leaving notification message.
It can be seen that the above steps are based on an implementation manner of ZigBee network networking control performed on devices in a multi-ZigBee gateway environment, and the control method of the ZigBee network according to the embodiment of the present invention can also implement a function of pairing or group control performed on the devices. Specifically, in an embodiment of the present invention, as shown in fig. 3, while setting the network distribution configuration information for a plurality of devices in the mobile terminal according to the network distribution requirement, the control method further includes:
s301, setting information aiming at a plurality of devices in the mobile terminal according to the pairing requirement or the grouping requirement.
Specifically, the user may set the setting information for the device in a mobile terminal (e.g., a mobile APP in the mobile terminal) according to the pairing requirement or the grouping requirement. In the embodiment of the present invention, the setting information may include, for example, information such as an ID with which node device the device is to be paired, or an ID of which group the device is to join.
S302, the setting information is sent to a plurality of devices through the first Bluetooth module.
Specifically, the mobile terminal may transmit the setting information to the device through its own first bluetooth module and a second bluetooth module of the device.
And S303, after the plurality of devices complete networking communication, the plurality of devices respectively send the setting information to the corresponding gateways.
S304, the corresponding gateway generates a matching table or a grouping control logic according to the setting information, and performs matching or grouping control on the corresponding equipment according to the matching table or the grouping control logic.
For example, assuming that the setting information of the device 1 may include that the device 1 is to be paired with the device 3, and the setting information of the device 2 may include that the device 2 is to join the group 3, the gateway may generate a pairing table according to the setting information of the device 1, the pairing table may have a pairing relationship between the device 1 and the device 3, and the gateway may also generate a group control logic according to the setting information of the device 2, and the group 3 in the group control logic may have an ID of the device 2, for example. The gateway may then pair or group control the respective devices according to the pairing table or group control logic. In the embodiment of the present invention, the pairing relationship may be one-to-one, or one-to-many, and other various combinations (such as single control, group control, and scene).
Further, in embodiments of the present invention, the group control logic may include, but is not limited to, single control, group control, and scenario, among others. In an embodiment of the present invention, when the group control logic is a group control or a scene, the control method further includes: and the corresponding gateway generates the ID of the group control or the ID of the scene according to the setting information, and performs pairing or grouping control on corresponding equipment according to the ID of the group control or the ID of the scene, a pairing table or grouping control logic.
More specifically, when the packet control logic for setting an information schedule sent by bluetooth communication is a group control or a scene, the gateway may form a group control ID or a scene ID for storage management, and may issue the group control ID or the scene ID to a corresponding device for storage, and may perform pairing or packet control on the corresponding device according to the group control ID or the scene ID, a pairing table, or the packet control logic, so that efficient coordination may be implemented by determining the group control ID or the scene ID during communication, and network delay is avoided.
Optionally, in an embodiment of the present invention, after the corresponding gateway generates the pairing table or the packet control logic according to the setting information, the control method further includes: and the corresponding gateway transmits the grouping control logic to the corresponding equipment for storage. Specifically, after the corresponding gateway generates the pairing table or the group control logic according to the setting information, the gateway may also issue various group control logics formed by the setting information to the corresponding device for storage, and the gateway also stores the group control logic. Therefore, the control relationship can be conveniently recovered when the equipment or the gateway is powered off.
Optionally, in an embodiment of the present invention, when a node device of a ZigBee network (such as a room or a home) changes or needs to modify a pairing relationship, bluetooth pairing and configuration may be performed again at any time, so that a control relationship of other pairing nodes may not be affected, and other ZigBee networks may not be affected.
According to the control method of the ZigBee network, the network division configuration information aiming at a plurality of devices is set in the mobile terminal according to the network division requirement, wherein the mobile terminal is provided with a first Bluetooth module, the devices are provided with a ZigBee module and a second Bluetooth module, the network division configuration information is sent to a plurality of gateways and devices in a plurality of ZigBee networks through the first Bluetooth module, the gateways construct a plurality of ZigBee networks according to the network division configuration information, the devices generate ZigBee networking information according to the network division configuration information, the ZigBee networking information is added into the corresponding ZigBee network through the ZigBee module according to the ZigBee networking information, the gateway in the corresponding ZigBee network judges whether the devices under the gateway are legal or not according to the network division configuration information, if so, the gateway confirms the control authority aiming at the devices and provides network communication service and control for the devices, namely, the identification of product network information and the identification of area position information can be realized through auxiliary communication by adopting Bluetooth, the method simplifies the operation steps, greatly shortens the network access time of the equipment, efficiently completes the functions of networking, pairing, binding and the like, and simplifies the installation and maintenance cost of the equipment.
In order to realize the embodiment, the invention further provides a control system of the ZigBee network.
Fig. 4 is a schematic structural diagram of a control system of a ZigBee network according to one embodiment of the present invention. As shown in fig. 4, the control system of the ZigBee network may include: a mobile terminal 10, a plurality of devices 20, and a plurality of ZigBee networks 30. In the embodiment of the present invention, the mobile terminal 10 may specifically include the first bluetooth module 11, the plurality of devices 20 may include the ZigBee module 21 and the second bluetooth module 22, and the gateway 31 may also include the bluetooth module 311. Further, the device 20 may include, but is not limited to, a light bulb, a wireless switch, and the like.
It should be noted that the ZigBee module 21 and the second bluetooth module 22 in the device 20 may be respectively integrated in two single chips, that is, the device 20 may have a ZigBee chip and a second bluetooth chip; in addition, the device 20 may further integrate the ZigBee module 21 and the second bluetooth module 22 into one chip, as shown in fig. 2, which is a hardware block diagram of the device according to the embodiment of the present invention, that is, it is shown that the ZigBee module and the second bluetooth module are integrated together to form a minimum system in the device. It can be understood that the ZigBee module and the second Bluetooth module are integrated into one chip, so that the cost is reduced.
Specifically, the mobile terminal 10 may be configured to receive the network splitting configuration information for the plurality of devices 20, which is set in the mobile terminal 10 by the user according to the network splitting requirement, and send the network splitting configuration information to the plurality of gateways 31 and the plurality of devices 20 in the plurality of ZigBee networks 30 through the first bluetooth module 11.
More specifically, the user may set the network splitting configuration information for the plurality of devices 20 in the mobile terminal 10 (e.g., mobile APP in the mobile terminal 10) according to the network splitting requirements. The mobile terminal 10 may send the network division configuration information to the device 20 through the first bluetooth module 11 and the second bluetooth module 22 of the device 20, and may send the network division configuration information to the gateway 31 in the ZigBee network 30 through the first bluetooth module 11 and the bluetooth module 311 in the gateway 31, so that the gateway 31 and the device 20 perform the network division process according to the corresponding network division configuration information. It should be noted that, while the mobile terminal 10 sends the network splitting configuration information to the device 20 and the gateway 31, the mobile terminal 10 may also store the network splitting configuration information in time, and if necessary, may also import the network splitting configuration information into the background management system for backup use. In the embodiment of the present invention, the network splitting configuration information may include, for example, information such as an ID and a name of the ZigBee network 30 to which the device 20 is to join.
The plurality of gateways 31 may be used to construct a plurality of ZigBee networks 30 according to the networking configuration information. More specifically, the gateway 31 may construct a corresponding ZigBee network 30 according to information such as ID, name, etc. of the ZigBee network 30 in the network splitting configuration information. It is understood that the gateway 31 in the embodiment of the present invention is a network coordinator gateway.
The plurality of devices 20 may be configured to generate ZigBee networking information according to the networking configuration information, and join the corresponding ZigBee network 30 through the ZigBee module 21 according to the ZigBee networking information. More specifically, the device 20 may generate ZigBee networking information according to information such as an ID and a name of the ZigBee network 30 in the networking configuration information, and add itself to the corresponding ZigBee network 30 according to the ZigBee networking information.
In the embodiment of the present invention, the gateway 31 in the corresponding ZigBee network 30 determines whether the device 20 under the gateway is legal according to the networking configuration information, and when determining that the device 20 under the gateway 31 is legal, confirms the control authority for the device 20, and provides the network communication service and control for the device 20.
Specifically, in the embodiment of the present invention, the gateway 31 may determine whether the device 20 under the gateway 31 is legal by: the gateway 31 may determine whether the networking configuration information matches the ZigBee networking information in the device 20 under the gateway 31; if so, the gateway 31 determines that the device 20 under the gateway 31 is legitimate. That is to say, the gateway 31 may determine whether the network splitting configuration information stored by itself matches the ZigBee networking information in the device 20 under the gateway 31, and if so, determine that the device 20 is legitimate, that is, may allow legitimate communication. When the device 20 under the gateway 31 is judged to be legal, the gateway 31 may confirm that the device 20 has the corresponding control authority, and may provide the network communication service to the device 20 and perform operations such as network management control.
Optionally, in an embodiment of the present invention, the gateway 31 may be further configured to send a leave notification message to the device 20 when the device 20 under the gateway 31 is determined to be illegal, so that the device 20 disconnects the device from the gateway 31 when receiving the leave notification message.
It can be seen that the above formula is based on an implementation manner of ZigBee network networking control performed on devices in a multi-ZigBee gateway environment, and the control system of the ZigBee network according to the embodiment of the present invention can also implement a function of pairing or group control performed on the devices. Specifically, in one embodiment of the present invention, the mobile terminal 10 may further be configured to receive setting information for the plurality of devices 20, which is set in the mobile terminal 10 by the user according to the pairing requirement or the grouping requirement, and transmit the setting information to the plurality of devices 20 through the first bluetooth module 11. The plurality of devices 20 may be further configured to send the setting information to the corresponding gateways 31, respectively, after the plurality of devices 20 complete networking communication. The corresponding gateway 31 may be configured to generate a pairing table or a group control logic according to the setting information, and perform pairing or group control on the corresponding device 20 according to the pairing table or the group control logic.
In the embodiment of the present invention, the group control logic may include, but is not limited to, single control, group control, scene, and the like. In the embodiment of the present invention, when the group control logic is a group control or a scene, the corresponding gateway 31 may further be configured to generate an ID of the group control or an ID of the scene according to the setting information, and pair or group control the corresponding device 20 according to the ID of the group control or the ID of the scene, the pairing table, or the group control logic.
More specifically, when the packet control logic for setting the information schedule sent by bluetooth communication is a group control or a scene, the gateway 31 may form an ID of the group control or an ID of the scene for storage management, and may issue the ID of the group control or the ID of the scene to the corresponding device 20 for storage, and may pair or perform packet control on the corresponding device 20 according to the ID of the group control or the ID of the scene, the pairing table, or the packet control logic, so that efficient coordination may be implemented by determining the ID of the group control or the ID of the scene in communication, and network delay is avoided.
Optionally, in an embodiment of the present invention, after the corresponding gateway 31 generates the pairing table or the packet control logic according to the setting information, the corresponding gateway 31 may further be configured to issue the packet control logic to the corresponding device 20 for storage. Specifically, after the corresponding gateway 31 generates the pairing table or the packet control logic according to the setting information, the gateway 31 may also issue various packet control logics formed by the setting information to the corresponding device 20 for storage, and at the same time, the gateway 31 also stores the packet control logic. Therefore, the control relationship can be conveniently recovered when the equipment or the gateway is powered off.
Optionally, in an embodiment of the present invention, when a node device of a ZigBee network 30 (such as a room or a home) changes or needs to modify a pairing relationship, bluetooth pairing and configuration may be performed again at any time, so that a control relationship of other pairing nodes may not be affected, and other ZigBee networks may not be affected.
According to the control system of the ZigBee network, the mobile terminal can receive the network division configuration information aiming at a plurality of devices, which is set in the mobile terminal by a user according to the network division requirement, and the network division configuration information is sent to a plurality of gateways and a plurality of devices in a plurality of ZigBee networks through the first Bluetooth module, the plurality of gateways construct a plurality of ZigBee networks according to the network division configuration information, the plurality of devices generate the ZigBee networking information according to the network division configuration information, and are added into the corresponding ZigBee networks through the ZigBee modules according to the ZigBee networking information, the gateways in the corresponding ZigBee networks judge whether the devices under the gateways are legal according to the network division configuration information, and when the devices under the gateways are judged to be legal, the control authority aiming at the devices is confirmed, and network communication service and control are provided for the devices, namely, the identification of product network information and the identification of regional position information can be realized by adopting Bluetooth for auxiliary communication, the method simplifies the operation steps, greatly shortens the network access time of the equipment, efficiently completes the functions of networking, pairing, binding and the like, and simplifies the installation and maintenance cost of the equipment.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.