[go: up one dir, main page]

CN114827166A - Device control method, device and storage medium - Google Patents

Device control method, device and storage medium Download PDF

Info

Publication number
CN114827166A
CN114827166A CN202210190475.6A CN202210190475A CN114827166A CN 114827166 A CN114827166 A CN 114827166A CN 202210190475 A CN202210190475 A CN 202210190475A CN 114827166 A CN114827166 A CN 114827166A
Authority
CN
China
Prior art keywords
bluetooth
touch
equipment
human
computer interaction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210190475.6A
Other languages
Chinese (zh)
Inventor
许开城
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN202210190475.6A priority Critical patent/CN114827166A/en
Publication of CN114827166A publication Critical patent/CN114827166A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1046Joining mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a device control method, a device and a storage medium, wherein the method comprises the following steps: and acquiring a Bluetooth service discovery protocol corresponding to the touch equipment, and writing a human-computer interaction protocol for realizing human-computer interaction operation into the Bluetooth service discovery protocol so that the touch equipment has a Bluetooth human-computer interaction function. And then, receiving a Bluetooth connection request sent by the Bluetooth equipment, and if the service list data is inquired in the touch equipment, establishing connection with the Bluetooth equipment based on the Bluetooth connection request and the service list data. And finally, controlling the Bluetooth equipment through touch equipment. The touch control equipment has the function of the slave machine by writing the human-computer interaction protocol into the Bluetooth service protocol in the touch control equipment, and the connection is established with the Bluetooth equipment based on the service list in the human-computer interaction service protocol, so that the Bluetooth equipment can be connected and controlled to operate in a low-cost and safe manner, and the touch control equipment is simple and convenient to use.

Description

设备控制方法、装置、设备和存储介质Device control method, device, device and storage medium

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种设备控制方法、装置、设备和存储介质。The present invention relates to the field of communication technologies, and in particular, to a device control method, apparatus, device and storage medium.

背景技术Background technique

随着人机交互设备的兴起,在越来越多的场景中人们开始使用人机交互设备进行远程控制。人机接口设备或人机交互设备(Human Interface Device,简称HID)是人类通常使用的一种计算机设备,其从人类获取输入并向人类输出。常见的HID设备有鼠标、键盘和触摸屏等。With the rise of human-computer interaction devices, people begin to use human-computer interaction devices for remote control in more and more scenarios. A Human Interface Device or Human Interface Device (HID for short) is a computer device commonly used by humans, which obtains input from and outputs to humans. Common HID devices include mouse, keyboard and touch screen.

传统的方案中,通过网络或者数据线来连接控制一电子设备,实现将电子设备上的内容共享到公共显示设备上,并可以在公共显示设备上对展示内容进行操作。然而,这种方法使用的局限性较大,需确保有网络的环境或者有携带数据线,同时对使用的平台也有一定要求,必须是安卓(Android)设备对Android设备,且Android设备需要较高的系统权限,需要开启无障碍服务,这样会使Android系统处于不安全的环境,容易受到病毒攻击。In the traditional solution, an electronic device is connected and controlled through a network or a data line, so that the content on the electronic device is shared to a public display device, and the displayed content can be operated on the public display device. However, the use of this method has great limitations. It is necessary to ensure that there is a network environment or a portable data cable. At the same time, there are certain requirements for the platform used. It must be an Android device to an Android device, and the Android device requires a higher The system permissions of the Android system need to be turned on, which will make the Android system in an unsafe environment and vulnerable to virus attacks.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种设备控制方法、装置、设备和存储介质,用以实现低成本且安全的方式实现点对点地连接控制其他蓝牙设备。Embodiments of the present invention provide a device control method, apparatus, device, and storage medium, which are used to realize point-to-point connection and control of other Bluetooth devices in a low-cost and safe manner.

第一方面,本发明实施例提供一种设备控制方法,应用于触控设备,该方法包括:In a first aspect, an embodiment of the present invention provides a device control method, which is applied to a touch control device, and the method includes:

获取与触控设备相对应的蓝牙服务发现协议;Obtain the Bluetooth service discovery protocol corresponding to the touch device;

将用于实现人机交互操作的人机交互协议写入蓝牙服务发现协议中,以使得触控设备具有蓝牙人机交互的功能;Write the human-computer interaction protocol for realizing the human-computer interaction operation into the Bluetooth service discovery protocol, so that the touch device has the function of Bluetooth human-computer interaction;

接收蓝牙设备发送的蓝牙连接请求;Receive a Bluetooth connection request sent by a Bluetooth device;

若在所述触控设备中查询到服务列表数据,则基于所述蓝牙连接请求和服务列表数据与蓝牙设备建立连接;If the service list data is queried in the touch control device, establishing a connection with the Bluetooth device based on the Bluetooth connection request and the service list data;

通过所述触控设备对所述蓝牙设备进行控制。The Bluetooth device is controlled through the touch control device.

可选地,所述通过所述触控设备对所述蓝牙设备进行控制,包括:Optionally, the controlling the Bluetooth device through the touch device includes:

确定与所述蓝牙设备相对应的可控参数;determining controllable parameters corresponding to the Bluetooth device;

基于所述可控参数,在所述触控设备的显示界面显示与所述蓝牙设备相对于的操作控件;Based on the controllable parameters, display an operation control relative to the Bluetooth device on the display interface of the touch control device;

基于用户针对所述操作控件输入的执行操作,对所述蓝牙设备进行控制。The Bluetooth device is controlled based on the execution operation input by the user with respect to the operation control.

可选地,在接收蓝牙设备发送的蓝牙连接请求之前,所述方法还包括:Optionally, before receiving the Bluetooth connection request sent by the Bluetooth device, the method further includes:

获取与所述触控设备相对应的蓝牙开启请求;obtaining a Bluetooth turn-on request corresponding to the touch device;

基于所述蓝牙开启请求控制所述触控设备启动蓝牙功能,以通过蓝牙与蓝牙设备建立连接。Based on the bluetooth enable request, the touch control device is controlled to start the bluetooth function, so as to establish a connection with the bluetooth device through bluetooth.

可选地,所述基于用户针对所述操作控件输入的执行操作,对所述蓝牙设备进行控制,包括:Optionally, the controlling the Bluetooth device based on the execution operation input by the user on the operation control includes:

基于用户针对所述操作控件输入的执行操作,生成人机交互报文;generating a human-computer interaction message based on the execution operation input by the user with respect to the operation control;

将所述人机交互报文发送至蓝牙设备,以使所述蓝牙设备基于所述人机交互报文执行相应操作。The human-computer interaction message is sent to a Bluetooth device, so that the Bluetooth device performs a corresponding operation based on the human-computer interaction message.

可选地,所述方法还包括:Optionally, the method further includes:

在所述触控设备的显示界面中显示所述蓝牙设备基于所述人机交互报文所执行的相应操作。The corresponding operation performed by the Bluetooth device based on the human-computer interaction message is displayed on the display interface of the touch control device.

可选地,所述方法还包括:Optionally, the method further includes:

在所述触控设备的显示界面中显示所述蓝牙设备基于所述人机交互报文所执行的相应操作。The corresponding operation performed by the Bluetooth device based on the human-computer interaction message is displayed on the display interface of the touch control device.

第二方面,本发明实施例提供一种设备控制装置,位于触控设备,该装置包括:In a second aspect, an embodiment of the present invention provides a device control device, which is located in a touch-control device, and the device includes:

获取模块,用于获取与触控设备相对应的蓝牙服务发现协议;an acquisition module, used to acquire the Bluetooth service discovery protocol corresponding to the touch device;

写入模块,用于将用于实现人机交互操作的人机交互协议写入蓝牙服务发现协议中,以使得触控设备具有蓝牙人机交互的功能;The writing module is used to write the human-computer interaction protocol for realizing the human-computer interaction operation into the Bluetooth service discovery protocol, so that the touch device has the function of Bluetooth human-computer interaction;

接收模块,用于接收蓝牙设备发送的蓝牙连接请求;The receiving module is used to receive the bluetooth connection request sent by the bluetooth device;

查询模块,用于若在所述触控设备中查询到服务列表数据,则基于所述蓝牙连接请求和服务列表数据与蓝牙设备建立连接;a query module, configured to establish a connection with the Bluetooth device based on the Bluetooth connection request and the service list data if the service list data is queried in the touch control device;

控制模块,用于通过所述触控设备对所述蓝牙设备进行控制。A control module, configured to control the Bluetooth device through the touch control device.

可选地,所述控制模块具体可以用于:Optionally, the control module can be specifically used for:

确定与所述蓝牙设备相对应的可控参数;determining controllable parameters corresponding to the Bluetooth device;

基于所述可控参数,在所述触控设备的显示界面显示与所述蓝牙设备相对于的操作控件;Based on the controllable parameters, display an operation control relative to the Bluetooth device on the display interface of the touch control device;

基于用户针对所述操作控件输入的执行操作,对所述蓝牙设备进行控制。The Bluetooth device is controlled based on the execution operation input by the user with respect to the operation control.

可选地,所述接收模块之前还可以包括开启模块,具体可以用于:Optionally, before the receiving module, an opening module may also be included, which may be specifically used for:

获取与所述触控设备相对应的蓝牙开启请求;基于所述蓝牙开启请求控制所述触控设备启动蓝牙功能,以通过蓝牙与蓝牙设备建立连接。Acquiring a Bluetooth turn-on request corresponding to the touch-control device; and controlling the touch-control device to start a Bluetooth function based on the Bluetooth turn-on request, so as to establish a connection with the Bluetooth device through Bluetooth.

可选地,所述控制模块具体还可以用于:Optionally, the control module can also be specifically used for:

基于用户针对所述操作控件输入的执行操作,生成人机交互报文;将所述人机交互报文发送至蓝牙设备,以使所述蓝牙设备基于所述人机交互报文执行相应操作。Based on the execution operation input by the user on the operation control, a human-computer interaction message is generated; the human-computer interaction message is sent to a Bluetooth device, so that the Bluetooth device performs a corresponding operation based on the human-computer interaction message.

可选地,所述装置还可以包括显示模块,具体可以用于:Optionally, the device may further include a display module, which may be specifically used for:

在所述触控设备的显示界面中显示所述蓝牙设备基于所述人机交互报文所执行的相应操作。The corresponding operation performed by the Bluetooth device based on the human-computer interaction message is displayed on the display interface of the touch control device.

可选地,所述装置还包括请求模块,具体可以用于:Optionally, the device further includes a request module, which can be specifically used for:

接收蓝牙设备发送的蓝牙断开请求;Receive the bluetooth disconnection request sent by the bluetooth device;

基于所述蓝牙断开请求与所述蓝牙设备断开连接。Disconnecting from the Bluetooth device based on the Bluetooth disconnect request.

第三方面,本发明实施例提供一种控制设备,包括:存储器、处理器、通信接口;其中,所述存储器上存储有可执行代码,当所述可执行代码被所述处理器执行时,使所述处理器至少可以实现如第一方面所述的设备控制方法。In a third aspect, an embodiment of the present invention provides a control device, including: a memory, a processor, and a communication interface; wherein, executable code is stored on the memory, and when the executable code is executed by the processor, The processor can at least implement the device control method according to the first aspect.

第四方面,本发明实施例提供了一种非暂时性机器可读存储介质,所述非暂时性机器可读存储介质上存储有可执行代码,当所述可执行代码被管控设备的处理器执行时,使所述处理器至少可以实现如第一方面所述的设备控制方法。In a fourth aspect, an embodiment of the present invention provides a non-transitory machine-readable storage medium, where executable code is stored on the non-transitory machine-readable storage medium, and when the executable code is controlled by a processor of a device When executed, the processor can at least implement the device control method described in the first aspect.

第五方面,本发明实施例提供一种设备控制方法,应用于蓝牙设备,所述方法包括:In a fifth aspect, an embodiment of the present invention provides a device control method, which is applied to a Bluetooth device, and the method includes:

获取能够搜索到的至少一个触控设备,所述触控设备中的蓝牙服务发现协议中包括用于实现人机交互操作的人机交互协议;Acquire at least one touch-control device that can be searched, and the Bluetooth service discovery protocol in the touch-control device includes a human-computer interaction protocol for implementing human-computer interaction operations;

向至少一个触控设备发送蓝牙连接请求,以基于所述蓝牙连接请求与触控设备建立通信连接;sending a Bluetooth connection request to at least one touch device to establish a communication connection with the touch device based on the Bluetooth connection request;

接收所述触控设备发出的控制指令;receiving a control instruction sent by the touch control device;

基于所述控制指令执行相对应的操作。A corresponding operation is performed based on the control instruction.

第六方面,本发明实施例提供一种设备控制装置,位于蓝牙设备,所述装置包括:In a sixth aspect, an embodiment of the present invention provides a device control device, located in a Bluetooth device, the device includes:

搜索模块,用于获取能够搜索到的至少一个触控设备,所述触控设备中的蓝牙服务发现协议中包括用于实现人机交互操作的人机交互协议;a search module, configured to acquire at least one touch-control device that can be searched, and the Bluetooth service discovery protocol in the touch-control device includes a human-computer interaction protocol for realizing human-computer interaction operation;

发送模块,用于向至少一个触控设备发送蓝牙连接请求,以基于所述蓝牙连接请求与触控设备建立通信连接;a sending module, configured to send a Bluetooth connection request to at least one touch device, so as to establish a communication connection with the touch device based on the Bluetooth connection request;

获取模块,用于接收所述触控设备发出的控制指令;an acquisition module, configured to receive a control instruction sent by the touch control device;

执行模块,用于基于所述控制指令执行相对应的操作。An execution module, configured to execute a corresponding operation based on the control instruction.

第七方面,本发明实施例提供一种待控设备,包括:存储器、处理器、通信接口;其中,所述存储器上存储有可执行代码,当所述可执行代码被所述处理器执行时,使所述处理器至少可以实现如第五方面所述的报文压缩方法。In a seventh aspect, an embodiment of the present invention provides a device to be controlled, including: a memory, a processor, and a communication interface; wherein, executable code is stored on the memory, and when the executable code is executed by the processor , so that the processor can at least implement the packet compression method according to the fifth aspect.

第八方面,本发明实施例提供了一种非暂时性机器可读存储介质,所述非暂时性机器可读存储介质上存储有可执行代码,当所述可执行代码被计算设备的处理器执行时,使所述处理器至少可以实现如第五方面所述的设备控制方法。In an eighth aspect, an embodiment of the present invention provides a non-transitory machine-readable storage medium, where executable code is stored on the non-transitory machine-readable storage medium, and when the executable code is executed by a processor of a computing device When executed, the processor can at least implement the device control method according to the fifth aspect.

本发明实施例提供的设备控制方案可以适用于触控设备和蓝牙设备,针对于任一触控设备来说,首先获取与触控设备相对应的蓝牙服务发现协议,并将用于实现人机交互操作的人机交互协议写入蓝牙服务发现协议中,以使得触控设备具有蓝牙人机交互的功能。接着,接收蓝牙设备发送的蓝牙连接请求,并在触控设备中查询服务列表数据,若在触控设备中查询到服务列表数据,则基于蓝牙连接请求和服务列表数据与蓝牙设备建立连接。最后,通过触控设备对所述蓝牙设备进行控制。The device control solution provided by the embodiment of the present invention can be applied to touch devices and Bluetooth devices. For any touch device, the Bluetooth service discovery protocol corresponding to the touch device is obtained first, and it is used to realize the human-machine The human-computer interaction protocol of interactive operation is written into the Bluetooth service discovery protocol, so that the touch device has the function of Bluetooth human-computer interaction. Next, the Bluetooth connection request sent by the Bluetooth device is received, and the service list data is queried in the touch device. If the service list data is queried in the touch device, a connection is established with the Bluetooth device based on the Bluetooth connection request and the service list data. Finally, the Bluetooth device is controlled through the touch device.

在上述方案中,通过在触控设备中蓝牙服务协议中写入人机交互协议,使得触控设备具备从机功能,使得被蓝牙设备搜索到。并基于人机交互服务协议中的服务列表与蓝牙设备建立连接,这样可以以低成本且安全的方式去连接蓝牙设备并控制操作这些设备,使用起来简单方便。In the above solution, the human-computer interaction protocol is written in the Bluetooth service protocol in the touch device, so that the touch device has the slave function, so that it can be searched by the Bluetooth device. And establish a connection with the Bluetooth device based on the service list in the human-computer interaction service protocol, so that the Bluetooth device can be connected and controlled and operated in a low-cost and safe manner, which is simple and convenient to use.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1为本发明实施例提供的一种设备控制方法的流程图;FIG. 1 is a flowchart of a device control method according to an embodiment of the present invention;

图2为本发明实施例提供的一种触控设备的显示界面上显示操作控件的应用示意图;FIG. 2 is a schematic diagram of an application of displaying operation controls on a display interface of a touch device according to an embodiment of the present invention;

图3为本发明实施例提供的另一种设备控制方法的流程示意图;3 is a schematic flowchart of another device control method provided by an embodiment of the present invention;

图4为本发明实施例提供的一种设备控制方法的应用示意图;FIG. 4 is an application schematic diagram of a device control method provided by an embodiment of the present invention;

图5为本发明实施例提供的另一种设备控制方法的流程示意图;FIG. 5 is a schematic flowchart of another device control method provided by an embodiment of the present invention;

图6为本发明实施例提供的一种设备控制装置的结构示意图;FIG. 6 is a schematic structural diagram of a device control device according to an embodiment of the present invention;

图7为与图6所示实施例提供的设备控制装置对应的电子设备的结构示意图;7 is a schematic structural diagram of an electronic device corresponding to the device control device provided by the embodiment shown in FIG. 6;

图8为本发明实施例提供的一种设备控制装置的结构示意图;FIG. 8 is a schematic structural diagram of a device control apparatus according to an embodiment of the present invention;

图9为与图8所示实施例提供的设备控制装置对应的电子设备的结构示意图。FIG. 9 is a schematic structural diagram of an electronic device corresponding to the device control apparatus provided in the embodiment shown in FIG. 8 .

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其它含义,“多种”一般包含至少两种,但是不排除包含至少一种的情况。The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. As used in the embodiments of the present invention and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise, "a plurality" Generally, at least two kinds are included, but the case of including at least one kind is not excluded.

应当理解,本文中使用的术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that the term "and/or" used in this document is only an association relationship to describe the associated objects, indicating that there may be three kinds of relationships, for example, A and/or B, which may indicate that A exists alone, and A and B exist at the same time. B, there are three cases of B alone. In addition, the character "/" in this document generally indicates that the related objects are an "or" relationship.

取决于语境,如在此所使用的词语“如果”、“若”可以被解释成为“在……时”或“当……时”。类似地,取决于语境,短语“如果确定”或“如果检测(陈述的条件或事件)”可以被解释成为“当确定时”或“响应于确定”或“当检测(陈述的条件或事件)时”或“响应于检测(陈述的条件或事件)”。Depending on the context, the words "if", "if" as used herein can be interpreted as "at" or "when". Similarly, the phrases "if determined" or "if detected (the stated condition or event)" can be interpreted as "when determined" or "in response to determining" or "when detected (the stated condition or event)," depending on the context )" or "in response to detection (a stated condition or event)".

还需要说明的是,术语“包括”、“包含”或者其任何其它变体意在涵盖非排他性的包含,从而使得包括一系列要素的商品或者系统不仅包括那些要素,而且还包括没有明确列出的其它要素,或者是还包括为这种商品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的商品或者系统中还存在另外的相同要素。It should also be noted that the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a commodity or system comprising a list of elements includes not only those elements, but also those not explicitly listed other elements, or other elements inherent to the commodity or system. Without further limitation, an element defined by the phrase "comprising a..." does not preclude the presence of additional identical elements in the article or system that includes the element.

另外,下述各方法实施例中的步骤时序仅为一种举例,而非严格限定。In addition, the sequence of steps in the following method embodiments is only an example, and is not strictly limited.

在一些会议或者教学等场景中,经常需要一台设备区控制另一台设备,例如,使用公共显示设备进行内容展示,需要在远程控制展示内容或者将自身设备上的内容共享到公共显示设备上进行展示,在公共显示设备上对共享内容进行控制操作等。除此之外,在实际应用中,经常会出现键盘、鼠标或者遥控器等设备突然不能使用,这时可以将一台电子设备作为键盘、鼠标或者遥控器对设备进行控制使用。基于此,本发明实施例提供了解决方案,在近距离场景下可以使用蓝牙进行远程无线连接,使得触控设备可以对蓝牙设备进行远程控制操作。In some conferences or teaching scenarios, one device area is often required to control another device. For example, when using a public display device for content display, it is necessary to remotely control the display content or share the content on its own device to the public display device. Display, control and operate shared content on public display devices, etc. In addition, in practical applications, devices such as a keyboard, mouse, or remote control are often suddenly unavailable. At this time, an electronic device can be used as a keyboard, mouse, or remote control to control the device. Based on this, the embodiments of the present invention provide a solution. In a short-range scenario, Bluetooth can be used for remote wireless connection, so that the touch device can remotely control the Bluetooth device.

本发明实施例提供的设备控制方法可以由一电子设备来执行,该电子设备可以是诸如PC机、笔记本电脑、智能手机等终端设备。下面对触控设备执行的设备控制的过程进行示例性说明。The device control method provided by the embodiment of the present invention may be executed by an electronic device, and the electronic device may be a terminal device such as a PC, a notebook computer, and a smart phone. The process of device control performed by the touch control device will be exemplarily described below.

图1为本发明实施例提供的一种设备控制方法的流程图。该方法可以应用于触控设备,在本实施例中该方法的执行主体可以为触控设备,该触控设备可以为手机、平板、智能手表、电视、智能交互大屏等电子设备。本发明实施例提供的设备控制方法可以应用在各种近距离远程控制等场景中。比如,使用任一具有触摸屏的电子设备对电脑、电视、投影仪等电子设备进行远程控制的场景中。对这些设备进行控制的目的,比如可以在远程对这些设备进行音量控制、多媒体的播放以及对显示内容进行修改等。如图1所示,该方法可以包括如下步骤:FIG. 1 is a flowchart of a device control method according to an embodiment of the present invention. The method can be applied to a touch control device. In this embodiment, the execution body of the method can be a touch control device, and the touch control device can be an electronic device such as a mobile phone, a tablet, a smart watch, a TV, and an intelligent interactive large screen. The device control method provided by the embodiment of the present invention can be applied in various scenarios such as short-range remote control. For example, in a scenario where any electronic device with a touch screen is used to remotely control electronic devices such as a computer, a TV, and a projector. The purpose of controlling these devices, for example, can remotely control the volume of these devices, play multimedia, and modify the displayed content. As shown in Figure 1, the method may include the following steps:

101、获取与触控设备相对应的蓝牙服务发现协议。101. Acquire a Bluetooth service discovery protocol corresponding to the touch device.

102、将用于实现人机交互操作的人机交互协议写入蓝牙服务发现协议中,以使得触控设备具有蓝牙人机交互的功能。102. Write the human-computer interaction protocol for realizing the human-computer interaction operation into the Bluetooth service discovery protocol, so that the touch device has the function of Bluetooth human-computer interaction.

103、接收蓝牙设备发送的蓝牙连接请求。103. Receive a Bluetooth connection request sent by the Bluetooth device.

104、若在触控设备中查询到服务列表数据,则基于蓝牙连接请求和服务列表数据与蓝牙设备建立连接。104. If the service list data is queried in the touch device, establish a connection with the Bluetooth device based on the Bluetooth connection request and the service list data.

105、通过触控设备对所述蓝牙设备进行控制。105. Control the Bluetooth device through a touch device.

触控设备通过蓝牙连接对蓝牙设备进行控制前,需要先在触控设备的蓝牙服务协议中注册人机交互服务协议,其具体的实现方式可以为:获取与触控设备相对应的蓝牙服务发现协议,并将用于实现人机交互操作的人机交互协议写入蓝牙服务发现协议中,以使得触控设备具有蓝牙人机交互的功能,通过人机交互的方式对蓝牙设备进行控制。Before the touch device controls the Bluetooth device through the Bluetooth connection, it needs to register the human-computer interaction service protocol in the Bluetooth service protocol of the touch device. The specific implementation method can be: obtaining the Bluetooth service discovery corresponding to the touch device. protocol, and write the human-computer interaction protocol for realizing human-computer interaction into the Bluetooth service discovery protocol, so that the touch device has the function of Bluetooth human-computer interaction, and controls the Bluetooth device through human-computer interaction.

其中,触控设备的蓝牙服务协议中被写入人机交互协议,可以使得触控设备具有蓝牙人机交互(蓝牙HID)的功能,蓝牙HID是指在人机交互工作模式下,触控设备属于一个标准的人机接口设备,类似蓝牙无线挂载设备。也就是说,当人机交互服务协议写入到触控设备的蓝牙服务发现协议之后,就使得触控设备模拟成为蓝牙无线触摸屏,即可以作为一个从机使用。Among them, the human-computer interaction protocol is written in the Bluetooth service protocol of the touch device, which can make the touch device have the function of Bluetooth human-computer interaction (Bluetooth HID). It belongs to a standard human-machine interface device, similar to the Bluetooth wireless mount device. That is to say, after the human-computer interaction service protocol is written into the Bluetooth service discovery protocol of the touch device, the touch device is simulated as a Bluetooth wireless touch screen, that is, it can be used as a slave.

在一可选实施例中,由于触控设备的蓝牙服务发现协议中被写入人机交互协议,那么触控设备就可以作为一个从机使用,当与蓝牙设备建立连接时可以主动提供人机交互服务条目。当蓝牙连接建立发起时,蓝牙设备会主动去查询触控设备的服务条目,并通过协商,蓝牙设备与触控设备建立连接,触控设备以蓝牙通信方式挂载到蓝牙设备上。也就是说,触控设备就相当于蓝牙设备的一个附属设备即从机,这样蓝牙设备就能接收和处理触控设备所产生的控制数据。In an optional embodiment, since the human-computer interaction protocol is written in the Bluetooth service discovery protocol of the touch device, the touch device can be used as a slave, and can actively provide a human-computer when a connection is established with the Bluetooth device. Interactive service entry. When the Bluetooth connection is established and initiated, the Bluetooth device will actively query the service entry of the touch device, and through negotiation, the Bluetooth device establishes a connection with the touch device, and the touch device is mounted on the Bluetooth device by Bluetooth communication. That is to say, the touch device is equivalent to an accessory device of the Bluetooth device, that is, a slave, so that the Bluetooth device can receive and process the control data generated by the touch device.

值得注意的是:在本发明实施例中,触控设备作为从机使用,蓝牙设备作为主机使用。通过在触控设备中蓝牙服务协议中写入人机交互协议,使得触控设备通过人机交互协议对蓝牙设备进行控制,并且触控设备中的人机交互协议可以提供人机交互服务条目,当蓝牙设备访问触控设备的服务条目时,触控设备可以提供服务条目数据,以与蓝牙设备建立连接。因此,将人机交互服务协议写入蓝牙服务协议后,也使得触控设备具备从机功能,蓝牙设备主动查询服务条目,与触控设备建立连接,这样蓝牙设备就能接收和处理触控设备所产生的控制数据。It is worth noting that: in this embodiment of the present invention, the touch device is used as a slave, and the Bluetooth device is used as a host. By writing the human-computer interaction protocol in the Bluetooth service protocol in the touch device, the touch device can control the Bluetooth device through the human-computer interaction protocol, and the human-computer interaction protocol in the touch device can provide human-computer interaction service items. When the Bluetooth device accesses the service entry of the touch device, the touch device can provide service entry data to establish a connection with the Bluetooth device. Therefore, after the human-computer interaction service protocol is written into the Bluetooth service protocol, the touch device also has the slave function. The Bluetooth device actively queries the service entry and establishes a connection with the touch device, so that the Bluetooth device can receive and process the touch device. generated control data.

当触控设备想要对蓝牙设备进行控制时,首先要获取与触控设备相对应的蓝牙服务发现协议,并将用于实现人机交互操作的人机交互协议写入蓝牙服务发现协议中,以使得触控设备具有蓝牙人机交互的功能。该蓝牙设备可以是电脑、电视机,投影仪等设备。然后,触控设备接收蓝牙设备发送的蓝牙连接请求,若在触控设备中查询到服务列表数据,则基于蓝牙连接请求和服务列表数据与蓝牙设备建立连接。When the touch device wants to control the Bluetooth device, it must first obtain the Bluetooth service discovery protocol corresponding to the touch device, and write the human-computer interaction protocol for realizing human-computer interaction into the Bluetooth service discovery protocol. So that the touch device has the function of Bluetooth human-computer interaction. The Bluetooth device may be a computer, a television, a projector, and other devices. Then, the touch device receives the Bluetooth connection request sent by the Bluetooth device, and if the service list data is queried in the touch device, a connection is established with the Bluetooth device based on the Bluetooth connection request and the service list data.

在本发明实施例中,模拟出的蓝牙无线触摸屏为多点触控屏,可以实现区分用户多个手指头的同时触发操作。并且模拟的触摸屏可以实现多对一的控制,也可以实现为一对多的控制。In the embodiment of the present invention, the simulated Bluetooth wireless touch screen is a multi-touch screen, which can realize simultaneous triggering operations while distinguishing multiple fingers of the user. And the simulated touch screen can realize many-to-one control, and can also realize one-to-many control.

其中,可选地,触控设备可以通过显示界面显示用于与触控设备进行蓝牙连接的一个或多个待连接设备。在本实施例可以实现一台触控设备连接多台蓝牙设备,即实现多对一。同样地,也可以实现多台蓝牙设备连接一台触控设备,即实现一对多,其具有的连接情况可以根据实际情况进行连接。Wherein, optionally, the touch control device may display one or more devices to be connected for Bluetooth connection with the touch control device through a display interface. In this embodiment, one touch device can be connected to multiple Bluetooth devices, that is, many-to-one can be realized. Similarly, it is also possible to connect multiple Bluetooth devices to one touch device, that is, to realize one-to-many, and the connection status of the devices can be connected according to the actual situation.

在一可选实施例中,触控设备的显示界面上可以显示蓝牙列表,该蓝牙列表中包括一个或多个待连接的设备,当触控设备与蓝牙设备进行蓝牙配对,若配对成功后可以与蓝牙设备建立连接。其中,用户可以根据历史配对连接记录或者用户在显示界面上触发操作,确定出待连接的蓝牙设备,并与蓝牙设备进行配对连接。其具体地连接过程可以为:通过蓝牙,触控设备向蓝牙设备提供的HID条目的服务列表数据,当蓝牙设备去请求服务列表时,即可查询到触控设备的服务列表数据,从而根据服务列表数据建立连接。其配对连接过程可以按照现有方案技术中的具体实施方式,在此不再赘述。In an optional embodiment, a bluetooth list can be displayed on the display interface of the touch device, and the bluetooth list includes one or more devices to be connected. When the touch device is paired with the bluetooth device, if the pairing is successful, Establish a connection with a Bluetooth device. Among them, the user can determine the Bluetooth device to be connected according to the historical pairing connection record or the user triggers an operation on the display interface, and pair and connect with the Bluetooth device. The specific connection process may be: through Bluetooth, the touch device provides the service list data of the HID entry to the Bluetooth device, when the Bluetooth device requests the service list, the service list data of the touch device can be queried, so that according to the service list List data to establish a connection. The pairing and connection process can be performed according to the specific implementation manner in the prior art, which is not repeated here.

在实际应用中,触控设备要想与蓝牙设备进行蓝牙连接前,必须确保触控设备的蓝牙功能已开启,因此在获取与触控设备通过蓝牙相连接的蓝牙设备之前,还可以包括:获取与触控设备相对应的蓝牙开启请求,基于蓝牙开启请求控制触控设备启动蓝牙功能,以通过蓝牙与蓝牙设备建立连接。In practical applications, before the touch device wants to connect with the Bluetooth device, the Bluetooth function of the touch device must be enabled. Therefore, before acquiring the Bluetooth device connected to the touch device through Bluetooth, you can also include: acquiring The Bluetooth enable request corresponding to the touch device controls the touch device to enable the Bluetooth function based on the Bluetooth enable request, so as to establish a connection with the Bluetooth device through Bluetooth.

由于蓝牙连接具有低入侵、简单易用和安全等特性,因此本发明实施例中通过蓝牙与蓝牙设备进行连接,可以实现以低成本且安全的方式去连接其他蓝牙设备并控制操作这些设备。Since the Bluetooth connection has the characteristics of low intrusion, ease of use, and security, in the embodiment of the present invention, connecting with a Bluetooth device through Bluetooth can realize the low-cost and safe way to connect to other Bluetooth devices and control and operate these devices.

当触控设备与蓝牙设备成功建立连接之后,就可以通过触控设备对蓝牙设备进行控制。其具体的控制方式不做限定,技术人员可以根据实际情况进行控制,比如,可以通过确定与蓝牙设备相对应的可控参数,基于可控参数,在触控设备的显示界面显示与蓝牙设备相对应的操作控件,基于用户针对操作控件输入的执行操作,对蓝牙设备进行控制。After the touch device and the Bluetooth device are successfully connected, the Bluetooth device can be controlled through the touch device. The specific control method is not limited, and the technician can control it according to the actual situation. For example, by determining the controllable parameters corresponding to the Bluetooth device, based on the controllable parameters, the display interface of the touch device displays the display interface with the Bluetooth device. The corresponding operation control controls the Bluetooth device based on the execution operation input by the user with respect to the operation control.

为了实现对蓝牙设备进行控制操作,首先需要确定与蓝牙设备相对应的可控参数,然后基于可控参数,在触控设备的显示界面显示与蓝牙设备相对应的操作控件。其中,可控参数可以包括蓝牙设备所能够实现的功能参数、用于对蓝牙设备的运行状态进行调整的运行参数等参数。In order to realize the control operation of the Bluetooth device, it is necessary to first determine the controllable parameters corresponding to the Bluetooth device, and then based on the controllable parameters, display the operation controls corresponding to the Bluetooth device on the display interface of the touch device. The controllable parameters may include functional parameters that can be implemented by the Bluetooth device, operating parameters used to adjust the operating state of the Bluetooth device, and other parameters.

在本发明实施例中,确定与蓝牙设备相对应的可控参数的方式可以是当触控设备与蓝牙设备建立蓝牙连接时,获取蓝牙设备对应的可控参数,并可以根据实际应用需求确定出蓝牙设备对应的可控参数。例如,蓝牙设备为电视机,由于电视机的主要功能是进行视频的播放,因此可控参数可以为音量调节、视频播放等参数。In the embodiment of the present invention, the method of determining the controllable parameters corresponding to the Bluetooth device may be that when the touch device establishes a Bluetooth connection with the Bluetooth device, the controllable parameters corresponding to the Bluetooth device are obtained, and the controllable parameters corresponding to the Bluetooth device may be determined according to actual application requirements. Controllable parameters corresponding to the Bluetooth device. For example, the Bluetooth device is a TV. Since the main function of the TV is to play video, the controllable parameters may be parameters such as volume adjustment and video playback.

触控设备显示界面上的操作控件是基于可控参数来确定的,这样不同的蓝牙设备所对应的操作控件可以是相同的,也可以是不同的,可以根据实际需要以及蓝牙设备要实现的功能来确定。确定蓝牙设备对应的操作控件,这样可以实现在触控设备上点对点的控制蓝牙设备,相当于将蓝牙设备的控制键迁移到触控设备中。The operation controls on the display interface of the touch device are determined based on controllable parameters, so that the operation controls corresponding to different Bluetooth devices can be the same or different, and can be based on actual needs and the functions to be implemented by the Bluetooth device. to make sure. Determine the operation controls corresponding to the Bluetooth device, so that point-to-point control of the Bluetooth device can be realized on the touch device, which is equivalent to migrating the control keys of the Bluetooth device to the touch device.

基于可控参数,确定蓝牙设备对应的操作控件,并将操作控件显示在触控设备的显示界面中,以便用户在显示界面对操作控件进行触发操作。因此,触控设备可以作为蓝牙触摸屏来控制蓝牙设备,可以实现两个设备屏幕点对点的操作,也可以作为一个功能设备进行使用,使用起来简单方便且低成本。Based on the controllable parameters, the operation controls corresponding to the Bluetooth device are determined, and the operation controls are displayed on the display interface of the touch device, so that the user can trigger operations on the operation controls on the display interface. Therefore, the touch device can be used as a bluetooth touch screen to control the bluetooth device, can realize point-to-point operation of two device screens, and can also be used as a functional device, which is simple, convenient and low-cost to use.

结合图2示例性说明在触控设备的显示界面显示的操作控件。在图2中,假设蓝牙设备为电视机,想要使用触控设备对蓝牙设备电视机的音量进行控制,因此,可控参数可以为音量参数,基于可控参数,确定出操作控件即为音量调节按钮。Operation controls displayed on the display interface of the touch control device are exemplarily described with reference to FIG. 2 . In Figure 2, it is assumed that the Bluetooth device is a TV, and the touch device is to be used to control the volume of the Bluetooth device TV. Therefore, the controllable parameter can be the volume parameter. Based on the controllable parameter, it is determined that the operation control is the volume Adjust button.

基于用户针对操作控件输入的执行操作,对蓝牙设备进行控制。The Bluetooth device is controlled based on the execution operation input by the user for the operation control.

对蓝牙设备进行控制的具体实现方式可以为:基于用户针对操作控件输入的执行操作,生成人机交互报文,将人机交互报文发送至蓝牙设备,以使蓝牙设备基于人机交互报文执行相应操作。The specific implementation method of controlling the Bluetooth device may be: based on the execution operation input by the user for the operation control, generate a human-computer interaction message, and send the human-computer interaction message to the Bluetooth device, so that the Bluetooth device is based on the human-computer interaction message. Take the appropriate action.

具体地,在一实施例中,蓝牙设备可以通过查询蓝牙服务发现协议(ServiceDiscovery Protocol,简称SDP)后,与触控设备协商建立起通信通道,连接建立成功后,通过获取用户在触控设备的显示界面上的触摸输入等操作,并将该操作数据信息转换为蓝牙设备的操控信息。然后,基于操控信息生成符合规范的人机交互报文,通过通信通道将人机交互报文发送到蓝牙设备。蓝牙设备通过获取到人机交互报文之后,将产生相应的触控操作,从而实现了通过触控设备对蓝牙设备进行远程控制。Specifically, in one embodiment, the Bluetooth device may negotiate with the touch device to establish a communication channel by querying the Bluetooth Service Discovery Protocol (SDP), and after the connection is successfully established, obtain the user's information on the touch device Display operations such as touch input on the interface, and convert the operation data information into manipulation information of the Bluetooth device. Then, based on the manipulation information, a human-computer interaction message that conforms to the specification is generated, and the human-computer interaction message is sent to the Bluetooth device through the communication channel. After the Bluetooth device obtains the human-computer interaction message, it will generate a corresponding touch operation, thereby realizing the remote control of the Bluetooth device through the touch device.

当触控设备与蓝牙设备配对成功后并连接成功后,就可以建立通信通道,人机交互报文可以通过通信通道进行传输,其中通信通道可以为逻辑链路控制和适配协议(Logical Link Control and Adaptation Protocol,简称L2CAP)通道。并且建立的通信通道可以分为控制通道和中断通道,其控制报文可以通过控制通道进行传输发送,中断通道用于传输数据操作报文。同时,还可以基于通信通道的状态决定报文发送次数,为了确保蓝牙设备可以接收到人机交互报文,可以设置根据通信通道的状态确定人机交互报文的发送。After the touch device and the Bluetooth device are successfully paired and connected, a communication channel can be established, and human-computer interaction messages can be transmitted through the communication channel, where the communication channel can be the Logical Link Control and Adaptation Protocol (Logical Link Control Protocol). and Adaptation Protocol, referred to as L2CAP) channel. And the established communication channel can be divided into a control channel and an interrupt channel, the control messages can be transmitted and sent through the control channel, and the interrupt channel is used to transmit data operation messages. At the same time, the number of times of message sending can also be determined based on the state of the communication channel. In order to ensure that the Bluetooth device can receive the human-computer interaction message, it can be set to determine the sending of the human-computer interaction message according to the state of the communication channel.

蓝牙设备基于人机交互报文执行相应操作之后,还可以在触控设备上显示蓝牙设备所执行的具体操作,具体地,在触控设备的显示界面中显示蓝牙设备基于人机交互报文所执行的相应操作。这样不仅实现了触控设备远程控制蓝牙设备,同时还可以将蓝牙设备执行操作后的状态同步更新到触控设备中,以便用户查看连接状态。After the Bluetooth device performs the corresponding operation based on the human-computer interaction message, it can also display the specific operation performed by the Bluetooth device on the touch device. the corresponding action to perform. This not only enables the touch device to remotely control the Bluetooth device, but also simultaneously updates the state of the Bluetooth device after the operation is performed to the touch device, so that the user can check the connection state.

在一可选实施例中,触控设备还可以接收蓝牙设备发送的蓝牙断开请求,基于蓝牙断开请求与蓝牙设备断开连接。In an optional embodiment, the touch control device may also receive a Bluetooth disconnection request sent by the Bluetooth device, and disconnect from the Bluetooth device based on the Bluetooth disconnection request.

综上,触控设备对蓝牙设备进行设备控制时,首先可以获取蓝牙设备,其中蓝牙设备与触控设备通过蓝牙相连接。接着确定与蓝牙设备相对应的可控参数,并基于可控参数,在触控设备的显示界面显示与蓝牙设备相对应的操作控件。最后基于用户针对操作控件输入的执行操作,对蓝牙设备进行控制。在该方案中,通过蓝牙与蓝牙设备进行连接,并基于用户针对操作控件输入的执行操作,实现了对蓝牙设备的控制,这样可以以低成本且安全的方式去连接其他蓝牙设备并控制操作这些设备,使用起来简单方便。To sum up, when the touch device performs device control on the Bluetooth device, the Bluetooth device can be obtained first, wherein the Bluetooth device and the touch device are connected through Bluetooth. Next, the controllable parameters corresponding to the Bluetooth device are determined, and based on the controllable parameters, the operation controls corresponding to the Bluetooth device are displayed on the display interface of the touch device. Finally, the Bluetooth device is controlled based on the execution operation input by the user for the operation control. In this solution, the Bluetooth device is connected to the Bluetooth device, and the control of the Bluetooth device is realized based on the user's execution of the operation control input, so that other Bluetooth devices can be connected and controlled in a low-cost and safe way. The device is simple and convenient to use.

在获取与触控设备通过蓝牙相连接的蓝牙设备之前,还可以检测触控设备是否支持通过人机交互操作对蓝牙设备进行控制,若支持,则允许获取与触控设备通过蓝牙相连接的蓝牙设备,若不支持,则禁止获取与触控设备通过蓝牙相连接的蓝牙设备。Before acquiring the Bluetooth device connected to the touch device through Bluetooth, it is also possible to detect whether the touch device supports the control of the Bluetooth device through human-computer interaction. If the device is not supported, it is forbidden to obtain the Bluetooth device connected to the touch device through Bluetooth.

图3为本发明实施例提供的另一种设备控制方法的流程示意图;该方法的执行主体为触控设备,如图3所示,该方法可以包括如下步骤:FIG. 3 is a schematic flowchart of another device control method provided by an embodiment of the present invention; the execution body of the method is a touch device. As shown in FIG. 3 , the method may include the following steps:

301、检测触控设备是否支持通过人机交互操作对蓝牙设备进行控制,若不支持则执行步骤302,若支持则直接执行步骤304。301. Detect whether the touch control device supports the control of the Bluetooth device through human-computer interaction operation, and if not, execute step 302, and if it supports, execute step 304 directly.

302、获取与触控设备相对应的蓝牙服务发现协议。302. Acquire a Bluetooth service discovery protocol corresponding to the touch device.

303、将用于实现人机交互操作的人机交互协议写入蓝牙服务发现协议中,以使得触控设备支持通过人机交互操作对蓝牙设备进行控制。303. Write the human-computer interaction protocol for realizing the human-computer interaction operation into the Bluetooth service discovery protocol, so that the touch device supports controlling the Bluetooth device through the human-computer interaction operation.

304、接收蓝牙设备发送的蓝牙连接请求。304. Receive a Bluetooth connection request sent by the Bluetooth device.

305、若在触控设备中查询到服务列表数据,则基于蓝牙连接请求和服务列表数据与蓝牙设备建立连接。305. If the service list data is queried in the touch device, establish a connection with the Bluetooth device based on the Bluetooth connection request and the service list data.

306、确定与蓝牙设备相对应的可控参数。306. Determine controllable parameters corresponding to the Bluetooth device.

307、基于可控参数,在触控设备的显示界面显示与蓝牙设备相对应的操作控件。307. Based on the controllable parameters, display an operation control corresponding to the Bluetooth device on the display interface of the touch device.

308、基于用户针对操作控件输入的执行操作,对蓝牙设备进行控制。308. Control the Bluetooth device based on the execution operation input by the user with respect to the operation control.

在本发明实施例中,触控设备与蓝牙设备通过蓝牙相连接,并通过人机交互操作对蓝牙设备进行控制。因此,在与蓝牙设备进行蓝牙连接之前,需要检测触控设备是否支持通过人机交互操作对蓝牙设备进行控制,若支持则直接接收蓝牙设备发送的蓝牙连接请求,并且若在触控设备中查询到服务列表数据,则基于蓝牙连接请求和服务列表数据与蓝牙设备建立连接。成功建立连接之后,确定与蓝牙设备相对应的可控参数。然后,基于可控参数,在触控设备的显示界面显示与蓝牙设备相对应的操作控件。最后,基于用户针对操作控件输入的执行操作,对蓝牙设备进行控制。其详细的执行过程参考上述实施例,在此不再赘述。若不支持,则禁止接收蓝牙设备发送的蓝牙连接请求。即当不支持触控设备通过人机交互的操作对蓝牙设备进行控制时,不再接收蓝牙设备发送的蓝牙连接请求,而是先在触控设备中注册人机交互服务协议,使得触控设备具有蓝牙人机交互的功能,并作为从机使用。In the embodiment of the present invention, the touch control device and the Bluetooth device are connected through Bluetooth, and the Bluetooth device is controlled through a human-computer interaction operation. Therefore, before making a Bluetooth connection with a Bluetooth device, it is necessary to detect whether the touch device supports the control of the Bluetooth device through human-computer interaction. To the service list data, a connection is established with the Bluetooth device based on the Bluetooth connection request and the service list data. After the connection is successfully established, the controllable parameters corresponding to the Bluetooth device are determined. Then, based on the controllable parameters, an operation control corresponding to the Bluetooth device is displayed on the display interface of the touch device. Finally, the Bluetooth device is controlled based on the execution operation input by the user with respect to the operation control. For the detailed execution process, refer to the above-mentioned embodiments, which will not be repeated here. If it is not supported, it is forbidden to receive the Bluetooth connection request sent by the Bluetooth device. That is, when the touch device does not support the control of the Bluetooth device through the operation of human-computer interaction, the Bluetooth connection request sent by the Bluetooth device is no longer received, but the human-computer interaction service protocol is first registered in the touch device, so that the touch device It has the function of Bluetooth human-computer interaction and is used as a slave.

具体地,当检测到触控设备不支持通过人机交互操作对蓝牙设备进行控制时,首先需要获取与触控设备相对应的蓝牙服务发现协议,接着将用于实现人机交互操作的人机交互协议写入蓝牙服务发现协议中,以使得触控设备支持通过人机交互操作对蓝牙设备进行控制。Specifically, when it is detected that the touch device does not support the control of the Bluetooth device through human-computer interaction, it is first necessary to obtain the Bluetooth service discovery protocol corresponding to the touch device, and then the human-computer interface used to realize the human-computer interaction needs to be obtained. The interaction protocol is written into the Bluetooth service discovery protocol, so that the touch device supports the control of the Bluetooth device through human-computer interaction.

可选地,在一实施例中,人机交互协议写入蓝牙服务协议中的实现方式可以为:HID服务条目注册到蓝牙SDP服务,通过调用触控设备中的SDP服务中的函数,将HID服务条目写入SDP服务中。人机交互协议写入蓝牙服务发现协议的具体详细实现过程可以参考现有方案技术中的具体实施方法,在此不再赘述。其中,HID服务条目主要为HID描述符,其用于描述设备的从属特性。Optionally, in an embodiment, the implementation of the human-computer interaction protocol into the Bluetooth service protocol may be: HID service entry is registered in the Bluetooth SDP service, and the HID The service entry is written to the SDP service. For the specific and detailed implementation process of writing the human-computer interaction protocol into the Bluetooth service discovery protocol, reference may be made to specific implementation methods in the prior art, and details are not described herein again. Among them, the HID service entry is mainly a HID descriptor, which is used to describe the subordinate characteristics of the device.

另外,当触控设备与蓝牙设备建立连接之后,获取蓝牙设备相对应的可控参数,基于可控参数,在触控设备的显示界面显示与蓝牙设备相对应的操作控件。在本发明实施例中不对操作控件做具体的限定,可以根据实际情况进行设定,例如操作控件可以是按钮、文字等形式。然后,基于用户针对操作控件输入的执行操作,对蓝牙设备进行控制。In addition, after the touch device is connected to the Bluetooth device, the controllable parameters corresponding to the Bluetooth device are obtained, and based on the controllable parameters, the operation controls corresponding to the Bluetooth device are displayed on the display interface of the touch device. The operation controls are not specifically limited in the embodiments of the present invention, and may be set according to actual conditions. For example, the operation controls may be in the form of buttons, text, and the like. Then, based on the execution operation input by the user with respect to the operation control, the Bluetooth device is controlled.

综上,当触控设备想要对蓝牙设备进行控制操作时,首先要检测触控设备是否支持通过人机交互操作对蓝牙设备进行控制,若不支持,则获取与触控设备相对应的蓝牙服务发现协议,并将用于实现人机交互操作的人机交互协议写入蓝牙服务发现协议中,以使得触控设备支持通过人机交互操作对蓝牙设备进行控制。接着获取蓝牙设备,确定与蓝牙设备相对应的可控参数,并基于可控参数,在触控设备的显示界面显示与蓝牙设备相对应的操作控件。最后基于用户针对操作控件输入的执行操作,对蓝牙设备进行控制。在该方案中,通过蓝牙与蓝牙设备进行连接,并基于用户针对操作控件输入的执行操作,实现了对蓝牙设备的控制,这样可以以低成本且安全的方式去连接其他蓝牙设备并控制操作这些设备,使用起来简单方便。To sum up, when the touch device wants to control the Bluetooth device, it must first detect whether the touch device supports the control of the Bluetooth device through human-computer interaction. If not, obtain the Bluetooth corresponding to the touch device. The service discovery protocol is written, and the human-computer interaction protocol for realizing the human-computer interaction operation is written into the Bluetooth service discovery protocol, so that the touch device supports the control of the Bluetooth device through the human-computer interaction operation. Next, the Bluetooth device is acquired, the controllable parameters corresponding to the Bluetooth device are determined, and based on the controllable parameters, the operation controls corresponding to the Bluetooth device are displayed on the display interface of the touch device. Finally, the Bluetooth device is controlled based on the execution operation input by the user for the operation control. In this solution, the Bluetooth device is connected to the Bluetooth device, and the control of the Bluetooth device is realized based on the user's execution of the operation control input, so that other Bluetooth devices can be connected and controlled in a low-cost and safe way. The device is simple and convenient to use.

本实施例中未展开描述的相关内容,可以参考前述实施例中的相关说明,在此不赘述。For related content that is not described in this embodiment, reference may be made to the related descriptions in the foregoing embodiments, which will not be repeated here.

为了便于理解,结合图4进行实例性说明。在图4中,为一会议场景,触控设备为一计算机,蓝牙设备为另一计算机,触控设备通过蓝牙与蓝牙设备进行连接,并且蓝牙设备将内容共享到触控设备上进行内容展示,并可以在触控设备上对蓝牙设备上共享的内容进行修改等操作,实现了触控设备对蓝牙设备进行控制,其具体地实现过程为:首先要检测触控设备是否支持通过人机交互操作对蓝牙设备进行控制,若支持则直接获取蓝牙设备。若不支持,则获取与触控设备相对应的蓝牙服务发现协议,并将用于实现人机交互操作的人机交互协议写入蓝牙服务发现协议中,以使得触控设备支持通过人机交互操作对蓝牙设备进行控制。然后与蓝牙设备建立蓝牙连接,确定与蓝牙设备相对应的可控参数为文字编辑,并基于可控参数,在触控设备的显示界面显示与蓝牙设备相对应的文字编辑操作控件。接着用户在显示界面上触发的文字编辑操作,并将该操作数据信息转换为蓝牙设备的操控信息。然后,基于操控信息生成符合规范的人机交互报文,通过通信通道将人机交互报文发送到蓝牙设备。蓝牙设备通过获取到人机交互报文之后,将产生相应的触控操作。并在触控设备的显示界面中显示蓝牙设备基于人机交互报文所执行的相应操作。For ease of understanding, an example description is given with reference to FIG. 4 . In FIG. 4, it is a conference scene, the touch device is a computer, the Bluetooth device is another computer, the touch device is connected with the Bluetooth device through Bluetooth, and the Bluetooth device shares the content to the touch device for content display, And can modify the content shared on the bluetooth device on the touch device, and realize the touch device to control the bluetooth device. Control the bluetooth device, and directly obtain the bluetooth device if it is supported. If it is not supported, obtain the Bluetooth service discovery protocol corresponding to the touch device, and write the human-computer interaction protocol for realizing human-computer interaction into the Bluetooth service discovery protocol, so that the touch device supports the human-computer interaction through human-computer interaction. Action controls the Bluetooth device. Then establish a Bluetooth connection with the Bluetooth device, determine the controllable parameters corresponding to the Bluetooth device as text editing, and display text editing operation controls corresponding to the Bluetooth device on the display interface of the touch device based on the controllable parameters. Then, the user triggers a text editing operation on the display interface, and converts the operation data information into manipulation information of the Bluetooth device. Then, based on the manipulation information, a human-computer interaction message that conforms to the specification is generated, and the human-computer interaction message is sent to the Bluetooth device through the communication channel. After the Bluetooth device obtains the human-computer interaction message, it will generate a corresponding touch operation. The corresponding operations performed by the Bluetooth device based on the human-computer interaction message are displayed on the display interface of the touch device.

图5为本发明实施例提供的另一种设备控制方法的流程示意图;该方法的执行主体为蓝牙设备,如图5所示,该方法可以包括如下步骤:FIG. 5 is a schematic flowchart of another device control method provided by an embodiment of the present invention; the execution subject of the method is a Bluetooth device. As shown in FIG. 5 , the method may include the following steps:

501、获取能够搜索到的至少一个触控设备,触控设备中的蓝牙服务发现协议中包括用于实现人机交互操作的人机交互协议。501. Acquire at least one touch-control device that can be searched, and the Bluetooth service discovery protocol in the touch-control device includes a human-computer interaction protocol for implementing a human-computer interaction operation.

502、向至少一个触控设备发送蓝牙连接请求,以基于蓝牙连接请求与触控设备建立通信连接。502. Send a Bluetooth connection request to at least one touch device, so as to establish a communication connection with the touch device based on the Bluetooth connection request.

503、接收触控设备发出的控制指令。503. Receive a control instruction sent by the touch control device.

504、基于控制指令执行相对应的操作。504. Execute a corresponding operation based on the control instruction.

本发明实施例提供的方案的一些步骤的具体执行过程可以参考前述其他实施例中的相关说明,在此不赘述。For the specific execution process of some steps of the solutions provided by the embodiments of the present invention, reference may be made to the relevant descriptions in the foregoing other embodiments, and details are not described herein.

以下将详细描述本发明的一个或多个实施例的数据存储装置。本领域技术人员可以理解,这些装置均可使用市售的硬件组件通过本方案所教导的步骤进行配置来构成。The data storage device of one or more embodiments of the present invention will be described in detail below. Those skilled in the art can understand that these devices can be configured by using commercially available hardware components through the steps taught in this solution.

图6为本发明实施例提供的一种设备控制装置的结构示意图,该装置位于一控制设备,如图6所示,该装置包括:获取模块11、写入模块12、接收模块13、查询模块14、控制模块15。FIG. 6 is a schematic structural diagram of a device control device provided by an embodiment of the present invention. The device is located in a control device. As shown in FIG. 6 , the device includes: an acquisition module 11 , a writing module 12 , a receiving module 13 , and a query module 14. Control module 15.

获取模块11,用于获取与触控设备相对应的蓝牙服务发现协议。The acquiring module 11 is configured to acquire the Bluetooth service discovery protocol corresponding to the touch device.

写入模块12,用于将用于实现人机交互操作的人机交互协议写入蓝牙服务发现协议中,以使得触控设备具有蓝牙人机交互的功能。The writing module 12 is used for writing the human-computer interaction protocol for realizing the human-computer interaction operation into the Bluetooth service discovery protocol, so that the touch device has the function of Bluetooth human-computer interaction.

接收模块13,用于接收蓝牙设备发送的蓝牙连接请求。The receiving module 13 is configured to receive the Bluetooth connection request sent by the Bluetooth device.

查询模块14,用于若在所述触控设备中查询到服务列表数据,则基于所述蓝牙连接请求和服务列表数据与蓝牙设备建立连接。The query module 14 is configured to establish a connection with the Bluetooth device based on the Bluetooth connection request and the service list data if the service list data is queried in the touch control device.

控制模块15,用于通过所述触控设备对所述蓝牙设备进行控制。The control module 15 is configured to control the Bluetooth device through the touch device.

可选地,所述控制模块15具体可以用于:确定与所述蓝牙设备相对应的可控参数;基于所述可控参数,在所述触控设备的显示界面显示与所述蓝牙设备相对于的操作控件;基于用户针对所述操作控件输入的执行操作,对所述蓝牙设备进行控制。Optionally, the control module 15 can be specifically configured to: determine controllable parameters corresponding to the Bluetooth device; and control the Bluetooth device based on the execution operation input by the user with respect to the operation control.

可选地,所述接收模块13之前还可以包括开启模块,具体可以用于:Optionally, the receiving module 13 may further include an opening module, which may be specifically used for:

获取与所述触控设备相对应的蓝牙开启请求;基于所述蓝牙开启请求控制所述触控设备启动蓝牙功能,以通过蓝牙与蓝牙设备建立连接。Acquiring a Bluetooth turn-on request corresponding to the touch-control device; and controlling the touch-control device to start a Bluetooth function based on the Bluetooth turn-on request, so as to establish a connection with the Bluetooth device through Bluetooth.

可选地,所述控制模块15具体还可以用于:Optionally, the control module 15 can also be specifically used for:

基于用户针对所述操作控件输入的执行操作,生成人机交互报文;将所述人机交互报文发送至蓝牙设备,以使所述蓝牙设备基于所述人机交互报文执行相应操作。Based on the execution operation input by the user on the operation control, a human-computer interaction message is generated; the human-computer interaction message is sent to a Bluetooth device, so that the Bluetooth device performs a corresponding operation based on the human-computer interaction message.

可选地,所述装置还可以包括显示模块,具体可以用于:Optionally, the device may further include a display module, which may be specifically used for:

在所述触控设备的显示界面中显示所述蓝牙设备基于所述人机交互报文所执行的相应操作。The corresponding operation performed by the Bluetooth device based on the human-computer interaction message is displayed on the display interface of the touch control device.

可选地,所述装置还包括请求模块,具体可以用于:接收蓝牙设备发送的蓝牙断开请求;基于所述蓝牙断开请求与所述蓝牙设备断开连接。Optionally, the apparatus further includes a request module, which can be specifically configured to: receive a Bluetooth disconnection request sent by a Bluetooth device; and disconnect from the Bluetooth device based on the Bluetooth disconnection request.

图6所示装置可以执行前述实施例中触控设备执行的步骤,详细的执行过程和技术效果参见前述实施例中的描述,在此不再赘述。The apparatus shown in FIG. 6 can execute the steps executed by the touch control device in the foregoing embodiments. For the detailed execution process and technical effects, refer to the descriptions in the foregoing embodiments, which will not be repeated here.

在一个可能的设计中,上述图6所示设备控制装置的结构可实现为一电子设备,如图7所示,该电子设备可以包括:第一处理器21、第一存储器22、第一通信接口23。其中,第一存储器22上存储有可执行代码,当所述可执行代码被第一处理器21执行时,使第一处理器21至少可以实现如前述实施例中触控设备执行的步骤。In a possible design, the structure of the device control apparatus shown in FIG. 6 may be implemented as an electronic device. As shown in FIG. 7 , the electronic device may include: a first processor 21 , a first memory 22 , a first communication device interface 23. The first memory 22 stores executable codes, and when the executable codes are executed by the first processor 21, the first processor 21 can at least implement the steps performed by the touch device in the foregoing embodiments.

另外,本发明实施例提供了一种非暂时性机器可读存储介质,所述非暂时性机器可读存储介质上存储有可执行代码,当所述可执行代码被电子设备的处理器执行时,使所述处理器至少可以实现如前述实施例中提供的设备控制方法。In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium, where executable codes are stored on the non-transitory machine-readable storage medium, and when the executable codes are executed by a processor of an electronic device , so that the processor can at least implement the device control method provided in the foregoing embodiment.

图8为本发明实施例提供的一种设备控制装置的结构示意图,该装置位于蓝牙设备,如图8所示,该装置包括:搜索模块31、发送模块32、获取模块33、执行模块34。FIG. 8 is a schematic structural diagram of a device control device provided by an embodiment of the present invention. The device is located in a Bluetooth device. As shown in FIG.

搜索模块31,用于获取能够搜索到的至少一个触控设备,所述触控设备中的蓝牙服务发现协议中包括用于实现人机交互操作的人机交互协议;The search module 31 is configured to acquire at least one touch-control device that can be searched, and the Bluetooth service discovery protocol in the touch-control device includes a human-computer interaction protocol for realizing human-computer interaction operation;

发送模块32,用于向至少一个触控设备发送蓝牙连接请求,以基于所述蓝牙连接请求与触控设备建立通信连接;a sending module 32, configured to send a Bluetooth connection request to at least one touch device, so as to establish a communication connection with the touch device based on the Bluetooth connection request;

获取模块33,用于接收所述触控设备发出的控制指令;an acquisition module 33, configured to receive a control instruction sent by the touch control device;

执行模块34,用于基于所述控制指令执行相对应的操作。The execution module 34 is configured to execute a corresponding operation based on the control instruction.

图8所示装置可以执行前述实施例中蓝牙设备执行的步骤,详细的执行过程和技术效果参见前述实施例中的描述,在此不再赘述。The apparatus shown in FIG. 8 can perform the steps performed by the Bluetooth device in the foregoing embodiments. For the detailed execution process and technical effects, refer to the descriptions in the foregoing embodiments, which are not repeated here.

在一个可能的设计中,上述图8所示设备控制装置的结构可实现为一被控设备,如图9所示,该设备可以包括:处理器41、存储器42、通信接口43。其中,存储器42上存储有可执行代码,当所述可执行代码被处理器41执行时,使处理器41至少可以实现如前述实施例中蓝牙设备执行的步骤。In a possible design, the structure of the device control apparatus shown in FIG. 8 may be implemented as a controlled device. As shown in FIG. 9 , the device may include: a processor 41 , a memory 42 , and a communication interface 43 . The memory 42 stores executable codes, and when the executable codes are executed by the processor 41, the processor 41 can at least implement the steps performed by the Bluetooth device in the foregoing embodiments.

另外,本发明实施例提供了一种非暂时性机器可读存储介质,所述非暂时性机器可读存储介质上存储有可执行代码,当所述可执行代码被设备的处理器执行时,使所述处理器至少可以实现如前述实施例中提供的设备控制方法。In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium, where executable codes are stored on the non-transitory machine-readable storage medium, and when the executable codes are executed by a processor of a device, The processor is made to implement at least the device control method as provided in the foregoing embodiments.

以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The apparatus embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助加必需的通用硬件平台的方式来实现,当然也可以通过硬件和软件结合的方式来实现。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以计算机产品的形式体现出来,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。From the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and certainly can also be implemented by combining hardware and software. Based on this understanding, the above-mentioned technical solutions can be embodied in the form of computer products in essence or that make contributions to the prior art. In the form of a computer program product embodied on a medium including, but not limited to, disk storage, CD-ROM, optical storage, and the like.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: it can still be The technical solutions described in the foregoing embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (12)

1. The device control method is applied to touch devices and comprises the following steps:
acquiring a Bluetooth service discovery protocol corresponding to the touch equipment;
writing a human-computer interaction protocol for realizing human-computer interaction operation into a Bluetooth service discovery protocol so that the touch control equipment has a Bluetooth human-computer interaction function;
receiving a Bluetooth connection request sent by Bluetooth equipment;
if the service list data is inquired in the touch equipment, connection is established with the Bluetooth equipment based on the Bluetooth connection request and the service list data;
and controlling the Bluetooth equipment through the touch equipment.
2. The method of claim 1, wherein the controlling the bluetooth device by the touch device comprises:
determining controllable parameters corresponding to the Bluetooth device;
based on the controllable parameters, displaying an operation control corresponding to the Bluetooth equipment on a display interface of the touch equipment;
and controlling the Bluetooth equipment based on the execution operation input by the user aiming at the operation control.
3. The method of claim 1, wherein prior to receiving the bluetooth connection request sent by the bluetooth device, the method further comprises:
acquiring a Bluetooth starting request corresponding to the touch equipment;
and controlling the touch control equipment to start a Bluetooth function based on the Bluetooth starting request so as to establish connection with Bluetooth equipment through Bluetooth.
4. The method of claim 2, wherein the controlling the bluetooth device based on the user's performed operation input with respect to the operation control comprises:
generating a human-computer interaction message based on an execution operation input by a user aiming at the operation control;
and sending the human-computer interaction message to Bluetooth equipment so that the Bluetooth equipment executes corresponding operation based on the human-computer interaction message.
5. The method of claim 1, further comprising:
and displaying corresponding operation executed by the Bluetooth equipment based on the human-computer interaction message in a display interface of the touch equipment.
6. The method of claim 1, further comprising:
receiving a Bluetooth disconnection request sent by Bluetooth equipment;
disconnecting from the Bluetooth device based on the Bluetooth disconnection request.
7. A device control method, applied to a Bluetooth device, includes:
acquiring at least one touch device which can be searched, wherein a Bluetooth service discovery protocol in the touch device comprises a human-computer interaction protocol for realizing human-computer interaction operation;
sending a Bluetooth connection request to the at least one touch device to establish communication connection with the touch device based on the Bluetooth connection request;
receiving a control instruction sent by the touch equipment;
and executing corresponding operation based on the control instruction.
8. The device control apparatus, located on a touch device, includes:
the acquisition module is used for acquiring a Bluetooth service discovery protocol corresponding to the touch equipment;
the writing module is used for writing a human-computer interaction protocol for realizing human-computer interaction operation into a Bluetooth service discovery protocol so that the touch equipment has a Bluetooth human-computer interaction function;
the receiving module is used for receiving a Bluetooth connection request sent by the Bluetooth equipment;
the inquiry module is used for establishing connection with the Bluetooth equipment based on the Bluetooth connection request and the service list data if the service list data is inquired in the touch equipment;
and the control module is used for controlling the Bluetooth equipment through the touch equipment.
9. An apparatus control device, located in a bluetooth device, comprising:
the searching module is used for acquiring at least one touch device which can be searched, and a Bluetooth service discovery protocol in the touch device comprises a human-computer interaction protocol for realizing human-computer interaction operation;
the sending module is used for sending a Bluetooth connection request to at least one touch device so as to establish communication connection with the touch device based on the Bluetooth connection request;
the acquisition module is used for acquiring a control instruction through the touch control equipment;
and the execution module is used for executing corresponding operation based on the control instruction.
10. A control apparatus, characterized by comprising: a memory, a processor, a communication interface; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to perform the device control method of any one of claims 1 to 6.
11. An apparatus to be controlled, comprising: a memory, a processor, a communication interface; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to perform the device control method as claimed in claim 7.
12. A non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor, causes the processor to perform the device control method of any one of claims 1 to 7.
CN202210190475.6A 2022-02-28 2022-02-28 Device control method, device and storage medium Pending CN114827166A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210190475.6A CN114827166A (en) 2022-02-28 2022-02-28 Device control method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210190475.6A CN114827166A (en) 2022-02-28 2022-02-28 Device control method, device and storage medium

Publications (1)

Publication Number Publication Date
CN114827166A true CN114827166A (en) 2022-07-29

Family

ID=82528528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210190475.6A Pending CN114827166A (en) 2022-02-28 2022-02-28 Device control method, device and storage medium

Country Status (1)

Country Link
CN (1) CN114827166A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179302A (en) * 2006-11-09 2008-05-14 中兴通讯股份有限公司 Method for bluetooth telephone terminal equipment to implement bluetooth earphone application
CN102340607A (en) * 2010-07-20 2012-02-01 德信无线通讯科技(上海)有限公司 Game remote control method based on mobile phone
CN107889092A (en) * 2017-11-30 2018-04-06 广东欧珀移动通信有限公司 Bluetooth devices control method, device, terminal device and storage medium
US20190037526A1 (en) * 2017-07-28 2019-01-31 Guangdong Oppo Mobile Telecommunications Cor., Ltd. Method, terminal device and computer-readable storage medium for wireless connection
CN110188848A (en) * 2019-05-29 2019-08-30 江苏智联天地科技有限公司 A Bluetooth HID system and method for laser scanning code data based on Android devices

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179302A (en) * 2006-11-09 2008-05-14 中兴通讯股份有限公司 Method for bluetooth telephone terminal equipment to implement bluetooth earphone application
CN102340607A (en) * 2010-07-20 2012-02-01 德信无线通讯科技(上海)有限公司 Game remote control method based on mobile phone
US20190037526A1 (en) * 2017-07-28 2019-01-31 Guangdong Oppo Mobile Telecommunications Cor., Ltd. Method, terminal device and computer-readable storage medium for wireless connection
CN107889092A (en) * 2017-11-30 2018-04-06 广东欧珀移动通信有限公司 Bluetooth devices control method, device, terminal device and storage medium
CN110188848A (en) * 2019-05-29 2019-08-30 江苏智联天地科技有限公司 A Bluetooth HID system and method for laser scanning code data based on Android devices

Similar Documents

Publication Publication Date Title
CN111459433B (en) Screen transmission method, device and storage medium
US20190306277A1 (en) Interaction between devices displaying application status information
KR102297475B1 (en) Terminal for internet of things and operation method of the same
US9706015B2 (en) Multi-operating system input device
US9024734B2 (en) Remote control device, a far-end device, a multimedia system and a control method thereof
US10820295B2 (en) Method, terminal device and computer-readable storage medium for wireless connection
JP2022538081A (en) Screen sharing processing method, device, equipment and storage medium
US8798543B2 (en) Easily operated wireless data transmission/reception system and easily operated wireless data transmission/reception program
WO2022156606A1 (en) Information processing method and apparatus, and electronic device
JP2023516449A (en) Information processing method, device and storage medium
WO2018090720A1 (en) Method and apparatus for plug and play screen mirroring
WO2021078215A1 (en) Method for cross-terminal switching of cloud game and related device
CN113590567A (en) Conference data sharing method and conference data sharing system
CN110007822A (en) Interface display method and terminal device
TW201730739A (en) Information interaction method and device
WO2018090722A1 (en) Method and apparatus for realizing wired screen delivery
WO2025011179A1 (en) Data transmission method, apparatus, medium and device
WO2024045985A1 (en) Screen control method, screen control apparatus, electronic device, program, and medium
CN109491670A (en) A kind of page display method and terminal device
CN106034251A (en) Method and device for controlling a set-top box
CN105376318A (en) File transmission method, device and system
WO2024139279A1 (en) Access control list rule configuration method and apparatus, electronic device, and storage medium
CN114827166A (en) Device control method, device and storage medium
US20160203383A1 (en) Method apparatus and program product for enabling two or more electronic devices to perform operations based on a common subject
JP7475476B2 (en) Information processing method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20220729

RJ01 Rejection of invention patent application after publication