Control device in the domestic network system and methodTechnical field
The present invention relates to domestic network system, especially about control device in the domestic network system and method.
Background technology
Along with development of science and technology, the automatic control of family that closely reaches the remote control domestic electrical equipment product will enter family's step.The family at initial stage control automatically is to utilize phone or infrared ray to control each equipment respectively, fail mutually between each equipment to form and connect, but now the domestic network system between the household appliances of constructing by means of communication and the controller of control domestic network system carry out integrated management.
The simple structure chart of domestic network system as shown in Figure 1, a plurality of electronic products of family such as refrigerator, air-conditioning, microwave oven, washing machine, PC (PC) etc. connect by communication bus and constitute domestic network system.If the microcomputer computer of each product possesses the compatible communication function, directly connect and compose domestic network system with communication bus; If the microcomputer of each product does not possess the compatible communication function, the additional communication module of assembling constitutes domestic network system on each product.Can select to control the controller of the domestic network system of family, possess PC in present most of families, the application program of installation and control domestic network system in PC just can be used network controller by PC.
The control method in domestic network system of the family of prior art is described below with reference to Fig. 2:
Suppose by N product composition network, suppose to communicate mutually between product A and the product B.At first, the user utilizes product A to import the control command S21 of product B.That is, be example with the product A, observe control of product device (the Graphic User Interface) picture of display that is connected with PC or the electronic product that possesses display unit, again by input mediums such as keyboard, mouses, the order of input control product B.
Product A transmits the control command S22 of user's input to product B.Be the transmission (for example LAN/RS 232-C) of the control device control self of product A, or be connected to outside conveyer (for example modem dedicated for electric line communication), transmit after the control command of user's input is modulated into the order that is fit to communication line.Product B will be received the control command S23 that transmits from product A.Follow the action S24 that product B will be carried out the relevant controlling order.That is, the control device of product B will the algorithm of sequencing reads the control command bag when making after, finish relevant action.
Then, product B transmits the reply data S25 that has finished control command to product A.Product A is received the reply data S26 that product B transmits, learn that control command has normally been carried out after, will carry out next one and move; When A does not receive reply data within a certain period of time, will transmit control command once more or cut off communication.
Because after product B transmitted and to reply, A just continued fill order,, prevent from that A from can not receive to reply so the required time of reading order establishes fully longly.In this case, there is the too long shortcoming of equipment wait acknowledge time that transmits order.
Two classes that order can be divided in addition, shorter time of implementation of needs and longer time of implementation of needs according to the required time of fill order.For the order of shorter time of implementation of needs,, then there is the problem that can't form communication if communicate by letter with the mode of replying after the fill order.
In the order of shorter time of implementation of needs, the situation of the change order of representative example transfer rate as shown in Figure 3.In this case, if the data transfer rate of product A is set at 2400bps, transmit the order that transfer rate is changed to 9600bps to product B, product B will be received the order of product A, at first the data transfer rate with oneself changes to 9600bps, and then oneself has changed to the reply data of 9600bps with the speed of 9600bps to the product A transmission.But since product A current be the state that is set at 2400bps, so can't receive the reply data of product B, thereby cause communication disruption.
As shown in Figure 4, the situation that needs the mailing address change order of shorter time of implementation.In this case, the address that product A transmits order be ' 0 ', and the address that product B is received is ' 1 ', and requirement is ' 2 ' with the address change of product B, and then product B will be received the address change order from product A, is ' 2 ' with oneself address change.Product B will be ' 2 ' with the address of transmitting this moment, be ' 0 ' product A transmission reply data to the address of receiving.But because product A itself transmits the address of the product of order is ' 0 ', thus can't receive from the address to be the reply data of ' 2 ' product, thereby can't constitute communication.
So there is following problem in the domestic network system of prior art:
1. because time set that fill order is required too long, so it is too long to transmit time of equipment wait acknowledge of order.
2. owing to after fill order, transmitting reply data, so under the situation of time of implementation, can't receive according to the setting content change of command execution and reply, thereby can't constitute communication than short order.
Summary of the invention
Technical problem to be solved by this invention provides a kind of reducing and replys the stand-by period, at first carries out according to information concerning order and replys, and prevents control device and method in the domestic network system that the communication barrier takes place.
In order to solve the problems of the technologies described above, domestic network system of the present invention possesses at least one and has the transmit leg household equipment that decision transmits the conveyer of data class; Form network with at least one transmit leg household equipment, reply processing sequence according to the data class decision that the transmit leg household equipment is sent, possess at least one and have according to the recipient's household equipment that processing sequence transmits the conveyer of answer signal of replying that determines; The kind of information that from the data that the transmit leg household equipment transmits, comprises data, the conveyer of described transmit leg household equipment comprises the sending part that transmits data, definition of data classification kind or for the data that define kind being sent to the control part of the control sending part of recipient's household equipment; The conveyer of described recipient's household equipment comprises the sending part that transmits answer signal, processing sequence is replied in decision according to the data class sent from the transmit leg household equipment, replys the control part of processing sequence toward the control sending part of transmit leg household equipment echo reply signal according to decision again.
The data that transmit from the transmit leg household equipment comprise the order that makes corresponding recipient's household equipment carry out corresponding actions.
Domestic network system of the present invention can also be to possess the transmit leg household equipment that at least one has the conveyer that transmits data; Form network with at least one transmit leg household equipment, possess at least one and determine the data class that the transmit leg household equipment is sent earlier, processing sequence is replied in decision again, according to recipient's household equipment of the conveyer of replying processing sequence echo reply signal that determines; The conveyer of transmit leg household equipment and recipient's household equipment respectively comprises transmission/acceptance division of carrying out data transmission/reception, the order/kind table that defines the type of the order that is comprised in the transmission/reception data, replys/the kind classification command processor of fill order processing sequence and the control part of replying processing sequence control transmission/acceptance division echo reply signal that determines according to kind classification command processor according to defined command type decision.
The data that transmit from the transmit leg household equipment comprise the order that makes recipient's household equipment carry out corresponding actions.
Order/kind table is stored in the control part or independent memory of transmit leg or recipient's household equipment.
A kind of control method in domestic network system of the present invention, form network at recipient's household equipment and at least one transmit leg household equipment, at the transmit leg household equipment, control part control transmission/acceptance division will comprise the control command of user's input and the data of order kind of information and send to recipient's household equipment; At recipient's household equipment, judge the sequencing of decision control command and echo reply data according to the kind of the order in the data that receive.
The kind that obtains judging is the inferior inferior situation of exectorial priority that is higher than of priority that answer signal transmits, and at first carries out answer signal and transmits; The kind that obtains judging is the situation that the priority that transmits of answer signal time is lower than exectorial priority time, at first carries out the data command process.
A kind of control method in domestic network system of the present invention, form network at recipient's household equipment and at least one transmit leg household equipment, at the transmit leg household equipment, control part control transmission/acceptance division, the data that will comprise the control command of user's input send to recipient's household equipment; At recipient's household equipment, compare according to order and order/kind table in the data that receive, judge the order kind of corresponding data, the sequencing of decision control command and echo reply data.
The kind that obtains judging is the inferior inferior situation of exectorial priority that is higher than of priority that answer signal transmits, and at first carries out answer signal and transmits; The kind that obtains judging is the situation that the priority that transmits of answer signal time is lower than exectorial priority time, at first carries out the data command process.
The beneficial effect of domestic network system of the present invention and communication means thereof is:
The first, foundation reception data are at first carried out and are replied, and carry out corresponding order then, reply the needed stand-by period raising overall system efficiency thereby can shorten.
The second, under at first exectorial situation, the order that garble can take place carried out earlier reply, thereby can prevent the generation of garble in advance, improve the confidence level of domestic network system.
The 3rd, the present invention comes operational system by using simple program and memory, therefore is applicable to the domestic network system of all forms, and range of application is quite extensive.When being used in the little family expenses domestic network system of data communication consumption, can bring into play its effect to greatest extent.
Description of drawings
Fig. 1 is the module map that the domestic network system of prior art constitutes.
Fig. 2 is the flow chart of the control method in domestic network system of prior art.
Fig. 3 is the communication example figure of Fig. 2.
Fig. 4 is another communication example figure of Fig. 2.
Fig. 5 is the module map that first embodiment of domestic network system of the present invention constitutes.
Fig. 6 is the flow chart of first embodiment of the control method in domestic network system of the present invention.
Fig. 7 is the module map of formation of second embodiment of domestic network system of the present invention.
Fig. 8 is the flow chart of second embodiment of the control method in domestic network system of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments the control device river method in the domestic network system of the present invention is described in further detail:
First embodiment
As shown in Figure 5, domestic network system of the present invention comprises having the function that can transmit/receive and can control other products (in product A and product B), and actual figure reportedly send/receive the transmission/acceptance division 12,22 of action; Classification decision according to type replys/the kindclassification command processor 11,21 of fill order processing sequence; The data of receiving according to kind classification processing command routine processes, are controlled thecontrol part 13,23 of transmission/acceptance division 12,22.
Product A of the present invention, product B and products C are positioned at and constitute direct communication or utilize in the middle of the network of communicate by letter (power line communication modem) of power line, and limiting product A is the transmit leg household equipment, and product B is recipient's household equipment.
Product A has the conveyer of the decision data class that will transmit; Product B and at least one transmit leg household equipment product A form network, reply processing sequence according to the data class decision that product A is sent, and reply processing sequence echo reply signal according to decision again.
The conveyer of product A comprises the transmission/acceptance division 12 that transmits/receive data; In order to define the order kind classification that is contained in the data or for the data that comprise the order that defines kind being sent to the kind classification process ofcommands program 11 of product B; Thecontrol part 13 of control transmission/acceptance division 12.
The conveyer of product B comprises the transmission/acceptance division 22 that transmits answer signal; The kindclassification command processor 21 of the data of sending according to the transmit leg household equipment from product B is replied thecontrol part 23 of processing sequence toward the control transmission/acceptance division 22 of product A echo reply signal according to decision again.
Below with reference to Fig. 6, describe the above-mentioned control method in domestic network system in detail:
At first, the user utilizes the control command S61 of product A input product B.That is, be example with the product A, observe the control of product device picture of display that is connected with PC or the electronic product that possesses display unit, by input mediums such as keyboard, mouses, the order kind of information of input product B change.
At this moment, product A transmits to product B and comprises the control command that the user imports and the data S62 of corresponding kind of information.It is the transmission/acceptance division 12 (for example LAN/RS232-C) ofcontrol part 13 controls self of product A, perhaps be connected to outside sending part (for example modem dedicated for electric line communication), the data-modulated that will comprise the control command of user's input and kind of information transmits after becoming to satisfy the transmission condition of communication line.
Kind of information is for before fill order, at first distinguishes the order that will reply.Kind of information has been programmed in the action of control part of product, and can change as required.Aforesaid kind of information is divided into first kind and second kind.First type definition is at first carried out corresponding control command after receiving the data of transmit leg from the recipient, and then transmits reply data.Second type definition at first transmits reply data after receiving the data of transmit leg from the recipient, carry out corresponding control command then.
At this moment, product B will be received the control command S63 that transmits from product A.The kind of information of product B utilization in the data of receiving judged the kind S64 of corresponding data.If the S64 as a result that judges is first kind, at first carry out the control command S65 that is included in the data, transmit reply data S66 in the product A.If the S64 as a result that judges is second kind, at first product B transmits the reply data S67 that has received information toward product A, carries out the control command S68 that is included in the data then.
At this moment, product A is received the reply data S69 that product B transmits, and learns that the order of transmission is normally carried out.
Second embodiment
As shown in Figure 7, domestic network system of the present invention comprises possessing the function that transmits/receive and can control other products (in product A and product B), and actual figure reportedly send/receive the transmission/acceptance division 43,53 of action; Classification decision according to type replys/the kindclassification command processor 41,51 of fill order processing sequence; Order/kind table 42 of classification kind, 52 are respectively ordered in definition; The data of receiving and order/kind table 42,52 compare the back judges its corresponding kind, and control transmission/acceptance division 43,53, the control part of handling by kindclassification command processor 44,54.
Product A of the present invention, product B and products C are positioned at and constitute direct communication or utilize in the middle of the network of communicate by letter (power line communication modem) of power line, and limiting product A is the transmit leg household equipment, and product B is recipient's household equipment.
Product A has the conveyer of the decision data class that will transmit; Product B possesses and at least one transmit leg household equipment product A forms network, and the data class sent of decision product A, and processing sequence is replied in decision according to data class, replys processing sequence echo reply signal according to decision again.
The conveyer of product B comprises the transmission/acceptance division 53 that transmits/receive data; Judge and the kind of comparing data according to the benchmark set, and decide according to the kind that has obtained judging and to reply processing sequence, thereby make answer signal be sent to thecontrol part 54 of the control transmission/acceptance division 53 of respective sequence.
Describe the above-mentioned control method in domestic network system in detail below with reference to Fig. 8:
At first, the user utilizes the control command S81 of product A input product B.With the product A is example, observes the control of product device picture of display that is connected with PC or the electronic product that possesses display unit, by input mediums such as keyboard, mouses, and input product B control command.
This moment, product A transmitted the data S82 that comprises the control command that the user imports to product B.Promptly, transmission/the acceptance division 43 (for example LAN/RS 232-C) ofcontrol part 44 controls of product A self, perhaps be connected to outside sending part (for example modem dedicated for electric line communication), the data-modulated that will comprise the control command of user's input transmits after becoming can satisfy the transmission condition of communication line.Then, product B will be received the control command S83 that transmits from product A.Product B is made comparisons the order of receiving data of receiving with as the order/kind table of table 1, thereby judges the order kind S84 of corresponding data.
Table 1
| Order (command bar) | The order kind |
| 1 | First kind |
| 2 …………………………………… | First kind |
| N | Second kind |
At this moment, order/kind table is stored in the control part or independent memory of corresponding product.It is the order kind that will reply before the fill order in order to distinguish that order/kind table is set.
If first kind is defined as the data of receiving that in the recipient transmit leg transmits, at first carries out control commands corresponding and transmit reply data again.If second kind is defined as the data of receiving that in the recipient transmit leg transmits, at first transmit reply data, carry out control commands corresponding again.
If the S84 as a result that judges is first kind, at first S85 after the order that comprises in the product B execution data is sent to S86 in the product A to reply data.
If the S84 as a result that judges is second kind, at first product B has received that the reply data of signal is sent to S87 in the product A, carries out the order S88 that comprises in the data then to expression.
At this moment, product A is received the reply data S89 that product B transmits, and learns that the order of transmission is normally carried out.