Cloud controllerTechnical Field
The invention relates to the technical field of smart homes, in particular to a cloud controller.
Background
With the popularization of networks and the popularization of mobile terminals such as smart phones and tablet computers, the world is stepping into an era of internet of things. The smart home is used as a branch of the Internet of things, and also shows strong development potential.
The current intelligent home system generally comprises a plurality of user terminals, a cloud platform, an integrated controller and a plurality of equipment terminals, wherein the plurality of user terminals respectively send control information to the integrated controller through the cloud platform, and the integrated controller controls all the equipment terminals according to the control information. The user terminal can be a smart phone, a handheld device, a tablet personal computer, a personal computer and the like, the device terminal can be a television, an air conditioner, central hot water, a floor heating system, an illuminating lamp and the like, because communication protocols corresponding to different device terminals are different, in the prior art, when the cloud platform and different device terminals establish communication connection, protocol modules with different communication protocols need to be stored as communication bridges between the cloud platform and the device terminals, two problems exist, firstly, when control needs to be switched between different device terminals, the protocol modules with the communication protocols matched with the controlled device terminals need to be selected, communication efficiency is reduced, and secondly, the different protocol modules occupy larger space and are not beneficial to improving the integration level of the system.
Disclosure of Invention
Aiming at the problems in the prior art, the invention relates to a cloud controller. The invention adopts the following technical scheme:
the utility model provides a cloud accuse ware, is applicable to intelligent home systems, intelligent home systems includes a plurality of user terminal, cloud platform and a plurality of equipment terminal, the cloud accuse ware is used for the cloud platform with communication connection is established to equipment terminal, the cloud accuse ware includes:
the receiving module is used for receiving a communication instruction sent by the cloud platform and receiving a protocol tag sent by the equipment terminal, and the protocol tag comprises communication protocol information matched with the equipment terminal;
the sending module is used for sending communication feedback information to the cloud platform and sending the communication instruction to the equipment terminal;
the protocol storage module is used for storing a plurality of communication protocols, and each communication protocol is matched with at least one equipment terminal;
a policy storage module to store a plurality of protocol matching policies;
the processor module is connected with the receiving module, the sending module, the protocol storage module and the strategy storage module, and is used for analyzing and processing the communication instruction after the receiving module receives the communication instruction to obtain an equipment terminal related to the communication instruction, controlling the sending module to send query information to the equipment terminal, receiving a protocol label fed back by the equipment terminal according to the query information, acquiring a corresponding protocol matching strategy from the strategy storage module according to the protocol label, acquiring a corresponding communication protocol from the protocol storage module according to the protocol matching strategy, and establishing communication connection between the cloud platform and the equipment terminal according to the communication protocol.
Preferably, the cloud controller further includes:
and the USB test interface module is connected with the processor module and is used for being in communication connection with a test tool, and the test tool tests hardware and software of the cloud controller through the USB test interface module.
Preferably, the cloud controller further includes:
and the ID programming module is connected with the processor module, is used for being in communication connection with an upper computer, and writes the serial number sent by the upper computer into the cloud controller after the cloud controller is powered on.
Preferably, the cloud controller further includes:
and the power supply module is connected with the processor module and used for supplying power to the cloud controller.
Preferably, the cloud controller further includes:
and the strong current conversion module is connected with the power supply module and the processor module and is used for converting part of strong current provided by the power supply module into weak current and outputting the weak current.
Preferably, the cloud controller further includes:
and the weak current signal processing module is connected with the strong current conversion module and the processor module and is used for carrying out signal processing on the weak current output by the strong current conversion module to obtain a standard output signal and outputting the standard output signal.
Preferably, the cloud controller further includes:
and the communication module is connected with the processor module and used for establishing communication connection between the cloud controller and external equipment.
Preferably, the communication instruction is a device control instruction or a device query instruction.
The invention has the beneficial effects that: when different equipment terminals are controlled, the communication protocol matched with the equipment terminals is automatically selected, the communication efficiency of the cloud platform and the integrated controller is improved, the control efficiency of the equipment terminals is further improved, and the system integration level is effectively improved.
Drawings
Fig. 1 is a schematic diagram of functional modules of a cloud controller in a preferred embodiment of the present invention.
Detailed Description
In the following embodiments, the technical features may be combined with each other without conflict.
The following further describes embodiments of the present invention with reference to the drawings:
as shown in fig. 1, a cloud controller is suitable for an intelligent home system, where the intelligent home system includes a plurality of user terminals, a cloud platform, and a plurality of device terminals, the cloud controller is configured to establish a communication connection between the cloud platform and the device terminals, and the cloud controller includes:
a receiving module 1, where the receiving module 1 is configured to receive a communication instruction sent by the cloud platform and is configured to receive a protocol tag sent by the device terminal, where the protocol tag includes communication protocol information matched with the device terminal;
a sending module 2, where the sending module 2 is configured to send communication feedback information to the cloud platform and send the communication instruction to the device terminal;
a protocol storage module 3, where the protocol storage module 3 is configured to store a plurality of communication protocols, and each of the communication protocols is matched with at least one device terminal;
a policy storage module 4, where the policy storage module 4 is configured to store a plurality of protocol matching policies;
the processor module 5 is connected to the receiving module 1, the sending module 2, the protocol storage module 3, and the policy storage module 4, and is configured to analyze and process the communication instruction after the receiving module 1 receives the communication instruction to obtain an equipment terminal associated with the communication instruction, control the sending module 2 to send query information to the equipment terminal, receive a protocol tag fed back by the equipment terminal according to the query information, obtain a corresponding protocol matching policy from the policy storage module 4 according to the protocol tag, obtain a corresponding communication protocol from the protocol storage module 3 according to the protocol matching policy, and establish communication connection between the cloud platform and the equipment terminal according to the communication protocol.
In the embodiment, when different equipment terminals are controlled, the corresponding protocol matching strategy is determined according to the protocol label of the equipment terminal to be controlled, and the corresponding communication protocol is determined according to the protocol matching strategy, so that the communication protocol matched with the equipment terminal is automatically selected, the communication efficiency of the cloud platform and the equipment terminal is improved, the control efficiency of the equipment terminal is improved, and the system integration level is effectively improved.
In a preferred embodiment, the cloud controller further includes:
and the USB test interface module 6 is connected with the processor module 5 and used for being in communication connection with a test tool, and the test tool tests the hardware and software of the cloud controller through the USB test interface module 6.
In a preferred embodiment, the cloud controller further includes:
and theID programming module 7 is connected with the processor module 5, is used for being in communication connection with an upper computer, and writes the serial number sent by the upper computer into the cloud controller after the cloud controller is powered on.
In a preferred embodiment, the cloud controller further includes:
and the power supply module is connected with the processor module 5 and used for supplying power to the cloud controller.
In a preferred embodiment, the cloud controller further includes:
and a strong current conversion module 9 connected to thepower module 8 and the processor module 5, for converting part of strong current provided by thepower module 8 into weak current and outputting the weak current.
In a preferred embodiment, the cloud controller further includes:
and a weak currentsignal processing module 10, connected to the strong current conversion module 9 and the processor module 5, for performing signal processing on the weak current output by the strong current conversion module 9 to obtain a standard output signal and outputting the standard output signal.
In a preferred embodiment, the cloud controller further includes:
and thecommunication module 11 is connected with the processor module 5 and is used for providing the cloud controller with communication connection with external equipment.
In this embodiment, the communication mode of thecommunication module 11 includes, but is not limited to, a 485 communication mode.
In a preferred embodiment, the communication command is a device control command or a device query command.
While the specification concludes with claims defining exemplary embodiments of particular structures for practicing the invention, it is believed that other modifications will be made in the spirit of the invention. While the above invention sets forth presently preferred embodiments, these are not intended as limitations.
Various alterations and modifications will no doubt become apparent to those skilled in the art after having read the above description. Therefore, the appended claims should be construed to cover all such variations and modifications as fall within the true spirit and scope of the invention. Any and all equivalent ranges and contents within the scope of the claims should be considered to be within the intent and scope of the present invention.