CN115988248A - Display device and Bluetooth communication method - Google Patents

Display device and Bluetooth communication method Download PDF

Info

Publication number
CN115988248A
CN115988248A CN202111204172.7A CN202111204172A CN115988248A CN 115988248 A CN115988248 A CN 115988248A CN 202111204172 A CN202111204172 A CN 202111204172A CN 115988248 A CN115988248 A CN 115988248A
Authority
CN
China
Prior art keywords
controller
bluetooth
mesh
ble
broadcast packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111204172.7A
Other languages
Chinese (zh)
Inventor
姜晓胜
杨坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN202111204172.7A priority Critical patent/CN115988248A/en
Publication of CN115988248A publication Critical patent/CN115988248A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application provides a display device and a Bluetooth communication method, wherein the display device comprises: a display; a controller communicatively coupled to the display, the controller comprising: the Bluetooth host is used for sending a scanning instruction to the Bluetooth module; the bluetooth module, with bluetooth host connection, including Mesh controller and BLE controller that are connected, wherein, mesh controller is configured as: scanning a Bluetooth broadcast packet according to the scanning instruction, and if the Bluetooth broadcast packet is a BLE broadcast packet, sending the BLE broadcast packet to the BLE controller for processing; the BLE controller is configured to: and scanning the Bluetooth broadcast packet according to the scanning instruction, and if the Bluetooth broadcast packet is a Mesh broadcast packet, sending the Mesh broadcast packet to the Mesh controller for processing. The embodiment of the application improves the Bluetooth communication quality.

Description

Display device and Bluetooth communication method
Technical Field
The present application relates to the field of bluetooth technologies, and in particular, to a display device and a bluetooth communication method.
Background
Nowadays, the smart television is generally provided with a bluetooth module, and bluetooth communication can be performed with an external device located outside the smart television body through the bluetooth module. Along with the rise of intelligent house, more and more external equipment have possessed the bluetooth function like lamps and lanterns, game paddle to and equipment such as earphone, this makes intelligent TV accessible bluetooth module communicate with a plurality of external equipment.
In some scenarios, the smart television needs to communicate with multiple bluetooth devices simultaneously, for example, when a user wears an earphone to play a game on the smart television, the smart television needs to perform bluetooth communication with the earphone and the gamepad supporting the bluetooth function simultaneously, which will bring great pressure to data transmission and data processing of a bluetooth module of the smart television, and easily causes a problem that a bluetooth broadcast packet in the bluetooth communication cannot be received by the smart television, that is, the bluetooth broadcast packet is lost. In order to solve the technical problem, in the related art, some smart televisions adopt a manner of setting a plurality of bluetooth modules to improve a bluetooth communication level, however, this manner may cause a significant increase in the cost of bluetooth communication.
Disclosure of Invention
In order to solve the technical problem of poor Bluetooth communication quality, the application provides the display device and the Bluetooth communication method.
In a first aspect, the present application provides a display device comprising:
a display;
a controller communicatively coupled to the display, the controller comprising:
the Bluetooth host is used for sending a scanning instruction to the Bluetooth module;
the Bluetooth module is connected with the Bluetooth host and comprises a Mesh controller and a BLE controller which are connected, wherein,
the Mesh controller is configured to: scanning a Bluetooth broadcast packet according to the scanning instruction, and if the Bluetooth broadcast packet is a BLE broadcast packet, sending the BLE broadcast packet to the BLE controller for processing;
the BLE controller is configured to: and scanning a Bluetooth broadcast packet according to the scanning instruction, and if the Bluetooth broadcast packet is a Mesh broadcast packet, sending the Mesh broadcast packet to the Mesh controller for processing.
In some embodiments, the Mesh controller is further configured to: if the Bluetooth broadcast packet is a Mesh broadcast packet, processing the Mesh broadcast packet; the BLE controller is further configured to: and if the Bluetooth broadcast packet is a BLE broadcast packet, processing the BLE broadcast packet.
In some embodiments, the bluetooth module further comprises:
the Mesh antenna is connected with the Mesh controller and used for receiving the scanning instruction and then sending the scanning instruction to the Mesh controller;
the BLE antenna is connected with the BLE controller and used for receiving the scanning instruction and then sending the scanning instruction to the BLE controller.
In some embodiments, the Mesh controller and BLE controller are further configured to:
and modulating and demodulating the Bluetooth broadcast packet to obtain a protocol data unit type and a broadcast message type, and judging that the Bluetooth broadcast packet is the Mesh broadcast packet or the BLE broadcast packet according to the protocol data unit type and the broadcast message type.
In some embodiments, the determining that the bluetooth broadcast packet is the Mesh broadcast packet or the BLE broadcast packet according to the protocol data unit type and the broadcast packet type includes:
judging whether the type of the protocol data unit is not connectable;
if the broadcast message type is not the Mesh, judging whether the broadcast message type is the Mesh, if the broadcast message type is the Mesh, judging the Mesh broadcast packet, and if not, judging the BLE broadcast packet;
and if the connection is available, determining the BLE broadcast packet.
In some embodiments, the bluetooth host is connected with the Mesh controller by a USB hub, the bluetooth host is connected with the BLE controller by a USB hub, and the Mesh controller is connected with the BLE controller by an SPI.
The Bluetooth host is connected with the Mesh controller through a USB hub, the Bluetooth host is connected with the BLE controller through a USB hub, and the Mesh controller is connected with the BLE controller through an SPI.
In some embodiments, the Mesh controller and the BLE controller are provided with different USB addresses, and the bluetooth control communicates with the Mesh controller and the BLE controller through the different USB addresses respectively.
In some embodiments, the Mesh controller and BLE controller each communicate with a device external to the display device using a USB address with the BLE controller.
In a second aspect, the present application provides a bluetooth communication method, including:
in one Bluetooth module, simultaneously scanning Bluetooth broadcast packets through a Mesh controller and a BLE controller, wherein the Mesh controller is connected with the BLE controller;
if the Bluetooth broadcast packet scanned by the Mesh controller is a BLE broadcast packet, sending the BLE broadcast packet to the BLE controller for processing;
and if the Bluetooth broadcast packet scanned by the BLE controller is a Mesh broadcast packet, sending the Mesh broadcast packet to the Mesh controller for processing.
The display equipment and the Bluetooth communication method have the advantages that:
according to the embodiment of the application, the Mesh controller and the BLE controller which are connected are arranged in the Bluetooth module, the Mesh controller and the BLE controller are configured to scan Bluetooth broadcast packets at the same time, and when broadcast packets which do not belong to the Mesh controller and the BLE controller are scanned, the broadcast packets are transmitted to the other side for processing, so that the problem that the Bluetooth broadcast packets are lost is solved, and the Bluetooth communication quality is improved; moreover, only one Bluetooth module is needed for Bluetooth communication, so that the cost of the Bluetooth communication is effectively controlled.
Drawings
In order to more clearly explain the technical solution of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious to those skilled in the art that other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 illustrates an operational scenario between a display device and a control apparatus according to some embodiments;
fig. 2 illustrates a hardware configuration block diagram of the control apparatus 100 according to some embodiments;
fig. 3 illustrates a hardware configuration block diagram of the display apparatus 200 according to some embodiments;
FIG. 4 illustrates a software configuration diagram in the display device 200 according to some embodiments;
FIG. 5 illustrates an icon control interface display diagram of an application in the display device 200, according to some embodiments;
a schematic diagram of the structure of a bluetooth module according to some embodiments is illustrated in fig. 6;
a data transmission diagram of a bluetooth host according to some embodiments is illustrated in fig. 7;
a flow diagram of a method of broadcasting bluetooth data according to some embodiments is illustrated in fig. 8;
fig. 9 illustrates a timing diagram of a bluetooth broadcast initiation method according to some embodiments;
FIG. 10 is a flow diagram illustrating a method of Bluetooth data processing according to some embodiments;
a flow diagram of a bluetooth data processing method according to some embodiments is illustrated in fig. 11.
Detailed Description
To make the purpose and embodiments of the present application clearer, the following will clearly and completely describe the exemplary embodiments of the present application with reference to the attached drawings in the exemplary embodiments of the present application, and it is obvious that the described exemplary embodiments are only a part of the embodiments of the present application, and not all of the embodiments.
It should be noted that the brief descriptions of the terms in the present application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of the present application. These terms should be understood in their ordinary and customary meaning unless otherwise indicated.
The terms "first," "second," "third," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between similar or analogous objects or entities and not necessarily for describing a particular sequential or chronological order, unless otherwise indicated. It is to be understood that the terms so used are interchangeable under appropriate circumstances.
The terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a product or apparatus that comprises a list of elements is not necessarily limited to all elements expressly listed, but may include other elements not expressly listed or inherent to such product or apparatus.
The display device provided by the embodiment of the present application may have various implementation forms, and for example, the display device may be a television, a smart television, a laser projection device, a display (monitor), an electronic whiteboard (electronic whiteboard), an electronic desktop (electronic table), and the like. Fig. 1 and 2 are specific embodiments of a display device of the present application.
Fig. 1 is a schematic diagram of an operation scenario between a display device and a control apparatus according to an embodiment. As shown in fig. 1, the user may operate the display device 200 through the smart device 300 or the control apparatus 100.
In some embodiments, the control apparatus 100 may be a remote controller, and the communication between the remote controller and the display device includes an infrared protocol communication or a bluetooth protocol communication, and other short-distance communication methods, and controls the display device 200 in a wireless or wired manner. The user may input a user command through a key on a remote controller, a voice input, a control panel input, etc. to control the display apparatus 200.
In some embodiments, a smart device 300 (e.g., a mobile terminal, a tablet, a computer, a laptop, etc.) may also be used to control the display device 200. For example, the display device 200 is controlled using an application program running on the smart device.
In some embodiments, the display device 200 may also be controlled in a manner other than the control apparatus 100 and the smart device 300, for example, the voice command control of the user may be directly received by a module configured inside the display device 200 to obtain a voice command, or may be received by a voice control device provided outside the display device 200.
In some embodiments, the display device 200 is also in data communication with a server 400.
Referring to fig. 2, the control device 100 includes a controller 110, a communication interface 130, a user input/output interface 140, a memory, and a power supply source. The control apparatus 100 may receive an input operation instruction of a user and convert the operation instruction into an instruction recognizable and responsive to the display device 200, serving as an interaction intermediary between the user and the display device 200.
As shown in fig. 3, the display apparatus 200 includes at least one of a tuner 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 memory, a power supply, and a user interface.
The display 260 may be a liquid crystal display, an OLED display, and a projection display, and may also be a projection device and a projection screen.
The communicator 220 is a component for communicating with an external device or a 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 apparatus 200 may establish transmission and reception of control signals and data signals with the external control apparatus 100 or the server 400 through the communicator 220.
A user interface for receiving control signals for controlling the apparatus 100 (e.g., an infrared remote control, etc.).
The detector 230 is used to collect signals of the external environment or interaction with the outside. For example, the detector 230 includes a sound collector, such as a microphone, etc., for receiving external sound.
The external device interface 240 may include, but is not limited to, the following: high Definition Multimedia Interface (HDMI), analog or data high definition component input interface (component), composite video input interface (CVBS), USB input interface (USB), RGB port, and the like. Or may be a composite input/output interface formed by the plurality of interfaces.
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 apparatus 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 may perform an operation related to the object selected by the user command.
Referring to fig. 4, in some embodiments, the system is divided into four layers, which are an Application (Applications) layer (abbreviated as "Application layer"), an Application Framework (Application Framework) layer (abbreviated as "Framework layer"), an Android runtime (Android runtime) and system library layer (abbreviated as "system runtime library layer"), and a kernel layer from top to bottom.
In some embodiments, the kernel layer is a layer between hardware and software. As shown in fig. 4, the core layer includes at least one of the following drivers: audio drive, display driver, bluetooth drive, camera drive, WIFI drive, USB drive, HDMI drive, sensor drive (like fingerprint sensor, temperature sensor, pressure sensor etc.) and power drive etc..
In some embodiments, as shown in fig. 5, the application layer containing at least one application may display a corresponding icon control in the display, such as: the system comprises a live television application icon control, a video on demand application icon control, a media center application icon control, an application center icon control, a game application icon control and the like.
In some embodiments, an application center may provide storage for various applications. The application may be a game, an application, or some other application associated with a computer system or other device that may be run on the smart television. The application center may obtain these applications from different sources, store them in local storage, and then be operable on the display device 200.
In some embodiments, the display device may communicate with a plurality of terminal devices through the bluetooth module to control the terminal devices, wherein the terminal devices are external devices located outside the body of the display device.
In order to implement bluetooth communication between the display device and a plurality of external devices, in some embodiments, two bluetooth modules are disposed on the display device, which are a Mesh bluetooth module and a BLE bluetooth module respectively.
The Mesh Bluetooth module can be provided with a Mesh controller and a Bluetooth chip to realize Mesh networking with external equipment, and after a Mesh network is formed, the display equipment can send a Mesh broadcast packet which can be transmitted to a plurality of external equipment, such as lamps, so that one-to-many and many-to-many communication is realized.
The BLE Bluetooth module may be provided with a BLE (Bluetooth Low Energy) controller and a Bluetooth chip to enable one-to-one communication with external devices, where the external devices may include a Bluetooth handle, a Bluetooth headset supporting BLE functions, and the like.
It should be noted that the Mesh network constructed by the display device depends on the bluetooth low energy technology, which is a wireless communication protocol stack used by the blue Mesh controller.
It can be seen that the display device can perform bluetooth communication with multiple external devices simultaneously through two bluetooth modules, however, this communication manner leads to a significant increase in the cost of bluetooth communication. If only one BLE Bluetooth module in the Mesh Bluetooth module is adopted, the Bluetooth transmission bandwidth is limited, and phenomena such as packet loss and jamming may occur in the Bluetooth communication between part of terminal equipment and display equipment, so that the user experience is influenced.
In order to improve the bluetooth communication effect, the embodiment of the application sets two connected bluetooth hosts through the bluetooth module of the display device, one is the Mesh controller, and the other is the BLE controller, receives the bluetooth broadcast packet through the two controllers, can avoid the bluetooth broadcast packet from being omitted by the display device, and only sets one bluetooth main chip to reduce the cost.
Referring to fig. 6, which is a schematic structural diagram of a bluetooth module according to some embodiments, as shown in fig. 6, the bluetooth module may include a bluetooth master chip, a Mesh controller, a BLE controller, a Mesh antenna, and a BLE antenna.
In some embodiments, the bluetooth master chip is a bluetooth host, and the Mesh controller, the BLE controller, the Mesh antenna and the BLE antenna form a bluetooth module.
In some embodiments, the bluetooth master chip is connected to the Mesh controller and the BLE controller of the bluetooth module through the USB hub, respectively. Mesh controller and BLE controller can be provided with two different bluetooth addresses, and the Mesh controller and BLE controller can be distinguished to bluetooth master chip accessible these two bluetooth addresses. The bluetooth address of the BLE controller may be referred to as a USB address 1, and may also be referred to as a first address, and the bluetooth address of the Mesh controller may be referred to as a USB address 2, and may also be referred to as a second address.
In some embodiments, the Mesh controller and the BLE controller may be connected by an SPI (Serial Peripheral Interface) bus. The Mesh controller is electrically connected with the Mesh antenna, and the BLE controller is electrically connected with the BLE antenna.
The connection mode between the bluetooth master chip and the Mesh controller, the connection mode between the bluetooth master chip and the BLE controller, and the connection mode between the Mesh controller and the BLE controller are only exemplary descriptions, and in actual implementation, other connection modes may be adopted. Referring to fig. 7, a data transmission diagram of a bluetooth host according to some embodiments is shown in fig. 7, where the bluetooth host may activate a BLE thread and a Mesh thread respectively through a bluetooth protocol stack. BLE thread accessible BLE drives and communicates with BLE controller that the address is USB address 1, and Mesh thread accessible Mesh drives to communicate with the Mesh controller that the address is USB address 2. The BLE drive and the Mesh drive are both USB drives, and therefore, bluetooth protocol frames are respectively communicated with the Mesh controller and the BLE controller through the two USB drives, HCI (Human-Computer Interaction) data transmitted by the two controllers are processed, and the communication with the Mesh controller and the communication with the BLE controller are not interfered with each other. The HCI data can include some control data, such as switch commands, volume adjusting commands and other data; the Mesh controller outputs Mesh broadcast data to the bluetooth master chip, and the Mesh broadcast data may specifically include the following data: the device comprises a PB-ADV broadcast packet sent by the device when the device is added into the Mesh network, a Mesh Beacon broadcast packet sent by the device before the device is added into the Mesh network, and a data packet Mesh sent by data communication after the device is connected into the network.
The BLE controller outputs to the bluetooth master chip general broadcast data, which may specifically include the following data: name of the broadcasting device, service type of the broadcasting device, factory information of the broadcasting device, and the like.
In some embodiments, the bluetooth module of the display device has two operating states, namely a broadcast state and a scan state, and the bluetooth communication method in these two operating states is described below.
When the display device needs to broadcast the Bluetooth data to other devices, the display device can switch the Bluetooth module into a broadcasting state, and two Bluetooth modules of the Bluetooth module are controlled to work cooperatively. For example, a specific method for the display device to set the bluetooth module to the broadcast state may be: the Bluetooth host sends a broadcast parameter setting instruction to the Bluetooth module, sets data to be broadcast, and finally sends a broadcast starting instruction to start the broadcast state of the Bluetooth module after the broadcast parameters and the broadcast data are set.
In some embodiments, a method for broadcasting bluetooth data by a display device may be as shown in fig. 8, which is a flowchart illustrating a method for broadcasting bluetooth data according to some embodiments, the method being used for a bluetooth master chip of a bluetooth module, and as shown in fig. 8, the method may include the following steps:
step S110: and transmitting the first broadcast parameters to the BLE controller with the first address, and transmitting the second broadcast parameters to the BLE controller with the second address.
In some embodiments, the first broadcast parameter transmitted by the bluetooth master chip comprises a first broadcast interval and the second broadcast parameter comprises a second broadcast interval. The first broadcast parameter may also be referred to as broadcast parameter 1, the second broadcast parameter may also be referred to as broadcast parameter 2, and the first broadcast interval and the second broadcast interval are different, so that collision can be avoided or reduced when the BLE controller and the Mesh controller perform bluetooth broadcast.
For example, the interval time of the broadcast is 20 ms to 10.24 s, and the broadcast interval of the first broadcast parameter may be set to range from 1.28 s to 2.56 s. The second broadcast parameter has a broadcast interval ranging from 2.57 seconds to 5.14 seconds. Before the Bluetooth module is set to be in a broadcast state, determining broadcast parameters, and avoiding conflict between mesh and BLE broadcast as much as possible.
Step S120: sending BLE broadcast data to the BLE controller, and sending Mesh broadcast data to the Mesh controller.
In some embodiments, BLE broadcast data sent by the bluetooth master chip to the BLE controller may be referred to as broadcast data 1, and Mesh broadcast data sent by the bluetooth master chip to the Mesh controller may be referred to as broadcast data 2.
Step S130: controlling the BLE controller and the Mesh controller to initiate broadcasting, wherein the BLE controller and the Mesh controller are both configured to broadcast using the first address, a broadcasting type of the BLE controller is configured to be unconnected, and a broadcasting type of the Mesh controller is configured to be connectable.
In some embodiments, the bluetooth master chip may send a start command of bluetooth broadcast to the BLE controller and the Mesh controller, respectively, and the BLE controller and the Mesh controller may broadcast according to the respective received bluetooth broadcast parameters and bluetooth data after receiving the start command.
In some embodiments, the BLE controller and the Mesh controller both broadcast using the first address of the BLE controller, so that the display device is externally a bluetooth address, which facilitates bluetooth communication between the external device and the display device. The external device is a device which is located outside the display device and performs bluetooth communication with the display device, such as a bluetooth sound box and a bluetooth handle.
When Mesh controller received bluetooth master chip start broadcasting order, the Mesh controller obtained the bluetooth address in the BLE controller through SPI, carried out the comparison with Mesh controller's address itself, if different, then used the bluetooth address of BLE controller to broadcast to realize that BLE controller and Mesh controller all use the first address of BLE controller to broadcast.
In some embodiments, the BLE controller and the Mesh controller may also both broadcast using the second address of the Mesh controller.
There is no difference in using the first address and the second address for broadcasting.
In some embodiments, the broadcast type of the BLE controller is configured to be connectible and the broadcast type of the Mesh controller is configured to be non-connectible.
Among the connectable broadcast type PDU types of the BLE controller, ADV _ IND (non-directional broadcast type) and ADV _ DIRECT _ IND (directional broadcast type) are mainly used. When the scanning device detects the connectable broadcast type, the scanning device judges the connectable broadcast type to be BLE broadcast. The PDU Type of the connectionless broadcast Type of the Mesh controller is ADV _ non _ IND (connectionless non-oriented broadcast Type), and a broadcast packet of the Type is used only for broadcast data, is not connectible, and is available for broadcast of the Mesh.
To further illustrate the method of the display device initiating a bluetooth broadcast, fig. 9 illustrates a timing diagram of a bluetooth broadcast initiation method according to some embodiments.
As shown in fig. 9, the bluetooth master chip sends the first broadcast parameter and BLE broadcast data to the BLE controller through a BLE thread, and controls the BLE controller to start broadcasting, where the broadcasting type is general, and the broadcasting type is equivalent to the broadcasting type being connectable.
As shown in fig. 9, the bluetooth master chip sends the second broadcast parameter and the Mesh broadcast data to the Mesh controller through the Mesh thread, and controls the BLE controller to start broadcasting, where the broadcasting type is not connectable.
In some embodiments, the Mesh thread further acquires a BLE broadcasting interval from the BLE thread, so that the broadcasting interval of the Mesh controller is adjusted according to the BLE broadcasting interval, and collision occurring when the BLE controller and the Mesh controller perform bluetooth broadcasting is reduced or avoided.
The above-described embodiment describes the bluetooth broadcast startup method after the display device is switched to the broadcast state. When the display equipment needs to acquire the data of other equipment, the display equipment can switch the Bluetooth module into a scanning state, and two Bluetooth modules of the Bluetooth module are controlled to work cooperatively.
In some embodiments, the process of performing bluetooth scanning by the display device may be divided into two major steps, where the bluetooth master chip sets the BLE controller and the Mesh controller to be in a scanning state, and the BLE controller and the Mesh controller process the bluetooth broadcast packet when the bluetooth broadcast packet is scanned.
In some embodiments, the process of setting the BLE controller and the Mesh controller to the scan state by the bluetooth master chip is similar to the step of setting the BLE controller and the Mesh controller to the broadcast state, and the BLE controller and the Mesh controller are respectively set to the scan state by different USB addresses.
Illustratively, the specific setting method for setting to the scan state is as follows: firstly, setting scanning parameters, wherein the parameters comprise scanning time and a scanning window; then a scan is initiated.
In some embodiments, the Mesh controller is configured to start scanning for bluetooth broadcast packets after the scan state. If the Bluetooth broadcast packet is scanned, whether the Bluetooth broadcast packet is a BLE broadcast packet or a Mesh broadcast packet can be analyzed, if the Bluetooth broadcast packet is the Mesh broadcast packet, the Mesh broadcast packet is processed by the Bluetooth broadcast packet, and if the Bluetooth broadcast packet is the BLE broadcast packet, the BLE broadcast packet is sent to a BLE controller to be processed.
In some embodiments, the BLE controller is configured to start scanning for bluetooth broadcast packets after the scan state. If the Bluetooth broadcast packet is scanned, whether the Bluetooth broadcast packet is a BLE broadcast packet or a Mesh broadcast packet can be analyzed, if the Bluetooth broadcast packet is the BLE broadcast packet, the BLE broadcast packet is processed by the Bluetooth broadcast packet, and if the Bluetooth broadcast packet is the Mesh broadcast packet, the Mesh broadcast packet is sent to a Mesh controller to be processed.
In some embodiments, referring to fig. 10, a process of processing bluetooth data transmitted by an external device by a bluetooth module is a flowchart of a bluetooth data processing method according to some embodiments, as shown in fig. 10, the method may include the following steps:
step S210: in one Bluetooth module, bluetooth broadcast packets are scanned simultaneously through a Mesh controller and a BLE controller, wherein the Mesh controller and the BLE controller are connected.
In some embodiments, after the bluetooth master chip sends the scan command to the Mesh controller and the BLE controller, respectively, the Mesh controller and the BLE controller simultaneously scan the bluetooth broadcast packet according to the scan command, respectively. It should be noted that the term "simultaneously" refers to a moment when both the Mesh controller and the BLE controller scan the bluetooth broadcast packet, rather than starting scanning and ending scanning at the same time strictly, and in fact, the time for starting and ending scanning the bluetooth broadcast packet may be different between the Mesh controller and the BLE controller.
Step S220: and if the Bluetooth broadcast packet scanned by the Mesh controller is a BLE broadcast packet, sending the BLE broadcast packet to the BLE controller for processing.
In some embodiments, since the Mesh controller and the BLE controller are connected by an SPI bus, if the bluetooth broadcast packet scanned by the Mesh controller is a BLE broadcast packet, the Mesh controller may send the BLE broadcast packet to the BLE controller through the SPI bus for processing.
Step S230: and if the Bluetooth broadcast packet scanned by the BLE controller is a Mesh broadcast packet, sending the Mesh broadcast packet to the Mesh controller for processing.
In some embodiments, because the Mesh controller and the BLE controller are connected by an SPI bus, if the bluetooth broadcast packet scanned by the BLE controller is a Mesh broadcast packet, the BLE controller may send the Mesh broadcast packet to the Mesh controller through the SPI bus for processing.
Of course, if the bluetooth broadcast packet scanned by the Mesh controller is a Mesh broadcast packet, the Mesh controller processes the Mesh broadcast packet; and if the Bluetooth broadcast packet scanned by the Mesh controller is a Mesh broadcast packet, processing the Mesh broadcast packet by the Mesh controller.
For further description of the method illustrated in fig. 10. Figure 11 illustrates a flow diagram of a bluetooth data processing method for a Mesh controller, according to some embodiments. As shown in fig. 11, the method may include the steps of:
step S310: the Mesh controller starts scanning the bluetooth broadcast packet.
Step S320: and judging whether the broadcast packet is not connectable according to the PDU _ Type of the Bluetooth broadcast packet.
In some embodiments, the bluetooth broadcast packet is modem and PDU _ Type and AD Type are obtained.
In some embodiments, the PDU _ Type represents a PDU Type, and there are two types, one is connectable and one is not connectable, if PDU _ Type is connectable, the bluetooth broadcast packet is connectable, and if PDU _ Type is not connectable, the bluetooth broadcast packet is not connectable.
In some embodiments, the AD Type indicates a broadcast packet Type, and there are two types, one is Mesh and one is BLE. If the AD Type is Mesh, it indicates that the bluetooth broadcast packet is Mesh broadcast packet, if the AD Type is BLE, it indicates that the bluetooth broadcast packet is BLE broadcast packet.
Step S330: if the broadcast packet is not connectable, the AD Type of the broadcast packet is checked, and whether the AD Type is Mesh is judged.
In some embodiments, both the Mesh broadcast packet and the BLE broadcast packet may be connectionless broadcast packets, only the BLE broadcast packet may be connectionless packets, and the Mesh broadcast packet may not be connectionless packets. Therefore, if the received bluetooth broadcast packet is an unconnected broadcast packet, further determination is required.
Step S340: if the AD Type is Mesh, the AD Type is judged to be a Mesh broadcast packet, and the Mesh controller processes the Bluetooth broadcast packet.
In some embodiments, if the AD Type is Mesh, the Mesh controller determines that the bluetooth broadcast packet is a Mesh broadcast packet, and may process the bluetooth broadcast packet.
In some embodiments, an example of the Mesh controller processing the bluetooth broadcast packet is: the Mesh controller removes the leading frame, the access address and the LL frame field of the broadcast packet, organizes the remaining data into an HCI event format and reports the HCI event format to the Bluetooth host.
Step S350: if the AD Type is not Mesh, the Bluetooth broadcast packet is judged to be a BLE broadcast packet, and the BLE controller processes the Bluetooth broadcast packet.
In some embodiments, if the AD Type is not Mesh, the Mesh controller determines that the bluetooth broadcast packet is a BLE broadcast packet, and may transmit the bluetooth broadcast packet to the BLE controller.
Step S360: if PDU _ Type is the joinable broadcast packet, judge that it is BLE broadcast packet, transmit it through the SPI bus to BLE controller.
In some embodiments, if PDU _ Type is an connectible broadcast packet, the Mesh controller determines that the bluetooth broadcast packet is a BLE broadcast packet, and may transmit the bluetooth broadcast packet to the BLE controller.
Step S370: the BLE controller processes the Bluetooth broadcast packet.
In some embodiments, the BLE controller may process the bluetooth broadcast packet sent by the Mesh controller after receiving the broadcast packet.
In some embodiments, one example of the processing of the bluetooth broadcast packet by the BLE controller is: and judging whether the type of the broadcast packet can be connected or not, if not, directly removing the leading frame of the broadcast packet, and reporting the LL header to the Bluetooth host. If connectable, the BLE controller negotiates with the broadcasting device a physical path and connection interval for the next connection. Ready for connection.
Step S380: and sending the processed data to the Bluetooth main chip.
In some embodiments, the Mesh controller or BLE controller may send the processed data to the bluetooth master chip.
In some embodiments, the bluetooth data processing method for BLE control is similar to that in fig. 11, and only the Mesh controller and BLE controller in fig. 11 need to be replaced with each other.
The method illustrated in fig. 11 is only an exemplary description, and in some embodiments, other methods may be used to determine the Mesh broadcast packet and the BLE broadcast packet. For example, the bluetooth broadcast packet is directly judged to be the Mesh broadcast packet or the BLE broadcast packet according to the AD Type, and the PDU _ Type is no longer judged.
According to the above method for bluetooth communication provided by the embodiment of the present application, an example of bluetooth communication between one display device and a plurality of external devices is as follows:
in a user family scene, the external device performing bluetooth communication with the television comprises a plurality of bluetooth switches, a plurality of bluetooth handles and bluetooth earphones supporting BLE Audio, wherein the number of the bluetooth switches is 1, the number of the bluetooth switches is respectively used for controlling the illumination of a plurality of lamps in the user family, the number of the bluetooth earphones is used for playing Audio sent by the television and receiving voice input by the user, and the number of the bluetooth handles is 1, the bluetooth handles are used for inputting control instructions, such as some game instructions, to the television.
BLE Mesh networking is carried out through display device's Mesh controller between TV and the bluetooth switch, and the Bluetooth communication is carried out through display device's BLE controller between TV and the game paddle, can not carry out the bluetooth and be connected between TV and the bluetooth headset, but carries out data transceiver with the mode of broadcasting.
The user opens a game on the television, which communicates with the bluetooth handle as follows:
1) The broadcast is started to the bluetooth handle, and TV control BLE controller launches the scanning, scans the bluetooth handle after, connects, acquires the button information that user operation bluetooth handle produced.
2) After the Bluetooth handle is connected with the television, the key information of the Bluetooth handle is sent to the television in the form of a Bluetooth data packet, and the television processes the key information to perform corresponding game reaction.
If the television receives the control information of the Bluetooth switch, the control information can be processed by the Mesh controller.
If the user inputs voice while operating the Bluetooth handle, so as to perform voice interaction with game friends, when the television receives the Bluetooth data packet of the Bluetooth handle, the television also needs to receive the Bluetooth broadcast packet containing the voice of the user, which is sent by the Bluetooth headset, and the Bluetooth data packet containing the voice of the user and the Bluetooth data packet of the Bluetooth handle need to be processed by the BLE controller, so that the problem that the BLE controller cannot receive all the Bluetooth broadcast packets containing the voice may occur.
As can be seen from the above embodiments, in the embodiments of the present application, a Mesh controller and a BLE controller connected to each other are arranged in a bluetooth module, and the Mesh controller and the BLE controller are configured to scan bluetooth broadcast packets at the same time, and since the Mesh antenna and the BLE antenna scan BLE common broadcast packets together and modulate the BLE common broadcast packets, when the BLE antenna is in full load and some BLE broadcast packets are not scanned, the Mesh antenna is still idle, and the Mesh antenna can modulate and demodulate broadcast packets that are not scanned by the BLE antenna, and transmit the broadcast packets to the BLE controller after the processing. Through the method, the BLE controller can still receive the BLE broadcast packet which is not scanned by the BLE controller through the SPI bus under the condition of insufficient physical bandwidth, so that the bandwidth and the processing capacity are increased, the problem of loss of the Bluetooth broadcast packet is reduced and even avoided, and the Bluetooth communication quality is improved; moreover, only one Bluetooth module is needed for Bluetooth communication, so that the cost of the Bluetooth communication is effectively controlled.
Since the above embodiments are all described by referring to and combining with other embodiments, the same portions are provided between different embodiments, and the same and similar portions between the various embodiments in this specification may be referred to each other. And will not be described in detail herein.
It is noted that, in this specification, relational terms such as "first" and "second," and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a circuit structure, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such circuit structure, article, or apparatus. Without further limitation, the presence of an element defined by the phrase "comprising … …" does not preclude the presence of additional like elements in a circuit structure, article, or apparatus that comprises the element.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
The above embodiments of the present application do not limit the scope of the present application.

Claims (10)

1. A display device, comprising:
a display;
a controller communicatively coupled to the display, the controller comprising:
the Bluetooth host is used for sending a scanning instruction to the Bluetooth module;
the Bluetooth module is connected with the Bluetooth host and comprises a Mesh controller and a BLE controller which are connected, wherein,
the Mesh controller is configured to: scanning a Bluetooth broadcast packet according to the scanning instruction, and if the Bluetooth broadcast packet is a BLE broadcast packet, sending the BLE broadcast packet to the BLE controller for processing;
the BLE controller is configured to: and scanning a Bluetooth broadcast packet according to the scanning instruction, and if the Bluetooth broadcast packet is a Mesh broadcast packet, sending the Mesh broadcast packet to the Mesh controller for processing.
2. The display device of claim 1, wherein the Mesh controller is further configured to: if the Bluetooth broadcast packet is a Mesh broadcast packet, processing the Mesh broadcast packet; the BLE controller is further configured to: and if the Bluetooth broadcast packet is a BLE broadcast packet, processing the BLE broadcast packet.
3. The display device of claim 1, wherein the bluetooth module further comprises:
the Mesh antenna is connected with the Mesh controller and used for receiving the scanning instruction and then sending the scanning instruction to the Mesh controller;
the BLE antenna is connected with the BLE controller and used for receiving the scanning instruction and then sending the scanning instruction to the BLE controller.
4. The display device of claim 1, wherein the Mesh controller and BLE controller are further configured to:
and modulating and demodulating the Bluetooth broadcast packet to obtain a protocol data unit type and a broadcast message type, and judging that the Bluetooth broadcast packet is the Mesh broadcast packet or the BLE broadcast packet according to the protocol data unit type and the broadcast message type.
5. The device according to claim 4, wherein the determining that the Bluetooth broadcast packet is the Mesh broadcast packet or a BLE broadcast packet according to the PDU type and the broadcast packet type comprises:
judging whether the type of the protocol data unit is not connectable;
if the broadcast message type is not the Mesh, judging whether the broadcast message type is the Mesh, if the broadcast message type is the Mesh, judging the Mesh broadcast packet, and if not, judging the BLE broadcast packet;
and if the connection is available, determining the BLE broadcasting packet.
6. The display device according to claim 1, wherein the Bluetooth host is connected to the Mesh controller via a USB hub, the Bluetooth host is connected to the BLE controller via a USB hub, and the Mesh controller is connected to the BLE controller via an SPI.
7. The display device according to claim 1, wherein the Mesh controller and the BLE controller are provided with different USB addresses, and the Bluetooth control communicates with the Mesh controller and the BLE controller through the different USB addresses respectively.
8. The display device of claim 7, wherein the Mesh controller and BLE controller each communicate with a device external to the display device using a USB address with the BLE controller.
9. A method of bluetooth communication, comprising:
in one Bluetooth module, simultaneously scanning Bluetooth broadcast packets through a Mesh controller and a BLE controller, wherein the Mesh controller is connected with the BLE controller;
if the Bluetooth broadcast packet scanned by the Mesh controller is a BLE broadcast packet, sending the BLE broadcast packet to the BLE controller for processing;
and if the Bluetooth broadcast packet scanned by the BLE controller is a Mesh broadcast packet, sending the Mesh broadcast packet to the Mesh controller for processing.
10. The bluetooth communication method according to claim 9, characterized in that the method further comprises:
if the Bluetooth broadcast packet scanned by the Mesh controller is a Mesh broadcast packet, the Mesh controller processes the Mesh broadcast packet;
and if the Bluetooth broadcast packet scanned by the BLE controller is a BLE broadcast packet, processing the BLE broadcast packet by the BLE controller.
CN202111204172.7A 2021-10-15 2021-10-15 Display device and Bluetooth communication method Pending CN115988248A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111204172.7A CN115988248A (en) 2021-10-15 2021-10-15 Display device and Bluetooth communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111204172.7A CN115988248A (en) 2021-10-15 2021-10-15 Display device and Bluetooth communication method

Publications (1)

Publication Number Publication Date
CN115988248A true CN115988248A (en) 2023-04-18

Family

ID=85962827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111204172.7A Pending CN115988248A (en) 2021-10-15 2021-10-15 Display device and Bluetooth communication method

Country Status (1)

Country Link
CN (1) CN115988248A (en)

Similar Documents

Publication Publication Date Title
TWI619387B (en) Remote control method in compliance with hdmi-cec specification and system thereof
WO2017097088A1 (en) Multi-screen projection control method and system, terminal device, and computer storage medium
WO2022089088A1 (en) Display device, mobile terminal, screen-casting data transmission method, and transmission system
US20110055747A1 (en) Techniques for Expanding Functions of Portable Multimedia Devices
CN105100848A (en) Intelligent equipment, and intelligent equipment control system and realization method thereof
WO2020248627A1 (en) Video call method and display device
US9531763B2 (en) Apparatus and method for reproducing contents using digital living network alliance in mobile terminal
JP2013229685A (en) Information processing device, information processing method, and program
CN112770078B (en) Video conference terminal fusion method and device and readable storage medium
CN101383743B (en) Main electronic device for communicating within a network and method for operating a main electronic device for communicating within the network
WO2023202131A1 (en) Device interconnection method and apparatus, electronic device, and storage medium
KR20200039638A (en) Display apparatus and control method of the same
CN115988248A (en) Display device and Bluetooth communication method
CN115914704A (en) Bluetooth master device, bluetooth slave device and volume control method
CN114785914A (en) Display device, control apparatus, and device configuration method
WO2024001535A1 (en) Display device, playing device, control device and data transmission method
CN111448784B (en) Information processing apparatus, information processing method, and information processing system
US11900007B2 (en) Display apparatus
US20230217294A1 (en) Method for automatically enabling access point function and relay function, and electronic device
JP2013247539A (en) Display device, display method, and display device control program
WO2022142496A1 (en) Display device, external device, operating mode switching method for external device, and far-field voice control method
US20220377410A1 (en) Previous source input return
US20240146996A1 (en) Display device and control method therefor
WO2022088899A1 (en) Display device, communication method between display device and external loudspeaker, and audio output method for external loudspeaker
WO2024001435A1 (en) Display apparatus and data processing method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination