Field of the Invention
The present invention relates to a communication apparatus, a method of controlling the same, and a storage medium.
Description of the Related Art
In an apparatus, such as a printer, a multifunction machine, or a PC (personal computer), which is provided with a LAN network interface, the settings of the communication mode of a PHY device, which is a physical layer of the LAN network interface, include a setting of a maximum communication speed and a setting of a communication method.
The maximum communication speed is represented by a maximum bit rate per unit time, such as 100 Mbps or 10 Mbps, at which physical transmission of data can be performed. The communication method includes a full-duplex communication method in which two-way simultaneous communication is possible and a half-duplex communication method in which only one of two apparatuses connected to each other can perform transmission.
Further, generally, the settings of the communication mode of the PHY device include a setting of an auto-negotiation mode and a setting of a fixed mode. The auto-negotiation mode is a method in which PHY setting information called FLP (fast link pulse) is exchanged between two apparatuses when establishing a connection therebetween, whereby a common and fastest mode is automatically set by being selected from communication speeds and communication methods that can be set between the two apparatuses.
In this case, a highest maximum bit rate is adopted as the maximum communication speed, and the full-duplex communication method is preferentially adopted as the communication method.
By connecting two apparatuses operable in the auto-negotiation mode to each other by a LAN cable, it is possible to automatically select a maximum communication speed and a communication method which can be set between the two apparatuses and ensures a fastest communication, without the user being conscious thereof.
On the other hand, in the fixed mode, parameters of the maximum communication speed and the communication method are fixedly set irrespective of the settings of an other-party apparatus at the other end of communication.
As for connection between an apparatus that operates in the auto-negotiation mode and an apparatus that operates in the fixed mode, it is determined by the standard of IEEE 802.3 that the half-duplex communication method is to be employed for the connection.
For this reason, in the case of establishing a connection between an apparatus that operates in the fixed mode with the communication method set to the full-duplex communication method and an apparatus that operates in the auto-negotiation mode, the communication method of the apparatus that operates in the fixed mode is set to the full-duplex communication method and the communication method of the apparatus that operates in the auto-negotiation mode is set to the half-duplex communication method.
As a result, packet collision occurs due to the connection established using both the full-duplex communication method and the half-duplex communication method, which frequently causes packet retransmission, resulting in degradation of packet transmission efficiency.
To solve the above-described problem, there has been proposed a method in which, when delay in response to a particular packet is detected, if an apparatus that operates in the auto-negotiation mode is connected using the half-duplex communication method, the communication setting of the apparatus is changed to the fixed mode with the communication method set to the full-duplex communication method or the half-duplex communication method (see e.g. Japanese Patent No. 3945288).
However, in the method proposed in Japanese Patent No. 3945288, when an apparatus is set to the fixed mode, the apparatus cannot shift to an EEE (Energy Efficient Ethernet (registered trademark)) power saving mode defined by IEEE 802.3az.
In EEE, shifting of a LAN interface to the power saving mode is allowed only when apparatuses connected to each other employ the auto-negotiation mode, and the method proposed in Japanese Patent No. 3945288 in which the communication mode is changed to the fixed mode does not allow the LAN interface of the apparatuses to shift to the power saving mode.
This is because the two apparatuses notify each other of whether or not the self apparatus is set to the EEE power saving mode through negotiation during link establishment between them in the auto-negotiation mode. Therefore, when both of the two apparatuses are not operating in the auto-negotiation mode, it is impossible to shift to the EEE power saving mode.
The present invention provides a communication apparatus that executes processing for activating an EEE power saving mode when the EEE power saving mode is not activated because the communication apparatus and an other-party apparatus communicating with each other are not both operating in an auto-negotiation mode, a method of controlling the communication apparatus, and a storage medium.
In a first aspect of the present invention, there is provided a communication apparatus operable in an auto-negotiation mode, comprising a first setting unit configured to set whether or not to activate a power saving mode to be realized by the auto-negotiation mode, a first determination unit configured, in a case where the first setting unit has set that the power saving mode is to be activated, to determine whether an external apparatus at the other end of communication has been set to a fixed mode, and a control unit configured, in a case where the first determination unit determines that the external apparatus has been set to the fixed mode, to cause the external apparatus to be set to the auto-negotiation mode.
In a second aspect of the present invention, there is provided a communication apparatus operable in an auto-negotiation mode, comprising a first setting unit configured to set whether or not to activate a power saving mode to be realized by the auto-negotiation mode, and a control unit configured, in a case where the first setting unit has set that the power saving mode is to be activated, to cause the communication apparatus to be set to the auto-negotiation mode.
In a third aspect of the present invention, there is provided a method of controlling a communication apparatus operable in an auto-negotiation mode, comprising setting whether or not to activate a power saving mode to be realized by the auto-negotiation mode, determining, when said setting has set that the power saving mode is to be activated, whether an external apparatus at the other end of communication is set to a fixed mode, and causing, in a case where the determining determines that the external apparatus has been set to the fixed mode, the external apparatus to be set to the auto-negotiation mode.
In a fourth aspect of the present invention, there is provided a method of controlling a communication apparatus operable in an auto-negotiation mode, comprising setting whether or not to activate a power saving mode to be realized by the auto-negotiation mode, and causing, in a case where said setting has set that the power saving mode is to be activated, the communication apparatus to be set to the auto-negotiation mode.
In a fifth aspect of the present invention, there is provided a non-transitory computer-readable storage medium storing a computer-executable program for causing a computer to execute a method of controlling a communication apparatus operable in an auto-negotiation mode, comprising setting whether or not to activate a power saving mode to be realized by the auto-negotiation mode, determining, when said setting has set that the power saving mode is to be activated, whether an external apparatus at the other end of communication has been set to a fixed mode, and causing, in a case where the determining determines that the external apparatus has been set to the fixed mode, the external apparatus to be set to the auto-negotiation mode.
In a sixth aspect of the present invention, there is provided a non-transitory computer-readable storage medium storing a computer-executable program for causing a computer to execute a method of controlling a communication apparatus operable in an auto-negotiation mode, comprising setting whether or not to activate a power saving mode to be realized by the auto-negotiation mode, and causing, in a case where said setting has set that the power saving mode is to be activated, the communication apparatus to be set to the auto-negotiation mode.
According to the present invention, it is possible to provide a communication apparatus that executes processing for enabling the EEE power saving mode when the EEE power saving mode is not activated because the communication apparatus and the other-party apparatus communicating with each other are not both operating in the auto-negotiation mode, a method of controlling the communication apparatus, and a storage medium.
Further features of the present invention will become apparent from the following description of exemplary embodiments with reference to the attached drawings.
The present invention will now be described in detail below with reference to the accompanying drawings showing embodiments thereof.
Referring to
The MAC 104 converts a signal received by the PHY device 103 to a signal to be handled by devices of the communication apparatus 100. A CPU 108 controls the overall operation of the communication apparatus 100.
A RAM 109 temporarily stores e.g. programs to be executed by the CPU 108. A ROM 116 stores settings, initial data, etc. of the communication apparatus 100.
A printer 111 prints characters and images. A scanner 113 scans characters and images. A panel 114 (display section) is used to display information on the communication apparatus 100, an input command from a user, and so forth.
A printer interface 110 provides interface between the printer 111 and the devices of the communication apparatus 100. A scanner interface 112 provides interface between the scanner 113 and the devices of the communication apparatus 100.
The printer interface 110 and the scanner interface 112 perform data transmission and reception to and from the printer 111 and the scanner 113, respectively, according to programs executed by the CPU 108.
A panel interface 115 provides interface between the panel 114 and the devices of the communication apparatus 100. The panel interface 115 transfers commands input by the user via the panel 114 to the CPU 108. Further, the panel interface 115 causes the panel 114 to display contents indicative of commands from the CPU 108.
A bus 107 electrically connects between the devices of the communication apparatus 100. A control signal line 1a is a signal line for use in transmitting setting information and control signals from the CPU 108 between the MAC 104 and the PHY device 103.
A reception data line 1b is a signal line for use in transmitting packets received by the PHY device 103 from a communication line to the MAC 104.
A received packet reaches the PHY device 103 via the transformer 102. A maximum communication speed of physical communication with an external network apparatus is set in the PHY device 103. The packet received by the PHY device 103 is passed on by the MAC 104, and is then transferred through the bus 107, to be properly processed according to a program executed by the CPU 108.
The maximum communication speed set in the PHY device 103 is notified to the CPU 108 via the control signal line 1a. The maximum communication speed of the PHY device 103 can also be set by the CPU 108.
In the example in
The HUB 201 can be connected with a plurality of LAN cables, and is capable of exchanging and broadcasting packets. PHY devices 205, 207, 208, and 216 are provided to connect between the HUB 201 and the external network apparatuses, and each of the PHY devices 205, 207, 208, and 216 has functions equivalent to those of the PHY device 103 described with reference to
The PHY device 205 is connected to the communication apparatus 100, the PHY device 207 to the terminal apparatus 202, the PHY device 208 to the terminal apparatus 203, and the PHY device 216 to the network 217.
A switch LSI 210 has a function of transferring packets received by the respective PHY devices 205, 207, 208, and 216.
A CPU 211 controls the overall operation of the HUB 201. In particular, the CPU 211 instructs each of the PHY devices 205, 207, 208, and 216 and the switch LSI 210 e.g. to change settings.
A RAM 213 temporarily stores e.g. programs to be executed by the CPU 211. A ROM 212 stores settings, initial data, etc. of the HUB 201.
Note that the terminal apparatuses 202 and 203 and the communication apparatus 100 are allowed to request the CPU 211 to change settings of the PHY devices 205, 207, and 208, and the switch LSI 210.
Particularly when the HUB 201 has a program for changing the settings of the HUB 201 from a Web browser, the program is stored in the ROM 212. This program makes it possible to change the settings of the HUB 201 from the communication apparatus 100 or the terminal apparatus 202 or 203.
Specifically, the HUB 201 is configured such that settings of the PHY devices 205, 207, and 208, and the switch LSI 210 can be changed by instructions from the communication apparatus 100 and the terminal apparatuses 202 and 203 via respective Web browsers.
The terminal apparatuses 202 and 203 request the communication apparatus 100 to execute printing or scanning. Monitors 214 and 215 are connected to the respective terminal apparatuses 202 and 203 to display information from the apparatuses 202 and 203, respectively.
The software modules of the communication apparatus 100 shown in
Referring to
The PHY setting information storage section 302 stores information indicative of whether the PHY device 103 is set to a fixed mode or the auto-negotiation mode.
The communication mode comparison section 303 performs comparison between the information stored in the PHY communication mode storage section 301 and the information stored in the PHY setting information storage section 302.
In the present embodiment, the other-party apparatus IP address storage section 306 stores the IP address of the HUB 201. The IP address stored in the other-party apparatus IP address storage section 306 can be stored in the ROM 116 by user's operation on the panel 114. Further, when the IP address of the HUB 201 is input by the user from the panel 114, it is possible to store the input IP address in the other-party apparatus IP address storage section 306 via the user interface section 305 and the Web browser connection section 304.
The packet transmission and reception section 307 transmits and receives packets to and from the HUB 201. The Web browser connection section 304 decodes a program provided by the HUB 201 so as to change settings from the Web browser, and encodes commands input by the user from the Web browser.
The user interface section 305 displays, on the panel 114, information obtained through decoding by the Web browser connection section 304. Further, the user interface section 305 transmits a command received from the panel 114 to the Web browser connection section 304.
In the above-described software configuration of the communication apparatus 100, let it be assumed that the information stored by the PHY setting information storage section 302 indicates the auto-negotiation mode and the information stored by the PHY communication mode storage section 301 indicates the full-duplex communication method.
In this case, it is presumed that the PHY device 205 of the HUB 201 connected to the PHY device 103 is set to the auto-negotiation mode. Therefore, if the HUB 201 also supports EEE, it is possible to shift to the power saving mode.
Let it be assumed, on the other hand, that the information stored by the PHY setting information storage section 302 indicates the auto-negotiation mode and the information stored by the PHY communication mode storage section 301 indicates the half-duplex communication method.
In this case, it is presumed that the PHY device 205 of the HUB 201 connected to the PHY device 103 is set to the fixed mode or an auto-negotiation mode which disables operation in the full-duplex communication method.
In general, however, a PHY device is configured to be usable in the full-duplex communication method when set to the auto-negotiation mode. Therefore, in the present case, there is a high possibility that the PHY device 205 of the HUB 201 has been set to the fixed mode.
Therefore, in this case, the communication mode comparison section 303 detects a mismatch between the communication modes and notifies the Web browser connection section 304 of the communication mode mismatch. At this time, it is possible to execute one of two kinds of processing in the present embodiment, and therefore the two kinds of processing will be described hereafter.
In the first processing, when notified of the communication mode mismatch, the Web browser connection section 304 displays, on the panel 114, contents indicating that it is impossible to shift to the power saving mode, via the user interface section 305. The mismatch in settings of the communication mode between the instant apparatus and the other-party apparatus can be explicitly shown in the contents.
Further, when notified of the communication mode mismatch, the Web browser connection section 304 acquires the IP address of the HUB 201 from the other-party apparatus IP address storage section 306.
Thereafter, the Web browser connection section 304 acquires the program for changing settings of the HUB 201 from the Web browser, via the packet transmission and reception section 307, and displays a Web browser on the panel 114 via the user interface section 305.
By operating the Web browser displayed on the panel 114, the user can change the setting of the communication mode of the PHY device 205 of the HUB 201 to the auto-negotiation mode, whereafter the HUB 201 and the communication apparatus 100 can be connected to each other in the auto-negotiation mode.
Further, it is also possible to change the settings of the communication mode of the PHY device 207 and the PHY device 208, which are not connected to the communication apparatus 100, if it is possible to operate the HUB 201 via the Web browser. This makes it possible to perform operations for causing communication using the other PHY devices as well to shift to the power saving mode.
As described above, even when a communication mode mismatch occurs, it is possible to shift to the power saving mode by changing the communication mode to the auto-negotiation mode.
Next, the second processing will be described. In the second processing, when notified of the communication mode mismatch, the Web browser connection section 304 directly requests the CPU 211 of the HUB 201 to change of the communication mode without acquiring the program for changing the setting from the Web browser. More specifically, when it is determined that the other-party apparatus connected to the communication apparatus 100 is set to the fixed mode, the other-party apparatus is caused to operate in the auto-negotiation mode.
In this case, when a command for changing the communication mode of the PHY device 205 to the auto-negotiation mode is transmitted to the HUB 201 via the packet transmission and reception section 307, the CPU 211 of the HUB 201 changes the setting of the communication mode of the PHY device 205 to the auto-negotiation mode according to the command.
This makes it possible to automatically change the communication mode of the PHY device 205 of the HUB 201 to the auto-negotiation mode without requiring operation on the panel 114. Further, similarly to the first processing, it is also possible to change the communication modes of the respective PHY devices 207 and 208 which are not connected to the communication apparatus 100. This makes it possible to perform an operation for additionally causing the other PHY devices to shift to the power saving mode.
These two kinds of processing enable even a user unfamiliar with the operation of a LAN to perform setting change for causing a shift to the power saving mode.
Referring to
On the LCD 401, there are displayed the above-mentioned browser and the like. The user can input a command to the communication apparatus 100 by operating the selection button 402 according to contents displayed on the LCD 401.
When a touch panel is used for the LCD 401, the user can perform input operation by directly touching the LCD 401.
Note that in each of the terminal apparatuses 202 and 203 as well, by using the monitor 214 or 215, it is possible to display a browser and perform an input operation, similarly to the communication apparatus 100.
First, when the power of the communication apparatus 100 is turned on (step S501), the PHY device 103 establishes a network link with an other-party apparatus (step S502).
Then, the CPU 108 determines whether or not the EEE power saving mode is set (step S503). If the option “ON” has been selected by the user on the
If it is determined in the step S503 that the EEE power saving mode is not set (NO to the step S503), the present process is immediately terminated. In this case, the communication apparatus 100 does not operate in the EEE power saving mode.
On the other hand, if it is determined in the step S503 that the EEE power saving mode is set (YES to the step S503), the CPU 108 determines whether or not the PHY device 103 is set to the auto-negotiation mode (step S504). If the option “auto-negotiation” has been selected by the user on the setting screen in
If it is determined in the step S504 that the PHY device 103 is not set to the auto-negotiation mode (NO to the step S504), the CPU 108 determines in a step S505 whether or not to change the setting of the communication mode of the PHY device 103 to the auto-negotiation mode. In the step S505, the LCD 401 displays a setting screen shown in
On the other hand, when the user selects an option “don't change” in the message box 801, the CPU 108 determines that the communication mode of the PHY device 103 is not to be changed to the auto-negotiation mode, and the present process is terminated. In this case, the communication device 100 does not operate in the EEE power saving mode.
In the step S507, the CPU 108 determines whether or not the EEE power saving mode is active. In the present embodiment, even if the EEE power saving mode has been set in the communication device 100, the EEE power saving mode is not necessarily activated. For example, when the HUB 201 is not in the auto-negotiation mode, the EEE power saving mode is not activated. In view of this, in the present embodiment, it is determined in the step S507 whether or not the EEE power saving mode is active.
Next, the determination performed in the step S507 will be described in detail. As described hereinabove with reference to
In the step S508, the CPU 108 sets the PHY device 205 of the HUB 201 to the auto-negotiation mode. In the step S508, the CPU 108 transmits a command for setting the PHY device 205 to the auto-negotiation mode to the HUB 201, to thereby set the PHY device 205 to the auto-negotiation mode.
Note that a setting screen shown in
Although in the present embodiment, the user is caused to determine in the step S505 whether or not to change the setting of the PHY device 103 to the auto-negotiation mode, this is not limitative. Alternatively, when the answer to the question of the step S504 is negative (NO), the CPU 108 may skip the step S505 for determination and jump to the step S506, or in accordance with setting of the EEE power saving mode by the user on the
As described above, according to the present embodiment, in a case where the EEE power saving mode has been set but is not activated, it is possible to enable the EEE power saving mode by setting the communication apparatus 100 or the HUB 201 to the auto-negotiation mode.
Next, a second embodiment of the present invention will be described. The second embodiment is distinguished from the first embodiment in which the communication apparatus 100 transmits the command for setting the HUB 201 to the auto-negotiation mode to the HUB 201, in that the EEE power saving mode is realized without transmission of the command. The hardware configuration of a communication apparatus according to the present embodiment is the same as that of the communication apparatus according to the first embodiment. Therefore, corresponding elements are denoted by the same reference numerals as used in the first embodiment, and description thereof is omitted.
The software modules of the communication apparatus 100 shown in
The software configuration shown in
Each of the PHY communication mode storage section 301, the PHY setting information storage section 302, and the communication mode comparison section 303 performs the same processing as the corresponding section described with reference to
When the communication mode comparison section 303 detects a communication mode mismatch, the HUB setting change instruction section 604 issues a message for setting change of the PHY device 205 to the user interface section 305.
This communication mode mismatch is the same as described with reference to
The user interface section 305 displays, on the panel 114, the contents of the message for setting change issued by the HUB setting change instruction section 604.
Here, contents indicating a possibility that the PHY device 205 is set to the fixed mode and contents for prompting the user to change the setting of the PHY device 205 to the auto-negotiation mode or changing a LAN port for connection to the HUB 201 are displayed on the panel 114.
This makes it possible, when the communication mode comparison section 303 detects a communication mode mismatch, to prompt the user to change the setting of the PHY device 205.
If the CPU 108 determines in the step S507 that the EEE power saving mode is not active, the CPU 108 proceeds to a step S701. In the step S701, the CPU 108 notifies the user that the PHY device 205 is to be set to the auto-negotiation mode. The notification is realized by causing the LCD 401 to display a notification screen shown in
After notifying the user in the step S701 that the PHY device 205 is to be set to the auto-negotiation mode, the communication apparatus 100 waits until the user sets the HUB 201 to the auto-negotiation mode and the EEE power saving mode is activated (i.e. until the answer to the question of the step S507 becomes affirmative (YES)).
As described above, according to the present embodiment, when the EEE power saving mode has been set but is not activated, it is possible to notify the user that the communication apparatus 100 or the HUB 201 is to be set to the auto-negotiation mode.
Aspects of the present invention can also be realized by a computer of a system or apparatus (or devices such as a CPU or MPU) that reads out and executes a program recorded on a memory device to perform the functions of the above-described embodiments, and by a method, the steps of which are performed by a computer of a system or apparatus by, for example, reading out and executing a program recorded on a memory device to perform the functions of the above-described embodiments. For this purpose, the program is provided to the computer for example via a network or from a recording medium of various types serving as the memory device (e.g., computer-readable medium).
While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all modifications, equivalent structures and functions.
This application claims priority from Japanese Patent Application No. 2012-108431 filed May 10, 2012, which is hereby incorporated by reference herein in its entirety.
Number | Date | Country | Kind |
---|---|---|---|
2012-108431 | May 2012 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
6457055 | Hwong | Sep 2002 | B1 |
6791942 | Jin | Sep 2004 | B2 |
7577857 | Henderson | Aug 2009 | B1 |
7616587 | Lo et al. | Nov 2009 | B1 |
8199672 | Nachum et al. | Jun 2012 | B1 |
20050097378 | Hwang | May 2005 | A1 |
20090248890 | Shouno | Oct 2009 | A1 |
20100241880 | Wertheimer et al. | Sep 2010 | A1 |
20110047446 | Fukuyama | Feb 2011 | A1 |
20110191608 | Vetteth | Aug 2011 | A1 |
20110216343 | Shouno | Sep 2011 | A1 |
20120017105 | Thyni et al. | Jan 2012 | A1 |
Number | Date | Country |
---|---|---|
101547281 | Sep 2009 | CN |
102480301 | May 2012 | CN |
2003258939 | Sep 2003 | JP |
3945288 | Jul 2007 | JP |
2010141426 | Jun 2010 | JP |
2011044955 | Mar 2011 | JP |
1020040038918 | May 2004 | KR |
Entry |
---|
Wayback machine, entry for autonegotiation, Oct. 30, 2011, (web.archive.org/web/20111030164755/http://en.wikipedia.org/wiki/Autonegotiation), p. 1. |
European Search Report issued in European counterpart application No. EP13167217.2, dated Aug. 5, 2013. |
Notice on the First Office Action issued in corresponding CN201310170081.5, dated Feb. 28, 2015. English translation provided. |
Office Action issued in JP2012-108431, mailed Feb. 9, 2016. |
Office Action issued in KR10-2013-0049740, mailed Oct. 13, 2015. |
Notice of Allowance issued in Korean Appln. No. 10-2013-0049740 mailed Jun. 17, 2016. English translation provided. |
Number | Date | Country | |
---|---|---|---|
20130301449 A1 | Nov 2013 | US |