Detailed Description
For the purposes of making the objects and embodiments of the present application more apparent, an exemplary embodiment of the present application will be described in detail below with reference to the accompanying drawings in which exemplary embodiments of the present application are illustrated, it being apparent that the exemplary embodiments described are only some, but not all, of the embodiments of the present application.
It should be noted that the brief description of the terminology in the present application is for the purpose of facilitating understanding of the embodiments described below only and is not intended to limit the embodiments of the present application. Unless otherwise indicated, these terms should be construed in their ordinary and customary meaning.
The terms first, second, third and the like in the description and in the claims and in the above-described figures are used for distinguishing between similar or similar 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 and that the at least one is 1 or more.
The terms "comprises," "comprising," and "having," 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 explicitly 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 application can have various implementation forms, for example, a television, an intelligent television, a laser projection device, a display (monitor), an electronic whiteboard (electronic bulletin board), an electronic desktop (electronic table), a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device and the like.
Fig. 1 is a schematic diagram of an operation scenario between a display device and a control device according to an embodiment, wherein the control device includes a smart device or a control apparatus. As shown in fig. 1, a 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 infrared protocol communication or bluetooth protocol communication, and other short-range communication modes, and the display device 200 is controlled by a wireless or wired mode. The user may control the display device 200 by inputting user instructions through keys on a remote control, voice input, control panel input, etc.
In some embodiments, a smart device 300 (e.g., mobile terminal, tablet, computer, notebook, etc.) may also be used to control the display device 200. For example, the display device 200 is controlled using an application running on a smart device.
In some embodiments, the display device may receive instructions not using the smart device or control device described above, but rather receive control of the user by touch or gesture, or the like.
In some embodiments, the display device 200 may also perform control 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 through a module configured inside the display device 200 device for acquiring voice commands, or the voice command control of the user may be received through a voice control device configured outside the display device 200 device.
In some embodiments, the display device 200 is also in data communication with a server 400. The display device 200 may be permitted to make communication connections via a Local Area Network (LAN), a Wireless Local Area Network (WLAN), and other networks. The server 400 may provide various contents and interactions to the display device 200. The server 400 may be a cluster, or may be multiple clusters, and may include one or more types of servers.
Fig. 2 exemplarily shows a block diagram of a configuration of the control apparatus 100 in accordance with an exemplary embodiment. As shown in fig. 2, the control device 100 includes a controller 110, a communication interface 130, a user input/output interface 140, an external memory, and a power supply. The control 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, and function as an interaction between the user and the display device 200.
As shown in fig. 3, the display apparatus 200 includes at least one of a modem 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a user interface 280, an external memory, and a power supply.
In some embodiments the controller includes a processor, a video processor, an audio processor, a graphics processor, RAM, ROM, a first interface for input/output to an nth interface.
The display 260 includes a display screen component for presenting a picture, and a driving component for driving an image display, a component for receiving an image signal from the controller output, displaying video content, image content, and a menu manipulation interface, and a user manipulation UI interface.
The display 260 may be a liquid crystal display, an OLED display, a projection device, or a projection screen.
The communicator 220 is a component for communicating with external devices or servers according to various communication protocol types. For example, the communicator may comprise at least one of a Wifi module, a bluetooth module, a wired ethernet module, or other network communication protocol chip or a near field communication protocol chip, and an infrared receiver. The display apparatus 200 may establish transmission and reception of control signals and data signals with the external control device 100 or the server 400 through the communicator 220.
The user interface 280 may be used to receive control signals from the control device 100 (e.g., an infrared remote control, etc.). Or may be used to directly receive user input operation instructions and convert the operation instructions into instructions recognizable and responsive by the display device 200, which may be referred to as a user input interface.
The detector 230 is used to collect signals of the external environment or interaction with the outside. For example, the detector 230 includes a light receiver for collecting a sensor of the intensity of ambient light, or the detector 230 includes an image collector such as a camera that may be used to collect external ambient scenes, user attributes or user interaction gestures, or the detector 230 includes a sound collector such as a microphone or the like for receiving external sounds.
The external device interface 240 may include, but is not limited to, any one or more of a High Definition Multimedia Interface (HDMI), an analog or data high definition component input interface (component), a composite video input interface (CVBS), a USB input interface (USB), an RGB port, etc. The input/output interface may be a composite type input/output interface formed by a plurality of interfaces.
The modem 210 receives broadcast television signals through a wired or wireless reception manner, and demodulates audio and video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals.
In some embodiments, the controller 250 and the modem 210 may be located in separate devices, i.e., the modem 210 may also be located in an external device to the main device in which the controller 250 is located, such as an external set-top box or the like.
The controller 250 controls the operation of the display device and responds to the user's operations through various software control programs stored on a memory (internal memory or external 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 displayed on the display 260, the controller 250 may perform an operation related to the object selected by the user command.
In some embodiments, the controller includes at least one of a central processing unit (Central Processing Unit, CPU), a video processor, an audio processor, a graphics processor (Graphics Processing Unit, GPU), and a random access Memory (Random Access Memory, RAM), a Read-Only Memory (ROM), a first interface to an nth interface for input/output, a communication Bus (Bus), and the like.
The RAM is also called as a main memory and is an internal memory for directly exchanging data with the controller. It can be read and written at any time (except when refreshed) and is fast, often as a temporary data storage medium for an operating system or other program in operation. The biggest difference from ROM is the volatility of the data, i.e. the stored data will be lost upon power down. RAM is used in computer and digital systems to temporarily store programs, data, and intermediate results. ROM operates in a non-destructive read mode, and only information which cannot be written can be read. The information is fixed once written, and even if the power supply is turned off, the information is not lost, so the information is also called a fixed memory.
The user may input a user command through a Graphical User Interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the Graphical User Interface (GUI). Or the user may input the user command by inputting a specific sound or gesture, the user input interface recognizes the sound or gesture through the sensor, and receives the user input command.
A "user interface" is a media interface for interaction and exchange of information between an application or operating system and a user, which enables conversion between an internal form of information and a user-acceptable form. A commonly used presentation form of a user interface is a graphical user interface (Graphic User Interface, GUI), which refers to a graphically displayed user interface that is related to computer operations. It may be an interface element such as an icon, a window, a control, etc. displayed in a display screen of the display device, where the control may include a visual interface element such as an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, a Widget, etc.
The display device provided by the embodiment of the application comprises a display and a controller, wherein the controller corresponds to the controller 260 in the above-mentioned figure 3. The control device in the embodiment of the present application may be the control apparatus 100 in fig. 1, and the display device may be the display device 200 in fig. 1.
The embodiment of the application provides display equipment, which comprises a controller and a display, wherein the controller is configured to receive target data sent by control equipment through a connection isochronous stream (Connected Isochronous Stream, CIS) link between the display equipment and the control equipment, the target data are generated by the control equipment according to a received user control instruction, send a reply message to the control equipment through the CIS link, the reply message is used for representing that the target data are received, acquire target information corresponding to the user control instruction based on the target data, and the display is configured to display the target information.
The embodiment of the application provides control equipment, which comprises a controller, a CIS link and a reply message, wherein the controller is configured to receive a user control instruction, generate target data based on the user control instruction, send the target data to display equipment through the CIS link between the control equipment and the display equipment so as to enable the display equipment to display target information corresponding to the user control instruction based on the target data, and receive the reply message sent by the display equipment through the CIS link, wherein the reply message is used for representing that the display equipment has received the target data.
It can be understood that the control device generates target data based on the user control instruction, sends the target data to the display device through the CIS link between the control device and the display device, receives the target data sent by the control device through the CIS link, sends a reply message (the reply message is used for indicating that the display device has received the target data) to the control device, acquires target information corresponding to the user control instruction based on the target data, displays the target information, and receives the reply message by the control device.
It can be understood that the user control instruction may be a voice control instruction of the user, a key control instruction of the user, or other control instructions of the user, which is not limited by the embodiment of the present application.
It will be appreciated that the destination data is generated based on a complete user control instruction, and that the destination data includes at least one data packet, and specifically, according to the size of the destination data and the length of each data packet, how many data packets the destination data needs to be sent through is determined.
It can be understood that, through the CIS link between the control device and the display device, the target data is sent to the display device, specifically, the control device divides the target data into at least one data packet and sends the at least one data packet to the display device, and the display device replies a message for representing that the data packet is received after receiving each data packet.
It can be understood that CIS is a data stream transmission channel of a fixed time Interval (ISO Interval) established between connected devices on the basis of an ACL link established, wherein both ACL link and CIS link are bluetooth low energy transmission links.
It will be appreciated that displaying the target information may include at least one of updating an interface (e.g., interface switching), displaying a pop-up message (e.g., popping up a window on a current interface or hovering over another interface on the current interface), moving a focus of the display device (e.g., moving the focus of the display device from one control to another), and displaying the target information is specifically determined according to the actual situation.
The object where the focus is located is the object which is currently in the selected state.
The display device is a television, the control device is a remote controller, if the user control instruction is to switch from channel 1 to channel 2, the display target information is an interface for updating the interface of channel 1 to channel 2, if the user control instruction is a voice control instruction and the content of the instruction is "today weather", the display target information is information about the weather condition of the present day on a popup window of the present interface, if the user control instruction is a voice control instruction and the content of the instruction is "xxx drama", the display target information is to display all information about the "xxx drama" in suspension on the present interface, if the present interface is selected as control 1, the user control instruction is selected as control 2, the display target information is moved from control 1 to control 2 in focus, and the control 2 is selected.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the advantages that in the embodiment of the application, the control equipment generates the target data based on the user control instruction, the target data is sent to the display equipment through the CIS link between the control equipment and the display equipment, the display equipment receives the target data sent by the control equipment through the CIS link, sends a reply message (the reply message is used for representing that the display equipment has received the target data) to the control equipment, and acquires the target information corresponding to the user control instruction and displays the target information based on the target data (the control equipment receives the reply message). Because the CIS link is established on the basis of the ACL link, the ACL link and the CIS link which can be used for data transmission exist between the control equipment and the display equipment at the same time, and compared with the prior art which can only carry out data transmission through the ACL link, the CIS link is increased on the basis of the ACL link, the flexibility of data transmission can be improved, and in addition, the parallel transmission of data can be realized under the condition that a plurality of data are required to be transmitted, and the transmission efficiency is improved.
In some embodiments of the present application, the target data is sent to the display device via the CIS link in the event that the ACL link between the control device and the display device is occupied.
It will be appreciated that the link to which the target data is sent may be determined based on whether the ACL link is occupied. For example, in the case where an ACL link between the control device and the display device is occupied, the target data is transmitted to the display device through the CIS link, and in the case where an ACL link between the control device and the display device is unoccupied, the target data is transmitted to the display device through the ACL link. The link for transmitting the target data may be determined according to whether the link is occupied or not. For example, in the case where an ACL link between the control device and the display device is occupied, the target data is transmitted to the display device through the CIS link, in the case where an ACL link between the control device and the display device is not occupied, the target data is transmitted to the display device through the ACL link, in the case where the CIS link is occupied, and in the case where an ACL link between the control device and the display device is not occupied, the target data is transmitted to the display device through either the ACL link or the CIS link.
In the embodiment of the application, the target data is sent to the display equipment through the CIS link under the condition that the ACL link between the control equipment and the display equipment is occupied, so that when the ACL link is in use, the target data is transmitted through the CIS link, the parallel transmission of the data can be realized, the time is saved, and the transmission efficiency is further improved.
In some embodiments of the present application, in the case where the user control instruction is a voice control instruction, the target data is sent to the display device through the CIS link.
It can be understood that the link for transmitting the target data is determined according to whether the control command of the user is a voice control command or a key control command, that is, the target data is transmitted to the display device through the CIS link in the case that the control command of the user is a voice control command, and the target data is transmitted to the display device through the ACL link in the case that the control command of the user is other control commands (e.g., a key control command, etc.).
In the embodiment of the application, the target data is sent to the display device through the CIS link when the user control instruction is a voice control instruction, and the target data is sent to the display device through the ACL link when the user control instruction is other control instructions. In the data transmitted between the display device and the control device, the voice data has the highest requirement on the link and consumes the most resources, so that the voice data which consumes the most resources is transmitted through the CIS link, the ACL link is not required to be established or maintained according to the configuration of the transmission voice data with the highest requirement on the link, a large amount of resources are saved, and simultaneously, the parallel transmission of the voice control command and the target data generated by other control commands can be realized, and the transmission efficiency is improved.
In some embodiments of the present application, the control device determines whether a CIS link exists with the display device before sending the target data to the display device. And under the condition that a CIS link exists between the control device and the display device, sending target data to the display device through the CIS link, and receiving the target data by the display device. The control device sends a request message to the display device when the CIS link does not exist between the control device and the display device, the request message is used for requesting to establish the CIS link, the display device receives the request message and sends a response message to the control device, the response message is used for representing agreement to establish the CIS link, the control device receives the response message sent by the display device, the CIS link is established between the control device and the display device based on the response message, and target data is sent to the display device through the CIS link.
It may be understood that the CIS link may be established before the control device and the display device communicate, or may be established when data needs to be transmitted through the CIS link, and specifically may be determined according to actual needs, which is not limited by the embodiment of the present application.
In the embodiment of the application, before sending target data to display equipment, control equipment firstly judges whether a CIS link exists between the control equipment and the display equipment, and sends the target data to the display equipment through the CIS link under the condition that the CIS link exists between the control equipment and the display equipment, and the control equipment receives the target data, and sends a request message to the display equipment under the condition that the CIS link does not exist between the control equipment and the display equipment, wherein the request message is used for requesting to establish the CIS link, the display equipment receives the request message and sends a response message to the control equipment, the response message is used for characterizing to agree to establish the CIS link, the control equipment receives the response message sent by the display equipment, and based on the response message, the CIS link is established between the control equipment and the display equipment, and the target data is sent to the display equipment through the CIS link. Therefore, the establishment time of the CIS link can be flexibly selected, can be established before the control equipment communicates with the display equipment, and can be established again when the CIS link is needed to be used.
In some embodiments of the present application, the user control command is a voice control command, the display device resets the timer after receiving the reply message sent by the display device through the CIS link, and starts the timer for timing, the control device disconnects the CIS link when the timer times out and does not receive a new voice control command, and stops the timer for timing when the timer receives a new voice control command before the timer times out.
It can be understood that after receiving a reply message sent by the display device, that is, after sending target data generated based on a voice control instruction of a user to the display device, the display device completes receiving the reply message, resets the timer, starts the timer to count time, and stops counting time when the control device receives a new voice control instruction of the user before the timer times out, when the control device does not receive the new voice control instruction of the user after the timer times out, the control device sends an instruction for disconnecting the CIS link to the display device and releases resources used by the CIS link in the control device, and the display device receives the instruction for disconnecting the CIS link sent by the control device and releases the resources used by the CIS link in the display device.
It can be understood that the total time length of the timer can be set to be a preset time length, whether the timer overturns or not can be determined according to whether the time length of the timer is equal to the preset time length, when the time length of the timer is equal to the preset time length, the timer overtime is determined, and when the time length of the timer is smaller than the preset time length, the timer overtime is determined, wherein the preset time length can be a fixed value, the preset time length can also be dynamically adjusted according to the time length of an interval of a voice control instruction used by a user history, and particularly the embodiment of the application is not limited.
Illustratively, as shown in fig. 4, a flow chart for determining whether the CIS link needs to be disconnected using a timer includes steps 401 to 413.
401. The control device receives a voice control instruction of a user.
402. The control device determines whether a CIS link exists.
If yes, go to step 403, otherwise go to step 404.
403. The control device stops the timer.
404. The control device sends a request message to the display device.
The request message is used for requesting to establish the CIS link.
405. The display device receives the request message sent by the control device.
406. And the display device sends a response message to the control device according to the request message.
407. The control device receives the response message sent by the display device.
408. The control device establishes the CIS link based on the response message.
409. The control device generates target data based on the voice control instruction.
410. The control device sends the target data to the display device via the CIS link.
411. And the display equipment is used for receiving the target data sent by the control equipment.
412. The display device acquires target information corresponding to the user instruction based on the target data.
413. The display device displays the target information.
414. The display device sends a reply message to the control device via the CIS link.
415. The control device receives the reply message sent by the display device.
416. The control device resets and starts a timer.
417. The control device determines whether a new voice control command is received before the timer expires.
Step 403 is performed if yes, otherwise step 418 is performed.
418. The control device sends a CIS link disconnection instruction to the display device and releases resources.
419. And the display equipment receives a CIS link disconnection instruction sent by the control equipment and releases resources.
It should be noted that the execution sequence of steps 401 to 419 is determined according to actual needs, and the embodiment of the present application is not limited in this disclosure. For example, step 402 and step 409 may be performed simultaneously, or step 409 may be performed first, and then step 402 may be performed.
In the embodiment of the application, the user control instruction is a voice control instruction, the display equipment resets the timer and starts the timer to count after receiving the reply message sent by the display equipment through the CIS link, the control equipment breaks the CIS link when the timer overtime does not receive a new voice control instruction, and stops the timer to count when the timer overtime receives a new voice control instruction. Because the frequency of using the voice control function of the control device by the user is relatively low, resources are wasted due to the fact that the CIS link is idle for a long time, and therefore the CIS link can be disconnected by setting the timer, and the CIS link can be disconnected under the condition that the timer is overtime and the voice control instruction of the user is not received by the control device.
In some embodiments of the application, the control device sends target data to the display device through at least one CIS event on the CIS link, each CIS event comprises at least one CIS sub-event, the display device receives the target data through at least one CIS event on the CIS link, the display device sends a reply message to the control device, after receiving the reply message sent by the display device, the control device sends an indication message to the display device, the indication message is used for indicating that the sending of the target data corresponding to the user control instruction is completed, the display device receives the indication message, and closes the last CIS event in the at least one CIS event according to the indication message, so that the display device does not monitor the CIS sub-event of the last CIS event any more.
It can be understood that on the CIS link, one CIS event has a fixed interval duration, the interval duration can be adjusted according to actual needs, and one CIS event comprises at least one CIS sub-event, each sub-event also has a fixed interval duration, and the interval duration of each sub-event can also be adjusted according to actual needs.
Typically, a data packet is transmitted over a CIS sub-event on a CIS link.
It will be appreciated that at least one CIS event is included in a CIS link, each CIS event includes at least one CIS sub-event, each sub-event is configured to transmit one data packet, as shown in fig. 5, one CIS link includes N (N is an integer greater than 0) CIS events, where each of CIS event 1 and CIS event N includes 4 CIS sub-events, each of CIS events not shown between CIS event 1 and CIS event N also includes 4 CIS sub-events, each CIS sub-event is configured to transmit one data packet, so that at most 4 data packets can be transmitted in any CIS event on the CIS link, specifically, each CIS event can transmit at most 4 data packets, which can be understood to be influenced by other factors (e.g., burst number, network environment congestion, etc.), each CIS event can actually transmit 1, 2, 3, or 4 data packets, for example, one CIS event in fig. 12 can be configured to transmit one data packet, and one CIS event in fig. 13 can be configured to transmit 2 data packets and one CIS event in fig. 14 and 4 can be configured to transmit 4 data packets.
It can be understood that, the target data is divided into at least one data packet, the control device sends the at least one data packet to the display device through the corresponding at least one CIS sub-event (one data packet corresponds to one CIS sub-event), the display device sends a reply message to the control device through the CIS sub-event, after the control device receives the reply message of the data packet corresponding to the last CIS sub-event (i.e. the control device receives the reply message of the last data packet in the target data), the control device sends an indication message to the display device, after receiving the indication message, the display device closes the CIS event where the last CIS sub-event is located, then the display device does not continue to monitor the sub-event of the data packet in the last CIS event (i.e. the display device does not continue to monitor the sub-event after the sub-event of the indication message in the last CIS event) until the next CIS event arrives, and the display device continues to monitor the sub-event in the next CIS event.
As shown in fig. 5, for example, in order to close the CIS event in advance by using the CIE flag bit, in the nth CIS (CIS N event) event, the sending end sends the Data packet with CIE 1 after receiving the Ack replied by the receiving end, and after receiving the Data packet with CIE 1, the receiving end finishes the CIS N event in advance, so in the remaining duration of the CIS sub event 2, CIS sub event 3 and CIS sub event 4, that is, in the duration from the time when the sub event 2 of the CIS N event has sent the CIE to the time when the next CIS event arrives (the shadow area indicated by reference numeral 600), the display device does not need to monitor the sub event in the duration, and therefore, in the duration, resources can be allocated to other operations.
It can be understood that the indication message is used to indicate that the transmission of the target data corresponding to the user control instruction is completed, and the display device receives the indication message, and then it can determine that the transmission of the target data is completed, so that the last CIS event for transmitting the target data can be closed. The indication message may include information that the sending of the target data is completed, or the indication message may include a flag bit indicating that the sending of the target data is completed, or may include a flag bit indicating that the current CIS event (last CIS event) is closed, or may include other contents, which may be specifically determined according to actual needs, and the embodiment of the present application is not limited.
Illustratively, as shown in fig. 6, a Header (Connected Isochronous Protocol Data Unit Header, CIS PDU Header) of the CIS protocol data unit, where a shutdown synchronization event (Close Isochronous Event, CIE) flag bit is set to 1, that is, the current CIS event is shutdown, so a data packet with CIE 1 may be used as an indication message.
The method comprises the steps that a control device sends target data to a display device through at least one CIS event on a CIS link, each CIS event comprises at least one CIS sub-event, the display device receives the target data through at least one CIS event on the CIS link, the display device sends a reply message to the control device, after receiving the reply message sent by the display device, the control device sends an indication message to the display device, the indication message is used for indicating that the sending of the target data corresponding to a user control instruction is completed, the display device receives the indication message, and the last CIS event in the at least one CIS event is closed according to the indication message, so that the display device does not monitor the CIS sub-event of the last CIS event. After the control device receives the reply message of the display device, it determines that the display device finishes receiving the target data, and sends an indication message to the display device, where the indication message is used to indicate that the target data corresponding to the user control instruction is sent, the present CIS event (i.e. the last CIS event) is closed after the display device receives the indication message, so that the display device does not need to monitor the CIS sub-event subsequent to the CIS event, i.e. the CIS event is finished in advance.
In an embodiment of the present application, a data transmission method is provided, as shown in fig. 7, and the method includes the following steps 101 to 108.
101. The control device receives a user control instruction.
102. The control device generates target data based on the user control instruction.
103. The control device transmits the target data to the display device through a CIS link between the control device and the display device.
104. The display device receives the target data transmitted by the control device through a CIS link between the display device and the control device.
105. The display device acquires target information corresponding to the user control instruction based on the target data.
106. And a display device displaying the target information.
107. The display device sends a reply message to the control device through the CIS link, wherein the reply message is used for representing that the target data is received;
108. And the control equipment receives the reply message sent by the display equipment through the CIS link.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the advantages that in the embodiment of the application, the control equipment generates the target data based on the user control instruction, the target data is sent to the display equipment through the CIS link between the control equipment and the display equipment, the display equipment receives the target data sent by the control equipment through the CIS link, sends a reply message (the reply message is used for representing that the display equipment has received the target data) to the control equipment, and acquires the target information corresponding to the user control instruction and displays the target information based on the target data (the control equipment receives the reply message). Because the CIS link is established on the basis of the ACL link, the ACL link and the CIS link which can be used for data transmission exist between the control equipment and the display equipment at the same time, and compared with the prior art which can only carry out data transmission through the ACL link, the CIS link is increased on the basis of the ACL link, the flexibility of data transmission can be improved, and in addition, the parallel transmission of data can be realized under the condition that a plurality of data are required to be transmitted, and the transmission efficiency is improved.
In some embodiments of the present application, as shown in fig. 8 in conjunction with fig. 7, the above step 103 may be implemented specifically by the following step 103a or step 103 b.
103A, in case that an ACL link between the control device and the display device is occupied, the control device transmits target data to the display device through the CIS link.
103B, in the case that the user control instruction is a voice control instruction, the control device sends the target data to the display device through the CIS link.
In the embodiment of the application, the target data is sent to the display device through the CIS link under the condition that the ACL link between the control device and the display device is occupied, or the target data is sent to the display device through the CIS link under the condition that the user control instruction is a voice control instruction, so that when the ACL link is in use, the target data is transmitted through the CIS link, or the voice data which consumes Bluetooth resources is transmitted through the CIS link, thereby realizing parallel data transmission and improving the data transmission efficiency.
In some embodiments of the present application, as shown in fig. 9 in conjunction with fig. 7, the above step 103 may be specifically implemented by the following steps 103c to 103 i.
103C, the control device determines whether a CIS link exists with the display device.
Step 103i is performed in case there is a CIS link between the control device and the display device, otherwise step 103d is performed.
103D, in the case that the CIS link does not exist between the control device and the display device, the control device transmits a request message to the display device, the request message being used for requesting establishment of the CIS link.
103E, the display device receives the request message sent by the control device.
103F, the display device sends a response message to the control device according to the request message, wherein the response message is used for representing agreement to establish the CIS link.
103G, the control device receives a response message sent by the display device, wherein the response message is used for representing that the display device agrees to establish the CIS link.
103H, the control device establishes a CIS link between the control device and the display device based on the response message.
103I, the control device sends the target data to the display device via the CIS link.
In the embodiment of the application, before sending target data to display equipment, control equipment firstly judges whether a CIS link exists between the control equipment and the display equipment, and sends the target data to the display equipment through the CIS link under the condition that the CIS link exists between the control equipment and the display equipment, and the control equipment receives the target data, and sends a request message to the display equipment under the condition that the CIS link does not exist between the control equipment and the display equipment, wherein the request message is used for requesting to establish the CIS link, the display equipment receives the request message and sends a response message to the control equipment, the response message is used for characterizing to agree to establish the CIS link, the control equipment receives the response message sent by the display equipment, and based on the response message, the CIS link is established between the control equipment and the display equipment, and the target data is sent to the display equipment through the CIS link. Therefore, the establishment time of the CIS link can be flexibly selected, can be established before the control equipment communicates with the display equipment, and can be established again when the CIS link is needed to be used.
In some embodiments of the present application, the user control command is a voice control command, and in conjunction with fig. 7, as shown in fig. 10, after the step 108, the data transmission method in the embodiment of the present application further includes the following steps 109, 110 and 110a, that is, step 110b.
109. The control device resets the timer and starts the timer for counting.
110. The control device determines whether a new voice control command is received before the timer expires.
If a new voice control command is received, step 110b is performed, otherwise step 110a is performed.
110A, when the timer times out and a new voice control instruction is not received, the CIS link is disconnected.
110B, stopping the timer timing when a new voice control command is received before the timer times out.
In the embodiment of the application, the user control instruction is a voice control instruction, the display equipment resets the timer and starts the timer to count after receiving the reply message sent by the display equipment through the CIS link, the control equipment breaks the CIS link when the timer overtime does not receive a new voice control instruction, and stops the timer to count when the timer overtime receives a new voice control instruction. Because the frequency of the voice control instruction of the user using the control device is relatively low, resources are wasted when the CIS link is idle for a long time, and therefore, by setting the timer, the CIS link can be disconnected when the control device does not receive the voice control instruction of the user yet under the condition that the timer is overtime, and the idle waste of the resources can be reduced.
In some embodiments of the present application, as shown in fig. 11 in conjunction with fig. 7, the above step 103 may be specifically implemented by the following step 103j, the above step 104 may be implemented by the following step 104a, and after the above step 108, the data transmission method in the embodiment of the present application further includes the following steps 111 to 113.
103J, the control device sends the target data to the display device via at least one CIS event on the CIS link, each CIS event comprising at least one CIS sub-event.
104A, the display device receives the target data via at least one CIS event on the CIS link.
111. The control device sends an indication message to the display device, wherein the indication message is used for indicating that the sending of the target data corresponding to the user control instruction is completed.
112. The display device receives the indication message sent by the control device.
113. The display device closes the last CIS event of the at least one CIS event according to the indication message.
After the display device closes the last CIS event in the at least one CIS event, the display device does not monitor the CIS sub-event of the last CIS event.
The method comprises the steps that a control device sends target data to a display device through at least one CIS event on a CIS link, each CIS event comprises at least one CIS sub-event, the display device receives the target data through at least one CIS event on the CIS link, the display device sends a reply message to the control device, after receiving the reply message sent by the display device, the control device sends an indication message to the display device, the indication message is used for indicating that the sending of the target data corresponding to a user control instruction is completed, the display device receives the indication message, and the last CIS event in the at least one CIS event is closed according to the indication message, so that the display device does not monitor the CIS sub-event of the last CIS event. After the control device receives the reply message of the display device, it determines that the display device finishes receiving the target data, and sends an indication message to the display device, where the indication message is used to indicate that the target data corresponding to the user control instruction is sent, the present CIS event (i.e. the last CIS event) is closed after the display device receives the indication message, so that the display device does not need to monitor the CIS sub-event subsequent to the CIS event, i.e. the CIS event is finished in advance.
In some embodiments of the present application, the transmission parameters of the CIS link are adjusted to a first target parameter in the case of no congestion in the network environment, the transmission parameters of the CIS link are adjusted to a second target parameter in the case of congestion in the network environment, and the transmission parameters of the CIS link include at least one of Burst Number (BN), sub-event number (number of subevent, NSE), flush Timeout (FT), NSE in the first target parameter being greater than NSE in the second target parameter, BN in the first target parameter being greater than BN in the second target parameter, FT in the first target parameter being less than FT in the second target parameter. BN is used to indicate the number of different data packets allowed to be sent in one CIS event, NSE is used to indicate the number of sub-events allowed to exist at most in one CIS event, and FT is used to indicate that the same sub-event is allowed to be sent at most in FT events.
It will be appreciated that where the network environment is not congested, indicating that the network environment is better, the rate of data transfer may be increased by increasing NSE, and/or increasing BN, and/or decreasing FT.
Illustratively, the network environment is free from congestion, and three protocol data units (Protocol Data Unit, PDUs), i.e., data packets, need to be transmitted, and an Ack (reply message) can be received once each PDU is sent, where nse=4, ft=1, i.e., one CIS event has at most 4 CIS sub-events, and each CIS sub-event is allowed to be sent in one CIS event at most. As shown in fig. 12, the transmission rate is increased by changing BN, bn=1, only one different PDU is allowed to be transmitted in one CIS event, then 0 corresponding PDU is transmitted in the first CIS event, 1 corresponding PDU is transmitted in the second PDU, and 2 corresponding PDU is transmitted in the third CIS event, so that the number of CIS events required for transmitting 0, 1, 2 PDUs is 3 (i.e., 3 interval periods are required), as shown in fig. 13, bn=2, two different PDUs are allowed to be transmitted in one CIS event, then 0 and 1 corresponding PDU can be transmitted in the first CIS event, 2 corresponding PDU is transmitted in the next CIS event, so that the number of CIS events required for transmitting three PDUs is 2 (i.e., 2 interval periods are required), and as shown in fig. 13, the number of CIS events required for transmitting the same 3 PDUs is increased from 1 to 2, thereby saving the interval period of one CIS event, saving time, and improving transmission efficiency.
It can be appreciated that in the case of congestion in the network environment, which indicates that the network environment is poor, transmission time can be saved as much as possible while reducing NSE and/or reducing BN and/or increasing FT to reduce the packet loss rate.
Illustratively, taking network environment congestion as an example, four PDUs need to be transmitted, and each PDU needs to be transmitted 3 times, where nse=4 and bn=2, that is, there are at most 4 CIS sub-events in one CIS event, and at most two different data packets are allowed to be transmitted in each CIS event. As shown in fig. 14, when the FT is changed to reduce the packet loss rate, ft=1, each CIS sub-event is only allowed to be transmitted in one CIS event, then the 0 corresponding PDU is transmitted for 3 times of received responses, the 1 corresponding PDU is transmitted once in the first CIS event and is not received in the second CIS event, but cannot be continuously transmitted in the second CIS event, so that the 1 corresponding PDU is lost, the 2 corresponding PDU is transmitted for 3 times of received responses in the second CIS event, the 3 corresponding PDU is transmitted once in the second CIS event and cannot be continuously transmitted in the third CIS event, so that the 3 corresponding PDU is lost, therefore, the number of CIS events required for transmitting 4 corresponding PDUs of which the transmission is completed 0,1,2 and 3 is 2 (i.e. 2 interval durations are required), but both the 1 st PDU and the 3 rd PDU are lost, and the packet loss rate is 50%. As shown in fig. 15, ft=2, each CIS sub-event allows transmission in two CIS events, then 3 received responses are transmitted for 0 corresponding PDU, 1 corresponding PDU is transmitted once not received in the first CIS event, two received responses are continuously transmitted in the second CIS event, 2 corresponding PDU is transmitted 2 not received responses in the second CIS event, one received response is continuously transmitted in the third CIS event, 3 corresponding PDU is transmitted three received responses in the third CIS event, then the number of CIS events required for transmitting 4 corresponding PDUs of 0,1,2, 3 is 3 (i.e. 3 interval durations are required), but all PDUs are completed, and no packet is lost, so that FT increases from 1 to 2, the same 4 PDUs are transmitted, the packet loss rate of fig. 14 is 50%, the packet loss rate is not lost in fig. 15, and the packet loss rate is reduced.
In the embodiment of the application, the transmission parameters of the CIS link are adjusted to the first target parameters under the condition that the network environment is not congested, the transmission parameters of the CIS link are adjusted to the second target parameters under the condition that the network environment is congested, and the transmission parameters of the CIS link comprise at least one of burst number BN, sub-event number NSE and refresh timeout FT, wherein NSE in the first target parameters is larger than NSE in the second target parameters, BN in the first target parameters is larger than BN in the second target parameters, and FT in the first target parameters is smaller than FT in the second target parameters. Therefore, the data transmission efficiency can be improved under the condition of better network environment, and the packet loss rate in the data transmission process can be reduced under the condition of worse network environment.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements each process executed by the data transmission method, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
The computer readable storage medium may be a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk.
The present invention provides a computer program product comprising instructions which, when executed on a computer, cause the computer to implement the data transmission method described above.
It should be noted that the above embodiments are merely for illustrating the technical solution of the present application and not for limiting the same, and although the present application has been described in detail with reference to the above embodiments, it should be understood by those skilled in the art that the technical solution described in the above embodiments may be modified or some or all of the technical features may be equivalently replaced, and these modifications or substitutions do not make the essence of the corresponding technical solution deviate from the scope of the technical solution of the embodiments of the present application.
The foregoing description, for purposes of explanation, has been presented in conjunction with specific embodiments. The illustrative discussions above are not intended to be exhaustive or to limit the embodiments to the precise forms disclosed above. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles and the practical application, to thereby enable others skilled in the art to best utilize the embodiments and various embodiments with various modifications as are suited to the particular use contemplated.