Disclosure of Invention
The invention provides an internet of things gateway and a communication method thereof, which aim at three defects in the prior art proposed by the applicant.
The invention provides an Internet of things gateway, which comprises a secondary gateway framework consisting of a main gateway and at least one sub-gateway;
the main gateway and the at least one sub-gateway respectively comprise a channel expansion module, an interface expansion module, a redundancy module, a network verification module, a physical verification module and a storage module;
the network authentication module is used for encrypting and decrypting channel data and performing authorization authentication on request information, and the physical authentication module is used for monitoring and confirming entity events;
the master gateway further includes a mode switching module that switches between a local area network mode and a wide area network mode based on the dual authentication of the network authentication module and the physical authentication module.
Preferably, the at least one sub-gateway further includes an action execution module, which can control actions of the sensing layer device meeting the set conditions based on the double verification of the network verification module and the physical verification module.
Preferably, the induction layer equipment includes but is not limited to curtains, door locks, televisions, environmental sensors, floor sweeping robots, microwave ovens, cameras, refrigerators, water dispensers, printers, mobile phones, notebook computers, air conditioners, electric lamps, power grid switches, water way switches, air valves and the like.
Preferably, the sensing layer devices each include a device set identifier, and the sensing layer devices are divided into a plurality of group domains according to the device set identifier, and the plurality of group domains have different response priorities.
Preferably, the channel expansion module supports one or more communication means including wifi, 5g, zigbee, optical fiber, bluetooth, infrared, rfid, serial port, and the like.
Meanwhile, the invention also provides a communication method applied to the gateway of the Internet of things, which comprises the following steps:
s1: a user accesses a main gateway through a network interface, and data interaction between a user terminal and the main gateway is realized through a network verification module;
s2: the main gateway and at least one sub-gateway establish a star link;
s3: the at least one sub-gateway establishes communication connection with the sensing layer equipment through a channel expansion module;
s4: the main gateway switches between a local area network mode and a wide area network mode according to the verification result of the network verification module and the monitoring and confirmation of the physical verification module on the entity event;
s5: in the local area network mode, a plurality of main gateways form a group domain through an interface expansion module, and the plurality of main gateways located in the same group domain are respectively configured in a central domain and sub-domains; the master gateway belonging to the central domain has a higher authority than the master gateways belonging to the subzones.
Preferably, in step S4, the encoding protocols in the local area network mode and the wide area network mode are different.
Preferably, after the step S5, the method further includes the steps of:
s6: giving a device set identifier to the sensing layer device, and dividing the sensing layer device into a plurality of group domains according to the device set identifier, wherein the plurality of group domains have different response priorities;
s7: and the perception layer devices positioned in different group domains establish direct communication connection through the at least one sub-gateway.
Preferably, after the step S7, the method further includes the steps of:
s8: and the at least one sub gateway controls the action of the sensing layer equipment meeting the set conditions through the action execution module based on the double verification of the network verification module and the physical verification module.
Preferably, in the above steps S4 and S8, the physical verification module includes one or more of an infrared detector, a visible light camera and a physical button, and the active detection of the infrared detector and the visible light camera and/or the triggering action of the physical button identifies whether the user is in a set area.
Compared with the prior art, the gateway and the communication method of the Internet of things are improved in a targeted manner around scenes such as smart homes, on one hand, a secondary structure of a master gateway and a slave gateway is arranged, load impact on the master gateway caused by data concentration and concurrence is reduced, on the other hand, the intelligent equipment is divided into a plurality of group domains with different priorities, and data communication and instruction issuing can be directly carried out through the slave gateways. The invention also specifically modifies the gateway of the Internet of things and the communication method around scenes such as intelligent buildings, intelligent communities and the like, so that the gateway of the Internet of things and the communication method can meet the requirements of the group domain setting of the pan-LAN in a larger scene. In addition, the gateway and the communication method of the Internet of things are improved in a targeted manner around scenes such as the operation safety of the intelligent equipment, and the double verification of network verification and physical verification is introduced to reliably operate and control the intelligent equipment.
Detailed Description
The invention is further illustrated by the following figures and examples.
The first embodiment is as follows:
as shown in fig. 1-2, the present invention provides an internet of things gateway, which includes a secondary gateway architecture composed of a main gateway and at least one sub-gateway;
the intelligent household equipment is connected with the sub-gateway, data interaction among the self-energy household equipment can be directly realized through the sub-gateway without passing through the main gateway, and the sub-gateway can directly control the intelligent household equipment to execute some simple actions according to the monitored data and conditions. The multiple sub-gateways are connected with different intelligent household devices, the multiple sub-gateways are connected to the same main gateway, and the main gateway is connected with the cloud server and the user terminal through a network.
The main gateway and the at least one sub-gateway respectively comprise a channel expansion module, an interface expansion module, a redundancy module, a network verification module, a physical verification module and a storage module;
the network authentication module is used for encrypting and decrypting channel data and performing authorization authentication on request information, and the physical authentication module is used for monitoring and confirming entity events;
the physical verification module can monitor whether a user sending a command is at home by means of certain sensing functions of the intelligent household equipment, such as monitoring of an infrared probe of a sweeping robot and a camera of a monitoring camera, or by means of triggering operation of a router and an entity button on a display screen, so that the risk that the command is sent by being held by a hacker remotely is eliminated.
The master gateway further includes a mode switching module that switches between a local area network mode and a wide area network mode based on the dual authentication of the network authentication module and the physical authentication module.
When a user needs to incorporate the home smart home network into a pan-lan of a building or a community, the user can add a home gateway to a group domain formed by a plurality of mutually adjacent main gateways by sending an instruction, wherein the authority of a part of the main gateways is higher than that of other main gateways.
The at least one sub-gateway further comprises an action execution module which can control the action of the sensing layer equipment meeting the set conditions based on the double verification of the network verification module and the physical verification module.
The induction layer equipment comprises but is not limited to curtains, door locks, televisions, environment sensors, floor sweeping robots, microwave ovens, cameras, refrigerators, water dispensers, printers, mobile phones, notebook computers, air conditioners, electric lamps, power grid switches, water way switches, air valves and the like.
The sensing layer devices comprise device set identifications, the sensing layer devices are divided into a plurality of group domains according to the device set identifications, and the group domains have different response priorities.
For example, the sensing layer equipment can be divided into a plurality of groups such as digital multimedia, household appliances, office socializing, parameter sensing, water, electricity and coal control and the like according to functions or use scenes, the response priority of a power grid switch, a waterway switch, a gas valve and the like under the water, electricity and coal control group is highest, and the response priority of a mobile phone, a notebook computer and the like under the office socializing group is lowest.
For another example, the priorities of different groups of domains are dynamically adjusted, and the priorities may be positively correlated with the number of sensing layer devices in operation under the group of domains or the operation frequency/operation time of the sensing layer devices under the group of domains.
The channel expansion module supports one or more communication means including wifi, 5g, zigbee, optical fiber, Bluetooth, infrared, rfid, serial port and the like.
Example two:
as shown in fig. 3, the present invention further provides a communication method applied to an internet of things gateway, including the following steps:
s1: a user accesses a main gateway through a network interface, and data interaction between a user terminal and the main gateway is realized through a network verification module;
s2: the main gateway and at least one sub-gateway establish a star link;
s3: the at least one sub-gateway establishes communication connection with the sensing layer equipment through a channel expansion module;
s4: the main gateway switches between a local area network mode and a wide area network mode according to the verification result of the network verification module and the monitoring and confirmation of the physical verification module on the entity event;
s5: in the local area network mode, a plurality of main gateways form a group domain through an interface expansion module, and the plurality of main gateways located in the same group domain are respectively configured in a central domain and sub-domains; the master gateway belonging to the central domain has a higher authority than the master gateways belonging to the subzones.
In step S4, the encoding protocols in the local area network mode and the wide area network mode are different.
In some cases, setting the primary gateway to lan mode means that some of the aware layer devices are controlled by other more privileged primary gateways from the central domain, and therefore it is necessary to make sure that such instructions are given by the user himself rather than remotely from a hacker. Therefore, in a traditional network verification mode, verification of a physical layer is further introduced, such as whether a monitoring user is at home or whether an entity button of certain sensing layer equipment at home is manually triggered, and the like, so that the hidden danger can be well eliminated.
Wherein, after the step S5, the method further comprises the following steps:
s6: giving a device set identifier to the sensing layer device, and dividing the sensing layer device into a plurality of group domains according to the device set identifier, wherein the plurality of group domains have different response priorities;
different response priorities are set for a plurality of group domains, so that network congestion caused by data set concurrency can be well eliminated, and emergency situations such as gas leakage and the like can be processed in the first time. For example, in the case of poor network environment, the opening request of the curtain is delayed by preferentially responding to the closing action of the air valve.
S7: and the perception layer devices positioned in different group domains establish direct communication connection through the at least one sub-gateway.
The perception layer devices in different group domains can well eliminate network blockage caused by data concentration concurrency on one hand and can quickly realize interconnection and intercommunication between objects on the other hand by establishing communication links among the sub-gateways. For example, after the door lock is opened, the sub-gateway sends request signals to the lamp and the television at the same time, so that seamless coordination action of the lamp and the television is realized. The sub-gateways and the group domains are in exclusive correspondence, all sensing layer devices in the same group domain are only interconnected with the same sub-gateway, and one sub-gateway is only interconnected with all sensing layer devices in one group domain.
Wherein, after the step S7, the method further comprises the following steps:
s8: and the at least one sub gateway controls the action of the sensing layer equipment meeting the set conditions through the action execution module based on the double verification of the network verification module and the physical verification module.
The sub-gateway directly sends out a control instruction to control the intelligent household equipment to execute some simple actions, so that on one hand, network congestion caused by data concentration and concurrency can be well eliminated, on the other hand, the carrying loads of the main gateway and the cloud server can be reduced, and the execution efficiency is improved. For example, when the environment sensor detects that the indoor temperature is too high, the air conditioner in the sub-gateway control domain works directly; or emergency treatment such as emergency power-off is carried out by controlling a power grid switch. However, privacy-related behaviors such as turning on of a camera are executed by actively issuing an instruction by a user. That is, the user can set the white list according to factors such as security, and only the sensing layer device in the white list can be directly controlled by the action execution module of the sub-gateway.
Another way to automatically set the authority of the sub-gateway action execution module is to monitor the working frequency of all the sensing layer devices in the group domain corresponding to the sub-gateway within a certain period of time, and only the sensing layer devices with the working frequency greater than a threshold value can be directly controlled by the action execution module. For example, a microwave oven located in a group of domains of "household appliances" works 1 time in a day, a water dispenser in the same group of domains works 7 times in a day, and a threshold value is set to be 4, so that the water dispenser can be directly controlled by an action execution module of a sub-gateway without active intervention or confirmation of a user, and the microwave oven cannot be directly controlled by the action execution module of the sub-gateway.
Wherein, in the above steps S4 and S8, the physical verification module includes one or more of an infrared detector, a visible light camera and a physical button, and whether the user is in a set area is identified through active detection of the infrared detector, the visible light camera and/or a triggering action of the physical button.
The rest of the contents appearing in the first embodiment are not described herein again, but it should be understood that the first embodiment and the second embodiment are intercommunicated, the technical solutions and the technical features are also common, and there is no mutual exclusion.
Although the invention has been described in detail above with reference to a general description and specific examples, it is apparent that modifications or improvements can be made on the basis of the invention. The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and other variations and modifications which may occur to those skilled in the art without departing from the spirit and scope of the present invention are also within the scope of the present invention.