1. Field of the Disclosure
The present invention relates to a method for setting a home code in a network system and a device for used in a network system, by which, a user, for example, who is locating at home or out-of-home can effectively control household appliances such as refrigerator or laundry machine connected to a network.
2. Discussion of the Related Art
In general, ‘home network’ means a network in which various digital appliances are connected to one another to allow users to enjoy economical home services in a convenient and safe way anytime at home or out-of-home, and due to the development of digital signal processing technology, various types of appliances such as refrigerator or laundry machine are being gradually digitalized.
On the other hand, in recent years, home network has been more advanced, since operating system and multi-media technology for appliances has been applied to digital appliances, as well as new types of information appliances have appeared.
Moreover, in a general meaning, a network which is established for providing file exchanges or internet services between personal computers and peripheral devices, a network between appliances for handling audio or video information, and a network established for home automation of various appliances such as refrigerator or laundry machine, appliance control such as remote meter reading, and the like are called a ‘living network’.
Furthermore, in the network services in which small-scale data transmission for the remote control, or operating state monitoring of the appliances included in the network, for example, various appliances such as refrigerator or laundry machine, is the main object of their communication, each of appliances connected to one another should be directly controlled by a network manager, which is included in the network, with the use of the minimum required communication resources. However, its effective solution has not been provided yet, and thus it is a matter of urgency to provide its solution.
Accordingly, the present invention is devised in consideration of the aforementioned situation, and it is an object of the invention to provide a method for setting a home code in a network system and a device for a network system, by which a user, for example, who is locating at home or out-of-home can effectively control various appliances such as refrigerator or laundry machine connected to a network by using the minimum required communication resources and can effectively manage information of all devices constituting the network using a home net profile.
In order to achieve the aforementioned object, there is provided a method for setting a home code in a network control system, comprising a first step of checking whether a network is an initially configured network, a second step of producing a random home code value, a third step of checking whether the random home code value is used in other networks connected to the corresponding network when it is found that the network is an initially configured network as the result of checking, and a fourth step of setting the random home code value as a unique home code of the corresponding network when it is found that the random home code value is not used in other networks as the result of checking.
In order to achieve the object, there is provided a device for a network system, comprising one or more devices operating in conjunction with the operation of the network system, and a home code requested by a network manager of the network system and produced by a home code controller.
The above and other objects, features and advantages of the present invention will become apparent from the following description of preferred embodiments given in conjunction with the accompanying drawings, in which:
Hereinafter, a method for setting a home code in a network system and a device for a network system, according to one embodiment of the present invention will be described with reference to the accompanying drawings.
The living network control system 400 comprises a home gateway 40, a network manager 41, an LnCP router 42, an LnCP adaptor 43, and appliances 44. As shown in
The living network control system 400 is called, for example, “LnCP network.” As shown in
The LnCP network is connected to a master device which controls the operation of appliances or monitors the operation status of the appliances, and to a slave device having a response function for responding to a request of the master device and an informing function for informing status change of itself.
As shown in
The LnCP network provides a user with a function that the user residing away from a user's home can check the operation status of appliances or control operation of the appliances installed in the user's house, by using the internet 300. In this instance, the connection between the LnCP network and the internet 300 are made via a home gateway 40. In order to access the LnCP network, the user accesses the LnCP internet server 100 first and goes through the authentification process. After the authentification process is successful, the user can monitor the operation status of the appliances or control the operation of the appliances connected to the LnCP network.
Further, the user can download contents provided by the LnCP internet server 100 by accessing the LnCP internet server 100 through the home gateway 40 provided in the appliances connected to the LnCP network. In this instance, the LnCP network has the following features in order to facilitate the above described functions.
Digital information appliances have a micro controller of a variety of levels performances to perform the intrinsic functions thereof. In the LnCP network, the digital information appliances have the simplest function so that they can operate in the micro controllers having the variety of levels of performances, thereby using the least resource of the micro controller mounted in the appliances. In particular, the micro controller having a low level performance is designed to be able to perform the LnCP communication function as well as to perform the intrinsic functions of the appliances, and the micro controller having a high level performance is designed to be able to support a multi-tasking function.
The main features of the LnCP network according to the present invention include a master-slave based communication structure, event-driven communication support, plural network manager support, 4-layer structure, communication cycle service, and versatility in address management, variable-length packet communication and provision of a standard message set.
The master-slave based communication structure is used as a communication structure between appliances in the LnCP network, and comprises at least one master device. The master device must have information of slave devices to be controlled and have control codes. The master device controls slave devices by receiving inputs from a user or by according to previously input programs.
For example, as shown in
The LnCP network supports an event-driven communication service. That is, a user can set an event needed by a user for an appliance, and the corresponding appliance informs other appliances of occurrence or content of the event when the event set by the user occurs, or controls the operation status of the other appliances, according to the event.
The LnCP network includes one or more network managers having a function to set or manage environment of appliances, particularly can support a plurality of network managers if necessary. In this case, management information of appliances should be synchronized, in order to make preparation for errors of the network managers.
As shown in
That is, the slave device is not controlled by any master device during the own communication cycle of the slave device. However, the master device has a plurality of communication cycles at the given time point, wherein there are four kinds of communication cycles, including {1-request, 1-response}, {1-request, 1-multi-response}, {1-notification}, and {repeated-notification}.
For example, the {1-request, 1-response} communication cycle is a cycle in which one master device sends one request packet to one slave device, and the slave device transmits one response packet in response to the request from the master device. At this time, if an error is caused to the received packet, as shown in
The {1-request, multi-response} communication cycle as shown in
The {1-notification} communication cycle as shown in
The LnCP network supports a versatile address management. For example, since appliances having the LnCP function are assigned with addresses based their types at the shipment from a factory, they can automatically constitute a network without any intervention of the user. At this time, since the appliances of the same type are initialized with the same address, the network manager has an algorithm that allocates an intrinsic address to each of the appliances when the appliances are connected.
Since the LnCP network allocates an intrinsic group address to the appliances belonging to the same group, the group communication can be performed by using one message. Further, the LnCP network can classify a plurality of kinds of appliances into clusters, and allocate a group address to each cluster.
The LnCP network supports the variable-length packet communication. For example, when downloads contents, such as application programs for controlling appliances, or uploads data stored in appliances, length of packet is adjusted based on buffer size provided in appliances.
Further, the LnCP network provides the standard message set. For example, the standard message set, which is proper for various appliances, is defined for each application layer so that the master devices can control other appliances. The message set comprises a common area message set for basic LnCP communication, an application area message set for supporting intrinsic functions of appliances, and a developer area message set for supporting intrinsic functions provided by a manufacturer.
The message sets can be broadened if necessary, and factors in the pre-defined message can be added. Hereinafter, a hierarchy which is the main feature of the LnCP network according to the present invention will be described in more detail.
The physical layer provides a physical interface function between devices and a transmission and reception function of physical signals such as bits. Example of the physical layer includes a non-standard transmission medium, such as RS-485 and low level output RF, which has a non-standard data link layer, and a standard transmission medium, such as power line, Ethernet, IEEE 802.11, and ZigBee, which has a standard data link layer. In the LnCP network, an LnCP adaptor can be used in order to implement a physical layer of devices.
The data line layer provides a medium access control (MAC) function for using common transmission medium. In the case of using the non-standard transmission medium having a non-standard data link layer in the LnCP network, probabilistic delayed carrier sense multiple access (p-DCSMA) is needed to be used as the medium access control (MAC) protocol.
However, in the case of using the standard transmission medium having the standard data link layer in the LnCP network, the MAC function defined by the corresponding protocol can be used.
Referring to
The network layer provides an address management function of appliances and a transmission and reception control function for reliable network connection between devices. The application layer provides a transmission and reception control function for performing services of application soft wares and a flow control function for download and upload service.
The application layer also defines a message set for controlling and monitoring appliances and for managing a network, and the application softwares perform intrinsic functions of the appliances and exchange with the application layer data via an interface defined in the application layer.
Further, as shown in
Referring to
On the other hand, the primitive structure “SetPar” for transferring the parameter value to the parameter management layer includes therein “uchar DestLayer” which is a layer to transfer the parameter value, and “structure SetLayerPart” which is a variable varying according to a value of the DestLayer. The value of the DestLayer is set to “1” when the layer to transfer the parameter value is an application layer, “2” when the layer to transfer the parameter value is a network layer, and “3” when the layer to transfer the parameter value is a data link layer, and “4” when the layer to transfer the parameter value is a physical layer.
The variable SetLayerPart is set to “SetALPar” when the layer to transfer the parameter value is the application layer, “SetNLPar” when the layer to transfer the parameter value is the network layer, and “SetDLLPar” when the layer to transfer the parameter value is the data link layer, and “SetPHYPar” when the layer to transfer the parameter value is the physical layer.
On the other hand, the primitive “structure GetPart” for transferring the parameter value to the network management sublayer, includes therein “uchar SreLyaer,” a layer which transmitted the parameter value, “uchar PMLResult,” which indicates if the parameter value is successfully obtained from each layer, and “structure GetLayerPart” which is a parameter for each layer and varies according to the value of the SrcLayer. The value of the SrcLayer is set to “1” when the layer which transmitted the parameter value is the application layer, “2” when the layer which transmitted the parameter value is the network layer, “3” when the layer which transmitted the parameter value is the data link layer, and “4” when the layer which transmitted the parameter value is the physical layer.
Further, in the case in which the parameter value is successfully obtained from each value, the PMLResult is wet to PAR_OK(1). If not, the PMLResult is set to PAR_FAILD(0). Still further, the GetLayerPar is set to “RptALPar” for the application layer, “RptNLPar” for the network layer, “RptDLLPar” for the data link layer, and “RptPHYPar” for the physical layer.
There is a parameter “const unit ParTimeOut” used in the parameter management layer. The parameter “const unit ParTimeOut” is a standby time (ms) for waiting for receiving RptALPar, RptNLPar, RptDLLPar or RptPHYPar after transmission of GetALPar, GetNLPar, GetDLLPar or GetPHYPar to each layer.
The parameter management layer transfers SetALPar, SetNLPar, SetDLLPar or SetPHYPar to the layer noted in the primitive when it receives the SetPar primitive from the network management sublayer. Further, in the case in which a value of all of bits of the received primitive is “1,” the variable is neglected (For example: 0xFF, 0xFFF).
On the other hand, when the parameter management layer receives the GetPar primitive from the network management sublayer, the parameter management layer transfers GetALPar, GetNLPar, GetDLLPar or GetPHYPar to the layer noted in the primitive. If the parameter management layer receives the RptALPar, RptNLPar, RptDLLPar or RptPHYPar from each layer, the parameter management layer transfers the GetPar primitive and PARResult which is set to PAR_OK to the network management sublayer. However, if the parameter management layer does not receive the primitive from each layer in the time ParTimeout, the PARResult which is set to PAR_FAILD is transferred to the network management sublayer.
The network management sublayer provides a parameter management function for helping node parameter setting of individual devices, a network configuration function, an environment setting function, and a network operation management function. If there is a request from application softwares or a master device, the network management sublayer sets or reads the parameter value via the parameter management layer.
For example, the network management sublayer sets or reads the parameter values of AddressResult, NP_Alivelnt, SvcTimeOut, and NP_BufferSize for the application layer, the parameter values of NP_LogicalAddress, NP_ClusterCode, NP_HomeCode and SendRetries for the network layer, the parameter value of MinPktInterval for the data link layer, and the parameter value of NP_bps for the physical layer.
In particular, the network management sublayer of slave devices sets or reads a value of a parameter to or from the corresponding layer through the parameter management layer when it receives the UserReqRcv primitive including application services belonging to a device node parameter setting service or a device node parameter acquisition service, and then transfers the result to the application layer through the UserResSend primitive. The application services for managing the parameter for each layer are as follows:
For example, application services for the application layer include SetOption service, SetAliveTime service, SetClock service, and GetBufferSize service; application services for the network layer include SetTempAddress service, SetAddress service, and GetAddress service; and application services for the physical layer include SetSpeed service. There is no application service for the data link layer.
On the other hand, the network management sublayer provides an LnCP network configuration function, an environment setting function, and a network management function for managing operation of network. General network management function is operated on the application layer of a master device, and some functions such as a network information synchronization function are operated on the application layers of slave devices in some network management periods.
The interface with the application layer includes an interface with an application layer of a slave device and an interface with an application layer of a master device. The interface with the application layer of the slave device uses UserReqRcv and UserResSend primitives. The interface with the application layer of the master device uses UserReq, UserDLReq, UserULReq, UserRes, UserEventRcv and ALCompleted primitives.
As shown in
For example, an application layer PDU (APDU) is a packet exchanged between the application layer and the network layer, and comprises an APDU header and a message. A network PDU (NPDU) is a packet exchanged between the network layer and the data link layer or the home code control sublayer, and comprises an address of APDU, an address of itself, an address of a target appliance, an NPDU header, such as a packet type classified by importance degree of a message to be transmitted, an NPDU trailer, an APDU.
Further, a home code control sublayer PDU (HCNPDU) is a packet exchanged between the network layer and the data link layer, and comprises the NPDU and a home code. The home code sublayer is applied to a device directly connected to a transmission medium or the LnCP router in order to logically divide individual networks in the case in which the LnCP network is constructed using a dependent transmission medium, such as power line, IEEE 802.11, and low level output RF.
On the other hand, the home code control sublayer is not implemented in the case in which the individual networks are physically separated by an independent transmission medium, such as RS-485, and the home code comprises four bits and is set to a random value or a value designated by application software.
Further, the home code control sublayer can use different home comes according to transmission media. For example, as shown in
Referring to
An initial value of the home code in the home code control sublayer is 0x0000 0000. When the home code is 0x0000 0000, data must not be transmitted between the network layer and the data link layer. For example, as shown in
If the value of the home code is not set to 0x0000 0000, the home code control sublayer neglects HCNPDU when a value of HC field in the HCNPDU transferred to the home code control sublayer from the data link layer is not the same as its home code value. On the other hand, if the value of HC field in the HCNPDU is identical to its home code value, and a value of network layer packet type (NPT) is 0 to 12, the home code control sublayer transfers the NPDU to the network layer. In the case that the NPT value is 13 to 15, the home code control sublayer process the NPDU therein and does not transfer the NPDU to the network layer.
If the NPT value of the NPDU transferred to the home code control sublayer from the network layer is 13 to 15, the NPDU is processed in the home code control sublayer and is not transferred to the data line layer. If the NPT value is 0 to 12, the home code control sublayer produces the HCNPDU by adding the HC field including its home code value and transfers the produced HCNPDU to the data line layer.
Referring to
For example, the network manager sends a request message to each device by using GetAddress service (0xFF07), and then it determines that a device is added to the configured network when it receives a response message from a device. If it does not receive the response message from a device, it determines an initial network is configured.
On the other hand, in the result of the checking, if it is determined that a network is initially configured, the network manager request the nearest home code control sublayer to produce a home code, by using a SetHCCreation service (0xFF40) (S12). In this instance, if the home code control sublayer receives the home code production request HCCreateReq from the data line layer or the application layer, it creates a home code using a random number generation algorithm stored therein.
Then, the network manager checks whether a home code having a unique value is created (S13). For this, it checks whether the value of the created home code is being used in another devices in local networks connected by open media, by using a GetAddress service.
For example, the network manger determines that the home code value is previously used when it receives a response message after it sends a request message using the home code value. At this time, the network manager request deletion of the home code (S14) by using a SetHCClear service (0xFF45), and repeatedly performs a series of steps to produce a new home code.
On the other hand, if the network manager does not receive a response message with respect to the request message, it determines that the home code value is unique. At this time, it sets home codes of all devices connected to open media with the unique home code value by using a SetHCBroadcast service (0xFF41) (S15).
The above described home code setting method and device in a network system according to the present invention can provides a user with convenience in remote control and monitoring, and makes a user effectively set and manage a home code in a network.
As describe above, while the present invention has been disclosed for the purpose of illustration with reference to the aforementioned preferred embodiment, the living network can be called other names and more various appliances can be connected to a living network according to the present invention, and it will be understood by those skilled in the art that the foregoing embodiment can be improved, modified, substituted or added in a variety of ways without departing from the technical spirit and scope of the invention as defined by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
10 2005 0015573 | Feb 2005 | KR | national |
This application is a National Stage entry of PCT Application No. PCT/KR2006/000631, filed Feb. 23, 2006, and claims the benefit of Korean Application No. KR 10-2005-0015573, filed Feb. 24, 2005, each of which are incorporated herein by reference in their entireties.
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/KR06/00631 | 2/23/2006 | WO | 00 | 9/15/2008 |