CN114040510B - Data transmission method and related device - Google Patents

Data transmission method and related device Download PDF

Info

Publication number
CN114040510B
CN114040510B CN202111349909.4A CN202111349909A CN114040510B CN 114040510 B CN114040510 B CN 114040510B CN 202111349909 A CN202111349909 A CN 202111349909A CN 114040510 B CN114040510 B CN 114040510B
Authority
CN
China
Prior art keywords
data
priority
transmitted
logic channel
sent
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.)
Active
Application number
CN202111349909.4A
Other languages
Chinese (zh)
Other versions
CN114040510A (en
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.)
Unisoc Chongqing Technology Co Ltd
Original Assignee
Unisoc Chongqing 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 Unisoc Chongqing Technology Co Ltd filed Critical Unisoc Chongqing Technology Co Ltd
Priority to CN202111349909.4A priority Critical patent/CN114040510B/en
Publication of CN114040510A publication Critical patent/CN114040510A/en
Application granted granted Critical
Publication of CN114040510B publication Critical patent/CN114040510B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/56Allocation or scheduling criteria for wireless resources based on priority criteria
    • H04W72/566Allocation or scheduling criteria for wireless resources based on priority criteria of the information or information source or recipient
    • H04W72/569Allocation or scheduling criteria for wireless resources based on priority criteria of the information or information source or recipient of the traffic information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Abstract

The embodiment of the application discloses a data transmission method and a related device. Wherein the method comprises the following steps: the electronic equipment transmits the data to be transmitted to a logic channel of the priority according to the priority of the data to be transmitted; when triggering an air interface data packet transmission event, the electronic equipment selects data to be transmitted of a logic channel with the highest priority from all logic channels with the highest priority to perform packet transmission. Therefore, the electronic device can send the data to be sent of the logic channel with the highest priority to the priority packet, so as to meet different service quality requirements.

Description

Data transmission method and related device
Technical Field
The present application relates to the field of bluetooth communications technologies, and in particular, to a data transmission method and a related device.
Background
Currently, in the bluetooth standard protocol, the bluetooth protocol stack includes two parts, namely a bluetooth HOST and a bluetooth control layer Controller, and Data between the bluetooth HOST and the bluetooth control layer is classified into three types, namely asynchronous connectionless (Asynchronous connectionless, ACL) Data, synchronous Data (SD) Data, and protocol Data of a network layer. When the bluetooth technology is used for transmitting service data, each type of data can contain control data and user data of the same service or data of different services, however, the urgency of scheduled transmission of the control data, the user data and the data of different services may be different, so that the bluetooth control layer can only process the data according to the principle of first arrival and first processing, and then certain data with high urgency may not be processed in time, resulting in service blocking or connection link disconnection.
Disclosure of Invention
The embodiment of the application provides a data transmission method and a related device, which can process service data with different priorities on logic channels with different priorities.
In a first aspect, an embodiment of the present application provides a data transmission method, where the method includes: the electronic equipment transmits the data to be transmitted to a logic channel of the priority according to the priority of the data to be transmitted; when triggering an air interface data packet transmission event, the electronic equipment selects data to be transmitted of a logic channel with the highest priority from all logic channels with the highest priority to perform packet transmission.
Therefore, when the electronic equipment triggers an air interface data packet transmission event, the electronic equipment selects data to be transmitted of the logic channel with the highest priority from all the logic channels with the highest priority to carry out packet transmission, so that the problem that the data with the high priority is not processed in time is avoided, and the data with the high priority can be transmitted preferentially.
In an optional implementation manner, the electronic device determines the priority of the data to be sent according to the service type, the service priority and the data type to which the data to be sent belongs. Optionally, the service type to which the data to be sent belongs may be an audio/video service type, a file transmission service type, a web browsing service type, etc.; the service priority to which the data to be transmitted belongs may be the highest priority, may also be the next highest priority, and so on; the data type to which the data to be transmitted belongs may be control data, user data, or the like.
In another alternative embodiment, before the electronic device transmits the data to be sent to the logical channel of the priority, the method further includes: the electronic equipment creates a logic channel of the priority according to the logic channel number, the priority and the storage space size of the service to which the data to be transmitted belong. It can be seen that this embodiment can create a logical channel corresponding to the priority.
In an optional implementation manner, before the electronic device selects data to be sent of a logical channel with highest priority from all the logical channels with highest priority to perform packet sending, the method further includes:
the electronic equipment acquires the data to be sent from the logic channel with the priority, and stores the data to be sent into a storage space of the logic channel with the priority. It can be seen that this embodiment is advantageous for storing the data to be transmitted of lower priority in the storage space of the logical channel of lower priority, while transmitting the data to be transmitted of the logical channel of higher priority.
In another optional implementation manner, after the electronic device selects the data to be sent of the logical channel with the highest priority from all the logical channels with the highest priority to perform packet sending, the method further includes:
and when the electronic equipment receives the data sent by the group of packets and is confirmed by the opposite terminal, the electronic equipment clears the data sent by the group of packets from the storage space of the selected logic channel and updates the size of the storage space of the selected logic channel.
It can be seen that the embodiment can timely clear and update the storage space of the logic channel, so that the data to be sent of the priority of the logic channel can be stored.
In yet another alternative embodiment, the electronic device includes a bluetooth control layer and a bluetooth host,
the Bluetooth host is used for transmitting the data to be transmitted to a logic channel with the corresponding priority according to the priority of the data to be transmitted; and the Bluetooth control layer is also used for selecting the data to be transmitted of the logic channel with the highest priority from all the logic channels with the highest priority to carry out packet transmission.
In yet another alternative embodiment, the bluetooth host is further configured to determine the priority of the data to be sent according to the service type, the service priority, and the data type to which the data to be sent belongs.
In yet another optional implementation manner, the bluetooth host is further configured to request, to the bluetooth control layer, to create a logical channel of the priority according to a logical channel number, the priority, and the storage space size of a service to which the data to be sent belongs; the Bluetooth control layer is also used for creating the logic channel of the priority and transmitting the creation result to the Bluetooth host so that the Bluetooth host executes the operation of transmitting the data to be transmitted to the logic channel of the corresponding priority according to the priority of the data to be transmitted.
In yet another alternative embodiment, the bluetooth control layer is further configured to obtain the data to be sent from the logical channel with the priority before selecting the data to be sent of the logical channel with the highest priority from all the logical channels with the priority for packet sending, and store the data to be sent in a storage space of the logical channel with the priority.
In yet another alternative embodiment, the bluetooth control layer is further configured to select, from all the logical channels with priority, data to be transmitted of a logical channel with highest priority for packet transmission, and clear, when the data received from the packet transmission is confirmed by the peer, the data from the packet transmission from the storage space of the selected logical channel; the bluetooth control layer is further configured to notify the bluetooth host of the size of the storage space of the selected logical channel.
In a second aspect, an embodiment of the present application provides a data transmission apparatus, including:
a processing unit for determining the priority of the data to be transmitted;
the processing unit is further used for transmitting the data to be transmitted to a logic channel of the priority according to the priority of the data to be transmitted;
and the communication unit is also used for selecting the data to be transmitted of the logic channel with the highest priority from all the logic channels with the highest priority to carry out packet transmission when the air interface data packet transmission event is triggered.
In addition, in this aspect, other optional embodiments of the part of the transmission device may be referred to in the relevant content of the first aspect, which is not described in detail herein.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a memory for storing a computer program;
a processor invoking a computer program for performing the operations of:
transmitting the data to be transmitted to a logic channel of the priority according to the priority of the data to be transmitted;
when an air interface data packet transmission event is triggered, selecting data to be transmitted of a logic channel with the highest priority from all logic channels with the highest priority to perform packet transmission.
In addition, in this aspect, other optional embodiments of the electronic device may be referred to in the relevant content of the first aspect, which is not described in detail herein.
In a fourth aspect, an embodiment of the present application provides a chip for: determining the priority of data to be sent; the data transmission module is also used for transmitting the data to be transmitted to a logic channel of the priority according to the priority of the data to be transmitted; and the method is also used for selecting the data to be transmitted of the logic channel with the highest priority from all the logic channels with the highest priority to carry out packet transmission when the air interface data packet transmission event is triggered.
In addition, in this aspect, other optional embodiments of the chip may be referred to in the related content of the first aspect, which is not described in detail herein.
In a fifth aspect, an embodiment of the present application provides a module device, where the module device includes a processor and a communication interface, where the processor is connected to the communication interface, the communication interface is used to send and receive signals, and the processor is used to: transmitting the data to be transmitted to a logic channel of the priority according to the priority of the data to be transmitted; when an air interface data packet transmission event is triggered, selecting data to be transmitted of a logic channel with the highest priority from the logic channels with the highest priority to perform packet transmission.
In addition, in this aspect, other optional embodiments of the module device may be referred to in the related content of the first aspect, which is not described in detail herein.
In a sixth aspect, an embodiment of the present application provides a computer readable storage medium storing computer software instructions for use by the terminal, including a program for executing the method according to any one of the first aspects.
Drawings
Fig. 1 is a schematic system architecture diagram of a bluetooth communication system according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a data transmission method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a data transmission device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of another data transmission device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described below with reference to the accompanying drawings.
The bluetooth communication system according to the embodiment of the present application is shown in fig. 1, and the bluetooth communication system may include, but is not limited to, an electronic device 101 and an electronic device 102 shown in fig. 1, and the number and the form of the devices shown in fig. 1 are used as examples and not to limit the embodiment of the present application, and may include one electronic device 101 and one electronic device 102 in practical application. As shown in fig. 1, an electronic device 101 may communicate with an electronic device 102 using bluetooth technology. Embodiments of the present application may also include other devices in communication with electronic device 101 or electronic device 102, and embodiments of the present application are not limited.
In the embodiment of the present application, the electronic device 101 and the electronic device 102 may have the capability of transmitting data by using bluetooth technology. The electronic devices 101 and 102 may also be referred to as terminals, and may refer to various forms of User Equipment (UE), access terminals, subscriber units, subscriber stations, mobile Stations (MS), remote stations, remote terminals, mobile devices, user terminals, wireless communication devices, user agents, or user equipment. The electronic device may also be a cellular telephone, a cordless telephone, a session initiation protocol (session initiation protocol, SIP) phone, a wireless local loop (wireless local loop, WLL) station, a personal digital assistant (personal digital assistant, PDA), a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, an in-vehicle device, a wearable device, an electronic device in a fifth generation mobile communication (5th generation mobile communication,5G) network or an electronic device in a future evolved public land mobile communication network (public land mobile network, PLMN), etc., as embodiments of the present application are not limited in this regard.
Currently, in the bluetooth standard protocol, the bluetooth protocol stack includes two parts, namely a bluetooth host and a bluetooth control layer, and data between the bluetooth host and the bluetooth control layer is classified into ACL data, SD data and protocol data of a network layer. When the bluetooth technology is used for transmitting service data, each type of data can contain control data and user data of the same service or data of different services, however, the urgency of scheduled transmission of the control data, the user data and the data of different services may be different, so that the bluetooth control layer can only process the data according to the principle of first arrival and first processing, and then certain data with high urgency may not be processed in time, resulting in service blocking or connection link disconnection.
The embodiment of the application provides a data transmission method 200. According to the method, the electronic equipment transmits data to be transmitted to a logic channel of the priority according to the priority of the data to be transmitted; when triggering an air interface data packet transmission event, the electronic equipment selects data to be transmitted of a logic channel with the highest priority from all logic channels with the highest priority to carry out packet transmission, so that the data with the high priority can be transmitted preferentially, and the problem that certain data with high urgency cannot be processed in time, and service is blocked or a connecting link is disconnected is avoided.
Referring to fig. 2, fig. 2 is a flowchart of a data transmission method 200 according to an embodiment of the application, wherein the data transmission method 200 includes, but is not limited to, the following steps:
s201: and the electronic equipment transmits the data to be transmitted to a logic channel of the priority according to the priority of the data to be transmitted.
It is understood that the priority of the data to be transmitted may be divided according to different scheduling requirements for the data to be transmitted, for example, the priority may be divided into a plurality of levels, for example, four levels, according to the different scheduling requirements. The first level may be the highest priority or the lowest priority, which is not limited by the present application.
For example, assuming that the priority of the data to be transmitted is the highest priority, the electronic device transmits the data to be transmitted to the logical channel with the highest priority.
In an alternative embodiment, the priority may be determined according to the service type, service priority, and data type to which the data to be transmitted belongs. The service type may be an audio/video service type, a file transmission service type, a web browsing service type, etc.; the service priority to which the data to be transmitted belongs may be the highest priority, may also be the next highest priority, and so on; the data type to which the data to be transmitted belongs may be control data, user data, or the like.
For example, assuming that the service type to which the data to be transmitted belongs is a voice video service type, when the service priority is the highest priority and the data type is control data, the electronic device may determine that the priority of the data to be transmitted is the highest priority; assuming that the service type to which the data to be transmitted belongs is a voice video service type, when the service priority is the highest priority and the data type is user data, the electronic device can determine that the priority of the data to be transmitted is the next highest priority; assuming that the service type to which the data to be transmitted belongs is a file transfer service type, the priority of the service is the lowest priority, and the data type is user data, the electronic device may determine that the priority of the data to be transmitted is the lowest priority.
In an alternative embodiment, before transmitting the data to be sent to the logic channel with the priority, the logic channel with the priority is created according to the logic channel number, the priority and the storage space size of the service to which the data to be sent belongs.
Alternatively, the logical channel number of the service to which the data to be transmitted belongs may be an index value of the logical channel, where the index value does not represent a level of priority of the logical channel. For example, the logical channel number may be number 1, but does not represent number 1 as the highest priority. For example, assuming that there are three logical channels, respectively corresponding to numbers 1,2, and 3, and the created logical channel with the priority is numbered 4, the electronic device may use the logical channel with the number 4 as the logical channel with the highest priority, or use the logical channel with the number 2 as the logical channel with the highest priority; the priority of the service to which the data to be transmitted belongs refers to the priority level of the data to be transmitted. E.g., highest priority level, next highest priority level, etc. The size of the storage space of the service to which the data to be transmitted belongs refers to the storage space occupied by the data to be transmitted, and the storage space may be represented by a minimum unit (Byte or bit) of the data to be transmitted, for example, may be 12 bytes.
Optionally, when the storage space of the logical channel of the priority is larger than the storage space of the service to which the data to be sent belongs, the electronic device creates the logical channel of the priority according to the logical channel number, the priority and the storage space of the service to which the data to be sent belongs.
Optionally, when the storage space of the priority logical channel is smaller than the storage space of the service to which the data to be sent belongs, the electronic device selects the logical channel corresponding to the highest priority level from the priority logical channels as the logical channel corresponding to the data to be sent.
The method comprises the steps of dividing the priority of the data to be sent, and transmitting the data to be sent to a logic channel with the priority according to the priority of the data to be sent, so that the problem that the data with high priority is not processed in time can be avoided, the data with high priority can be transmitted preferentially, and the electronic equipment selects the data to be sent of the logic channel with the highest priority from all the logic channels with the priority to carry out packet transmission when an air interface data packet transmission event is triggered.
S202: and when the electronic equipment triggers an air interface data packet transmission event, selecting data to be transmitted of a logic channel with the highest priority from all logic channels with the highest priority to perform packet transmission.
It can be understood that when the electronic device triggers an air interface packet transmission event, data to be transmitted of a logical channel with the highest priority needs to be selected from all the logical channels with the highest priority to perform packet transmission.
Optionally, the packet transmission may be performed after adding a packet header such as a control character after combining the data to be transmitted. Optionally, the electronic device may trigger an air interface packet transmission event when receiving the air interface resource configuration information; or, the electronic device may trigger an air interface packet transmission event when receiving a scheduling demand instruction of the network device.
In an optional implementation manner, before the electronic device selects data to be sent of a logical channel with highest priority from all the logical channels with highest priority to perform packet sending, the method further includes: the electronic equipment acquires the data to be sent from the logic channel with the priority, and stores the data to be sent into a storage space of the logic channel with the priority.
It can be seen that this embodiment is advantageous for storing the data to be transmitted of lower priority in the storage space of the logical channel of lower priority, while transmitting the data to be transmitted of the logical channel of higher priority.
In an optional implementation manner, after the electronic device selects data to be sent of a logical channel with highest priority from all the logical channels with highest priority to perform packet sending, the method further includes: and when the electronic equipment receives the data sent by the group of packets and is confirmed by the opposite terminal, the electronic equipment clears the data sent by the group of packets from the storage space of the selected logic channel and updates the size of the storage space of the selected logic channel.
It can be seen that the embodiment can timely clear and update the storage space of the logic channel, so that the data to be sent of the priority of the logic channel can be stored.
In the embodiment of the application, the electronic equipment transmits the data to be transmitted to a logic channel of the priority according to the priority of the data to be transmitted; when triggering an air interface data packet transmission event, the electronic equipment selects data to be transmitted of a logic channel with the highest priority from all logic channels with the highest priority to perform packet transmission. That is, the electronic device divides the data to be sent with different priorities, and transmits the data to be sent with different priorities to the logic channels corresponding to the priorities, so that the problem that certain data with high urgency cannot be processed in time, and service is blocked or a connection link is disconnected is avoided.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a data transmission device according to an embodiment of the application. A data transmission apparatus as shown in fig. 3, the data transmission apparatus may include:
the bluetooth host 301 is configured to transmit data to be sent to a logical channel of a corresponding priority according to the priority of the data to be sent.
The bluetooth control layer 302 is further configured to select, from all the logical channels with priority, data to be transmitted of the logical channel with highest priority to perform packet transmission.
In an alternative embodiment, the bluetooth host may determine the priority of the data to be sent according to the service type, the service priority, and the data type to which the data to be sent belongs.
In an optional implementation manner, the bluetooth host is further configured to send a request for creating the logical channel of the priority to the bluetooth control layer according to the logical channel number, the priority and the storage space size of the service to which the data to be sent belongs, where the request for creating the logical channel of the priority includes the logical channel number, the priority and the storage space size of the service to which the data to be sent belongs; the Bluetooth control layer is also used for creating the logic channel of the priority and transmitting the creation result to the Bluetooth host, so that the Bluetooth host executes the operation of transmitting the data to be transmitted to the logic channel of the corresponding priority according to the priority of the data to be transmitted.
In an optional embodiment, the bluetooth control layer is further configured to obtain, from the logical channel with the priority, data to be sent of the logical channel with the highest priority, and store the data to be sent in a storage space of the logical channel with the priority, before selecting the data to be sent of the logical channel with the highest priority from all the logical channels for packet transmission. Optionally, the bluetooth control layer is further configured to store signaling data between bluetooth control layers that is created without a bluetooth host request.
In another alternative embodiment, the bluetooth control layer is further configured to, after selecting, from all the logical channels with priority, data to be transmitted of the logical channel with highest priority for packet transmission, clear, when receiving the data sent by the packet and acknowledged by the peer, the data sent by the packet from the storage space of the selected logical channel, and update the size of the storage space of the selected logical channel; the bluetooth control layer is further configured to notify the bluetooth host of the updated size of the storage space of the selected logical channel.
Optionally, the relevant content of the data transmission device shown in fig. 3 may also be referred to the above method embodiment, which is not described in detail here.
In the embodiment of the application, the electronic equipment comprises a Bluetooth control layer and a Bluetooth host, wherein the Bluetooth host is used for transmitting data to be transmitted to a logic channel corresponding to the priority according to the priority of the data to be transmitted; and the Bluetooth control layer is also used for selecting the data to be transmitted of the logic channel with the highest priority from all the logic channels with the highest priority to carry out packet transmission. Therefore, the electronic device can transmit the data to be transmitted with different priorities to the logic channels corresponding to the priorities, so that the problem that certain data which need to be scheduled first cannot be processed in time, and service is blocked or a connecting link is disconnected is avoided.
Referring to fig. 4, fig. 4 is a schematic structural diagram of another data transmission device according to an embodiment of the present application. The apparatus 400 may include:
a processing unit 401, configured to determine a priority of data to be transmitted;
the processing unit 401 is further configured to transmit the data to be sent to a logical channel of the priority according to the priority of the data to be sent;
the communication unit 402 is further configured to select, when the air interface packet transmission event is triggered, data to be transmitted of a logical channel with a highest priority from all the logical channels with the highest priority, and perform packet transmission.
In an alternative embodiment, the processing unit 401 determines the priority of the data to be sent according to the service type, the service priority, and the data type to which the data to be sent belongs.
In another alternative embodiment, before the processing unit 401 transmits the data to be sent to the logical channel with the priority, the processing unit 401 creates the logical channel with the priority according to the logical channel number, the priority, and the storage space size of the service to which the data to be sent belongs.
In an alternative embodiment, before the communication unit 402 selects, from all the logical channels with the highest priority, data to be sent of the logical channels with the highest priority to perform packet transmission, the processing unit 401 obtains the data to be sent from the logical channels with the highest priority, and stores the data to be sent in a storage space of the logical channels with the highest priority.
In another alternative embodiment, after the communication unit 402 selects, from all the logical channels with the highest priority, data to be sent of the logical channels with the highest priority to perform packet sending, the processing unit 401 clears the data sent by the packet from the storage space of the selected logical channel when receiving that the data sent by the packet is confirmed by the opposite terminal, and updates the size of the storage space of the selected logical channel.
The embodiments of the present application and the embodiments of the above method are based on the same concept, and the technical effects brought by the embodiments of the present application are the same, and the specific principles are described with reference to the embodiments of the above method, and are not repeated herein.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a terminal device 500 according to an embodiment of the present application. The terminal device 500 described in the embodiment of the present application includes: the processor 501, the memory 502, the processor 501 and the memory 502 are connected by one or more communication buses.
The processor 501 may be a central processing unit (Central Processing Unit, CPU) which may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The processor 501 is configured to support the electronic device to perform the corresponding functions of the terminal device in the method described in fig. 2 or fig. 3.
The memory 502 may include read only memory and random access memory and provides computer programs and data to the processor 501. A portion of memory 502 may also include non-volatile random access memory. In an alternative embodiment, the processor 501, when calling the computer program, is configured to perform:
determining the priority of data to be sent; transmitting the data to be transmitted to a logic channel of the priority according to the priority of the data to be transmitted; when an air interface data packet transmission event is triggered, selecting data to be transmitted of a logic channel with the highest priority from all logic channels with the highest priority to perform packet transmission.
The embodiments of the present application and the embodiments of the above method are based on the same concept, and the technical effects brought by the embodiments of the present application are the same, and the specific principles are described with reference to the embodiments of the above method, and are not repeated herein.
The embodiment of the application also provides a chip which is used for determining the priority of the data to be sent; the chip is further configured to transmit the data to be sent to a logical channel of the priority according to the priority of the data to be sent; the chip is further configured to select, when an air interface packet transmission event is triggered, data to be transmitted of a logical channel with a highest priority from all the logical channels with the highest priority, and perform packet transmission.
Other implementations of the chip may be found in the context of the method embodiments described above. And will not be described in detail herein.
The embodiments of the present application and the embodiments of the above method are based on the same concept, and the technical effects brought by the embodiments of the present application are the same, and the specific principles are described with reference to the embodiments of the above method, and are not repeated herein.
The embodiment of the application provides a module device, which comprises a processor and a communication interface, wherein the processor is connected with the communication interface, the communication interface is used for receiving and transmitting signals, and the processor is used for:
transmitting the data to be transmitted to a logic channel of the priority according to the priority of the data to be transmitted;
when an air interface data packet transmission event is triggered, selecting data to be transmitted of a logic channel with the highest priority from all logic channels with the highest priority to perform packet transmission.
Other implementations of the modular device can be found in the context of the method embodiments described above. And will not be described in detail herein.
The embodiments of the present application and the embodiments of the above method are based on the same concept, and the technical effects brought by the embodiments of the present application are the same, and the specific principles are described with reference to the embodiments of the above method, and are not repeated herein.
The embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, where the computer program, when executed by a processor, may be used to implement the partial bandwidth switching method described in the embodiment corresponding to fig. 2 or fig. 3 of the embodiment of the present application, which is not described herein.
The computer readable storage medium may be an internal storage unit of the terminal according to any of the foregoing embodiments, for example, a hard disk or a memory of the device. The computer readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the device. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the electronic device. The computer-readable storage medium is used to store the computer program and other programs and data required by the electronic device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in the embodiments may be accomplished by computer programs to instruct related hardware, where the programs may be stored on a readable storage medium, and where the programs, when executed, may include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The foregoing disclosure is illustrative of the present application and is not to be construed as limiting the scope of the application, which is defined by the appended claims.

Claims (13)

1. A data transmission method applied to an electronic device for data transmission using bluetooth technology, the method comprising:
when the storage space size of the logic channel of the priority is larger than the storage space size of the service to which the data to be transmitted belongs, the electronic equipment sends a logic channel request for creating the priority to a Bluetooth control layer through a Bluetooth host according to the logic channel number, the priority and the storage space size of the service to which the data to be transmitted belongs;
the electronic equipment establishes a logic channel with the priority through the Bluetooth control layer and transmits the establishment result to the Bluetooth host;
the electronic equipment transmits the data to be transmitted to a logic channel of the priority according to the priority of the data to be transmitted through the Bluetooth host;
and when the Bluetooth control layer triggers an air interface data packet transmission event, the electronic equipment selects data to be transmitted of a logic channel with the highest priority from all logic channels with the highest priority to perform packet transmission.
2. The method according to claim 1, wherein the method further comprises:
and the electronic equipment determines the priority of the data to be sent according to the service type, the service priority and the data type of the data to be sent.
3. The method according to claim 1, wherein before the electronic device selects, through the bluetooth control layer, data to be transmitted of a logical channel with a highest priority from all the logical channels for packet transmission, the method further comprises:
and the electronic equipment acquires the data to be sent from the logic channel with the priority, and stores the data to be sent into a storage space of the logic channel with the priority.
4. The method according to claim 1, wherein after the electronic device selects, through the bluetooth control layer, data to be transmitted of a logical channel with a highest priority from all the logical channels to perform packet transmission, further comprising:
and when the electronic equipment receives the data sent by the group package and is confirmed by the opposite terminal, the electronic equipment clears the data sent by the group package from the storage space of the selected logic channel and updates the size of the storage space of the selected logic channel.
5. An electronic device, characterized in that the electronic device comprises a Bluetooth control layer and a Bluetooth host,
the bluetooth host is configured to send a request for creating a logical channel of a priority to the bluetooth control layer according to a logical channel number, the priority, and the size of the storage space of the service to which the data to be sent belongs when the size of the storage space of the logical channel of the priority is larger than the size of the storage space of the service to which the data to be sent belongs;
the Bluetooth control layer is used for creating the logic channel with the priority and transmitting the creation result to the Bluetooth host;
the Bluetooth host is further used for transmitting the data to be transmitted to a logic channel with the corresponding priority according to the priority of the data to be transmitted;
and the Bluetooth control layer is also used for selecting the data to be transmitted of the logic channel with the highest priority from all the logic channels with the highest priority to carry out packet transmission.
6. The electronic device of claim 5, wherein the electronic device comprises a memory device,
the Bluetooth host is further configured to determine the priority of the data to be sent according to the service type, the service priority and the data type to which the data to be sent belongs.
7. The electronic device of claim 5, wherein the electronic device comprises a memory device,
the Bluetooth control layer is further used for acquiring the data to be sent from the logic channels with the priority before selecting the data to be sent of the logic channel with the highest priority from all the logic channels with the priority for packet transmission, and storing the data to be sent into a storage space of the logic channels with the priority.
8. The electronic device of claim 7, wherein the electronic device comprises a memory device,
the Bluetooth control layer is further used for selecting data to be transmitted of a logic channel with highest priority from all logic channels with priority to carry out packet transmission, and clearing the data transmitted by the packet from a storage space of the selected logic channel when receiving the data transmitted by the packet to be confirmed by an opposite terminal;
the bluetooth control layer is further configured to notify the bluetooth host of the size of the storage space of the selected logical channel.
9. A data transmission apparatus, the apparatus comprising:
the processing unit is used for sending a request for creating the logic channel of the priority to the Bluetooth control layer through the Bluetooth host according to the logic channel number, the priority and the storage space of the service to which the data to be sent belongs when the storage space of the logic channel of the priority is larger than the storage space of the service to which the data to be sent belongs;
the processing unit is also used for creating the logic channel with the priority through the Bluetooth control layer and transmitting the creation result to the Bluetooth host;
the processing unit is also used for determining the priority of the data to be sent;
the processing unit is further used for transmitting the data to be transmitted to a logic channel of the priority level according to the priority level of the data to be transmitted through the Bluetooth host;
and the communication unit is also used for selecting data to be transmitted of the logic channel with the highest priority from all logic channels with the priority to carry out packet transmission when the Bluetooth control layer triggers an air interface data packet transmission event.
10. An electronic device comprising a processor and a memory, the processor and the memory being interconnected, wherein the memory is adapted to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1-4.
11. A chip is characterized in that,
the chip is used for sending a request for creating the logic channel of the priority to the Bluetooth control layer through the Bluetooth host according to the logic channel number, the priority and the storage space of the service to which the data to be sent belongs when the storage space of the logic channel of the priority is larger than the storage space of the service to which the data to be sent belongs;
the chip is also used for creating the logic channel of the priority through the Bluetooth control layer and transmitting the creation result to the Bluetooth host;
the chip is also used for determining the priority of the data to be sent;
the chip is further used for transmitting the data to be transmitted to a logic channel of the priority level according to the priority level of the data to be transmitted through the Bluetooth host;
and the chip is also used for selecting data to be transmitted of a logic channel with highest priority from all logic channels with priority to carry out packet transmission when the Bluetooth control layer triggers an air interface data packet transmission event.
12. A module device, characterized in that, the module device includes a processor and a communication interface, the processor with the communication interface links to each other, the communication interface is used for receiving and dispatching the signal, the processor is used for:
when the storage space size of a logic channel of a priority is larger than the storage space size of a service to which data to be transmitted belongs, sending a logic channel request for creating the priority to a Bluetooth control layer through a Bluetooth host according to the logic channel number, the priority and the storage space size of the service to which the data to be transmitted belongs;
creating a logic channel with the priority through the Bluetooth control layer, and transmitting a creation result to the Bluetooth host;
transmitting the data to be transmitted to a logic channel of the priority level according to the priority level of the data to be transmitted through the Bluetooth host;
and when triggering an air interface data packet transmission event, selecting data to be transmitted of a logic channel with the highest priority from all logic channels with the highest priority by the Bluetooth control layer to perform packet transmission.
13. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of any of claims 1 to 4.
CN202111349909.4A 2021-11-15 2021-11-15 Data transmission method and related device Active CN114040510B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111349909.4A CN114040510B (en) 2021-11-15 2021-11-15 Data transmission method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111349909.4A CN114040510B (en) 2021-11-15 2021-11-15 Data transmission method and related device

Publications (2)

Publication Number Publication Date
CN114040510A CN114040510A (en) 2022-02-11
CN114040510B true CN114040510B (en) 2023-12-05

Family

ID=80144455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111349909.4A Active CN114040510B (en) 2021-11-15 2021-11-15 Data transmission method and related device

Country Status (1)

Country Link
CN (1) CN114040510B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115134060A (en) * 2022-06-20 2022-09-30 京东科技控股股份有限公司 Data transmission method and device, electronic equipment and computer readable medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1689260A (en) * 2002-09-24 2005-10-26 皇家飞利浦电子股份有限公司 Data transmission method and system for multiple HARQ processes
CN1728680A (en) * 2004-07-31 2006-02-01 华为技术有限公司 Method for raising performance of data transmission according to transmission control protocol in mobile communication network
CN101291279A (en) * 2007-04-18 2008-10-22 华为技术有限公司 Service data scheduling method and device in high-speed downlink packet access
CN107005461A (en) * 2014-12-08 2017-08-01 华为技术有限公司 A kind of data transmission method and equipment
CN107926065A (en) * 2015-08-14 2018-04-17 华为技术有限公司 Data transmission method, apparatus and system of a kind of equipment to equipment D2D
CN108124284A (en) * 2017-12-06 2018-06-05 青岛真时科技有限公司 A kind of Bluetooth data transfer method and apparatus
CN108811154A (en) * 2017-05-05 2018-11-13 华为技术有限公司 Data pack transmission method and equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100518139C (en) * 2005-05-17 2009-07-22 中兴通讯股份有限公司 Priority processing method for medium access control layer of third generation mobile communication system
CN100431362C (en) * 2005-11-23 2008-11-05 大唐移动通信设备有限公司 Packet service scheduling method in mobile communication system
CN109451872B (en) * 2017-08-18 2023-05-26 北京小米移动软件有限公司 Uplink resource allocation method, device and terminal
CN112367646B (en) * 2020-09-22 2023-06-23 粒恩医疗科技(深圳)有限公司 Multi-data secure transmission method and system based on Bluetooth and cloud platform
CN112090065B (en) * 2020-09-23 2023-09-19 努比亚技术有限公司 Network delay regulation and control method, equipment and computer readable storage medium
CN112333114B (en) * 2020-11-13 2022-11-04 Oppo广东移动通信有限公司 Data transmission method, device, storage medium, terminal and network access point equipment
CN113498049B (en) * 2021-04-28 2023-11-14 广州芯之联科技有限公司 Bluetooth data transmission event scheduling method and device and Bluetooth equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1689260A (en) * 2002-09-24 2005-10-26 皇家飞利浦电子股份有限公司 Data transmission method and system for multiple HARQ processes
CN1728680A (en) * 2004-07-31 2006-02-01 华为技术有限公司 Method for raising performance of data transmission according to transmission control protocol in mobile communication network
CN101291279A (en) * 2007-04-18 2008-10-22 华为技术有限公司 Service data scheduling method and device in high-speed downlink packet access
CN107005461A (en) * 2014-12-08 2017-08-01 华为技术有限公司 A kind of data transmission method and equipment
CN107926065A (en) * 2015-08-14 2018-04-17 华为技术有限公司 Data transmission method, apparatus and system of a kind of equipment to equipment D2D
CN108811154A (en) * 2017-05-05 2018-11-13 华为技术有限公司 Data pack transmission method and equipment
CN108124284A (en) * 2017-12-06 2018-06-05 青岛真时科技有限公司 A kind of Bluetooth data transfer method and apparatus

Also Published As

Publication number Publication date
CN114040510A (en) 2022-02-11

Similar Documents

Publication Publication Date Title
CN1695331B (en) Method and apparatus for managing the usage of data link resources
US7751420B2 (en) Network switching method and apparatus, wireless access apparatus, and wireless network
AU2009225899B2 (en) Dynamic scheduling overwriting of semi-persistent allocation in an uplink
TWI396398B (en) Method and apparatus of transmission time interval bundling management
EP2086185A1 (en) Method and apparatus for allocation of an uplink resource
CN103442391A (en) Data transmission method and system as well as user terminal
CN110944039B (en) Micro-service discovery method, system and device for 5G access network
CN101233771A (en) Method for selecting an access channel or a traffic channel for data transmission
CN109428694A (en) A kind of method and apparatus of media access control layer multiplexing
CN114040510B (en) Data transmission method and related device
JP5086176B2 (en) Mobile communication terminal and wireless communication method
CN112751775A (en) Data packet processing method and related device
WO2018170877A1 (en) Information sending method and apparatus, terminal, access network device and system
US11064503B2 (en) Method and apparatus for transmitting control information
JP2000350252A (en) Service channel assignment method
CN112770107B (en) Modification method of load bearing and related device
CN111132223A (en) Data packet transmission method and communication equipment
CN114846774B (en) Communication method and device
WO2022133918A1 (en) Decoding failure processing method, apparatus and system
CN107493160A (en) A kind of method, the method for work of base station and base station for transmitting information
CN115884312A (en) Communication method and related device
CN114765874A (en) Uplink channel processing method and device
CN113727368A (en) Communication method and device
JP2023523360A (en) Data transmission method, device and system
CN101370017A (en) Method and device for setting headers in a wireless communications system

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
GR01 Patent grant
GR01 Patent grant