CN1747414A - Household network system - Google Patents

Household network system Download PDF

Info

Publication number
CN1747414A
CN1747414A CNA200410071830XA CN200410071830A CN1747414A CN 1747414 A CN1747414 A CN 1747414A CN A200410071830X A CNA200410071830X A CN A200410071830XA CN 200410071830 A CN200410071830 A CN 200410071830A CN 1747414 A CN1747414 A CN 1747414A
Authority
CN
China
Prior art keywords
mentioned
pdu
head length
length degree
thresholding
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
CNA200410071830XA
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 CNA200410071830XA priority Critical patent/CN1747414A/en
Publication of CN1747414A publication Critical patent/CN1747414A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The invention includes at least two electrical devices and network with dedicated communication protocol. The electrical device transmits PDU (protocol data unit) to other devices, and the other devices receive PDU, and read head length field on PDU. Then compare the acquired value of head length field with the preset PDU head length, and process the PDU.

Description

Domestic network system
Technical field
The present invention relates to a kind of domestic network system.
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 easily whenever and wherever possible, 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.
COS shown in this home network following table 1 can be divided into data network, entertainment network, interactive network.
Table 1
Classification Function COS
Data network Network between PC and peripheral equipment Exchanges data, network service etc.
Entertainment network The network of A/V (Audio/Video) equipment room Music, services such as animation
Interactive network The network of control home appliance The control of home appliance, home network braking control, remote monitoring, information service etc.
Data network (data network) belongs to the network type that makes up for the exchanges data between pc and the peripheral equipment or provide services on the Internet etc.Entertainment network (entertainment network) belongs to the network type between the home appliance of the information of handling ODO or VDO etc.In addition, interactive 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 formed by master control (master) equipment and slave as electric equipment.As electric equipment, main control device controls or shows the state of other electric equipment to other electric equipment.As electric equipment, slave is pressed characteristic or other key element of electric equipment, the requirement of main control device is replied, and export the state change information 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 interactive 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 automatic null device of coal gas and automatically-controlled door, electrical equipment such as light a lamp.
This conventional art can not provide the electric equipment in the domestic network system is controlled and the communication specification of function such as supervision.
Summary of the invention
In order to overcome the above-mentioned shortcoming that prior art exists, the invention provides a kind ofly to each electric equipment in the domestic network system, provide the general rule of communication of using of functions such as control and supervision, i.e. the domestic network system of network control communications agreement.
Purpose of the present invention is suitable for the domestic network system of controlling communication protocol (Living network Control Protocol:LnCP) with the interactive network of rule of communication as general for providing.
Purpose of the present invention is according to the LnCP version that uses, and the various ways packet of processing different editions and/or the domestic network system of information are provided.
Purpose of the present invention is for providing the domestic network system of new data packets more and/or information processing benchmark.
Domestic network system of the present invention is:
A kind of domestic network system is characterized in that it is formed by at least two above electric equipments and the network with special communication protocol that connects above-mentioned each electric equipment; An above-mentioned electric equipment passes the communication protocol unit (PDU) with above-mentioned communication protocol to above-mentioned other electric equipment, above-mentioned other electric equipment receives above-mentioned PDU, read the territory of PDU head length degree at PDU, and carry out the thresholding of above-mentioned PDU head length degree and set the comparison of PDU head length degree and, handle above-mentioned PDU according to above-mentioned comparison.
Aforesaid domestic network system, wherein as the thresholding of above-mentioned PDU head length degree with to set PDU head length degree identical, then above-mentioned other electric equipment according to above-mentioned PDU head length thresholding, is handled above-mentioned whole PDU.
Aforesaid domestic network system, wherein as the thresholding of above-mentioned PDU head length degree with to have set PDU head length degree inequality, then above-mentioned other electric equipment is handled all or part of of above-mentioned PDU.
Aforesaid domestic network system, wherein as the thresholding of above-mentioned PDU head length degree greater than setting PDU head length degree, then above-mentioned other electric equipment, to in above-mentioned PDU from the topmost portion of above-mentioned PDU to the above-mentioned above-mentioned PDU head of having set PDU head length degree, and in above-mentioned PDU from above-mentioned topmost portion to the later PDU main body of an above-mentioned PDU length value, handle.
Aforesaid domestic network system, wherein as the thresholding of above-mentioned PDU head length degree less than setting PDU head length degree, then above-mentioned other electric equipment according to above-mentioned PDU head length degree thresholding, is handled above-mentioned whole PDU.
Aforesaid domestic network system, wherein PDU is the application layer communication protocol data unit (APDU) of above-mentioned communication protocol application layer.
Aforesaid domestic network system wherein can change the above-mentioned PDU head length degree of having set.
Aforesaid domestic network system, wherein above-mentioned communication protocol are interactive network control communication protocol (LnCP).
Domestic network system of the present invention is:
A kind of domestic network system is characterized in that electric equipment is the electric equipment of the special communication protocol that formed by lower layer and upper layer at least; The upper layer of above-mentioned electric equipment from above-mentioned lower layer, receives the communication protocol data unit (PDU) with above-mentioned communication protocol; In PDU, read PDU length field, and carry out the thresholding of above-mentioned PDU head length degree and the comparison of setting PDU head length degree, handle PDU according to above-mentioned comparative result.
Aforesaid domestic network system, wherein as the thresholding of above-mentioned PDU head length degree with to set PDU head length degree identical, then above-mentioned upper layer according to above-mentioned PDU head length degree thresholding, handle above-mentioned whole PDU.
Aforesaid domestic network system, wherein as the thresholding of above-mentioned PDU head length degree with to have set PDU head length degree portion inequality, then handle all or part of of above-mentioned PDU.
Aforesaid domestic network system, wherein as the thresholding of above-mentioned PDU head length degree greater than setting PDU head length degree, then above-mentioned upper layer, to in above-mentioned PDU from the topmost portion of above-mentioned PDU to the above-mentioned above-mentioned PDU head of having set till the PDU head length degree, and in above-mentioned PDU from above-mentioned topmost portion to the later PDU main body of an above-mentioned PDU length value, handle.
Aforesaid domestic network system, wherein as the thresholding of above-mentioned PDU head length degree less than setting PDU head length degree, then above-mentioned upper layer according to above-mentioned PDU head length degree thresholding, is handled above-mentioned whole PDU.
Aforesaid domestic network system, wherein PDU is the application layer communication protocol data unit (APDU) as the application layer of above-mentioned upper layer.
Aforesaid domestic network system wherein can change the above-mentioned PDU head length degree of having set.
Aforesaid domestic network system, wherein communication protocol is interactive network control communication protocol (LnCP).
The data processing method of domestic network system of the present invention is:
A kind of data processing method of domestic network system is characterized in that it comprises: receive the stage with the communication protocol data unit (PDU) of special communication protocol; In above-mentioned PDU, read the stage of PDU length field; Above-mentioned PDU head length degree thresholding with set the stage that PDU head length degree compares; Handle the stage of above-mentioned PDU according to above-mentioned comparative result.
The data processing method of aforesaid domestic network system, the thresholding of above-mentioned PDU head length degree is handled above-mentioned PDU whole according to the thresholding of above-mentioned PDU head length degree with to set PDU head length degree identical in then above-mentioned the processing stage wherein as in above-mentioned comparison phase.
The data processing method of aforesaid domestic network system, the thresholding of above-mentioned PDU head length degree is handled all or part of of above-mentioned PDU in then above-mentioned the processing stage with to have set PDU head length degree inequality wherein as in above-mentioned comparison phase.
The data processing method of aforesaid domestic network system, the thresholding of above-mentioned PDU head length degree is greater than setting PDU head length degree wherein as in above-mentioned comparison phase, in then above-mentioned the processing stage, to from the topmost portion of above-mentioned PDU to the above-mentioned above-mentioned PDU head of having set till the PDU head length degree, and in above-mentioned PDU from above-mentioned topmost portion to the later PDU main body of an above-mentioned PDU length value, handle.
The data processing method of aforesaid domestic network system, wherein as in above-mentioned comparison phase the thresholding of above-mentioned PDU head length degree less than setting PDU head length degree, the processing stage of then above-mentioned in according to above-mentioned PDU head length degree thresholding, handle above-mentioned whole PDU.
The data processing method of aforesaid domestic network system, wherein PDU is the data processing method of the application layer communication protocol data unit (APDU) of above-mentioned communication protocol application layer for the domestic network system of feature.
The data processing method of aforesaid domestic network system, wherein processing method also comprises the stage that becomes the new above-mentioned PDU head length degree of having set.
The data processing method of aforesaid domestic network system, wherein communication protocol is interactive network control communication protocol (LnCP).
The above, it only is preferred embodiment of the present invention, be not that the present invention is done any pro forma restriction, every foundation technical spirit of the present invention all still belongs in the scope of technical solution of the present invention any simple modification, equivalent variations and modification that above embodiment did.
Description of drawings
The present invention is further described below in conjunction with drawings and Examples.
Fig. 1 is a domestic network system block diagram of the present invention.
Fig. 2 is the block diagram of interactive network control communication protocol of the present invention.
Fig. 3 a is the interface schematic diagram of the interlayer when physical layer 90 connects non-independent shape transmission medium among Fig. 2.
Fig. 3 b is the interface schematic diagram of the interlayer when physical layer 90 connects independent shape transmission medium among Fig. 2.
Fig. 4 a is the structured flowchart of the APDU in the application layer 60 among Fig. 3 a, the 3b.
Fig. 4 b is the structured flowchart of the APDU in the application layer 70 among Fig. 3 a, the 3b.
Fig. 4 c is the detailed block diagram of NLC among the NPDU.
Fig. 4 d is the structured flowchart of the HCNPDU in the home network control subsidiary layer 71 for Fig. 3 a, 3b.
Fig. 4 e is the structured flowchart of the data framework in the data link layer for Fig. 3 a, 3b.
Fig. 4 f is the structured flowchart of the data framework in the physical layer 90 for Fig. 3 a, 3b.
Fig. 5 is the flow chart of data processing method of the present invention.
The number in the figure explanation:
1: domestic network system 2: internet network
3:LnCP server 4: client computer
10: gateway 20~23: network manager
30,31:LnCP router four 0~49: electric equipment
Embodiment
As shown in Figure 1, domestic network system 1 is connected to LnCP server 3 by internet network 2.Customer equipment 4 is connected to LnCP server 3 by internet network 2 in addition.That is, domestic network system 1 is connected into the information of can transmitting mutually to LnCP server 3 and/or customer equipment 4.
The external network of domestic network system 1 comprises internet network 2, and the kind of the network based customer equipment 4 of said external also can possess miscellaneous equipment.That is, be example with this internet network 2, customer equipment 4 possesses Web server (Websever) (not shown) during for computer, and customer equipment 4 possesses the communication server (Wap sever) (not shown) during for the networking telephone.
LnCP server 3 is connected to domestic network system 1 and customer equipment 4 respectively by specific registration and deregistration procedure, receives supervision and control command etc. from customer equipment 4, and the information by internet network 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 customer equipment 4 from domestic network system 1.In addition, LnCP server 3 stores self or the information of generation is sent to above-mentioned domestic network system 1.That is, domestic network system 1 is connected in 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 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 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 coupled to each other by each electric equipment 40~49 shared transmission medium to be formed.This transmission medium can utilize the transmission medium (non-standardized transmission medium) of data link layer unnormalizeds such as RS-485 or lower powered RF, maybe can utilize the transmission medium (standardized transmission medium) of normalization such as power line or IEEE802.11.
Network in the domestic network system 1 by with internet network 2 are the networks that are separated from each other.That is, the network in the above-mentioned domestic network system 1 constitutes the separate network that is connected by wired or wireless transmission medium.Here, though separate network comprises the network that the coupled situation that is in is physically separated in theory.
Domestic network system 1 comprises master control (Master) equipment and subordinate (Slave) equipment.Main control device can control apparatus equipment 40~49 or is monitored its operating state.Slave can be responded the request of main control device and the variation information of notice oneself state.This main control device comprises network manager 20~23, and slave comprises electric equipment 40~49.This network manager 20~23 comprises the information and the control code of the electric equipment 40~49 that will control, and programmed mode is carried out control operation, or receives after the information of LnCP server and/or customer equipment 4 inputs, carries out control operation.In addition, as shown in Figure 1, be connected with a plurality of network managers 20~23 o'clock, for carry out and other network manager 20~23 between exchange message, also for the synchronization of information and control, these network managers 20~23 not only can be main control devices but also can be slave.Promptly should be a kind of, from physical significance equipment just, but be to have master control simultaneously and from the equipment (being compatible equipment) of the function of dominant in theory.
In addition, these network managers 20~23 and electric equipment 40~49 can directly be connected on the network (power line network as shown in Figure 1, RS-485 network, RF network).In addition, can also connect by LnCP router three 0,31 and/or LnCP network adapter 35,36.
In addition, 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.).This theoretical address and product code (for example air-conditioning is ' 0x02 ', and washing machine is ' 0x01 ') in conjunction with after, use as node address (Node Address).For example, the identical node address by 0x02009 (air-conditioning 1) and 0x0201 (air-conditioning 2) is 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 this group address, this dominance group address is group (cluster) address of a plurality of customer equipment of appointment when being set at " 1 " address choice value (following is mark flag) in the dominance group address.The tacit declaration 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 interactive network control communication protocol (LnCP) block diagram of the present invention.Domestic network system 1 can make network manager 20~23 by the control communication protocol of the interactive network 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, data link layer 80, physical layer 90 and instrumental variable management level 100.Application software 50 is brought into play network managers 20~23, LnCP router three 0,31, LnCP network adapter 35,36, is reached the inherent function of electric equipment 40~49.And the function that connects 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 layer after information that the user is provided or the order composition information.Network layer 70 can be network manager 20~23, LnCP router three 0,31, and connecting between LnCP network adapter 35,36 and the electric equipment 40~49 is reliable network.Data link layer 80 provides the connection controlled 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.The instrumental variable (node parameter) of the node that uses in instrumental variable management level 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 instrumental variable, and management is connected in 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 pass through instrumental variable management level 100, sets the instrumental variable numerical value or the variable that utilizes the medium instrumental variable is managed.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 also comprises home network sign indicating number control subsidiary layer 71.Net connection has network manager 20~23, LnCP router three 0,31, LnCP network adapter 35,36 and electric equipment 40~49.When utilize power line or IEEE 802.11, non-independent shape transmission medium such as wireless (for example LnCP comprise power line communication (PLC) agreement/or during wireless (wireless) agreement) when constituting above-mentioned network, in order to divide each network in theory, the function of home network sign indicating number and managing family network code is set in 71 performances of home network sign indicating number control subsidiary layer.This home network sign indicating number control subsidiary layer 71, is not included among the LnCP during from physical significance separation individual networks by independent shape transmission mediums such as picture RS-485.This home network sign indicating number is formed with 4 bytes (byte), is set at random (random) value or user's set point.
The interface block diagram of Fig. 3 a interlayer during non-independent shape transmission medium for the physical layer 90 among Fig. 2 is connected to.The interface block diagram of Fig. 3 b interlayer during independent shape transmission medium for the physical layer 90 among Fig. 2 is connected to.
Domestic network system 1 is the head (header) of each layer needs and pull sign indicating number (trailer) information and be added to from the communication protocol information unit (Protocol Data Unit:PDU) that upper layer receives, and is being communicated to lower layer.
Shown in Fig. 3 a, 3b, 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 data link layer 80 or the home network sign indicating number subsidiary layer 71.HCNPDU (Home CodeControl Sublayer PDU) is the data value that transmits between network layer 70 (the definite home network sign indicating number subsidiary layer 71 of saying so) and data link layer 80 or the home network sign indicating number subsidiary layer 71.Press data value (data) between data link layer 80 and the physical layer 90, data framework unit forms interface.
Fig. 4 a is the APDU structure in application layer 60 among Fig. 3 a, the 3b.
AL (APDU Length) territory is the territory of the length (AL is to the length of data framework group) of expression APDU, and minimum value is that 4 maximums are 77.
AHL (APDU Header Length) territory be the expression APDU head (header) length (AL is to the length of ALO), the territory, be 3 bytes when not expanding, can expand to 7 bytes.For the encipherment of data framework group, can expand to 7 bytes in the LnCP communication protocol in order to upgrade APDU heads (header) such as application protocol.
ALO (Application Layer Option) territory is the territory that is used for extend information 3, and when for example this territory was set to " 0 ", information processing was out in the cold when other value was housed.(sic).
The data framework group is processing user's the control information or the territory of project information, and its structure is along with the variation of the contained value of ALO changes.
Fig. 4 b is the structured flowchart of the NPDU in the network layer 70 among Fig. 3 a, the 3b, and Fig. 4 c is the detailed block diagram of the NLC among the NPDU.
SLP (Start of LnCP Packet) territory is the domain of expression packet, and its value is 0x02.
The territory of DA (Destination Address) and SA (Source Address) is respectively the destination of the packet that will transmit and the node address of the side of delivering letters, and each is made of 16 bits.Here upper 1 bit is the mark (flag) of demonstration group address, the kind (product code) that ensuing 7 bits are product, and the next 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 the next 8 bits are used to divide above-mentioned each network manager 20~23 or electric equipment 40~49.
PL (Packet Length) territory is for showing the territory of the NPDU length overall that will transmit, and its minimum value is 12 bytes, and maximum is 100 bytes.
SP (Service Priority) territory is to give the territory that transmission information transmits priority bit, is made of 3 bits.Each transmits the order of priority such as the table 2 of information.
When the subordinate customer equipment is replied the request of master control customer equipment, the order of priority of the solicited message that retinue's master control customer equipment receives.
Table 2
Order of priority Value Be suitable for (Application Layer)
High (High) 0 -when transmitting emergence message
In (Middle) 1 -when transmitting the general data bag-during the project 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 general item information
Low (Low) 3 -when transmitting the value according to the producer that downloads or upload
NHL (NPDU Header Length) territory is to be used for expanding the territory that NPDU head (header) (the NLC territory of SLP) uses, and is 9 bytes when not expanding, and maximum can expand to 16 bytes.
PV (Protocol Version) territory is the territory that shows 1 byte of the communication protocol version that is adopted, and is made of upper 4 bits and the next 4 bits.Upper 4 bits are version (version) territory, and the next 4 bits are server version (sub-version) territory.Version (version) and server version (sub-version) are respectively with 16 systems mark method version of display.
NPT (Network layer Packet Type) territory is 4 bit field of dividing data bag kind in network layer.LnCP comprises request data package (Request Packet), reply data bag (ResponsePacket), notification data bag (Notification Packet).The NPL territory of master control customer equipment should be set at request data package or notification data bag, and the NPL territory 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 connects with home network sign indicating number control subsidiary layer is worth with reservation
TC (Transmission Counter) territory 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 field of transmission more repeatedly.The destination can utilize the numerical value in TC territory, detects duplicate message.With the scope of the TC thresholding of NPT value with 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) territory is made of 2 bits.In slave, be used with TC in order to detect repetitive data packet PN (Packet Number) territory.In the master control customer equipment, be used in order to handle a plurality of communication cycles.Scope with the PN territory 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 thresholding of duplicate requests packet
The notification data bag 0~3
The APDU territory is the unit of the communication 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) territory is 16 bit field for the mistake that detects data accepted bag (SLP is to the APDU territory).
ELP (End of LnCP Packet) territory is the territory of video data Bao Weiduan, and its value is 0x03.If receive with the data packet length territory in length corresponding data values (data), can not detect the ELP territory, then be shown packet error.
Fig. 4 d is that the home network sign indicating number among Fig. 3 a, the 3b is controlled the HCNPDU structured flowchart in the subsidiary layer 71.
Shown in Fig. 4 d, the last bit position of NPDU also comprises HC (Home Code) territory.
The numerical value of this home network sign indicating number is made of 4 bytes.This home network sign indicating number has unique value in the distance of the propagable circuit of packet.
Fig. 4 e is the structured flowchart of the data framework in the data link layer among Fig. 3 a, the 3b.
The head of the data framework of the data link layer of LnCP (header) and pull the sign indicating number (trailer) form different structures according to transmission medium.When data link layer 80 is used the transmission medium of unnormalizeds, the head of data framework (header) and pull and yard should have Null territory (Null Field).As use normalized transmission medium, then with the regulation of communication protocol.The NPDU territory is the unit from the data value of upper network layer 70 transmission.The data value unit that HCNPDU used when being physical layer 90 for non-independent shape transmission medium such as power line or IEEE 802.11 is the data value unit of appending 4 byte home network sign indicating numbers at the NPDU front end.Data link layer 80 is not divided the processing of NPDU and HCNPDU.
Fig. 4 f is the data framework structure chart in the physical layer 90 among Fig. 3 a, the 3b.
The physical layer 90 of LnCP has the function that physical signalling is sent to transmission medium.As the physical layer 90 of LnCP communication protocol, the transmission medium of the unnormalized data link layer 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 adapter 35,36 and connect, utilized the signal standards (level) of UART (Universal Asynchronous Receiver and Transmitter) data framework 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 upper layer is sent here, be transformed into the UART data framework unit of 10 bit sizes after, transmit by transmission medium.The UART data framework is made of the start bit (Start Bit) of 1 bit, the data value (data) of 8 bits and the position of rest (Stop Bit) of 1 bit.Above-mentioned UART data framework does not use effect position (ParityBit).The UART data framework is passed on from start bit, passes on position of rest at last.When the domestic network system 1 of suitable LnCP utilizes UART, do not use the data framework head (frame header) and the framework that append to pull sign indicating number (a frame trailer).
Fig. 5 is the flow chart of data processing method of the present invention.
Be suitable for all applicable data processing method of the present invention of LnCP of main control device and slave.Because of the AHL thresholding can be expanded to 7 bytes from 3 bytes, so need this data processing method.As shown in Figure 5.
In stage (S71), application layer 60 receives APDU from network layer 70.This APDU is spread out of by other each network manager 20~23 and/or each electric equipment 40~49, through physical layer 90, data link layer 80 and network layer, passes to application layer 60.
In stage (S72), application layer 60 reads the AHL territory from the APDU that has received.That is, because of the topmost portion of the APDU that received is AL, next byte is AHL, so application layer 60 reads 1 byte since the 2nd byte.
In stage (S73), application layer 60 is carried out the comparison to the value of AHL thresholding that has read and the AHL that has set.Here, the AHL that has set is determined by the LnCP version that is applicable to equipment.For example, same as above in the initial stage version, comprise " 3 (that is, binary number 00000011) ", the head length degree of expression APDU is 3 bytes.As the AHL thresholding that reads promptly, is suitable for the LnCP of same version with to set the AHL value identical, then carries out the stage (S74).As not being then to carry out the stage (S75).
In stage (S74), AHL thresholding that application layer 60 bases read or the AHL value of having set are handled whole APDU.At this moment, the byte of AHL thresholding that has read or the corresponding AHL value of having set becomes the APDU head.In APDU, the later data of upper partial bytes become the information that is equivalent to the APDU main body, and above-mentioned here APDU upper partial words joint number is corresponding to the AHL thresholding.In addition, append this information of processing by information specific handling process (this specification is not explained).
In stage (S75), application layer 60 judges that whether the AHL thresholding that reads is greater than the AHL value of having set.Greater than the AHL value of having set, then carry out the stage (S76) as the AHL thresholding that read.Otherwise, then carry out the stage (S77).
In stage (S76), application layer 60 is only handled the part of APDU according to the AHL value of having set.That is, because the APDU that receives has with the data more than application layer 60 disposal abilities of LnCP, above-mentioned LnCP is the LnCP that is applicable to the APDU that has received.Promptly can not handle total data.So according to the AHL value of having set with suitable LnCP version, from the APDU topmost portion that has received, the byte of corresponding A HL value becomes the APDU head, the LnCP version here is the LnCP version that is suitable for according to application layer 60; In APDU, the later data of upper partial bytes become the information that is equivalent to the APDU main body, and above-mentioned here APDU upper partial words joint number is corresponding to the AHL thresholding.In addition, append this information of processing by information specific handling process (this specification is not explained).
In stage (S77), application layer 60 is handled whole APDU according to the AHL thresholding that reads.Promptly, during more Zao LnCP version of the LnCP version that the LnCP version that the APDU that has received is suitable for is suitable for than application layer 60, the byte of the corresponding AHL thresholding that has read, become the APDU head, in APDU, the later data of upper partial bytes become the information that is equivalent to the APDU main body, and above-mentioned here APDU upper partial words joint number is corresponding to the AHL thresholding.In addition, append this information of processing by information specific handling process (this specification is not explained).
This data processing method can also comprise appends the stage that the AHL value has been set in renewal.For example, upgrade, be updated to the renewal process of the AHL value of the LnCP that has upgraded, carry out this update stage, or, carry out above-mentioned update stage by the step of updating that the user operates by upgraded version with LnCP.
[invention effect]
In sum, each electric equipment that provides in the domestic network system is provided in the present invention, and the functions such as control and supervision are provided, applicable general rule of communication, the i.e. effect of the domestic network system of network control communications agreement.
The present invention has the effect of controlling the domestic network system of communication agreement (Living network Control Protocol:LnCP) with the interactive network of rule of communication as general.
The present invention provides and has processed the various ways packet of different editions and/or the effect of information according to the LnCP version that uses.
The present invention has the effect of the domestic network system that new data packets more and/or information processing benchmark are provided.

Claims (24)

1, a kind of domestic network system is characterized in that it is formed by at least two above electric equipments and the network with special communication protocol that connects above-mentioned each electric equipment;
An above-mentioned electric equipment passes the communication protocol unit (PDU) with above-mentioned communication protocol to above-mentioned other electric equipment, above-mentioned other electric equipment receives above-mentioned PDU, read the territory of PDU head length degree at PDU, and carry out the thresholding of above-mentioned PDU head length degree and set the comparison of PDU head length degree and, handle above-mentioned PDU according to above-mentioned comparison.
2, domestic network system according to claim 1 is characterized in that as the thresholding of above-mentioned PDU head length degree with to set PDU head length degree identical, and then above-mentioned other electric equipment according to above-mentioned PDU head length thresholding, is handled above-mentioned whole PDU.
3, domestic network system according to claim 1 is characterized in that, with to have set PDU head length degree inequality, then above-mentioned other electric equipment is handled all or part of of above-mentioned PDU as the thresholding of above-mentioned PDU head length degree.
4, domestic network system according to claim 3, it is characterized in that thresholding as above-mentioned PDU head length degree is greater than setting PDU head length degree, then above-mentioned other electric equipment, to in above-mentioned PDU from the topmost portion of above-mentioned PDU to the above-mentioned above-mentioned PDU head of having set PDU head length degree, and in above-mentioned PDU from above-mentioned topmost portion to the later PDU main body of an above-mentioned PDU length value, handle.
5, domestic network system according to claim 3 is characterized in that as the thresholding of above-mentioned PDU head length degree less than setting PDU head length degree, and then above-mentioned other electric equipment according to above-mentioned PDU head length degree thresholding, is handled above-mentioned whole PDU.
6,, it is characterized in that above-mentioned PDU is the application layer communication protocol data unit (APDU) of above-mentioned communication protocol application layer according to claim 1 or 2 or 3 or 4 or 5 described domestic network systems.
7,, it is characterized in that to change the above-mentioned PDU head length degree of having set according to claim 1 or 2 or 3 or 4 or 5 described domestic network systems.
8, domestic network system according to claim 1 is characterized in that above-mentioned communication protocol is interactive network control communication protocol (LnCP).
9, a kind of domestic network system is characterized in that electric equipment is the electric equipment of the special communication protocol that formed by lower layer and upper layer at least; The upper layer of above-mentioned electric equipment from above-mentioned lower layer, receives the communication protocol data unit (PDU) with above-mentioned communication protocol; In PDU, read PDU length field, and carry out the thresholding of above-mentioned PDU head length degree and the comparison of setting PDU head length degree, handle PDU according to above-mentioned comparative result.
10, domestic network system according to claim 9 is characterized in that as the thresholding of above-mentioned PDU head length degree with to set PDU head length degree identical, then above-mentioned upper layer is handled above-mentioned whole PDU according to above-mentioned PDU head length degree thresholding.
11, domestic network system according to claim 9 is characterized in that as the thresholding of above-mentioned PDU head length degree then handling all or part of of above-mentioned PDU with to have set PDU head length degree portion inequality.
12, domestic network system according to claim 11, it is characterized in that thresholding as above-mentioned PDU head length degree is greater than setting PDU head length degree, then above-mentioned upper layer, to in above-mentioned PDU from the topmost portion of above-mentioned PDU to the above-mentioned above-mentioned PDU head of having set till the PDU head length degree, and in above-mentioned PDU from above-mentioned topmost portion to the later PDU main body of an above-mentioned PDU length value, handle.
13, domestic network system according to claim 11 is characterized in that as the thresholding of above-mentioned PDU head length degree less than setting PDU head length degree, then above-mentioned upper layer according to above-mentioned PDU head length degree thresholding, is handled above-mentioned whole PDU.
14,, it is characterized in that above-mentioned PDU is the application layer communication protocol data unit (APDU) as the application layer of above-mentioned upper layer according to claim 9 or 10 or 11 or 12 or 13 described domestic network systems.
15,, it is characterized in that to change the above-mentioned PDU head length degree of having set according to claim 9 or 10 or 11 or 12 or 13 described domestic network systems.
16, domestic network system according to claim 9 is characterized in that above-mentioned communication protocol is interactive network control communication protocol (LnCP).
17, a kind of data processing method of domestic network system is characterized in that it comprises:
Reception is with the stage of the communication protocol data unit (PDU) of special communication protocol;
In above-mentioned PDU, read the stage of PDU length field;
Above-mentioned PDU head length degree thresholding with set the stage that PDU head length degree compares;
Handle the stage of above-mentioned PDU according to above-mentioned comparative result.
18, the data processing method of domestic network system according to claim 17, it is characterized in that as the thresholding of above-mentioned PDU head length degree in above-mentioned comparison phase with to set PDU head length degree identical, handle the whole of above-mentioned PDU according to the thresholding of above-mentioned PDU head length degree in then above-mentioned the processing stage.
19, the data processing method of domestic network system according to claim 17, it is characterized in that as the thresholding of above-mentioned PDU head length degree in above-mentioned comparison phase with to have set PDU head length degree inequality, handle all or part of of above-mentioned PDU in then above-mentioned the processing stage.
20, the data processing method of domestic network system according to claim 19, it is characterized in that thresholding as above-mentioned PDU head length degree in above-mentioned comparison phase is greater than setting PDU head length degree, in then above-mentioned the processing stage, to from the topmost portion of above-mentioned PDU to the above-mentioned above-mentioned PDU head of having set till the PDU head length degree, and in above-mentioned PDU from above-mentioned topmost portion to the later PDU main body of an above-mentioned PDU length value, handle.
21, the data processing method of domestic network system according to claim 19, it is characterized in that thresholding as above-mentioned PDU head length degree in above-mentioned comparison phase is less than setting PDU head length degree, according to above-mentioned PDU head length degree thresholding, handle above-mentioned whole PDU in the processing stage of then above-mentioned.
22,, it is characterized in that above-mentioned PDU is the data processing method of the application layer communication protocol data unit (APDU) of above-mentioned communication protocol application layer for the domestic network system of feature according to the data processing method of claim 17 or 18 or 19 or 20 or 21 described domestic network systems.
23,, it is characterized in that processing method also comprises the stage that becomes the new above-mentioned PDU head length degree of having set according to the data processing method of claim 17 or 18 or 19 or 20 or 21 described domestic network systems.
24, the data processing method of domestic network system according to claim 17 is characterized in that above-mentioned communication protocol is interactive network control communication protocol (LnCP).
CNA200410071830XA 2004-09-06 2004-09-06 Household network system Pending CN1747414A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA200410071830XA CN1747414A (en) 2004-09-06 2004-09-06 Household network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA200410071830XA CN1747414A (en) 2004-09-06 2004-09-06 Household network system

Publications (1)

Publication Number Publication Date
CN1747414A true CN1747414A (en) 2006-03-15

Family

ID=36166746

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA200410071830XA Pending CN1747414A (en) 2004-09-06 2004-09-06 Household network system

Country Status (1)

Country Link
CN (1) CN1747414A (en)

Similar Documents

Publication Publication Date Title
CN1799224A (en) Home network system
US20090024727A1 (en) Network system management method
CN111010324A (en) Household appliance ad hoc network method and system based on BLE MESH network protocol
CN101164285A (en) Packet structure and packet transmission method of network control protocol
CN1767472A (en) Household network system
US20080172481A1 (en) Method of Configuring Network Profile of Network System
CN1747414A (en) Household network system
CN1747416A (en) Household network system
CN1767459A (en) Household network system and its electrical appliance equipment
CN1747417A (en) Network system of electrical appliances
CN1747411A (en) Household network system
CN1767460A (en) Household network system and its affirmation method
CN1767462A (en) Household network system
CN1747413A (en) Household network system
CN1767461A (en) Household network system
CN1767473A (en) Household network system and its item informing method and electrical appliance equipment
CN1767475A (en) Household network system and its movement precontract setting method and associated electrical appliance equipment
CN1767474A (en) Household network system and its address setting method and associated electrical appliance equipment
CN1767471A (en) Household network system
CN1767469A (en) Household network system
CN1747410A (en) Household network system and repeating data packet discrimination therefor
CN1767481A (en) Household network system and information acquisition method and electrical appliance
CN1767463A (en) Household network system
CN1767458A (en) Household network system and its affirmation method
CN1956440A (en) Domestic network system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication