Display device, control apparatus and device configuration method

By establishing a Bluetooth GATT connection between the display device and the control device, the second code library of the display device is transmitted, and the problem that the unsuited control device cannot control the display device is solved, achieving efficient device configuration and improving user experience.

CN114785914BActive Publication Date: 2025-03-25HISENSE VISUAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210255365.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-15
Publication Date
2025-03-25
Estimated Expiration
2042-03-15

AI Technical Summary

Technical Problem

In the prior art, when the control device supporting the display device fails or is lost, the user cannot use the unsuited control device to control the display device, resulting in limited user experience.

Method used

By establishing a Bluetooth GATT connection between the display device and the control device, the second code library supported by the display device is transmitted to the control device, so that it completes the re-adaptation of the code library, so that the unsuited control device can control the display device normally.

Benefits of technology

It realizes that unsuitable control devices can control the display equipment normally, improves the user experience, and improves the equipment configuration processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114785914B_ABST
    Figure CN114785914B_ABST
Patent Text Reader

Abstract

The present application relates to a display device, a control device and a device configuration method, wherein the control device of the method sends information of a first code library to the display device in a broadcast message, so that the display device can confirm whether the control device needs to reconfigure the code library during the scanning process; when the display device determines that the code libraries supported by the two are inconsistent, it establishes a GATT connection with the control device, and then sends the second code library to the control device through the GATT connection, so that the control device completes the re-adaptation of the code library, solves the problem that the unmatched control device cannot control the display device, and is conducive to improving the user experience. In addition, in the application, GATT can be used to achieve fast connection configuration between the control device and the display device, which is conducive to improving the efficiency of device configuration processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of display device control, and in particular to a display device, a control apparatus and a device configuration method. Background Art

[0002] Display devices are one of the indispensable household devices in daily life. Usually, display devices have matching control devices, and users can operate the display devices through the matching control devices. With the rapid development of technology, there are more and more types of display devices, and each type of display device corresponds to a control device for users to use.

[0003] Currently, when a control device matching a display device fails or is lost, a user cannot use the non-matching control device to control the display device. Therefore, how to control the display device using the non-matching control device is an urgent problem to be solved. Summary of the invention

[0004] In order to solve the above technical problems, the present application provides a display device, a control apparatus and a device configuration method.

[0005] In a first aspect, the present application provides a display device, including:

[0006] The Bluetooth communicator is configured to: obtain a broadcast message sent by a control device, wherein the broadcast message includes identification information corresponding to a first code library; the first code library is a code library supported by the control device;

[0007] A controller configured to: determine whether the first code library is consistent with a second code library supported by the display device according to identification information corresponding to the first code library;

[0008] If they are inconsistent, the Bluetooth communicator is controlled to establish a Generic Attribute Profile (GATT) connection with the control device; and the Bluetooth communicator is controlled to send the second code library to the control device through the GATT connection, so that the control device configures the control device according to the second code library.

[0009] In a second aspect, the present application provides a control device, comprising:

[0010] A Bluetooth communicator is configured to: send a broadcast message, wherein the broadcast message includes identification information corresponding to a first code library; the first code library is a code library supported by the control device;

[0011] The controller is configured to: if the first code library is inconsistent with the second code library supported by the display device, control the Bluetooth communicator to establish a general attribute profile GATT connection with the display device; and control the Bluetooth communicator to obtain the second code library sent by the display device through the GATT connection, and configure the control device according to the second code library.

[0012] In a third aspect, the present application provides a device configuration method, applied to a display device, the method comprising:

[0013] Acquire a broadcast message sent by a control device, wherein the broadcast message includes identification information corresponding to a first code library; the first code library is a code library supported by the control device;

[0014] determining, according to identification information corresponding to the first code library, whether the first code library is consistent with a second code library supported by the display device;

[0015] If they are inconsistent, a general attribute profile GATT connection is established with the control device, and the second code library is sent to the control device through the GATT connection, so that the control device is configured according to the second code library.

[0016] In a fourth aspect, the present application provides a device configuration method, applied to a control device, the method comprising:

[0017] Sending a broadcast message, wherein the broadcast message includes identification information corresponding to a first code library; the first code library is a code library supported by the control device;

[0018] When the display device determines that the first code base is inconsistent with the second code base supported by the display device, establishing a general attribute profile GATT connection with the display device;

[0019] The second code library sent by the display device is obtained through the GATT connection, and the control device is configured according to the received second code library.

[0020] In the fifth aspect, the present application also provides an electronic device, comprising: a memory and a processor, the memory being configured to store computer program instructions; the processor being configured to execute the computer program instructions so that the electronic device implements the device configuration method as described in the third aspect or the fourth aspect above.

[0021] In a sixth aspect, the present application further provides a readable storage medium, comprising: computer program instructions, at least one processor of an electronic device executes the computer program instructions, so that the electronic device implements the device configuration method as described in the third aspect or the fourth aspect above.

[0022] In a seventh aspect, the present application also provides a computer program product, which is executed by an electronic device so that the electronic device implements the device configuration method described in the third aspect or the fourth aspect above.

[0023] The embodiment of the present application provides a display device, a control device and a device configuration method, wherein the control device sends information of a first code library to the display device in a broadcast message, so that the display device can confirm whether the control device needs to reconfigure the code library during the scanning process; when the display device determines that the code libraries supported by the two are inconsistent, it establishes a GATT connection with the control device, and then sends the second code library to the control device through the GATT connection, so that the control device completes the re-adaptation of the code library, solves the problem that the unmatched control device cannot control the display device, and is conducive to improving the user experience. In addition, in the application, GATT can be used to achieve fast connection configuration between the control device and the display device, which is conducive to improving the efficiency of device configuration processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0025] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0026] Figure 1 A schematic diagram of an operation scenario between a display device and a control device according to one or more embodiments of the present application;

[0027] Figure 2 is a hardware configuration block diagram of a display device 200 according to one or more embodiments of the present application;

[0028] Figure 3 is a hardware configuration block diagram of a control device 100 according to one or more embodiments of the present application;

[0029] Figure 4a A schematic diagram of software configuration in a display device 200 according to one or more embodiments of the present application;

[0030] Figure 4b An overall framework diagram for equipment configuration for display equipment and control devices;

[0031] Figure 5 A flowchart of a device configuration method provided in an embodiment of the present application;

[0032] Figure 6a A schematic diagram of a data structure of a data structure body included in a broadcast data packet is exemplified;

[0033] Figure 6b A schematic diagram of the data structure of a broadcast data packet is exemplarily shown;

[0034] Figure 7 A flowchart of a device configuration method provided by another embodiment of the present application;

[0035] Figure 8 A flowchart of a device configuration method provided by another embodiment of the present application;

[0036] Fig. 9 A flowchart of a device configuration method provided by another embodiment of the present application;

[0037] Fig.10 A flowchart of a device configuration method provided by another embodiment of the present application;

[0038] Fig.11 A flowchart of a device configuration method provided in another embodiment of the present application. DETAILED DESCRIPTION

[0039] In order to make the purpose, implementation mode and advantages of the present application clearer, the exemplary implementation mode 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.

[0040] Based on the exemplary embodiments described in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the claims attached to this application. In addition, although the disclosure in this application is introduced according to one or several exemplary examples, it should be understood that each aspect of these disclosures can also constitute a complete implementation method separately. It should be noted that the brief description of the terms in this application is only for the convenience of understanding the implementation methods described below, and is not intended to limit the implementation methods of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.

[0041] Figure 1 is a schematic diagram of an operation scenario between a display device and a control device according to one or more embodiments of the present application, such as Figure 1As shown, the user can operate the display device 200 through the mobile terminal 300 and the control device 100. The control device 100 can be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication, Bluetooth protocol communication, wireless or other wired methods to control the display device 200. The user can input user instructions through buttons on the remote controller, voice input, control panel input, etc. to control the display device 200. In some embodiments, a mobile terminal, a tablet computer, a computer, a laptop computer, and other smart devices can also be used to control the display device 200.

[0042] In some embodiments, the mobile terminal 300 can install software applications with the display device 200, and realize connection communication through the network communication protocol to achieve the purpose of one-to-one control operation and data communication. The audio and video content displayed on the mobile terminal 300 can also be transmitted to the display device 200 to realize the synchronous display function. The display device 200 also communicates data with the server 400 through various communication methods. The display device 200 can be allowed to communicate and connect through a local area network (LAN), a wireless local area network (WLAN) and other networks. The server 400 can provide various content and interactions to the display device 200. The display device 200 can be a liquid crystal display, an OLED display, or a projection display device. In addition to providing a broadcast receiving television function, the display device 200 can also provide an intelligent network TV function that provides a computer support function.

[0043] 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, a memory, and a power supply. The control device 100 can receive the user's input operation instructions, and convert the operation instructions into instructions that the display device 200 can recognize and respond to, and play the role of an interactive intermediary between the user and the display device 200. The communication interface 130 is used to communicate with the outside, and includes at least one of a WIFI chip, a Bluetooth module, NFC or an alternative module. The user input / output interface 140 includes at least one of a microphone, a touchpad, a sensor, a button or an alternative module.

[0044] Figure 3 FIG. 2 shows a hardware configuration block diagram of a display device 200 according to an exemplary embodiment. Figure 3The display device 200 shown includes at least one of a tuner 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface 280. The controller includes a central processing unit, a video processor, an audio processor, a graphics processor, a RAM, a ROM, and a first interface to an nth interface for input / output. The display 260 can be at least one of a liquid crystal display, an OLED display, a touch display, and a projection display, and can also be a projection device and a projection screen. The tuner 210 receives broadcast television signals by wired or wireless reception, and demodulates audio and video signals from multiple wireless or wired broadcast television signals, such as and EPG data signals. The detector 230 is used to collect signals of the external environment or interact with the outside. The controller 250 and the tuner 210 can be located in different split devices, that is, the tuner 210 can also be in an external device of the main device where the controller 250 is located, such as an external set-top box.

[0045] In some embodiments, the controller 250 controls the operation of the display device and responds to the user's operation through various software control programs stored in the memory. The controller 250 controls the overall operation of the display device 200. The user can 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 can input a user command by inputting a specific sound or gesture, and the user input interface recognizes the sound or gesture through a sensor to receive the user input command.

[0046] In some embodiments, "user interface" is a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. A common form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be an interface element such as an icon, window, or control displayed on a display screen of an electronic device, wherein a control may include at least one of icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, and other visual interface elements.

[0047] Combination Figures 1 to 3In the illustrated embodiment, the control device 100 and the display device 200 that are matched with each other usually support the same code library, and the instructions input by the user on the control device 100 will be converted into code values, and then the code values ​​will be transmitted to the display device 200. The display device 200 can parse and obtain the code values, and obtain the instructions input by the user by querying the code library, and then execute the instructions input by the user. The same code library stored in the control device 100 and the display device 200 ensures that the instructions input by the user on the control device 100 can be correctly received and executed by the display device 200, thereby realizing reliable control of the display device 200 by the control device 100.

[0048] In some scenarios, for example, when a control device matching a display device fails or is lost, since the code library supported by the unmatched control device is inconsistent with the code library supported by the display device, the user cannot control the display device through the unmatched control device, and the user's needs cannot be met.

[0049] Therefore, the present application provides a device configuration method, by which an unmatched control device and a display device can establish a connection based on the Bluetooth GATT protocol and transmit the code library stored in the display device to the control device, thereby completing the re-adaptation of the code library between the unmatched control device and the display device, so that the unmatched control device becomes a control device matching the display device after configuration, thereby solving the problem that the unmatched control device cannot control the display device and meeting user needs.

[0050] The device configuration method provided in this application shows that the configuration of the code base between the display device and the control device is based on the Bluetooth GATT protocol. In order to make the application scheme clearer, the relevant contents of the Bluetooth GATT protocol are first introduced in detail here:

[0051] Bluetooth devices (such as control devices and display devices) contain an attribute table (ATT), which contains different types of related records, including services, service characteristics, and descriptors. Among them, a service contains one or more service attributes; a service attribute can contain multiple parts, such as type, value, how other devices use the service attribute through Bluetooth, permissions, etc.; a descriptor contains metadata, which can amplify the relevant details of the characteristic to which the descriptor belongs. Of course, a service can contain one or more descriptors, or it can contain no descriptors.

[0052] The Bluetooth GATT protocol describes a service framework using ATT, which defines the procedures and formats of services and service attributes. The procedures define the discovery, reading, writing, notification, indication, and broadcasting of configuration descriptors. After a GATT connection is established between Bluetooth devices, two-way communication can be achieved by looking up and writing data to the descriptor and sending it, or reading data from the descriptor contained in the received message.

[0053] In the Bluetooth GATT protocol, Bluetooth devices can be configured as two roles: client and server, where the client is the initiator of commands and requests, and the server is the receiver of commands and requests. In the method provided in this application, the control device can be understood as the server of GATT, and the display device can be understood as the client of GATT. The display device, as a client, is used to initiate a request to establish a GATT connection to the control device.

[0054] The above description implements two-way communication based on the establishment of a GATT connection by the Bluetooth device. Prior to this, device discovery must be performed first. The device discovery process is implemented through the Generic Access Profile (GAP) protocol. In the GAP protocol, Bluetooth devices can be defined as two roles: central devices and peripheral devices. Central devices can be devices with relatively strong data processing capabilities and can be used to connect to other peripheral devices, while peripheral devices can be low-power devices with relatively weak data processing capabilities. Peripheral devices can send broadcast messages so that they can be discovered by central devices and establish a GATT connection. Combined with Figure 1 In the scenario shown, the control device is equivalent to a peripheral device, and the display device is equivalent to a central device. The control device can be scanned and discovered by the display device by sending a broadcast message. The display device obtains relevant information of the device based on the broadcast data packet in the broadcast message, and after filtering the device type, selects a device for connection.

[0055] On this basis, Figure 4a FIG. 1 is a schematic diagram of software configuration in a display device 200 according to one or more embodiments of the present application. Figure 4aAs shown in the figure, the system is divided into four layers, from top to bottom, they are the application layer (Applications) (referred to as "application layer"), the application framework layer (Application Framework) (referred to as "framework layer"), the Android runtime (Androidruntime) and the system library layer (referred to as "system runtime library layer"), and the kernel layer. The kernel layer contains 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. The application layer includes: Bluetooth protocol stack, which includes GATT protocol, GAP protocol, etc.

[0056] Similarly, the system of the control device 100 may also include multiple layers (similar to the display device), wherein the application layer of the control device 100 also includes: a Bluetooth protocol stack, and the Bluetooth protocol stack includes a GATT protocol and a GAP protocol, etc.

[0057] Figure 4b For Figure 4a Based on the embodiment shown, the overall framework diagram of the display device and the control device for reconfiguring the code library. Figure 4b As shown, for the display device, configuring the control device needs to go through the scanning state and the connecting state; for the control device, completing the code library configuration needs to go through the broadcasting state and the connecting state.

[0058] It should be noted that Figure 4b The connection state shown in is the GATT connection state.

[0059] In the scanning state, the controller of the display device (such as a Bluetooth chip) scans by controlling the Bluetooth communicator and finds the control device (i.e., obtains the broadcast message sent by the control device). The controller of the display device sends the broadcast message to the Bluetooth protocol stack, and obtains the data in the broadcast message by calling the GAP protocol in the Bluetooth protocol stack for parsing. After verifying the device type of the control device and the identifier of the first code library supported by the control device and determining that the control device is the device to be connected, the controller of the display device initiates a request to establish a GATT connection to the control device by calling the GATT protocol in the Bluetooth protocol stack, so as to establish a GATT connection with the control device.

[0060] In the connected state, the display device controller transmits the data of the second code base supported by the display device to the control device by calling the GATT protocol in the Bluetooth protocol stack, so that the control device can obtain the data of the second code base supported by the display device.

[0061] Similarly, the system of the control device 100 may also include multiple layers (similar to the display device), wherein the application layer of the control device 100 also includes: a Bluetooth protocol stack, and the Bluetooth protocol stack includes a GATT protocol and a GAP protocol, etc.

[0062] In the scanning state, the controller of the control device (such as a Bluetooth chip) can send a broadcast message (including the identifier of the first code library supported by the control device) by calling the GAP protocol in the Bluetooth protocol stack, so that it can be scanned and discovered by the display device to establish a GATT connection with the display device.

[0063] In the connected state, the controller of the control device (such as a Bluetooth chip) can obtain the Bluetooth data sent by the display device through the GATT connection, call the GATT protocol, read the data in the descriptor, obtain the data of the code library supported by the display device and store it, thereby completing the re-adaptation of the code library.

[0064] Please continue to refer to Figure 4a The framework shown in Figure 4a On the basis of the illustrated embodiment, the application layer of the display device may further include: a Bluetooth application program for responding to instructions (ie, code values) transmitted by the user through the control device.

[0065] In some embodiments, if the control device includes two sets of code libraries, namely: a first code library originally supported by the control device and a second code library configured by the display device. The controller of the control device can query the two code libraries to obtain two code values ​​based on user input, and send the two code values ​​to the display device. After the display device receives the above two code values, the controller identifies the two code values ​​by calling the Bluetooth application, determines the valid code value, and then responds to the valid code value to perform related operations.

[0066] In other embodiments, if the control device can locally identify the second code library currently in use, the controller of the control device can query the second code library based on user input to obtain a code value, and transmit the code value to the display device. The controller of the display device calls the Bluetooth application to respond to the code value and perform related operations.

[0067] For example, if the user transmits a command to the display device through the control device to increase the volume, the Bluetooth application can control the display device to perform the volume increase operation according to the code value corresponding to the volume increase. The specific implementation method of the Bluetooth application executing the command transmitted by the user will be described in detail later.

[0068] The device configuration method provided by the present application is described in detail below through several embodiments. In the following embodiments, the control device is a remote controller as an example for illustration.

[0069] in, Figure 5For a flow chart of a device configuration method provided in an embodiment of the present application, please refer to Figure 5 As shown, the method of this embodiment includes:

[0070] S501: The remote controller sends a broadcast message, where the broadcast message includes identification information corresponding to a first code library supported by the remote controller.

[0071] The remote controller in the broadcast state can control the Bluetooth communicator to send a broadcast message through the controller, wherein the broadcast message includes a broadcast data packet (Advertising Data). In the Bluetooth transmission standard, the maximum length of the advertising data packet is 31 bytes, and the advertising data packet can contain two parts: valid data and invalid data. The valid data part can include multiple data structures.

[0072] in, Figure 6a A schematic diagram showing a data structure of a data structure in a broadcast data packet is shown as an example. Figure 6a As shown, the data structure may include a first field (len) for indicating data length information of valid data, a second field (AD type) for data type information, and a third field (AD Data) for accommodating valid data, wherein the value of len in the first field indicates that the next len-1 bytes are the data part, the second field AD type is the first byte of the data part, and the bytes thereafter are valid data.

[0073] Since each broadcast data packet is 31 bytes, if the valid data portion is less than 31 bytes, the remaining portion can be filled with meaningless bits, such as 0, and this portion is invalid data.

[0074] in, Figure 6bThe data structure diagram of the broadcast data packet sent by the control device is exemplarily shown. The broadcast data packet sent by the control device may include 3 data structures. The first data structure is, for example, 3 bytes, wherein len=2 in the first field, which means that the next 2 bytes are the valid data part, the first byte of the valid data part is the broadcast data type flag, and the second byte of the valid data part is the flag value of the broadcast mode; the second data structure is, for example, 10 bytes, wherein len=9 in the first field, which means that the subsequent 9 bytes are the valid data part, the first byte of the valid data part is the broadcast data type flag, and the second to ninth bytes of the valid data part can be used to accommodate the manufacturer information of the device, and the manufacturer information may include: the identification of the device manufacturer (such as the manufacturer ID), the Bluetooth address of the device, the device type, and the identification of the first code library supported by the control device. In some embodiments, the manufacturer information and the checksum information can be written together into the same data structure. Among them, the identification information corresponding to the first code library can be the name of the first code library, the digital number, the identification of the region to which the first code library is applicable, etc. Figure 6b Based on the illustrated embodiment, the other 17 bytes may be padded with 0s.

[0075] Among them, the remote control can send broadcast messages periodically. This application does not limit the interval period. It can be understood that the longer the interval period, the smaller the possibility of the remote control being discovered by the display device, and the shorter the interval period, the higher the possibility of the remote control being scanned and discovered by the display device. Therefore, the interval period can be set according to needs.

[0076] As a possible implementation, the user can trigger the remote control to enter the broadcast state by operating a pre-designated button or button combination on the remote control. This application does not limit the combination of button combinations for triggering the remote control to enter the broadcast state. For example, the button combination can be a combination of a button for entering the home page and a button for entering the settings page.

[0077] S502: The display device scans and obtains a broadcast message sent by the remote controller.

[0078] The link layer of the display device in the scanning state can monitor the broadcast message sent by the remote control on the broadcast channel.

[0079] S503: The display device determines, according to identification information corresponding to the first code library, whether the first code library is consistent with a second code library supported by the display device.

[0080] In some embodiments, the remote control that sends the broadcast message may be a remote control for another display device of the same model as the display device, or it may be a remote control for a display device of a different model. Therefore, before reconfiguring the code library, it is possible to first compare whether the code libraries supported by the two are consistent to determine whether the remote control needs to reconfigure the code library.

[0081] As a possible implementation, the display device may compare the identifier of the first code library with the identifier of the second code library. If the identifiers of the two are different, it is determined that the remote control needs to reconfigure the code library; if the identifiers of the two are the same, it is determined that the remote control does not need to reconfigure the code library.

[0082] As a possible implementation, before the display device determines whether the first code library is consistent with the second code library, it can also verify the device type of the remote control according to the manufacturer information (specifically, the device type information) in the broadcast data packet to determine whether the device sending the broadcast message is a remote control type device allowed to be connected to the display device. When it is determined to be a remote control type device, it is determined whether the code libraries are consistent. By judging the device type, it is possible to avoid illegal electronic devices from connecting to and controlling the display device, thereby ensuring the security of the display device.

[0083] If it is determined that the remote controller needs to reconfigure the code library, step S504 is executed.

[0084] In some embodiments, there may be multiple remote controls within the Bluetooth scanning range of the display device, that is, multiple remote controls send broadcast data respectively, and the display device can monitor and obtain the broadcast data sent by multiple remote controls at the link layer. The display device can select one from the multiple remote controls as the object to be connected based on one or more influencing factors such as the device type of each remote control, signal strength, broadcast message sending cycle, and whether the code library identifier is the same.

[0085] S504: The display device establishes a GATT connection with the remote controller.

[0086] The display device can be the initiator of the request to establish a GATT connection and initiate a GATT connection to the remote control. It should be noted that after the remote control establishes a GATT connection with the display device, the remote control no longer sends broadcast messages.

[0087] S505: The display device sends a second code library to the remote controller through the GATT connection.

[0088] Correspondingly, the Bluetooth communicator of the remote control receives the second code library through the GATT connection, and transmits the received second code library to the controller of the remote control, so that the controller parses the data packet based on the GATT protocol, obtains the data of the second code library stored in the service attributes, and stores the second code library in the storage space of the remote control.

[0089] The display device may send the second code library through one or more data packets according to the amount of data in the second code library, and this application does not limit this. If the display device sends the second code library through multiple data packets, the display device may configure the same identifier for the multiple data packets, so that after the remote control receives the data, it can aggregate the multiple data packets according to the identifier to obtain a complete second code library.

[0090] S506: The remote controller is configured according to the second code library.

[0091] The controller of the remote controller stores the second code library in a corresponding memory. In some embodiments, the memory of the remote controller may still contain the original code library data that has not been deleted, so the remote controller can also configure the second code library as the code library currently used by the remote controller, thereby completing the code library re-adaptation between the remote controller and the display device.

[0092] In this embodiment, the remote control sends the information of the first code library to the display device in a broadcast message, so that the display device can confirm whether the remote control needs to reconfigure the code library during the scanning process; when the display device determines that the code libraries supported by the two are inconsistent, a GATT connection is established, and then the second code library is sent to the remote control through the GATT connection, so that the remote control completes the re-adaptation of the code library, solves the problem that the unmatched remote control cannot control the display device, and is conducive to improving the user experience. In addition, in this solution, GATT can be used to achieve fast connection configuration between the remote control and the display device, which is conducive to improving the efficiency of device configuration processing.

[0093] Figure 7 This is a flow chart of a device configuration method provided by another embodiment of the present application. Figure 7 As shown, the method of this embodiment includes:

[0094] S701: The remote controller sends a broadcast message, where the broadcast message includes identification information corresponding to a first code library supported by the remote controller.

[0095] S702: The display device scans and obtains a broadcast message sent by the remote controller.

[0096] S703: The display device determines, according to identification information corresponding to the first code library, whether the first code library is consistent with a second code library supported by the display device.

[0097] S704: The display device establishes a GATT connection with the remote controller.

[0098] In this embodiment, steps S701 to S704 are respectively Figure 5 Steps S501 to S504 in the embodiment shown are similar and can be referred to in detail. Figure 5 For the sake of brevity, the detailed description of the illustrated embodiment will not be repeated here.

[0099] S705: The display device sends a first message to the remote controller through the GATT connection, where the first message includes identification information corresponding to the second code library.

[0100] S706: The remote controller sends a second message to the display device, where the second message includes information indicating that the remote controller does not support the second code library and information requesting to send the second code library.

[0101] As a possible implementation, the display device can configure the attributes of the first message to require a response through the framework defined by the GATT protocol, that is, the remote control is required to reply to the first message. The remote control compares the identifier corresponding to the second code library included in the first message with the identifier corresponding to the code library currently used to determine whether the two are consistent, and generates a response (i.e., the second message) based on the comparison result.

[0102] In some possible cases, when the remote control determines that the currently used code library is inconsistent with the second code library, it can further determine whether there are sufficient storage resources to receive the new code library; if the storage resources can meet the new code library, the above-mentioned second message is generated; if the storage resources are insufficient, the storage resources can be released, and the second message is generated after the storage resources meet the new code library. Exemplarily, the remote control can compare the current storage resource size available for storing data with the preset storage resource size to determine whether the storage resources are sufficient. By determining whether there are sufficient storage resources for storing the new code library, the remote control avoids the problem of storage failure due to insufficient storage resources when the new code library is reached.

[0103] In addition, when the remote control determines that the code library needs to be reconfigured based on the first message and successfully sends the second message to the display device, but before receiving the data packet of the second code library, the remote control can perform some preparatory work, such as pre-allocation of write threads, pre-allocation of memory resources, etc., so that when the data packet corresponding to the second code library arrives, it can be processed at a faster speed.

[0104] S707: The display device responds to the second message and sends a second code library to the remote control.

[0105] The display device parses the second message and determines that the remote control needs to reconfigure the code library and that the remote control has sufficient storage resources to receive the second code library, and therefore sends the second code library to the remote control.

[0106] As a possible implementation, the remote control can notify the display device to start sending the second code library to the remote control by means of a write command with response. When the remote control receives the data packet of the second code library, it needs to reply to the data packet to ensure that the display device can clearly know that the second code library is accurately received by the remote control.

[0107] If the display device sends through multiple data packets, the remote control can reply to the display device for each of the multiple data packets, so that the display device can determine that the second code base is received according to the reply sent by the remote control. When some data packets fail to be transmitted, the display device can also confirm the transmission failure according to the data packets that have not received a reply, and retransmit the data, thereby ensuring the integrity of the second code base received by the remote control.

[0108] S708. The remote controller is configured according to the second code library.

[0109] The controller of the remote controller stores the second code library in a corresponding memory. In some embodiments, the memory of the remote controller may still contain the original code library data that has not been deleted, so the remote controller can also configure the second code library as the code library currently used by the remote controller, thereby completing the code library re-adaptation between the remote controller and the display device.

[0110] In this embodiment, the display device interacts with the remote control multiple times, and when the two agree that the code library needs to be re-adapted, the data packet of the second code library is transmitted, thereby improving the reliability of data transmission; in addition, the remote control replies to the data packet of the second code library to ensure that the data sent by the display device is accurately received by the remote control.

[0111] After the remote control receives the second code library and performs corresponding configuration, the user can control the display device through the remote control. In order to establish more reliable communication between the two, the GATT connection between the remote control and the display device can be disconnected and a Bluetooth pairing connection can be established.

[0112] In some embodiments, after S708, the following steps may also be included:

[0113] S709: The display device disconnects the GATT connection from the remote controller and establishes a Bluetooth pairing connection.

[0114] As a possible implementation, after the display device determines that the remote control has received the complete data of the second code library, it can send a disconnect command to the remote control to notify the remote control that the GATT connection can be disconnected. The remote control can send a confirmation message (such as ACK) for the disconnect command to the display device. After receiving the confirmation message, the display device can actively disconnect the GATT connection and initiate a Bluetooth pairing connection.

[0115] The display device may confirm whether the remote control has received all of the second code library according to the reply to the data packet sent by the remote control for the second code library, or the remote control may send specific information to the display device after receiving all of the second code library to indicate that the second code library has been received in full. It should be understood that the display device may also determine whether the second code library has been received in full by other means, which is not limited in this application.

[0116] In order to facilitate the mutual adaptation between the remote control and the original matching display device, if the storage resources of the remote control are sufficient, the first code library stored in the remote control may not be deleted, that is, the first code library and the second code library are stored in the memory of the remote control at the same time for use by the remote control. Figures 8 to 10 The illustrated embodiment uses an example to describe how to control a display device through a remote controller when the remote controller's memory includes multiple code libraries.

[0117] Figure 8 This is a flow chart of a device configuration method provided by another embodiment of the present application. Figure 8 As shown, the method of this embodiment is Figure 5 Based on the embodiment shown, after S506, the method further includes:

[0118] S507: The remote controller receives user input, and generates a control instruction according to the user input, the first code library and the second code library.

[0119] S508: The remote controller sends a control instruction to the display device.

[0120] The remote controller queries the first code library to obtain a first code value according to the user input, queries the second code library to obtain a second code value according to the user input, and encapsulates the first code value and the second code value to generate a control instruction.

[0121] For example, the remote control includes multiple buttons. When the user operates a button on the remote control, such as a volume up button, the remote control detects that the input event is a volume up event, queries the first code library, obtains the code value "0x001" corresponding to the volume up event in the first code library, and queries the second code library to obtain the code value "0x002" corresponding to the volume up event in the second code library. Then, the code value "0x001" and the code value "0x002" are sent to the display device.

[0122] S509: Match the first code value and the second code value in the control instruction with the code values ​​in the second code library, and control the display device to perform corresponding operations based on the successfully matched code values.

[0123] The display device queries the corresponding relationship between each code value in the second code library and the user input according to the code value included in the control instruction and the input event corresponding to the user input, and controls the display device based on the successfully matched code value.

[0124] For example, the display device queries the second code library according to the correspondence between the code value "0x001" and the input event "volume plus event". If the query fails, the second code value is queried again according to the correspondence between the code value "0x002" and the input event "volume plus event". Since the code value "0x002" is generated by the remote control according to the second code library, the correspondence between the code value "0x002" and the input event "volume plus event" can be successfully matched with the second code library, and then the display device can control the display device to increase the volume based on the code value "0x002".

[0125] For example, refer to Fig. 9 as well as Fig.10 The table shown is a mapping relationship table between each code value corresponding to the second code library and the input event, and the mapping relationship table contains a one-to-one correspondence between multiple groups of code values ​​and events.

[0126] Reference Fig. 9 In the process shown, the display device searches the table based on the code value "0x001" and the input event "volume up event"; in some embodiments, the display device can first search in the table based on the input event "volume up event" in sequence, and when the input event matches successfully, it determines whether the code value matches. The code value corresponding to the input event "key=volume-UP" in the table is "0x002". By comparison, it can be seen that the input events are the same, but the code values ​​are different, and the match cannot be successful; or, it can also be based on the code value "0x001" The table is searched in sequence, and when the code value matches successfully, it is determined whether the input event matches. Assuming that the input event corresponding to the code value "0x001" in the table is "Homepage", that is, entering the homepage, by comparison, it can be seen that the code values ​​are the same, but the input events are different, and the match cannot be successful. Therefore, if it is determined that the query failed, the next round of query is executed, that is, execution Fig.10 The process shown.

[0127] Next, please refer to Fig.10 In the process shown, the display device searches the table in a similar manner for matching based on the code value "0x002" and the input event "volume plus event", and the matching is successful. Afterwards, the display device responds to the user input and increases the volume.

[0128] For another example, the display device first queries the mapping relationship table corresponding to the second code library according to the corresponding relationship between the code value "0x002" and the input event "volume plus event". When the query in the second code library is successful, the display device is controlled to increase the volume based on the code value "0x002" without querying the second code library based on "0x002" and the input event "volume plus event". The display device queries the table based on the code value "0x002" and the input event "volume plus event" in the same way as Fig. 9 The embodiment shown is similar, and then the display device can respond to the user input and increase the volume. In this embodiment, if the display device successfully searches the second code library, the search can be terminated without searching the second code library for the code value "0x001" and input event that have not been matched.

[0129] In this embodiment, when the user operates the remote control, the remote control can determine the code value based on the first code library and the second code library respectively, and then send multiple code values ​​to the display device, and the display device matches the code library supported by itself in turn according to the multiple code values, and then controls the display device according to the successfully matched code value to respond to the user input. In the method of this embodiment, multiple code libraries can be stored in the remote control, and there is no need to perform additional configuration for the multiple code libraries. The display device with stronger data processing capabilities identifies the validity of multiple code values, ensuring that the user input can be accurately responded to.

[0130] In other embodiments, the remote control can also identify multiple code libraries to determine the code library currently in use, and then based on the user input operation and the identified code library currently in use, obtain the code value corresponding to the user input and send it to the display device, so that the display device responds to the user operation.

[0131] Exemplarily, when multiple code libraries are stored in the remote control, an identifier can be set to indicate the usage status of each code library. The usage status includes: currently in use and not in use. According to the different values ​​of the identifier, the code library currently in use by the remote control can be identified from multiple code libraries.

[0132] Reference Fig.11In the illustrated embodiment, it is assumed that the remote controller stores the first code library and the second code library. When the remote controller receives user input, it queries the identifier. When the identifier is 0, it indicates that the first code library is the code library currently being used by the remote controller. Then, based on the user input, the first code library is queried to obtain the code value "0x001", and the code value "0x001" is sent to the display device. When the identifier is 1, it indicates that the second code library is the code library currently being used by the remote controller. Based on the user input, the second code library is queried to obtain the code value "0x002", and the code value "0x002" is sent to the display device. The display device does not need to query the second code library based on multiple sets of code values ​​and input events, which can reduce the workload of the display device.

[0133] Exemplarily, an embodiment of the present application also provides an electronic device, comprising: a memory and a processor, the memory being configured to store computer program instructions, and the processor being configured to execute the computer program instructions stored in the memory to implement the device configuration method executed by the display device or remote control as above.

[0134] Exemplarily, an embodiment of the present application further provides a readable storage medium, including: computer program instructions, and an electronic device executes the computer program instructions so that the electronic device implements the device configuration method executed by the above display device or remote control.

[0135] Exemplarily, an embodiment of the present application further provides a computer program product, and an electronic device executes the computer program product so that the electronic device implements the device configuration method executed by the above display device or remote control.

[0136] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above discussion in some embodiments is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. According to 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 display device, characterized in that: include: The Bluetooth communicator is configured to: obtain a broadcast message sent by the control device, wherein the broadcast message includes identification information corresponding to the first code library; The first code library is a code library supported by the control device; A controller configured to: determine whether the first code library is consistent with a second code library supported by the display device according to identification information corresponding to the first code library; If they are inconsistent, controlling the Bluetooth communicator to establish a general attribute profile GATT connection with the control device; and controlling the Bluetooth communicator to send the second code library to the control device through the GATT connection, so that the control device configures the control device according to the second code library; The controller is specifically configured as follows: Control the Bluetooth communicator to send a first message to the control device through the GATT connection, where the first message includes identification information corresponding to the second code library; And, obtaining a second message sent by the control device through the GATT connection, and in response to the second message, controlling the Bluetooth communicator to send the second code library to the control device, wherein the second message includes: information used to indicate that the control device does not support the second code library and information requesting to send the second code library; wherein the second message is for the control device to determine whether there are sufficient storage resources to receive the new code library when determining that the first code library is inconsistent with the second code library; if the storage resources can meet the needs of receiving the new code library, then generating the second message; if the storage resources cannot meet the needs of receiving the new code library, then releasing the storage resources, and generating the second message again after the storage resources meet the needs of receiving the new code library.

2. The display device according to claim 1, characterized in that The controller is further configured to: When the control device successfully receives the second code library, the Bluetooth communicator is controlled to disconnect the GATT connection with the control device and perform Bluetooth pairing connection.

3. The display device according to claim 2, characterized in that The Bluetooth communicator is further configured to: Receiving a control instruction sent by the control device through the Bluetooth pairing connection, the control instruction comprising: a first code value and a second code value, the first code value being a code value determined by the control device based on the first code library according to user input, and the second code value being a code value determined by the control device based on the second code library according to the user input; The controller is further configured to: match the first code value and the second code value in the control instruction with each code value in the second code library, and control the display device to perform corresponding operations based on the successfully matched code value.

4. A control device, characterized in that: include: A Bluetooth communicator is configured to: send a broadcast message, wherein the broadcast message includes identification information corresponding to a first code library; the first code library is a code library supported by the control device; The controller is configured to: if the first code library is inconsistent with the second code library supported by the display device, control the Bluetooth communicator to establish a general attribute profile GATT connection with the display device; and control the Bluetooth communicator to obtain the second code library sent by the display device through the GATT connection, and configure the control device according to the second code library; The Bluetooth communicator is specifically configured to: receive a first message sent by the display device through the GATT connection, wherein the first message includes identification information corresponding to the second code library; The controller is specifically configured as follows: Determining, according to the first message, whether the first code base is consistent with the second code base; If they are inconsistent, the Bluetooth connector is controlled to send a second message to the display device through the GATT connection, and the second code library sent by the display device in response to the second message is obtained; wherein the second message includes: information used to indicate that the control device does not support the second code library and information requesting to send the second code library; wherein the second message is for the control device to determine whether there are sufficient storage resources to receive the new code library when determining that the first code library is inconsistent with the second code library; if the storage resources can meet the needs of receiving the new code library, the second message is generated; if the storage resources cannot meet the needs of receiving the new code library, the storage resources are released, and the second message is generated again after the storage resources meet the needs of receiving the new code library.

5. The control device according to claim 4, characterized in that: The controller is further configured to: When the control device successfully receives the second code library, the Bluetooth communicator is controlled to disconnect the GATT connection with the display device and perform Bluetooth pairing connection.

6. The control device according to claim 4, characterized in that: Also includes: The user interface is configured to: receive user input; The controller is further configured to: generate a control instruction according to the user input, the first code library and the second code library, the control instruction comprising: a first code value and a second code value, the first code value being a code value determined by the control device based on the first code library according to the user input, and the second code value being a code value determined by the control device based on the second code library according to the user input; And, controlling the Bluetooth communicator to send a control instruction to the display device through a Bluetooth pairing connection, so that the display device performs a corresponding operation according to the control instruction.

7. A device configuration method, characterized in that: Applied to a display device, the method comprises: Acquire a broadcast message sent by a control device, wherein the broadcast message includes identification information corresponding to a first code library; the first code library is a code library supported by the control device; determining, according to identification information corresponding to the first code library, whether the first code library is consistent with a second code library supported by the display device; If they are inconsistent, establishing a general attribute profile GATT connection with the control device, and sending the second code library to the control device through the GATT connection, so that the control device is configured according to the second code library; Sending a first message to the control device through the GATT connection, where the first message includes identification information corresponding to the second code library; And, obtaining a second message sent by the control device through the GATT connection, and sending the second code library to the control device in response to the second message, wherein the second message includes: information used to indicate that the control device does not support the second code library and information requesting to send the second code library; wherein the second message is for the control device to determine whether there are sufficient storage resources to receive the new code library when determining that the first code library is inconsistent with the second code library; if the storage resources can meet the requirements of receiving the new code library, then generate the second message; if the storage resources cannot meet the requirements of receiving the new code library, then release the storage resources, and after the storage resources meet the requirements of receiving the new code library, then generate the second message.

8. A device configuration method, characterized in that: Applied to a control device, the method comprises: Sending a broadcast message, wherein the broadcast message includes identification information corresponding to a first code library; the first code library is a code library supported by the control device; When the display device determines that the first code library is inconsistent with a second code library supported by the display device, establishing a general attribute profile GATT connection with the display device; Acquire a second code library sent by the display device through the GATT connection, and configure the control device according to the received second code library; receiving a first message sent by the display device through the GATT connection, where the first message includes identification information corresponding to the second code library; Determining, according to the first message, whether the first code base is consistent with the second code base; If they are inconsistent, a second message is sent to the display device through the GATT connection, and the second code library sent by the display device in response to the second message is obtained; wherein the second message includes: information used to indicate that the control device does not support the second code library and information requesting to send the second code library; wherein the second message is for the control device to determine whether there are sufficient storage resources to receive the new code library when determining that the first code library is inconsistent with the second code library; if the storage resources can meet the needs of receiving the new code library, the second message is generated; if the storage resources cannot meet the needs of receiving the new code library, the storage resources are released, and the second message is generated again after the storage resources meet the needs of receiving the new code library.

Citation Information

Patent Citations

  • Equipment configuration method, smart television, universal remote controller and system

    CN112738581A

  • Remote control method, device, system and equipment based on Bluetooth broadcast and storage medium

    CN114023058A