1. Technical Field
The present disclosure relates to electronic devices, and more particularly, to an electronic device and a storage medium capable of remotely controlling a number of terminals, and a remote control method adapted for the electronic device.
2. Description of Related Art
Different kinds of electronic devices may be controlled by different remote controls. For example, users may need to use a remote control of a set top box to control the set top box, and use a remote control of a television to control the television. It may be troublesome for users continue to switch remote controls for controlling different electronic devices.
Therefore, there is a need to provide a means to overcome the above-described shortcomings.
Many aspects of the present disclosure should be better understood with reference to the following drawings. The emphasis is placed upon clearly illustrating the principles of the present disclosure.
In the embodiment, the system 100 includes an obtaining module 101, an analyzing module 102, and a control module 103.
The obtaining module 101 obtains a remote signal from the remote control 3 received by the electronic device 1 via the first communication unit 400. The first communication unit 400 may be a wireless access port or a wired access port. The communication between the electronic device 1 and the remote control 3 through the first communication unit 400 may be carried out via any suitable network protocol such as Bluetooth®.
The analyzing module 102 decodes the obtained remote signal. The analyzing module 102 obtains the ID code of the currently controlled terminal 2 from the storage unit 200, and generates a control signal recognizable by the currently controlled terminal 2 according to the decoded remote signal and the ID code of the currently controlled terminal 2.
The control module 103 sends the control signal to the currently controlled terminal 2 via the second communication unit 500 to direct the currently controlled terminal 2 to take an action, for example, turn down the volume.
In the embodiment, the control signal generated by the analyzing module 102 is an infrared control signal, and the analyzing module 102 embeds the ID code of the currently controlled terminal 2 into the front of the decoded remote signal to obtain the infrared control signal. The second communication unit 500 is an infrared receiver, and the infrared control signal is sent to the currently controlled terminal 2 via the infrared receiver.
In the embodiment, the analyzing module 102 further analyzes the function of the remote signal. If the remote signal can be employed to control the electronic device 1 and the terminal 2, the control module 103 is further configured to control the electronic device 1 to take an action corresponding to the remote signal. For example, if the analyzing module 102 determines that the function of the remote signal is to turn off a device, the control module 103 transmits the control signal to turn off the terminal 2, and then turns off the electronic device 1.
With such configuration, the user can use the remote control 3 of the electronic device 1 to control a number of terminals 2.
In step S21, the obtaining module 101 obtains a remote signal from the remote control 3 received by the electronic device 1 via the first communication unit 400.
In step S22, the analyzing module 102 decodes the obtained remote signal.
In step S23, the analyzing module 102 analyzes the function of the remote signal and determines whether the remote signal is employed to control the electronic device 1 and/or the terminal 2. If the remote signal can be employed to control the electronic device 1 and the terminal 2, the procedure goes to step S24. If the remote signal is employed to control the electronic device 1, the procedure goes to step S25. If the remote signal is employed to control the terminal 2, the procedure goes to step S26.
In step S24, the control module 103 generates a control signal recognizable by the currently controlled terminal 2 and sends the control signal to the currently controlled terminal 2 via the second communication unit 500 to direct the currently controlled terminal 2 to take an actions, and further controls the electronic device 1 to take an action corresponding to the remote signal. More specifically, the analyzing module 102 obtains the ID code of the currently controlled terminal 2 from the storage unit 200, and generates the control signal recognizable by the currently controlled terminal 2 according to the decoded remote signal and the ID code of the currently controlled terminal 2.
In step S25, the control module 103 controls the electronic device 1 to take an action corresponding to the remote signal.
In step S26, the control module 103 generates a control signal recognizable by the currently controlled terminal 2 and sends the control signal to the currently controlled terminal 2 via the second communication unit 500 to direct the currently controlled terminal 2 to take an action.
It is believed that the present 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 exemplary embodiments.
Number | Date | Country | Kind |
---|---|---|---|
201310203943X | May 2013 | CN | national |