CN1747476A - Data process in network layer - Google Patents

Data process in network layer Download PDF

Info

Publication number
CN1747476A
CN1747476A CN 200410071823 CN200410071823A CN1747476A CN 1747476 A CN1747476 A CN 1747476A CN 200410071823 CN200410071823 CN 200410071823 CN 200410071823 A CN200410071823 A CN 200410071823A CN 1747476 A CN1747476 A CN 1747476A
Authority
CN
China
Prior art keywords
mentioned
primitive
communication cycles
data
network layer
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 200410071823
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 200410071823 priority Critical patent/CN1747476A/en
Publication of CN1747476A publication Critical patent/CN1747476A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A data processing method of network layer for the communication protocol consisting of physical layer, data link layer, network layer and application layer includes such steps as receiving the message sending primitive (Msg Send) formed by APDU from application layer, generating the communication cycle details, generating the data packet sending primitive (PktSend) formed by NPDU, and sending the primitive Pktsend to data link layer.

Description

Data process in network layer
One, technical field
The present invention relates to data processing method, relate in particular to a kind of data process in network layer (DATA PROCESSING METHOD FOR NETWORK LAYER) that is applicable to domestic network system.
Two, background technology
Family's network (home Network) is a kind of network that each digitlization man is electrically connected. By family's 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 massage treatment technology, the 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 message household electrical appliances of above-mentioned technology are appearring fully utilizing. Under above-mentioned background, domestic network system has appearred.
The following table 1 of this kind family network can be divided into data network according to the COS that provides, amusement net and interactive network.
Table 1
Classification Function COS
The data net Network between PC and all edge equipments Exchanges data, and network service
The amusement net Network between A/V (Audio/Video) equipment Music, the services such as animation
Interactive network Home appliance control network The control of home appliance, automation appliance, long-range control, messenger service etc.
Here, data network (data network) belongs between PC and all edge equipments, for exchanges data or the network type of providing services on the Internet etc. and to set up. Amusement net (entertainment network) belongs to processes ODO, family's network type of the message such as VDO. In addition, interactive network (living network) refers to be controlled to be merely with automation appliance or long-range control etc. the network of purpose.
The domestic network system that this kind is used for family is formed by master control (master) equipment and slave as electric equipment. As electric equipment, master control equipment controls or shows the state of other electric equipments to other electric equipments. As electric equipment, slave is pressed characteristic or other key elements of electric equipment, the requirement of master control equipment is replied, and export the state change message 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, also comprises for the household electrical appliances of data network service and the household electrical appliances that are used for the service of amusement network. In addition, also comprise the automatic empty equipment of coal gas and automatically-controlled door, the electrical equipment such as electric light.
This kind conventional art can not provide general usefulness (broad sense) communication specification of the electric equipment in the domestic network system being fulfiled the functions such as control and supervision.
Three, summary of the invention
Main purpose of the present invention is to overcome the above-mentioned shortcoming that existing product exists, and provide a kind of data process in network layer (DATA PROCESSING METHOD FOR NETWORK LAYER), it provides a kind of applicable general communication specification of using---the data process in network layer of the domestic network system of control communication agreement, this general function that has control and monitor each electric equipment in the domestic network system with communication specification.
Another object of the present invention is for providing a kind of data process in network layer, and it is as the general data process in network layer that adopts interactive network control communication agreement (Living network Control Protocol:LnCP) with communication specification.
An again purpose of the present invention is for providing a kind of data process in network layer, and it carries out the again transmission of packet under certain conditions, improves data-transmission efficiency.
A further object of the present invention is for providing a kind of data process in network layer, and it can transmit packet to data link layer from application layer.
The objective of the invention is to be realized by following technical scheme.
Data process in network layer of the present invention, it is characterized in that, at least in the communication agreement that is formed by Physical layer, data link layer, Internet and application layer, comprise from application layer, receive the stage of message transmission (MsgSend) primitive that is consisted of by application layer communication protocol data unit (APDU); Transmit the stage that (MsgSend) primitive generates the communication cycles detail according to message; Transmit (MsgSend) primitive and/or communication cycles detail according to message, generate the stage of packet transmission (PktSend) primitive that is consisted of by network layer communication agreement data unit (NPDU); Packet is transmitted (PktSend) primitive biography to the stage of data link layer.
Aforesaid data process in network layer, wherein the communication cycles detail comprises communication cycles identifier (CycleID), the communication cycles identifier is included in described message and transmits in (MsgSend) primitive.
Aforesaid data process in network layer, wherein the communication cycles detail comprises communication cycles type (CycleType), the communication cycles type is included in described message and transmits (MsgSend) primitive, according to Internet service (NLService) and/or purpose address setting communication cycles type.
Aforesaid data process in network layer, wherein Internet service comprise at least need to reply (Acknowledged), not need to reply (Non-acknowledged), a certain in the notice (Repeated-notification) repeatedly.
Aforesaid data process in network layer, comprise the 1st coding or the 2nd coding when wherein the communication cycles type is replied (Acknowledged) at needs, when not needing to reply (Non-acknowledged), comprise the 3rd coding, when repeatedly notifying (Repeated-notification), comprise the 4th coding.
Aforesaid data process in network layer, wherein the 1st be encoded to " 1-request, 1-reply " communication cycles, the 2nd be encoded to " 1-request, many-as to reply " communication cycles, the 3rd is encoded to " 1-notice " communication cycles, the 4th be encoded to " repeatedly-notify " communication cycles.
Aforesaid data process in network layer, the single collection of letters is pointed in the purpose address that message transmission (MsgSend) primitive in wherein needing to reply comprises, then described communication cycles type comprises the 1st coding, if the purpose address is pointed to several and collected mail, then described communication cycles type comprises the 2nd coding.
Aforesaid data process in network layer, wherein the communication cycles detail comprises the connector address, and the connector address comprises destination addresses, and destination addresses is included in described message and transmits in (MsgSend) primitive.
Aforesaid data process in network layer, wherein the communication cycles detail comprises package number (PacketNo).
Aforesaid data process in network layer, wherein the communication cycles detail comprises that the value of package number (PacketNo) is, the value after the employed value of communication cycles that has just finished recently adds " 1 ".
Aforesaid data process in network layer, wherein data processing method also comprised such as the next stage,, if the package number that obtains after the described addition (PacketNo) value is certain limiting value, then above-mentioned value was set for the stage of initial value that is.
Aforesaid data process in network layer, wherein initial value is " 0 ", limiting value is " 4 ".
Aforesaid data process in network layer, wherein the communication cycles detail comprises Internet service (NLService), this Internet service (NLService) is included in above-mentioned message and transmits in (MsgSend) primitive.
Aforesaid data process in network layer, wherein the communication cycles detail comprises service priority order (SvcPriority), this service priority order (SvcPriority) is included in above-mentioned message and transmits in (MsgSend) primitive.
Aforesaid data process in network layer, wherein the communication cycles detail comprises the time-out time (TimeOut), this time-out time is included in above-mentioned message and transmits in (MsgSend) primitive.
Aforesaid data process in network layer, wherein the communication cycles detail comprises be used to the transmission number of times (TransmissionNo) that transmits same NPDU.
Aforesaid data process in network layer, the initial value that wherein transmits number of times (TransmissionNo) is ' 1 '.
Aforesaid data process in network layer, wherein the communication cycles detail comprises the elapsed time (ElapsedTime), the elapsed time represent from described application layer receive behind the new communication cycles identifier (CycleID) time of process.
Aforesaid data process in network layer, wherein the initial value in elapsed time (ElapsedTime) is ' 0 '.
Aforesaid data process in network layer, wherein the communication cycles detail comprises and replys information receiving state (ResRcvState), this is replied information receiving state and represents whether receive the packet of replying that transmits (MsgSend) primitive corresponding to above-mentioned message.
Aforesaid data process in network layer, wherein generate in the stage of above-mentioned packet transmission (PktSend) primitive, append network layer communication agreement data unit (NPDU) head and tail in described application layer communication protocol data unit (APDU), utilize network layer communication agreement data unit (NPDU) to generate above-mentioned packet and transmit (PktSend) primitive.
Aforesaid data process in network layer, wherein data processing method also comprised such as the next stage, the stage that namely NPDU that generates is stored.
Aforesaid data process in network layer, wherein processing method also comprised such as the next stage: the stage that finishes in some cases current communication cycles.
Aforesaid data process in network layer, wherein data processing method also comprises following each stage: after carrying out the stage of described end communication cycles, the detailed stage of deleting communication circulation; Internet is finished (NLCompleted) primitive biography to the stage of application layer; This Internet is finished the encoded radio that (NLCompleted) comprises (meaning) communication cycles result.
Aforesaid data process in network layer, the agreement of wherein communicating by letter are useful in above-mentioned master control device.
Aforesaid data process in network layer, wherein finish in the stage, what following several situations represented is successful finishing: when above-mentioned communication cycles type is the 1st coding, and the above-mentioned situation of information receiving state (ResRcvState) for replying the collection of letters (RES_RECEIVED) of replying; When above-mentioned communication cycles type is the 2nd coding, the above-mentioned information receiving state (ResRcvState) of replying is for replying the collection of letters (RES_RECEIVED), and the above-mentioned elapsed time (ElapsedTime) is greater than the situation of time-out time (TimeOut); When above-mentioned communication cycles type was the 3rd when coding, receives from above-mentioned data link layer and to comprise that the data link layer that transmits successfully (SEND_OK) finishes the situation of (DLLCompleted) primitive; When above-mentioned communication cycles type was the 4th when coding, receives from above-mentioned data link layer and to comprise that at least a data link layer that transmits successfully (SEND_OK) finishes the situation of (DLLCompleted) primitive.
Aforesaid data process in network layer, wherein finish in the stage, what following several situations represented is failed finishing: when above-mentioned communication cycles type was the 1st coding, above-mentioned transmission number of times (TransmissionNo) transmitted the situation of number of times (SendRetries) again greater than the maximum as Internet medium variable; When above-mentioned communication cycles type is the 2nd coding, the above-mentioned information receiving state (ResRcvState) of replying is not collected mail (NOT_RECEIVED) for replying, and the above-mentioned elapsed time (ElapsedTime) is greater than the situation of time-out time (TimeOut); When above-mentioned communication cycles type is the 3rd coding, receive from above-mentioned data link layer and to comprise that the data link layer that transmits unsuccessfully (SEND_FAILED) finishes (DLLCompleted) primitive, or suspend in the time (SendTimeOut) in the transmission as the medium variable of Internet, fail to receive the situation of finishing (DLLCompleted) primitive from the data link layer of data link layer; When above-mentioned communication cycles type is the 4th coding, transmit corresponding to all packets, from above-mentioned data link layer, receive and comprise that the data link layer that transmits unsuccessfully (SEND_FAILED) finishes (DLLCompleted) primitive, or in above-mentioned transmission suspends the time (SendTimeOut), transmit corresponding to all packets, failing to receive the situation of finishing (DLLCompleted) primitive from the data link layer of data link layer is the data process in network layer of feature.
Aforesaid data process in network layer, the agreement of wherein communicating by letter is useful in slave.
Aforesaid data process in network layer, wherein finish in the stage, following information slip is shown as finishing of merit: receive from above-mentioned data link layer and comprise that the data link layer that transmits successfully (SEND_OK) finishes the situation of (DLLCompleted) primitive.
Aforesaid data process in network layer, wherein finish in the stage, following situation represents failed finishing: receive from above-mentioned data link layer and comprise that the data link layer that transmits unsuccessfully (SEND_FAILED) finishes the situation of (DLLCompleted) primitive, or in transmission time-out time (SendTimeOut) as Internet medium variable, fail to receive the situation of finishing (DLLCompleted) primitive from the data link layer of data link layer.
Aforesaid data process in network layer, wherein processing method also comprised such as the next stage: comprising that the message that stores NPDU transmits (MsgSend) primitive, the stage of transmitting again.
Aforesaid data process in network layer, wherein data processing method also comprised such as the next stage: after carrying out above-mentioned again transfer phase, the above-mentioned number of times (TransmissionNo) that transmits is again added ' 1 ', elapsed time (ElapsedTime) is set for ' 0 ', set for not reply and collect mail (NOT_RECEIVED) stage of upgrading thus above-mentioned communication cycles detail replying information receiving state (ResRcvState).
Aforesaid data process in network layer, the agreement of wherein communicating by letter is applicable to master control equipment.
Aforesaid data process in network layer, wherein be performed in a certain situation of transfer phase in following several situations: above-mentioned communication cycles type is the 1st coding or the 4th coding again, above-mentioned transmission number of times (TransmissionNo) transmits number of times (SendRetries) again less than the maximum as Internet medium variable, the above-mentioned information receiving state (ResRcvState) of replying is not collected mail (NOT_RECEIVED) for replying, and the above-mentioned elapsed time (ElapsedTime) is greater than the situation of time-out time (TimeOut); Above-mentioned transmission number of times (TransmissionNo) transmits number of times (SendRetries) again less than above-mentioned maximum, receives from above-mentioned data link layer to comprise that the data link layer that transmits unsuccessfully (SEND_FAILED) finishes the situation of (DLLCompleted) primitive; Above-mentioned transmission number of times (TransmissionNo) transmits number of times (SendRetries) again less than maximum, in above-mentioned transmission suspends the time (SendTimeOut), fail to receive the situation of finishing (DLLCompleted) primitive from the data link layer of above-mentioned data link layer.
Aforesaid data process in network layer, the agreement of wherein communicating by letter is useful in slave.
Aforesaid data process in network layer, wherein be performed in a certain situation of transfer phase in following several situations: above-mentioned communication cycles type is the 4th coding again, above-mentioned transmission number of times (TransmissionNo) transmits number of times (SendRetries) again less than the maximum as Internet medium variable, the above-mentioned information receiving state (ResRcvState) of replying is not collected mail (NOT_RECEIVED) for replying, and the above-mentioned elapsed time (ElapsedTime) is greater than the situation of time-out time (TimeOut); Above-mentioned transmission number of times (TransmissionNo) transmits number of times (SendRetries) again less than above-mentioned maximum, receives from above-mentioned data link layer to comprise that the data link layer that transmits unsuccessfully (SEND_FAILED) finishes the situation of (DLLCompleted) primitive; Above-mentioned transmission number of times (TransmissionNo) transmits number of times (SendRetries) again less than maximum, in above-mentioned transmission suspends the time (SendTimeOut), fail to receive the situation of finishing (DLLCompleted) primitive from the data link layer of above-mentioned data link layer.
Aforesaid data process in network layer wherein is useful in above-mentioned master control equipment, and it is that request message transmits (ReqMsgSend) primitive that above-mentioned message transmits (MsgSend) primitive.
Aforesaid data process in network layer, the agreement of wherein communicating by letter is useful in slave, and it is that event message transmits (EventMsgSend) primitive that above-mentioned message transmits (MsgSend) primitive.
Aforesaid data process in network layer, the agreement of wherein communicating by letter are interactive network control communication agreements (LnCP).
Four, description of drawings
Fig. 1 is family of the present invention network diagram.
Fig. 2 is the block diagram of interactive network control agreement of the present invention.
Fig. 3 a and Fig. 3 b are the interface framework of each interlayer shown in Figure 2.
Fig. 4 a to 4f is the interface detailed diagram shown in Fig. 3 a and the 3b.
Fig. 5 a, Fig. 5 b are the block diagram that comprises for the primitive (primitive) of exchange between each layer.
Fig. 6 is data processing method embodiment flow chart of the present invention.
Main parts label among the figure: 1 domestic network system, 2 internets, 3 are that LnCP server, 4 client's equipment, 10 gateways, 20 to 23 network management devices, 30,31 are LnCP router, 40 to 49 electric equipments.
Five, specifically implement mode
At least in the communication agreement that is comprised of Physical layer, data link layer, Internet and application layer, data process in network layer of the present invention comprises following each stage. That is, from above-mentioned application layer, receive the stage of message transmission (MsgSend) primitive that is consisted of by application layer communication protocol data unit (APDU); Generate the stage of communication cycles detail according to above-mentioned MsgSend primitive; Detailed according to above-mentioned MsgSend primitive and/or above-mentioned communication cycles, generate the stage by packet transmission (PktSend) primitive of network layer communication agreement data unit (NPDU) formation; Above-mentioned packet is transmitted (PktSend) primitive biography to the stage of above-mentioned data link layer.
Here, described communication cycles detail comprises communication cycles identifier (CycleID), and the communication cycles identifier is included in the MsgSend primitive.
In addition, described communication cycles detail comprises communication cycles type (CycleType), and the communication cycles type is included in MsgSend primitive, here, and according to Internet service (NLService) and/or purpose address setting communication cycles type.
The service of this Internet comprises at least need to reply (Acknowledged), do not need to reply (Non-acknowledged), a certain in the notice (Repeated-notification) repeatedly.
This communication cycles type comprises the 1st coding or the 2nd coding when replying (Acknowledged) at needs, when not needing to reply (Non-acknowledged), comprise the 3rd coding, when repeatedly notifying (Repeated-notification), comprise the 4th coding.
The 1st be encoded to " 1-request, 1-reply " communication cycles, the 2nd is encoded to " 1-request, many-as to reply " communication cycles, and the 3rd is encoded to " 1-notice " communication cycles, the 4th be encoded to " repeatedly-notify " communication cycles.
If single collection of letters person is pointed in the purpose address that the MsgSend primitive during above-mentioned needs are replied comprises, then above-mentioned communication cycles type comprises the 1st coding, if several collection of letters persons are pointed in the purpose address, then above-mentioned communication cycles type comprises the 2nd coding.
Above-mentioned communication cycles detail comprises the connector address, and the connector address comprises destination addresses, and destination addresses is included in the above-mentioned MsgSend primitive. The communication cycles detail comprises package number (PacketNo). The communication cycles detail comprises that the value of package number (PacketNo) is, the value after the employed value of communication cycles that has just finished recently adds " 1 ".
Above-mentioned data processing method also comprised such as the next stage,, if the value that obtains after the above-mentioned addition is certain limiting value, then above-mentioned value was set for the stage of initial value that is; Above-mentioned initial value is " 0 ", and limiting value is " 4 ".
Above-mentioned communication cycles detail comprises Internet service (NLService), and the Internet service (NLService) here is included in the above-mentioned MsgSend primitive.
This communication cycles detail comprises service priority order (SvcPriority), and the service priority order (SvcPriority) here is included in the above-mentioned MsgSend primitive.
This communication cycles detail comprises the time-out time (TimeOut), and the time-out time here is included in the above-mentioned MsgSend primitive.
This communication cycles detail comprises that the initial value of above-mentioned transmission number of times (TransmissionNo) is ' 1 ' be used to the transmission number of times (TransmissionNo) that transmits same NPDU.
This communication cycles detail comprises the elapsed time (ElapsedTime), the elapsed time represent from above-mentioned application layer receive behind the new communication cycles identifier (CycleID) time of process, its initial value is ' 0 '.
This communication cycles detail comprises replys information receiving state (ResRcvState), and the above-mentioned information receiving state of replying represents whether to receive the packet of replying corresponding to above-mentioned MsgSend primitive.
Generate in the stage of described packet transmission (PktSend) primitive, append NPDU head and tail at above-mentioned APDU, utilize NPDU to generate above-mentioned packet and transmit (PktSend) primitive.
Described data processing method also comprised such as the next stage, the stage that namely NPDU that generates is stored.
Described processing method also comprised such as the next stage, namely finished in some cases the stage of current communication cycles.
Described data processing method also comprises following each stage; That is, carry out the stage of above-mentioned end communication cycles after, the stage that deleting communication circulation is detailed; Internet is finished (NLCompleted) primitive biography to the stage of application layer; The Internet is here finished (NLCompleted) and is comprised the encoded radio that means the communication cycles result.
Above-mentioned communication agreement is useful in above-mentioned master control device.
Above-mentioned finishing in the stage, what following several situations represented is successful finishing; That is, when above-mentioned communication cycles type is the 1st coding, the above-mentioned situation of information receiving state (ResRcvState) for replying the collection of letters (RES_RECEIVED) of replying; When above-mentioned communication cycles type is the 2nd coding, the above-mentioned information receiving state (ResRcvState) of replying is for replying the collection of letters (RES_RECEIVED), and the above-mentioned elapsed time (ElapsedTime) is greater than the situation of time-out time (TimeOut); When above-mentioned communication cycles type was the 3rd when coding, receives from above-mentioned data link layer and to comprise that the data link layer that transmits successfully (SEND_OK) finishes the situation of (DLLCompleted) primitive; When above-mentioned communication cycles type was the 4th when coding, receives from above-mentioned data link layer and to comprise that at least a data link layer that transmits successfully (SEND_OK) finishes the situation of (DLLCompleted) primitive.
Above-mentioned finishing in the stage, what following several situations represented is failed finishing; That is, when above-mentioned communication cycles type was the 1st coding, above-mentioned transmission number of times (TransmissionNo) transmitted the situation of number of times (SendRetries) again greater than the maximum as Internet medium variable; When above-mentioned communication cycles type is the 2nd coding, the above-mentioned information receiving state (ResRcvState) of replying is not collected mail (NOT_RECEIVED) for replying, and the above-mentioned elapsed time (ElapsedTime) is greater than the situation of time-out time (TimeOut); When above-mentioned communication cycles type is the 3rd coding, receive from above-mentioned data link layer and to comprise that the data link layer that transmits unsuccessfully (SEND_FAILED) finishes (DLLCompleted) primitive, or suspend in the time (SendTimeOut) in the transmission as the medium variable of Internet, fail to receive the situation of finishing (DLLCompleted) primitive from the data link layer of data link layer; When above-mentioned communication cycles type is the 4th coding, transmit corresponding to all packets, from above-mentioned data link layer, receive and comprise that the data link layer that transmits unsuccessfully (SEND_FAILED) finishes (DLLCompleted) primitive, or in above-mentioned transmission suspends the time (SendTimeOut), transmit corresponding to all packets, fail to receive the situation of finishing (DLLCompleted) primitive from the data link layer of data link layer.
Above-mentioned communication agreement is useful in slave.
Above-mentioned finishing in the stage, following information slip is shown as finishing of merit; That is, receive from above-mentioned data link layer and comprise that the data link layer that transmits successfully (SEND_OK) finishes the situation of (DLLCompleted) primitive. Above-mentioned finishing in the stage, following situation represents failed finishing; Namely, from above-mentioned data link layer, receive and comprise that the data link layer that transmits unsuccessfully (SEND_FAILED) finishes the situation of (DLLCompleted) primitive, or in transmission time-out time (SendTimeOut) as Internet medium variable, fail to receive the situation of finishing (DLLCompleted) primitive from the data link layer of data link layer.
Above-mentioned processing method also comprised such as the next stage; That is, comprising the MsgSend primitive that stores NPDU, the stage of transmitting again.
Above-mentioned data processing method also comprised such as the next stage; Namely, after carrying out above-mentioned again transfer phase, the above-mentioned number of times (TransmissionNo) that transmits is again added ' 1 ', elapsed time (ElapsedTime) is set for ' 0 ', set for not reply and collect mail (NOT_RECEIVED) stage of upgrading thus above-mentioned communication cycles detail replying information receiving state (ResRcvState).
Above-mentioned communication agreement is applicable to master control equipment.
Be performed in a certain situation of above-mentioned again transfer phase in following several situations; Namely, above-mentioned communication cycles type is the 1st coding or the 4th coding, above-mentioned transmission number of times (TransmissionNo) transmits number of times (SendRetries) again less than the maximum as Internet medium variable, the above-mentioned information receiving state (ResRcvState) of replying is not collected mail (NOT_RECEIVED) for replying, and the above-mentioned elapsed time (ElapsedTime) is greater than the situation of time-out time (TimeOut); Above-mentioned transmission number of times (TransmissionNo) transmits number of times (SendRetries) again less than above-mentioned maximum, receives from above-mentioned data link layer to comprise that the data link layer that transmits unsuccessfully (SEND_FAILED) finishes the situation of (DLLCompleted) primitive; Above-mentioned transmission number of times (TransmissionNo) transmits number of times (SendRetries) again less than maximum, in above-mentioned transmission suspends the time (SendTimeOut), fail to receive the situation of finishing (DLLCompleted) primitive from the data link layer of above-mentioned data link layer.
Above-mentioned communication agreement is useful in slave.
Be performed in a certain situation of above-mentioned again transfer phase in following several situations; Namely, above-mentioned communication cycles type is the 4th coding, above-mentioned transmission number of times (TransmissionNo) transmits number of times (SendRetries) again less than the maximum as Internet medium variable, the above-mentioned information receiving state (ResRcvState) of replying is not collected mail (NOT_RECEIVED) for replying, and the above-mentioned elapsed time (ElapsedTime) is greater than the situation of time-out time (TimeOut); Above-mentioned transmission number of times (TransmissionNo) transmits number of times (SendRetries) again less than above-mentioned maximum, receives from above-mentioned data link layer to comprise that the data link layer that transmits unsuccessfully (SEND_FAILED) finishes the situation of (DLLCompleted) primitive; Above-mentioned transmission number of times (TransmissionNo) transmits number of times (SendRetries) again less than maximum, in above-mentioned transmission suspends the time (SendTimeOut), fail to receive the situation of finishing (DLLCompleted) primitive from the data link layer of above-mentioned data link layer.
Be useful in above-mentioned master control equipment, above-mentioned MsgSend primitive is that request message transmits (ReqMsgSend) primitive.
Above-mentioned communication agreement is useful in slave, and above-mentioned MsgSend primitive is that event message transmits (EventMsgSend) primitive.
Above-mentioned communication agreement is interactive network control communication agreement (LnCP).
Below, by embodiments of the invention and accompanying drawing, domestic network system of the present invention is elaborated. Indubitable, scope of the present invention is not subject to following embodiment and accompanying drawing. Right scope of the present invention should take accompanying right request scope as the basis, be explained.
Fig. 1 is the block diagram of domestic network system of the present invention.
As shown in Figure 1, domestic network system 1 is connected to LnCP server 3 by the Internet network 2. Client's equipment 4 is connected to LnCP server 3 by the Internet network 2 in addition. That is, domestic network system 1 is connected into mutually pass-along message to LnCP server 3 and/or client's equipment 4.
The outside network of domestic network system 1 comprises the Internet network 2, and the kind of the network based client's equipment 4 of said external also can possess other equipment. That is, take this Internet network 2 as example, client's equipment 4 possesses Web server (Websever) (not shown) during for computer, and client's equipment 4 possesses the communication server (Wap sever) (not shown) during for the networking telephone.
LnCP server 3 is connected to respectively domestic network system 1 and client's equipment 4 by specific registration and cancellation program, receives supervision and control command etc. from client's equipment 4, and the message by the Internet network 2 usefulness particular forms is sent to domestic network system 1 again. In addition, LnCP server 3 receives and stores the message of particular form or it is sent to client's equipment 4 from domestic network system 1. In addition, LnCP server 3 stores self or the message 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 provides.
Domestic network system 1 comprises gateway 10, network management device 20~23, LnCP router 30,31, LnCP adapter (adapter) 35,36 and a plurality of electric equipment 40~49. Gateway 10 has the function that connects the internet. Network management device 20~23 is fulfiled the environment set of electric equipment 40~49 and management function. LnCP router 30,31 connections of being responsible between the transmission medium. LnCP adapter 35,36 can make network management device 22 and electric equipment 46 be connected to transmission medium.
The transmission medium that network in the domestic network system 1 is shared by each electric equipment 40~49 is coupled to each other and forms. This transmission medium can utilize the transmission medium (non-standardized transmission medium) of the data link layer unnormalizeds such as RS-485 or lower powered RF, the transmission medium (standardized transmission medium) that maybe can utilize power line or IEEE 802.11 isotactics to format.
Network in the domestic network system 1 by with the Internet network 2 are the networks that are separated from each other. That is, the network in the above-mentioned domestic network system 1 consists of the separate network that is connected by wired or wireless transmission medium. Here, although 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, subordinate (Slave) equipment. Master control equipment can be controlled electric equipment 40~49 or monitor its work state. Slave can be responded the request of master control equipment and the variation information of notice oneself state. This master control equipment comprises network management device 20~23, and slave comprises electric equipment 40~49. This network management device 20~23 comprises message and the control code of the electric equipment 40~49 that will control, and programmed mode is controlled operation, or receives after the message of LnCP server and/or 4 inputs of client's equipment, controls operation. In addition, as shown in the figure, be connected with a plurality of network management devices 20~23 o'clock, for carry out and other network management device 20~23 between exchange message, also for synchronousization of message and control, these network management devices 20~23 namely can be that master control equipment can be again slave. Namely should be a kind of, be an equipment from physical significance, but be the equipment (being compatible equipment) that has simultaneously master control and subordinate function in theory.
In addition, these network management devices 20~23 and electric equipment 40~49 can directly be connected on the network (power line network as shown, RS-485 network, RF network). In addition, can also pass through LnCP router 30,31 and/or LnCP network adapter 35,36 connect.
In addition, electric equipment 40~49 and/or LnCP router 30,31 and/or LnCP network adapter 35,36 be registered on the network management device 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 30,31 and/or 35,36 identifications of LnCP network adapter. In addition, can also use the group address that arranges by specific benchmark (product of the same race, the setting position of product, user etc.), can the more than one electric equipment 40~49 of one-off recognition when using the group address and/or LnCP router 30,31 and/or LnCP network adapter 35,36. In this group address, dominant group address is group (cluster) address of a plurality of client's equipment of appointment to address choice value (following is mark flag) in this dominant group address when being set as " 1 ". 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 client's equipment. Here, to be pointed out that especially and be commonly referred to group's code expressing group address.
Fig. 2 is interactive network control agreement (LnCP) block diagram of the present invention. Domestic network system 1 can make network management device 20~23 by the control agreement of the interactive network among Fig. 2 (LnCP), and LnCP router 30,31 transmits mutually message between LnCP network adapter 35,36 and the electric equipment 40~49. And then, network management device 20~23, LnCP router 30,31, LnCP network adapter 35,36 and electric equipment 40~49 are carried out network communication by this kind LnCP.
As shown in Figure 2, LnCP comprises application software 50, application layer 60, Internet 70, data link layer 80, Physical layer 90 and medium variable management level 100. Application software 50 is brought into play network management devices 20~23, LnCP router 30,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, in order to carry out operated from a distance and supervision at network. Application layer 60 provides service to the user, and has message that the user is provided or order and form the function that is communicated to low layer after the message. Internet 70 can be network management device 20~23, LnCP router 30,31, and connecting between LnCP network adapter 35,36 and the electric equipment 40~49 is reliable network. Data link layer 80 provides and connects the control function, is used for connecting the common transmitted media. Physical layer 90 provides network management device 20~23, LnCP router 30,31, the rule of the physics interface between LnCP network adapter 35,36 and the electric equipment 40~49 and the bit (byte) that will transmit. The medium variable (node parameter) of the node that uses in medium 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 management node medium variable, and management is connected in the network management device 20~23 on the network, LnCP router 30,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 medium variable management level 100, sets medium variable numerical value or utilizes the medium variable that the medium variable is managed. When the equipment that is applicable to LnCP was master control equipment, this network management subsidiary layer 51 also has fulfiled the function that consists of network or management network.
In addition, Internet 70 also comprises domestic code control subsidiary layer 71. Net connection has network management device 20~23, LnCP router 30,31, LnCP network adapter 35,36 and electric equipment 40~49. When utilize power line or IEEE 802.11, the dependent shape transmission medium such as wireless (for example LnCP comprise power line communication (PLC) agreement/or during wireless (wireless) agreement) when consisting of above-mentioned network, in order to divide in theory each network, the function of domestic code and managing family code is set in 71 performances of domestic code control subsidiary layer. This domestic code control subsidiary layer 71, is not included among the LnCP when separating individual networks from physical significance by independent shape transmission mediums such as picture RS-485. This domestic code forms with 4 bytes (byte), is set as at random (random) value or user setting value.
Fig. 3 a and Fig. 3 b are the block diagram of interface of the interlayer of Fig. 2.
The interface schematic diagram of the interlayer when Fig. 3 a is depicted as Physical layer 90 and is connected to dependent shape transmission medium.
Shown in Fig. 3 b is the interface schematic diagram of the interlayer of Physical layer 90 when being connected to independent shape transmission medium.
Domestic network system 1 is added to the head (header) of each layer needs and tail (trailer) message from the procotol message unit (Protocol Data Unit:PDU) that high level receives, and is being communicated to low layer.
As shown in the figure, APDU (Appolication layer PDU) is the data value (data) that transmits between application layer 60 and the Internet 70. NPDU (Network Layer PDU) is the data value that transmits between Internet 70 and data link layer 80 or the domestic code subsidiary layer 71. HCNPDU (Home Code Control Sublayer PDU) is the data value that transmits between Internet 70 (definite say domestic code subsidiary layer 71) and data link layer 80 or the domestic code subsidiary layer 71. By data value (data), data frame unit forms interface between data link layer 80 and the Physical layer 90.
Fig. 4 a to 4f is the detailed diagram of the interface of Fig. 3 a and 3b.
Fig. 4 a is depicted as the APDU structure in application layer 60.
AL (APDU Length) territory is the territory of the length (AL is to the length of data frame group) of expression APDU, and minimum of a 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 frame group, can expand to 7 bytes in order to change APDU heads (header) such as using agreement in the LnCP procotol.
ALO (Application Layer Option) territory is the territory for extended message 3, and when for example this territory was set to " 0 ", Message Processing was out in the cold when other value was housed.
Data frame group is processing user's control message or the territory of event message, 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 Internet 70, and Fig. 4 c is the detailed construction schematic 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 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 the highest 1 bit is for showing the mark (flag) of group address, and the kind (product code) that ensuing 7 bits are product is hanged down 8 bits and comprised the theoretical address of getting. Have the network management device 20~23 of a plurality of one species or electric equipment 40~49 o'clock, above-mentioned low 8 bits are used for dividing above-mentioned each network management device 20~23 or electric equipment 40~49.
PL (Packet Length) territory is for showing the territory of the NPDU overall length that will transmit, and its minimum of a value is 12 bytes, and maximum is 100 bytes.
SP (Service Priority) territory is to transmit the territory that message transmits preferential position, is made of 3 bits. Each transmits priority picks such as the table 2 of message.
When subordinate client's equipment is replied the request of master control client equipment, the priority picks of the request message that retinue's master control client equipment receives.
Table 2
The priority picks Value Applicable (Application Layer)
High (High)  0 -when transmitting emergency message
In (Middle)   1   -when transmitting the general data bag-transmission map network (Online State) reaches non-when the event message that line states (Offline State) changes online
Standard (Normal)   2   -when transmitting notice and consisting of the message of network-during the common event message of transmission
Low (Low) 3 -when transmitting the value according to the producer that downloads or upload
NHL (NPDU Header Length) territory is the territory of using for expansion NPDU head (header) (the NLC territory of SLP), 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 network protocol version that adopts, and is made of high 4 bits and low 4 bits. High 4 bits are version (version) territory, and low 4 bits are server version (sub-version) territory. Version (version) and server version (sub-version) are respectively with 16 system mark method version of display.
NPT (Network layer Packet Type) territory is 4 bit field of dividing data bag kind in Internet. LnCP comprises request data package (Request Packet), replys packet (Response Packet), notification data bag (Notification Packet). The NPL territory of master control client equipment should be set as request data package or notification data bag, and the NPL territory of slave should be set as replys packet 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 Reply packet
  5~7 Do not use
  8 The notification data bag
  9~12 Do not use
  13~15 The interface that connects with domestic code control subsidiary layer is worth with reservation
TC (Transmission Counter) territory is that the communication fault occurs Internet, in the time of can not successfully sending request data package or reply packet, in order to improve the success rate that transmits request data package or reply packet, 2 bit field that transmit or repeatedly transmit again. The destination can utilize the numerical value in TC territory, detects out repetition 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
Reply packet   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 out repetition packet PN (Packet Number) territory. In master control client equipment, be used in order to process 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
Reply packet The PN thresholding of duplicate requests packet
The notification data bag   0~3
The APDU territory is the unit of the Internet protocol data value (data) of the application layer of transmission between application layer 60 and the Internet 70. The APDU minimum of a value is 0 byte, and maximum is 88 bytes.
CRC (Cyclic Redundancy Check) territory is in order to detect out 16 bit field of the mistake that receives packet (SLP is to the APDU territory).
ELP (End of LnCP Packet) territory is the territory that shows the packet end, and its value is 0x03. If receive with packet length field in the corresponding data value of length (data), can not detect out the ELP territory, then be shown the packet mistake.
Fig. 4 d is the HCNPDU structure chart in the domestic code control subsidiary layer 71.
As shown in the figure, the high part of NPDU also comprises HC (Home Code) territory.
The numerical value of this domestic code is made of 4 bytes. This domestic code has unique value in the distance of the circuit that packet can be propagated.
Fig. 4 e is depicted as the structure of the data frame in the data link layer.
Head (header) and the tail (trailer) of the data frame of the data link layer of LnCP form different structures according to transmission medium. When data link layer 80 was used the transmission medium of unnormalized, the head of data frame (header) and tail should have Null territory (Null Field). As use normalized transmission medium, then with the regulation of procotol. The NPDU territory is the unit from the data value of high Internet 70 transmission. HCNPDU is the data value unit that Physical layer 90 is used during for dependent shape transmission mediums such as power line or IEEE 802.11, is the data value unit of appending 4 byte domestic codes at the NPDU front end. Data link layer 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 the physics signal is sent to transmission medium. As the Physical layer 90 of LnCP procotol, 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 such as power line or IEEE 802.11. In the domestic network system 1 of applicable LnCP network, for network management device 20~23 and electric equipment 40~49 and RS-485 or LnCP router 30,31, and LnCP adapter 35,36 connect, and have utilized the signal standard (level) of UART (Universal Asynchronous Receiver and Transmitter) data frame structure and RS-232. When utilizing netting twine (serial bus) to connect between each equipment, UART flows at communication line control bit signal. Shown in Fig. 4 f, in LnCP, the packet that high level is sent here, be transformed into the UART data frame unit of 10 bit sizes after, transmit by transmission medium. UART data frame is made of the initial position (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 frame does not use effect position (Parity Bit). UART data frame is passed on from initial position, passes at last position of rest. When the domestic network system 1 of applicable LnCP utilizes UART, do not use the data frame head (frame header) and the frame tail (frame trailer) that append.
Below be to using the explanation of the node medium variable in above-mentioned layer.
A kind of corresponding in the type (type) of the data value of following node medium variable and a plurality of forms shown in the table 6.
Table 6
Mark Form Explanation
  char  signed char Be 1 byte when not expressing the length of value (data)
  uchar  Unsigned char Be 1 byte when not expressing the length of value (data)
  int  signed int Be 2 bytes when not expressing the length of value (data)
  uint  Unsigned int Be 2 bytes when not expressing the length of value (data)
  long  signed long Be 4 bytes when not expressing the length of value (data)
  ulong  Unsigned long Be 4 bytes when not expressing the length of value (data)
  string  String Last byte is the literal column data of NJLL
  FILE  - Data with file structure
This Internet 70 has following function.
The 1st is address management function, and address management function is the function of the address of the network management device 20~23 that stores self address and destination or electric equipment 40~49. At this moment, use each contained network management device 20~23 of address or message and the location message of each electric equipment 40~49, the group address can be specified, and stereo fm broadcasting (multicasting) and broadcasting (broadcasting) communication can be supported.
The 2nd is the control function that flows, the function of the control function that flows for flowing by communication cycles (cycle) control packet.
The 3rd is wrong control function, when mistake control function is replied packet for failing in setting time to receive, again transmits the function of thresholding. Again the number of transmissions maximum is restricted to 3 times.
The 4th is affairs control (Transaction Control) function, and affairs control function prevents from repeating to fulfil same message for by detecting out the repetition packet, and controls the function of simultaneously multiple communication cycles.
The 5th is route control function, route control function is more than two independently between transmission medium, the transmission of data bag, and in order to prevent the Infinite Cyclic (loop) between each LnCP router 30~31 and the LnCP adapter 35~36, the function that flows of control packet.
This kind Internet 70 provides service take communication cycles as unit. This kind communication cycles has { 1-Request, 1-Response}, { 1-Request, Multi-Responses}, { 1-Notification}, { four kinds of Repeated-Notification} etc.
{ 1-Request, the 1-Response} communication cycles is that a master control equipment transmits a request data package (Request Packet) to a slave, and slave transmits a communication cycles of replying packet (Request Packet) of corresponding above-mentioned request.
1-Request, and the Multi-Responses} communication cycles is that a master control equipment transmits a request data package to a plurality of slaves, each slave also transmits the communication cycles of replying packet of replying request data package successively.
The 1-Notification} communication cycles be equipment (master control or subordinate) take one or more equipment (master control or subordinate) as object, transmit a notification data bag after, at once finish the communication cycles of communication.
The Repeated-Notification} communication cycles for (the 1-Notification} communication cycles is in order to guarantee transmission reliability, repeatedly transmit same packet after, finish the communication cycles of communication.
Above-mentioned communication cycles and type of data packet and transmission service (or Internet service) are (NLservice) with table 7a.
Table 7a
The communication cycle Type of data packet Transmission service (NLService)
 {1-request,  1-response} Request data package-reply packet   Acknowledged(0)
 {1-request,  multi-response} Request data package-reply packet   Acknowledged(0)
 {1-notification} The notification data bag   Not-acknowledged(1)
 {Repeated  -notification} The notification data bag   Repeated-notification   (2)
The value of the node medium variable (Node Parameter) that Internet 70 is used is with table 7b.
Table 7b
Title Form Explanation
Product code  uchar ProductCode The code that gives for the standalone feature of gathering product.
Theoretical address  uchar  NP_LogicalAddress In order to distinguish a plurality of products with same product code, the address of 1 byte.
Group code  uchar  NP_ClusterCode Distinguish the address of 1 byte of each equipment.
Domestic code  ulong  NP_HomeCode The address of 4 bytes of define equipment domestic code
Maximum is the number of transmissions repeatedly  constant uchar  SendRetries Acknowledged when service, the maximum of request data package is seemingly when the number of transmissions or Repeated-notification service, repeatedly the number of transmissions
Suspend transmission  constant uint  Send TimeOut Internet 70 is waited for the time of DLLCompleted unit (primitive) behind data link layer 80 transmission NPDU, thresholding is 1000ms.
Reply late  uint Carry out take the group address as object
Prolong in this world   ResDelayTime During the Acknowledged service, the time of delaying is replied before the packet in the slave transmission that receives request data package. The value that any (random) produces in 0~5000ms scope.
The maximum relaying delay time   constant uint   RepeaterDelayTime In network when normal operation,, before the received side of normal packet that spreads out of from the side of delivering letters received, in the maximum delay time (ms) of permission, this value was 5000ms.
Repeat the packet elapsed time   constant uint   DupElapsedTime When slave receives request data package continuously from same master control equipment, ensure each packet minimum interval time between the request data package independently, this value is 10,000ms.
Fig. 5 a, Fig. 5 b are the block diagram that comprises for the primitive (primitive) of exchange between each layer.
Fig. 5 a is that the primitive between each layer of master control equipment transmits schematic diagram.
As shown in the figure, be used for the primitive between application software 50 and the application layer 60, use UserReq, UserDLReq, UserULReq, ALCompleted, UserRes, UserEventRcv. Here, omit the related description of foregoing.
As shown in the figure, be used for the primitive between Application layer 60 and the Internet 70, comprise ReqMsgSend, NLCompleted and MsgRev.
Request message (ReqMsgSend) primitive of delivering letters is, is used for message comprising the inscape shown in the table 8a from the primitive that master control equipment application layer 60 passes to Internet 70.
Table 8a
Title Form Explanation
Communication cycles   Ulong The identification numbering of communication circulation in the master control equipment
Request message   Uchar Comprise in the master control equipment application layer 60 and to generate
Request message is long   Uchar The byte data length of APDU.
The purpose address   uint Destination's equipment address
The address, source   uint The method, apparatus address of delivering letters
The Internet service  Uchar    NLService The communication cycles type O:Acknowledged of master control equipment,
Reply the time-out time  Uchar  response When NLService was chosen to Acknowledged, master control equipment sent
Number of notifications repeatedly  Uint NLService is chosen to
Service  Uchar The transmission order of priority of request message.
Here, communication cycles identification side (CycleID) is combined to form by above-mentioned application service coding (ALSvcCode) and receiving apparatus node address (node Address).
Message receiving (MsgRcv) primitive is for the primitive of packet from master control device network layer 70 biography to application layer 60, comprises the inscape of showing 8b.
Table 8b
Title Form Explanation
Communication cycles identification side  Ulong  Cycle ID The identification numbering of communication circulation in the master control equipment
Event is replied message  Uchar  *ResEventAP    DU Will pass to the APDU of application layer 60.
Event is replied message-length  Uchar  APDULength The byte data length of APDU.
The purpose address  uint    DstAddress Destination's equipment numbering
The address, source  uint    SrcAddress The method, apparatus of delivering letters numbering
The formation of above-mentioned communication cycles identification side (CycleID) will be described below.
It is for the primitive from Internet 70 to application layer notification data bag treatment state that Internet is finished (NLCompleted) primitive, comprises the inscape of showing 8c.
Table 8c
Title Form Explanation
Communication cycles identification side  Ulong Cycle  ID The identification numbering of communication circulation in the master control equipment
Transmit the result  Uchar    NLResult   If successfully finish communication cycles, CYCLE_OK (1) then; If be not, CYCLE_FAILED (0) then.
Failure reason code  Uchar    NLFailCode When NLResult is CYCLE_FAILED, the value that failed reason is classified.
Transmit again number of times  Uchar    NLSuccessCode Again transmission number of times when NLResult is CYCLE_OK.
As shown in the figure, be used for the primitive between Internet 70 and the data link layer 80, comprise PktSend, PktRcv and DLLCompleted.
Packet (PktSend) primitive of delivering letters is for packet being passed primitive to data link layer 80 from Internet 70, comprising the inscape of showing 9a.
Table 9a
Title Form Explanation
Packet   Uchar     *NPDU/HCNPDU The packet of Internet (70)
Data packet length   Uchar     NPDULength The byte data length of NPDU/HCNPDU
The service priority order   Uchar   SvcPriority Transmit order of priority
The packet collection of letters (PktRcv) primitive is for the primitive of packet from data link layer 80 biographies to Internet 70, comprises the inscape of showing 9b.
Table 9b
Title Form Explanation
Packet   Uchar *PDU The packet of Internet (70)
Data packet length   Uchar     PDULength The byte data length of PDU
It is for notice 70 packets transmission results' that transmit from primitive from data link layer 80 to Internet that data link layer is finished (DLLCompleted) primitive, comprises the inscape of showing 9c.
Table 9c
Title Form Explanation
Packet transmits the result Uchar   DLLResult   Packet transmits the result: if the transmission of successful end data packet, then SEND_OK (1); If be not then SEND_FAILED (0).
Transmit failed reason Uchar DLLFailCode When DLLResult is SEND_FAILED (0), the value that failed reason is classified.
As shown in the figure, the primitive that is used between data link layer 80 and the Physical layer 90 comprises FrameSend, FrameRcv, RptLineStatus. Here the description thereof will be omitted.
Fig. 5 b is the primitive delivery status schematic diagram between the slave layer.
As shown in the figure, the primitive that is used between software 50a and the application layer 60a comprises UserResSend, UserEventSend, UserReqRcv, ALCompleted, and the description thereof will be omitted here.
As shown in the figure, the primitive that is used between application layer 60a and the Internet 70a comprises ReqMsgRcv, ResMsgSendEventMsgSend、NLCompleted。
The request message collection of letters (ReqMsgRcv) primitive is the primitive that transmits request message from Internet 70a to application layer 60a, comprises the inscape of showing 10a.
Table 10a
Title Form Explanation
Request message   uchar     *ReqAPDU Will pass to the APDU of application layer 60a.
Request message length   uchar   APDULength The byte data length of APDU.
The purpose address   uint     DstAddress Destination's equipment address
The address, source   uint     SrcAddress The method, apparatus address of delivering letters
The Internet service     uchar     NLService   The communication cycles COS 0:Acknowledged of slave, 1:Non-acknowledged, 2:Repeated-notification.
Repeat the packet testing result   uchar   DuplicateCh If it is normal to repeat the packet testing result, NORMAL_PKT (1) then is if testing result is
 eck Repeat packet, then DUPLICATED_PKT (0).
Replying message (ResMsgSend) primitive of delivering letters is primitive from application layer 60a to Internet 70a that reply message for transmitting from, comprises the inscape of showing 10b.
Table 10b
Title Form Explanation
Communication cycles identification side   ulong   CycleID The communication cycles identification numbering of slave
Reply message   uchar     *ResAPDU The APDU that replys message that comprises the application layer 60a generation of slave
Reply message-length   uchar   APDULength The byte data length of RPDU.
Event message (EventMsgSend) primitive of delivering letters is the primitive that transmits event message from application layer 60a to Internet 70a, comprises the inscape of showing 10c.
Table 10c
Title Form Explanation
Communication cycles identification side   ulong   CycleID The communication cycles identification numbering of slave
Event message   uchar     *EventAPDU The APDU that comprises the event message that slave application layer 60a generates
Event message length   uchar     APDULength The byte data length of APDU
The purpose address   uint     DstAddress Destination's equipment address
The address, source   uint     SrcAddress The method, apparatus address of delivering letters
The Internet service   uchar     NLService   The transmission service 1:Non-acknowledged of Internet (70a), 2:Repeated-notification
Repeatedly notify the transmission interval of message    uchar     RepNotiInt   When NLService is chosen to Repeated-notification, the time interval (ms) between the continuous notification data bag.
The service priority order   uchar     SvcPriority The transmission order of priority of event message
It is primitive from from Internet 70a to application layer 60a notification data bag treatment state that Internet is finished (NLCompleted) primitive, comprises the inscape of showing 10d.
Table 10d
Title Form Explanation
Communication cycles identification side    Ulong CycleID The communication cycles identification numbering of slave
Transmit the result    Uchar    NLResult   If successfully finish communication cycles, CYCLE_OK (1) then, if be not, CYCLE_FAILED (0) then.
Transmit failed reason  Uchar  NLFailCode NLResult is in the situation of CYCLE_FAILED, to failed reason, and the value of classifying.
Transmit again number of times  Uchar    NLSuccessCode Again transmission number of times when MLResult is CYCLE_OK.
Be used for each Internet 70a, the data layer 80a of slave and the primitive between the Physical layer 90a, its use situation is identical with each primitive of master control equipment.
Fig. 6 is data processing method embodiment flow chart of the present invention. What this flow chart was showed is for the notification data bag of the request data package of master control equipment and slave, passes to data link layer 80,80a from application layer 60,60a, processes the process of above-mentioned each packet in Internet. That is, to Internet 70, APDU between 70a and application layer 60, the 60a collect mail and, the NPDU between Internet 70,70a and data link layer 80, the 80a delivers letters, and describes.
In stage (S61), master control device network layer 70 receives request messages (ReqMsgSend) primitive (that is, request message or packet) of delivering letters from application layer 60. In addition, slave Internet 70a receives event message (EventMsgSend) primitive (that is, communication information or packet) of delivering letters from application layer 60a. Internet 70,70a calculate the elapsed time (ElapsedTime) that initial point begins from the collection of letters.
In stage (S62), the Internet 70 of master control equipment generates the communication cycles detailed (Cycle Description) with structure shown in the table 11 according to (ReqMsgSend) primitive of delivering letters from the request message of application layer 60 receptions. To the parameter of communication cycles detail, carry out following setting.
At first, communication cycles identifier (CycleID) is to be included in deliver letters communication cycles identifier (CycleID) in (ReqMsgSend) primitive of request message. Reply (Non-acknowledged) or repeatedly notice (Repeated-notification) service if be included in the Internet service (NLService) that request message delivers letters in (ReqMsgSend) primitive for not needing, then communication cycles type (CycleType) is set to { 1-notification} (2) or { Repeated-notification} (3). If Internet service (NLService) is to reply (Acknowledged) service, and service purpose address (DstAddress) value refers to single collection of letters person, then communication cycles type (CycleType) is set to { 1-request, 1-response} (0). If Internet service (NLService) is to reply (Acknowledged) service, and service purpose address (DstAddress) value is group address, then communication cycles type (CycleType) is set to { 1-request, multi-response} (1). Connector address (Connector Addr) is to be included in deliver letters purpose address (DstAddress) in (ReqMsgSend) primitive of request message, is destination addresses when transmitting, and is address, the side of delivering letters when receiving. Package number (PacketNo) is that the number value in the communication cycles that finishes recently just adds the value that obtains after " 1 ", if the value that obtains is for " 4 " then return " 0 ". Internet service (NLService) is to be included in deliver letters Internet service (NLService) in (ReqMsgSend) primitive of request message. Service priority order (SvcPriority) (identical with above-mentioned transmission order of priority) is to be included in the deliver letters order of priority (SvcPriority) of (ReqMsgSend) primitive of request message. The time-out time (TimeOut) is to be included in request message to deliver letters time-out time (Time Out) in (ReqMsgSend) primitive, this time-out time should be greater than transmitting the time-out time (SendTimeOut) (1000ms), and the above-mentioned transmission time-out time is the stand-by period of finishing (DLLCompleted) primitive for data link layer. Communication cycles is { 1-request, 1-response} or { during the Repeated-notification} communication cycles, transmit the number of times that number of times (TransmissionNo) refers to transmit same APPU, its initial value is " 1 ", the again transmission number of times that can carry out is that maximum transmits number of times (SendRetries) defined 3 times again, and above-mentioned maximum transmits the medium variable that number of times is Internet 70 again. Elapsed time (ElapsedTime) be after the time point of application layer 60 when receiving new communication cycles identifier (CycleID) time of process, its initial value is " 0 ", successor value is the communication cycles spent time, its value is updated always, until current communication cycles finishes. Whether reply information receiving state (ResRcvState) is used for expression and sends to receive after the request data package and reply packet, its initial value is collected mail (NOT_RECEIVED) for replying, receives the value of replying behind the packet for replying the collection of letters (RES_RECEIVED).
Table 11
Variable Size Content
   CycleID
  4 bytes -communication cycles identifier-be transmitted with APDU0 from Application layer (60).
       CycleType       1 byte -communication cycles kind 0:{1-request, 1-response}, 1:{1-request, multi-response} 2:{1-notification}, 3:{Repeated-notification}-be transmitted with APDU0 from Application layer (60).
   ConnectorAddr   2 bytes Be destination addresses during the address of-communication counterpart-transmission, be address, the side of delivering letters during the collection of letters.
   PacketNo   1 byte -package number-when whenever carrying out new communication cycles is endowed different 0~3 package number.
   NLService   1 byte The transmission type service of-application layer (60) request-be transmitted with APDU0 from Application layer (60).
   SvcPriority   1 byte -transmission order of priority.-be transmitted with APDU0 from Application layer (60).
         TimeOut         2 bytes -if request data package, then be that the rear wait acknowledge packet of delivering letters is replied replying the packet stand-by period (ResponseTimeOut) of packet.-if the notification data bag then is the interval (RepNotiInt) of delivering letters continuously.-be transmitted with APDU0 from Application layer (60).-be greater than the DLLComDleted primitive stand-by period, that is, and SendTimeOut (1 second).
        TransmissionNo       1 byte -be { 1-request, 1-response} or { during the Repeated-notification} communication cycles, be the number of times that transmits same APDU, its initial value is 1.-the maximum that can carry out transmits number of times again and is, maximum transmits the defined number of times of number of times (SendRetries) 3 times again, and above-mentioned maximum transmits number of times (SendRetries) again and is the medium variable of Internet 70.
      ElapsedTime     2 bytes -ms unit. The time point that-application layer (60) receives new CycleID begins, time of process. Its initial value is 0, and successor value is updated always, until current communication cycles finishes.
      ResRcvState     1 byte -reply packet for whether receiving behind the expression transmission request message bag, its initial value is NOT_RECEIVED, receiving and replying packet value afterwards is RES_RECEIVED.
Here, can to some extent selectively comprise and transmit number of times (TransmissionNo), elapsed time (ElapsedTime) and reply information receiving state (ResRcvState). The time-out time (TimeOut) is according to the primitive character that comprises it, and expression is replied the time-out time (ResponseTimeOut) or repeatedly notified message to transmit interval (RepNotiInt).
Slave Internet 70a generates the communication cycles detail by following mode after receiving event message communication (EventMsgSend) primitive from application layer 60a.
Communication cycles identifier (CycleID) is to be included in deliver letters communication cycles identifier (CycleID) in (EventMsgSend) primitive of event message. Reply (Non-acknowledged) or repeatedly notice (Repeated-notification) service if be included in the Internet service (NLService) that event message delivers letters in (EventMsgSend) primitive for not needing, then communication cycles type (CycleType) is set to { 1-notification} (2) or { Repeated-notification} (3). Connector address (Connector Addr) is to be included in deliver letters purpose address (DstAddress) in (EventMsgSend) primitive of event message, package number (PacketNo) is that the number value in the communication cycles that finishes recently just adds the value that obtains after " 1 ", if the value that obtains is for " 3 " then return " 0 ". Internet service (NLService) is to be included in deliver letters Internet service (NLService) in (EventMsgSend) primitive of event message. Service priority order (SvcPriority) is to be included in the deliver letters order of priority (SvcPriority) of (EventMsgSend) primitive of event message. The time-out time (TimeOut) is to be included in event message to deliver letters time-out time (Time Out) in (EventMsgSend) primitive, expression here be repeatedly to notify message to transmit interval (RepNotiInt). Communication cycles is { 1-notification} (2) or { during Repeated-notification} (3) communication cycles, transmit the number of times that number of times (TransmissionNo) refers to transmit same APPU, its initial value is " 1 ". Elapsed time (ElapsedTime) be after the time point of application layer 60a when receiving new communication cycles identifier (CycleID) time of process, its initial value is " 0 ", successor value is current communication cycles spent time, its value is updated always, until current communication cycles finishes. Reply information receiving state (ResRcvState) and be used for whether receiving the notification data bag after expression sends the notification data bag, its value is for replying do not collect mail (NOT_RECEIVED)
Table 12 is the schematic diagram that concerns between communication cycles, type of data packet, the Internet service.
Communication cycles Type of data packet Internet service (NLService)
  {1-request,   1-response} Request data package-reply packet     Acknowledged(0)
  {1-request,   multi-response} Request data package-reply packet     Acknowledged(0)
  {1-notification} The notification data bag   Non-acknowledged(1)
  {Repeated   -notification} The notification data bag   Repeated-notification(2)  
Among the stage S63, utilize each variable of communication cycles detail, after APDU appends NPDU head and tail, generate NPDU. Here, each thresholding assignment procedure of head is as follows. At first, the SA territory comprises node address, the side of delivering letters (Node Address), and PL territory (NPDU length) includes at APDULength and adds value after 13. Here APDULength is included in from application layer 60, in the primitive that 60a transmits. In addition, in PV territory (primitive version), such as including 0x20 (version 2 .0). The value that is included in the communication cycles detail is used in other territories. Then, append APDU at head, and append the NPDU tail, above-mentioned APDU is included in from the primitive that application layer 60,60a transmit. That is, ELP includes 0x03 in the territory, and utilizes the CCITT-16 standard to generate the value that multinomial is calculated such as comprising in the CRC territory.
Among the stage S64, after the Internet 70 of master control equipment generates NPDU, utilization comprises that the packet of above-mentioned NPDU transmits (PktSend) primitive, and the Internet service (NLService) by setting in the communication cycles detail can pass above-mentioned NPDU to above-mentioned data link layer 80. Here, in order to transmit again, store the above-mentioned NPDU that will transmit.
In addition, after the Internet 70a of slave generates NPDU, utilize the packet that comprises NPDU to transmit (PktSend) primitive, by communication cycles type (CycleType) value of setting in the communication cycles detail, NPDU is passed to data link layer 80a. That is, communication cycles type (CycleType) is if { 1-request, multi-response} communication cycles then by replying the delay time (ResDelayTime), delay rear NPDU being passed to data link layer 80a. If other communication cycles then transmit at once. In addition, if { the Repeated-notification} communication cycles then in order to transmit, stores NPDU again.
After transmitting NPDU, enter the process that finishes current communication cycles.
Among the stage S65, Internet 70,70a judges the end of communication cycles control, and is then irrelevant with success and failure if be judged to be end, carries out stage S67, if be not then carry out stage S66.
In more detail, in the Internet 70 of master control equipment, in following 4 kinds of situations, communication cycles is judged as successfully.
* { 1-request in the 1-response} communication cycles, replys information receiving state (ResRcvState) value and is, when replying the collection of letters (RES_RECEIVED);
* { 1-request, in the multi-response} communication cycles, replying information receiving state (ResRcvState) value is, replys the collection of letters (RES_RECEIVED), when the elapsed time (ElapsedTime), value was worth greater than the time-out time (TimeOut);
* { in the 1-notification} communication cycles, receive when comprising that the data link layer that means the SEND_OK value that transmit to finish is finished (DLLCompleted) primitive from data link layer (80);
* carry out the Repeated-notification} communication cycles during in, receive when comprising that the data link layer that means the SEND-OK value that transmit to finish is finished (DLLCompleted) primitive from data link layer (80).
In addition, in the master control device network layer 70, in following 6 kinds of situations, communication cycles is judged as failure.
* { 1-request is in the 1-response} communication cycles, when transmission number of times (TransmissionNo) value of communication cycles detail transmits number of times 3 times again greater than the maximum as Internet 70 medium variablees;
* { 1-request, in the multi-response} communication cycles, reply information receiving state (ResRcvState) value and collect mail (NOT_RECEIVED) for replying, and when the elapsed time (ElapsedTime), value was worth greater than the time-out time (TimeOut);
* { in the 1-notification} communication cycles, when comprising that from data link layer (80) reception the data link layer of the SEND_FAILED that means that transmission is failed is finished (DLLCompleted) primitive;
* { in the 1-notification} communication cycles, suspending in the time (SendTimeOut) as the transmission of Internet (70) medium variable, when failing to receive data link layer and finish (DLLC ompleted) primitive from data link layer (80);
* carry out the Repeated-notification} communication cycles during in, when transmitting all packets, receive only from data link layer 80 and to comprise when meaning that the data link layer that transmits failed SEND_FAILED is finished (DLLCompleted) primitive;
* carry out the Repeated-notification} communication cycles during in, when transmitting all packets, suspending in the time (SendTimeOut) as the transmission of Internet (70) medium variable, when failing to receive data link layer and finish (DLLCompleted) primitive from data link layer (80).
The Internet 70a of slave finishes (DLLCompleted) primitive if receive the data link layer that comprises the SEND_OK value from data link layer 80a after the notification data bag is sent to data link and forms 80a, then successfully finishes communication cycles.
In addition, after slave Internet 70a transmits the notification data bag to data link layer 80a, finish (DLLCompleted) primitive if receive the data link layer that comprises the SEND_FAILED value from data link layer 80a, or in transmission time-out time (SendTimeOut), fail to receive data link layer from data link layer 80a and finish (DLLCompleted) primitive, then unsuccessfully to finish communication cycles.
Among the stage S66, in the situation that does not have to finish in communication cycles, Internet 70,70a judges whether needing to transmit again. If meet the condition that transmits again, then carry out stage S67, if be not then carry out stage S65, judge again whether communication cycles finishes.
In more detail, master control equipment is after sending request data package, and the communication cycles of carrying out is { 1-request, 1-response} or { Repeated-notification}, and can enter again transport process of NPDU only for 2 times. Below, show that master control equipment enters the condition that transmits again.
* as transmission number of times (TransMissionNo) value of the detailed variable of communication cycles less than 3, and the value in elapsed time (ElapsedTime) is when being worth greater than the time-out time (TimeOut);
* as transmission number of times (TransMissionNo) value of the detailed variable of communication cycles less than 3, and when receiving the data link layer that comprises SEND FAILED and finish (DLLCompeted) primitive from data link layer 80;
* the transmission number of times (TransMissionNo) as the detailed variable of communication cycles is worth less than 3, and transmitting in the time-out time (SendTimeOut), when failing to receive data link layer and finish (DLLCompeted) primitive from data link layer 80.
Slave is after sending the notification data bag, if the communication cycles of carrying out is for { Repeated-notification} transmits number of times (TransMissionNo) value greater than 1, then can be limited to the again transport process that enters NPDU for 2 times. Below, show that slave enters the condition that transmits again.
* as transmission number of times (TransMissionNo) value of the detailed variable of communication cycles less than 3, and the value in elapsed time (ElapsedTime) is when being worth greater than the time-out time (TimeOut);
* as transmission number of times (TransMissionNo) value of the detailed variable of communication cycles less than 3, and when receiving the data link layer that comprises SEND FAILED and finish (DLLCompeted) primitive from data link layer 80a;
* the transmission number of times (TransMissionNo) as the detailed variable of communication cycles is worth less than 3, and transmitting in the time-out time (SendTimeOut), when failing to receive data link layer and finish (DLLCompeted) primitive from data link layer 80a.
Among the stage S67, if enter into again transfer phase, after then master control equipment and slave are revised the detailed content of communication cycles, re-start NPDU and generate process and communication cycles terminal procedure. Here, the communication cycles detail is carried out following modification.
* transmit number of times (TransMissionNo) and increase ' 1 ';
* (ElapsedTime) sets ' 0 ' for the elapsed time;
Replying information receiving state (ResRcvState) sets for and replys not collect mail (NOT_RECEIVED).
Among the stage S68, master control equipment and slave be with success or when unsuccessfully finishing communication cycles, and it is detailed to delete corresponding communication cycles. Among the stage S69, the Internet that comprises unsuccessfully the reason encoded radio is finished (NLCompleted) primitive, be sent to application layer 60, among the 60a. Here, if successfully finish communication cycles, the encoded radio that then comprises is CYCLE_OK, if unsuccessfully to finish communication cycles, the encoded radio that then comprises is CYCLE_FAILED.
Above-mentioned data processing method was replied repetition packet in the packet by what certain method detected out that master control device network layer receives, and above-mentioned repetition packet is processed in the beginning stage. Simultaneously, can utilize communication cycles identifier (CycleID), communicate the operation such as control, mistake control of circulation.
In sum, the present invention has following useful effect. The present invention can provide the applicable general communication specification of using---the data process in network layer of the domestic network system of control communication agreement, this general function that has control and monitor each electric equipment in the domestic network system with communication specification. Data process in network layer of the present invention adopts interactive network control communication agreement (Living network Control Protocol:LnCP) as general with communication specification. Data process in network layer of the present invention under certain conditions, can carry out the again transmission of packet, improves data-transmission efficiency. Data process in network layer of the present invention can transmit packet to data link layer from application layer.

Claims (39)

1, a kind of data process in network layer, it is characterized in that, at least in the communication agreement that is formed by Physical layer, data link layer, Internet and application layer, comprise from application layer, receive the stage of message transmission (MsgSend) primitive that is consisted of by application layer communication protocol data unit (APDU); Transmit the stage that (MsgSend) primitive generates the communication cycles detail according to message; Transmit (MsgSend) primitive and/or communication cycles detail according to message, generate the stage of packet transmission (PktSend) primitive that is consisted of by network layer communication agreement data unit (NPDU); Packet is transmitted (PktSend) primitive biography to the stage of data link layer.
2, data process in network layer according to claim 1 is characterized in that, described communication cycles detail comprises communication cycles identifier (CycleID), and the communication cycles identifier is included in described message and transmits in (MsgSend) primitive.
3, data process in network layer according to claim 1, it is characterized in that, described communication cycles detail comprises communication cycles type (CycleType), the communication cycles type is included in described message and transmits (MsgSend) primitive, according to Internet service (NLService) and/or purpose address setting communication cycles type.
4, data process in network layer according to claim 3, it is characterized in that the service of described Internet comprises at least need to reply (Acknowledged), do not need to reply (Non-acknowledged), a certain in the notice (Repeated-notification) repeatedly.
5, data process in network layer according to claim 4, it is characterized in that, described communication cycles type comprises the 1st coding or the 2nd coding when replying (Acknowledged) at needs, when not needing to reply (Non-acknowledged), comprise the 3rd coding, when repeatedly notifying (Repeated-notification), comprise the 4th coding.
6, data process in network layer according to claim 5, it is characterized in that, the described the 1st is encoded to " 1-request, 1-reply " communication cycles, the 2nd is encoded to " 1-request, many-as to reply " communication cycles, the 3rd is encoded to " 1-notice " communication cycles, the 4th be encoded to " repeatedly-and notice " communication cycles.
7, data process in network layer according to claim 5, it is characterized in that, the single collection of letters is pointed in the purpose address that message transmission (MsgSend) primitive during described needs are replied comprises, then described communication cycles type comprises the 1st coding, if the purpose address is pointed to several and collected mail, then described communication cycles type comprises the 2nd coding.
8, data process in network layer according to claim 1, it is characterized in that, described communication cycles detail comprises the connector address, and the connector address comprises destination addresses, and destination addresses is included in described message and transmits in (MsgSend) primitive.
9, data process in network layer according to claim 1 is characterized in that, described communication cycles detail comprises package number (PacketNo).
10, data process in network layer according to claim 9 is characterized in that, described communication cycles detail comprises that the value of package number (PacketNo) is, the value after the employed value of communication cycles that has just finished recently adds " 1 ".
11, data process in network layer according to claim 10, it is characterized in that, described data processing method also comprised such as the next stage, namely, if the package number that obtains after the described addition (PacketNo) value is certain limiting value, then above-mentioned value is set for the stage of initial value.
12, data process in network layer according to claim 11 is characterized in that, described initial value is " 0 ", and limiting value is " 4 ".
13, data process in network layer according to claim 1, it is characterized in that, described communication cycles detail comprises Internet service (NLService), and this Internet service (NLService) is included in above-mentioned message and transmits in (MsgSend) primitive.
14, data process in network layer according to claim 1, it is characterized in that, described communication cycles detail comprises service priority order (SvcPriority), and this service priority order (SvcPriority) is included in above-mentioned message and transmits in (MsgSend) primitive.
15, data process in network layer according to claim 1 is characterized in that, described communication cycles detail comprises the time-out time (TimeOut), and this time-out time is included in above-mentioned message and transmits in (MsgSend) primitive.
16, data process in network layer according to claim 1 is characterized in that, described communication cycles detail comprises be used to the transmission number of times (TransmissionNo) that transmits same NPDU.
17, data process in network layer according to claim 16 is characterized in that, the initial value of described transmission number of times (TransmissionNo) is ' 1 '.
18, data process in network layer according to claim 1, it is characterized in that, described communication cycles detail comprises the elapsed time (ElapsedTime), the elapsed time represent from described application layer receive behind the new communication cycles identifier (CycleID) time of process.
19, data process in network layer according to claim 18 is characterized in that, the initial value in described elapsed time (ElapsedTime) is ' 0 '.
20, data process in network layer according to claim 1, it is characterized in that, described communication cycles detail comprises replys information receiving state (ResRcvState), and this is replied information receiving state and represents whether receive the packet of replying that transmits (MsgSend) primitive corresponding to above-mentioned message.
21, data process in network layer according to claim 1, it is characterized in that, the above-mentioned packet of described generation transmitted in the stage of (PktSend) primitive, append network layer communication agreement data unit (NPDU) head and tail in described application layer communication protocol data unit (APDU), utilize network layer communication agreement data unit (NPDU) to generate above-mentioned packet and transmit (PktSend) primitive.
22, data process in network layer according to claim 1 is characterized in that, described data processing method also comprised such as the next stage, the stage that namely NPDU that generates is stored.
According to claim 1 to the data process in network layer described in 20 any one, it is characterized in that 23, described processing method also comprised such as the next stage: the stage that finishes in some cases current communication cycles.
24, data process in network layer according to claim 23 is characterized in that, described data processing method also comprises following each stage: after carrying out the stage of described end communication cycles, and the detailed stage of deleting communication circulation; Internet is finished (NLCompleted) primitive biography to the stage of application layer; This Internet is finished the encoded radio that (NLCompleted) comprises (meaning) communication cycles result.
25, data process in network layer according to claim 23 is characterized in that, described communication agreement is useful in above-mentioned master control device.
26, data process in network layer according to claim 25, it is characterized in that, described finishing in the stage, what following several situations represented is successful finishing: when above-mentioned communication cycles type is the 1st coding, and the above-mentioned situation of information receiving state (ResRcvState) for replying the collection of letters (RES_RECEIVED) of replying; When above-mentioned communication cycles type is the 2nd coding, the above-mentioned information receiving state (ResRcvState) of replying is for replying the collection of letters (RES_RECEIVED), and the above-mentioned elapsed time (ElapsedTime) is greater than the situation of time-out time (TimeOut); When above-mentioned communication cycles type was the 3rd when coding, receives from above-mentioned data link layer and to comprise that the data link layer that transmits successfully (SEND_OK) finishes the situation of (DLLCompleted) primitive; When above-mentioned communication cycles type was the 4th when coding, receives from above-mentioned data link layer and to comprise that at least a data link layer that transmits successfully (SEND_OK) finishes the situation of (DLLCompleted) primitive.
27, data process in network layer according to claim 25, it is characterized in that, described finishing in the stage, what following several situations represented is failed finishing: when above-mentioned communication cycles type was the 1st coding, above-mentioned transmission number of times (TransmissionNo) transmitted the situation of number of times (SendRetries) again greater than the maximum as Internet medium variable; When above-mentioned communication cycles type is the 2nd coding, the above-mentioned information receiving state (ResRcvState) of replying is not collected mail (NOT_RECEIVED) for replying, and the above-mentioned elapsed time (ElapsedTime) is greater than the situation of time-out time (TimeOut); When above-mentioned communication cycles type is the 3rd coding, receive from above-mentioned data link layer and to comprise that the data link layer that transmits unsuccessfully (SEND_FAILED) finishes (DLLCompleted) primitive, or suspend in the time (SendTimeOut) in the transmission as the medium variable of Internet, fail to receive the situation of finishing (DLLCompleted) primitive from the data link layer of data link layer; When above-mentioned communication cycles type is the 4th coding, transmit corresponding to all packets, from above-mentioned data link layer, receive and comprise that the data link layer that transmits unsuccessfully (SEND_FAILED) finishes (DLLCompleted) primitive, or in above-mentioned transmission suspends the time (SendTimeOut), transmit corresponding to all packets, failing to receive the situation of finishing (DLLCompleted) primitive from the data link layer of data link layer is the data process in network layer of feature.
28, data process in network layer according to claim 23 is characterized in that, described communication agreement is useful in slave.
29, data process in network layer according to claim 28, it is characterized in that, described finishing in the stage, following information slip is shown as finishing of merit: receive from above-mentioned data link layer and comprise that the data link layer that transmits successfully (SEND_OK) finishes the situation of (DLLCompleted) primitive.
30, data process in network layer according to claim 28, it is characterized in that, described finishing in the stage, following situation represents failed finishing: receive from above-mentioned data link layer and comprise that the data link layer that transmits unsuccessfully (SEND_FAILED) finishes the situation of (DLLCompleted) primitive, or in transmission time-out time (SendTimeOut) as Internet medium variable, fail to receive the situation of finishing (DLLCompleted) primitive from the data link layer of data link layer.
31, according to claim 1 to the data process in network layer described in 20 or 22 any one, it is characterized in that, described processing method also comprised such as the next stage: comprising that the message that stores NPDU transmits (MsgSend) primitive, the stage of transmitting again.
32, data process in network layer according to claim 31, it is characterized in that, described data processing method also comprised such as the next stage: after carrying out above-mentioned again transfer phase, the above-mentioned number of times (TransmissionNo) that transmits is again added ' 1 ', elapsed time (ElapsedTime) is set for ' 0 ', set for not reply and collect mail (NOT_RECEIVED) stage of upgrading thus above-mentioned communication cycles detail replying information receiving state (ResRcvState).
33, data process in network layer according to claim 31 is characterized in that, described communication agreement is applicable to master control equipment.
34, data process in network layer according to claim 33, it is characterized in that, be performed in a certain situation of described again transfer phase in following several situations: above-mentioned communication cycles type is the 1st coding or the 4th coding, above-mentioned transmission number of times (TransmissionNo) transmits number of times (SendRetries) again less than the maximum as Internet medium variable, the above-mentioned information receiving state (ResRcvState) of replying is not collected mail (NOT_RECEIVED) for replying, and the above-mentioned elapsed time (ElapsedTime) is greater than the situation of time-out time (TimeOut); Above-mentioned transmission number of times (TransmissionNo) transmits number of times (SendRetries) again less than above-mentioned maximum, receives from above-mentioned data link layer to comprise that the data link layer that transmits unsuccessfully (SEND_FAILED) finishes the situation of (DLLCompleted) primitive; Above-mentioned transmission number of times (TransmissionNo) transmits number of times (SendRetries) again less than maximum, in above-mentioned transmission suspends the time (SendTimeOut), fail to receive the situation of finishing (DLLCompleted) primitive from the data link layer of above-mentioned data link layer.
35, data process in network layer according to claim 31 is characterized in that, described communication agreement is useful in slave.
36, data process in network layer according to claim 35, it is characterized in that, be performed in a certain situation of described again transfer phase in following several situations: above-mentioned communication cycles type is the 4th coding, above-mentioned transmission number of times (TransmissionNo) transmits number of times (SendRetries) again less than the maximum as Internet medium variable, the above-mentioned information receiving state (ResRcvState) of replying is not collected mail (NOT_RECEIVED) for replying, and the above-mentioned elapsed time (ElapsedTime) is greater than the situation of time-out time (TimeOut); Above-mentioned transmission number of times (TransmissionNo) transmits number of times (SendRetries) again less than above-mentioned maximum, receives from above-mentioned data link layer to comprise that the data link layer that transmits unsuccessfully (SEND_FAILED) finishes the situation of (DLLCompleted) primitive; Above-mentioned transmission number of times (TransmissionNo) transmits number of times (SendRetries) again less than maximum, in above-mentioned transmission suspends the time (SendTimeOut), fail to receive the situation of finishing (DLLCompleted) primitive from the data link layer of above-mentioned data link layer.
According to claim 1 to the data process in network layer described in 22 any one, it is characterized in that 37, describedly be useful in above-mentioned master control equipment, it is that request message transmits (ReqMsgSend) primitive that above-mentioned message transmits (MsgSend) primitive.
38, according to claim 1 to the data process in network layer described in 22 any, it is characterized in that, described communication agreement is useful in slave, and it is that event message transmits (EventMsgSend) primitive that above-mentioned message transmits (MsgSend) primitive.
39, data process in network layer according to claim 1 is characterized in that, described communication agreement is interactive network control communication agreement (LnCP).
CN 200410071823 2004-09-06 2004-09-06 Data process in network layer Pending CN1747476A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200410071823 CN1747476A (en) 2004-09-06 2004-09-06 Data process in network layer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200410071823 CN1747476A (en) 2004-09-06 2004-09-06 Data process in network layer

Publications (1)

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

Family

ID=36166797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200410071823 Pending CN1747476A (en) 2004-09-06 2004-09-06 Data process in network layer

Country Status (1)

Country Link
CN (1) CN1747476A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660322A (en) * 2017-10-12 2019-04-19 深圳市中兴微电子技术有限公司 A kind of data processing method, device and computer storage medium
CN114731287A (en) * 2019-12-05 2022-07-08 三菱重工业株式会社 Communication processing device, communication processing method, program, and data structure of header of network layer

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660322A (en) * 2017-10-12 2019-04-19 深圳市中兴微电子技术有限公司 A kind of data processing method, device and computer storage medium
CN109660322B (en) * 2017-10-12 2022-01-11 深圳市中兴微电子技术有限公司 Data processing method and device and computer storage medium
CN114731287A (en) * 2019-12-05 2022-07-08 三菱重工业株式会社 Communication processing device, communication processing method, program, and data structure of header of network layer
CN114731287B (en) * 2019-12-05 2024-05-31 三菱重工业株式会社 Communication processing device, communication processing method, program, and data structure of header of network layer

Similar Documents

Publication Publication Date Title
CN1799219A (en) Home network system
CN1278557C (en) Information delivery system, method, information processing apparatus, and method
CN1183717C (en) Methods for bridging HAVi sub-network and UPnP sub-network and device for implementing said method
CN1914862A (en) Cluster system, cluster member, and failure recovery method and program thereof
CN1309223C (en) General service-quality adapted framework used for moving multi-media
CN1297169C (en) Information packet communication terminal, communication system, communication method and communication program
CN1463521A (en) Information processing appts.
CN1677979A (en) System and method for sharing objects between computers over a network
CN1947106A (en) Notification method, connection apparatus, communication method, and program
CN1504040A (en) Organic data network having dynamic topology
CN1497898A (en) Resource management system
CN1209895C (en) Information processing device and information processing method
CN1716874A (en) Remote management system
CN1369990A (en) Digital family network system
CN1744571A (en) Method for reducing learning of media accessing control address in network
CN1119001C (en) Data communication system, data communication method and data communication apparatus
CN1518282A (en) Communication system and terminal
CN1747476A (en) Data process in network layer
CN1765084A (en) Data communication load dispersing control program and data load decentralized control method
CN1612525A (en) Method, apparatus, and system for transmitting information
CN1960325A (en) Data process method in a bridging network, and a bridging network
CN1747480A (en) Data process in application layer
CN1747479A (en) Data process in application layer
CN1747415A (en) Household network system
CN1747478A (en) Data process in network layer

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

Open date: 20060315