CN113271240B - Data transmission method, intelligent household system and readable storage medium - Google Patents

Data transmission method, intelligent household system and readable storage medium Download PDF

Info

Publication number
CN113271240B
CN113271240B CN202010096110.8A CN202010096110A CN113271240B CN 113271240 B CN113271240 B CN 113271240B CN 202010096110 A CN202010096110 A CN 202010096110A CN 113271240 B CN113271240 B CN 113271240B
Authority
CN
China
Prior art keywords
intelligent gateway
gateway
intelligent
level
task information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010096110.8A
Other languages
Chinese (zh)
Other versions
CN113271240A (en
Inventor
沈澈
孙波海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Atte Smart Life Co ltd
Original Assignee
Shenzhen Atte Smart Life Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Atte Smart Life Co ltd filed Critical Shenzhen Atte Smart Life Co ltd
Priority to CN202010096110.8A priority Critical patent/CN113271240B/en
Publication of CN113271240A publication Critical patent/CN113271240A/en
Application granted granted Critical
Publication of CN113271240B publication Critical patent/CN113271240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network

Abstract

When a current intelligent gateway initiates a task message, the current intelligent gateway sends the task message to a high-level intelligent gateway and a low-level intelligent gateway respectively according to the gateway number, wherein the level of the intelligent gateway is arranged according to the size of the gateway number; when the current intelligent gateway acquires task information forwarded by other intelligent gateways, the current intelligent gateway sends the task information according to a preset forwarding rule, wherein the forwarding rule is that when the level of other intelligent gateways is higher than that of the current intelligent gateway, the current intelligent gateway forwards the task information to a lower-level intelligent gateway, and when the level of other intelligent gateways is lower than that of the current intelligent gateway, the current intelligent gateway forwards the task information to a higher-level intelligent gateway. The invention can realize interconnection and intercommunication and data sharing of the intelligent home system.

Description

Data transmission method, intelligent household system and readable storage medium
Technical Field
The invention relates to the technical field of intelligent home, in particular to a data transmission method, an intelligent home system and a readable storage medium.
Background
With the development and application of the Internet plus and the progress of the technology, the intelligent home concept is rapidly finished. The intelligent home is connected with various home appliances or devices in the home through the Internet of things technology, not only has the traditional home function, but also can provide all-round information interaction through the Internet of things technology, and the life style of people is changed. The intelligent gateway is a center of the intelligent home, and all wireless and wired data operation and interaction of external cloud data are realized through the intelligent gateway.
The number of devices connected with one gateway and the communication range are limited, and in some large places such as villas, large office buildings and the like, one gateway cannot communicate and control the devices. Usually, in this case, multiple gateways are set for regional control, but in this way, since data interaction cannot be performed between the gateways, it is inconvenient to perform unified management on each smart home device.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a data transmission method, an intelligent home system, and a readable storage medium for solving a problem in the prior art that data interaction cannot be performed between gateways of an intelligent home system.
A data transmission method is applied to an intelligent home system, the intelligent home system comprises a plurality of intelligent gateways which are connected in sequence, each intelligent gateway is provided with a unique gateway number, the data transmission method comprises the following steps,
when a current intelligent gateway initiates a task message, the current intelligent gateway sends the task message to a high-level intelligent gateway and a low-level intelligent gateway respectively according to the gateway number, wherein the level of the intelligent gateway is arranged according to the size of the gateway number;
when the current intelligent gateway acquires the task information forwarded by another intelligent gateway, the current intelligent gateway sends the task information according to a preset forwarding rule,
the forwarding rule is that when the level of the other intelligent gateways is higher than that of the current intelligent gateway, the current intelligent gateway forwards the current intelligent gateway to a lower intelligent gateway, and when the level of the other intelligent gateways is lower than that of the current intelligent gateway, the current intelligent gateway forwards the current intelligent gateway to a higher intelligent gateway.
Further, in the data transmission method, the task information includes a gateway number of the intelligent gateway that currently sends information and a task instruction, and the step of sending the task information by the current intelligent gateway according to a preset forwarding rule includes:
the current intelligent gateway judges whether the level of other intelligent gateways is higher than the level of the current intelligent gateway according to the number of the current intelligent gateway and the number of the other intelligent gateways;
when the level of the other intelligent gateways is higher than that of the current intelligent gateway, the current intelligent gateway takes the task instruction and the gateway number of the current intelligent gateway as new task information and sends the new task information to the intelligent gateway at the lower level;
and when the level of the other intelligent gateways is lower than that of the current intelligent gateway, the current intelligent gateway sends the task instruction and the gateway number of the current intelligent gateway to a high-level intelligent gateway as new task information.
Further, in the data transmission method, the task information includes a direction identifier and a task instruction, the direction identifier is one of a first direction identifier and a second direction identifier, and the step of sending the task information to the higher-level and the lower-level intelligent gateways respectively according to the gateway numbers by the current intelligent gateway includes:
the current intelligent gateway sends the task instruction and the first direction identification to a high-level intelligent gateway according to the gateway number, and sends the task instruction and the second direction identification to a low-level intelligent gateway;
when the direction identifier is a first direction identifier, the step of sending the task information by the current intelligent gateway according to a preset forwarding rule comprises the following steps:
the current intelligent gateway sends the task information to a high-level intelligent gateway;
when the direction identifier is a second direction identifier, the step of sending the task information by the current intelligent gateway according to a preset forwarding rule comprises the following steps:
and the current intelligent gateway sends the task information to a lower-level intelligent gateway.
Further, in the data transmission method, each of the intelligent gateways is correspondingly connected to a control end, and the control end is configured to send a task instruction to the intelligent gateway.
Further, in the data transmission method, when the task instruction is a control instruction for a target device, the current step of sending the task information by the intelligent gateway according to a preset forwarding rule further includes:
judging whether the target equipment in the control instruction is locally connected equipment or not;
if yes, controlling the target equipment to execute the control instruction;
and if not, executing the step of sending the task information according to a preset forwarding rule.
Further, the data transmission method described above, wherein, after the step of controlling the target device to execute the control instruction, further includes:
and the current intelligent gateway updates the state identifier of the target equipment on the corresponding control end and initiates another new task information, wherein a task instruction in the another new task information is an information updating instruction of the target equipment.
Further, in the data transmission method, the step of initiating a task information by the current intelligent gateway includes:
when the current intelligent gateway obtains a control instruction sent by a corresponding control end, judging whether target equipment in the control instruction is locally connected equipment or not;
if yes, controlling the target device to execute the control instruction, and initiating first task information, wherein the first task information comprises an information updating instruction of the target device;
if not, initiating second task information, wherein the second task information comprises the control instruction.
Further, in the data transmission method, when the task instruction is an information update instruction of the target device, the step of sending the task information by the current intelligent gateway according to a preset forwarding rule includes:
and the current intelligent gateway updates the state of the target equipment on the corresponding control terminal according to the information updating instruction and sends the task information according to a preset forwarding rule.
The embodiment of the invention provides an intelligent home system, which comprises a plurality of intelligent gateways connected in sequence, wherein each intelligent gateway is provided with a unique gateway number, the current intelligent gateway comprises,
the sending module is used for sending task information to a high-level intelligent gateway and a low-level intelligent gateway respectively according to the gateway number when the current intelligent gateway initiates the task information, wherein the level of the intelligent gateway is arranged according to the size of the gateway number;
the forwarding module is used for sending the task information according to a preset forwarding rule by the current intelligent gateway when the task information forwarded by other intelligent gateways is acquired,
and the forwarding rule is that when the level of the other intelligent gateways is higher than that of the current intelligent gateway, the current intelligent gateway forwards the other intelligent gateways to a lower intelligent gateway, and when the level of the other intelligent gateways is lower than that of the current intelligent gateway, the current intelligent gateway forwards the other intelligent gateways to a higher intelligent gateway.
Further, in the intelligent home system, the task information includes a gateway number of the intelligent gateway that currently sends the information and a task instruction, and the forwarding module is configured to:
judging whether the level of the other intelligent gateways is higher than the level of the intelligent gateways according to the sizes of the gateway numbers of the intelligent gateways and the other intelligent gateways;
when the level of the other intelligent gateways is higher than the level of the other intelligent gateways, the task instruction and the number of the gateway are used as new task information to be sent to the intelligent gateway at the higher level;
and when the level of the other intelligent gateways is lower than the level of the other intelligent gateways, the task instruction and the number of the other intelligent gateways are used as new task information to be sent to the intelligent gateway at the lower level.
An embodiment of the present invention provides a readable storage medium, on which a program is stored, the program implementing any of the methods described above when executed by a processor.
In the invention, each intelligent gateway can carry out information interaction through the data transmission method, the data transmission mode is simple and effective, and the interconnection and the data sharing of the whole intelligent home system are realized. The equipment connected with the gateway can be controlled by any intelligent gateway, and the equipment under other intelligent gateways can also be controlled by the data transmission method.
Drawings
Fig. 1 is a flow chart of a data transmission method according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a data transmission method according to a second embodiment of the present invention;
FIG. 3 is a flow chart of a data transmission method according to a third embodiment of the present invention;
FIG. 4 is a flowchart illustrating a data transmission method according to a fourth embodiment of the present invention;
fig. 5 is an architecture diagram of an intelligent home system according to a fifth embodiment of the present invention;
fig. 6 is a block diagram of a current intelligent gateway in a fifth embodiment of the present 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 accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
These and other aspects of embodiments of the invention will be apparent with reference to the following description and attached drawings. In the description and drawings, particular embodiments of the invention have been disclosed in detail as being indicative of some of the ways in which the principles of the embodiments of the invention may be practiced, but it is understood that the scope of the embodiments of the invention is not limited correspondingly. On the contrary, the embodiments of the invention include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
The data transmission method in the embodiment of the invention is applied to the intelligent home system, and the intelligent home system can be arranged in large places such as multi-storey villas, shopping malls and the like. The intelligent home system comprises a plurality of intelligent gateways which are connected in sequence, and each gateway is connected with home equipment in a certain area range. The quantity and the position of the intelligent gateway can be set according to the site, the layout, for example, in a large-scale villa, the intelligent gateway can be set in each floor, and each gateway is connected in sequence and is provided with a unique gateway number for the identification of the intelligent gateway. The gateway number may be a consecutive positive integer, such as 1,2,3 \8230;, N. During specific connection, the intelligent gateways with even gateway numbers can be respectively connected with the two adjacent intelligent gateways.
Referring to fig. 1, a data transmission method according to a first embodiment of the present invention includes steps S11 to S12.
And S11, when the current intelligent gateway initiates a task message, the current intelligent gateway sends the task message to the high-level and low-level intelligent gateways according to the gateway number, wherein the levels of the intelligent gateways are arranged according to the size of the gateway number.
Every intelligent gateway all connects several house equipment, and each intelligent gateway connects gradually, and can carry out the information interaction. Therefore, each gateway in this embodiment can control all home devices. That is, the current intelligent gateway initiates the task information to control the local device, and/or forwards the task information to other intelligent gateways, so as to control the devices through other intelligent gateways.
When the current intelligent gateway initiates the task information, the task information is respectively sent to the high-level and first-level intelligent gateways. The levels of the intelligent gateways are arranged according to the size of the gateway numbers, for example, the levels of the intelligent gateways with the gateway numbers from 1 to N are increased in sequence, and the intelligent gateway numbers can be regarded as the levels of the intelligent gateways, namely, the level 1, the level two, the level N.
For example, when the intelligent gateway with the gateway number 2 initiates task information, the task information is respectively sent to the intelligent gateway number 1 and the intelligent gateway number 3.
Step S12, when the current intelligent gateway obtains the task information forwarded by other intelligent gateways, the current intelligent gateway sends the task information according to a preset forwarding rule,
the forwarding rule is that when the level of the other intelligent gateways is higher than that of the current intelligent gateway, the current intelligent gateway forwards the current intelligent gateway to a lower intelligent gateway, and when the level of the other intelligent gateways is lower than that of the current intelligent gateway, the current intelligent gateway forwards the current intelligent gateway to a higher intelligent gateway.
It can be understood that each intelligent gateway can initiate task information and can also forward the task information. The step S11 and the step S12 are two situations when the current intelligent gateway obtains different information, and there is no priority.
And when the current intelligent gateway acquires the task information forwarded by other intelligent gateways, the current intelligent gateway sends the task information according to a preset forwarding rule. Because each intelligent gateway is connected in sequence, the current intelligent gateway can only directly acquire the information sent by two adjacent intelligent gateways, and therefore the other intelligent gateways are the intelligent gateways higher than or lower than the current intelligent gateway.
The forwarding rule is preset, according to the forwarding rule, when the level of other intelligent gateways is higher than that of the current intelligent gateway, the current intelligent gateway forwards the current intelligent gateway to the intelligent gateway at the lower level, and when the level of other intelligent gateways is lower than that of the current intelligent gateway, the current intelligent gateway forwards the current intelligent gateway to the intelligent gateway at the higher level.
For example, when the intelligent gateway No. 3 acquires the task information sent by the intelligent gateway No. 4, the task information is forwarded to the intelligent gateway No. 2, and the intelligent gateway No. 2 is forwarded to the intelligent gateway No. 1, and no more forwarding is needed because the number 1 is the minimum; when the intelligent gateway No. 5 receives the task information sent by the intelligent gateway No. 4, the task information is forwarded to the intelligent gateway No. 6, and the intelligent gateway No. 6 sends the task information to the intelligent gateway No. 7, and so on until the last intelligent gateway.
The task information includes control instructions for a certain device, such as turning on a light, turning off a light, etc., or adding, deleting, modifying, etc. the device on a certain intelligent gateway.
It can be understood that in the process of forwarding the task information among the intelligent gateways, if the task information is completed or the forwarding process is finished, the task information does not need to be forwarded.
In this embodiment, each intelligent gateway can perform information interaction through the data transmission method, the data transmission method is simple and effective, and interconnection and data sharing of the whole intelligent home system are realized. The intelligent gateway can control the equipment connected with the intelligent gateway, and can also control the equipment under other intelligent gateways through the data transmission method.
Referring to fig. 2, a data transmission method according to a second embodiment of the present invention includes steps S21 to S26.
Step S21, when the current intelligent gateway initiates a task message, the current intelligent gateway sends the task message to the high-level and low-level target intelligent gateways respectively according to the gateway number, the task message comprises the gateway number and the task instruction of the current intelligent gateway, and the task instruction is a control instruction for a target device.
The levels of the intelligent gateways are arranged according to the size of the gateway number, for example, if the current intelligent gateway number is M, the intelligent gateways with the gateway numbers M +1 and M-1 send the task information (if M is equal to 1, the task information is not sent to the intelligent gateway at the lower level). The task information comprises a gateway number of the current intelligent gateway and a control instruction aiming at a target device. The gateway number is used for identifying the intelligent gateway, the target device can be any device connected under the intelligent gateway, and the control command is, for example, a command of turning on a light, turning off the light, turning on an air conditioner and the like.
In this embodiment, each intelligent gateway may be correspondingly connected to a control end, where the control end includes an interface for performing human-computer interaction, such as a touch display screen, and the control end may display device information (including a device name and a device state) in an intelligent home and may control each device, such as turning on a light, turning off the light, and turning on an air conditioner. The intelligent gateway can initiate the task information through a trigger event on the corresponding control terminal, for example, touching or clicking a switch button of a device on the control terminal.
And S22, the target intelligent gateway judges whether the target equipment is locally connected equipment, if so, the step S23 is executed, and if not, the step S24 is executed.
And step S23, the target intelligent gateway controls the target equipment to execute the control instruction.
When the target intelligent gateway receives the task information sent by the current intelligent gateway, whether the target equipment in the task information is locally connected with the target intelligent gateway is judged, and if yes, the control instruction is sent to the target equipment so that the target equipment can execute the control instruction. For example, if the current intelligent gateway is number 3, the current intelligent gateway sends task information to number 2 and number 4 intelligent gateways respectively, if the target device in the task information is a device connected with the number 2 intelligent gateway, the number 2 intelligent gateway controls the target device to execute the control instruction, after the control instruction is completed, the number 2 intelligent gateway can continue to forward to the number 1 intelligent gateway until the process is finished, and when the number 4 intelligent gateway receives the control instruction, the current intelligent gateway continues to forward until the last intelligent gateway.
It is understood that, as another embodiment of the present invention, the target intelligent gateway may not continue forwarding information to the neighboring intelligent gateways after completing the control command.
Further, the operation of data forwarding between the intelligent gateways can be performed through a set field such as forward, that is, when the current intelligent gateway detects the field, the current intelligent gateway sends the field to other intelligent gateways and adds the field.
And step S24, the target intelligent gateway judges whether the level of the current intelligent gateway is higher than the level of the target intelligent gateway according to the gateway number of the current intelligent gateway and the size of the gateway number of the target intelligent gateway. Wherein, the level with large gateway number is high, and the level with small gateway number is low.
In the above step, if the target smart gateway is the smart gateway with the minimum gateway number or the maximum gateway number, the step S24 does not need to be executed.
And S25, when the level of the current intelligent gateway is higher than that of the target intelligent gateway, the target intelligent gateway sends the control command and the gateway number of the target intelligent gateway serving as new task information to a lower-level intelligent gateway.
And when the target intelligent gateway judges that the current intelligent gateway level is higher, the control instruction and the gateway number of the target intelligent gateway serve as new task information to be forwarded to the intelligent gateway at the lower level, and after the intelligent gateway at the lower level receives the task information, the operation of the step S24 is continuously executed until the last intelligent gateway.
And S26, when the level of the current intelligent gateway is lower than that of the target intelligent gateway, the target intelligent gateway sends the task instruction and the gateway number of the target intelligent gateway to a high-level intelligent gateway as new task information.
And when the target intelligent gateway judges that the current intelligent gateway level is lower, the control instruction and the gateway number of the target intelligent gateway serve as new task information to be forwarded to the intelligent gateway at the higher level, and after the intelligent gateway at the higher level receives the task information, the operation of the step S24 is continuously executed until the last intelligent gateway.
When each intelligent gateway forwards data, the forwarding direction is determined by the gateway number in the task information, namely when the current intelligent gateway receives the gateway numbers sent by other gateways, the current intelligent gateway compares the gateway numbers with the gateway number of the current intelligent gateway, if the numbers of the other gateways are larger, the current intelligent gateway sends the task information to the intelligent gateway which continues to be at the lower level, and if the numbers of the other gateways are smaller, the current intelligent gateway continues to send the task information to the intelligent gateway which continues to be at the higher level.
In this embodiment, the control instruction for the device is forwarded through the data transmission method between the intelligent gateways, and each intelligent gateway can control all devices in the intelligent home system.
Further, as another embodiment of the present invention, after the step S23, the method further includes:
and the target intelligent gateway updates the state identifier of the target equipment on the corresponding control end and initiates another new task information, wherein a task instruction in the another task information is an information updating instruction of the target equipment.
In this embodiment, when the target intelligent gateway finishes controlling the target device, a new task information is automatically initiated, that is, an execution result (result) of the control instruction is returned, and a task instruction in the newly initiated task information is an update instruction of the target device information. And the target intelligent gateway sends the newly-initiated task information to the high-level and low-level intelligent gateways respectively. And after the higher-level intelligent gateway and the lower-level intelligent gateway receive the newly-initiated task information, updating the state identifier of the target device on the control end corresponding to the higher-level intelligent gateway and the lower-level intelligent gateway, and forwarding the newly-initiated task information according to a preset forwarding rule.
For example, after the intelligent gateway with gateway number 2 finishes the operation of turning on the target device (hall lamp), a new task message is respectively initiated to the intelligent gateway No. 1 and the intelligent gateway No. 3, and the task command in the newly initiated task message is the hall lamp state update command. After receiving the task information, the intelligent gateway No. 1 changes the state identifier of the living room lamp on the control terminal, namely, changes the state identifier into an on state. After receiving the task information, the intelligent gateway No. 3 changes the state identifier of the living room lamp on the control terminal, namely, the state identifier is changed into an open state, and forwards the newly-started task information to the intelligent gateway No. 4, and so on. Therefore, the states of the hall lamps are updated on all the control terminals, and the hall lamps are convenient for users to check and control again.
It can be known from the above embodiments that each intelligent gateway can initiate task information in two ways:
firstly, the intelligent terminal initiates task information through a trigger event of a control end corresponding to the intelligent gateway;
and secondly, the intelligent gateway automatically initiates task information after finishing controlling the target equipment according to the control instruction.
Preferably, in the third implementation of the present invention, the step of initiating a task information by the current intelligent gateway specifically includes steps S31 to S33.
Step S31, when the current intelligent gateway obtains the control instruction sent by the corresponding control end, whether the target equipment in the control instruction is locally connected equipment is judged, if yes, the step S32 is executed, and if not, the step S33 is executed.
And step S32, controlling the target device to execute the control instruction, and initiating first task information, wherein the first task information comprises a gateway number of the current intelligent gateway and an information updating instruction of the target device.
And step S33, initiating second task information, wherein the second task information comprises the gateway number of the current intelligent gateway and the control instruction.
Each intelligent gateway is correspondingly connected with a control end and each device, and each intelligent gateway is sequentially connected and can perform data interaction, so that a user can control any device through any control end and send the control instruction to the corresponding intelligent gateway through the control end. And if the target equipment in the control instruction is the equipment locally connected with the current intelligent gateway, directly controlling the target equipment and initiating first task information, wherein the first task information comprises an information updating instruction for the target equipment, and the task information is forwarded through each intelligent gateway so that the information of the target equipment on each control terminal is updated.
And if the target equipment in the control instruction is not the equipment locally connected with the current intelligent gateway, the current intelligent gateway initiates second task information, wherein the second task information comprises the control instruction for the target equipment. The transmission method of the second task information may refer to steps S21 to S26.
Referring to fig. 4, a data transmission method according to a fourth embodiment of the present invention includes steps S41 to S46.
Step S41, when the current intelligent gateway obtains an information updating instruction which is sent by a corresponding control end and aims at a target device, local data is updated, and the information updating instruction and the gateway number of the current intelligent gateway are used as task information and sent to the high-level and low-level target intelligent gateways according to the gateway number.
The information update instruction of the target device is, for example, to add, delete or modify (including but not limited to, status modification, name modification) the target device. And the user can delete, add or modify the equipment for the current intelligent gateway through the operation on the interactive interface of the control end.
After the current intelligent gateway finishes the information updating of the target equipment, the gateway number of the current intelligent gateway and the information updating instruction of the target equipment are used as task information and sent to two adjacent intelligent gateways.
And step S42, when the target intelligent gateway acquires the task information, updating the corresponding equipment information on the control terminal according to the task information.
And S43, the target intelligent gateway judges whether the number of the gateway is minimum or maximum, and if not, the step S44 is executed.
And step S44, the target intelligent gateway judges whether the level of the current intelligent gateway is higher than the level of the target intelligent gateway according to the gateway number of the current intelligent gateway and the size of the gateway number of the target intelligent gateway.
And step S45, when the level of the current intelligent gateway is higher than that of the target intelligent gateway, the target intelligent gateway sends the information updating instruction and the gateway number of the target intelligent gateway as new task information to a target intelligent gateway at a lower level, and the step S42 is executed in a returning mode.
And step S46, when the level of the current intelligent gateway is lower than that of the target intelligent gateway, the target intelligent gateway sends the information updating instruction and the gateway number thereof as new task information to the target intelligent gateway at the higher level, and returns to execute the step S42.
In this embodiment, when each intelligent gateway receives task information forwarded by other intelligent gateways, the information of the corresponding target device on the control end is updated according to the information update instruction, and forwarding is continued until the last intelligent gateway according to a preset forwarding rule, and all the intelligent gateways complete updating of device information at that time.
In other embodiments of the present invention, the task information does not include a gateway number but includes a direction identifier and a task instruction, where the direction identifier is divided into two types:
the first direction identifier is used for indicating to forward to a higher-level intelligent gateway;
and the second direction identifier is used for indicating forwarding to the first-level intelligent gateway.
The step that the current intelligent gateway sends the task information to the high-level and low-level intelligent gateways respectively according to the gateway numbers comprises the following steps:
and the current intelligent gateway sends the task instruction and the first direction identification to a high-level intelligent gateway according to the gateway number, and sends the task instruction and the second direction identification to a low-level intelligent gateway.
When the direction identifier is a first direction identifier, the step of sending the task information by the current intelligent gateway according to a preset forwarding rule comprises the following steps:
the current intelligent gateway sends the task information to a high-level intelligent gateway;
when the direction identifier is a second direction identifier, the step of sending the task information by the current intelligent gateway according to a preset forwarding rule comprises the following steps:
and the current intelligent gateway sends the task information to a lower-level intelligent gateway.
That is, in this embodiment, each intelligent gateway device determines the direction of forwarding the task information according to the direction identifier. When the task information acquired by the current intelligent gateway contains a first direction identifier, the task information is sent to a higher-level intelligent gateway, namely the task information is forwarded according to the ascending sequence of gateway numbers; and when the task information acquired by the current intelligent gateway contains the second direction identification, the task information is sent to the intelligent gateway at the lower level, namely the task information is forwarded according to the descending sequence of the gateway numbers.
Referring to fig. 5, an intelligent home system according to a fifth embodiment of the present invention includes a plurality of intelligent gateways 10 connected in sequence, each of the intelligent gateways is provided with a unique gateway number, as shown in fig. 6, a current intelligent gateway includes,
the sending module 11 is configured to send task information to a higher-level intelligent gateway and a lower-level intelligent gateway according to the gateway numbers when the current intelligent gateway initiates the task information, where the levels of the intelligent gateways are arranged according to the sizes of the gateway numbers;
a forwarding module 12, when acquiring the task information forwarded by another intelligent gateway, the current intelligent gateway sends the task information according to a preset forwarding rule,
and the forwarding rule is that when the level of the other intelligent gateways is higher than that of the current intelligent gateway, the current intelligent gateway forwards the other intelligent gateways to a lower intelligent gateway, and when the level of the other intelligent gateways is lower than that of the current intelligent gateway, the current intelligent gateway forwards the other intelligent gateways to a higher intelligent gateway.
Further, in the foregoing intelligent home system, the task information includes a gateway number of an intelligent gateway that currently sends information and a task instruction, and the forwarding module 12 is configured to:
judging whether the level of the other intelligent gateways is higher than the level of the intelligent gateways according to the sizes of the gateway numbers of the intelligent gateways and the other intelligent gateways;
when the level of the other intelligent gateways is higher than the level of the other intelligent gateways, the task instruction and the number of the other intelligent gateways are used as new task information to be sent to the high-level intelligent gateway;
and when the level of the other intelligent gateways is lower than the level of the other intelligent gateways, the task instruction and the number of the other intelligent gateways are used as new task information to be sent to the intelligent gateway at the lower level.
The implementation principle and the generated technical effects of the intelligent home system provided by the embodiment of the invention are the same as those of the method embodiment, and for brief description, reference may be made to corresponding contents in the method embodiment where no part of the embodiment of the intelligent home system is mentioned.
An embodiment of the present invention further provides a readable storage medium, on which a program is stored, where the program, when executed by a processor, implements any of the methods described above.
The logic and/or steps represented in the flowcharts or otherwise described herein, such as 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). Further, 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.
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 do not necessarily 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.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A data transmission method is applied to an intelligent home system, the intelligent home system comprises a plurality of intelligent gateways which are connected in sequence, each intelligent gateway is provided with a unique gateway number, and the data transmission method is characterized in that the intelligent gateways are connected in sequence and are interconnected and intercommunicated,
when a current intelligent gateway initiates a task message, the current intelligent gateway sends the task message to a high-level intelligent gateway and a low-level intelligent gateway respectively according to the gateway number, wherein the level of the intelligent gateway is arranged according to the size of the gateway number;
when the current intelligent gateway acquires the task information forwarded by another intelligent gateway, the current intelligent gateway sends the task information according to a preset forwarding rule,
the forwarding rule is that when the level of the other intelligent gateways is higher than that of the current intelligent gateway, the current intelligent gateway forwards the current intelligent gateway to a lower intelligent gateway, and when the level of the other intelligent gateways is lower than that of the current intelligent gateway, the current intelligent gateway forwards the current intelligent gateway to a higher intelligent gateway.
2. The data transmission method according to claim 1, wherein the task information includes a gateway number of the intelligent gateway currently sending the information and a task instruction, and the step of sending the task information by the current intelligent gateway according to a preset forwarding rule includes:
the current intelligent gateway judges whether the level of other intelligent gateways is higher than the level of the current intelligent gateway according to the number of the current intelligent gateway and the number of the other intelligent gateways;
when the level of the other intelligent gateways is higher than that of the current intelligent gateway, the current intelligent gateway takes the task instruction and the gateway number as new task information and sends the new task information to the intelligent gateway at the lower level;
and when the level of the other intelligent gateways is lower than that of the current intelligent gateway, the current intelligent gateway sends the task instruction and the gateway number of the current intelligent gateway to a high-level intelligent gateway as new task information.
3. The data transmission method according to claim 1, wherein the task information includes a direction identifier and a task instruction, the direction identifier is one of a first direction identifier and a second direction identifier, and the step of the current intelligent gateway sending the task information to the higher-level and lower-level intelligent gateways according to the gateway number includes:
the current intelligent gateway sends the task instruction and the first direction identification to a high-level intelligent gateway according to the gateway number, and sends the task instruction and the second direction identification to a low-level intelligent gateway;
when the direction identifier is a first direction identifier, the step of sending the task information by the current intelligent gateway according to a preset forwarding rule comprises the following steps:
the current intelligent gateway sends the task information to a high-level intelligent gateway;
when the direction identifier is a second direction identifier, the step of sending the task information by the current intelligent gateway according to a preset forwarding rule comprises the following steps:
and the current intelligent gateway sends the task information to a lower-level intelligent gateway.
4. The data transmission method according to claim 2 or 3, wherein each intelligent gateway is correspondingly connected with a control end, and the control end is used for sending task instructions to the intelligent gateways.
5. The data transmission method according to claim 4, wherein when the task instruction is a control instruction for a target device, the step of the current intelligent gateway sending the task information according to a preset forwarding rule further includes:
judging whether the target equipment in the control instruction is locally connected equipment or not;
if yes, controlling the target equipment to execute the control instruction;
and if not, executing the step of sending the task information according to a preset forwarding rule.
6. The data transmission method of claim 5, wherein the step of controlling the target device to execute the control instruction further comprises, after:
and the current intelligent gateway updates the state identifier of the target equipment on the corresponding control end and initiates another new task information, wherein a task instruction in the another new task information is an information updating instruction of the target equipment.
7. The data transmission method of claim 4, wherein the step of the current intelligent gateway initiating a task information comprises:
when the current intelligent gateway obtains a control instruction sent by a corresponding control end, judging whether target equipment in the control instruction is locally connected equipment or not;
if yes, controlling the target device to execute the control instruction, and initiating first task information, wherein the first task information comprises an information updating instruction of the target device;
if not, initiating second task information, wherein the second task information comprises the control instruction.
8. The data transmission method according to claim 4, wherein, when the task instruction is an information update instruction of a target device, the step of the current intelligent gateway sending the task information according to a preset forwarding rule includes:
and the current intelligent gateway updates the state of the target equipment on the corresponding control terminal according to the information updating instruction and sends the task information according to a preset forwarding rule.
9. An intelligent home system is characterized by comprising a plurality of intelligent gateways which are connected in sequence, each intelligent gateway is provided with a unique gateway number, the intelligent gateways are connected in sequence and are mutually connected, the current intelligent gateway comprises,
the sending module is used for sending task information to a high-level intelligent gateway and a low-level intelligent gateway respectively according to the gateway number when the current intelligent gateway initiates the task information, wherein the level of the intelligent gateway is arranged according to the size of the gateway number;
the forwarding module is used for sending the task information according to a preset forwarding rule by the current intelligent gateway when the task information forwarded by other intelligent gateways is acquired,
and the forwarding rule is that when the level of the other intelligent gateways is higher than that of the current intelligent gateway, the current intelligent gateway forwards the other intelligent gateways to a lower intelligent gateway, and when the level of the other intelligent gateways is lower than that of the current intelligent gateway, the current intelligent gateway forwards the other intelligent gateways to a higher intelligent gateway.
10. A readable storage medium on which a program is stored, which program, when executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202010096110.8A 2020-02-17 2020-02-17 Data transmission method, intelligent household system and readable storage medium Active CN113271240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010096110.8A CN113271240B (en) 2020-02-17 2020-02-17 Data transmission method, intelligent household system and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010096110.8A CN113271240B (en) 2020-02-17 2020-02-17 Data transmission method, intelligent household system and readable storage medium

Publications (2)

Publication Number Publication Date
CN113271240A CN113271240A (en) 2021-08-17
CN113271240B true CN113271240B (en) 2022-11-01

Family

ID=77227617

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010096110.8A Active CN113271240B (en) 2020-02-17 2020-02-17 Data transmission method, intelligent household system and readable storage medium

Country Status (1)

Country Link
CN (1) CN113271240B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4294723B2 (en) * 2007-08-28 2009-07-15 パナソニック株式会社 Network control apparatus, method, and program
US9628971B2 (en) * 2015-03-20 2017-04-18 At&T Mobility Ii Llc Push notifications for a gateway device and associated devices
CN204719527U (en) * 2015-06-26 2015-10-21 慧锐通智能科技股份有限公司 A kind of wireless intelligent house system
CN107231262B (en) * 2017-06-26 2021-05-14 华南理工大学 Message routing method based on MQTT multi-layer cascade
CN109240111B (en) * 2018-10-15 2022-04-01 深圳市欧瑞博科技股份有限公司 Intelligent home control method, device and system and intelligent gateway

Also Published As

Publication number Publication date
CN113271240A (en) 2021-08-17

Similar Documents

Publication Publication Date Title
CN110794693B (en) Device configuration method, device, electronic device and storage medium
CN108366005A (en) The interlock method and device of electric room
CN110045622B (en) Household appliance control method and device and household appliance
CN105227626A (en) Content pushing method and device and terminal
CN109995805A (en) A kind of management method of intelligent robot, terminal device and medium
US20230152895A1 (en) Method for Changing Displayed Scene, Intelligent Display Screen and Readable Storage Medium
JP7145479B2 (en) Terminal device, lighting system using the same, and program for terminal device
CN110113232A (en) Apparatus control method, device, system, electronic equipment and storage medium
CN106789466A (en) The method and mobile terminal and intelligent appliance of a kind of control intelligent appliance
CN102692898A (en) Method, device, and system for controlling electrical appliance
CN113271240B (en) Data transmission method, intelligent household system and readable storage medium
CN106686074A (en) System and method for quickly constructing IOT (Internet of Things) application
JPWO2018127993A1 (en) Wireless communication system
CN113691935A (en) Network optimization method and device and electronic equipment
WO2022242520A1 (en) Smart switch and processing method and apparatus thereof, readable storage medium, and control system
CN111836339A (en) Network equipment
US7633911B2 (en) Network system, control system, information appliance, and program
CN112968860B (en) Method and device for managing electronic device
CN106105253A (en) The control method of controller, control system and control system
TW202125428A (en) Electronic control device management system and operation method thereof
GB2415855A (en) Variable network address lengths
CN114009143A (en) Configuration method and device of Internet of things equipment and storage medium
CN105432150A (en) Method and apparatus for controlling lighting
CN109995626A (en) Smart home device cut-in method and smart home system
US10416699B2 (en) Automated identification of available operations for equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant