1. Technical Field
The disclosure generally relates to electronic devices such as servers and computers, and particularly to an electronic device which has a multifunctional network interface port which can be used for both normal network communication and for debugging or updating the software.
2. Description of Related Art
When a computer microchip or other components in an electronic device fails or malfunctions, the device may be rendered unusable or the microchip or component must be replaced. Alternatively, the microchip could be debugged or have its software updated. A common method to debug or update the software of the microchip is to connect the microchip to a serial interface, and then an external debugging host is connected to the serial interface. Therefore, the debugging host can communicate with the microchip via the serial interface, and can debug or update the software of the microchip. However, nowadays, to obtain miniaturized volumes and compressed structures, many electronic devices do not provide an external serial interface port for connecting to a debugging host. Thus, it is inconvenient to debug or software-update the microchip although the electronic devices may have the serial interface mounted inside.
Therefore, there is room for improvement within the art.
Many aspects of the present disclosure can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the disclosure.
Referring to
The RJ-45 port 10 includes eight pins 1-8, and the definition of the eight pins 1-8 is shown below:
Pins 1, 2, 3, 6 are connected to the processing unit 20. Pin 4 is grounded. Pin 5 is connected to a power supply VCC, such as 5 volt (V). Pins 7, 8 are free. The RJ-45 port 10 can be connected to an external network for the network card 30 or connected to a debugging host (not shown) for the microchip 50.
The processing unit 20 includes a group of input pins IN1-IN4, a group of first output pins OUT1-OUT4 and a group of second output pins OUT5-OUT6. The input pins IN1-IN4 are respectively connected to the pins 1, 2, 3, and 6, thereby obtaining signals transmitted from the RJ-45 port 10. The first output pins OUT1-OUT4 are connected to the network card 30. The second output pins OUT5-OUT6 are connected to the microchip 50 by the serial interface 40. When the RJ-45 port 10 is connected to the external network, the input pins IN1-IN4 are connected to the first output pins OUT1-OUT4. When the RJ-45 port 10 is connected to the debugging host, the input pins IN1-IN4 are switched to the second output pins OUT5-OUT6.
The processing unit 20 includes a base voltage VB preset therein, such as 3V. The processing unit 20 obtains an averaged voltage V corresponding to the signals transmitted from the RJ-45 port 10. The processing unit 20 compares the averaged voltage of signals with the base voltage and determines whether the RJ-45 port 10 is connected to the external network or the debugging host according to the comparison.
In one embodiment, if the voltage V meets the following formula: |V|<3V, the RJ-45 port 10 is connected to the external network. If the voltage V meets the following formula: |V|>3V, the RJ-45 port 10 is connected to the debugging host.
When the RJ-45 port 10 is connected to the external network, the network card 30 is connected to the RJ-45 port 10 by the processing unit 20, and can communicate with the external network.
The serial interface 40 includes a data transmitting pin TXD and a data receiving pin RXD respectively connected to the second output pins OUT5-OUT6. The serial interface 40 is also connected to the microchip 50. When the RJ-45 port 10 is connected to the debugging host, the microchip 50 is connected to the RJ-45 port 10 by the processing unit 20 and the serial interface 40. Thus, the microchip 50 can be debugged or software-updated.
In other embodiments, if the external debugging host includes a ground signal and a power signal by itself, pins 4 and 5 can be not used.
Because the RJ-45 port 10 can be used for both normal network communication and for debugging or updating the software, the need for an external serial interface port dedicated to such processes is eliminated, thus reducing costs of the electronic device as well as saving space in the device in aid of further miniaturization if desired.
It is believed that the exemplary embodiments and their advantages will be understood from the foregoing description, and it will be apparent that various changes may be made thereto without departing from the spirit and scope of the disclosure or sacrificing all of its material advantages, the examples hereinbefore described merely being preferred or exemplary embodiments of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
2011 1 0147632 | Jun 2011 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
6584590 | Bean | Jun 2003 | B1 |
7237049 | Kang et al. | Jun 2007 | B2 |
7987308 | Jo et al. | Jul 2011 | B2 |
8112469 | Gershman | Feb 2012 | B1 |
20030046472 | Morrow | Mar 2003 | A1 |
20030120845 | Chou | Jun 2003 | A1 |
20080043632 | Tripathi et al. | Feb 2008 | A1 |
20080080543 | Hickox et al. | Apr 2008 | A1 |
20090164625 | Roll et al. | Jun 2009 | A1 |
20100238911 | Michalson et al. | Sep 2010 | A1 |
Number | Date | Country | |
---|---|---|---|
20120307438 A1 | Dec 2012 | US |