1. Field of the Invention
The present invention relates to method and related device, and more particularly, to a method of monitoring connection status of an electronic device and related electronic device.
2. Description of the Prior Art
USB (Universal Serial Bus) is a specification to establish communication between peripheral devices and a computer system, and is intended to replace many varieties of serial and parallel ports. USB can connect various peripheral devices such as mice, keyboards, digital cameras, printers, personal media players, flash drives, and external hard drives, and supports plug and play (PNP) function. As a result, for many of those devices, USB has become the standard connection method.
A dock device is developed based on the USB technique, which provides additional connectivity for other peripheral devices, and requires only one USB port from a computer device (e.g. a notebook or a personal computer) to connect with. This can be especially helpful for the computer device with a limited number of USB port. For dock device implementation, the dock device provides multiple ports with different interfaces, such as Digital Visual Interface (DVI) port, USB port, Personal System/2 (PS/2) port, IEEE 1394 port, phone jack, network port, etc for those peripheral devices plugged in. Therefore, when the dock device is connected to the computer device, the peripheral devices attached to the dock device can be accessed from the dock device without having to plug each of the peripheral devices into the computer device, thereby facilitating usage of convenience.
Generally, the dock device may include some indicators for indicating statuses of the dock device. U.S. Pat. No. 7,532,461 describes a dock device, which is coupled to a computer device and includes a plurality of ports, a plurality of port status indicators corresponding to the plurality of ports, and a sense circuit. In this patent, the ports are used for connecting with peripheral devices such as mouse, network, printer, keyboard, display unit, etc. The sense circuit is coupled to the port status indicators, and is used for determining whether each of the ports is in active/inactive status by sensing a signal on a bus used for communicating the peripheral device and the computer device, thereby driving the corresponding port status indicator to display status (e.g. active/inactive) of the port according to the signal.
As can be seen, the conventional dock device is capable of indicating work status (e.g. the active/inactive status) of the port by directly detecting the signal transmitted between the computer device and the peripheral device. However, it requires a complex circuit to determine if the port is in active for data transmission by detecting the signal on the bus. In addition, instead of knowing the work status of the ports on the dock device, connection status of the ports with the peripheral devices shall be known in advance. Without knowing connection status of the ports, a user cannot confirm whether the peripheral device is successfully connected to the dock device or not. For example, the user may perform plug in or plug out action for the peripheral devices, or forget to turn on the power of the peripheral devices, and thereby has to check the connection condition of physical wires between each of the dock ports and the peripheral device every time, causing inconvenient usage and a waste of time.
It is thereof an objective of the present invention to provide an electronic device capable of monitoring connection status of external devices of the electronic device and method thereof.
The present invention discloses a method of monitoring connection status for a dock device coupled to the computer device and comprising a plurality of ports. The method comprises detecting whether each of the plurality of ports is connected to a peripheral device according to an interface feature of each of the plurality of ports, and when one of the plurality of ports is detected to be connected to the peripheral device, reporting a connection status of the port to the computer device.
The present invention further discloses a dock device coupled to a computer device and capable of monitoring connection status. The dock device comprises a plurality of ports for connecting to a plurality of peripheral devices, and a control unit for detecting whether each of the plurality of ports is connected to one of the plurality of peripheral devices according to an interface feature of each of the plurality of ports, and when the port is detected to be connected to the peripheral device, reporting a connection status of the port to the computer device.
The present invention further discloses a method of monitoring connection status of a dock device for a computer device, where the dock device comprises a plurality of ports each capable of connecting to a peripheral device. The method comprises determining whether a connection status related to one of the plurality of ports is reported from the dock device, and displaying a splash screen with the connection status when the connection statuses is reported from the dock device.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Please refer to
For an operation between the dock device 20 and the computer device 10, when the dock device 20 is connected to the computer device 10 through the USB port 170, the control unit 200 and the ports Port1-Port8 are powered via the USB bus. After the control unit 200 is powered, the control unit 200 is enumerated to the computer device 10, and sends dock information to the computer device 10. The enumeration process comprises a device description, such as Vendor identification (VID)/Product identification (PDI) of the dock device 20 required by the computer device 10. In an example, the dock information is a dock picture, a physical layout, or metadata. After requiring necessary information from the dock device 20, the computer device 10 can communicate with the dock device 20. Therefore, when a peripheral device (e.g. a mouse) is plugged into the one of the ports Port1-Port8, the computer device 10 can access the peripheral device through the dock device 20.
Please refer to
Step 300: Start.
Step 302: Detect whether each of the ports Port1-Port8 is connected to a peripheral device according to an interface feature of each of the ports Port1-Port8.
Step 304: When one of the ports Port1-Port8 is detected to be connected to the peripheral device, report a connection status of the port to a computer device.
Step 306: End.
According to the process 30, the dock device 20 detects if any of the ports Port1-Port8 is connected to a peripheral device according to the interface feature of the port. If one of the ports Port1-Port8 is detected to be connected, the dock device 20 then reports the connection status of the port to the computer device 10. Preferably, the interface feature includes a detecting pin, an interface controller, an interface bus, and a mechanical switch.
Based on the process 30, the ways of detecting the connection statuses of the ports are different according to the interfaces of the ports Port1-Port8. Please refer to
Please refer to
Step 600: Start.
Step 602: Connect the dock device 50 to a computer device.
Step 604: Enumerate the dock device 50 to the computer device.
Step 606: Detect a voltage level of each of the detecting pins Pin1-Pin4 corresponding to the USB ports P1-P4.
Step 608: When the voltage level of the detecting pin is lowered, turn on one of the LEDs LED1-LED4 corresponding to the detected port.
Step 610: Report a connection status of the detected port to the computer device.
Step 612: End.
According to the process 60, firstly, the dock device 50 is connected to a computer device, which can be the computer device 10, and thereby the ports P1-P4 and the USB HID 500 are powered. After that, the USB HID 500 starts the abovementioned enumeration process and sends information of the dock device 50 to the computer device 10. Subsequently, the detecting unit 502 of the USB HID 500 detects the voltage level of each of the detecting pins P1-P4. The detecting pins Pin1-Pin4 installed on the ports P1-P4 have their voltage levels pulled high when no peripheral device is plugged in. Once one of the detecting pins Pin1-Pin4 has the voltage level pulled low to ground, this means a peripheral device is plugged in. That is, the physical position of the detecting pins Pin1-Pin4 are changed and thereby contacted to a metal shielding of the ports P1-P4. The USB HID 500 then determines that the port is connected to the peripheral device according to the voltage level change, and reports the connection status of the port to the computer device 10. In addition, the USB HID 500 turns on the LED of the connected port to indicate a user that the port is in the connection status. On the other hand, if no voltage level change occurs on any of the detecting pins Pin1-Pin4, the USB HID 500 determines that the port is not connected to any peripheral devices, and the detecting unit 502 of the USB HID 500 keeps detecting the voltage change of the detecting pins P1-P4.
Please refer to
Step 700: Start.
Step 702: Check whether a specific VID/PID of the control unit 200 is provided. If yes, go to step 704; otherwise, continue step 702.
Step 704: Obtain the dock information from the control unit 200.
Step 706: Determine whether a connection status is reported from the control unit 200. If yes, go to step 708; otherwise, continue step 706.
Step 708: Display a splash screen with the connection status when the connection statuses is reported.
Step 710: Check whether the splash screen is instructed to close or jump out for a period of time. If yes, go to step 712; otherwise, continue step 710.
Step 712: Close the splash screen when the splash screen is instructed to close or jump out.
Step 714: End.
According to the process 70, the computer device 10 determines whether the dock device 20 is docked on the computer device by checking the specific VID/PID associated with the dock device 20. If no specific VID/PID is found, the computer device 10 determines that no dock device is docked on, and keeps checking the existence of the dock device 20. If the specific VID/PID associated with the dock device 20 exists, the computer device 10 commands the dock device 20 to send the dock information, such as dock picture, layout, or metadata. After that, the computer device 10 checks whether a connection status related to one of the ports on the dock device 20 is reported. If no connection status is reported, the computer device 10 keeps checking whether the dock device 20 sends the connection status. On the other hand, if the computer device 10 receives the connection status from the dock device 20, the computer device 10 then displays a splash screen to indicate connection statuses of the dock device 20 on a monitor according to the connection statuses. Preferably, the splash screen includes a layout which indicates a physical position relationship of the port and what kind of the peripheral device is connected to the port on each physical position.
In conclusion, the exemplary methods and means are provided to detect connection statuses of different ports on the dock device. In addition, the examples reveal ways of monitoring connection status of the dock device in the hardware (e.g. the status indicator) and software (e.g. the splash screen) aspect. As a result, the user can know the connection status of the ports with information on screen instead of checking the ports of the dock device one by one, thereby increasing usage of convenience.
Those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention.