CN114040510A - Data transmission method and related device - Google Patents

Data transmission method and related device Download PDF

Info

Publication number
CN114040510A
CN114040510A CN202111349909.4A CN202111349909A CN114040510A CN 114040510 A CN114040510 A CN 114040510A CN 202111349909 A CN202111349909 A CN 202111349909A CN 114040510 A CN114040510 A CN 114040510A
Authority
CN
China
Prior art keywords
data
priority
transmitted
sent
logical channel
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.)
Granted
Application number
CN202111349909.4A
Other languages
Chinese (zh)
Other versions
CN114040510B (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

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 the electronic equipment triggers an air interface data packet transmission event, the to-be-transmitted data of the logic channel with the highest priority is selected from all the logic channels with the priorities to be packaged and transmitted. Therefore, the electronic device can perform priority packet transmission on the data to be transmitted of the logical channel with the highest priority, 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 communication technologies, and in particular, to a data transmission method and a related apparatus.
Background
Currently, in the bluetooth standard protocol, the bluetooth protocol stack includes two parts, i.e., a bluetooth HOST and a bluetooth control layer Controller, and Data between the bluetooth HOST and the bluetooth control layer is divided into three types, i.e., Asynchronous Connection (ACL) Data, Synchronous Data (SD) Data, and protocol Data of a network layer. When the bluetooth technology is used for service data transmission, each type of data may include control data and user data of the same service, or may include data of different services, however, the urgency of scheduling transmission of the control data, the user data, and the data of different services may be different, so that the bluetooth control layer may only process the data according to the principle of processing first arrival and first arrival, which may result in some data with high urgency not being processed in time, resulting in a traffic jam or a connection link being disconnected.
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 logical 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 the electronic equipment triggers an air interface data packet transmission event, the to-be-transmitted data of the logic channel with the highest priority is selected from all the logic channels with the priorities to be packaged and transmitted.
Therefore, when the electronic equipment triggers an air interface data packet transmission event, the electronic equipment selects the data to be transmitted of the logical channel with the highest priority from all the logical channels of the priorities to perform 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, and the like; the service priority to which the data to be sent belongs may be the highest priority, or may 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, and the like.
In another optional implementation manner, before the electronic device transmits the data to be transmitted to the logical channel of the priority, the method further includes: and the electronic equipment creates a logical channel of 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. Therefore, the embodiment can create the logic channel corresponding to the priority.
In an optional embodiment, before the electronic device selects the to-be-transmitted data of the logical channel with the highest priority from all the logical channels with priorities for packet transmission, the method further includes:
the electronic equipment acquires the data to be sent from the logic channel of the priority level and stores the data to be sent into the storage space of the logic channel of the priority level. Therefore, the embodiment is beneficial to storing the data to be sent with lower priority into the storage space of the logical channel with lower priority, and sending the data to be sent of the logical channel with higher priority.
In another optional implementation manner, after the electronic device selects, from all the priority logical channels, data to be transmitted of a logical channel with the highest priority for packet transmission, the method further includes:
and when the electronic equipment receives that the data sent by the group package is confirmed by the opposite terminal, clearing the data sent by the group package from the storage space of the selected logical channel, and updating the size of the storage space of the selected logical channel.
Therefore, the embodiment can clean and update the storage space of the logical channel in time, so that the data to be sent of the priority of the logical 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 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 logical channel with the highest priority from all the logical channels with the priorities to perform packet transmission.
In another optional implementation manner, 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 another optional implementation manner, the bluetooth host is further configured to request the bluetooth control layer to create a logical channel of the priority according to the logical channel number, the priority, and the size of the storage space of the service to which the data to be sent belongs; the bluetooth control layer is further configured to create a logical channel of the priority, and transmit a creation result to the bluetooth host, so that the bluetooth host executes an operation of transmitting the data to be transmitted to the logical channel of the corresponding priority according to the priority of the data to be transmitted.
In another optional implementation manner, the bluetooth control layer is further configured to, before selecting the to-be-transmitted data of the logical channel with the highest priority from all the logical channels with priorities to perform packet transmission, obtain the to-be-transmitted data from the logical channel with the priority, and store the to-be-transmitted data in the storage space of the logical channel with the priority.
In another optional implementation, the bluetooth control layer is further configured to select, from all the priority logical channels, data to be sent of a logical channel with a highest priority for packet sending, and when receiving that the data sent by the packet is acknowledged by an opposite end, clear the packet of sent data 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, where the data transmission apparatus includes:
the processing unit is used for determining the priority of data to be sent;
the processing unit is further configured to transmit the data to be transmitted to a logical channel of the priority according to the priority of the data to be transmitted;
and the communication unit is further configured to select, from the logical channels of all priorities, the to-be-transmitted data of the logical channel with the highest priority for packet transmission when an air interface data packet transmission event is triggered.
In addition, in this aspect, other alternative embodiments of the partial transmission device can be found in the related contents of the above first aspect, and are not described in detail here.
In a third aspect, an embodiment of the present application provides an electronic device, where the electronic device includes:
a memory for storing a computer program;
a processor invoking a computer program for performing the following operations:
transmitting the data to be transmitted to a logic channel of the priority according to the priority of the data to be transmitted;
and when an air interface data packet transmission event is triggered, selecting the data to be transmitted of the logic channel with the highest priority from all the logic channels with the priorities to perform packet transmission.
In addition, in this aspect, reference may be made to the related contents of the first aspect for other alternative embodiments of the electronic device, and details are not described here.
In a fourth aspect, an embodiment of the present application provides a chip, where the chip is configured to: determining the priority of data to be sent; the data transmission device 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 when an air interface data packet transmission event is triggered, selecting the data to be transmitted of the logic channel with the highest priority from all the logic channels with the priorities to perform packet transmission.
In addition, in this aspect, other alternative embodiments of the chip can be found in the related contents of the above first aspect, and are not described in detail here.
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; and when an air interface data packet transmission event is triggered, selecting the data to be transmitted of the logic channel with the highest priority from the logic channels with the priority to perform packet transmission.
In addition, in this aspect, reference may be made to the related contents of the first aspect for other alternative embodiments of the module device, and details are not described here.
In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium for storing computer software instructions for the terminal, which includes a program for executing the method according to any one of the first aspect.
Drawings
Fig. 1 is a schematic system structure diagram of a bluetooth communication system according to an embodiment of the present application;
fig. 2 is a schematic flowchart 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 apparatus 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
The embodiments of the present application will be described below with reference to the 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, the number and the form of the devices shown in fig. 1 are used for example and do not constitute a limitation to the embodiment of the present application, and a practical application may include one electronic device 101 and one electronic device 102. As shown in fig. 1, the electronic device 101 and the electronic device 102 may communicate using bluetooth technology. The embodiment of the present application may further include other devices that communicate with the electronic device 101 or the electronic device 102, and the embodiment of the present application is not limited.
In the embodiment of the present application, the electronic devices 101 and 102 may have the capability of data transmission 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 devices. The electronic device may also be a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, an electronic device in a fifth generation mobile communication (5G) network or an electronic device in a future evolution public land mobile communication network (PLMN), and the like, which are not limited in this embodiment.
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 divided into three types, namely ACL data, SD data and protocol data of a network layer. When the bluetooth technology is used for service data transmission, each type of data may include control data and user data of the same service, or may include data of different services, however, the urgency of scheduling transmission of the control data, the user data, and the data of different services may be different, so that the bluetooth control layer may only process the data according to the principle of processing first arrival and first arrival, which may result in some data with high urgency not being processed in time, resulting in a traffic jam or a connection link being disconnected.
The embodiment of the application provides a data transmission method 200. In the method, the electronic equipment transmits data to be transmitted to a logic channel of a priority level according to the priority level of the data to be transmitted; when an air interface data packet transmission event is triggered, the electronic equipment selects the data to be transmitted of the logic channel with the highest priority from all the logic channels of the priorities to perform packet transmission, so that the data with the high priority can be preferentially transmitted, and the problem that certain data with high urgency cannot be timely processed to cause traffic jam or disconnection of a connection link is avoided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a data transmission method 200 according to an embodiment of the present application, where 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 level one may be the highest priority or the lowest priority, which is not limited in this 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 a service type to which the data to be sent belongs, a service priority, and a data type. The service type can be an audio and video service type, a file transmission service type, a web browsing service type and the like; the service priority to which the data to be sent belongs may be the highest priority, or may 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, and the like.
For example, assuming that the service type to which the data to be sent belongs is a voice video service type, 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 sent is the highest priority; the electronic equipment can determine that the priority of the data to be sent is the second highest priority when the service type to which the data to be sent belongs is a voice video service type, the service priority is the highest priority and the data type is user data; if the service type to which the data to be sent belongs is a file transmission service type, the service priority is the lowest priority, and the data type is user data, the electronic device may determine that the priority of the data to be sent is the lowest priority.
In an optional implementation manner, before the data to be sent is transmitted to the logical channel of the priority, the logical channel of the priority is created according to the logical channel number, the priority, and the size of the storage space 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 a logical channel, and the index value does not represent the priority level 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, which correspond to numbers 1, 2, and 3, and the created logical channel with the priority number is 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 sent belongs refers to the priority level of the data to be sent. 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) for storing the data, and may be, for example, 12 Byte.
Optionally, when the storage space of the logical channel with 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 with the priority according to the logical channel number, the priority and the size of the storage space of the service to which the data to be sent belongs.
Optionally, when the storage space of the logical channel of the priority 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 logical channels of the priority as the logical channel corresponding to the data to be sent.
The method comprises the steps of dividing the priority of data to be sent, transmitting the data to be sent to a logic channel of the priority according to the priority of the data to be sent, avoiding the problem that the data with high priority is not processed in time, so that the data with high priority can be transmitted preferentially, and further selecting the data to be sent of the logic channel with the highest priority from all the logic channels of the priority to perform packet transmission when an air interface data packet transmission event is triggered by the electronic equipment.
S202: and when the electronic equipment triggers an air interface data packet transmission event, selecting the data to be transmitted of the logic channel with the highest priority from all the logic channels with the priorities to perform packet transmission.
Understandably, when the electronic device triggers an air interface data packet transmission event, the to-be-transmitted data of the logical channel with the highest priority needs to be selected from all the logical channels with priorities to be packaged and transmitted.
Optionally, the group packet transmission may combine data to be transmitted, add a packet header such as a control character, and then transmit the data. Optionally, the electronic device may trigger an air interface data packet transmission event when receiving the air interface resource configuration information; alternatively, the electronic device may trigger an air interface packet transmission event when receiving a scheduling requirement instruction of the network device.
In an optional implementation manner, before the electronic device selects, from all the priority logical channels, data to be transmitted of a logical channel with the highest priority for packet transmission, the method further includes: the electronic equipment acquires the data to be sent from the logical channel of the priority level and stores the data to be sent into the storage space of the logical channel of the priority level.
Therefore, the embodiment is beneficial to storing the data to be sent with lower priority into the storage space of the logical channel with lower priority, and sending the data to be sent of the logical channel with higher priority.
In an optional implementation manner, after the electronic device selects, from all the priority logical channels, data to be transmitted of a logical channel with the highest priority for packet transmission, the method further includes: and when the electronic equipment receives that the data sent by the group package is confirmed by the opposite terminal, clearing the data sent by the group package from the storage space of the selected logical channel, and updating the size of the storage space of the selected logical channel.
Therefore, the embodiment can clean and update the storage space of the logical channel in time, so that the data to be sent of the priority of the logical channel can be stored.
In the embodiment of the application, the electronic device transmits the data to be transmitted to a logic channel of the priority according to the priority of the data to be transmitted; when the electronic equipment triggers an air interface data packet transmission event, the to-be-transmitted data of the logic channel with the highest priority is selected from all the logic channels with the priorities to be packaged and transmitted. That is to say, the electronic device divides the data to be sent by different priorities and transmits the data to be sent by different priorities to the logical channel corresponding to the priorities, so as to avoid the problem that some data with high urgency cannot be processed in time, which causes traffic jam or disconnection of a connection link.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a data transmission device according to an embodiment of the present application. As shown in fig. 3, the data transmission apparatus may include:
the bluetooth host 301 is configured to transmit the data to be sent to a logic channel with a corresponding priority according to the priority of the data to be sent.
The bluetooth control layer 302 is further configured to select the to-be-transmitted data of the logical channel with the highest priority from all the logical channels with priorities for packet transmission.
In an optional implementation manner, 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 logical channel request for creating the priority to the bluetooth control layer according to a logical channel number, a priority, and a storage space size of a 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 further configured to create a logical channel of the priority, and transmit a creation result to the bluetooth host, so that the bluetooth host executes an operation of transmitting the data to be transmitted to the logical channel of the corresponding priority according to the priority of the data to be transmitted.
In an optional implementation manner, the bluetooth control layer is further configured to, before selecting the to-be-transmitted data of the logical channel with the highest priority from all the logical channels with priorities to perform packet transmission, obtain the to-be-transmitted data from the logical channel with the priority, and store the to-be-transmitted data in the storage space of the logical channel with the priority. Optionally, the bluetooth control layer is further configured to store signaling data between the bluetooth control layers that is created without a request from the bluetooth host.
In another optional implementation, the bluetooth control layer is further configured to select, from all the priority logical channels, data to be sent of a logical channel with a highest priority for packet sending, and when it is received that the data sent by the packet is confirmed by an opposite end, clear 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 related contents of the data transmission device shown in fig. 3 can also be referred to the above-mentioned method embodiment, and are not described in detail here.
In the embodiment of the application, the electronic device 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 with 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 logical channel with the highest priority from all the logical channels with the priorities to perform packet transmission. Therefore, the electronic device can transmit the data to be transmitted with different priorities to the logical channel corresponding to the priority, and the problem that certain data needing to be scheduled cannot be processed in time, which causes traffic jam or disconnection of a connection link 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 invention. The apparatus 400 may include:
a processing unit 401, configured to determine a priority of data to be sent;
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 an air interface data packet transmission event is triggered, to-be-transmitted data of a logical channel with the highest priority from all the logical channels of the priorities, and perform packet transmission.
In an optional implementation manner, 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 optional implementation manner, before the processing unit 401 transmits the data to be sent to the logical channel of the priority, the processing unit 401 creates the logical channel of the priority according to the logical channel number, the priority, and the size of the storage space of the service to which the data to be sent belongs.
In an optional implementation manner, before the communication unit 402 selects to-be-transmitted data of a logical channel with the highest priority from all the logical channels with priorities to perform packet transmission, the processing unit 401 obtains the to-be-transmitted data from the logical channel with the priority and stores the to-be-transmitted data in a storage space of the logical channel with the priority.
In another optional implementation manner, after the communication unit 402 selects data to be sent of a logical channel with the highest priority from all the logical channels with priorities to perform packet sending, when receiving that the data sent by the packet is confirmed by an opposite end, the processing unit 401 removes the data sent by the packet from the storage space of the selected logical channel, and updates the size of the storage space of the selected logical channel.
The embodiments of the present application and the embodiments of the method described above are based on the same concept, and the technical effects brought by the embodiments are also the same.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a terminal device 500 according to an embodiment of the present disclosure. 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 (CPU), and may also be other general purpose processors, Digital Signal Processors (DSP), Application Specific Integrated Circuits (ASIC), Field-Programmable Gate arrays (FPGA) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and so on. 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 the 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; and when an air interface data packet transmission event is triggered, selecting the data to be transmitted of the logic channel with the highest priority from all the logic channels with the priorities to perform packet transmission.
The embodiments of the present application and the embodiments of the method described above are based on the same concept, and the technical effects brought by the embodiments are also the same.
The embodiment of the application also provides a chip, which is used for determining the priority of data to be sent; the chip is further configured to transmit the data to be sent to a logic channel of the priority according to the priority of the data to be sent; the chip is further configured to select, from the logical channels of all priorities, data to be transmitted of the logical channel with the highest priority for packet transmission when an air interface data packet transmission event is triggered.
Other implementations of the chip can be found in the related contents of the above method embodiments. And will not be described in detail herein.
The embodiments of the present application and the embodiments of the method described above are based on the same concept, and the technical effects brought by the embodiments are also the same.
The embodiment of the application provides a module equipment, module equipment includes treater and communication interface, the treater with communication interface links to each other, communication interface is used for receiving and dispatching signal, the treater 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;
and when an air interface data packet transmission event is triggered, selecting the data to be transmitted of the logic channel with the highest priority from all the logic channels with the priorities to perform packet transmission.
Other implementations of the module apparatus can be found in the related contents of the above method embodiments. And will not be described in detail herein.
The embodiments of the present application and the embodiments of the method described above are based on the same concept, and the technical effects brought by the embodiments are also the same.
An embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the computer program may be used to implement a partial bandwidth switching method described in the embodiment corresponding to fig. 2 or fig. 3 in the embodiment of the present application, and details of the method are not repeated here.
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), and the like 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 for storing 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.
It will be understood by those skilled in the art that all or part of the processes in the methods of the embodiments described above may be implemented by a computer program, which may be stored in a readable storage medium, and 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 (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (15)

1. A data transmission method is applied to an electronic device which uses Bluetooth technology for data transmission, and is characterized by comprising 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;
and when the electronic equipment triggers an air interface data packet transmission event, selecting the data to be transmitted of the logic channel with the highest priority from all the logic channels with the priorities to perform packet transmission.
2. The method of claim 1, further comprising:
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 of claim 1, wherein before the electronic device transmits the data to be transmitted onto the priority logical channel, the method further comprises:
and the electronic equipment creates a logic channel of the priority according to the logic channel number, the priority and the size of the storage space of the service to which the data to be sent belongs.
4. The method according to claim 1, wherein before the electronic device selects the logical channel with the highest priority from all the logical channels with priority for packet transmission, the method further comprises:
and the electronic equipment acquires the data to be sent from the logic channel of the priority and stores the data to be sent into the storage space of the logic channel of the priority.
5. The method according to claim 1, wherein after the electronic device selects the logical channel with the highest priority from all the logical channels with priorities to be sent in a packet, the method further comprises:
and when the electronic equipment receives that the data sent by the group package is confirmed by the opposite terminal, clearing the data sent by the group package from the storage space of the selected logical channel, and updating the size of the storage space of the selected logical channel.
6. An electronic device, which is characterized by comprising 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 corresponding priority according to the priority of the data to be transmitted;
the bluetooth control layer is further configured to select, from all the priority logical channels, data to be transmitted of a logical channel with the highest priority for packet transmission.
7. The electronic device of claim 6,
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.
8. The electronic device of claim 6,
the Bluetooth host is further configured to send a logic channel request for creating the priority to the Bluetooth control layer according to the logic channel number, the priority and the size of the storage space of the service to which the data to be sent belongs;
the bluetooth control layer is further configured to create a logical channel of the priority, and transmit a creation result to the bluetooth host, so that the bluetooth host executes an operation of transmitting the data to be transmitted to the logical channel of the corresponding priority according to the priority of the data to be transmitted.
9. The electronic device of claim 6,
the Bluetooth control layer is further configured to, before selecting the to-be-transmitted data of the logical channel with the highest priority from all the logical channels with priorities to perform packet transmission, acquire the to-be-transmitted data from the logical channel with the priority, and store the to-be-transmitted data in the storage space of the logical channel with the priority.
10. The electronic device of claim 9,
the bluetooth control layer is further configured to select, from all the priority logical channels, data to be sent of a logical channel with a highest priority for packet sending, and when it is received that the data sent by the packet is confirmed by an opposite end, clear the data sent by the packet from a 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.
11. A data transmission apparatus, characterized in that the apparatus comprises:
the processing unit is used for determining the priority of data to be sent;
the processing unit is further configured to transmit the data to be transmitted to a logical channel of the priority according to the priority of the data to be transmitted;
and the communication unit is further configured to select, from the logical channels of all priorities, the to-be-transmitted data of the logical channel with the highest priority for packet transmission when an air interface data packet transmission event is triggered.
12. An electronic device, characterized in that the electronic device comprises a processor and a memory, the processor and the memory being interconnected, wherein the memory is configured to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method according to any one of claims 1 to 5.
13. A chip, characterized in that,
the chip is used for determining the priority of data to be sent;
the chip is further configured to transmit the data to be sent to a logic channel of the priority according to the priority of the data to be sent;
the chip is further configured to select, from the logical channels of all priorities, data to be transmitted of the logical channel with the highest priority for packet transmission when an air interface data packet transmission event is triggered.
14. A modular device comprising a processor and a communication interface, the processor coupled to the communication interface, the communication interface configured to transceive signals, the processor configured to:
transmitting the data to be transmitted to a logic channel of the priority according to the priority of the data to be transmitted;
and when an air interface data packet transmission event is triggered, selecting the data to be transmitted of the logic channel with the highest priority from all the logic channels with the priorities to perform packet transmission.
15. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to carry out the method according to any one of claims 1 to 5.
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 true CN114040510A (en) 2022-02-11
CN114040510B 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)

Cited By (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 (14)

* 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
CN1866906A (en) * 2005-05-17 2006-11-22 中兴通讯股份有限公司 Priority processing method for medium access control layer of third generation mobile communication system
CN1972462A (en) * 2005-11-23 2007-05-30 大唐移动通信设备有限公司 Packet service scheduling method in mobile communication system
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
US20200252945A1 (en) * 2017-08-18 2020-08-06 Beijing Xiaomi Mobile Software Co., Ltd. Method and device for allocating uplink resource and terminal
CN112090065A (en) * 2020-09-23 2020-12-18 努比亚技术有限公司 Network delay regulation and control method, equipment and computer readable storage medium
CN112333114A (en) * 2020-11-13 2021-02-05 Oppo广东移动通信有限公司 Data transmission method, device, storage medium, terminal and network access point equipment
CN112367646A (en) * 2020-09-22 2021-02-12 粒恩医疗科技(深圳)有限公司 Multi-data secure transmission method and system based on Bluetooth and cloud platform
CN113498049A (en) * 2021-04-28 2021-10-12 广州芯之联科技有限公司 Bluetooth data transmission event scheduling method and device and Bluetooth equipment

Patent Citations (14)

* 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
CN1866906A (en) * 2005-05-17 2006-11-22 中兴通讯股份有限公司 Priority processing method for medium access control layer of third generation mobile communication system
CN1972462A (en) * 2005-11-23 2007-05-30 大唐移动通信设备有限公司 Packet service scheduling method in mobile communication system
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
US20200252945A1 (en) * 2017-08-18 2020-08-06 Beijing Xiaomi Mobile Software Co., Ltd. Method and device for allocating uplink resource and terminal
CN108124284A (en) * 2017-12-06 2018-06-05 青岛真时科技有限公司 A kind of Bluetooth data transfer method and apparatus
CN112367646A (en) * 2020-09-22 2021-02-12 粒恩医疗科技(深圳)有限公司 Multi-data secure transmission method and system based on Bluetooth and cloud platform
CN112090065A (en) * 2020-09-23 2020-12-18 努比亚技术有限公司 Network delay regulation and control method, equipment and computer readable storage medium
CN112333114A (en) * 2020-11-13 2021-02-05 Oppo广东移动通信有限公司 Data transmission method, device, storage medium, terminal and network access point equipment
CN113498049A (en) * 2021-04-28 2021-10-12 广州芯之联科技有限公司 Bluetooth data transmission event scheduling method and device and Bluetooth equipment

Cited By (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

Also Published As

Publication number Publication date
CN114040510B (en) 2023-12-05

Similar Documents

Publication Publication Date Title
CN108494817B (en) Data transmission method, related device and system
US7751420B2 (en) Network switching method and apparatus, wireless access apparatus, and wireless network
CN110312282B (en) Data transmission method and device
CN103442391A (en) Data transmission method and system as well as user terminal
CN110268751A (en) Method and system for selection access and mobile management function to ps domain in access net environment
CN102316589A (en) The method and apparatus that the management data link resource is used
CN112398626B (en) Information transmission method, communication device and system
CN101233771A (en) Method for selecting an access channel or a traffic channel for data transmission
CN110944039B (en) Micro-service discovery method, system and device for 5G access network
CN112399484A (en) Data transmission method, device, storage medium and electronic equipment
CN114040510B (en) Data transmission method and related device
JP2009290341A (en) Portable communication terminal and radio communication method
CN112751775A (en) Data packet processing method and related device
WO2021163901A1 (en) Session processing method and apparatus therefor
CN111132223B (en) Data packet transmission method and communication equipment
US20230064935A1 (en) Data transmission method, apparatus, and system
JP2000350252A (en) Service channel assignment method
CN113994762A (en) Method and device for associating session
CN110808814A (en) Data transmission method and device
CN102802197A (en) Method and device for transmitting application data
CN113905449A (en) Computing resource scheduling method, system and equipment
CN115696283A (en) Audio control method, electronic device, audio device, and storage medium
CN112332953A (en) Data sending method and related device
CN101370017A (en) Method and device for setting headers in a wireless communications system
CN116325895A (en) Data transmission method and related equipment

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