CN1767470A - Household network system - Google Patents

Household network system Download PDF

Info

Publication number
CN1767470A
CN1767470A CN 200410072431 CN200410072431A CN1767470A CN 1767470 A CN1767470 A CN 1767470A CN 200410072431 CN200410072431 CN 200410072431 CN 200410072431 A CN200410072431 A CN 200410072431A CN 1767470 A CN1767470 A CN 1767470A
Authority
CN
China
Prior art keywords
field
value
network system
control
control command
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.)
Pending
Application number
CN 200410072431
Other languages
Chinese (zh)
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.)
LG Electronics Tianjin Appliances Co Ltd
Original Assignee
LG Electronics Tianjin Appliances 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 LG Electronics Tianjin Appliances Co Ltd filed Critical LG Electronics Tianjin Appliances Co Ltd
Priority to CN 200410072431 priority Critical patent/CN1767470A/en
Publication of CN1767470A publication Critical patent/CN1767470A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

This invention discloses a family network system including a first and a second electric appliances and a specific communication protocol connected with them under the network protocol, in which, the first one transfers the request information containing action orders to the second, which reads out option value fields in the information to carry out the control order included in the rest fields according to the option value fields. The method for executing the action order includes: the first device generates the request information of action order to send it to the second, which receives the request information and reads out the option value fields to execute the control order of rest fields.

Description

Domestic network system
Technical field
The present invention relates to a kind of domestic network system, particularly be the invention that utilizes the domestic network system of living network control communication protocol.
Background technology
Home network (home Network) is a kind of network that each digitlization man is electrically connected.By home network, can control the household electrical appliances in the family at any time easily, can bring enjoyment in life.Along with the development of digital information processing, household electrical appliances such as refrigerator or washing machine are developing into the digitlization home appliance gradually.Along with the fast development of household electrical appliances use system technology and high-speed digital communication technology, the information household appliances of above-mentioned technology are appearring fully utilizing.Under above-mentioned background, domestic network system has appearred.
This home network can be divided into data network according to the COS that is provided, and entertainment network and living network are as shown in table 1 below.
Table 1
Classification Function COS
Data network Network between PC and peripheral equipment Exchanges data, and network service
Entertainment network The network of A/V (Audio/Video) equipment room Music, services such as animation
Living network The home appliance Control Network The control of home appliance, automation appliance, Long-distance Control, information service etc.
Data network (data network) belongs between PC and peripheral equipment, for the exchanges data or the network type of providing services on the Internet etc. and to set up; Entertainment network (entertainment network) belongs to handles ODO, the home network type of information such as VDO; Living network (living network) is meant the network that is controlled to be purpose with automation appliance or Long-distance Control etc. merely.
This domestic network system that is used for family is made of master control (master) equipment and slave as electric equipment.Other electric equipment is controlled or is shown the state of other electric equipment as the main control device of electric equipment.As characteristic or other key element that the slave of electric equipment is pressed electric equipment, the requirement of main control device is replied, and export the information of the state variation of self.The electric equipment that uses in the specification of the present invention (or new equipment) comprises that not only washing machine, refrigerator etc. are used for the household electrical appliances of above-mentioned living network service, the household electrical appliances that also comprise the household electrical appliances that are used for the data network service and be used for the entertainment network service.In addition, also comprise coal gas automatic control equipment and automatically-controlled door, electrical equipment such as electric light.
This conventional art can not provide all purpose communication standard of the electric equipment in the domestic network system being fulfiled functions such as control and supervision.
Summary of the invention
The objective of the invention is to overcome the deficiency of above-mentioned technology, a kind of suitable all purpose communication standard be provided---the domestic network system of control communication protocol, above-mentioned all purpose communication standard provide control and monitor the function of each electric equipment in the domestic network system.
Another object of the present invention is for a kind of domestic network system that adopts living network control communication protocol (Living network Control Protocol:LnCP) as all purpose communication standard is provided.
A further object of the present invention is for a kind of partial words segment value by information being provided, carrying out the domestic network system of residue field control command, efficiently process information.
Another purpose of the present invention is for providing a kind of by part field (field) value of solicited message and the current operate condition of equipment, carries out the domestic network system of residue field control command, allows said system carry out information processing by the state of equipment.
A further object of the invention is the solicited message that includes several control commands when a kind of the use is provided, and equipment is carried out the domestic network system of various control.
The technical scheme that solves the problems of the technologies described above is:
A kind of domestic network system, this domestic network system comprises: by the special communication protocol under procotol of the plural the 1st and the 2nd electric equipment and connection the above-mentioned the 1st and the 2nd each electric equipment; The 1st electric equipment transmits the solicited message that comprises action command to the 2nd electric equipment; The 2nd electric equipment in above-mentioned solicited message, read certain option value field after, carry out the control command that the residue field comprises by the option value field.
Described option value field comprises operational mode field (field).
Described operational mode field is " stopping " or " RUN ".
Described remaining field comprises more than one control command at least; Described option value field comprises and the corresponding bottom of part residue field control command field at least; Described the 2nd electric equipment is carried out corresponding with it residue field control command according to the lower-word segment value.
The value of described bottom field (field) is the value of expression control command invalid (disable) or effective (enable)
Described option value field comprises operation selection control field; Described residue field comprises the operational mode field; It is benchmark that the 2nd equipment is selected control word segment value and operational mode field value with operation, carries out corresponding with it residue field control command by the value of above-mentioned bottom field
Described option value field comprises operation selection control field, and described residue field comprises the operational mode field; It is benchmark that the 2nd equipment is selected control word segment value and current operate condition with operation, carries out corresponding with it residue field control command by the value of bottom field
Described special communication protocol is a living network control communication protocol (LnCP).
Described electric equipment comprises: interface arrangement is used for connecting network by certain communication protocol; Control device, communicate by above-mentioned interface arrangement and other electric equipments, and receive certain solicited message from other electric equipments by interface arrangement, and read certain option value field from the solicited message that receives, carry out the control command that being included in the residue field according to the option value field.
Described option value field comprises the operational mode field.
Described operational mode field is " stopping " or " RUN ".
Described remaining field comprises more than one control command at least; Described option value field comprises and the corresponding bottom of a part of above-mentioned residue field control command field at least; Described control device is carried out corresponding with it residue field control command according to the lower-word segment value.
The value of described bottom field is the value of expression control command invalid (disable) or effective (enable).
Described option value field comprises operation selection control field; Described residue field comprises the operational mode field; It is benchmark that control device is selected control word segment value and operational mode field value with operation, carries out corresponding with it residue field control command by the value of bottom field
Described option value field comprises operation selection control field; Described residue field comprises the operational mode field; It is benchmark that control device is selected control word segment value and current operate condition with operation, carries out corresponding with it residue field control command by the value of bottom field.
Described special communication protocol is a living network control communication protocol (LnCP).
A kind of action command manner of execution of described domestic network system, this method comprise by the special communication protocol under procotol in the domestic network system of the plural the 1st and the 2nd electric equipment and connection the above-mentioned the 1st and the 2nd each electric equipment; This method also comprised as the next stage: after the 1st electric equipment generates and comprises the solicited message of certain action command, be sent to the stage of the 2nd electric equipment; The 2nd electric equipment receives the stage of above-mentioned solicited message; From above-mentioned solicited message, read the stage of certain option value field; Carry out the stage of the control command of residue field according to the above-mentioned result of reading.
The field of residue described in the above-mentioned action command manner of execution comprises a control command at least; Described option value field comprises and the corresponding bottom of part residue field control command field at least; In the stage of carrying out control command, the 2nd electric equipment is carried out corresponding with it residue field control command according to the lower-word segment value.
Option value field described in the above-mentioned action command manner of execution comprises operation selection control field; Described residue field comprises the operational mode field; In the stage of carrying out control command, it is benchmark that the 2nd equipment is selected control word segment value and operational mode field value with operation, by the value of bottom field, carries out corresponding with it residue field control command.
Option value field described in the above-mentioned action command manner of execution comprises operation selection control field; Described residue field comprises the operational mode field; In the stage of carrying out control command, it is benchmark that the 2nd equipment is selected control word segment value and current operate condition with operation, by the value of bottom field, carries out corresponding with it residue field control command.
Special communication protocol described in the above-mentioned action command manner of execution is a living network control communication protocol (LnCP).
The invention has the beneficial effects as follows: the invention provides a kind of suitable all purpose communication standard---the domestic network system of control communication protocol, this all purpose communication standard provide control and monitor the function of each electric equipment in the domestic network system.
The invention provides a kind of suitable living network communication specification---the domestic network system of control communication protocol.
The invention provides a kind of partial words segment value, carry out the domestic network system of residue field control command, efficiently process information by information.
The invention provides a kind ofly, carry out the domestic network system of residue field control command, allow said system carry out information processing by the state of equipment by the partial words segment value of solicited message and the current operate condition of equipment.
The solicited message that comprises several control commands when the invention provides a kind of the use is carried out the domestic network system of various control to equipment.
Description of drawings
Fig. 1 is a home network block diagram of the present invention;
Fig. 2 is a living network control protocol block diagram of the present invention;
Fig. 3 a to Fig. 3 b is the interface block diagram of each interlayer of Fig. 2;
Fig. 4 a to 4f is the interface detailed diagram of Fig. 3 a and 3b;
Fig. 5 a is the embodiment schematic diagram of each solicited message structure to Fig. 5 c;
Fig. 6 a to 6c is the embodiment schematic diagram of each response message structure;
Fig. 7 is the event information structural representation;
Fig. 8 is the summary pie graph of network manager of the present invention and electric equipment common ground;
Fig. 9 is action command manner of execution the 1st an embodiment flow chart of the present invention;
Figure 10 is action command manner of execution the 2nd an embodiment flow chart of the present invention;
<accompanying drawing critical piece remarks 〉
1: domestic network system 2: internet
3:LnCP server 4: customer equipment
10: gateway 20 to 23: network manager
30,31:LnCP router four 0 to 49: electric equipment
Embodiment
Below in conjunction with accompanying drawing embodiments of the invention are described in further detail.
Fig. 1 is a home network block diagram of the present invention.
As shown in Figure 1, domestic network system 1 is connected to LnCP server 3 by internet 2.Client device 4 is connected to LnCP server 3 by internet 2.That is, domestic network system 1 is can transmit information to LnCP server 3 and/or client device 4 connections mutually.
The external network of domestic network system 1 comprises internet 2, and external network also can be equipped with miscellaneous equipment according to the kind of client device 4.That is, be example with this internet 2, when client device 4 is computer, possess Web server (Websever) (not shown); When client device 4 is the networking telephone, possesses the communication server (Wap sever) (not shown).
LnCP server 3 is by specific registration and deregistration procedure, is connected respectively to domestic network system 1 and client device 4, receives from client device 4 and monitors and control command that the information by internet 2 usefulness particular forms is sent to domestic network system 1 again.In addition, LnCP server 3 receives and stores the information of particular form or it is sent to client device 4 from domestic network system 1.The information that LnCP server 3 stores self or generate is sent to domestic network system 1.That is, domestic network system 1 is connected LnCP server 3, can download the service content that LnCP server 3 is provided.
Domestic network system 1 comprises gateway 10; Network manager 20~23; LnCP router three 0,31; LnCP network adapter (adapter) 35,36 and a plurality of electric equipment 40~49.Gateway 10 has the function that connects the internet.Network manager 20~23 is fulfiled the environment set of electric equipment 40~49 and management function.The connection that LnCP router three 0,31 is responsible between the transmission medium.LnCP network adapter 35,36 can make network manager 22 and electric equipment 46 be connected to transmission medium.Network in the domestic network system 1 is interconnected by each electric equipment 40~49 shared transmission medium to be formed.This transmission medium is by the transmission medium of datalink layer connection unnormalizeds such as RS-485 or lower powered RF (non-standardized transmission medium), or utilizes the transmission medium (standardized transmission medium) of normalization such as power line or IEEE802.11.
Network and internet 2 in the domestic network system 1 are the networks that are separated from each other.That is, the network in the domestic network system 1 is made of the separate network that wired or wireless transmission medium connects.Though separate network is in connection status physically then is the network that separates in theory.
Domestic network system 1 comprises master control (Master) equipment, subordinate (Slave) equipment.The operating state of electric equipment 40~49 can be controlled or monitor to main control device.Slave can be responded the request of main control device and the information that the notice oneself state changes.This main control device comprises network manager 20~23; Slave comprises electric equipment 40~49.This network manager 20~23 comprises that programmed mode is carried out control operation to the information and the control code of the electric equipment 40~49 that will control, or receives after the information of LnCP server and/or client device 4 inputs, carries out control operation.As shown in the figure, the connection of a plurality of network managers 20~23, be in order to carry out the information exchange between the network manager 20~23, also for the synchronization of information and control, these network managers 20~23 promptly can be that main control device can be again a slave.Promptly should be a kind of, from physical significance equipment just, but be again to have master control and from the equipment (being compatible equipment) of the function of dominant in theory simultaneously.
These network managers 20~23 and electric equipment 40~49 can be directly connected to power line network as shown, and the RS-485 network on the RF network, can also connect by LnCP router three 0,31 and/or LnCP network adapter 35,36.
Electric equipment 40~49 and/or LnCP router three 0,31 and/or LnCP network adapter 35,36 are registered on the network manager 20~23, and according to product information, receive unique theoretical address (for example 0x00,0x01 etc.).After this theoretical address and product code (for example air-conditioning is ' 0x02 ', and washing machine is ' the 0x01 ') combination, use as node address (Node Address).For example, by the identical node address of 0x02009 (air-conditioning 1) and 0x0201 (air-conditioning 2) by electric equipment 40~49 and/or LnCP router three 0,31 and/or 35,36 identifications of LnCP network adapter.In addition, can also use by specific benchmark (product of the same race, product position, user etc. are set) group address that is provided with, can the more than one electric equipment 40~49 of disposable identification and/or LnCP router three 0,31 and/or LnCP network adapter 35,36 when using the group address.In the group address, when being set at " 1 ", this dominance group address is for specifying group (cluster) address of a plurality of customer equipments address choice value (following is mark flag) in the dominance group address.The default group address is added to " 1 " to all bits (byte) value of theoretical address and/or product code, and then can specify a plurality of customer equipments.Here, it is to be noted especially and be commonly referred to group's sign indicating number expressing the group address.
Fig. 2 is living network control protocol of the present invention (LnCP) block diagram.Domestic network system 1 can make network manager 20~23 by the living network control protocol among Fig. 2 (LnCP), LnCP router three 0,31, mutual transmission information between LnCP network adapter 35,36 and the electric equipment 40~49.And then, network manager 20~23, LnCP router three 0,31, LnCP network adapter 35,36 and electric equipment 40~49 are carried out network service by this LnCP.
As shown in Figure 2, LnCP comprises application software 50; Application layer 60; Network layer 70; Datalink layer connection 80; Physical layer 90 and parameter management layer 100.Application software 50 performance network managers 20~23, LnCP router three 0,31, LnCP network adapter 35,36, and the inherent function of electric equipment 40~49.And the function that is connected with application layer 60 is provided, so that on network, carry out remote operation and supervision.Application layer 60 provides service to the user, and has the function that is communicated to lower floor after information that the user is provided or the order composition information.Network layer 70 can be network manager 20~23, and LnCP router three 0,31 is connected to reliable network between LnCP network adapter 35,36 and the electric equipment 40~49.Datalink layer connection 80 provides connection control function, is used to connect the common transmitted medium.Physical layer 90 provides network manager 20~23, LnCP router three 0,31, the rule of the physical interface between LnCP network adapter 35,36 and the electric equipment 40~49 and the bit (byte) that will transmit.Use the parameter (node parameter) of node in parameter management layer 100 each layers of management configuration.
Detailed says, application software 50 also comprises network management subsidiary layer 51.Network management subsidiary layer 51 has the management node parameter, and management is connected the network manager 20~23 on the network, LnCP router three 0,31, the function of LnCP network adapter 35,36 and electric equipment 40~49.That is, this network management subsidiary layer 51 has a kind of function, can manage parameter by parameter management layer 100 setup parameter numerical value.When the equipment that is applicable to LnCP was main control device, this network management subsidiary layer 51 also has fulfiled the function that constitutes network or supervising the network.
In addition, network layer 70 comprises home code control subsidiary layer 71.Network is connected with network manager 20~23, LnCP router three 0,31, LnCP network adapter 35,36 and electric equipment 40~49.When utilize power line IEEE 802.11 or non-self transmission medium such as wireless (for example LnCP comprise power line communication (PLC) agreement/or wireless (wireless) agreement) when constituting above-mentioned network, in order to divide each network in theory, the function of home code and managing family code is set in 71 performances of home code control subsidiary layer.By self transmission mediums such as picture RS-485, during from physical significance separation individual networks, this home code control subsidiary layer 71 is not included among the LnCP.This home code is formed with 4 bytes (byte), is set at random (random) value or user's set point.
Fig. 3 a to Fig. 3 b is interface (interface) block diagram of each interlayer of Fig. 2.
Interface (interface) schematic diagram of the interlayer when Fig. 3 a is depicted as physical layer 90 and is connected to non-self transmission medium.Shown in Fig. 3 b is the interface schematic diagram of the interlayer of physical layer 90 when being connected to the self transmission medium.
Domestic network system 1 is added to the title of each layer needs (head) and ending (trailer) information from the network protocol message unit (Protocol Data Unit:PDU) that the upper strata receives, and is communicated to lower floor again.
As shown in the figure, APDU (Application layer PDU) is the data value (data) that transmits between application layer 60 and the network layer 70.NPDU (Network Layer PDU) is the data value that transmits between network layer 70 and datalink layer connection 80 or the home code control subsidiary layer 71.HCNPDU (Home CodeControl Sublayer PDU) is the data value that transmits between network layer 70 (the definite home code control subsidiary layer 71 of saying so) and datalink layer connection 80 or the home code control subsidiary layer 71.Press data value (data), Frame unit's formation interface (interface) between datalink layer connection 80 and the physical layer 90.
Fig. 4 a to 4f is the interface detailed diagram of Fig. 3 a to 3b.
Fig. 4 a is the APDU structure in application layer 60.
AL (APDU Length) field is represented the field of the length (AL is to the length of Frame (frame) group) of APDU, and minimum value is that 4 maximums are 77.
AHL (APDU Header Length) field is the field of the length (AL is to the length of ALO) of expression APDU title (head), is 3 bytes when not expanding, and can expand to 7 bytes.For the encipherment of Frame (frame) group, can expand to 7 bytes in the LnCP procotol in order to change APDU titles (head) such as application protocol.
ALO (Application Layer Option) field is the field that is used for extend information piece (sheet), after for example this field is set to " 0 ", ignores information processing when other value is housed.
The Frame group is processing user's the control information or the field of incident (event) information, and its structure is along with the variation of the contained value of ALO changes.
Fig. 4 b is the structure of the NPDU in the network layer 70; Fig. 4 c is the detailed structure schematic diagram of the NLC among the NPDU.
SLP (Start of LnCP Packet) field list shows the start field of packet, and its value is 0x02.
The field of DA (Destination Address) and SA (Source Address) is the destination of the packet that will transmit and the node address of originator, and each is made of 16 bits.Here the superiors' 1 bit is the mark (flag) of demonstration group address, the kind (product code) that ensuing 7 bits are product, and lower floor's 8 bits comprise the theoretical address of getting.Have the network manager 20~23 of a plurality of same kinds or electric equipment 40~49 o'clock, above-mentioned lower floor 8 bits are used to divide above-mentioned each network manager 20~23 or electric equipment 40~49.
PL (Packet Length) field is for showing the field of the NPDU length overall that will transmit, and its minimum value is 12 bytes, and maximum is 100 bytes.
SP (Service Priority) field is to give the field that transmission information transmits priority bit, is made of 3 bits.Each transmits the priority picks such as the table 2 of information.
When table 2 expression subordinate customer equipment is replied the request of master control customer equipment, accompany or follow the solicited message priority picks that the master control customer equipment receives.
Table 2
The priority picks Value Be suitable for (Application Layer)
High (High) 0 -when transmitting emergence message
In (Middle) 1 -when transmitting the general data bag-during incident (event) information of the online and non-presence of transmissions map network (Online State) (Offline State) variation
Standard (Normal) 2 -when transmitting notice and constituting the information of network-during transmission common event (event) information
Low (Low) 3 -when transmitting the value according to the producer that downloads or upload
NHL (NPDU Header Length) field is to be used for expanding the field that NPDU title (head) (the NLC field of SLP) uses, and is 9 bytes when not expanding, and maximum can expand to 16 bytes.
PV (Protocol Version) field is the field that shows 1 byte of the network protocol version that is adopted, and is made of upper strata 4 bits and lower floor's 4 bits.Upper strata 4 bits are version (version) field, and lower floor's 4 bits are server version (sub-version) field.Version (version) and server version (sub-version) are respectively with 16 systems mark method version of display.
NPT (Network layer Packet Type) field is 4 bit fields of dividing data bag kind in network layer.LnCP comprises request data package (Request Packet); Reply data bag (Response Packet); Notification data bag (Notification Packet).The NPT field of master control customer equipment should be set at request data package or notification data bag; The NPT field of slave should be set at reply data bag or notification data bag.The NPT value of packet kind is as shown in table 3 below.
Table 3
Value Explanation
0 Request data package
1~3 Do not use
4 The reply data bag
5~7 Do not use
8 The notification data bag
9~12 Do not use
13~15 The interface that is connected with home code control subsidiary layer is worth with reservation
TC (Transmission Counter) field is a network layer generation communication failure, in the time of can not successfully sending request data package or reply data bag, in order to improve the success rate that transmits request data package or reply data bag, transmission or 2 bit fields of transmission more repeatedly.The destination can utilize the numerical value of TC field, detects duplicate message.With the excursion of the different TC field values of NPT value as shown in the following table 4.
Table 4
The packet kind Value (scope)
Request data package 1~3
The reply data bag 1
The notification data bag 1~3
PN (Packet Number) field is made of 2 bits.In slave, be used with TC in order to detect repetitive data packet PN (Packet Number) field.In the master control customer equipment, be used in order to handle a plurality of communication cycles.Excursion with the different PN fields of NPT value is as shown in table 5 below.
Table 5
The packet kind Value (scope)
Request data package 0~3
The reply data bag The PN field value of duplicate requests packet
The notification data bag 0~3
The APDU field is the unit of the Internet protocol data value (data) of the application layer of transmission between application layer 60 and the network layer 70.The APDU minimum value is 0 byte, and maximum is 88 bytes.
CRC (Cyclic Redundancy Check) field is in order to detect 16 bit fields of data accepted bag (SLP is to the APDU field) mistake.
ELP (End of LnCP Packet) field is the field of video data Bao Weiduan, and its value is 0x03.If length corresponding data values (data) in reception and the data packet length field can not detect the ELP field, then be shown packet error.
Fig. 4 d is the HCNPDU structure chart in home code (Home Code) the control subsidiary layer 71.
As shown in the figure, the top section of NPDU also comprises HC (Home Code) field.
The numerical value of this home code (Home Code) is made of 4 bytes.This home code has unique value in the propagable circuit distance of packet.
Fig. 4 e is the structure of Frame in the datalink layer connection.
The title (head) of LnCP datalink layer connection Frame and ending (trailer) form different structures according to transmission medium.When datalink layer connection 80 used the transmission medium of unnormalized, the title of Frame and ending should have Null field (Null Field).As use normalized transmission medium, then with the regulation of procotol.The NPDU field is the unit from the data value of upper layer network layer 70 transmission.The data value unit that HCNPDU used when being physical layer 90 for non-self transmission medium such as power line or IEEE 802.11 is the data value unit of appending 4 byte home codes at the NPDU front end.Datalink layer connection 80 is not divided the processing of NPDU and HCNPDU.
Fig. 4 f is the data frame structure in the physical layer 90.
The physical layer 90 of LnCP has the function that physical signalling is sent to transmission medium.As the physical layer 90 of LnCP procotol, the transmission medium of the unnormalized data articulamentum 80 that can use be equal to RS-485 or low power RF.Can also use the normalization transmission medium that is equal to as power line or IEEE 802.11.Be suitable in the domestic network system 1 of LnCP network, for network manager 20~23 and electric equipment 40~49 and RS-485 or LnCP router three 0,31, reach LnCP network adapter 35,36 and connect, utilized the signal standards (level) of UART (Universal Asynchronous Receiver andTransmitter) data frame structure and RS-232.When utilizing netting twine (serial bus) to connect between each equipment, UART is at communication line control bit signal flow.Shown in Fig. 4 f, in LnCP, the packet that the upper strata is sent here, be transformed into the UART Frame unit of 10 bit sizes after, transmit by transmission medium.The UART Frame is by the start bit (Start Bit) of 1 bit; The position of rest of data value of 8 bits (data) and 1 bit (Stop Bit) constitutes.Above-mentioned UART Frame does not use effect position (Parity Bit).The UART Frame is passed on from start bit, passes to position of rest at last.When the domestic network system 1 of suitable LnCP utilizes UART, do not use the Frame title (frame header) and the End of Frame (frame trailer) that append.
In the above-mentioned information, the arrangement of byte (or bit) data is arranged in the following manner.Upper strata byte (or bit) is positioned at the left side of information, and lower floor's byte (or bit) is positioned at the right.The information type that application layer 60 is handled is as follows.
Solicited message (Request Message): be in order to allow slave carry out order, pass the information that the network layer 70 to network layer 70 or slave passes to application layer 60 from the application layer 60 of main control device.The transmission mode that the application layer 60 of slave transmits according to network layer 70 can utilize response message (Response Message) to respond.
Response message (Response Message): being in order to transmit the result of slave to command execution, passing to application layer 60 or from the information that the application layer 60 of slave passes to network layer 70 from the network layer 70 of main control device, is the response to solicited message.
Incident (event) information (Event Message): be equipment state when being changed, pass to network layer or from destination's network layer from the application layer of the side of delivering letters and pass information to application layer.The recipient does not response.
Fig. 5 a to 5c is the embodiment schematic diagram of each solicited message structure.
Fig. 5 a is the schematic diagram of basic solicited message.This solicited message is by command code (Command Code:CC) and carry out its used association factor (factor 1,2...) formation.Solicited message is used for the control of slave and state confirmation, in addition, also is used to ask the validation of information to slave.
Fig. 5 b is download request information (Downloading Request Message).Download request information is that the data biography used enter factor (InputArguments) when equipment that is partitioned into from solicited message is comprised total page or leaf (total page) and " current page ".Fig. 5 c is upload request information (Uploading Request Message).Upload request information is to be used for slave to cut apart the enter factor of obtaining data, comprises " page number (PageNo) " and " size of data (DataNo) ".
Detailed says so, and this download request information is to allow main control device possess particular data, the information of this data biography to slave and/or other main control device.Above-mentioned data are cut apart by the particular data size, and the whole numbers that are partitioned into are total page or leaf.In this total page or leaf, be included in the data that are transmitted in the current solicited message, these data are " current page ".
This upload request information is to allow slave and/or other main control device possess particular data, and main control device is uploaded the information of these data.Main control device is in total page or leaf, and a request part is equivalent to the data of size of data, and these part data become the partition data that is arranged on the corresponding page number order of all data.
Fig. 6 a to 6c is the embodiment schematic diagram of each response message structure.
The ACK-response message (ACK-Response Message) that response message generates when dividing into the solicited message that normal implementation main control device sends here on the contrary and the NAK-response message (NAK-Response Message) that generates during situation.
Fig. 6 a is an ACK-response message schematic diagram.This ACK-response message by command code CC and ACK (for example, 0x06), expression carry out the result each factor (factor 1,2 ...) constitute.At slave successful implementation transferring ACK-response message during by the solicited message of main control device transmission.
Fig. 6 b is the schematic diagram of NAK-response message.This NAK-response message by command code CC, NAK (for example, 0x15) and the NAK_code of 1 byte constitute.When slave is failed the solicited message of successful implementation main control device transmission, transmit this NAK-response message.NAK_code has difference with the mistake of relevant product code.NAK_code is in the communication process between main control device and slave, because of the bad command sign indicating number or the wrong factor, and when slave is failed the successful implementation solicited message, the code value of its reason of classifying.
Fig. 6 c is the schematic diagram that comprises error code (Error_code) NAK-response message.This Error_code is the relevant mistake of product work.Because of producing this mistake, when slave was failed the successful implementation solicited message, the NAK_code value was fixed as specific value, for example " 0x63 ".Behind the NAK_code, immediately following the Error_code value.
Fig. 7 is incident (event) information structure diagram.
As shown in Figure 7, incident (event) information is the state of slave when being changed, the information of generation.(for example, 0x11), incident (event) sign indicating number (Event Code) (2 byte) and state value (State Variable) (4 byte) constitute by command code CC.In incident (event) sign indicating number, upper strata 1 byte is identical with product code (Product Code), lower floor's 1 byte representation state variable.
Fig. 8 is the summary pie graph of network manager of the present invention and electric equipment common ground.
As shown in Figure 8, network manager 20~23 (below be called main control device) and electric equipment 40~49 (below be called slave) are by the interface unit 210 that is used to be connected network; Specific memory parts 220; And control assembly 230 constitutes.Control assembly 230 docking port parts 210 and memory unit 220 are controlled.
In more detail, memory unit 220 other main control devices of storage of main control device and the relevant product information and the product category address information of slave.Comprise that all documents that are connected product information on the network (product information and the node address information having set or do not set etc.) are called home network document (program file), this home network document is stored on the reservoir part 220, by control assembly 230 recognitions, and registration updating.
The reservoir part 220 stored prod information of slave.The said goods information is stored with the form of dependency information, is stored on the read-only memory 220 as reservoir part.This dependency information document is the subordinate intrinsic information data that comprise that indivedual electric equipments 40~49 (or slave) are had.Indivedual electric equipments 40~49 are connected on the network.
Main control device can also have display unit (figure slightly), and display unit comprises input unit (figure slightly) and interface (interface) device.Input unit is used for the user and imports certain signal.Interface (interface) device is according to the home network document, all or a part of electric equipment (40~49) of domestic network system with and/or network manager (20~23), be shown to the user by the icon form.
In fact, the control assembly 230 by main control device or slave carries out some operations specific.But, put down in writing below by main control device or slave and carry out some operations specific for the convenience on narrating.
Fig. 9 is action command manner of execution the 1st an embodiment flow chart of the present invention.Below, the information of use not only comprises the structure that above-mentioned Fig. 5 a~Fig. 7 shows, but also comprises all data with the transmitting-receiving of data modes such as APDU, NPDU.
The present invention's the 1st embodiment action command manner of execution is as follows:
Stage S51: slave receives solicited message from main control device.Such as the situation that is TV, above-mentioned solicited message has the structure of table 6.
Table 6
Data name Explanation Size of data Value
?Commcode Command code 1 byte 0Xco
?RunMode Set operational mode 1 byte 0x00: close 0x01~0xFE: carry out the control 0xFF of lower floor: ignore channel Val, the VolumeVal value
?channel ?Val Channel setting 1 byte 0x00: increase channel value 0x0F: reduce channel value 0xFF: keep current channel
?VolumeVal Sound volume setting 1 byte 0x00~0x64: volume value 0xFF: keep current volume
Here, operational mode (RunMode) field is certain option value field, carries out residue field---the order that channel value (channel Val) field and volume value (VolumeVal) field comprise according to its value.
Stage S52: slave is drawn the operational mode field in the solicited message, reads the value that it comprises.
Stage S53: slave judge operational mode value whether " carrying out control command? " if value is " 0x01~0xFE " then carry out stage S54; If value is " 0x00 " or " 0xFF " then carry out stage S55.
Stage S54: slave is carried out the control command (that is, change channel or adjusting volume) that is included in the residue field according to the value of operational mode field.
Stage S55: slave by " ignoring control " order of " closing " or other fields, is ignored the included control command of residue field according to the value of operational mode field.
Figure 10 is action command manner of execution the 2nd an embodiment flow chart of the present invention.
The present invention's the 2nd embodiment action command manner of execution is as follows:
Stage S61: slave receives certain solicited message from main control device.Such as slave is under the situation of air-conditioning, and above-mentioned solicited message has structure as shown in table 7.
Table 7
Data name Explanation Size of data Value
CommCode Command code 1 byte ?0x00
Control?Val RunStop Effectively or stop control 1 byte 0: stop 1: operation
RunMode Operational mode 4 bytes 0: standard refrigeration 1: artificial intelligence 2: heat
RefTemp Desired temperature 1 byte ?18~30
Force WindForc e Air quantity 4 bytes 1: weak phoenix, 2: apoplexy, 3: high wind
Direction LRDirecti on Left and right sides wind direction 1 byte ?0:off,1:on
BUDirecti on Wind direction up and down 1 byte ?0:off,1:on
Option?Val Option?Val BUDirecti on Control Control is wind direction up and down 1 byte ?0:disable ?1:enable
LRDirecti on Control Control left and right sides wind direction 1 byte ?0:disable ?1:enable
WindForc e?Control The control air quantity 1 byte ?0:disable ?1:enable
RefTemp Control The control desired temperature 1 byte ?0:disable ?1:enable
RunMode Control The control operational mode 1 byte ?0:disable ?1:enable
RunStop Control The control operation is selected 1 byte ?0:disable ?1:enable
Here, solicited message comprises option value (OptionVal) field, this option value field is the bottom field, comprises that control (RunStop Control) field is selected in wind direction control (BUDirection Control) field, left and right sides wind direction control (LRDirection Control) field, air quantity control (WindForce Control) field, desired temperature control (RefTemp Control) field, operational mode control (RunMode Control) field and operation up and down.These bottom fields are respectively with left and right sides wind direction (LRDirection) field, wind direction (BUDirection) field, air quantity (WindForce) field, desired temperature (RefTemp) field, operational mode (RunMode) field, operation select (RunStop) field corresponding up and down.
These fields are set to invalid (disable) or effectively (enable), if engineering noise is not then carried out the field control command corresponding with the bottom field.If " effectively " then carries out the field control command corresponding with the bottom field.Such as, the wind direction control field is that engineering noise (" 0 ") is not then carried out the control command that is included in wind direction (BUDirection) field up and down up and down.
Particularly, it is engineering noise that control field is selected in operation, then do not carry out the effective of equipment (air-conditioning) or stop control, and the state that keeps work at present or stop.If equipment is in running order, then carry out the control relevant with other field values.In addition, be " effectively " if control field is selected in operation, it is " 0 " that field value is selected in operation, then equipment becomes halted state, does not carry out the control command of other fields.If it is " effectively " that control field is selected in operation, and operation selection field value is " 1 ", then carries out corresponding control command by the option value (bottom field) of other fields.That is, have only operation to select control field to be " effectively ", when operation selects the value of field to be " 1 " (operation), could carry out other fields.As mentioned above, solicited message comprises several control commands, and can carry out some in several control commands separately.
Stage S62: slave is drawn the option value field.
Stage S63: slave is judged the bottom field of option value field---it is " effectively " enable that control field is selected in operation, if " effectively " enable then carries out stage S64, if not then carrying out stage S66.
Stage S64: slave judges that operation selects field whether " effectively ", is " 0 " then carry out stage S67 if field value is selected in operation; If operation selection field value is " 1 " (operation) then carries out stage S65.
Stage S65: slave is carried out control commands corresponding respectively according to the value of each bottom field.That is, the value of bottom field is that " effectively " then carries out the field control command corresponding with it.The value of bottom field is that engineering noise is not then carried out the field control command corresponding with it.
Stage S66: if control field is selected in operation is engineering noise, does not then carry out operation and selects the field control command, but keep current state.Therefore, slave judges that current state is a " RUN ".If current state is " RUN " then carries out stage S65, carry out the control command corresponding, if " stopping " then carrying out stage S67 with each bottom field.
Stage S67: if field value is selected in the operation of stage S64 is that " 0 " (stopping) or current state are " stopping ", and then slave can not be carried out the control command in the solicited message, ignores this order.

Claims (21)

1. a domestic network system is characterized in that this domestic network system comprises: by the special communication protocol under procotol of the plural the 1st and the 2nd electric equipment and connection the above-mentioned the 1st and the 2nd each electric equipment; The 1st electric equipment transmits the solicited message that comprises action command to the 2nd electric equipment; The 2nd electric equipment in above-mentioned solicited message, read certain option value field (field) after, carry out the control command that residue field (field) comprises by option value field (field).
2. according to the domestic network system described in the claim 1, it is characterized in that described option value field comprises the operational mode field.
3. according to the domestic network system described in the claim 2, it is characterized in that described operational mode field is " stopping " or " RUN ".
4. according to the domestic network system described in the claim 1, it is characterized in that described remaining field comprises more than one control command at least; Described option value field comprises and the corresponding bottom of part residue field control command field at least; Described the 2nd electric equipment is carried out corresponding with it residue field control command according to the lower-word segment value.
5. according to the domestic network system described in the claim 3, the value that it is characterized in that described bottom field is the value of expression control command invalid (disable) or effective (enable)
6. according to the domestic network system described in the claim 4, it is characterized in that described option value field comprises operation selection control field; Described residue field comprises the operational mode field; It is benchmark that the 2nd equipment is selected control word segment value and operational mode field value with operation, carries out corresponding with it residue field control command by the value of above-mentioned bottom field
7. according to the domestic network system described in the claim 4, it is characterized in that described option value field comprises operation selection control field, described residue field comprises the operational mode field; It is benchmark that the 2nd equipment is selected control word segment value and current operate condition with operation, carries out corresponding with it residue field control command by the value of bottom field
8. according to the domestic network system described in the claim 1, it is characterized in that described special communication protocol is a living network control communication protocol (LnCP).
9. according to the domestic network system described in the claim 1, it is characterized in that described electric equipment comprises:
Interface arrangement is used for connecting network by certain communication protocol;
Control device, communicate by above-mentioned interface arrangement and other electric equipments, and receive certain solicited message from other electric equipments by interface arrangement, and read certain option value field from the solicited message that receives, carry out the control command that being included in the residue field according to the option value field.
10. according to the domestic network system described in the claim 9, it is characterized in that described option value field comprises the operational mode field.
11 according to the domestic network system described in the claim 10, it is characterized in that described operational mode field is " stopping " or " RUN ".
12., it is characterized in that described remaining field comprises more than one control command at least according to the domestic network system described in the claim 9; Described option value field comprises and the corresponding bottom of a part of above-mentioned residue field control command field at least; Described control device is carried out corresponding with it residue field control command according to the lower-word segment value.
13. according to the domestic network system described in the claim 12, the value that it is characterized in that described bottom field is the value of expression control command invalid (disable) or effective (enable).
14., it is characterized in that described option value field comprises operation selection control field according to the domestic network system described in the claim 12; Described residue field comprises the operational mode field; It is benchmark that control device is selected control word segment value and operational mode field value with operation, carries out corresponding with it residue field control command by the value of bottom field
15., it is characterized in that described option value field comprises operation selection control field according to the domestic network system described in the claim 12; Described residue field comprises the operational mode field; It is benchmark that control device is selected control word segment value and current operate condition with operation, carries out corresponding with it residue field control command by the value of bottom field.
16., it is characterized in that described special communication protocol is a living network control communication protocol (LnCP) according to the domestic network system described in the claim 9.
17. the action command manner of execution according to domestic network system described in the claim 1 is characterized in that this method comprises by the special communication protocol under procotol in the domestic network system of the plural the 1st and the 2nd electric equipment and connection the above-mentioned the 1st and the 2nd each electric equipment; This method also comprised as the next stage: after the 1st electric equipment generates and comprises the solicited message of certain action command, be sent to the stage of the 2nd electric equipment; The 2nd electric equipment receives the stage of above-mentioned solicited message; From above-mentioned solicited message, read the stage of certain option value field; Carry out the stage of the control command of residue field according to the above-mentioned result of reading.
18., it is characterized in that described residue field comprises a control command at least according to the action command manner of execution of the domestic network system described in the claim 17; Described option value field comprises and the corresponding bottom of part residue field control command field at least; In the stage of carrying out control command, the 2nd electric equipment is carried out corresponding with it residue field control command according to the lower-word segment value.
19., it is characterized in that described option value field comprises operation selection control field according to the action command manner of execution of the domestic network system described in the claim 18; Described residue field comprises the operational mode field; In the stage of carrying out control command, it is benchmark that the 2nd equipment is selected control word segment value and operational mode field value with operation, by the value of bottom field, carries out corresponding with it residue field control command.
20., it is characterized in that described option value field comprises operation selection control field according to the action command manner of execution of the domestic network system described in the claim 18; Described residue field comprises the operational mode field; In the stage of carrying out control command, it is benchmark that the 2nd equipment is selected control word segment value and current operate condition with operation, by the value of bottom field, carries out corresponding with it residue field control command.
21., it is characterized in that described special communication protocol is a living network control communication protocol (LnCP) according to the action command manner of execution of the domestic network system described in the claim 17.
CN 200410072431 2004-10-27 2004-10-27 Household network system Pending CN1767470A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200410072431 CN1767470A (en) 2004-10-27 2004-10-27 Household network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200410072431 CN1767470A (en) 2004-10-27 2004-10-27 Household network system

Publications (1)

Publication Number Publication Date
CN1767470A true CN1767470A (en) 2006-05-03

Family

ID=36743089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200410072431 Pending CN1767470A (en) 2004-10-27 2004-10-27 Household network system

Country Status (1)

Country Link
CN (1) CN1767470A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104676836A (en) * 2015-02-10 2015-06-03 四川长虹电器股份有限公司 Method for determining operation mode of multi-split air-conditioning system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104676836A (en) * 2015-02-10 2015-06-03 四川长虹电器股份有限公司 Method for determining operation mode of multi-split air-conditioning system
CN104676836B (en) * 2015-02-10 2017-04-19 四川长虹电器股份有限公司 Method for determining operation mode of multi-split air-conditioning system

Similar Documents

Publication Publication Date Title
CN1820457A (en) Home network system
CN102957551B (en) A kind of method and system of bulk management equipment
US20090031177A1 (en) Method for providing download and upload service in network control system
CN1465164A (en) Information processing apparatus and method
CN1767470A (en) Household network system
CN1767472A (en) Household network system
CN103491058A (en) TR069 and UPnP protocol conversion method and home network terminal management method and system
CN1767467A (en) Household network system
CN1767481A (en) Household network system and information acquisition method and electrical appliance
CN1767469A (en) Household network system
CN1767471A (en) Household network system
CN1767468A (en) Household network system
CN1767459A (en) Household network system and its electrical appliance equipment
CN1767466A (en) Household network system
CN1767460A (en) Household network system and its affirmation method
CN1767465A (en) Household network system
CN1747416A (en) Household network system
CN1767458A (en) Household network system and its affirmation method
CN1767462A (en) Household network system
CN1747441A (en) Transmission of data link layer
CN1767461A (en) Household network system
CN1767473A (en) Household network system and its item informing method and electrical appliance equipment
CN1747410A (en) Household network system and repeating data packet discrimination therefor
CN1747417A (en) Network system of electrical appliances
CN1767475A (en) Household network system and its movement precontract setting method and associated electrical appliance equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication