CN103888504A - Host computer and slave computer in intelligent household system and communication method thereof - Google Patents

Host computer and slave computer in intelligent household system and communication method thereof Download PDF

Info

Publication number
CN103888504A
CN103888504A CN201310429865.5A CN201310429865A CN103888504A CN 103888504 A CN103888504 A CN 103888504A CN 201310429865 A CN201310429865 A CN 201310429865A CN 103888504 A CN103888504 A CN 103888504A
Authority
CN
China
Prior art keywords
message
data
slave
main frame
send
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.)
Granted
Application number
CN201310429865.5A
Other languages
Chinese (zh)
Other versions
CN103888504B (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.)
SUZHOU OMCARE TECHNOLOGY CO., LTD.
Original Assignee
SUZHOU SOLONIC TECHNOLOGY 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 SUZHOU SOLONIC TECHNOLOGY Co Ltd filed Critical SUZHOU SOLONIC TECHNOLOGY Co Ltd
Priority to CN201310429865.5A priority Critical patent/CN103888504B/en
Publication of CN103888504A publication Critical patent/CN103888504A/en
Application granted granted Critical
Publication of CN103888504B publication Critical patent/CN103888504B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a communication method for a host computer and a slave computer in an intelligent household system. The communication method for the host computer comprises that: step S1: a networking request message from the slave computer is received, and a response message corresponding to a current working mode of the host computer is sent to the slave computer, wherein the response message comprises at least first two of a network identifier, an identity identifier and a group identifier which are attributed to the slave computer; step S2: a first confirmation message which is from the slave computer and responded to the response message is received and correctness of the first confirmation message is judged, and if the judgment result is yes, a second confirmation message comprising a first operation command is sent to the slave computer; or a zero-clearing message comprising a second operation command is sent to the slave computer, and the process returns to the step S1; and step S3: communication is performed with the slave computer, and a control message comprising a control command is sent. The communication method is simple and low in complexity so that a requirement for low consumption of intelligent household networking communication is greatly met.

Description

Main frame, slave and communication means thereof in intelligent domestic system
Technical field
The present invention relates to communication technical field, relate in particular to main frame, slave and communication means thereof in intelligent domestic system.
Background technology
Along with the fast development of modern technologies, this emerging concept of " Internet of Things " (The Internet of things ") is known by people gradually, and Smart Home (Intelligent household) is exactly one of Internet of Things application outstanding representative.Smart Home is take house as platform, utilize comprehensive wiring technology, the network communications technology, Smart Home-system design scheme security precautions technology, automatic control technology, audio frequency and video technology by integrated facility relevant life staying idle at home, build the management system of efficient house facility and family's schedule affairs, it can effectively promote house security, convenience, comfortableness and artistry, and can realize the living environment of environmental protection and energy saving.
Wireless communication technology is a technology that application is more in Smart Home, the shortcoming such as numerous and diverse with respect to connecting up under wire communication mode, cost is high, be difficult for networking, autgmentability is poor, in Smart Home, use communication can save numerous and diverse wiring, and be easier to networking and expansion.In addition, also should meet low-power consumption requirement for the wireless system of Smart Home.Based on this, design maturation, a perfect communication protocol and seem particularly necessary.Particularly, this communication protocol should be simply, complexity is low to reduce power consumption, and should ensure stability and the fail safe of group-net communication in Smart Home.
Summary of the invention
The object of the present invention is to provide main frame, slave and communication means thereof in a kind of intelligent domestic system to meet the requirement that intelligent household networking communication complexity is low.
To achieve these goals, one aspect of the present invention provides the method for the main-machine communication in a kind of intelligent domestic system, for communicating with the slave of this intelligent domestic system, described main-machine communication method comprises: step S1: receive the networking request message from described slave, and sending the response message corresponding with the work at present pattern of this main frame to this slave, wherein said response message comprises at least first two in network identifier, identification identifier and the gid numbers of distributing to this slave; Step S2: receive and whether correctly judge from first acknowledge message in response to described response message of described slave, in this way, sending to described slave the second acknowledge message that comprises the first operational order; Otherwise, send the zero clearing message that comprises the second operational order to described slave, and return to step S1; And step S3: communicate with described slave, send the control message that comprises control command.
As another aspect of the present invention, the communication means of the slave in a kind of intelligent domestic system is also provided, for communicating with the main frame of this intelligent domestic system, described slave communication means comprises: step S11: send networking request message to described main frame; Step S21: receive the response message in response to described networking request message from described main frame, judge work at present pattern and send the first acknowledge message according to described response message; Step S31: receive the second acknowledge message in response to described the first acknowledge message or zero clearing message from described main frame, in the time receiving described the second acknowledge message, carry out the first operational order comprising in described the second acknowledge message; Otherwise, in the time receiving described zero clearing message, carry out the second operational order comprising in described zero clearing message, and return to step S11; And step S41: communicate with described main frame, receive the control message from described main frame, and carry out the control command comprising in described control message.
As one side more of the present invention, main frame in a kind of intelligent domestic system is also provided, comprise: response message sending module: for receiving the networking request message from slave, and sending the response message corresponding with the work at present pattern of this main frame to this slave, described response message comprises at least first two in network identifier, identification identifier and the gid numbers of distributing to this slave; The second acknowledge message sending module: for receiving and whether correctly judging from first acknowledge message in response to described response message of described slave, in this way, send to described slave the second acknowledge message that comprises the first operational order; Otherwise, trigger zero clearing message transmission module; Zero clearing message transmission module: for send the zero clearing message that comprises the second operational order to described slave; And first communication module: for communicating with described slave, send the control message that comprises control command.
An aspect of of the present present invention also provides the slave in a kind of intelligent domestic system, comprising: networking request message sending module, for send networking request message to main frame; The first acknowledge message sending module, for receiving the response message in response to described networking request message from described main frame, judges work at present pattern and sends the first acknowledge message according to described response message; Operational order Executive Module: receive the second acknowledge message in response to described the first acknowledge message or zero clearing message from described main frame, in the time receiving described the second acknowledge message, carry out the first operational order comprising in described the second acknowledge message; Otherwise, in the time receiving described zero clearing message, carry out the second operational order comprising in described zero clearing message, and trigger described networking request message sending module; And second communication module: for communicating with described main frame, receive the control message from described main frame, and carry out the control command comprising in described control message.
Beneficial effect of the present invention is: by transmission network request message, send response message to send the first acknowledge message and to send the step of the second acknowledge message according to work at present pattern, main frame and slave being connected under work at present pattern are realized, then can realize the communication between main frame and slave, communication means of the present invention is simple, complexity is low, has met well the low-power consumption requirement of intelligent household networking communication.
Accompanying drawing explanation
Fig. 1 is the flow chart of the main-machine communication method in the intelligent domestic system of the embodiment of the present invention.
Fig. 2 is the flow chart of the slave communication means in the intelligent domestic system of the embodiment of the present invention.
Fig. 3 is main frame in the intelligent domestic system of the embodiment of the present invention and the structural representation of slave.
Fig. 4 is the structural representation of the response message sending module of the main frame in the intelligent domestic system of the embodiment of the present invention.
Fig. 5 is the schematic flow sheet of the step S3 in the main-machine communication method in the intelligent domestic system of another embodiment of the present invention.
Fig. 6 is the schematic flow sheet of the step S41 in the slave communication means in the intelligent domestic system of another embodiment of the present invention.
Embodiment
For making those skilled in the art understand better the present invention, with reference to the accompanying drawings embodiments of the invention are elaborated.
Fig. 1 and Fig. 2 are respectively main-machine communication method in the intelligent domestic system of the embodiment of the present invention and the flow chart of slave communication means.
As shown in Figure 1, main-machine communication method (hereinafter to be referred as main-machine communication method) in the intelligent domestic system of the embodiment of the present invention comprising: step S1: receive the networking request message from slave, and send the response message corresponding with the work at present pattern of this main frame to this slave, wherein response message comprises at least first two in network identifier, identification identifier and the gid numbers of distributing to this slave; Step S2: receive and whether correctly judge from first acknowledge message in response to response message of slave, in this way, sending to slave the second acknowledge message that comprises the first operational order; Otherwise, send the zero clearing message that comprises the second operational order to slave, and return to step S1; And step S3: communicate with slave, send the control message that comprises control command.
As shown in Figure 2, the slave communication means in the intelligent domestic system of the embodiment of the present invention (hereinafter to be referred as slave communication means) comprising: step S11: send networking request message to main frame; Step S21: receive the response message in response to networking request message from main frame, judge work at present pattern and send the first acknowledge message according to response message; Step S31: receive the second acknowledge message in response to the first acknowledge message or zero clearing message from main frame, in the time receiving the second acknowledge message, carry out the first operational order comprising in the second acknowledge message; Otherwise, in the time receiving zero clearing message, carry out the second operational order comprising in zero clearing message, and return to step S11; And step S41: communicate with main frame, receive the control message from main frame, and carry out the control command comprising in control message.
Correspondingly, Fig. 3 is main frame in the intelligent domestic system of the embodiment of the present invention and the structural representation of slave (being called for short respectively below main frame and slave).
As shown in Figure 3, this main frame comprises: response message sending module: for receiving the networking request message from slave, and sending the response message corresponding with the work at present pattern of this main frame to this slave, response message comprises at least first two in network identifier, identification identifier and the gid numbers of distributing to this slave; The second acknowledge message sending module: for receiving and whether correctly judging from first acknowledge message in response to response message of slave, in this way, send to slave the second acknowledge message that comprises the first operational order; Otherwise, trigger zero clearing message transmission module; Zero clearing message transmission module: for send the zero clearing message that comprises the second operational order to slave; And first communication module: for communicating with slave, send the control message that comprises control command.
As shown in Figure 3, this slave comprises: networking request message sending module, for send networking request message to main frame; The first acknowledge message sending module, for receiving the response message in response to networking request message from main frame, judges work at present pattern and sends the first acknowledge message according to response message; Operational order Executive Module: receive the second acknowledge message in response to the first acknowledge message or zero clearing message from main frame, in the time receiving the second acknowledge message, carry out the first operational order comprising in the second acknowledge message; Otherwise, in the time receiving zero clearing message, carry out the second operational order comprising in zero clearing message, and trigger networking request message sending module; And second communication module: for communicating with main frame, receive the control message from main frame, and carry out the control command comprising in control message.
By above-mentioned transmission networking request message, send response message to send the first acknowledge message and to send the step of the second acknowledge message according to work at present pattern, main frame and slave being connected under work at present pattern are realized, then realized the communication between main frame and slave, the communication means of the embodiment of the present invention is simple, complexity is low, has met well the low-power consumption requirement of intelligent household networking communication.
Particularly, the second acknowledge message is networked for confirm main frame and slave to user, for example, in the time that the type of slave is lamp, can design the first operational order comprising in the second acknowledge message for making its flicker several times continuously; Or when the type of slave be some while thering are the household electrical appliance of sounding module, can design the first operational order for making it send specific sound; For another example, when the type of slave be some while thering are the household electrical appliance of display module, can design the first operational order for show networked information on display screen.The second operational order comprising in zero clearing message in the incorrect situation of the first acknowledge message (for example, the response message that network failure or error in data have caused slave to receive is incorrect, thereby make according to the first acknowledge message of response message transmission incorrect), make the received information of slave zero clearing (as the network identifier comprising in response message, gid numbers, identification identifier), slave can be after the received information of zero clearing, resending networking request.For the control command comprising in control message, those skilled in the art can design the 3rd concrete operational order and corresponding function thereof according to actual needs, for example control various electrical equipment startup, close etc.Thus, having realized main frame controls slave.In the embodiment of the present invention, for main-machine communication method, in step S1: in the time that work at present pattern is non-team work, send the first response message that comprises first network identifier and the first identification identifier to slave; In the time that work at present pattern is team work, send the second response message that comprises second network identifier, the second identification identifier and gid numbers to slave; The 3rd response message sending module: in the time that work at present pattern is repeater mode, send the 3rd response message that comprises the 3rd network identifier and tiers e'tat identifier to slave, wherein, tiers e'tat identifier has the first predetermined value that is different from the first identification identifier and the second identification identifier.
Correspondingly, with reference to figure 4, for the main frame of the embodiment of the present invention, response message sending module comprises: the first response message sending module: in the time that work at present pattern is non-team work, send the first response message that comprises first network identifier and the first identification identifier to slave; The second response message sending module: in the time that work at present pattern is team work, send the second response message that comprises second network identifier, the second identification identifier and gid numbers to slave; The 3rd response message sending module: in the time that work at present pattern is repeater mode, send the 3rd response message that comprises the 3rd network identifier and tiers e'tat identifier to slave, wherein, tiers e'tat identifier has the first predetermined value that is different from the first identification identifier and the second identification identifier.
The concrete meaning of three kinds of mode of operations is described below.Because network identifier represents the numbering of the network being created by this main frame, therefore, no matter under which kind of mode of operation, as long as with this main-machine communication, host assignment is unique to the network identifier of slave.Under non-team work, main frame and slave communicate separately, and the first identification identifier that slave obtains is different.When communication, main frame can judge by this first identification identifier received message is from which slave, and slave also can judge whether this message is to send to self according to the first identification identifier in received message.Under team work, the group of main frame and multiple slave machines communicates, main frame distributes second network identifier, the second identification identifier and gid numbers to slave, be the identical gid numbers that the multiple slaves in group distribute by main frame, main frame can be communicated by letter with these multiple slaves with identical gid numbers simultaneously, for example, in the time that these multiple slaves are lamp, main frame can be controlled the switch of multiple lamps simultaneously.Because the transmitting power of main frame, slave hardware radio frequency chip is limited, therefore, under some scene, main frame and slave need to communicate by relaying.Under repeater mode, the tiers e'tat identifier that main frame distributes has the first predetermined value, and by this tiers e'tat identifier, main frame can carry out communicating by letter under this repeater mode with slave.For distinguishing with non-team work and team work, the first identification identifier and the second identification identifier that this predetermined value should be distributed with main frame under non-team work and team work are all not identical.Can specifically set according to actual needs the first predetermined value, for example, suppose under non-team work and team work, setting main frame is that the first identification identifier of slave distribution and the span of the second identification identifier are: 0X02~0XFE, under repeater mode, can set tiers e'tat identifier value and be: 0X01.Now, slave receives identification identifier and has the response message of this first predetermined value, just can judge and lay oneself open under repeater mode and main-machine communication.
Thus, realize main frame and slave communicating by letter under these three kinds of mode of operations of non-team work, team work and repeater mode, met the needs of practical application.
With reference to figure 5, in the main-machine communication method of another embodiment of the present invention, step S3 also comprises: step S311: according to the length of data to be sent, build at least one first data-message; Step S312: if the quantity of this first data-message is greater than the second predetermined value, send the second data-message to slave, the quantity that wherein the second data-message comprises this first data-message and the length of data to be sent; Otherwise, send this first data-message to slave; Step S313: when after the 3rd acknowledge message in response to the second data-message receiving from slave, send this first data-message to slave, and after sending this first data-message, send end to slave; And step S314: if receive the 3rd data-message from the sequence number of the first data-message not receiving comprising of slave, again send the first data-message corresponding to the sequence number of this first data-message not receiving to slave.
Correspondingly, with reference to figure 6, in slave communication means, step S41 also comprises: step S421: receive the first data-message or the second data-message from main frame, if receive the second data-message, send the 3rd acknowledge message to main frame; Step S422: receive from this response of host in the first data-message and the end of the 3rd acknowledge message, and after receiving this end, detect whether there is the first data-message not receiving according to the second data-message, if, send the 3rd data-message, the sequence number that wherein the 3rd data-message comprises the first data-message not receiving to main frame; And step S423: receive the first data-message in response to the 3rd data-message from main frame.
Correspondingly, in the main frame of the present embodiment, first communication module also comprises: the first data-message builds module: for according to the length of data to be sent, build at least one first data-message; The first sending module: if the quantity of the first data-message is greater than the second predetermined value, send the second data-message to slave, the quantity that wherein the second data-message comprises the first data-message and the length of data to be sent; Otherwise, send the first data-message to slave; The second sending module: when after the 3rd acknowledge message in response to the second data-message receiving from slave, send the first data-message to slave, and after sending the first data-message, send end to slave; And secondary sending module: if receive the 3rd data-message from the sequence number of the first data-message not receiving comprising of slave, again send the first data-message corresponding to the sequence number of this first data-message not receiving to slave.
Correspondingly, in the slave of the present embodiment, second communication module also comprises: the first receiver module: receive the first data-message or the second data-message from main frame, if receive the second data-message, send the 3rd acknowledge message to main frame; The second receiver module: for receiving the first data-message and the end in response to the 3rd acknowledge message from main frame, and after receiving this end, detect whether there is the first data-message not receiving according to the second data-message, if, send the 3rd data-message, the sequence number that wherein the 3rd data-message comprises the first data-message not receiving to main frame; And secondary receiver module: for receiving the first data-message in response to the 3rd data-message from main frame.
In the time that data to be sent (data to be sent refer to that main frame sends the data such as message, short message, picture to slave) are excessive, for ease of transmission, generally need these data encapsulation to send respectively in multiple data-messages, if network is stable not, to cause loss of data, slave likely can not receive partial data message.The method that adopts the present embodiment, slave can detect the data-message of loss and require main frame again to send these data-messages, thus the loss of data of having avoided unstable networks to cause.The quantity that comprises the first data-message due to the second data-message, therefore, slave can know that it should receive how many first data-messages, thereby can detect whether there is the first data-message not receiving.Slave is received and is represented after the end that the first data-message is sent, can detect whether there is the first data-message not receiving.The sequence number of the first data-message that this does not receive about how to confirm, should belong to ordinary skill in the art means, for example, when main frame sends multiple the first data-message, these first data-messages are numbered, and this numbering is write to the ad-hoc location of this first data-message.Numbering the first data-message receiving from machine testing, then according to the quantity of the first data-message of knowing from the second data-message, just can learn the sequence number of the first data-message not receiving.In addition,, according to the quantity of the length of data to be sent and the first data-message, slave can judge these data end position accurately in last received data-message, thereby avoids receiving invalid data.
In a preferred embodiment, message all has unified message format, and this message format comprises the field of distributing to following message: message prefix (BEGIN_CHAR), network identifier (ID_GROUP), identification identifier (ID), gid numbers (ID_PART), informed source ground (ID_FROM), message destination (ID_TO), operational order and data (DATA).Preferably, operational order field can expand to one-level operational order (CMD0) field and secondary operation order (CMD1) field, to enrich the various demands of communicating by letter between main frame and slave, the type of the message that sends when this operational order can represent to communicate by letter between main frame and slave, for example main frame sends response message to slave, and slave knows according to the operational order field in response message the response message that this message networking request message that to be main frame send corresponding to self sends; In some cases, also represent to carry out corresponding operation for host computer control slave, as main frame transmits control message to slave, slave is carried out corresponding operation according to the operational order in message.Those skilled in the art can arrange concrete operational order according to the needs of practical application.Following table 1 has provided a kind of message format of example.
Table 1 message format
Figure BDA0000384461220000091
According to above-mentioned message format, the various types of message that occur in the embodiment of the present invention are provided to some examples below.
For example, the networking request message that slave sends to main frame is:
Begin_Char ID_GROUP ID ID_PART ID_FROM ID_TO CMD0 CMD1 DATA
0X53 0X00 0XFF 0X00 0XFF 0X01 0X00 0X00 0X01
Wherein, CMD0:0X00 is networking order, represents that this message is for networking request message.DATA:0X01 represents that the type of slave is lamp.
For another example the response message that, main frame sends to slave is:
Begin_Char ID_GROUP ID ID_PART ID_FROM ID_TO CMD0 CMD1 DATA
0X53 0X234789 0X00 0X00 0X01 0XFF 0X00 0X00 See below
In above table, the value of ID_GROUP is the value of main frame to the network identifier of slave distribution, has comprised the identification identifier 0X02 of host assignment to slave in DATA field, under this external team work, also can comprise gid numbers 0X01.Slave receives response message, reads the network identifier etc. of distributing to oneself from DATA field, thereby sends the first acknowledge message.According to having gid numbers in DATA field, judge that work at present pattern is team work and sends acknowledge message.The acknowledge message that slave sends to main frame is:
Begin_Char ID_GROUP ID ID_PART ID_FROM ID_TO CMD0 CMD1 DATA
0X53 0X234789 0X02 0X01 0X02 0X01 0X00 0X01 0X01
Wherein, CMD0:0X00, CMD1:0X01 represents that this message is the acknowledge message that slave sends to main frame.In this acknowledge message, the value of ID_GROUP, ID, ID_PART field is all that the value that in the response message receiving according to it, main frame distributes to slave is come.
Also for example, main frame need to send some data to slave, and the message that now main frame sends is data-message.Data can be written in DATA field, and slave receives after this data-message, can store the data in DATA field, and in some cases, slave also will show these data (as data such as message, short message, pictures).
In addition, in some embodiment, message can also be packaged into the form of the frame with regular length in transmission over networks therein.
In above preferred embodiment, the message using due to communication process all has unified message format, has therefore ensured the stability of group-net communication in Smart Home.
Preferably, for the main-machine communication method of the embodiment of the present invention, in the time that work at present pattern is repeater mode, from step S2, the value of the identification identifier comprising in the message that main frame sends its last institute sending/receiving to message in add that the second predetermined value obtains on the basis of value of the identification identifier that comprises.Correspondingly, for the slave communication means of the embodiment of the present invention, in the time that work at present pattern is repeater mode, from step S21, the value of the identification identifier comprising in the message that slave sends its last institute sending/receiving to message in add that the second predetermined value obtains on the basis of value of the identification identifier that comprises.
Particularly, the value of the identification identifier comprising in the response message (being that slave is in the received response message of step S21) that main frame sends at step S1 has the first predetermined value, it can add 1(according to the value of the identification identifier comprising in transmission first acknowledge message of response message and suppose that the second predetermined value is 1 on the basis of this first predetermined value), main frame has received this first acknowledge message at step S2, if the first acknowledge message is correct, send the second acknowledge message, on the basis of the value of the identification identifier that the value of the identification identifier now comprising in the second acknowledge message can comprise in this first acknowledge message, continue to add 1, by that analogy, the message of sending/receiving each time below, the value of the identification identifier in message all can a front sending/receiving to message in continue to add 1 on the basis of value of the identification identifier that comprises.The benefit of doing is like this, each message has been endowed unique identification identifier, thereby the value of identification identifier in the message that relaying forwards by the value of the identification identifier in the message relatively forwarding and the value several times nearest with it on informed source ground in forwarding messages and the value on informed source ground, if identical, can stop forwarding this frame, while having prevented from having multiple relayings to exist in network, between relaying, the caused data of forwarding messages are stopped up mutually simultaneously.
Generally speaking, the main frame in the present invention can be intelligent switch, can be also the terminal being connected with computer; Slave can be the various household electrical appliance with intelligent chip.Preferably, main frame and slave all have EEPROM(EPROM (Erasable Programmable Read Only Memory)), for the important information of storing communication process, the information such as the network identifier of such as host assignment, identification identifier, gid numbers.
By the above-mentioned detailed description to the embodiment of the present invention, the beneficial effect of the embodiment of the present invention is:
1, by transmission network request message, send response message to send the first acknowledge message and to send the step of the second acknowledge message according to work at present pattern, main frame and slave being connected under work at present pattern are realized, then realized the communication between main frame and slave, the communication means of the embodiment of the present invention is simple, complexity is low, has met well the low-power consumption requirement of intelligent household networking communication.
2, realize main frame and slave communicating by letter under these three kinds of mode of operations of non-team work, team work and repeater mode, met the needs of practical application.
3, the message of main frame and slave signal post sending and receiving has all been used unified message format, effective guarantee the stability of group-net communication in Smart Home.
4, in the time that data to be sent (data to be sent refer to that main frame sends the data such as message, short message, picture to slave) are excessive, for ease of transmission, generally need these data encapsulation to send respectively in multiple data-messages, if network is stable not, to cause loss of data, slave likely can not receive partial data message.The method that adopts the embodiment of the present invention, slave can detect the data-message of loss and require main frame again to send these data-messages, thus the loss of data of having avoided unstable networks to cause.
5, under repeater mode, because each message has been endowed unique identification identifier, the value on the value of the identification identifier comprising in the message that the value several times nearest with it on the value of the identification identifier comprising in the message that relaying forwards by comparison in forwarding messages and informed source ground forward and informed source ground, if identical, can stop forwarding this frame, thereby while having prevented from having multiple relayings to exist in network, between relaying, the caused data of forwarding messages are stopped up mutually simultaneously.
What deserves to be explained is; the present invention is not limited to above-mentioned specific embodiment; do not deviating under spirit of the present invention and real situation thereof; those of ordinary skill in the art can make according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection range of claims of the present invention within.

Claims (12)

1. the main-machine communication method in intelligent domestic system, for communicating with the slave of this intelligent domestic system, described main-machine communication method comprises:
Step S1: receive the networking request message from described slave, and sending the response message corresponding with the work at present pattern of this main frame to this slave, wherein said response message comprises at least first two in network identifier, identification identifier and the gid numbers of distributing to this slave;
Step S2: receive and whether correctly judge from first acknowledge message in response to described response message of described slave, in this way, sending to described slave the second acknowledge message that comprises the first operational order; Otherwise, send the zero clearing message that comprises the second operational order to described slave, and return to step S1; And
Step S3: communicate with described slave, send the control message that comprises control command.
2. the method for claim 1, is characterized in that, in step S1:
In the time that described work at present pattern is non-team work, send described the first response message that comprises first network identifier and the first identification identifier to described slave;
In the time that described work at present pattern is team work, send described the second response message that comprises second network identifier, the second identification identifier and gid numbers to described slave;
In the time that described work at present pattern is repeater mode, send described the 3rd response message that comprises the 3rd network identifier and tiers e'tat identifier to described slave, wherein, described tiers e'tat identifier has the first predetermined value that is different from described the first identification identifier and described the second identification identifier.
3. the method for claim 1, is characterized in that, described step S3 also comprises:
Step S311: according to the length of data to be sent, build at least one first data-message;
Step S312: if the quantity of described the first data-message is greater than the second predetermined value, send the second data-message to described slave, the quantity that wherein said the second data-message comprises described the first data-message and the length of described data to be sent; Otherwise, send described the first data-message to described slave;
Step S313: when after the 3rd acknowledge message in response to described the second data-message receiving from described slave, send described the first data-message to described slave, and after sending described the first data-message, send end to described slave; And
Step S314: if receive the 3rd data-message from the sequence number of described the first data-message not receiving comprising of described slave, again send the first data-message corresponding to the sequence number of this first data-message not receiving to described slave.
4. as the method as described in arbitrary in claim 1~3, it is characterized in that, each message all has unified message format, and this message format comprises the field of distributing to following each information: message prefix, network identifier, identification identifier, gid numbers, informed source ground, message destination, operational order and data; And
In the time that described work at present pattern is repeater mode, from step S2, the value of the identification identifier comprising in the message that described main frame sends its last institute sending/receiving to message in add that the second predetermined value obtains on the basis of value of the identification identifier that comprises.
5. the slave communication means in intelligent domestic system, for communicating with the main frame of this intelligent domestic system, described slave communication means comprises:
Step S11: send networking request message to described main frame;
Step S21: receive the response message in response to described networking request message from described main frame, judge work at present pattern and send the first acknowledge message according to described response message;
Step S31: receive the second acknowledge message in response to described the first acknowledge message or zero clearing message from described main frame, in the time receiving described the second acknowledge message, carry out the first operational order comprising in described the second acknowledge message; Otherwise, in the time receiving described zero clearing message, carry out the second operational order comprising in described zero clearing message, and return to step S11; And
Step S41: communicate with described main frame, receive the control message from described main frame, and carry out the control command comprising in described control message.
6. method as claimed in claim 5, is characterized in that, described step S41 comprises:
Step S421: receive the first data-message or the second data-message from described main frame, if receive described the second data-message, send the 3rd acknowledge message to described main frame;
Step S422: receive the first data-message and end in response to described the 3rd acknowledge message from described main frame, and after receiving described end, detect whether there is the first data-message not receiving according to described the second data-message, if, send the 3rd data-message, the sequence number of the first data-message not receiving described in wherein said the 3rd data-message comprises to described main frame; And
Step S423: receive the first data-message in response to described the 3rd data-message from described main frame.
7. the method as described in claim 5 or 6, it is characterized in that, each message all has unified message format, and this message format comprises the field of distributing to following each information: message prefix, network identifier, identification identifier, gid numbers, informed source ground, message destination, operational order and data; And
In the time that described work at present pattern is repeater mode, from step S21, the value of the identification identifier comprising in the message that described slave sends its last institute sending/receiving to message in add that the second predetermined value obtains on the basis of value of the identification identifier that comprises.
8. the main frame in intelligent domestic system, comprising:
Response message sending module: for receiving the networking request message from slave, and sending the response message corresponding with the work at present pattern of this main frame to this slave, described response message comprises at least first two in network identifier, identification identifier and the gid numbers of distributing to this slave;
The second acknowledge message sending module: for receiving and whether correctly judging from first acknowledge message in response to described response message of described slave, in this way, send to described slave the second acknowledge message that comprises the first operational order; Otherwise, trigger zero clearing message transmission module;
Zero clearing message transmission module: for send the zero clearing message that comprises the second operational order to described slave; And
First communication module: for communicating with described slave, send the control message that comprises control command.
9. main frame as claimed in claim 8, is characterized in that, described response message sending module comprises:
The first response message sending module: in the time that described work at present pattern is non-team work, send described the first response message that comprises first network identifier and the first identification identifier to described slave;
The second response message sending module: in the time that described work at present pattern is team work, send described the second response message that comprises second network identifier, the second identification identifier and gid numbers to described slave;
The 3rd response message sending module: in the time that described work at present pattern is repeater mode, send described the 3rd response message that comprises the 3rd network identifier and tiers e'tat identifier to described slave, wherein, described tiers e'tat identifier has the first predetermined value that is different from described the first identification identifier and described the second identification identifier.
10. main frame as claimed in claim 8, is characterized in that, described first communication module also comprises:
The first data-message builds module: for according to the length of data to be sent, build at least one first data-message;
The first sending module: if the quantity of described the first data-message is greater than the second predetermined value, send the second data-message to described slave, the quantity that wherein said the second data-message comprises described the first data-message and the length of described data to be sent; Otherwise, send described the first data-message to described slave;
The second sending module: when after the 3rd acknowledge message in response to described the second data-message receiving from described slave, send described the first data-message to described slave, and after sending described the first data-message, send end to described slave; And
Secondary sending module: if receive the 3rd data-message from the sequence number of the first data-message not receiving comprising of described slave, again send the first data-message corresponding to the sequence number of this first data-message not receiving to described slave.
Slave in 11. 1 kinds of intelligent domestic systems, comprising:
Networking request message sending module, for sending networking request message to main frame;
The first acknowledge message sending module, for receiving the response message in response to described networking request message from described main frame, judges work at present pattern and sends the first acknowledge message according to described response message;
Operational order Executive Module: receive the second acknowledge message in response to described the first acknowledge message or zero clearing message from described main frame, in the time receiving described the second acknowledge message, carry out the first operational order comprising in described the second acknowledge message; Otherwise, in the time receiving described zero clearing message, carry out the second operational order comprising in described zero clearing message, and trigger described networking request message sending module; And
Second communication module: for communicating with described main frame, receive the control message from described main frame, and carry out the control command comprising in described control message.
12. slaves as claimed in claim 11, is characterized in that, described second communication module also comprises:
The first receiver module: receive the first data-message or the second data-message from described main frame; If receive the second data-message from described main frame, send the 3rd acknowledge message to described main frame;
The second receiver module: for receiving the first data-message and the end in response to described the 3rd acknowledge message from described main frame, and after receiving described end, detect whether there is the first data-message not receiving according to described the second data-message, if, send the 3rd data-message, the sequence number of the first data-message not receiving described in wherein said the 3rd data-message comprises to described main frame; And
Secondary receiver module: for receiving the first data-message in response to described the 3rd data-message from described main frame.
CN201310429865.5A 2013-09-18 2013-09-18 Main frame, slave and its communication means in intelligent domestic system Active CN103888504B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310429865.5A CN103888504B (en) 2013-09-18 2013-09-18 Main frame, slave and its communication means in intelligent domestic system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310429865.5A CN103888504B (en) 2013-09-18 2013-09-18 Main frame, slave and its communication means in intelligent domestic system

Publications (2)

Publication Number Publication Date
CN103888504A true CN103888504A (en) 2014-06-25
CN103888504B CN103888504B (en) 2017-10-27

Family

ID=50957222

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310429865.5A Active CN103888504B (en) 2013-09-18 2013-09-18 Main frame, slave and its communication means in intelligent domestic system

Country Status (1)

Country Link
CN (1) CN103888504B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106385410A (en) * 2016-09-08 2017-02-08 四川长虹电器股份有限公司 Intelligent household appliance control system based on MQTT
CN107995256A (en) * 2017-10-26 2018-05-04 康美健康云服务有限公司 A kind of wireless data collection methods, electronic equipment, storage medium, system
CN108375958A (en) * 2018-01-15 2018-08-07 珠海格力电器股份有限公司 A kind of electric system
CN110493338A (en) * 2019-08-20 2019-11-22 深圳柚石物联技术有限公司 A kind of equipment mutual control method, system and computer readable storage medium
CN111709684A (en) * 2020-06-10 2020-09-25 贝榕物联(常州)有限公司 Master-slave machine numbering method and weighing goods shelf
CN113452698A (en) * 2021-06-25 2021-09-28 佛山市顺德区美的电子科技有限公司 Terminal identity distribution method, control terminal and controlled equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110222529A1 (en) * 2010-03-15 2011-09-15 Samsung Electronics Co., Ltd. Method and system for storing session information in universal plug and play telephony service
CN102752881A (en) * 2011-04-21 2012-10-24 佛山市顺德区美的电热电器制造有限公司 Wireless self-networking method of intelligent home system
CN103152148A (en) * 2007-10-02 2013-06-12 英飞凌科技股份公司 Retransmission scheme for communication systems

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152148A (en) * 2007-10-02 2013-06-12 英飞凌科技股份公司 Retransmission scheme for communication systems
US20110222529A1 (en) * 2010-03-15 2011-09-15 Samsung Electronics Co., Ltd. Method and system for storing session information in universal plug and play telephony service
CN102752881A (en) * 2011-04-21 2012-10-24 佛山市顺德区美的电热电器制造有限公司 Wireless self-networking method of intelligent home system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106385410A (en) * 2016-09-08 2017-02-08 四川长虹电器股份有限公司 Intelligent household appliance control system based on MQTT
CN107995256A (en) * 2017-10-26 2018-05-04 康美健康云服务有限公司 A kind of wireless data collection methods, electronic equipment, storage medium, system
CN108375958A (en) * 2018-01-15 2018-08-07 珠海格力电器股份有限公司 A kind of electric system
CN108375958B (en) * 2018-01-15 2020-06-19 珠海格力电器股份有限公司 Electrical appliance system
CN110493338A (en) * 2019-08-20 2019-11-22 深圳柚石物联技术有限公司 A kind of equipment mutual control method, system and computer readable storage medium
CN111709684A (en) * 2020-06-10 2020-09-25 贝榕物联(常州)有限公司 Master-slave machine numbering method and weighing goods shelf
CN111709684B (en) * 2020-06-10 2022-08-23 贝榕物联(常州)有限公司 Master-slave machine numbering method and weighing goods shelf
CN113452698A (en) * 2021-06-25 2021-09-28 佛山市顺德区美的电子科技有限公司 Terminal identity distribution method, control terminal and controlled equipment

Also Published As

Publication number Publication date
CN103888504B (en) 2017-10-27

Similar Documents

Publication Publication Date Title
CN103888504A (en) Host computer and slave computer in intelligent household system and communication method thereof
US11979274B2 (en) Network management method and apparatus
CN105022276A (en) Smart home system and data interaction method thereof
CN109212983A (en) Intelligent home furnishing control method, gateway and intelligent home control system
CN105429883B (en) The long connection method of multiple smart machines and server apparatus and smart machine
CN105357116B (en) A kind of method and intelligent terminal of multiple terminal access server
CN102625530B (en) Light emitting diode (LED) lamplight remote control system based on institute of electrical and electronic engineers (IEEE) 802.15.4
CN103713608A (en) Hierarchical network architecture of wireless Internet-of-Things home system and networking communication method thereof
CN106411667A (en) Network chip based smart home multi-cloud control method and system
CN105392181B (en) A kind of networking method of smart machine, apparatus and system
CN104994530B (en) More Wi-Fi internet of things equipment grouping collective's control system and method based on group MAC Address
CN108989164A (en) Intelligent home furnishing control method, intelligent home control system and mobile terminal
RU2011153965A (en) ENHANCED COMMISSIONING OF WIRELESS NETWORK SYSTEMS
CN106603716A (en) Synchronization method of intelligent device state, intelligent device and control terminal thereof
CN105392185B (en) A kind of networking method of smart machine, apparatus and system
CN105024895A (en) Intelligent household wireless ad-hoc network communication system, networking method and working method
CN104883656A (en) Method for establishing steady state piconet based on bluetooth and system for establishing steady state piconet based on bluetooth
CN106789475A (en) Household electric appliance control method and device
CN103763187A (en) IP gateway of EnOcean and KNX and communication network and method
CN111654844A (en) Device pairing method and related device and device
CN101217492A (en) Address information processing method and device and system
CN105430597A (en) Bluetooth device, and Bluetooth Scatternet networking method and device thereof
CN110798815A (en) Intelligent household system, electric appliance control method and device and router
CN103249010B (en) Communication equipment and communication means
CN106161164A (en) Mobile terminal controls the method and system of household electrical appliances

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20151223

Address after: 401, room 20, building 158, 215000 Jinfeng Road, Suzhou hi tech Zone, Jiangsu, China

Applicant after: SUZHOU OMCARE TECHNOLOGY CO., LTD.

Address before: 215000 Jiangsu province Suzhou city road high tech Zone No. 69 deer Guwei Suzhou Science Park light mechanical and Electrical Technology Co. Ltd. Shuo ear

Applicant before: SUZHOU SOLONIC TECHNOLOGY CO., LTD.

GR01 Patent grant
GR01 Patent grant