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
equipment
touch
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 and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a device control method, apparatus, device, and storage medium.
Background
With the rise of human-computer interaction equipment, people begin to use the human-computer interaction equipment for remote control in more and more scenes. A Human Interface Device or Human Interface Device (HID) is a computer Device commonly used by humans, which takes input from and outputs to humans. Common HID devices are a mouse, a keyboard, a touch screen, and the like.
In a conventional scheme, an electronic device is connected and controlled through a network or a data line, so that content on the electronic device is shared on a public display device, and displayed content can be operated on the public display device. However, the method has great use limitation, a network environment or a portable data line needs to be ensured, and a certain requirement is also imposed on a used platform, namely Android (Android) equipment needs to be used for the Android equipment, the Android equipment needs higher system authority, barrier-free service needs to be started, and thus the Android system is in an unsafe environment and is easy to be attacked by viruses.
Disclosure of Invention
The embodiment of the invention provides a device control method, a device, equipment and a storage medium, which are used for realizing point-to-point connection control of other Bluetooth devices in a low-cost and safe manner.
In a first aspect, an embodiment of the present invention provides an apparatus control method, which is applied to a touch apparatus, and the method includes:
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.
Optionally, the controlling the bluetooth device by the touch device includes:
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.
Optionally, before receiving the bluetooth connection request sent by the bluetooth device, the method further includes:
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 the Bluetooth equipment through Bluetooth.
Optionally, the controlling the bluetooth device based on the execution operation input by the user for the operation control includes:
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.
Optionally, the method further comprises:
and displaying corresponding operation executed by the Bluetooth equipment based on the human-computer interaction message in a display interface of the touch equipment.
Optionally, the method further comprises:
and displaying corresponding operation executed by the Bluetooth equipment based on the human-computer interaction message in a display interface of the touch equipment.
In a second aspect, an embodiment of the present invention provides an apparatus control device, located in a touch device, where the apparatus 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.
Optionally, the control module may be specifically configured to:
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.
Optionally, the receiving module may further include an opening module in front of the receiving module, and specifically may be configured to:
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 the Bluetooth equipment through Bluetooth.
Optionally, the control module may be further specifically configured to:
generating a human-computer interaction message based on the execution operation input by the 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.
Optionally, the apparatus may further include a display module, which may be specifically configured to:
and displaying corresponding operations executed by the Bluetooth equipment based on the man-machine interaction message in a display interface of the touch equipment.
Optionally, the apparatus further includes a request module, which may be specifically configured to:
receiving a Bluetooth disconnection request sent by Bluetooth equipment;
disconnect from the Bluetooth device based on the Bluetooth disconnect request.
In a third aspect, an embodiment of the present invention provides a control apparatus, including: 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 implement at least the device control method of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of a regulating device, causes the processor to implement at least the device control method according to the first aspect.
In a fifth aspect, an embodiment of the present invention provides an apparatus control method, which is applied to a bluetooth apparatus, and the method 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 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.
In a sixth aspect, an embodiment of the present invention provides an apparatus for controlling a device, where the apparatus is located in a bluetooth device, and the apparatus includes:
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 receiving a control instruction sent by the touch equipment;
and the execution module is used for executing 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, a communication interface; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to implement at least the packet compression method of the fifth aspect.
In an eighth aspect, the present invention provides a non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of a computing device, causes the processor to implement at least the device control method according to the fifth aspect.
The device control scheme provided by the embodiment of the invention can be suitable for touch devices and Bluetooth devices, and for any touch device, firstly, a Bluetooth service discovery protocol corresponding to the touch device is obtained, and a human-computer interaction protocol for realizing human-computer interaction operation is written into the Bluetooth service discovery protocol, so that the touch device has a Bluetooth human-computer interaction function. And then, receiving a Bluetooth connection request sent by the Bluetooth equipment, inquiring service list data in the touch 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.
In the above scheme, the touch device has a slave function by writing a human-computer interaction protocol in a bluetooth service protocol in the touch device, so that the touch device is searched by the bluetooth device. And the connection with the Bluetooth equipment is established based on the service list in the man-machine interaction service protocol, so that the Bluetooth equipment can be connected and controlled to operate in a low-cost and safe mode, and the use is simple and convenient.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a flowchart of an apparatus control method according to an embodiment of the present invention;
fig. 2 is an application schematic diagram of an operation control displayed on a display interface of a touch device according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of another apparatus control method according to an embodiment of the present invention;
fig. 4 is a schematic application diagram of a device control method according to an embodiment of the present invention;
fig. 5 is a schematic flowchart of another apparatus control method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus control device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device corresponding to the device control apparatus provided in the embodiment shown in fig. 6;
fig. 8 is a schematic structural diagram of an apparatus control device according to an embodiment of the present invention;
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 Description
In order to make the objects, 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 drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, and "a" and "an" generally include at least two, but do not exclude at least one, unless the context clearly dictates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
Depending on the context, the words "if," "if," and "as used herein may be interpreted as" at … … "or" at … …. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a good or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such good or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a commodity or system that includes the element.
In addition, the sequence of steps in the embodiments of the methods described below is merely an example, and is not strictly limited.
In some scenes such as conferences or teaching, it is often necessary for one device area to control another device, for example, content presentation is performed by using a common display device, content presentation needs to be performed in a remote control mode or content on the device itself needs to be shared on the common display device for presentation, and control operation is performed on the shared content on the common display device. In addition, in practical application, devices such as a keyboard, a mouse or a remote controller can not be used suddenly, and at this time, one electronic device can be used as the keyboard, the mouse or the remote controller to control the devices. Based on this, the embodiment of the invention provides a solution, which can use bluetooth to perform remote wireless connection in a close-range scene, so that the touch device can perform remote control operation on the bluetooth device.
The device control method provided by the embodiment of the invention can be executed by an electronic device, and the electronic device can be a terminal device such as a PC (personal computer), a notebook computer, a smart phone and the like. The following is an exemplary description of a process of device control performed by the touch device.
Fig. 1 is a flowchart of an apparatus control method according to an embodiment of the present invention. The method can be applied to touch equipment, in this embodiment, an execution main body of the method can be the touch equipment, and the touch equipment can be electronic equipment such as a mobile phone, a tablet, an intelligent watch, a television, an intelligent interactive large screen and the like. The equipment control method provided by the embodiment of the invention can be applied to various scenes such as short-distance remote control and the like. For example, in a scenario where any electronic device having a touch screen is used to remotely control an electronic device such as a computer, a television, or a projector. The devices are controlled for the purposes of volume control, multimedia playing, display content modification and the like, which can be performed on the devices remotely. As shown in fig. 1, the method may include the steps of:
101. and acquiring a Bluetooth service discovery protocol corresponding to the touch equipment.
102. And 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.
103. And receiving a Bluetooth connection request sent by the Bluetooth device.
104. 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.
105. And controlling the Bluetooth equipment through touch equipment.
Before the touch device controls the bluetooth device through bluetooth connection, a human-computer interaction service protocol needs to be registered in a bluetooth service protocol of the touch device, and a specific implementation manner of the touch device may be as follows: the method comprises the steps of obtaining a Bluetooth service discovery protocol corresponding to the touch control equipment, writing a human-computer interaction protocol for realizing human-computer interaction operation into the Bluetooth service discovery protocol, enabling the touch control equipment to have a Bluetooth human-computer interaction function, and controlling the Bluetooth equipment in a human-computer interaction mode.
The touch device has a bluetooth human-computer interaction (bluetooth HID) function, wherein the bluetooth service protocol of the touch device is written into a human-computer interaction protocol, so that the touch device has a bluetooth human-computer interaction function, and the bluetooth HID is that the touch device belongs to a standard human-computer interface device and is similar to a bluetooth wireless mounting device in a human-computer interaction working mode. That is, after the human-computer interaction service protocol is written into the bluetooth service discovery protocol of the touch device, the touch device is simulated to be a bluetooth wireless touch screen, i.e. the touch device can be used as a slave.
In an optional embodiment, since the bluetooth service discovery protocol of the touch device is written with the human-machine interaction protocol, the touch device can be used as a slave, and when a connection is established with the bluetooth device, a human-machine interaction service entry can be actively provided. When the Bluetooth connection is established, the Bluetooth device actively inquires service items of the touch device, the Bluetooth device and the touch device are connected through negotiation, and the touch device is mounted on the Bluetooth device in a Bluetooth communication mode. That is, the touch device is equivalent to an accessory device, i.e., a slave, of the bluetooth device, so that the bluetooth device can receive and process the control data generated by the touch device.
It is worth noting that: in the embodiment of the invention, the touch equipment is used as a slave machine, and the Bluetooth equipment is used as a master machine. The touch device is enabled to control the Bluetooth device through the human-computer interaction protocol by writing the human-computer interaction protocol in the Bluetooth service protocol in the touch device, the human-computer interaction protocol in the touch device can provide human-computer interaction service items, and when the Bluetooth device accesses the service items of the touch device, the touch device can provide service item data to establish connection with the Bluetooth device. Therefore, after the man-machine interaction service protocol is written into the Bluetooth service protocol, the touch equipment has the function of a slave machine, the Bluetooth equipment actively inquires service items and establishes connection with the touch equipment, and therefore the Bluetooth equipment can receive and process control data generated by the touch equipment.
When the touch device wants to control the bluetooth device, a bluetooth service discovery protocol corresponding to the touch device is acquired first, and a human-computer interaction protocol for realizing human-computer interaction operation is written into the bluetooth service discovery protocol, so that the touch device has a bluetooth human-computer interaction function. The Bluetooth device can be a computer, a television, a projector and other devices. And then, the touch control equipment receives a Bluetooth connection request sent by the Bluetooth equipment, and if service list data is inquired in the touch control equipment, connection is established with the Bluetooth equipment based on the Bluetooth connection request and the service list data.
In the embodiment of the invention, the simulated Bluetooth wireless touch screen is a multi-point touch screen, and simultaneous trigger operation for distinguishing a plurality of fingers of a user can be realized. And the simulated touch screen can realize many-to-one control and also can realize one-to-many control.
Optionally, the touch device may display one or more devices to be connected for performing bluetooth connection with the touch device through the display interface. In this embodiment, one touch device can be connected to multiple bluetooth devices, i.e., many-to-one. Similarly, a plurality of bluetooth devices can be connected with one touch device, that is, one-to-many touch devices can be realized, and the connection condition of the touch devices can be connected according to the actual condition.
In an optional embodiment, a bluetooth list may be displayed on a display interface of the touch device, where the bluetooth list includes one or more devices to be connected, and when the touch device and the bluetooth device perform bluetooth pairing, if the pairing is successful, a connection may be established with the bluetooth device. The user can determine the Bluetooth equipment to be connected according to historical pairing connection records or trigger operation of the user on a display interface, and the Bluetooth equipment is connected in a pairing mode. The specific connection process may be: through Bluetooth, the touch device provides HID (human interface device) entry service list data for the Bluetooth device, and when the Bluetooth device requests a service list, the service list data of the touch device can be inquired, so that connection is established according to the service list data. The pairing connection process may be according to a specific implementation manner in the prior art, and is not described herein again.
In practical applications, before the touch device wants to perform bluetooth connection with the bluetooth device, it is necessary to ensure that the bluetooth function of the touch device is turned on, and therefore before acquiring the bluetooth device connected with the touch device through bluetooth, the method may further include: and acquiring a Bluetooth starting request corresponding to the touch equipment, and controlling the touch equipment to start a Bluetooth function based on the Bluetooth starting request so as to establish connection with the Bluetooth equipment through Bluetooth.
Because the Bluetooth connection has the characteristics of low intrusion, simplicity, easiness in use, safety and the like, the Bluetooth connection and the Bluetooth equipment can be connected in a low-cost and safe mode to connect other Bluetooth equipment and control and operate the equipment.
After the touch device is successfully connected with the Bluetooth device, the Bluetooth device can be controlled through the touch device. The specific control mode is not limited, and a technician can control the bluetooth device according to actual conditions, for example, by determining controllable parameters corresponding to the bluetooth device, displaying an operation control corresponding to the bluetooth device on a display interface of the touch device based on the controllable parameters, and controlling the bluetooth device based on an execution operation input by a user for the operation control.
In order to implement control operation on the bluetooth device, first, controllable parameters corresponding to the bluetooth device need to be determined, and then, based on the controllable parameters, an operation control corresponding to the bluetooth device is displayed on a display interface of the touch device. The controllable parameters may include functional parameters that can be implemented by the bluetooth device, and operating parameters for adjusting the operating state of the bluetooth device.
In the embodiment of the present invention, the manner of determining the controllable parameters corresponding to the bluetooth device may be to acquire the controllable parameters corresponding to the bluetooth device when the bluetooth connection is established between the touch device and the bluetooth device, and determine the controllable parameters corresponding to the bluetooth device according to actual application requirements. For example, the bluetooth device is a television, and since the main function of the television is to play video, the controllable parameter may be a parameter such as volume adjustment and video playing.
The operation controls on the display interface of the touch device are determined based on the controllable parameters, so that the operation controls corresponding to different bluetooth devices can be the same or different, and can be determined according to actual needs and functions to be realized by the bluetooth devices. The operation control corresponding to the Bluetooth device is determined, so that point-to-point control of the Bluetooth device on the touch device can be realized, which is equivalent to migrating a control key of the Bluetooth device to the touch device.
And determining an operation control corresponding to the Bluetooth equipment based on the controllable parameters, and displaying the operation control in a display interface of the touch equipment so that a user can perform triggering operation on the operation control in the display interface. Therefore, the touch control equipment can be used as a Bluetooth touch screen to control the Bluetooth equipment, can realize point-to-point operation of screens of two equipment, can also be used as functional equipment, and is simple and convenient to use and low in cost.
The operation control displayed on the display interface of the touch device is exemplarily illustrated in conjunction with fig. 2. In fig. 2, it is assumed that the bluetooth device is a television, and the volume of the bluetooth device and the television is to be controlled by using the touch device, so that the controllable parameter may be a volume parameter, and based on the controllable parameter, it is determined that the operation control is a volume adjustment button.
And controlling the Bluetooth equipment based on the execution operation input by the user aiming at the operation control.
The specific implementation manner of controlling the bluetooth device may be: and generating a human-computer interaction message based on the execution operation input by the user aiming at the operation control, and sending the human-computer interaction message to the Bluetooth equipment so that the Bluetooth equipment executes corresponding operation based on the human-computer interaction message.
Specifically, in an embodiment, the bluetooth device may establish a communication channel by negotiating with the touch device after querying a bluetooth Service Discovery Protocol (SDP for short), and after the connection is successfully established, convert the operation data information into the operation information of the bluetooth device by obtaining operations such as touch input of a user on a display interface of the touch device. And then, generating a man-machine interaction message which meets the specification based on the control information, and sending the man-machine interaction message to the Bluetooth equipment through a communication channel. After the Bluetooth device acquires the human-computer interaction message, corresponding touch operation is generated, so that the Bluetooth device is remotely controlled through the touch device.
After the touch device and the bluetooth device are successfully paired and connected, a communication channel can be established, and the human-computer interaction message can be transmitted through the communication channel, wherein the communication channel can be a Logical Link Control and Adaptation Protocol (L2 CAP for short) channel. The established communication channel can be divided into a control channel and an interrupt channel, wherein the control message can be transmitted and sent through the control channel, and the interrupt channel is used for transmitting the data operation message. Meanwhile, the message sending times can be determined based on the state of the communication channel, and in order to ensure that the Bluetooth equipment can receive the human-computer interaction message, the sending of the human-computer interaction message can be determined according to the state of the communication channel.
After the bluetooth device executes the corresponding operation based on the human-computer interaction message, the specific operation executed by the bluetooth device may also be displayed on the touch device, specifically, the corresponding operation executed by the bluetooth device based on the human-computer interaction message is displayed in a display interface of the touch device. Therefore, the remote control of the Bluetooth equipment by the touch equipment is realized, and simultaneously, the state of the Bluetooth equipment after operation can be synchronously updated to the touch equipment, so that a user can check the connection state.
In an optional embodiment, the touch device may further receive a bluetooth disconnection request sent by the bluetooth device, and disconnect from the bluetooth device based on the bluetooth disconnection request.
In summary, when the touch device performs device control on the bluetooth device, the bluetooth device may be first acquired, wherein the bluetooth device is connected to the touch device through bluetooth. And then determining controllable parameters corresponding to the Bluetooth equipment, and displaying operation controls corresponding to the Bluetooth equipment on a display interface of the touch equipment based on the controllable parameters. And finally, controlling the Bluetooth equipment based on the execution operation input by the user aiming at the operation control. In the scheme, the Bluetooth device is connected with the Bluetooth device, and the control of the Bluetooth device is realized based on the execution operation input by the user aiming at the operation control, so that other Bluetooth devices can be connected and controlled to operate in a low-cost and safe mode, and the Bluetooth device is simple and convenient to use.
Before the Bluetooth device connected with the touch device through Bluetooth is acquired, whether the touch device supports control over the Bluetooth device through human-computer interaction operation can be detected, if yes, the Bluetooth device connected with the touch device through Bluetooth is allowed to be acquired, and if not, the Bluetooth device connected with the touch device through Bluetooth is forbidden to be acquired.
Fig. 3 is a schematic flow chart of another apparatus control method according to an embodiment of the present invention; as shown in fig. 3, the method may include the following steps:
301. and detecting whether the touch device supports control over the Bluetooth device through human-computer interaction operation, if not, executing the step 302, and if so, directly executing the step 304.
302. And acquiring a Bluetooth service discovery protocol corresponding to the touch equipment.
303. And writing a human-computer interaction protocol for realizing human-computer interaction operation into a Bluetooth service discovery protocol so that the touch control equipment supports control over the Bluetooth equipment through the human-computer interaction operation.
304. And receiving a Bluetooth connection request sent by the Bluetooth device.
305. 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.
306. Controllable parameters corresponding to the bluetooth device are determined.
307. And displaying an operation control corresponding to the Bluetooth equipment on a display interface of the touch equipment based on the controllable parameters.
308. And controlling the Bluetooth equipment based on the execution operation input by the user aiming at the operation control.
In the embodiment of the invention, the touch control equipment is connected with the Bluetooth equipment through Bluetooth, and the Bluetooth equipment is controlled through man-machine interaction operation. Therefore, before performing bluetooth connection with a bluetooth device, it is required to detect whether the touch device supports control over the bluetooth device through a human-computer interaction operation, if so, directly receive a bluetooth connection request sent by the bluetooth device, and if service list data is queried in the touch device, establish connection with the bluetooth device based on the bluetooth connection request and the service list data. After successful connection establishment, controllable parameters corresponding to the bluetooth device are determined. And then, based on the controllable parameters, displaying an operation control corresponding to the Bluetooth device on a display interface of the touch device. And finally, controlling the Bluetooth equipment based on the execution operation input by the user aiming at the operation control. For the detailed implementation, reference is made to the above embodiments, which are not described herein again. And if not, prohibiting receiving the Bluetooth connection request sent by the Bluetooth equipment. When the touch device is not supported to control the Bluetooth device through the man-machine interaction operation, the Bluetooth connection request sent by the Bluetooth device is not received, but a man-machine interaction service protocol is registered in the touch device, so that the touch device has the Bluetooth man-machine interaction function and is used as a slave.
Specifically, when it is detected that the touch device does not support control over the bluetooth device through the human-computer interaction operation, a bluetooth service discovery protocol corresponding to the touch device needs to be acquired first, and then the human-computer interaction protocol for implementing the human-computer interaction operation is written into the bluetooth service discovery protocol, so that the touch device supports control over the bluetooth device through the human-computer interaction operation.
Optionally, in an embodiment, the implementation manner of writing the human-computer interaction protocol into the bluetooth service protocol may be: the HID service entry is registered in the Bluetooth SDP service, and the HID service entry is written in the SDP service by calling a function in the SDP service in the touch device. The specific detailed implementation process of the human-computer interaction protocol written in the bluetooth service discovery protocol may refer to a specific implementation method in the prior art, and is not described herein again. The HID service entry is mainly an HID descriptor, which is used to describe the subordinate characteristics of the device.
In addition, after the touch control device is connected with the Bluetooth device, the controllable parameters corresponding to the Bluetooth device are obtained, and the operation control corresponding to the Bluetooth device is displayed on the display interface of the touch control device based on the controllable parameters. In the embodiment of the present invention, the operation control is not specifically limited, and may be set according to an actual situation, for example, the operation control may be in the form of a button, a character, or the like. And then, controlling the Bluetooth equipment based on the execution operation input by the user aiming at the operation control.
In summary, when the touch device wants to perform a control operation on the bluetooth device, it is first detected whether the touch device supports controlling the bluetooth device through a human-computer interaction operation, and if not, a bluetooth service discovery protocol corresponding to the touch device is obtained, and a human-computer interaction protocol for implementing the human-computer interaction operation is written into the bluetooth service discovery protocol, so that the touch device supports controlling the bluetooth device through the human-computer interaction operation. And then, acquiring the Bluetooth equipment, determining controllable parameters corresponding to the Bluetooth equipment, and displaying an operation control corresponding to the Bluetooth equipment on a display interface of the touch equipment based on the controllable parameters. And finally, controlling the Bluetooth equipment based on the execution operation input by the user aiming at the operation control. In the scheme, the Bluetooth device is connected with the Bluetooth device, and the control of the Bluetooth device is realized based on the execution operation input by the user aiming at the operation control, so that other Bluetooth devices can be connected and controlled to operate in a low-cost and safe mode, and the Bluetooth device is simple and convenient to use.
For related contents not described in this embodiment, reference may be made to the related descriptions in the foregoing embodiments, which are not described herein again.
For ease of understanding, the example is described in connection with FIG. 4. In fig. 4, in a conference scenario, the touch device is a computer, the bluetooth device is another computer, the touch device is connected to the bluetooth device through bluetooth, and the bluetooth device shares content to the touch device for content display, and can modify the content shared by the bluetooth device on the touch device, so as to implement the control of the bluetooth device by the touch device, which specifically implements the following processes: firstly, whether the touch control equipment supports the control of the Bluetooth equipment through human-computer interaction operation is detected, and if the touch control equipment supports the control of the Bluetooth equipment, the Bluetooth equipment is directly obtained. And if not, 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 supports control over the Bluetooth equipment through the human-computer interaction operation. And then establishing Bluetooth connection with the Bluetooth equipment, determining the controllable parameters corresponding to the Bluetooth equipment as character editing, and displaying a character editing operation control corresponding to the Bluetooth equipment on a display interface of the touch equipment based on the controllable parameters. And then, the user performs text editing operation triggered on the display interface, and the operation data information is converted into the control information of the Bluetooth equipment. And then, generating a man-machine interaction message which meets the specification based on the control information, and sending the man-machine interaction message to the Bluetooth equipment through a communication channel. After the Bluetooth device acquires the human-computer interaction message, corresponding touch operation is generated. And displaying corresponding operation executed by the Bluetooth equipment based on the human-computer interaction message in a display interface of the touch equipment.
Fig. 5 is a schematic flowchart of another apparatus control method according to an embodiment of the present invention; the main execution subject of the method is a bluetooth device, as shown in fig. 5, the method may include the following steps:
501. and 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.
502. And 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.
503. And receiving a control instruction sent by the touch equipment.
504. And executing corresponding operation based on the control instruction.
For the specific implementation process of some steps of the scheme provided by the embodiment of the present invention, reference may be made to the related descriptions in the foregoing other embodiments, which are not described herein again.
The data storage device of one or more embodiments of the present invention will be described in detail below. Those skilled in the art will appreciate that these means can each be constructed using commercially available hardware components and by performing the steps taught in this disclosure.
Fig. 6 is a schematic structural diagram of an apparatus control device according to an embodiment of the present invention, where the apparatus is located in a control apparatus, and as shown in fig. 6, the apparatus includes: the device comprises an acquisition module 11, a writing module 12, a receiving module 13, an inquiry module 14 and a control module 15.
The obtaining module 11 is configured to obtain a bluetooth service discovery protocol corresponding to the touch device.
The writing module 12 is configured to write a human-computer interaction protocol for implementing human-computer interaction operation into a bluetooth service discovery protocol, so that the touch device has a bluetooth human-computer interaction function.
The receiving module 13 is configured to receive a bluetooth connection request sent by a bluetooth device.
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 device.
And the control module 15 is configured to control the bluetooth device through the touch device.
Optionally, the control module 15 may be specifically configured to: 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.
Optionally, the receiving module 13 may further include an opening module in front of the receiving module, and specifically may be configured to:
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 the Bluetooth equipment through Bluetooth.
Optionally, the control module 15 may be further specifically configured to:
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.
Optionally, the apparatus may further include a display module, which may be specifically configured to:
and displaying corresponding operation executed by the Bluetooth equipment based on the human-computer interaction message in a display interface of the touch equipment.
Optionally, the apparatus further includes a request module, which may be specifically configured to: receiving a Bluetooth disconnection request sent by Bluetooth equipment; disconnect from the Bluetooth device based on the Bluetooth disconnect request.
The apparatus shown in fig. 6 may perform the steps performed by the touch device in the foregoing embodiment, and the detailed performing process and technical effects refer to the description in the foregoing embodiment, which are not described herein again.
In one 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, which may include: a first processor 21, a first memory 22, a first communication 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 at least implements 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 having stored thereon executable code, which, when executed by a processor of an electronic device, causes the processor to at least implement the device control method as provided in the foregoing embodiment.
Fig. 8 is a schematic structural diagram of an apparatus control device according to an embodiment of the present invention, where the apparatus is located in a bluetooth device, and as shown in fig. 8, the apparatus includes: a searching module 31, a sending module 32, an obtaining module 33, and an executing module 34.
The searching module 31 is configured to acquire at least one touch device that can be searched, where a bluetooth service discovery protocol in the touch device includes a human-computer interaction protocol for implementing human-computer interaction operation;
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;
an obtaining module 33, configured to receive a control instruction sent by the touch device;
and the execution module 34 is used for executing corresponding operations based on the control instruction.
The apparatus shown in fig. 8 may perform the steps performed by the bluetooth device in the foregoing embodiment, and the detailed performing process and technical effect refer to the description in the foregoing embodiment, which are not described herein again.
In one possible design, the structure of the device control apparatus shown in fig. 8 may be implemented as a controlled device, and as shown in fig. 9, the device may include: processor 41, memory 42, communication interface 43. Wherein the memory 42 has stored thereon executable code which, when executed by the processor 41, causes the processor 41 to at least carry out the steps as performed by the bluetooth device in the previous embodiments.
In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium having stored thereon executable code, which, when executed by a processor of a device, causes the processor to at least implement the device control method as provided in the foregoing embodiments.
The above-described apparatus embodiments are merely illustrative, wherein the elements 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 of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course, can also be implemented by a combination of hardware and software. With this understanding in mind, the above-described aspects and portions of the present technology which contribute substantially or in part to the prior art may be embodied in the form of a computer program product, which may be embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including without limitation disk storage, CD-ROM, optical storage, and the like.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding 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 kind of laser barcode scanning data Bluetooth HID system and method based on Android device

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 kind of laser barcode scanning data Bluetooth HID system and method based on Android device

Similar Documents

Publication Publication Date Title
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
CN103634205B (en) The vehicle entertainment system and method for integrated instant messaging/social networking application
KR101833454B1 (en) Method for local area wireless communication and mobile terminal therefor
US9706015B2 (en) Multi-operating system input device
CN111124339B (en) Interface sharing method and electronic equipment
EP3343352B1 (en) Method, apparatus and device for instructing operations on terminal device
CN111007995B (en) Data processing method and electronic equipment
US8798543B2 (en) Easily operated wireless data transmission/reception system and easily operated wireless data transmission/reception program
CN107948566B (en) Method and device for realizing plug-and-play screen transmission
EP2821922A1 (en) Information processing system, information processing method, mobile phone unit, server and control method and control program for system, phone unit, and server
CN114286165A (en) Display device, mobile terminal and screen projection data transmission method
CN107948565B (en) Method and device for realizing wired screen transmission
CN114281288A (en) Screen projection processing method and device and electronic equipment
JP2017533677A (en) Control program download method, apparatus, program, and recording medium
CN111093133B (en) Wireless device control method, apparatus and computer readable storage medium
CN111414097A (en) Interaction method, interaction system and display equipment
US20240095049A1 (en) Control Method, Electronic Device, and Non-Transitory Readable Storage Medium
WO2018045882A1 (en) Method and system for controlling soft operational key of application of intelligent terminal
WO2024041033A1 (en) Display device and device name processing method for display device
CN114827166A (en) Device control method, device and storage medium
CN108811177B (en) Communication method and terminal
KR101370263B1 (en) Method for provide gesture-based remote control for electronic devices, and computer-readable recording medium for the same
CN114461124B (en) Screen projection control method and device, screen projector and computer readable storage medium
CN113064536B (en) Processing method, processing device and readable 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