Control device, display device and device information acquisition method

By using the application platform framework and system attribute interface to send virtual events in the control device of the Android system, communication with the display device is realized, and the problem of high complexity in obtaining device information in the prior art is solved and the information acquisition efficiency is improved.

CN114554259BActive Publication Date: 2025-05-02HISENSE VISUAL TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210042117.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-14
Publication Date
2025-05-02
Estimated Expiration
2042-01-14

AI Technical Summary

Technical Problem

Prior Art In electronic devices of Android systems, device applications as Bluetooth peripheral roles have difficulty obtaining device information for devices as central device roles, and often need to add complex system interfaces, resulting in high design complexity and low efficiency.

Method used

Through the application platform framework of the control device, virtual events are sent to the Bluetooth protocol stack based on the system attribute interface, communication with the display device is realized, device information is obtained, and additional complex system interfaces are not required.

Benefits of technology

It reduces the complexity of software and hardware design, improves the efficiency of obtaining equipment information, and enables the control device to quickly obtain equipment information of the display device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114554259B_ABST
    Figure CN114554259B_ABST
Patent Text Reader

Abstract

The present application relates to a control device, a display device and a method for acquiring device information, which are applied in the field of terminal technology. The control device includes: a controller, which is configured to: during the binding process between the control device and the display device, send a virtual event to the Bluetooth protocol stack of the control device based on the system property interface through the application platform framework of the control device; when the binding between the control device and the display device is completed, monitor the virtual event through the Bluetooth protocol stack; when the virtual event is monitored through the Bluetooth protocol stack, send a request to establish a target connection to the display device; when a response to establish a target connection sent by the display device is received, establish a target connection with the display device through the Bluetooth protocol stack, and acquire the device information of the display device based on the target connection. The device information of the display device can be acquired through the existing system interface in the control device, which reduces the complexity of the software and hardware design and improves the efficiency of acquiring device information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of terminal technology, and more specifically, to a control device, a display device, and a method for acquiring device information. Background Art

[0002] When two electronic devices including an Android system establish a Bluetooth connection, the Android system supports an application in the electronic device that serves as a central device to obtain device information of an electronic device that serves as a Bluetooth peripheral, but does not support an application in the electronic device that serves as a Bluetooth peripheral to obtain device information of an electronic device that serves as a central device.

[0003] At present, in order for an application in an electronic device that acts as a Bluetooth peripheral role to obtain device information of an electronic device that acts as a central device role, it is usually necessary to add additional complex system interfaces (hereinafter referred to as added system interfaces) in the electronic device that acts as a Bluetooth peripheral role. These added system interfaces are used to obtain device information of the electronic device that acts as a central device role when the electronic device acts as a Bluetooth peripheral role.

[0004] However, the solution of adding an interface in the electronic device so that the application in the electronic device as a Bluetooth peripheral can obtain the device information of the electronic device as a central device is too complicated and time-consuming. Summary of the invention

[0005] In order to solve the above technical problems or at least partially solve the above technical problems, the present application provides a control device, a display device and a device information acquisition method. Without adding additional complex system interfaces in the control device, the device information of the display device can be acquired through the existing system interface in the control device, thereby reducing the complexity of software and hardware design and improving the efficiency of acquiring device information.

[0006] In a first aspect, an embodiment of the present application provides a control device, including:

[0007] The controller is configured as:

[0008] In the process of binding the control device as a Bluetooth peripheral role and the display device as a central device role, a virtual event is sent to the Bluetooth protocol stack of the control device through the application platform framework of the control device based on the system property interface;

[0009] When the binding between the control device and the display device is completed, based on the virtual event, the control device communicates with the display device through the Bluetooth protocol stack to obtain device information of the display device.

[0010] In some embodiments of the present application, the control device further includes:

[0011] A communication unit, configured to: communicate with a display device;

[0012] The controller is configured as:

[0013] When the control device is bound to the display device, the virtual event is monitored through the Bluetooth protocol stack;

[0014] When the virtual event is monitored, a target connection establishment request is sent to the display device through the communication unit;

[0015] In response to the establishment response sent by the display device according to the establishment request, the target connection is established with the display device through the Bluetooth protocol stack, and the device information of the display device is obtained based on the target connection.

[0016] In some embodiments of the present application, the controller is configured as follows:

[0017] When the virtual event is monitored, a Generic Attribute Profile (GATT) connection establishment request is sent to the display device through the communication unit;

[0018] When receiving the establishment response of the GATT connection sent by the display device according to the establishment request, the GATT connection is established with the display device through the Bluetooth protocol stack, and after the GATT connection is established, the device information of the display device is queried and obtained through the attribute protocol (ATT).

[0019] In some embodiments of the present application, the virtual event is a virtual broadcast packet received event and / or a virtual response packet received event.

[0020] In some embodiments of the present application, the controller is further configured as:

[0021] During the binding process between the control device as a Bluetooth peripheral and the display device as a central device, the application platform framework of the control device determines whether an application that needs to obtain device information is installed in the control device based on the system property interface before sending a virtual event to the Bluetooth protocol stack of the control device.

[0022] In some embodiments of the present application, the controller is further configured as:

[0023] In response to an establishment response sent by the display device according to the establishment request, the target connection is established with the display device through the Bluetooth protocol stack, and after obtaining device information of the display device based on the target connection, the device information is sent to the application platform framework through the Bluetooth protocol stack;

[0024] The device information is sent to the application program through the application platform framework.

[0025] In a second aspect, the present application provides a display device, including:

[0026] A communication unit is configured to: communicate with a control device;

[0027] The controller is configured to: when the control device as a Bluetooth peripheral device is bound to the display device as a central device, receive, through the communication unit, a target connection establishment request sent by the control device through the Bluetooth protocol stack, wherein the establishment request is sent by the control device when a virtual event is monitored, and the virtual event is sent to the Bluetooth protocol stack of the control device through the application platform framework of the control device based on the system property interface during the binding process between the control device and the display device;

[0028] According to the establishment request, sending an establishment response of the target connection to the control device through the communication unit, where the establishment response is used for the Bluetooth protocol stack to establish the target connection with the display device;

[0029] The target connection is established with the Bluetooth protocol stack, and the device information of the display device is sent to the Bluetooth protocol stack through the communication unit based on the target connection.

[0030] In some embodiments of the present application, the controller is configured to: when the control device as a Bluetooth peripheral device is bound to the display device as a central device, receive, through the communication unit, a GATT connection establishment request sent by the control device through the Bluetooth protocol stack;

[0031] According to the establishment request, sending a GATT connection establishment response to the control device through the communication unit, where the establishment response is used for the Bluetooth protocol stack to establish the GATT connection with the display device;

[0032] The GATT connection is established with the Bluetooth protocol stack, and the device information is sent to the Bluetooth protocol stack through the communication unit based on the received ATT query.

[0033] In a third aspect, the present application provides a control device, including:

[0034] A communication unit, configured to: communicate with a display device;

[0035] The controller is configured as:

[0036] In the process of connecting the control device as a Bluetooth peripheral and the display device as a central device, a first data packet carrying first indication information is sent to the display device through the communication unit, and the first indication information is used to instruct the display device to send a second data packet carrying the device information to the control device according to the first indication information, and the first data packet is a broadcast packet and / or a response packet, and the second data packet is a broadcast packet and / or a response packet;

[0037] Receiving the second data packet sent by the display device through the communication unit;

[0038] The device information is acquired according to the second data packet.

[0039] In some embodiments of the present application, the controller is further configured as:

[0040] After acquiring the device information of the display device according to the second data packet, a third data packet carrying second indication information is sent to the display device through the communication unit. The second indication information is used to instruct the display device to stop sending the second data packet to the control device according to the second indication information. The third data packet is a broadcast packet and / or a response packet.

[0041] In some embodiments of the present application, the controller is further configured as:

[0042] During the process of connecting the control device as a Bluetooth peripheral and the display device as a central device, before sending a first data packet carrying first indication information to the display device through the communication unit, it is determined through the application platform framework whether an application that needs to obtain the device information is installed in the control device.

[0043] In some embodiments of the present application, the controller is further configured as:

[0044] After acquiring the device information according to the second data packet, sending the device information to the application platform framework through the Bluetooth protocol stack;

[0045] The device information is sent to the application program through the application platform framework.

[0046] In a fourth aspect, the present application provides a display device, including:

[0047] A communication unit is configured to: communicate with a control device;

[0048] The controller is configured as:

[0049] In the process of connecting the control device as a Bluetooth peripheral role and the display device as a central device role, receiving a first data packet carrying first indication information sent by the control device through the communication unit, the first indication information is used to instruct the display device to send a second data packet carrying device information of the display device to the control device according to the first indication information, the first data packet is a broadcast packet and / or a response packet, and the second data packet is a broadcast packet and / or a response packet;

[0050] The second data packet is sent to the control device through the communication unit, and the second data packet is used by the control device to obtain the device information according to the second data packet.

[0051] In some embodiments of the present application, the controller is further configured as:

[0052] After sending the second data packet to the control device through the communication unit, receiving a third data packet carrying second indication information sent by the control device through the communication unit, the third data packet is generated after the control device obtains the device information of the display device according to the second data packet, and the third data packet is a broadcast packet and / or a response packet;

[0053] Stop sending the second data packet to the control device according to the second indication information.

[0054] In a fifth aspect, the present application provides a method for obtaining device information, which is applied to control a device, including:

[0055] In the process of binding the control device as a Bluetooth peripheral role and the display device as a central device role, a virtual event is sent to the Bluetooth protocol stack of the control device through the application platform framework of the control device based on the system property interface;

[0056] When the binding between the control device and the display device is completed, based on the virtual event, the control device communicates with the display device through the Bluetooth protocol stack to obtain device information of the display device.

[0057] In some embodiments of the present application, when the control device is bound to the display device, based on the virtual event, communicating with the display device through the Bluetooth protocol stack to obtain device information of the display device includes:

[0058] When the control device is bound to the display device, the virtual event is monitored through the Bluetooth protocol stack;

[0059] When the virtual event is monitored, a target connection establishment request is sent to the display device;

[0060] In response to the establishment response sent by the display device according to the establishment request, the target connection is established with the display device through the Bluetooth protocol stack, and the device information of the display device is obtained based on the target connection.

[0061] In some embodiments of the present application, when the virtual event is monitored, sending a target connection establishment request to the display device includes:

[0062] When the virtual event is monitored, a GATT connection establishment request is sent to the display device;

[0063] In response to the establishment response sent by the display device according to the establishment request, establishing the target connection with the display device through the Bluetooth protocol stack, and acquiring device information of the display device based on the target connection, including:

[0064] When receiving the establishment response of the GATT connection sent by the display device according to the establishment request, the GATT connection is established with the display device through the Bluetooth protocol stack, and after the GATT connection is established, the device information of the display device is obtained through ATT query.

[0065] In some embodiments of the present application, the virtual event is a virtual broadcast packet received event and / or a virtual response packet received event.

[0066] In some embodiments of the present application, in the process of binding the control device as a Bluetooth peripheral role and the display device as a central device role, before sending a virtual event to the Bluetooth protocol stack of the control device through the application platform framework of the control device based on the system property interface,

[0067] It is determined through the application platform framework that an application program that needs to obtain the device information is installed in the control device.

[0068] In some embodiments of the present application, in response to the establishment response sent by the display device according to the establishment request, after establishing the target connection with the display device through the Bluetooth protocol stack, and acquiring the device information of the display device based on the target connection, the method further includes:

[0069] Sending the device information to the application platform framework via the Bluetooth protocol stack;

[0070] The device information is sent to the application program through the application platform framework.

[0071] In a sixth aspect, the present application provides a method for obtaining device information, which is applied to a display device, comprising:

[0072] When the control device as a Bluetooth peripheral device is bound to the display device as a central device, a target connection establishment request sent by the control device through the Bluetooth protocol stack is received, wherein the establishment request is sent by the control device when a virtual event is monitored, and the virtual event is sent to the Bluetooth protocol stack of the control device through the application platform framework of the control device based on the system property interface during the binding process between the control device and the display device;

[0073] According to the establishment request, sending an establishment response of the target connection to the control device, where the establishment response is used by the Bluetooth protocol stack to establish the target connection with the display device;

[0074] The target connection is established with the Bluetooth protocol stack, and the device information of the display device is sent to the Bluetooth protocol stack based on the target connection.

[0075] In some embodiments of the present application, when the control device as a Bluetooth peripheral device is bound to the display device as a central device, receiving a target connection establishment request sent by the control device through the Bluetooth protocol stack includes:

[0076] When the control device as a Bluetooth peripheral device is bound to the display device as a central device, receiving a GATT connection establishment request sent by the control device through the Bluetooth protocol stack;

[0077] The step of sending a target connection establishment response to the control device according to the establishment request includes:

[0078] According to the establishment request, sending a GATT connection establishment response to the control device, where the establishment response is used by the Bluetooth protocol stack to establish the GATT connection with the display device;

[0079] The target connection is established with the Bluetooth protocol stack, and the device information of the display device is sent to the Bluetooth protocol stack based on the target connection, including:

[0080] The GATT connection is established with the Bluetooth protocol stack, and based on the received ATT query, the device information is sent to the Bluetooth protocol stack.

[0081] In a seventh aspect, the present application provides a method for obtaining device information, which is applied to control a device, comprising:

[0082] In the process of connecting the control device as a Bluetooth peripheral and the display device as a central device, a first data packet carrying first indication information is sent to the display device, the first indication information is used to instruct the display device to send a second data packet carrying the device information to the control device according to the first indication information, the first data packet is a broadcast packet and / or a response packet, and the second data packet is a broadcast packet and / or a response packet;

[0083] receiving the second data packet sent by the display device;

[0084] The device information is acquired according to the second data packet.

[0085] In some embodiments of the present application, after acquiring the device information of the display device according to the second data packet, the method further includes:

[0086] A third data packet carrying second indication information is sent to the display device, where the second indication information is used to instruct the display device to stop sending the second data packet to the control device according to the second indication information, and the third data packet is a broadcast packet and / or a response packet.

[0087] In some embodiments of the present application, during the process of connecting the control device as a Bluetooth peripheral device to the display device as a central device, before sending a first data packet carrying first indication information to the display device, the method further includes:

[0088] It is determined through the application platform framework that an application program that needs to obtain the device information is installed in the control device.

[0089] In some embodiments of the present application, after acquiring the device information according to the second data packet, the method further includes:

[0090] Sending the device information to the application platform framework via the Bluetooth protocol stack;

[0091] The device information is sent to the application program through the application platform framework.

[0092] In an eighth aspect, the present application provides a device information acquisition method, applied to a display device, comprising:

[0093] In the process of connecting the control device as a Bluetooth peripheral role and the display device as a central device role, receiving a first data packet carrying first indication information sent by the control device, the first indication information is used to instruct the display device to send a second data packet carrying device information of the display device to the control device according to the first indication information, the first data packet is a broadcast packet and / or a response packet, and the second data packet is a broadcast packet and / or a response packet;

[0094] The second data packet is sent to the control device, and the second data packet is used by the control device to obtain the device information according to the second data packet.

[0095] In some embodiments of the present application, after sending the second data packet to the control device, the method further includes:

[0096] receiving a third data packet carrying second indication information sent by the control device, where the third data packet is generated after the control device obtains device information of the display device according to the second data packet, and the third data packet is a broadcast packet and / or a response packet;

[0097] Stop sending the second data packet to the control device according to the second indication information.

[0098] In a ninth aspect, the present application provides a computer-readable storage medium, comprising: a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the device information acquisition method shown in the second aspect is implemented.

[0099] In a tenth aspect, the present application provides a computer program product, characterized in that it includes: when the computer program product runs on a computer, it enables the computer to implement the device information acquisition method shown in the second aspect.

[0100] The technical solution provided by the embodiment of the present application has the following advantages over the prior art: in the embodiment of the present application, in the process of binding the control device as the Bluetooth peripheral role and the display device as the central device role, a virtual event is sent to the Bluetooth protocol stack of the control device through the application platform framework of the control device based on the system property interface; when the binding between the control device and the display device is completed, based on the virtual event, the display device is communicated with through the Bluetooth protocol stack to obtain the device information of the display device. Therefore, in the present solution, based on the system property interface in the control device, the callback of the device information of the display device as the central device role by the control device as the Bluetooth peripheral role is realized by registering a virtual event. That is to say, the device information of the display device is quickly obtained by setting a virtual event based on the system property interface of the control device, without adding additional complex system interfaces in the control device, thereby reducing the complexity of software and hardware design and improving the efficiency of obtaining device information.

[0101] The technical solution provided by the embodiment of the present application has the following advantages over the prior art: In the embodiment of the present application, during the connection between the control device as a Bluetooth peripheral and the display device as a central device, the communication unit sends a first data packet carrying first indication information to the display device, so that the display device sends a second data packet carrying the device information to the control device according to the first indication information, and then the control device obtains the device information according to the received second data packet. In other words, the display device can send the device information of the display device to the control device through the first indication information, so that there is no need to add additional complex system interfaces in the control device, which reduces the complexity of software and hardware design and improves the efficiency of obtaining device information. BRIEF DESCRIPTION OF THE DRAWINGS

[0102] In order to more clearly illustrate the implementation methods in the embodiments of the present application or the related technologies, the following is a brief introduction to the drawings required for use in the embodiments or the related technology descriptions. Obviously, the drawings described below are some embodiments of the present application, and a person skilled in the art can also obtain other drawings based on these drawings.

[0103] Figure 1 An operation scenario between a control device and a display device according to some embodiments is shown;

[0104] Figure 2 shows a hardware configuration block diagram of a control device 100 according to some embodiments;

[0105] Figure 3 shows a hardware configuration block diagram of a display device 200 according to some embodiments;

[0106] Figure 4 shows a software configuration diagram in a display device 200 according to some embodiments;

[0107] Figure 5 One of the flowcharts of the device information acquisition method according to some embodiments is shown;

[0108] Figure 6 A schematic diagram showing the structure of a data packet according to some embodiments;

[0109] Figure 7 A second flowchart of a method for acquiring device information according to some embodiments is shown;

[0110] Figure 8 A third flowchart of a method for acquiring device information according to some embodiments is shown. DETAILED DESCRIPTION

[0111] In order to make the purpose and implementation method of the present application clearer, the exemplary implementation method of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, rather than all the embodiments.

[0112] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.

[0113] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.

[0114] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.

[0115] The display device provided in the embodiments of the present application may have various implementation forms, for example, it may be a television, a smart television, a laser projection device, a monitor, an electronic bulletin board, an electronic table, etc. Figure 1 and Figure 2 This is a specific implementation of the display device of the present application.

[0116] Figure 1 FIG. 1 is a schematic diagram of an operation scenario between a display device and a control device according to an embodiment. Figure 1 As shown, the user can operate the display device 200 through the smart device 300 or the control apparatus 100, wherein the smart device 300 or the control apparatus 100 may be the control device in the embodiment of the present application.

[0117] In some embodiments, the control device 100 may be a remote controller, and the communication between the remote controller and the control device includes infrared protocol communication or Bluetooth protocol communication, and other short-range communication methods, and the display device 200 is controlled wirelessly or wired. The user can input user commands through buttons on the remote controller, voice input, control panel input, etc. to control the display device 200.

[0118] In some embodiments, a smart device 300 (such as a mobile terminal, a tablet computer, a computer, a laptop computer, etc.) may also be used to control the display device 200. For example, the display device 200 is controlled using an application running on the smart device.

[0119] In some embodiments, the control device may not use the above-mentioned smart device or control device to receive instructions, but may receive user control through touch or gestures.

[0120] In some embodiments, the display device 200 can also be controlled in a manner other than the control device 100 and the smart device 300. For example, the user's voice command control can be directly received through a module for obtaining voice commands configured inside the display device 200, or the user's voice command control can be received through a voice control device set outside the display device 200.

[0121] In some embodiments, the display device 200 also communicates data with the server 400. The display device 200 may be allowed to communicate via a local area network (LAN), a wireless local area network (WLAN), and other networks. The server 400 may provide various content and interactions to the display device 200. The server 400 may be one cluster or multiple clusters, and may include one or more types of servers.

[0122] Figure 2 Schematically shows a block diagram of a configuration of the control device 100 according to an exemplary embodiment. Figure 2 As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface 140, an external memory, and a power supply. The control device 100 can receive an input operation instruction from a user, and convert the operation instruction into an instruction that can be recognized and responded to by the display device 200, playing the role of an interactive intermediary between the user and the display device 200.

[0123] like Figure 3 The display device 200 includes at least one of a tuner and demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a user interface 280, an external memory, and a power supply.

[0124] In some embodiments, the controller includes a processor, a video processor, an audio processor, a graphics processor, a RAM, a ROM, and a first interface to an nth interface for input / output.

[0125] The display 260 includes a display screen component for presenting images, and a driving component for driving image display, which is used to receive image signals output from the controller, and display video content, image content, and menu control interface components and user control UI interface.

[0126] The display 260 may be a liquid crystal display, an OLED display, or a projection display, and may also be a projection device and a projection screen.

[0127] The communicator 220 is a component for communicating with an external device or server according to various communication protocol types. For example, the communicator may include at least one of a Wifi module, a Bluetooth module, a wired Ethernet module, and other network communication protocol chips or near field communication protocol chips, and an infrared receiver. The display device 200 can establish transmission and reception of control signals and data signals with the external control device 100 or the server 400 through the communicator 220.

[0128] The user interface 280 can be used to receive control signals from the control device 100 (such as an infrared remote controller, etc.) It can also be used to directly receive user input operation instructions and convert the operation instructions into instructions that the display device 200 can recognize and respond to, which can be called a user input interface.

[0129] The detector 230 is used to collect signals from the external environment or the external interaction. For example, the detector 230 includes a light receiver, a sensor for collecting the intensity of ambient light; or, the detector 230 includes an image collector, such as a camera, which can be used to collect external environment scenes, user attributes or user interaction gestures; or, the detector 230 includes a sound collector, such as a microphone, etc., for receiving external sounds.

[0130] The external device interface 240 may include, but is not limited to, any one or more of the following interfaces: a high-definition multimedia interface (HDMI), an analog or digital high-definition component input interface (component), a composite video input interface (CVBS), a USB input interface (USB), an RGB port, etc. It may also be a composite input / output interface formed by the above multiple interfaces.

[0131] The tuner-demodulator 210 receives broadcast television signals via wired or wireless reception, and demodulates audio and video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals.

[0132] In some embodiments, the controller 250 and the tuner-demodulator 210 may be located in different separate devices, that is, the tuner-demodulator 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.

[0133] The controller 250 controls the operation of the control device and responds to the user's operation through various software control programs stored in the memory (internal memory or external memory). The controller 250 controls the overall operation of the display device 200. For example, in response to receiving a user command for selecting a UI object to be displayed on the display 260, the controller 250 can perform an operation related to the object selected by the user command.

[0134] In some embodiments, the controller includes a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), and at least one of a random access memory (RAM), a read-only memory (ROM), a first interface to an nth interface for input / output, a communication bus, etc.

[0135] Among them, RAM, also called main memory, is an internal memory that directly exchanges data with the controller. It can be read and written at any time (except when refreshed), and it is very fast. It is usually used as a temporary data storage medium for operating systems or other running programs. The biggest difference between it and ROM is the volatility of data, that is, once the power is cut off, the stored data will be lost. RAM is used in computers and digital systems to temporarily store programs, data and intermediate results. ROM works in a non-destructive read-out mode and can only read but not write information. Once the information is written, it is fixed, and even if the power is cut off, the information will not be lost, so it is also called fixed memory.

[0136] The user may input a user command through a graphical user interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the graphical user interface (GUI). Alternatively, the user may input a user command through a specific sound or gesture, and the user input interface recognizes the sound or gesture through a sensor to receive the user input command.

[0137] "User interface" is the medium interface for interaction and information exchange between applications or operating systems and users. It realizes the conversion between the internal form of information and the form acceptable to users. The commonly used form of user interface is the Graphical User Interface (GUI), which refers to the user interface related to computer operation displayed in a graphical way. It can be an icon, window, control or other interface element displayed on the display screen of the control device, where the control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets and other visual interface elements.

[0138] Taking the control device and the display device as Android system devices as an example, the control device provided in the embodiment of the present application can be a control device including an Android system, which can be connected to other display devices with an Android system by Bluetooth, and the control device can be connected to the display device as a central device role as a Bluetooth peripheral role, and the control device can also be connected to the display device as a Bluetooth peripheral role as a central device role. Therefore, the control device in the embodiment of the present application includes two sets of Bluetooth connection systems, one set is a Bluetooth connection system for the role of a Bluetooth peripheral (hereinafter referred to as the first set of Bluetooth connection systems), and the other set is a Bluetooth connection system for the role of a central device (hereinafter referred to as the second set of Bluetooth connection systems). In the embodiment of the present application, the control device used as a Bluetooth peripheral role is connected to the display device as the central device role, and when the control device as the Bluetooth peripheral role is connected to the display device as the central device role, two sets of Bluetooth connection systems are run, wherein, by running the first set of Bluetooth connection systems, a Bluetooth connection is made with the display device as the central device role, and by running the second set of Bluetooth connection systems, the device information of the display device as the central device role is obtained.

[0139] For example, taking the control device as a remote control and the display device as a TV as an example, both the remote control and the TV have an Android system. With the system upgrade of the remote control, the remote control has both the function of connecting to other central devices as a Bluetooth peripheral role and the function of connecting to other Bluetooth peripherals as a central device role. Among them, when the remote control is connected to the TV, the remote control acts as a Bluetooth peripheral role and the TV acts as a central device role. In the process of connecting the remote control to the TV, the TV can obtain the device information of the remote control device through the broadcast packet or response packet sent by the remote control, but some applications currently installed in the remote control also need to obtain the device information of the TV. The existing solution is to add additional complex system interfaces in the remote control so that the remote control can obtain the device information of the TV. However, adding additional complex system interfaces in the remote control will increase the design complexity of hardware and software, and under the premise that the device size is relatively high, it will increase the requirements for the space design of the remote control.

[0140] In an embodiment of the present application, a possible implementation method is as follows: in the process of connecting a remote control (as a Bluetooth peripheral role) with a TV (as a central device role), a virtual event is set to reuse the function of the remote control as a central device role, so that the remote control can obtain the device information of the TV. In this process, there is no need to add additional complex system interfaces to the remote control, so there is no need to increase the design complexity of the hardware and software, and under the premise that the device size is relatively large, there is no need to increase the requirements for the space design of the remote control.

[0141] In an embodiment of the present application, another possible implementation method is as follows: in the process of connecting a remote control (acting as a Bluetooth peripheral) with a TV (acting as a central device), the remote control sends a first data packet (broadcast packet and / or response packet) carrying first indication information to the TV, so that the TV sends a second data packet (broadcast packet and / or response packet) carrying the device information of the TV to the remote control according to the first indication information, so that the remote control can obtain the device information of the TV according to the received second data packet.

[0142] In some embodiments of the present application, during the process of Bluetooth connection between a control device as a Bluetooth peripheral and a display device as a central device, the system property interface in the control device (such as SystemProperties in the Android system) is reused to obtain the device information of the display device, without adding additional complex system interfaces in the control device (Bluetooth peripheral role), thereby reducing the complexity of software and hardware design and improving the efficiency of obtaining device information. For example, the controller is configured as follows: The controller is configured as follows: During the process of binding the control device as a Bluetooth peripheral and the display device as a central device, the application platform framework of the control device sends a virtual event to the Bluetooth protocol stack of the control device based on the system property interface; when the binding between the control device and the display device is completed, the control device communicates with the display device through the Bluetooth protocol stack based on the virtual event to obtain the device information of the display device.

[0143] It can be understood that in the process of Bluetooth connection between the control device and the display device, two Bluetooth connection systems are run in the control device. The first Bluetooth connection system is used to establish Bluetooth connection between the control device as a Bluetooth peripheral and the display device as a central device. The second Bluetooth connection system is used for the control device to obtain device information of the display device as a virtual central device. That is, the control device simulates the process of the control device as a central device to obtain device information of the display device by running the second Bluetooth connection system.

[0144] In some embodiments of the present application, different virtual events correspond to different types of device information, that is, in the embodiments of the present application, the corresponding virtual event can be customized according to the type of device information of the display device to be obtained, and then the device information of the corresponding type of the display device can be obtained based on the virtual event. Exemplarily, the device information can be the device name information of the display device, the device manufacturer information of the display device, the device type information (device type) of the display device, the media access control (MAC) address information of the display device, other information of the display device, etc., which can be determined according to actual needs and is not limited in the embodiments of the present application.

[0145] In some embodiments of the present application, the control device can obtain the device information of the display device connected to it by Bluetooth by simulating the central device role to obtain the device information of the Bluetooth peripheral role through a virtual event. A virtual event is a virtual event that obtains device information through a callback. For example, the virtual event can be a virtual broadcast packet received event and / or a virtual response packet received event. The virtual event can also be a custom event that can obtain device information through a callback. The specific event can be determined according to actual conditions and is not limited in the embodiments of the present application.

[0146] In some embodiments of the present application, when the control device and the display device are bound, the Bluetooth protocol stack can be used to monitor virtual events. If a virtual event is monitored, the Bluetooth protocol stack can be used to communicate with the display device to obtain the device information. Exemplarily, the control device also includes: a communication unit, configured to: communicate with the display device; a controller, configured to: monitor the virtual event through the Bluetooth protocol stack when the control device and the display device are bound; when the virtual event is monitored, send a target connection establishment request to the display device through the communication unit; in response to the establishment response sent by the display device according to the establishment request, establish the target connection with the display device through the Bluetooth protocol stack, and obtain the device information of the display device based on the target connection.

[0147] In some embodiments of the present application, the target connection is a GATT connection. The control device can actively send a GATT connection establishment request to the display device, and after completing the GATT connection with the display device, obtain the device information of the display device through ATT query; the control device can also establish a GATT connection with the display device and obtain the device information of the display device through ATT query after receiving the GATT connection establishment request of the display device; the specific details can be determined by actual conditions and are not limited by the embodiments of the present application. Exemplarily, the controller is configured to: send a GATT connection establishment request to the display device through the communication unit when monitoring the virtual event; upon receiving the GATT connection establishment response sent by the display device according to the establishment request, establish the GATT connection with the display device through the Bluetooth protocol stack, and obtain the device information of the display device through ATT query after the GATT connection is established.

[0148] The controller is configured to: when monitoring the virtual event, send a GATT connection request to the display device; when receiving a GATT connection response sent by the display device according to the GATT connection request, establish a GATT connection with the display device through the Bluetooth protocol stack, and obtain the device information through ATT query. Therefore, the device information of the display device can be quickly obtained through the GATT connection based on the virtual event.

[0149] In some embodiments of the present application, when the control device determines that an application that needs to obtain device information of the display device is installed therein, the device information of the display device is obtained by registering a virtual event based on the system property interface during the process of the control device as a Bluetooth peripheral role and the display device as a central device role performing Bluetooth connection. In this way, when the application installed in the control device needs to obtain the device information of the display device, the device information of the display device can be quickly obtained. Exemplarily, the controller is also configured to: during the process of the control device as a Bluetooth peripheral role and the display device as a central device role binding, before sending a virtual event to the Bluetooth protocol stack of the control device through the application platform framework of the control device based on the system property interface, determine that an application that needs to obtain the device information is installed in the control device.

[0150] In some embodiments of the present application, after the Bluetooth protocol stack in the control device obtains the device information, the device information can be reported to the application platform framework, and the application platform framework sends the device information to the target application that needs to obtain the device information of the display device, or the application platform framework broadcasts the device information of the display device, and the applications installed in the control device can receive the device information, then the target application that needs to obtain the device information can obtain the device information. Therefore, the application that needs to obtain the device information can quickly obtain the device information. Exemplarily, the controller is also configured to: in response to the establishment response sent by the display device according to the establishment request, establish the target connection with the display device through the Bluetooth protocol stack, and after obtaining the device information of the display device based on the target connection, send the device information to the application platform framework through the Bluetooth protocol stack; send the device information to the application through the application platform framework.

[0151] The present application provides a display device, comprising: a communication unit, configured to: communicate with a control device; a controller, configured to: when the control device as a Bluetooth peripheral device is bound to the display device as a central device, receive, through the communication unit, a target connection establishment request sent by the control device through a Bluetooth protocol stack, the establishment request is sent by the control device when a virtual event is monitored, and the virtual event is sent to the Bluetooth protocol stack of the control device through an application platform framework of the control device based on a system property interface during the binding between the control device and the display device; according to the establishment request, send a target connection establishment response to the control device through the communication unit, the establishment response is used for the Bluetooth protocol stack to establish the target connection with the display device; establish the target connection with the Bluetooth protocol stack, and send device information of the display device to the Bluetooth protocol stack through the communication unit based on the target connection.

[0152] In some embodiments of the present application, the controller is configured to: when the control device as the Bluetooth peripheral role and the display device as the central device role are bound, receive, through the communication unit, a GATT connection establishment request sent by the control device through the Bluetooth protocol stack; based on the establishment request, send a GATT connection establishment response to the control device through the communication unit, and the establishment response is used for the Bluetooth protocol stack to establish the GATT connection with the display device; establish the GATT connection with the Bluetooth protocol stack, and send the device information to the Bluetooth protocol stack through the communication unit based on the received ATT query.

[0153] Among them, the relevant description of the display device can refer to the relevant description of the control device mentioned above, and is not limited here.

[0154] The present application provides a control device. In the process of connecting the control device as a Bluetooth peripheral role and the display device as a central device role, if the application in the control device needs to obtain the device information of the display device, a first data packet carrying first indication information is sent to the display device, so that the display device sends a second data packet carrying the device information of the display device to the control device according to the first indication information, so that the control device can obtain the device information according to the second data packet. In other words, the control device obtains the device information of the display device by reusing the function of scanning data packets of the control device as a central device role and the function of sending data packets of the display device as a Bluetooth peripheral role, without adding additional complex system interfaces in the control device (Bluetooth peripheral role), reducing the complexity of software and hardware design and improving the efficiency of obtaining device information.

[0155] In some embodiments of the present application, after the control device obtains the device information of the display device according to the second data packet, the control device sends a third data packet carrying second indication information to the display device through the communication unit, and the second indication information is used to instruct the display device to stop sending the second data packet to the control device according to the second indication information, and the third data packet is a broadcast packet and / or a response packet. In this way, the increase in power consumption caused by sending the second data packet for a long time can be avoided.

[0156] In some embodiments of the present application, the controller is further configured to: during the process of connecting the control device acting as a Bluetooth peripheral with the display device acting as a central device, before sending a first data packet carrying first indication information to the display device through the communication unit, determine through the application platform framework whether an application that needs to obtain the device information is installed in the control device.

[0157] In some embodiments of the present application, the controller is further configured to: after acquiring the device information according to the second data packet, send the device information to the application platform framework through the Bluetooth protocol stack; and send the device information to the application through the application platform framework.

[0158] The present application provides a display device, comprising: a communication unit, configured to: communicate with a control device; a controller, configured to: during a process of connecting the control device as a Bluetooth peripheral role and the display device as a central device role, receive a first data packet carrying first indication information sent by the control device through the communication unit, the first indication information being used to instruct the display device to send a second data packet carrying device information of the display device to the control device according to the first indication information, the first data packet being a broadcast packet and / or a response packet, and the second data packet being a broadcast packet and / or a response packet; and send the second data packet to the control device through the communication unit, the second data packet being used by the control device to obtain the device information according to the second data packet.

[0159] In some embodiments of the present application, the controller is further configured to: after sending the second data packet to the control device through the communication unit, receive a third data packet carrying second indication information sent by the control device through the communication unit, the third data packet being generated after the control device obtains device information of the display device based on the second data packet, and the third data packet is a broadcast packet and / or a response packet; and stop sending the second data packet to the control device based on the second indication information.

[0160] Among them, the relevant description of the display device can refer to the relevant description of the control device mentioned above, and is not limited here.

[0161] See also Figure 4 In some embodiments, the system is divided into four layers, from top to bottom, namely, the application layer (Applications) layer (referred to as "application layer"), the application framework layer (Application Framework) layer (referred to as "framework layer"), the Android runtime (Android runtime) and system library layer (referred to as "system runtime library layer"), and the kernel layer.

[0162] In some embodiments, the application program (such as the target application program, etc.) in the embodiments of the present application is Figure 4 In the application layer, at least one application is running in the application layer. These applications can be window programs, system settings programs, clock programs, etc. that come with the operating system; they can also be applications developed by third-party developers. In specific implementations, the application packages in the application layer are not limited to the above examples.

[0163] The application platform framework in the embodiment of the present application is Figure 4 The framework layer in the application layer provides application programming interface (API) and programming framework for applications. The application framework layer includes some predefined functions. The application framework layer is equivalent to a processing center, which determines the actions of applications in the application layer. Through the API interface, applications can access system resources and obtain system services during execution.

[0164] like Figure 4 As shown, in the embodiment of the present application, the application framework layer includes managers, content providers, etc., wherein the manager includes at least one of the following modules: an activity manager (ActivityManager) is used to interact with all activities running in the system; a location manager (Location Manager) is used to provide system services or applications with access to system location services; a package manager (Package Manager) is used to retrieve various information related to the application package currently installed on the device; a notification manager (NotificationManager) is used to control the display and clearing of notification messages; a window manager (Window Manager) is used to manage icons, windows, toolbars, wallpapers, and desktop components on the user interface.

[0165] In some embodiments, the activity manager is used to manage the life cycle of each application and the common navigation back function, such as controlling the exit, opening, and back of the application. The window manager is used to manage all window programs, such as obtaining the display screen size, determining whether there is a status bar, locking the screen, capturing the screen, and controlling the display window changes (for example, reducing the display window, shaking the display, distorting the display, etc.).

[0166] In some embodiments, the Bluetooth protocol stack in the embodiments of the present application is Figure 4 The system runtime layer in the Android operating system provides support for the upper layer, namely the framework layer. When the framework layer is used, the Android operating system will run the C / C++ library contained in the system runtime layer to implement the functions to be implemented by the framework layer.

[0167] In some embodiments, the kernel layer is a layer between hardware and software. Figure 4As shown, the kernel layer includes at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power driver, etc.

[0168] like Figure 5 As shown, Figure 5 The flowchart of the steps of implementing the device information acquisition method according to one or more embodiments of the present invention is as follows. The execution subject of the device information acquisition method can be a control device, or a functional module or functional entity in the control device that can implement the device information acquisition method, which is not limited here. The device information acquisition method may include the following steps 501 to 502.

[0169] 501. In the process of binding the control device as a Bluetooth peripheral role and the display device as a central device role, a virtual event is sent to the Bluetooth protocol stack of the control device through the application platform framework of the control device based on the system property interface.

[0170] 502. When the binding between the control device and the display device is completed, based on the virtual event, communicate with the display device through the Bluetooth protocol stack to obtain device information of the display device.

[0171] Among them, the implementation method of the virtual event mechanism: Taking the Android system as an example, since the Android system provides a system property interface, this interface is a global shared interface. You can call the set method in the system property interface to set the name of the property variable and the corresponding property variable value, and then use the get method in the system property interface to get the property variable name and the corresponding property value. The property variable name can be customized.

[0172] It can be understood that the application platform framework of the control device sends a virtual event to the Bluetooth protocol stack through the set method in the system property interface, so as to set the name of the attribute variable and the corresponding attribute variable value (that is, to set the type of device information of the display device to be obtained) through the virtual event. The Bluetooth protocol stack monitors the virtual event through the system property interface, and obtains the attribute variable name and the corresponding attribute value (that is, to obtain the type of device information of the display device to be obtained) through the get method in the system property interface.

[0173] Among them, different virtual events can be customized according to the application's requirements for the type of device information of the display device. For example, if the application in the control device needs to obtain the device name information of the display device, the device information corresponding to the virtual event is the device name information of the display device; if the application in the control device needs to obtain the device manufacturer information of the display device, the device information corresponding to the virtual event is the device manufacturer information of the display device; if the application in the control device needs to obtain the device manufacturer information of the display device, the device information corresponding to the virtual event is the device manufacturer information of the display device; if the application in the control device needs to obtain the device type information of the display device, the device information corresponding to the virtual event is the device type information of the display device; if the application in the control device needs to obtain the MAC address information of the display device, the device information corresponding to the virtual event is the MAC address information of the display device; if the application in the control device needs to obtain the appearance information of the display device, the device information corresponding to the virtual event is the appearance information of the display device.

[0174] At present, in the process of connecting the central device with the Bluetooth peripheral, the central device obtains the device information of the Bluetooth peripheral (hereinafter referred to as peripheral information), mainly based on the contents in the scanned broadcast packet (Advertising Data) and response packet (Scan response) of the Bluetooth peripheral, to obtain the peripheral information of the Bluetooth peripheral.

[0175] Specifically, the central device includes an application that needs to obtain peripheral information. During the process of Bluetooth connection between the Bluetooth peripheral and the central device, the process of the central device obtaining the peripheral information of the Bluetooth peripheral is as follows: the central device starts scanning and scans the broadcast channel. When the broadcast packet of the Bluetooth peripheral is scanned, the Bluetooth firmware in the central device reports the event of receiving the broadcast packet through the host controller interface (HCI) layer, and then reports the content of the peripheral information through the callback of the Bluetooth protocol stack. The specific process in this process can refer to the relevant existing technology and is not limited here.

[0176] The Bluetooth connection process between the central device and the Bluetooth peripheral device may include a broadcast packet and a response packet, both of which are data packets. The broadcast packet must be broadcast by each device, while the response packet is optional. For example, Figure 6As shown, the format of the data packet may include: each packet is 31 bytes, and the data packet is divided into two parts: valid data (significant) and invalid data (non-significant). Valid data part: contains several broadcast data units, called AD Structure. The composition of AD Structure is: the first byte is the length value Len, indicating that the next Len bytes are the data part. The first byte of the data part indicates the data type AD Type, and the remaining Len-1 bytes are the actual data AD data. Among them, AD type is very critical, which determines what the data of AD Data represents and how to parse it. Invalid data part: because the length of the broadcast packet must be 31 bytes, if the valid data part is less than 31 bytes, the rest will be filled with 0. This part of the data is invalid and can be ignored when interpreting.

[0177] In the embodiment of the present application, in the process of connecting the control device as a Bluetooth peripheral role and the display device as a central device role, the control device runs the first Bluetooth connection system. The device information of the display device is obtained by registering a virtual event trigger to communicate with the display device, and the device information is called back through the system property interface. It should be noted that in this process, the control device runs the second Bluetooth connection system.

[0178] In some embodiments of the present application, the virtual event is used to simulate the event of receiving a broadcast packet or a response packet in the process of the central device acquiring the peripheral information of the Bluetooth peripheral. Therefore, illustratively, the virtual event can be a virtual event of receiving a broadcast packet, the virtual event can also be a virtual event of receiving a response packet, the virtual event can also be a virtual event of receiving a broadcast packet and a virtual event of receiving a response packet, and the virtual event can also be a customized event with similar reception of a broadcast packet or a response packet (i.e., a customized event that can obtain device information through callback), which can be determined according to actual conditions and is not limited in the embodiments of the present application.

[0179] In an embodiment of the present application, the virtual event is a virtual event of receiving a broadcast packet and / or a response packet, which is more adaptable to the second Bluetooth connection system in which the control device acts as the central device role. The system property interface and the second Bluetooth connection system can be better reused, and the device information of the display device can be obtained more quickly, thereby improving the efficiency of Bluetooth peripherals in obtaining the device information of the central device.

[0180] In some embodiments of the present application, Figure 5 ,like Figure 7 As shown, the above step 502 can be specifically implemented through the following steps 502a to 502c.

[0181] 502a: When the control device is bound to the display device, the virtual event is monitored through the Bluetooth protocol stack.

[0182] In some embodiments of the present application, the above step 502a may specifically be to monitor the virtual event through polling through the Bluetooth protocol stack when the binding between the control device and the display device is completed.

[0183] 502b: When the virtual event is monitored, a request for establishing a target connection is sent to the display device.

[0184] Correspondingly, the display device side performs the following steps: when the control device as a Bluetooth peripheral role is bound to the display device as a central device role, a request for establishing a target connection sent by the control device through the Bluetooth protocol stack is received, and the establishment request is sent by the control device when a virtual event is monitored. The virtual event is sent to the Bluetooth protocol stack of the control device through the application platform framework of the control device based on the system property interface during the binding process between the control device and the display device.

[0185] 502c. In response to the establishment response sent by the display device according to the establishment request, the target connection is established with the display device through the Bluetooth protocol stack, and the device information of the display device is obtained based on the target connection.

[0186] Correspondingly, the display device side performs the following steps: based on the establishment request, sending an establishment response of the target connection to the control device, and the establishment response is used for the Bluetooth protocol stack to establish the target connection with the display device; establishing the target connection with the Bluetooth protocol stack, and sending the device information of the display device to the Bluetooth protocol stack based on the target connection.

[0187] It can be understood that when the control device determines that the control device and the display device are bound in the first Bluetooth connection system, it listens to the virtual event in the second Bluetooth connection system. When the virtual event is listened to, a target connection is established with the display device through the Bluetooth protocol stack, and the device information of the display device is obtained by communicating with the display device based on the target connection.

[0188] In an embodiment of the present application, when the control device is bound to the display device, the virtual event can be acquired in time by monitoring the virtual event, a target connection can be established based on the virtual event in time, and then the device information of the display device can be acquired based on the target connection.

[0189] In some embodiments, the target connection may be a GATT connection or other connection, which is not limited in the embodiments of the present application.

[0190] In some embodiments of the present application, the above steps 502b to 502c can be specifically implemented through the following steps 502b1 to 502c1.

[0191] 502b1. When the virtual event is monitored, a GATT connection establishment request is sent to the display device.

[0192] Accordingly, the display device performs the following steps: when the control device as a Bluetooth peripheral device is bound to the display device as a central device, a GATT connection establishment request sent by the control device through the Bluetooth protocol stack is received.

[0193] 502c1. Upon receiving the establishment response of the GATT connection sent by the display device according to the establishment request, establish the GATT connection with the display device through the Bluetooth protocol stack, and obtain the device information of the display device through ATT query after the GATT connection is established.

[0194] Accordingly, the display device side performs the following steps: based on the establishment request, sending the GATT connection establishment response to the control device, the establishment response is used for the Bluetooth protocol stack to establish the GATT connection with the display device; establishing the GATT connection with the Bluetooth protocol stack, and based on the received ATT query, sending the device information to the Bluetooth protocol stack.

[0195] When the control device monitors the virtual event, it actively sends a GATT connection establishment request to the display device. After receiving a GATT connection establishment response sent by the display device according to the GATT connection establishment request, the control device establishes a GATT connection with the display device through the Bluetooth protocol stack, and obtains the device information of the display device through the ATT character query.

[0196] In an embodiment of the present application, when the control device monitors a virtual event, it actively sends a GATT connection request to the display device, so that a GATT connection can be established after receiving a GATT connection response from the display device, and then the device information of the display device can be quickly obtained through a characteristic query of the ATT, thereby improving the efficiency of obtaining the device information of the display device.

[0197] In some embodiments of the present application, when it can be determined through the application platform framework that an application that needs to obtain device information is installed in the control device, during the binding process of the control device and the display device, a virtual event is sent to the Bluetooth protocol stack of the control device through the application platform framework of the control device based on the system property interface, and then when the binding of the control device and the display device is completed, based on the virtual event, the Bluetooth protocol stack communicates with the display device to obtain the device information of the display device.

[0198] In some embodiments of the present application, during the binding process between the control device and the display device, a virtual event can be sent to the Bluetooth protocol stack of the control device based on the system property interface through the application platform framework of the control device. Then, when the binding between the control device and the display device is completed, based on the virtual event, the Bluetooth protocol stack can communicate with the display device to obtain the device information of the display device. Then, when the application of the control device needs the device information of the display device, the device information can be sent to the corresponding application. The specific details can be determined based on actual conditions and are not limited by the embodiments of the present application.

[0199] Exemplarily, before the above step 501, the device information acquisition method provided in the embodiment of the present application may further include the following step 503.

[0200] 503. Determine, through the application platform framework, whether an application program that needs to obtain the device information is installed in the control device.

[0201] It can be understood that when the control device is not installed with an application that needs to obtain the device information of the display device, the control device does not need to obtain the device information of the display device when it is connected to the display device. Therefore, when it is determined through the application platform framework that an application that needs to obtain the device information is installed in the control device, the device information acquisition method provided in the embodiment of the present application can be used to implement the callback of the device information of the display device through virtual events based on the system property interface of the control device, so that the device information can be acquired in advance. In this way, when the target application needs the device information of the display device, the device information can be quickly acquired and sent to the target application.

[0202] In some embodiments of the present application, after obtaining the device information (when the control device is bound to the display device, based on the virtual event, communicate with the display device through the Bluetooth protocol stack to obtain the device information of the display device), it can be sent directly to the application (it can be sent to a certain application individually or to all applications in a broadcast manner); or after obtaining the device information, when the target application needs to obtain the device information, the device information can be sent to the target application; the specific details can be determined based on actual conditions and are not limited in the embodiments of the present application.

[0203] Exemplarily, after the above step 502, the device information acquisition method provided in the embodiment of the present application may further include the following steps 504 to 505.

[0204] 504. Send the device information to the application platform framework through the Bluetooth protocol stack.

[0205] 505. Send the device information to the application program through the application platform framework.

[0206] In some embodiments of the present application, the above step 505 may specifically be sending the device information to the application program in a broadcasting form through the application platform framework.

[0207] In the embodiment of the present application, after acquiring the device information, the device information is directly sent to the application, so that when the application needs to use the device information, the device information can be acquired in time, thereby improving the efficiency of the device information.

[0208] In the embodiment of the present application, the control device may be a high-end remote controller including an Android system, which can realize both the network configuration function for the same set of home appliances and the remote control function for the TV. When the control device is used as a remote controller, it can interact with the TV (display device) as a Bluetooth peripheral to obtain information such as the name of the TV in real time.

[0209] For example, when the control device (such as a remote control function) as a Bluetooth peripheral role is connected to a paired display device (such as a TV), the process is as follows:

[0210] When the display device is in the scanning state, it monitors the broadcast packets of the control device. The control device sends the broadcast packets through event triggering. The display device monitors the broadcast packets of the control device and detects the fields agreed upon by both parties in the broadcast packets, and automatically initiates the pairing and binding process (the control device pairs and binds with the display device through the first Bluetooth connection system).

[0211] During the pairing process, pairing is performed to establish keys, which are then used to encrypt the link. Then a transport-specific key distribution is performed to share the key. The key can be used to encrypt the link, verify signature data, or perform random address resolution when reconnecting in the future. Generally speaking, there are three phases in pairing. Phase 1: Pairing Feature Exchange; Phase 2: Short Term Key (STK) Generation (LE legacy pairing): Short Term Key (STK) Generation); Phase 2: Long Term Key (LTK) Generation (LE Secure Connections): Long Term Key (LTK) Generation; Phase 3: Transport Specific Key Distribution.

[0212] During the binding process, the Bluetooth protocol stack of the control device will actively report the state change from not bound (bond none) to being bound (bonding). When the application platform framework receives the change of the bonding state reported by the Bluetooth protocol stack, it will register the virtual event based on the system property interface. When the Bluetooth protocol stack detects the change of the bond state from bonding to the bound state (bonded), the Bluetooth protocol stack will perform polling monitoring of virtual events. After monitoring the virtual event, the control device will actively initiate a GATT connection request to the display device through the Bluetooth protocol stack. After the GATT connection, the ATT character query is performed to obtain the device information of the display device. At this time, the device information is obtained through the ATT method.

[0213] In the embodiment of the present application, the callback of device information can be completed through a callback event, and the control device can be controlled to obtain the device information of the display device through the virtual event.

[0214] In some embodiments of the present application, the callback event can be registered in the information callback process of the second Bluetooth connection system in which the control device plays the role of the central device. For example, it can be implemented in any of the following code flows: bta_dm_search_cb P_search_cback(), btif_dm_search_device_evt(), bta_dm_inq_results_ch(), btm_process_inq_results(), post_to_hci_message_loop(). It can also be implemented in other code flows, which can be determined according to actual conditions and are not limited in the embodiments of the present application. Among them, when implemented in the bta_dm_search_cb P_search_cback() or btif_dm_search_device_evt() code flow, the callback speed of the device information can be increased, that is, the efficiency of obtaining the device information can be improved.

[0215] Exemplarily, a possible specific process of the device acquisition method provided in the embodiment of the present application is introduced as follows. The control device (as a Bluetooth peripheral role) starts to send broadcast packets, the display device (central device role) process, the display device starts scanning to listen to the broadcast packets of the control device, and starts the process of connecting to the control device. The display device listens to the broadcast packet sent by the control device and initiates the pairing connection process with the control device. The control device receives the pairing connection request sent by the display device and pairs with the display device. After the control device and the display device are successfully paired, the two initiate a binding process. In the binding process, the Bluetooth protocol stack of the control device reports to the application platform framework from the unbound state to the binding state. When the application platform framework of the control device receives the binding state, it sends a virtual broadcast packet reception event to the Bluetooth protocol stack through the system property interface (to implement the registration of virtual events). The Bluetooth protocol stack of the control device receives a virtual broadcast packet reception event, initiates a GATT connection with the display device, obtains the device information of the display device through an ATT query, and then assembles the GATT query result, obtains the device information of the display device through the system property interface (BTE_search_devices_evt), and sends the device information to the application platform framework. After receiving the device information, the application platform framework sends the device information to the corresponding application.

[0216] like Figure 8 As shown, Figure 8The flowchart of the steps of implementing the device information acquisition method according to one or more embodiments of the present invention is as follows. The execution subject of the device information acquisition method can be a control device, or a functional module or functional entity in the control device that can implement the device information acquisition method, which is not limited here. The device information acquisition method may include the following steps 801 to 803.

[0217] 801. When the control device serving as a Bluetooth peripheral device is connected to the display device serving as a central device, a first data packet carrying first indication information is sent to the display device.

[0218] Among them, the first indication information is used to instruct the display device to send a second data packet carrying the device information to the control device according to the first indication information, the first data packet is a broadcast packet and / or a response packet, and the second data packet is a broadcast packet and / or a response packet.

[0219] Correspondingly, the display device side performs the following steps: in the process of connecting the control device acting as a Bluetooth peripheral role and the display device acting as a central device role, a first data packet carrying first indication information sent by the control device is received, and the first indication information is used to instruct the display device to send a second data packet carrying device information of the display device to the control device according to the first indication information, the first data packet is a broadcast packet and / or a response packet, and the second data packet is a broadcast packet and / or a response packet.

[0220] Among them, the first indication information can be a flag bit that indicates that the display device sends a second data packet carrying the device information of the display device to the control device, or can be other indication information, which is not limited in the embodiment of the present application.

[0221] The first indication information may be added to a valid data field in the first data packet.

[0222] The description of the device information may refer to the above description of the device information in step 502, which will not be repeated here.

[0223] 802. Receive the second data packet sent by the display device.

[0224] Correspondingly, the display device side performs the following steps: sending the second data packet to the control device, and the second data packet is used by the control device to obtain the device information according to the second data packet.

[0225] 803. Obtain the device information according to the second data packet.

[0226] In some embodiments, during a Bluetooth connection between a control device acting as a Bluetooth peripheral and a display device acting as a central device, the control device sends a data packet and the display device starts scanning. When an application in the control device needs to obtain device information of the display device, the control device sends a first data packet carrying first indication information to the display device and changes roles (from a Bluetooth peripheral role to a central device role) to start scanning. After scanning the first data packet carrying the first indication information, the display device determines that the control device needs the device information of the display device based on the first indication information, and the display device changes roles (from a central device role to a Bluetooth peripheral role) and sends a second data packet carrying the device information of the display device to the control device. The control device scans the second data packet and obtains the device information of the control device based on the second data packet.

[0227] In some embodiments, during a process in which a control device acting as a Bluetooth peripheral and a display device acting as a central device are connected via Bluetooth, the control device sends a data packet and the display device starts scanning. When an application in the control device needs to obtain device information of the display device, the control device sends a first data packet carrying first indication information to the display device. The first data packet may also carry peripheral information of the control device, and the control device starts scanning while sending the first data packet (i.e., two Bluetooth systems are simultaneously running in the control device). After scanning the first data packet carrying the first indication information, the display device determines that the control device needs the device information of the display device based on the first indication information, so that the display device can continue to execute subsequent processes during the process of connecting with the control device as a central device, and sends a second data packet carrying the device information of the display device to the control device based on the first indication information (i.e., two Bluetooth systems are also simultaneously running in the display device). The control device scans the second data packet and obtains the device information of the control device based on the second data packet.

[0228] In some embodiments of the present application, after the above step 803, the device information acquisition method provided by the embodiment of the present application may further include the following step 804.

[0229] 804. Send a third data packet carrying second indication information to the display device.

[0230] The second indication information is used to instruct the display device to stop sending the second data packet to the control device according to the second indication information, and the third data packet is a broadcast packet and / or a response packet.

[0231] Correspondingly, the display device side performs the following steps: receiving a third data packet carrying second indication information sent by the control device, the third data packet is generated after the control device obtains the device information of the display device according to the second data packet, and the third data packet is a broadcast packet and / or a response packet; and stopping sending the second data packet to the control device according to the second indication information.

[0232] The second indication information may be a flag bit that instructs the display device to stop sending the second data packet carrying the device information of the display device to the control device, or may be other indication information, which is not limited in the embodiment of the present application.

[0233] The second indication information may be added to the valid data field in the third data packet.

[0234] In some embodiments, after the control device obtains the device information of the display device according to the second data packet, the control device can change roles (from a central device role to a Bluetooth peripheral role), stop scanning, and send a third data packet carrying second indication information to the display device; after the display device sends the second data packet to the control device, it starts scanning, and after scanning the third data packet, stops sending the second data packet to the control device according to the second indication information.

[0235] Optionally, after the control device obtains the device information of the display device according to the second data packet, it stops scanning and sends a third data packet carrying second indication information to the display device; after scanning the third data packet, the display device stops sending the second data packet to the control device according to the second indication information.

[0236] In the embodiment of the present application, after the control device obtains the device information of the display device, the display device is instructed to stop sending the second data packet to the control device through the second indication information, thereby saving power consumption.

[0237] In some embodiments of the present application, before the above step 801, the device information acquisition method provided by the embodiment of the present application may also include the following step 805.

[0238] 805. Determine, through the application platform framework, whether an application program that needs to obtain the device information is installed in the control device.

[0239] It should be noted that the description of the above step 805 can refer to the above related description of step 503, which will not be repeated here.

[0240] In some embodiments of the present application, after the above step 803, the device information acquisition method provided in the embodiments of the present application may further include the following steps 806 to 807.

[0241] 806. Send the device information to the application platform framework through the Bluetooth protocol stack.

[0242] 807. Send the device information to the application program through the application platform framework.

[0243] It should be noted that the description of the above steps 806 to 807 can refer to the above related description of steps 504 to 505, which will not be repeated here.

[0244] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the device information acquisition method provided in the above method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0245] An embodiment of the present application also provides a computer program product, wherein the computer program product includes a computer program. When the computer program product runs on a processor, the processor executes the computer program to implement the various processes of the device information acquisition method provided in the above method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0246] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0247] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.

Claims

1. A control device, characterized in that: include: A communication unit, configured to: communicate with a display device; The controller is configured to: during the binding process between the control device as a Bluetooth peripheral role and the display device as a central device role, send a virtual event to the Bluetooth protocol stack of the control device through the application platform framework of the control device based on the system property interface; When the control device is bound to the display device, monitoring the virtual event through the Bluetooth protocol stack; When the virtual event is monitored, sending a target connection establishment request to the display device through the communication unit; In response to the establishment response sent by the display device according to the establishment request, the target connection is established with the display device through the Bluetooth protocol stack, and the device information of the display device is obtained based on the target connection; wherein, in the process of the control device and the display device establishing a Bluetooth connection, two sets of Bluetooth connection systems are run in the control device, the first set of Bluetooth connection system is used for the control device as a Bluetooth peripheral role to establish a Bluetooth connection with the display device as a central device role, and the second set of Bluetooth connection system is used for the control device as a virtual central device role to obtain the device information of the display device; the control device obtains the device information of the display device by running the second set of Bluetooth connection system to simulate the process of the control device as a central device role.

2. The control device according to claim 1, characterized in that The controller is configured to: When the virtual event is monitored, a request for establishing a general attribute protocol GATT connection is sent to the display device through the communication unit; When receiving the establishment response of the GATT connection sent by the display device according to the establishment request, the GATT connection is established with the display device through the Bluetooth protocol stack, and after the GATT connection is established, the device information of the display device is obtained through ATT query.

3. The control device according to claim 1, characterized in that The virtual event is a virtual broadcast packet received event and / or a virtual response packet received event.

4. The control device according to claim 1, characterized in that The controller, in the process of binding the control device as a Bluetooth peripheral role with the display device as a central device role, before sending a virtual event to the Bluetooth protocol stack of the control device through the application platform framework of the control device based on the system property interface, is further configured as follows: It is determined through the application platform framework that an application program that needs to obtain the device information is installed in the control device.

5. The control device according to claim 4, characterized in that The controller, after executing the establishment response sent by the display device according to the establishment request, establishes the target connection with the display device through the Bluetooth protocol stack, and obtains the device information of the display device based on the target connection, is further configured to: Sending the device information to the application platform framework through the Bluetooth protocol stack; The device information is sent to the application program through the application platform framework.

6. A display device, characterized in that: include: A communication unit is configured to: communicate with a control device; The controller is configured to: when the control device as a Bluetooth peripheral role is bound to the display device as a central device role, receive, through the communication unit, a target connection establishment request sent by the control device through the Bluetooth protocol stack, wherein the establishment request is sent by the control device when a virtual event is monitored, and the virtual event is sent to the Bluetooth protocol stack of the control device through the application platform framework of the control device based on the system property interface during the binding process between the control device and the display device; According to the establishment request, sending an establishment response of the target connection to the control device through the communication unit, wherein the establishment response is used for the Bluetooth protocol stack to establish the target connection with the display device; Establish the target connection with the Bluetooth protocol stack, and send the device information of the display device to the Bluetooth protocol stack through the communication unit based on the target connection; wherein, during the process of the control device and the display device establishing a Bluetooth connection, two sets of Bluetooth connection systems are run in the control device, the first set of Bluetooth connection system is used to establish a Bluetooth connection between the control device as a Bluetooth peripheral role and the display device as a central device role, and the second set of Bluetooth connection system is used to obtain the device information of the display device when the control device acts as a virtual central device role; the control device obtains the device information of the display device by running the second set of Bluetooth connection system to simulate the process of the control device acting as a central device role.

7. A method for acquiring device information, characterized in that: Applied to control equipment, including: In the process of binding the control device as a Bluetooth peripheral role and the display device as a central device role, sending a virtual event to the Bluetooth protocol stack of the control device through the application platform framework of the control device based on the system property interface; When the control device is bound to the display device, monitoring the virtual event through the Bluetooth protocol stack; When the virtual event is monitored, a request for establishing a target connection is sent to the display device; In response to the establishment response sent by the display device according to the establishment request, the target connection is established with the display device through the Bluetooth protocol stack, and the device information of the display device is obtained based on the target connection; wherein, in the process of the control device and the display device establishing a Bluetooth connection, two sets of Bluetooth connection systems are run in the control device, the first set of Bluetooth connection system is used for the control device as a Bluetooth peripheral role to establish a Bluetooth connection with the display device as a central device role, and the second set of Bluetooth connection system is used for the control device as a virtual central device role to obtain the device information of the display device; the control device obtains the device information of the display device by running the second set of Bluetooth connection system to simulate the process of the control device as a central device role.

8. A method for acquiring device information, characterized in that: Applied to display devices, including: In the case where the control device as a Bluetooth peripheral role is bound to the display device as a central device role, receiving a target connection establishment request sent by the control device through the Bluetooth protocol stack, wherein the establishment request is sent by the control device when a virtual event is monitored, and the virtual event is sent to the Bluetooth protocol stack of the control device through the application platform framework of the control device based on the system property interface during the binding process between the control device and the display device; According to the establishment request, sending an establishment response of the target connection to the control device, wherein the establishment response is used for the Bluetooth protocol stack to establish the target connection with the display device; Establish the target connection with the Bluetooth protocol stack, and send the device information of the display device to the Bluetooth protocol stack based on the target connection; wherein, during the process of the control device and the display device establishing a Bluetooth connection, two sets of Bluetooth connection systems are run in the control device, the first set of Bluetooth connection system is used for the control device as a Bluetooth peripheral role to establish a Bluetooth connection with the display device as a central device role, and the second set of Bluetooth connection system is used for the control device as a virtual central device role to obtain the device information of the display device; the control device obtains the device information of the display device by running the second set of Bluetooth connection system to simulate the process of the control device as a central device role.

9. A computer-readable storage medium, characterized in that: include: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to claim 7 or claim 8 is implemented.

10. A computer program product, characterized in that include: When the computer program product runs on a computer, the computer is caused to implement the method according to claim 7 or claim 8.

Citation Information

Patent Citations

  • Device control methods and apparatuses, and electronic devices

    CN105872655A

  • Bluetooth connection method and apparatus

    CN107135463A

  • Communication method and device

    CN113228717A