The present invention relates to a home network system, and more particularly to a communication apparatus and a method for supporting carrier sense multiple access/collision detection (hereinafter, it is referred to as CSMA/CD) of peripheral apparatuses that are connected to a home bus in the home network.
A home network system is a system for controlling household appliances, such as, PC, cellular phone, refrigerator, or washing machine, by one network.
In fact, the plural appliances are interconnected through a home bus, and to do so, a protocol, which is capable of integrating many signals for each appliance and controlling the signals, is absolutely necessary. One of typical examples of the protocol is CSMA/CD.
The most essential element in the CSMA/CD system is to create more effective communication in spite of some possible collisions that are generated as several appliances use one single home bus.
Referring to
At the result of the busy check, if the home bus is currently in the idle state, the data is transmitted to a corresponding appliance through the home bus, while if it turns out that the home bus is currently in the busy state, the transmission is delayed for a certain amount of time, and after that, the busy check conducted again.
In this manner, a plurality of peripheral apparatus can transmit data to one single home bus simultaneously.
However, the method has a drawback as follows.
For example,
As shown in
It is, therefore, an object of the present invention to provide a communication apparatus and a method for supporting carrier sense multiple access/collision detection (CSMA/CD), which is capable of providing more stable communication by assigning a different busy check time to each peripheral apparatus in accordance with priority.
To achieve the above object, there is provided a communication apparatus for supporting carrier sense multiple access/collision detection (CSMA/CD) for use of a home network wherein a plurality of peripheral apparatuses are connected to a home bus, the communication apparatus including: an interface circuit for transmitting and receiving packet data by being connected to the home bus; a data transmitting circuit for converting transmission data generated from inner peripheral apparatuses into physical transmission data and then for outputting the data on the home bus through the interface circuit; a data receiving circuit for determining whether data transmitted from other peripheral apparatuses through the interface circuit are received in its own peripheral apparatus and for checking a current state of the home bus; a collision detection circuit for continuously detecting a current state of the home bus through the data receiving circuit; and a communication controlling part for controlling data which are output from the data transmitting circuit by detecting a state of the home bus detected from the collision detection circuit.
Preferably, the data that is converted in the data transmission circuit before being output includes a preamble, a receiver's code, a sender's code, priority, a control code, and an error code.
Another aspect of the present invention provides a method for supporting carrier sense multiple access/collision detection (CSMA/CD), the method including the steps of: assigning priority to each peripheral apparatus and defining a different busy check time period for the apparatuses in accordance with the priority; if an apparatus has a data to transmit, preparing the data for transmission by converting the data to a packet signal to be in correspondence to a home bus; if the home bus is currently in a busy state, waiting for a certain amount of time, and rechecking the state of the home bus, and if the home bus is in an idle state, continuously checking whether the home bus is in the idle state for the defined busy check time period; and if the state of the home bus changes to the busy state, waiting for a certain amount of time, and then checking the state of the home bus again, and if the home bus is continuously in the idle state for the defined busy check time period, transmitting a packet data.
Preferably, the busy check time period for a peripheral apparatus with higher priority is defined shorter than the busy check time period for a peripheral apparatus with lower priority.
The above objects, features and advantages of the present invention will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings, in which:
A preferred embodiment of the present invention will now be described with reference to the accompanying drawings.
As shown in the drawing, a plurality of peripheral apparatuses 10-1, 10-2, and 10-3 are connected to one home bus 5. These peripheral apparatuses 10-1, 10-2, and 10-3 compete with one another to use the home bus 5. Normally, a peripheral apparatus with high priority wins the competition, and transmits data on the home bus 6. The peripheral apparatuses generally indicate household appliances like refrigerator, washing machine, PC, air conditioner, or microwave.
The peripheral apparatus includes an interface circuit 12, a data receiving circuit 12, a data transmitting circuit 13, a collision detection circuit 14, and a communication controlling part 15.
The interface circuit 12 directly transmits/receives data by being connected to the home bus 5. More specifically, the interface circuit 12 outputs an output from the data transmitting circuit 13 on the home bus 5, and receives transmission data existing in the home bus 5 and inputs the data into the data receiving circuit 12.
The data transmitting circuit 13 converts transmission data generated from the communication controlling part 15 into physical transmission data that is usually transmitted from a peripheral apparatus, and then outputs the physical transmission data on the home bus 5 through the interface circuit 11. On the other hand, the data receiving circuit 11 converts inputted receiving signals from the interface circuit 11 into receiving data, and finds out a current state of the home bus 5 before outputting the converted data to the collision detection circuit 14 and to the communication controlling part 15.
Here, the standard-sized home bus 5 is divided into an information channel and a control channel, and each channel is subdivided into twisted fair cables.
The collision detection circuit 14 continuously compares current transmission data with current receiving data during transmission process, and if a different bit from its own transmitted data bit is received, the collision detection circuit 14 concludes that the home bus is currently being occupied by another peripheral apparatus, and generates a collision detection signal to the communication controlling part 15.
The communication controlling part 15 controls input/output of transceiving data, and if it detects any collision detection signal in the course of transmitting, it maintains random waiting state, and continuously checks the state of the home bus.
The operation of the communication method for supporting carrier sense multiple access/collision detection (CSMA/CD) embodying the principles of the present invention is now detailed with reference to the drawings.
Referring to
Then, it is determined whether a peripheral apparatus has data to transmit (S20), and if there is no data to be transmitted, the apparatus maintains the waiting state for a certain amount of time (S30), and rechecks whether there is data to be transmitted. If it turns out that there is data to be transmitted, the apparatus prepares to transmit the data (S40).
Particularly, the communication controlling part 15 prepares to transmit the data by generating a packet data including a plurality of byte data. As shown in
When the data to be transmitted is converted into signals in a packet to be in correspondence to the home bus 5, the home bus 5 is checked whether it is in idle state (S50). If the home bus is in busy state, the communication controlling part waits for a certain amount of time (S80), and then rechecks the state of the home bus 5 (S50).
If it turns out that the home bus 5 is in idle state, the home bus 5 is continuously checked for the busy check time period that is determined by the communication controlling part 15 (S70).
In case that the home bus 5 goes back to the busy state again in the middle of the process, the communication controlling part 15 waits for a certain amount of time (S80), and rechecks the state of the home bus 5. If the home bus 5 is in idle state continuously during the determined busy check time period, the communication controlling part 15 transfers a transmission control signal to the data transmitting circuit 13, and transmits the packet data through the interface circuit 11 (S90).
The above-described method is particularly useful for solving the conventional problem during the data transceiving process, as manifested in
Referring to
Suppose that the first transmitting peripheral apparatus has higher priority than the second transmitting peripheral apparatus. This means that the busy check time period of the first transmitting peripheral apparatus is shorter than that of the second transmitting peripheral apparatus.
Therefore, even though the first transmitting peripheral apparatus and the second transmitting peripheral apparatus might perform the busy check at the same time, since the busy check time assigned to the first transmitting peripheral apparatus ends earlier than that of the second transmitting peripheral apparatus, data transmission is successfully done. While the first transmitting peripheral apparatus is using the home bus 5, the second transmitting peripheral apparatus enters the delay state, thereby avoiding a collision between two peripheral apparatuses.
While the invention has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
In conclusion, the communication apparatus and the method for supporting carrier sense multiple access/collision detection (hereinafter, it is referred to as CSMA/CD) according to the present invention have advantages as follows:
First of all, as a plurality of peripheral apparatuses tries to do communication at the same time, the collision among data can be prevented and therefore, no communication failure occurs on the communication line.
Secondly, as the data with greater urgency needs to be communicated, its transmission rate is even higher.
Number | Date | Country | Kind |
---|---|---|---|
2001-32308 | Jun 2001 | KR | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/KR02/00633 | 4/9/2002 | WO | 00 | 12/9/2003 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO02/101992 | 12/19/2002 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
4516122 | Tomikawa | May 1985 | A |
5353287 | Kuddes et al. | Oct 1994 | A |
5600310 | Whipple et al. | Feb 1997 | A |
5841778 | Shaffer et al. | Nov 1998 | A |
6272147 | Spratt et al. | Aug 2001 | B1 |
6556561 | Himbeault et al. | Apr 2003 | B1 |
6868295 | Huang | Mar 2005 | B2 |
6906617 | Van der Meulen | Jun 2005 | B1 |
20010049761 | Huang | Dec 2001 | A1 |
20030041161 | Billings et al. | Feb 2003 | A1 |
Number | Date | Country |
---|---|---|
0 833 479 | Apr 1998 | EP |
0833479 | Apr 1998 | EP |
03-268534 | Nov 1991 | JP |
3268534 | Nov 1991 | JP |
Number | Date | Country | |
---|---|---|---|
20040160976 A1 | Aug 2004 | US |