The remote control device 100 automatically switches between the first media renderer 110 and the second media renderer 120. In this embodiment, the remote control device 100 is a control point, and includes a first wireless local area network (WLAN) module 101, a first wireless personal area network (WPAN) module 102, a storage module 103, and a starting module 104.
The first media renderer 110 is located in a first region 30, and includes a second WLAN module 1100 and a second WPAN module 1102. In this embodiment, the first region 30 is a living room.
The second media renderer 120 is located in a second region 40, and includes a third WLAN module 1200 and a third WPAN module 1202. In this embodiment, the second region 40 is a bedroom.
The media server 130 includes a fourth WLAN module 1300.
The first WPAN module 101 may communicate with the second WLAN module 1100, the third WLAN module 1200, and the fourth WLAN module 1300 via an Institute of Electrical and Electronics Engineers (IEEE) 802.11 protocol, and the first WPAN module 102 may communicate with the second WPAN module 1102 and the third WPAN module 1202 via a Zigbee protocol or a Bluetooth protocol.
As the remote control device 100 is located in a same room as the first media renderer 110 or the second media renderer 120, the remote control device 100 may control the first media renderer 110 or the second media renderer 120 via the Zigbee protocol or the Bluetooth protocol, as the remote control device 100 is located in a different room from the first media renderer 110 or the second media renderer 120, the remote control device 100 may control the first media renderer 110 or the second media renderer 120 via the IEEE 802.11 protocol.
The storage module 103 is connected to the first WPAN module 101 and the first WPAN module 102 for storing information. In this embodiment, the information includes basic information of the first media renderer 110 and the second media renderer 120, along with paused information of the first media renderer 110 or the second media renderer 120 when the remote control device 100 roams between the first region 30 and the second region 40. The basic information is listed in a mapping table below, and includes a unique device name (UDN) based on a universally-unique identifier (UUID) field, a device name field, and a MAC address field.
The starting module 104 is connected to the first WLAN module 101 and the first WPAN module 102 for switching on or off the first WLAN module 101 and the first WPAN module 102.
The first WPAN module 101 includes a first receiving module 1010, a determining module 1012, and a first switching module 1014. The first WLAN module 102 includes a second receiving module 1020, a parsing module 1022, an inquiring module 1024, a second switching module 1026, and a control module 1028.
The first receiving module 1010 receives a packet from the first media renderer 110 or the second media renderer 120, and obtains media information from the packet. In this embodiment, the media information includes paused information of the first media renderer 110 or the second media renderer 120.
The determining module 1012 determines whether the remote control device 100 roams according to the packet. In this embodiment, the determining module 1012 compares a signal strength of the packet with a preset signal strength, to determine whether the remote control device 100 roams. For example, if the signal strength of the packet from the first media renderer 110 is lower than the preset signal strength, it indicates that the remote control device 100 is leaving or has left its original region. If the signal strength of the packet from the second media renderer 120 is greater than the preset signal strength, it indicates that the remote control device 100 is entering or has entered the second region.
The first switching module 1014 transmits a short distance switch-on instruction or a short distance switch-off instruction.
The second receiving module 1020 receives a packet from the first media renderer 110 or the second media render 120, and obtains media information from the packet. In this embodiment, the media information includes address information of the first media renderer 110 or the second media renderer 120, and the address information is a medium access control (MAC) address
The parsing module 1022 parses the media information and stores the media information into the storage module 103.
The inquiring module 1024 determines a media renderer transmitting the packet according to the media information. In this embodiment, the inquiring module 1024 queries the mapping table in the storage module 103 for a name of the media renderer transmitting the packet according to the UDN thereof, which is indicated in a header field of the packet.
The second switching module 1026 transmits a long-distance switch-on instruction or a short-distance switch-off instruction.
The control module 1028 controls the second media renderer 120 to play from the paused position according to the paused information. For example, if the remote control device 100 roams from the first region 30 to the second region 40, the control module 1028 controls the second media renderer 120 to play from the paused position.
In step S301, the remote control device 100 receives a packet from the first media renderer 110.
In step S303, the remote control device 100 determines whether the remote control device 100 roams according to the packet. In this embodiment, the remote control device 100 determines whether the remote control device 100 roams from the first region 30 to the second region 40. If the remote control device 100 roams from the first region 30 to the second region 40, the process proceeds to step S305, otherwise the process returns to step S301.
In step S305, the remote control device 100 stores paused information of the first media renderer 110 into the storage module 103.
In step S307, the remote control device 100 controls the second media renderer 110 to play from the paused position according to the paused information.
In step S401, the remote control device 100 receives a packet from the first media renderer 110.
In step S403, the remote control device 100 determines whether the remote control device 100 leaves an original region according to the packet. In this embodiment, the remote control device 100 determines whether the remote control device 100 leaves the first region 30 by comparing a signal strength of the packet with a preset signal strength. If the signal strength of the packet is less than the preset signal strength, that Indicates the remote control device 100 is leaving or has left the first region 30, and the process proceeds to step S405, otherwise the process returns step S301.
In step S405, the remote control module 100 stores paused information of the first media renderer 110.
In step S407, the remote control module 100 determines whether the remote control module 100 enters the second region 40. If the remote control module 100 enters the second region 40, the process proceeds to step S409, otherwise the process proceeds to step S 411.
In step S409, the remote control module 100 controls the second media renderer 120 to play from the paused position according to the paused information.
In step S411, the remote control module 100 receives a following packet from the second media renderer 120.
In step S501, the remote device 100 receives a packet from the first media renderer 110.
In step S503, the remote device 100 determines whether a signal strength of the packet is less than a preset signal strength. If the signal strength of the packet is less than the preset signal strength, the process proceeds to step S505, otherwise the step returns to step S501.
In step S505, the remote control module 100 stores paused information of the first media renderer 110.
In step S507, the remote control module 100 determines whether to switch off the first media renderer 110. If the remote control module 100 determines to switch off the first media renderer 110, the process proceeds to step S509, otherwise the process proceeds to step S513.
In step S509, the remote control module 100 pauses the first media renderer 110.
In step S511, the remote control module 100 switches off the first media renderer 110.
In step S513, the remote control module 100 receives a following packet from the first media renderer 110.
In step S515, the remote control module 100 determines whether a signal strength of the packet is greater than the preset signal strength. If the signal strength of the packet is greater than the preset signal strength, the process proceeds to step S517, otherwise the step returns to step S513.
In step S517, the remote control module 100 determines a media renderer transmitting the packet.
In step S519, the remote control module 100 controls the media renderer transmitting the packet to play from the paused position according to the paused information.
In step S5170, the remote control module 100 parses a header of the packet, to determine a MAC address of the media renderer transmitting the packet. In this embodiment, a determined MAC address is 0x0000BD1268ED1C12.
In step S5172, the remote control module 100 queries a mapping table stored therein for a corresponding media renderer transmitting the packet according to the determined MAC address. In this embodiment, the corresponding media renderer transmitting the packet is the second media renderer 120.
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 invention or sacrificing all of its material advantages, the examples hereinbefore described merely being preferred or exemplary embodiments.
Number | Date | Country | Kind |
---|---|---|---|
200610062377.5 | Aug 2006 | CN | national |