1. Technical Field
The present disclosure relates to an electronic device, and particularly to a method of obtaining a connection relationship between interfaces of the electronic device and peripheral devices connected to the electronic device.
2. Description of Related Art
An electronic device commonly has a plurality of interfaces to electrically connect with a plurality of peripheral devices. However, a user may forget a connection relationship between the interfaces and the peripheral devices, and may accidently disconnect the wrong peripheral device from the electronic device.
Therefore, there is room for improvement in the art.
Many aspects of the embodiments can be better understood with references 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 embodiments. Moreover, in the drawings, like reference numerals designate corresponding parts throughout several views.
The disclosure is illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean at least one.
Referring to
The first interface 310 and the second interface 320 each have an exclusive first indentifying code. The first peripheral device 100 and the second peripheral device 200 each have an exclusive second indentifying code. A one to one relationship exists between the first indentifying codes of the interface 310, 320 and the second indentifying codes of the peripheral devices 100, 200.
The electronic device 300 further includes a searching unit 330, an obtaining unit 340, a receiving unit 350, a comparing unit 360 and an output unit 370.
The searching unit 330 is used for generating a searching signal according to user's operations. The searching unit 330 may be a button arranged on the electronic device 300, and the searching signal is generated when the button is pressed. If the electronic device 300 has a displaying function, the searching unit 300 may be a menu item displayed by the electronic device 300, and the searching signal is generated when the menu item is selected.
The obtaining unit 330 is used for responding to the searching signal to obtain the first identifying codes of the interfaces 310, 320 by detecting parameters of the interfaces 310, 320.
The receiving unit 350 is used for responding to the searching signal to receive the second indentifying codes of the first peripheral device 100 and the second peripheral device 200. The receiving unit 350 may receive the second indentifying codes in a wired or wireless manner.
The comparing unit 360 is used for comparing the first identifying codes obtained by the obtaining unit 340 and the second indentifying codes received by the receiving unit 350 to determine a connection relationship between the interfaces 310, 320 and the peripheral devices 100, 200 according to the one to one relationship.
The output unit 370 is used for delivering the connection relationship between the interfaces 310, 320 and the peripheral devices 100, 200. The output unit 370 can deliver the connection relationship via at least one medium of data images and/or audible sounds. Thereby, the connection relationship can be known by a user. With these data images and/or sounds, the user will not disconnect the wrong peripheral device from the electronic device.
The electronic device 300 may include display screens for displaying the connection relationship. The electronic device 300 may also include speakers for playing audible sounds describing the connection relationship. Typically, the audible sounds are in the form of human speech.
Referring to
Referring to
In step S801, determine whether a searching signal is generated. If the searching signal is generated, step S803 is implemented. If the searching signal is not generated, step S801 is implemented again. In the embodiment, the electronic device has a button, and the searching signal is generated when the button is pressed.
In step S803, obtaining first identifying codes of the interfaces. Each interface of the electronic device has an exclusive first identifying code. The first identifying codes may be obtained by detecting parameters of the interfaces. The first identifying codes also may be stored in a memory of the electronic device at the time of manufacturing, and the first identifying codes may be obtained by accessing the memory of the electronic device.
In step S805, receiving second indentifying codes of the peripheral devices. Each peripheral device has an exclusive first identifying code. A one to one relationship exists between the first indentifying codes of the interfaces and the second indentifying codes of the peripheral devices.
In step S807, comparing the first identifying codes with the second indentifying codes to determine a connection relationship between the interfaces and the peripheral devices according to the one to one relationship.
In step S809, delivering the connection relationship between the interfaces and the peripheral devices. The connection relationship can be delivered via at least one medium of data images and/or audible sounds. Thereby, the connection relationship can be known by a user. With these data images and/or sounds, the user will not accidently disconnect the wrong peripheral device from the electronic device.
It is understood that, even though information and advantages of the present embodiments have been set forth in the foregoing description, together with details of the structures and functions of the present embodiments, the disclosure is illustrative only; and that changes may be made in detail, especially in matters of shape, size, and arrangement of parts within the principles of the present embodiments to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Number | Date | Country | Kind |
---|---|---|---|
200910311322.7 | Dec 2009 | CN | national |