









技术领域technical field
本发明涉及一种测试系统及方法,尤其涉及一种电子装置控制系统及方法。The invention relates to a test system and method, in particular to an electronic device control system and method.
背景技术Background technique
目前的手持设备(如智能型手机)可以用作控制其它电子装置(如电视机和DVD播放机等)的遥控器,但用户必须手动在手持设备的装置清单中选择需要控制的电子装置,并通过操作该手持设备上的不同按键(包括实体按键或虚拟按键),对所选择的电子装置下达对应的操作指令。如果需要操作另一电子装置,则需再次从装置清单中选择。如此繁琐的操作步骤会给用户使用带来诸多不便。Current handheld devices (such as smart phones) can be used as remote controls to control other electronic devices (such as televisions and DVD players, etc.), but users must manually select the electronic device to be controlled in the device list of the handheld device, and By operating different buttons (including physical buttons or virtual buttons) on the handheld device, a corresponding operation instruction is given to the selected electronic device. If another electronic device needs to be operated, it needs to be selected again from the device list. Such cumbersome operation steps will bring a lot of inconvenience to users.
发明内容Contents of the invention
鉴于以上内容,有必要提供一种电子装置控制系统,其可通过侦测手持设备的指示方向自动获取当前环境中需要控制的电子装置,并根据该手持设备的移动状态控制该电子装置执行相应功能。In view of the above, it is necessary to provide an electronic device control system, which can automatically obtain the electronic device that needs to be controlled in the current environment by detecting the direction indicated by the handheld device, and control the electronic device to perform corresponding functions according to the mobile state of the handheld device .
鉴于以上内容,还有必要提供一种电子装置控制方法,其可通过侦测手持设备的指示方向自动获取当前环境中需要控制的电子装置,并根据该手持设备的移动状态控制该电子装置执行相应功能。In view of the above, it is also necessary to provide an electronic device control method, which can automatically obtain the electronic device that needs to be controlled in the current environment by detecting the direction indicated by the handheld device, and control the electronic device to perform corresponding operations according to the movement state of the handheld device. Function.
一种电子装置控制系统,应用于手持设备中,该系统包括:An electronic device control system applied to a handheld device, the system includes:
第一搜寻模块,用于搜寻当前环境中的电子装置;a first search module, configured to search for electronic devices in the current environment;
第二搜寻模块,用于从该手持设备的存储器中获取预先设置的所有环境的设定档案,并从获取的设定档案中搜寻包含搜寻到的电子装置数量最多或比例最高的设定档案;The second search module is used to obtain the preset configuration files of all environments from the memory of the handheld device, and search for the configuration file containing the largest number or the highest proportion of electronic devices found in the obtained configuration files;
侦测模块,用于当手持设备指向当前环境中的一个电子装置时,获取该手持设备的电子罗盘侦测到的该手持设备的指示方向;The detection module is used to obtain the indicated direction of the handheld device detected by the electronic compass of the handheld device when the handheld device points to an electronic device in the current environment;
比对模块,用于将该手持设备的指示方向与该搜寻到的设定档案记录的每个电子装置的摆设方向进行比对,确定摆设方向与该手持设备指示方向匹配的电子装置;A comparison module, configured to compare the indicated direction of the handheld device with the arrangement direction of each electronic device recorded in the searched setting file, and determine the electronic device whose arrangement direction matches the indicated direction of the handheld device;
控制模块,用于控制该匹配电子装置执行对应功能。The control module is used to control the matching electronic device to perform corresponding functions.
一种电子装置控制方法,运行于手持设备中,该方法包括如下步骤:A method for controlling an electronic device, running in a handheld device, the method includes the following steps:
第一搜寻步骤,搜寻当前环境中的电子装置;The first search step is to search for electronic devices in the current environment;
第二搜寻步骤,从该手持设备的存储器中获取预先设置的所有环境的设定档案,并从获取的设定档案中搜寻包含搜寻到的电子装置数量最多或比例最高的设定档案;The second search step is to obtain the preset configuration files of all environments from the memory of the handheld device, and search for the configuration file containing the largest number or the highest proportion of electronic devices found in the obtained configuration files;
侦测步骤,当手持设备指向当前环境中的一个电子装置时,获取该手持设备的电子罗盘侦测到的该手持设备的指示方向;A detection step, when the handheld device points to an electronic device in the current environment, obtain the indicated direction of the handheld device detected by the electronic compass of the handheld device;
比对步骤,将该手持设备的指示方向与该搜寻到的设定档案记录的每个电子装置的摆设方向进行比对,确定摆设方向与该手持设备指示方向匹配的电子装置;The comparison step is to compare the indicated direction of the handheld device with the arrangement direction of each electronic device recorded in the searched setting file, and determine the electronic device whose arrangement direction matches the indicated direction of the handheld device;
控制步骤,控制该匹配电子装置执行对应功能。The control step is to control the matching electronic device to execute corresponding functions.
前述方法可以由电子设备(如手机)执行,其中该电子设备具有附带了图形用户界面(GUI)的显示屏幕、一个或多个处理器、存储器以及保存在存储器中用于执行这些方法的一个或多个模块、程序或指令集。在某些实施例中,该电子设备提供了包括无线通信在内的多种功能。The aforementioned methods can be performed by an electronic device (such as a mobile phone), wherein the electronic device has a display screen with a graphical user interface (GUI), one or more processors, memory, and one or more programs stored in the memory for performing these methods. Multiple modules, programs or sets of instructions. In some embodiments, the electronic device provides multiple functions including wireless communication.
用于执行前述方法的指令可以包含在被配置成由一个或多个处理器执行的计算机程序产品中。Instructions for performing the foregoing methods may be embodied in a computer program product configured to be executed by one or more processors.
相较于现有技术,所述的电子装置控制系统及方法,其可通过侦测手持设备的指示方向自动获取当前环境中需要控制的电子装置,并根据该手持设备的移动状态控制该电子装置执行相应功能,从而减少了用户在软件界面上的操作,方便用户使用手持设备上的遥控器功能。Compared with the prior art, the electronic device control system and method described above can automatically obtain the electronic device that needs to be controlled in the current environment by detecting the indicated direction of the handheld device, and control the electronic device according to the movement state of the handheld device Execute the corresponding function, thereby reducing the user's operations on the software interface, and making it convenient for the user to use the remote control function on the handheld device.
附图说明Description of drawings
图1是本发明手持设备的网络架构图。Fig. 1 is a network architecture diagram of the handheld device of the present invention.
图2是本发明手持设备的结构示意图。Fig. 2 is a schematic structural diagram of the handheld device of the present invention.
图3是本发明电子装置控制系统的功能模块图。FIG. 3 is a functional block diagram of the electronic device control system of the present invention.
图4是本发明电子装置控制方法的较佳实施例的流程图。FIG. 4 is a flow chart of a preferred embodiment of the electronic device control method of the present invention.
图5是手持设备指示方向的示意图。Fig. 5 is a schematic diagram of a handheld device indicating a direction.
图6A至图6C是手持设备不同移动状态的示意图。6A to 6C are schematic diagrams of different moving states of the handheld device.
图7是设置电子装置摆设方向的示意图。FIG. 7 is a schematic diagram of setting an arrangement direction of an electronic device.
图8A和图8B是搜寻与手持设备指示方向匹配的电子装置示意图。8A and 8B are schematic diagrams of searching for an electronic device that matches the direction indicated by the handheld device.
主要元件符号说明Description of main component symbols
如下具体实施方式将结合上述附图进一步说明本发明。The following specific embodiments will further illustrate the present invention in conjunction with the above-mentioned drawings.
具体实施方式Detailed ways
如图1所示,是本发明手持设备的网络架构图。在本实施例中,所述手持设备20通过网络30与某环境中的多台电子装置10连接。所述手持设备20可以是手机和PDA(Personal Digital Assistant,个人数字助理)等。所述网络30为无线网络(如WiFi),所述电子装置10为遵循DLNA(Digital Living Network Alliance,数字生活网络联盟)协议的各种家用电器,包括但不限于,数字媒体服务器(Digital Media Server,DMS)、数字媒体渲染器(Digital MediaRenderer,DMR)和数字媒体播放器(Digital Media Player,DMP)等。所述环境可以是某个办公室或家里的客厅等地方。As shown in FIG. 1 , it is a network architecture diagram of the handheld device of the present invention. In this embodiment, the
如图2所示,是本发明手持设备20的结构示意图。在本实施例中,所述手持设备20包括通过数据总线相连的显示设备21、电子罗盘(Digital Compass)22、加速度计(Accelerometer)23、存储器24、电子装置控制系统25和处理器26。As shown in FIG. 2 , it is a schematic structural diagram of the
其中,所述电子罗盘22用于侦测手持设备20的指示方向。参阅图5所示,该手持设备20的指示方向可以是北方(以0°表示)、东方(以90°表示)、南方(以180°表示)及西方(以270°表示)。在本实施例中,所述手持设备20的指示方向可以用度数来表示,例如,45度代表北偏东45度,90度代表正东方,270度代表正西方等。Wherein, the
所述加速度计23用于侦测手持设备20在X轴、Y轴、Z轴方向的加速度值,根据侦测到的加速度值获取该手持设备20在不同方向的倾斜度,从而判断出该手持设备20的移动状态。参阅图6A所示,是手持设备20在水平状态下的移动示意图。参阅图6B所示,是手持设备20在垂直状态下左右移动的示意图。参阅图6C所示,是手持设备20在垂直状态下上下移动的示意图。The
所述电子装置控制系统25用于通过侦测手持设备20的指示方向自动获取当前环境中需要控制的电子装置10,并根据该手持设备20的移动状态控制该电子装置10执行相应功能,具体过程以下描述。The electronic
所述存储器24用于存储所述电子装置控制系统25的程序代码等资料。所述显示设备21用作手持设备20的输出设备。例如,所述显示设备21可以是电容式触摸屏或电阻式触摸屏。The
在本实施例中,所述电子装置控制系统25可以被分割成一个或多个模块,所述一个或多个模块被存储在所述存储器24中并被配置成由一个或多个处理器(本实施例为一个处理器26)执行,以完成本发明。例如,参阅图3所示,所述电子装置控制系统25被分割成设置模块201、第一搜寻模块202、第二搜寻模块203、侦测模块204、比对模块205和控制模块206。本发明所称的模块是完成一特定功能的程序段,比程序更适合于描述软件在手持设备20中的执行过程,关于各模块的功能将在图4的流程图中具体描述。In this embodiment, the electronic
如图4所示,是本发明电子装置控制方法的较佳实施例的流程图。在开始图4的流程之前,需要预先通过设置模块201设置不同环境中的电子装置10摆设方向,并将每个环境中的电子装置10的识别码和摆设方向存储至一个对应的设定档案中,然后将不同环境对应的设定档案保存到存储器24中。在本实施例中,所述设定档案的设置是在手持设备20处于水平状态下进行的。可以理解,当手持设备20与水平面的夹角小于一个预设的阀值(如30度)时,即可认为该手持设备20处于水平状态(参阅图6A所示)。As shown in FIG. 4 , it is a flow chart of a preferred embodiment of the electronic device control method of the present invention. Before starting the process of FIG. 4 , it is necessary to pre-set the arrangement direction of the
具体步骤为:The specific steps are:
(1)设置模块201搜寻当前环境中的电子装置10。(1) The setting module 201 searches for
(2)用户移动至操作时所处的位置。为了以后方便操作该电子装置10,用户设置该电子装置10摆设方向时的位置应当尽量与以后要进行操作时的位置一致。(2) The user moves to the position where the operation is performed. In order to facilitate the operation of the
(3)用户面向需要设置的电子装置10,设置模块201记录电子罗盘22侦测到的该手持设备20的指示方向,该手持设备20的指示方向作为该电子装置10的摆设方向。参阅图7所示,手持设备20的指示方向为45度,则设置电子装置10的摆设方向同样为45度。(3) The user faces the
(4)重复步骤(3)直到当前环境中的所有搜寻到的电子装置10的摆设方向记录完毕,然后,设置模块201将当前环境中的每个电子装置10的识别码和摆设方向存储至一个对应的设定档案中,并将该设定档案保存到存储器24中。(4) Repeat step (3) until the placement directions of all searched
其中,电子装置10的识别码可以从该电子装置10存储器中自动读取,如全球唯一标识符(Globally Unique Identifier,GUID),也可以通过设置模块201由用户手动进行设置。Wherein, the identification code of the
步骤S1,第一搜寻模块202搜寻当前环境中的电子装置10。In step S1, the first search module 202 searches for
步骤S2,第二搜寻模块203从存储器24中获取所有环境的设定档案,并从获取的设定档案中搜寻包含搜寻到的电子装置数量最多或比例最高的设定档案。例如,假设存储器24中存储有两个设定档案D1和D2,其中,D1中存储有3个电子装置e1、e2、e3,D2中存储有4个电子装置e3和e4。如果当前环境中的电子装置10包括e1、e2和e3,而第一搜寻模块202搜寻到的电子装置只有e2和e3,其中e1处于关闭状态,所以无法搜寻到。由此可知,设定档案D1包含搜寻到的电子装置数量最多(2个),或比例最高(2/3)。In step S2, the second search module 203 obtains all environment configuration files from the
步骤S3,当手持设备20指向当前环境中的一个电子装置时,侦测模块204获取电子罗盘22侦测到的该手持设备20的指示方向。Step S3 , when the
步骤S4,比对模块205将该手持设备20的指示方向与该搜寻到的设定档案(如D1)中记录的每个电子装置10的摆设方向进行比对,确定摆设方向与该手持设备20指示方向匹配的电子装置10,该匹配到的电子装置10作为需要控制的目标电子装置。如前所述,可以用角度来代表该手持设备20的指示方向或每个电子装置10的摆设方向。Step S4, the comparison module 205 compares the indicated direction of the
具体而言,比对模块205先以该手持设备20的指示方向为基准,向顺时针方向和逆时针方向各展开预设角度值α,得到一个该手持设备20指示方向的偏转范围,该偏转范围视为搜寻匹配电子装置10的视角范围。在本实施例中,所述预设角度值α取30度。参阅图8A所示,假设手持设备20的指示方向为60°,则该手持设备20指示方向的偏转范围为[30°,90°]。Specifically, the comparison module 205 first takes the indication direction of the
然后,比对模块205从该搜寻到的设定档案记录的电子装置中选取与该手持设备20指示方向匹配的电子装置10,其中,该匹配电子装置10的摆设方向位于该手持设备20指示方向的偏转范围内。参阅图8A所示,假设电子装置10的摆设方向为45度,则比对模块205判断该电子装置10为与该手持设备20指示方向匹配的电子装置。Then, the comparison module 205 selects the
如果比对模块205没有在该偏转范围内找到匹配电子装置10,则提示用户调整手持设备20的指示方向。参阅图8B所示,假设手持设备20的指示方向为90°,则该手持设备20指示方向的偏转范围为[60°,120°],比对模块205在该偏转范围内无法找到匹配的电子装置10。If the comparison module 205 does not find a matching
在其他实施例中,如果比对模块205获取的匹配电子装置10为两个以上,则从该多个匹配电子装置10中选择一个摆设方向与该手持设备20的指示方向最接近的电子装置10,作为该手持设备20的匹配电子装置10。In other embodiments, if there are more than two matching
步骤S5,控制模块206根据加速度计23侦测到的该手持设备20的移动状态,控制该匹配电子装置10执行对应功能。在本实施例中,所述步骤S5在手持设备20处于垂直状态下进行。Step S5 , the control module 206 controls the matching
具体而言,控制模块206先根据加速度计23侦测到的该手持设备20在X轴、Y轴、Z轴方向的加速度值,判断该手持设备20处于水平状态还是垂直状态。Specifically, the control module 206 first determines whether the
如果该手持设备20处于垂直状态,则控制模块206在预先设定的该手持设备的移动状态与对应电子装置功能的映射关系中,根据所侦测到的该手持设备20的移动状态查询该匹配电子装置10的对应功能,并控制该匹配电子装置10执行该对应功能。可以理解,所述映射关系预先存储于该手持设备20的存储器24中。If the
举例而言,如果该手持设备20在垂直状态下向左移动(参阅图6B所示),则控制该匹配电子装置10播放上一首歌曲,如果该手持设备20在垂直状态下向上移动(参阅图6C所示),则控制提高该匹配电子装置10的音量。For example, if the
如果该手持设备20处于水平状态,则控制模块206不执行控制操作。If the
可以理解,在其他实施例中,所述步骤S5也可以在手持设备20处于水平状态下进行。也就是说,控制模块206无需判断该手持设备20处于水平状态还是垂直状态,直接根据预先设定的映射关系,控制匹配电子装置10执行对应功能。It can be understood that, in other embodiments, the step S5 can also be performed when the
在其他实施例中,步骤S5也可以为:In other embodiments, step S5 may also be:
控制模块206在预先设定的该手持设备提供的按键(包括实体按键和虚拟按键)与对应电子装置功能的映射关系中,根据所侦测到的该手持设备20按键操作查询该匹配电子装置10的对应功能,并控制该匹配电子装置10执行该对应功能。例如,通过向左的按键控制该匹配电子装置10播放上一首歌曲,通过向右的按键控制该匹配电子装置10播放下一首歌曲等。The control module 206 queries the matching
最后应说明的是,以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或等同替换,而不脱离本发明技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention without limitation. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be Modifications or equivalent replacements can be made without departing from the spirit and scope of the technical solutions of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2011103947796ACN103135791A (en) | 2011-12-02 | 2011-12-02 | Controlling system and controlling method of electronic device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2011103947796ACN103135791A (en) | 2011-12-02 | 2011-12-02 | Controlling system and controlling method of electronic device |
| Publication Number | Publication Date |
|---|---|
| CN103135791Atrue CN103135791A (en) | 2013-06-05 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2011103947796APendingCN103135791A (en) | 2011-12-02 | 2011-12-02 | Controlling system and controlling method of electronic device |
| Country | Link |
|---|---|
| CN (1) | CN103135791A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104574899A (en)* | 2014-12-15 | 2015-04-29 | 惠州Tcl移动通信有限公司 | Intelligent control method and terminal therefor |
| CN105554563A (en)* | 2015-12-14 | 2016-05-04 | 小米科技有限责任公司 | Method and device for multimedia playing |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1898708A (en)* | 2003-12-18 | 2007-01-17 | 皇家飞利浦电子股份有限公司 | Method and system for control of a device |
| CN101101512A (en)* | 2002-11-20 | 2008-01-09 | 皇家飞利浦电子股份有限公司 | User interface system based on pointing device |
| CN101866533A (en)* | 2009-10-20 | 2010-10-20 | 香港应用科技研究院有限公司 | Remote control device and method |
| CN102184014A (en)* | 2011-05-12 | 2011-09-14 | 浙江大学 | Intelligent appliance interaction control method and device based on mobile equipment orientation |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101101512A (en)* | 2002-11-20 | 2008-01-09 | 皇家飞利浦电子股份有限公司 | User interface system based on pointing device |
| CN1898708A (en)* | 2003-12-18 | 2007-01-17 | 皇家飞利浦电子股份有限公司 | Method and system for control of a device |
| CN101866533A (en)* | 2009-10-20 | 2010-10-20 | 香港应用科技研究院有限公司 | Remote control device and method |
| CN102184014A (en)* | 2011-05-12 | 2011-09-14 | 浙江大学 | Intelligent appliance interaction control method and device based on mobile equipment orientation |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104574899A (en)* | 2014-12-15 | 2015-04-29 | 惠州Tcl移动通信有限公司 | Intelligent control method and terminal therefor |
| CN104574899B (en)* | 2014-12-15 | 2019-08-23 | 惠州Tcl移动通信有限公司 | A kind of intelligent control method and its terminal |
| CN105554563A (en)* | 2015-12-14 | 2016-05-04 | 小米科技有限责任公司 | Method and device for multimedia playing |
| Publication | Publication Date | Title |
|---|---|---|
| CN107533422B (en) | Server and method for controlling group behavior of server | |
| CN105634881B (en) | Application scene recommendation method and device | |
| CN102939576B (en) | Method and apparatus for gesture-based remote control | |
| CN104122845B (en) | Household appliance control system and method | |
| US20120068857A1 (en) | Configurable remote control | |
| US20170097686A1 (en) | Apparatus and method for adaptive gesture recognition in portable terminal | |
| CN106953785B (en) | Intelligent household equipment adding method and device | |
| CN106468971A (en) | The method of pressure and the electronic installation being suitable to the method are sensed by touch sensor | |
| CN105094314B (en) | Method and apparatus for utilizing a display to processing input | |
| CN102316387B (en) | Remote control equipment, remote control setting method | |
| US9426606B2 (en) | Electronic apparatus and method of pairing in electronic apparatus | |
| CN104899003A (en) | Terminal control method and system | |
| WO2013177901A1 (en) | Touch control unlocking method and apparatus, and electronic device | |
| CN105446619B (en) | Apparatus and method for identifying objects | |
| CN105702015A (en) | Method and device for managing infrared remote control code values | |
| CN104516495A (en) | Method and terminal for quickly entering terminal application | |
| CN108632796A (en) | Bluetooth connecting method, device, terminal and computer readable storage medium | |
| TWI517108B (en) | System and method for controlling electronic device | |
| CN111669737A (en) | Bluetooth device connection method, device and electronic device | |
| CN106101990B (en) | Bluetooth device searching method and device | |
| WO2017128986A1 (en) | Selection method, device and storage medium for multimedia menu item | |
| CN105630376A (en) | Terminal control method and device | |
| CN103135791A (en) | Controlling system and controlling method of electronic device | |
| CN104238481A (en) | Household device control system and method | |
| CN105320858B (en) | Method and device for rapidly displaying application icons |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| ASS | Succession or assignment of patent right | Owner name:HONGFUJIN PRECISE INDUSTRY (SHENZHEN) CO., LTD. Free format text:FORMER OWNER: GDS SOFTWARE(SHENZHEN)CO.,LTD. Effective date:20150527 | |
| C41 | Transfer of patent application or patent right or utility model | ||
| TA01 | Transfer of patent application right | Effective date of registration:20150527 Address after:518109 Guangdong city of Shenzhen province Baoan District Longhua Town Industrial Zone tabulaeformis tenth East Ring Road No. 2 two Applicant after:Hongfujin Precise Industry (Shenzhen) Co., Ltd. Applicant after:Hon Hai Precision Industry Co., Ltd. Address before:518109, Guangdong, Baoan District, Shenzhen, Longhua Road, road, east side of Foxconn science and Technology Park, D1 district workshop, stamping workshop, third layers, distinguish the body Applicant before:Jetta software (Shenzhen) Co., Ltd. Applicant before:Hon Hai Precision Industry Co., Ltd. | |
| WD01 | Invention patent application deemed withdrawn after publication | Application publication date:20130605 | |
| WD01 | Invention patent application deemed withdrawn after publication |