CN113228717B - Communication method and device - Google Patents

Communication method and device Download PDF

Info

Publication number
CN113228717B
CN113228717B CN202180001452.XA CN202180001452A CN113228717B CN 113228717 B CN113228717 B CN 113228717B CN 202180001452 A CN202180001452 A CN 202180001452A CN 113228717 B CN113228717 B CN 113228717B
Authority
CN
China
Prior art keywords
data
protocol
protocol layer
frame structure
transmission mode
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
CN202180001452.XA
Other languages
Chinese (zh)
Other versions
CN113228717A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN113228717A publication Critical patent/CN113228717A/en
Application granted granted Critical
Publication of CN113228717B publication Critical patent/CN113228717B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information

Landscapes

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

Abstract

The application discloses a communication method and device, and relates to the technical field of communication. The method comprises the following steps: sending first protocol service indication information to a first device, wherein the first protocol service indication information is used for indicating a first protocol stack; receiving first information sent by the first device, wherein the first information is used for indicating a first transmission mode corresponding to the first protocol service indication information; and transmitting first data from a first protocol stack to a first device according to a first data frame structure corresponding to the first transmission mode. The method is beneficial to reducing the overhead and improving the transmission efficiency of the service data in the scenes of short-distance communication and small packet service.

Description

Communication method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communication method and apparatus.
Background
At present, short-distance communication plays an important role in daily life of people, and the short-distance communication is required in the fields of intelligent terminals, intelligent homes, intelligent manufacturing, intelligent automobiles and the like. Bluetooth is the most common short-range communication method, and Bluetooth Low Energy (BLE) is widely used in connection with a mouse, a keyboard, a wearable device, a True Wireless Stereo (TWS) headset, and the like due to its low power consumption and low cost.
In some service scenarios, for example, game and sports services, a higher service transmission requirement is provided for a mouse (i.e., a wireless mouse) supporting short-range communication, for example, transmission delay is low, reliability is high, and the like, so as to provide a good operation experience for a user. In a traditional competition scenario, the transmission frequency of the wired mouse is 1KHz, that is, the data transmission period is 1ms, and the single transmission data volume is about tens to hundreds of bits (also referred to as short-range packet service). If a BLE scheme and a bluetooth mouse are used to support a conventional competitive mouse service, based on a BLE protocol stack (protocol stack) shown in fig. 1, the mouse service is mainly borne on a logical link control and adaptation protocol layer (L2 CAP) and a Link Layer (LL), after obtaining an air data packet by layer-by-layer encapsulation, the data transmission validity (i.e., the ratio of a single transmission data amount to a single transmission total amount) is less than 50%, the overhead is large, and the transmission efficiency of service data is low.
Therefore, in the scenario of short-distance communication and packet service, how to reduce the overhead and improve the transmission efficiency of service data is still one of the problems that needs to be solved urgently.
Disclosure of Invention
The application provides a communication method and a communication device, which are beneficial to reducing the overhead and improving the transmission efficiency of service data in the scenes of short-distance communication and small-packet service.
In a first aspect, an embodiment of the present application provides a communication method, which may be applied to a second apparatus, where the second apparatus may serve as a slave node, listen to allocation or scheduling of a master node (e.g., a first apparatus), and perform communication based on resources allocated by the master node. The method comprises the following steps: the second device sends first protocol service indication information to the first device, wherein the first protocol service indication information is used for indicating a first protocol stack; receiving first information sent by the first device, wherein the first information is used for indicating a first transmission mode corresponding to the first protocol service indication information; and sending first data from the first protocol stack to a first device according to a first data frame structure corresponding to the first transmission mode. It is to be understood that, in this method, in some cases, the second device may serve as a master node in the communication system, and the first device may serve as a slave node in the communication system, which is not limited in this application.
Through the method, the second device can instruct the first device to configure the first transmission mode for the first protocol stack by sending the first protocol service instruction information to the first device, so that the second device can transmit the first data by adopting the first data frame structure corresponding to the first transmission mode. When the scheme is applied to a short-distance packet service scene (such as game competitive service) with high frequency and low time delay, the data volume of other information except service data is reduced, so that the transmission of the lightweight packet data can be effectively supported, and the response speed and quality of the service are improved.
In a possible implementation manner, the first information further includes at least one of a first channel number and a first data length; wherein the first channel number corresponds to the first protocol service indication information; the first data length is a length of a payload in the first data frame structure.
By the method, the first device can indicate the relevant parameters used when the second device transmits the first data by adopting the first data frame structure by including the first channel number, the first data length and the like in the first information, so that the second device can construct the first data frame structure based on the relevant parameters according to the indication, and unnecessary overhead can be reduced when the first data is transmitted, thereby improving the transmission efficiency of the first data.
In a possible implementation manner, before receiving the first information sent by the first apparatus, the method further includes: sending second information to the first apparatus, where the second information is used to indicate at least one of a second transmission mode and a second data length, where the second transmission mode may characterize a transmission mode expected by a second apparatus, and the second data length is a length of a payload in a second data frame structure corresponding to the second transmission mode; wherein the second transmission mode is the same as or different from the first transmission mode.
Through the method, the second device can also negotiate a transmission mode and the like to be used for transmitting the first data with the first device by indicating the second transmission mode expected by the second device to the first device, so that both communication parties can communicate by adopting a proper transmission mode and/or a data frame structure, and the response speed and quality of related services can be guaranteed when the transmission efficiency of service data is improved.
In a possible implementation manner, the first data frame structure is a first protocol layer frame structure, and the first protocol layer frame structure includes a channel number and/or transmission mode indication information; the first protocol layer frame structure further comprises a first protocol layer payload; wherein the channel number and/or the transmission mode indication information correspond to a length of the first protocol layer payload, and the first protocol layer payload is used for carrying the first data. Illustratively, the first protocol layer frame structure may be an L2CAP layer frame structure. It should be noted that, in the present application, the first protocol layer frame structure may be a first protocol layer Protocol Data Unit (PDU).
By the above method, the first protocol layer frame structure used for transmitting the first data may include other information besides the first data, such as a channel number, transmission mode indication information, etc., so as to inform the first device of a logical channel, a transmission mode, etc., used for transmitting the first data, and at the same time, may implicitly indicate the length of the first protocol layer payload, so that the first device may complete data reception according to the relevant indication, and, since the first data frame structure does not need to include a field for indicating the length of the first protocol layer payload, the first data frame structure may not need to reserve the field, thereby reducing the overhead of transmitting non-service data while achieving two-party communication, and improving the transmission efficiency of service data.
In a possible implementation manner, the first protocol layer frame structure is included in a second protocol layer frame structure, and the second protocol layer frame structure includes a second protocol layer frame header, a second protocol layer payload and a Cyclic Redundancy Check (CRC), where the second protocol layer payload is used for carrying the first protocol layer frame structure. Wherein, in the protocol stack architecture, the first protocol layer is higher than the second protocol layer. Illustratively, the first protocol layer frame structure may be an L2CAP layer frame structure and the second protocol layer frame structure may be a LL layer frame structure. It should be noted that, in the present application, the second protocol layer frame structure may be a second protocol layer Protocol Data Unit (PDU). Optionally, the frame header of the second protocol layer frame includes a pilot and an access address; or, the frame header of the second protocol layer frame contains pilot frequency, access address and transmission mode indication information.
Through the method, the first protocol layer frame structure can be contained in the second protocol layer frame structure, the second protocol layer frame structure can also contain other information except the first protocol layer frame structure, such as the frame header of the second protocol layer frame, CRC and the like, and the frame header of the second protocol layer frame is designed into a light-weight frame header so as to reduce the transmission of non-service data, thereby reducing the overhead and improving the transmission efficiency of the service data.
In a possible implementation manner, the first data frame structure is a third protocol layer frame structure, where the third protocol layer frame structure includes a third protocol layer frame header, a third protocol layer payload, and a cyclic redundancy check code CRC, and the third protocol layer payload is used to carry the first data. The frame head of the third protocol layer frame comprises a pilot frequency, an access address and a channel number; or, the frame header of the third protocol layer frame contains pilot frequency, access address, channel number and transmission mode indication information. It should be noted that the third protocol layer frame structure may be a third protocol layer Protocol Data Unit (PDU).
By the method, the first protocol layer frame structure can be a third protocol layer frame structure, such as an MAC layer frame structure, and because the operation overhead of each upper protocol layer on the service data is reduced, and meanwhile, the proportion of non-service data in the data frame structure for transmitting the service data is reduced, the overhead can be reduced, and the transmission efficiency of the service data is improved.
In a second aspect, the present application provides a communication method, which may be applied to a first apparatus, where the first apparatus may serve as a master node to manage a slave node (e.g., a second apparatus), has a resource allocation capability or a resource scheduling capability, and is responsible for allocating resources for the slave node or configuring related functions of the slave node. The method comprises the following steps: receiving first protocol service indication information sent by a second device, wherein the first protocol service indication information is used for indicating a first protocol stack; transmitting first information to the second apparatus, the first information indicating a first transmission mode corresponding to the first protocol service indication information; receiving first data from the second apparatus, wherein the first data employs a first data frame structure corresponding to the first transmission mode.
Through the method, the first device can receive the first protocol service indication information from the second device, and configure the first transmission mode for the second device aiming at the first protocol indicated by the first protocol service indication information, so that the second device can transmit the first data by adopting the first data frame structure corresponding to the first transmission mode, thereby reducing the overhead and improving the transmission efficiency.
In a possible implementation manner, the first information further includes at least one of a first channel number and a first data length; wherein the first channel number corresponds to the first protocol service indication information; the first data length is a length of a payload in the first data frame structure.
In a possible implementation manner, before sending the first information to the second apparatus, the method further includes: receiving second information sent by the second apparatus, where the second information is used to indicate at least one of a second transmission mode and a second data length, where the second transmission mode represents a transmission mode expected by the second apparatus, and the second data length is a length of a payload in a second data frame structure corresponding to the second transmission mode; wherein the second transmission mode is the same as or different from the first transmission mode.
In a possible implementation manner, the first data frame structure is a first protocol layer frame structure, and the first protocol layer frame structure includes a channel number and/or transmission mode indication information; the first protocol layer frame structure further comprises a first protocol layer payload; wherein the channel number and/or the transmission mode indication information correspond to a length of the first protocol layer payload, and the first protocol layer payload is used for carrying the first data. It should be noted that, in the present application, the first protocol layer frame structure may be a first protocol layer Protocol Data Unit (PDU).
In a possible implementation manner, the first protocol layer frame structure is included in a second protocol layer frame structure, and the second protocol layer frame structure includes a second protocol layer frame header, a second protocol layer payload and a Cyclic Redundancy Check (CRC), where the second protocol layer payload is used for carrying the first protocol layer frame structure. It should be noted that, in the present application, the second protocol layer frame structure may be a second protocol layer Protocol Data Unit (PDU).
In a possible implementation manner, the header of the second protocol layer frame includes a pilot and an access address; or the frame header of the second protocol layer frame comprises pilot frequency, access address and transmission mode indication information.
In one possible implementation, the first protocol layer is higher than the second protocol layer in the protocol stack architecture.
In a possible implementation manner, the first data frame structure is a third protocol layer frame structure, where the third protocol layer frame structure includes a third protocol layer frame header, a third protocol layer payload, and a cyclic redundancy check code CRC, and the third protocol layer payload is used to carry the first data. It should be noted that the third protocol layer frame structure may be a third protocol layer Protocol Data Unit (PDU).
In a possible implementation manner, the frame header of the third protocol layer frame includes a pilot frequency, an access address and a channel number; or, the frame header of the third protocol layer frame contains pilot frequency, access address, channel number and transmission mode indication information.
In a third aspect, an embodiment of the present application provides a communication apparatus, where the apparatus is configured to implement any one of the above first aspect or the first aspect, and includes corresponding functional modules or units, respectively configured to implement the steps in the method of the first aspect. The functions can be realized by hardware, and corresponding software can be executed by hardware, and the hardware or the software comprises one or more modules or units corresponding to the functions.
In a fourth aspect, the present application provides a communication apparatus, which is configured to implement any one of the methods in the second aspect or the second aspect, and includes corresponding functional modules or units, respectively configured to implement the steps in the method in the second aspect. The functions can be realized by hardware, and corresponding software can be executed by hardware, and the hardware or the software comprises one or more modules or units corresponding to the functions.
In a fifth aspect, a communications apparatus is provided that includes a processor and a memory. Wherein the memory is used for storing a computing program or instructions, and the processor is coupled with the memory; the computer program or instructions, when executed by a processor, cause the apparatus to perform the method of the first aspect or any one of the first aspects described above. The communication device may be the first device or a device, such as a system-on-chip, capable of supporting the functionality required by the first device to implement the method provided by the first aspect described above. For example, the communication means may be a terminal device or a part of a component (such as a chip) within a terminal device. The terminal device can be, for example, an intelligent mobile terminal, an intelligent home device, an intelligent automobile, an intelligent wearable device, and the like. The smart mobile terminal may be a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), or the like. Smart home devices such as smart refrigerators, smart washing machines, smart televisions, speakers, and the like. Intelligent car wearing equipment such as intelligent earphone, intelligent glasses, intelligent dress or shoes etc..
In a sixth aspect, a communications apparatus is provided that includes a processor and a memory. Wherein the memory is used for storing a computing program or instructions, and the processor is coupled with the memory; the computer program or instructions, when executed by a processor, cause the apparatus to perform the method of the second aspect or any of the second aspects described above. The communication device may be the first device or a device, such as a system-on-chip, capable of supporting the functionality required by the first device to implement the method provided by the first aspect described above. For example, the communication means may be a terminal device or a part of a component (such as a chip) within a terminal device. The terminal device can be, for example, an intelligent mobile terminal, an intelligent home device, an intelligent automobile, an intelligent wearable device, and the like. The smart mobile terminal may be a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), or the like. Smart home devices such as smart refrigerators, smart washing machines, smart televisions, speakers, and the like. Intelligent car wearing equipment such as intelligent earphone, intelligent glasses, intelligent dress or shoes etc..
In a seventh aspect, a terminal is provided, which may include the apparatus of the third aspect or the fifth aspect, and the apparatus of the fourth aspect or the sixth aspect. Optionally, the device may be an intelligent home device, an intelligent manufacturing device, an intelligent transportation device, and the like, for example, a vehicle, an unmanned aerial vehicle, an unmanned transportation vehicle, an automobile, a vehicle, and the like, or a robot, and the like. Alternatively, the apparatus may be a mouse, keyboard, wearable device, TWS headset, or the like.
In an eighth aspect, a computer-readable storage medium is provided, in which a computer program or instructions are stored, which, when executed by an apparatus, cause the apparatus to perform the method of the first aspect or any possible implementation manner of the first aspect.
A ninth aspect provides a computer readable storage medium having stored thereon a computer program or instructions which, when executed by an apparatus, cause the apparatus to perform the method of the second aspect or any possible implementation of the second aspect.
A tenth aspect provides a computer program product comprising a computer program or instructions which, when executed by an apparatus, causes the apparatus to perform the method of the first aspect or any possible implementation manner of the first aspect.
In an eleventh aspect, the present application provides a computer program product comprising a computer program or instructions which, when executed by an apparatus, causes the apparatus to perform the method of the second aspect or any possible implementation manner of the second aspect.
Drawings
Figure 1 is a schematic diagram of a conventional BLE protocol stack architecture;
figure 2 is a schematic diagram of a partial protocol layer frame structure based on a BLE protocol stack;
fig. 3 is a schematic diagram of a communication system provided in an embodiment of the present application;
fig. 4 is a flowchart illustrating a communication method according to an embodiment of the present application;
fig. 5 is a flowchart illustrating a communication method according to an embodiment of the present application;
fig. 6 is a schematic diagram of a first data frame structure according to an embodiment of the present application;
fig. 7 is a schematic diagram of a first data frame structure according to an embodiment of the present application;
fig. 8 is a schematic diagram of a first data frame structure according to an embodiment of the present application;
fig. 9 is a schematic diagram of a part of fields in a first data frame structure according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a communication device according to an embodiment of the present application;
fig. 11 is another schematic structural diagram of a communication device according to an embodiment of the present application.
Detailed Description
Hereinafter, some terms in the present application are explained so as to be easily understood by those skilled in the art.
(1) Communication device
A communication device, which is a device providing data connectivity to a user, may also be referred to as a communication device.
The communication means may be, for example, terminal equipment, including equipment providing voice and/or data connectivity to a user, and in particular, including equipment providing voice connectivity to a user, or including equipment providing data connectivity to a user, or including equipment providing voice and data connectivity to a user. Including, for example, a handheld device having wireless connection capability or a processing device connected to a wireless modem. The terminal device may communicate with a core network via a Radio Access Network (RAN), for example, and exchange voice and/or data with the RAN. The terminal device may include a vehicle, a User Equipment (UE), a wireless terminal device, a mobile terminal device, a device-to-device communication (D2D) terminal device, a vehicle-to-all (V2X) terminal device, a machine-to-machine/machine-type communication (M2M/MTC) terminal device, an internet of things (internet of things) terminal device, a subscription unit (subscriber unit), a subscription station (subscription station), a mobile station (mobile station), a remote station (remote), an access point (access point, AP), a remote terminal device (remote), an access terminal device (access terminal), a user terminal device (user), a user agent (IoT), a user equipment (user equipment, etc.), or a user equipment. For example, mobile phones (or so-called "cellular" phones), computers with mobile terminal devices, dedicated terminal devices in the narrowband internet of things (NB-IoT), portable, pocket, hand-held, computer-embedded, or vehicle-mounted mobile devices, and so on may be included. Such as Personal Communication Service (PCS) phones, cordless phones, session Initiation Protocol (SIP) phones, wireless Local Loop (WLL) stations, personal Digital Assistants (PDAs), and the like. Also included are constrained devices such as devices that consume less power, or devices that have limited storage capabilities, or devices that have limited computing capabilities, etc. Examples of information sensing devices include bar codes, radio Frequency Identification (RFID), sensors, global Positioning Systems (GPS), laser scanners, and so forth.
Optionally, the terminal device may also be a wearable device. Wearable equipment can also be called wearable smart device or intelligent wearable equipment etc. is the general term of using wearable technique to carry out intelligent design, develop the equipment that can dress to daily wearing, like glasses, gloves, wrist-watch, dress and shoes etc.. A wearable device is a portable device that is worn directly on the body or integrated into the clothing or accessories of the user. The wearable device is not only a hardware device, but also realizes powerful functions through software support, data interaction and cloud interaction. The generalized wearable smart device has full functions and large size, and can realize complete or partial functions without depending on a smart phone, for example: smart watches or smart glasses and the like, and only focus on a certain type of application functions, and need to be used in cooperation with other devices such as smart phones, such as various smart bracelets, smart helmets, smart jewelry and the like for monitoring physical signs.
The various terminal devices described above, if located on a vehicle (e.g. placed in or mounted in a vehicle), may be considered to be vehicle-mounted terminal devices, also referred to as on-board units (OBUs), for example.
Optionally, the terminal device may further include a relay (relay). Or, it is understood that any device capable of data communication with a base station may be considered a terminal device.
In the embodiment of the present application, the communication device may include, but is not limited to, a smart terminal such as a smart phone, a notebook, and a tablet computer, a mouse, a keyboard, an earphone, a stereo, or a vehicle-mounted playing device, which have a short-range communication function. When there are at least two communication apparatuses, the at least two communication apparatuses may be referred to as a first communication apparatus, a second communication apparatus, and the like, respectively, and may be simply referred to as a first apparatus, a second apparatus, and the like, respectively, for convenience of distinction.
The first device and the second device may be communicatively coupled via some short-range communication technique. Short-range communication technologies may include, but are not limited to, bluetooth (bluetooth) technology, wireless fidelity (Wi-Fi) technology, near Field Communication (NFC) technology, wi-Fi Aware technology, universal short-range communication technology, and the like. Short-range communication has numerous applications in file transfer, remote control, screen projection, perception of surrounding devices, and the like. Several examples of short-range communication techniques are listed below.
Bluetooth: a radio technology for supporting short-distance communication of devices can perform wireless information exchange among a plurality of devices including mobile phones, wireless earphones, notebook computers, related peripherals and the like. By using the bluetooth technology, the communication between mobile communication terminal devices can be effectively simplified, and the communication between the devices and the internet can be successfully simplified, so that the data transmission becomes faster and more efficient, and the way is widened for wireless communication.
Wireless fidelity (Wi-Fi): also known as Wireless Local Area Networks (WLAN) Direct or Wi-Fi Direct, is one of a cluster of Wi-Fi protocols that enables devices to easily connect to each other without requiring a wireless access point of an intermediary nature. The Wi-Fi wireless communication system can be used from webpage browsing to file transmission and can be communicated with a plurality of devices at the same time, and the speed advantage of Wi-Fi can be fully played. Devices meeting this standard can be easily interconnected even from different manufacturers.
Wi-Fi Aware technology: the part responsible for sensing and discovering in the Wi-Fi technology can help Wi-Fi equipment sense peripheral services, such as peripheral equipment, and further realize point-to-point (P2P) message interaction of two pieces of equipment at a short distance through Wi-Fi Aware. Due to the fact that the WIFI-Aware can sense surrounding equipment, multiple functions can be achieved, for example, people nearby can be sensed and connection can be established, friends can be added, the same game can be played, and the like; or, peripheral equipment is discovered, and photo sharing or site sharing and the like are realized; alternatively, the file may be securely sent to the printer without accessing a network (e.g., cellular or wireless), and so forth.
It should be noted that, besides the three short-range communication technologies listed above, other existing short-range communication technologies, or other short-range communication technologies that may appear in the future as the communication technologies evolve, may also be applied to the present solution.
It is to be understood that in the present application, the at least two communication devices may also be logically and functionally distinguished into two types of nodes, namely a master node and a slave node. The master node can manage the slave nodes, has resource allocation capability or resource scheduling capability, and is responsible for allocating resources for the slave nodes or configuring related functions of the slave nodes. The slave nodes listen to the master node's allocation or schedule and communicate based on the master node's allocated resources. It should be noted that the attribute characteristics of the master and slave nodes may change. For example, when the intelligent terminal communicates with a mouse, the intelligent terminal is a master node, and the mouse is a slave node; but when the intelligent terminal accesses other equipment with higher priority and listens to other equipment scheduling, the role attribute of the intelligent terminal is changed to the slave node at the moment.
Generally, a master node is a service initiator device, and a slave node is a service receiver device. It is understood that the master node may also be a service receiver device, and the slave node may be a service initiator device.
It should be understood that, in the present application, the communication device may also be a network device, for example, AN Access Network (AN) device, such as a base station (e.g., AN access point), which may refer to a device in the access network that communicates with the wireless terminal device through one or more cells at AN air interface, or for example, a network device in a vehicle-to-all (V2X) technology is a Road Side Unit (RSU). The base station may be configured to interconvert received air frames and IP packets as a router between the terminal device and the rest of the access network, which may include an IP network. The RSU may be a fixed infrastructure entity supporting V2X applications and may exchange messages with other entities supporting V2X applications. The network device may also coordinate attribute management for the air interface. For example, the network device may include an evolved Node B (NodeB) or eNB or e-NodeB in an LTE system or an LTE-a (long term evolution-advanced, LTE-a), or may also include a next generation Node B (gNB) in a fifth generation mobile communication technology (5 g) NR system (also referred to as NR system) or may also include a Centralized Unit (CU) and a Distributed Unit (DU) in a Cloud access network (Cloud RAN) system, which is not limited in the embodiments of the present application.
The network device may further include a core network device, for example, including an access and mobility management function (AMF), a Session Management Function (SMF), a User Plane Function (UPF), or the like in a 5G system, or including a Mobility Management Entity (MME) in a 4G system, or the like.
(2) Service data
In the present application, data in short-range communication service, such as video data, audio data, control data, or other types of data transmitted by short-range communication, is mainly included.
(3) Logical channel
Generally, different services often have different Quality of Service (Qos) requirements, so that different logical channels can be established for different services, thereby ensuring differentiated Qos requirements of different services. For example, different logical channels are established for audio service and video service, respectively.
Take the example that a single logical channel corresponds to only one service. For example, logical channel 1 corresponds to a first service, and logical channel 2 corresponds to a second service. The data of the first service cannot multiplex logical channel 2, and likewise, the data of the second service cannot multiplex logical channel 1. Generally, different logical channels correspond to different transmission resources, for example, logical channel 1 corresponds to transmission resource 1, logical channel 2 corresponds to transmission resource 2, and transmission resource 1 and transmission resource 2 are different. For example, the time domain resources of transmission resource 1 and transmission resource 2 are different (e.g., the short-range communication system is a time division system, and then transmission resource 1 and transmission resource 2 are time-divided).
Of course, it can be understood that the same logical channel may also be established for one or more services with similar Qos requirements, so as to reduce the number of logical channels and facilitate management.
The broader concept of logical channels is: the physical channel is used for really completing transmission work, and the logical channel is used for defining the transmission content. For example, logical channels can be divided into two categories: control channels for transmitting control plane information and traffic channels for transmitting user plane information (e.g., traffic data).
(4) Protocol and protocol stack
In this application, the protocol is different from the protocol stack. A protocol is a set of conventions that an execution subject needs to follow, a protocol stack is a unit or module that processes data through the protocol, and data generated by the protocol stack is processed by a lower layer (e.g., an access layer) and then transmitted. In this application, a protocol stack may also be understood simply as a unit or module that can process data using a protocol in a communication device (e.g., a first device or a second device).
Taking the first device as an example, it is assumed that the first protocol stack supports the first protocol, that is, the first protocol stack is a unit or module in the first device that processes data using the first protocol. Similarly, it is assumed that the second protocol stack supports the second protocol, that is, the second protocol stack may be a unit or a module in the first apparatus that processes data using the second protocol. The first protocol stack and the second protocol stack may be the same unit or different units, and the embodiment of the present application is not limited.
The protocol in this application is not limited to only the protocol for communication.
(5) Network layered architecture
Referring to fig. 1, in general, a network architecture for a wireless communication technology may include one or more of an application layer, a transport layer, a network layer, an access layer, and the like, each of which may be referred to as a protocol layer.
It should be understood that the layers herein are merely a structural division of the framework, and are divided into three large layers, an upper layer, a middle layer and a bottom layer as a whole. Different communication systems may have respective layer division modes, or may have more specific and lower-level layer division, which is not limited herein. For example, there are several possible network models in the prior art, such as seven, five, and three layers. Wherein the functions of each layer may be implemented by one or more protocols. For example, the protocol of the network layer may include IPv4, and the protocol of the access layer may include a logical link control & adaptation protocol (L2 CAP) layer and/or a link (LL) layer. One protocol for each layer corresponds to one protocol stack.
The application layer is located above the network layer and the transport layer and is used for providing application support for a user. Optionally, the application layer is further configured to provide session/communication support and/or information support for the user.
The network layer and the transport layer are located above the access layer for establishing a connection between the source node and the destination node and providing a reliable end-to-end data transmission service.
Optionally, the application layer, the transport layer, and the network layer correspond to at least one of layer 3 to layer 7 of an open system internet reference model (OSI). Wherein layer 3 is a network layer: and is responsible for routing and thus determining the path between two nodes. Optionally, the network layer may also perform flow control; layer 4 is a transport layer (transport layer): the device is responsible for providing a network line, namely a transmission path, for the session layer; layer 5 is a session layer: the method is responsible for session establishment, maintenance and termination between two nodes; layer 6 is a presentation layer: the data processing device is responsible for encoding or decoding data so as to convert the data into a format compatible or suitable for transmission; optionally, the presentation layer may perform decryption and encryption of data; layer 7 is an application layer: is responsible for providing services to applications (also referred to as applications or users).
The access stratum may provide a communication interface/means for communication between nodes, and may include a plurality of different access technologies, and the different access technologies may correspond to different communication interfaces, such as a cellular interface, a WIFI interface, and the like.
Optionally, the access layer corresponds to a data link layer and a physical layer.
Data link layer: and the reliable transmission of data on the physical link is guaranteed. Data or instructions are encapsulated into specific frames that can be transmitted by the physical layer; optionally, the data link layer further includes functions of access control, resource management, data segmentation, concatenation, error correction, and the like. For example, taking bluetooth protocol as an example, the data link layer may include a logical link control and adaptation protocol (L2 CAP) layer and a Logical Layer (LL) layer. The L2CAP is responsible for data encapsulation, segmentation, logical channel management and other functions; the LL layer is responsible for resource management and allocation.
Physical layer: and a transmission medium is utilized to provide physical connection for a data link layer, so that the transparent transmission of the bit stream is realized. Generally, the physical layer performs channel coding or decoding to ensure the reliability of data transmission.
Since the network layer may exist in different networks and/or transport protocols, the L2CAP layer may be used to provide transport adaptation functions with different networks and/or transport protocols. For example, a data packet from a bottom layer (a protocol layer below the L2CAP layer) is received, a protocol type of an upper layer (a protocol layer above the L2CAP layer) to which the data packet belongs is distinguished, and the data packet is delivered (or transferred) to a corresponding upper layer protocol for processing. It should be noted that the L2CAP layer is a logical function layer, and in terms of implementation, it may also be included in a network layer and a transport layer, which is not limited in this application.
It should be understood that the upper layer of the protocol layer in this application refers to any protocol layer above the protocol layer, for example, the upper layer of the L2CAP layer, which may be a network layer or a transport layer or an application layer. The process of transmitting a packet from an upper layer to a lower layer may be referred to as forwarding. The process of a lower layer transmitting a packet to an upper layer may be referred to as handoff.
In each protocol layer, a corresponding packet header (or called a frame header) needs to be marked on a data packet transmitted by an upper layer, so that a peer layer of the peer device can analyze the data packet conveniently, for example, an LL layer header is added to the data packet by an LL layer of the sending end device, and the LL layer header needs to be analyzed by an LL layer of the receiving end device.
In this application, for a data packet transferred by an upper layer, before a packet header is not added, the data packet may be referred to as a Service Data Unit (SDU), and after the packet header is added, the data packet is referred to as a Protocol Data Unit (PDU). For example, a data packet delivered by the L2CAP layer received by the LL layer may be referred to as LL SDU (also referred to as L2CAP PDU); after the LL adds a header to the packet, the packet to which the header is added is referred to as an LL PDU. On the contrary, at the receiving end, the LL may remove the header of the received LL PDU (also referred to as PHY SDU), obtain the LL SDU, and deliver the LL SDU to the upper layer.
It can be understood that, at the transmitting end, if any protocol layer transparently transfers data, the PDU generated by the protocol layer only contains SDU. For the sending end of data, transparent transmission means that the protocol layer does not perform the process of encapsulating the head of the current layer SDU (also called upper layer PDU) from the upper layer, and directly transmits the current layer SDU to the lower layer as the current layer PDU. Transparent transmission may also be called transparent transmission or pass-through, and it is understood that transparent transmission refers to transmitting original content from a source address to a destination address without changing the content of service data in communication, for example, without performing segmentation, concatenation, reordering, packet header adding, and other actions on the data.
At the receiving end of the data, transparent transmission means that the protocol layer does not decapsulate the lower layer SDU (also referred to as the present layer PDU) submitted by the lower layer, and directly submits the present layer PDU to the upper layer as the present layer SDU.
Optionally, during transparent transmission, the sending end protocol layer (e.g., LL layer) may encrypt the transmission data, and the receiving end protocol layer (e.g., LL layer) may decrypt the data. The algorithm, parameters, etc. used for encryption and decryption may be pre-agreed or defined in a protocol between the sending end and the receiving end.
Optionally, during transparent transmission, a Cyclic Redundancy Check (CRC) check code may be added to the transmission data by the protocol layer of the sending end, and is used for checking the data by the protocol layer corresponding to the receiving end. The algorithm and parameters used by the CRC check operation may be pre-agreed by the master node and the slave node or defined in a protocol. A CRC check code may be added at the end of the transmitted data.
It should be understood that in different protocol stacks, the protocol layers such as the application layer, the transport layer, the network layer, the access layer, etc. may be further subdivided into different protocol layers, and the corresponding protocol layers for implementing the same or similar functions may also have different names. In this application, the first protocol stack may be, for example, a protocol stack corresponding to one layer of an upper layer of an access layer (including an application layer, a transport layer, a network layer, and the like), or may be a protocol stack corresponding to an access layer (for example, an L2CAP layer or an LL layer or a Media Access Control (MAC) layer), which is not limited in this application.
(6) At least one means one, or more than one (including plural, meaning two or more), that is, one, two, three or more.
(7) The carrying may refer to that a message is used for carrying information or data, and may also refer to what information the message is composed of, or what information is included in the message.
(8) "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
In addition, it is to be understood that the terms first, second, etc. in the description of the present application are used for distinguishing between the descriptions and not necessarily for describing a sequential or chronological order.
Bluetooth is the most common short-distance communication method, and Bluetooth Low Energy (BLE) has been widely used in connection with mouse, keyboard, wearable device, true Wireless Stereo (TWS) headset and the like due to its low power consumption and low cost.
Figure 1 is a diagram of a conventional BLE protocol stack architecture.
The BLE protocol stack architecture may specifically include a Physical (PHY) layer, a link (LL) layer, a direct test mode (direct test mode), a Host Control Interface (HCI) layer, a General Access Profile (GAP) layer, a logical link control and adaptation (L2 CAP) layer, a security manager (security manager) layer, an attribute protocol (ATT) layer, a general attribute profile (GATT) layer, and the like. The controller is used for defining the specification of Radio Frequency (RF), baseband (Baseband) and other bias hardware, and abstracting a logical link for communication on the basis of the specification; the host (host) is used for more friendly packaging on the basis of the logical link to shield the details of the bluetooth technology, so that the bluetooth application is more convenient to use. And encapsulating application (application) data layer by layer through the BLE protocol stack to obtain an air data packet meeting the BLE protocol stack.
Referring to fig. 2, the data frame structure corresponding to the L2CAP layer may include the following fields:
(1) L2CAP layer length (length) indicates (16 bits)): the length of a Service Data Unit (SDU) used for indicating the L2CAP layer does not include header information;
(2) Channel ID (CID) (16 bit): for indicating logical channel identification for virtually distinguishing different data streams (CIS); (3) L2CAP layer payload (information payload): for carrying traffic data.
The LL layer may include the following fields in its corresponding data frame structure:
(1) Pilot (preamble) (8 bit, i.e. 1 byte): physical layer functions for synchronization, etc.;
(2) Access Address (AA) (32 bit): the access code is used for indicating the access code and identifying the sending end/user corresponding to the data packet;
(3) PDU: the data frame structure of the L2CAP layer can be directly carried in a field of the LL layer PDU as a load; the LL-layer packet header includes, for example: data/control information indication, next sequence number, current sequence number, whether there is more data, LL layer length indication, etc.;
(5) Cyclic Redundancy Check (CRC) (24 bit): and the cyclic redundancy check bit is positioned at the tail part of the transmission data and used for checking the data.
In a traditional competition scenario, the transmission frequency of the wired mouse is 1KHz, that is, the transmission period is 1ms, and the single transmission data volume is about tens to hundreds of bits (also referred to as short-range packet service). If a BLE protocol stack and a bluetooth mouse are used to support a traditional competitive mouse service, that is, a BLE scheme is applied in short-distance communication and small packet service scenarios, according to the BLE protocol stack shown in fig. 1 and the data frame structures of the protocol layers shown in fig. 2, after the service data to be transmitted are encapsulated layer by layer to obtain an air data packet, the transmission effectiveness (i.e., transmission efficiency) of the corresponding service data transmitted by the air data packet is calculated by the following expression (1):
Figure GDA0003562721050000111
after substituting the single transmission service data volume (e.g. 96 bits) and the lengths of the parts in the corresponding data frame structure into the above expression (1), the calculated transmission efficiency is lower than 50%. As can be seen, when the existing BLE protocol stack is applied to the scenarios of short-range communication and small packet service, the problems of high overhead and low transmission efficiency of service data exist.
Therefore, how to reduce overhead and improve transmission efficiency in the short-distance communication and packet service scenarios is still one of the problems that needs to be solved urgently.
The embodiment of the application provides a communication method and a communication device, which are beneficial to reducing the overhead and improving the transmission efficiency in the scenes of short-distance communication and small-packet service. The method and the device are based on the same technical conception, and because the principles of solving the problems of the method and the device are similar, the implementation of the device and the method can be mutually referred, and repeated parts are not repeated.
Hereinafter, embodiments of the present application will be described in detail with reference to the drawings.
Fig. 3 shows a schematic diagram of a communication system to which embodiments of the present application are applicable. Referring to fig. 3, the communication system includes a first device 301 and a second device 302, and short-range communication can be implemented between the first device 301 and the second device 302. The first apparatus 301 may serve as a master node, and the second apparatus 302 may serve as a slave node.
As an example, the first device 301 and the second device 302 may be bluetooth communication devices, and may perform BLE traffic (e.g., audio traffic based on BLE, video traffic, etc.) and/or transmit BLE traffic data based on a bluetooth-related protocol.
In another example, the first device 301 and the second device 302 may also be communication devices supporting other short-range communication protocols, and may perform short-range communication services and/or transmit short-range communication service data based on the respective communication protocols supported.
For more clearly describing the communication method provided by the present application, a service scenario and an implemented communication method applicable to the embodiment of the present application are described below with the first device 301 as an intelligent terminal and the second device 302 as a mouse as examples based on game and sports services.
However, it should not be understood that the services related to the embodiments of the present application are only game competition type services. The service scenario applicable to the present application may further include other services, which may be an audio service, a video service, or other types of services. These services may have a plurality of different transmission modes, and in each transmission mode, parameters according to which a data channel is established between at least two communication devices may be different, and different data channels are used for transmitting short-range service data in different modes. In addition, it should not be understood that the communication method according to the present application requires the smart terminal as a master node to execute the steps performed by the first device in the communication method provided by the present application, and it should not be understood that the smart terminal as a slave node to execute the steps performed by the second device in the communication method provided by the present application, that is, the steps performed by the smart terminal and the mouse may be interchanged to execute the main body when executing the communication method provided by the present application.
Referring to fig. 4, the communication method may include the steps of:
s401: the second device transmits the first protocol service indication information to the first device. Accordingly, the first device receives the first protocol service indication information sent by the second device.
In this application, the first protocol service indication information may be used to indicate the first protocol stack. The first protocol service indication information may be specifically used to indicate that first data to be sent comes from a first protocol stack, or that the first data to be sent corresponds to a first protocol, or that the first data to be sent corresponds to a first service. It is to be understood that an application may also be understood as a service. Such as audio applications, video applications, etc.
It should be understood that, in the embodiment of the present application, the first protocol service indication information may be, for example, an identifier of the first protocol or the first service, or may be other information used for indicating the first protocol or the first service, which is not limited in this application. In this application, the first protocol or the first service may be implemented by a functional unit or module supporting the first protocol or the first service in the second device/the first device, the functional unit or module supporting the first protocol or the first service may also be referred to as a first protocol stack, and the protocol stacks supported by the first device and/or the second device are not limited to one.
In this application, for example, the first protocol stack may be a protocol stack corresponding to one layer of an upper layer (including an application layer, a transport layer, a network layer, and the like) of an access layer, and may also be a protocol stack corresponding to an access layer (for example, an L2CAP layer, an LL layer, or a MAC layer), which is not limited in this application.
In this application, the first protocol service indication information may be included in a relevant field in a relevant message sent by the second apparatus. For example, in the bluetooth protocol, the first protocol service indication information may be located in a protocol/service multiplex (PSM) field, and different values of the PSM field may indicate different protocols or protocol stacks. After receiving the first protocol service indication information, the first apparatus may determine from which protocol stack the data comes through the PSM field. Illustratively, the PSM value of 0x0001 corresponds to the service discovery protocol, the PSM value of 0x0017 corresponds to the audio/video control transmission protocol, and the PSM value of 0x0019 corresponds to the audio/video distribution transmission protocol.
It is understood that, before implementing S401, step 1 may also be included: a physical short-range communication connection is established between the first device and the second device. The specific implementation process of step 1 may include: the first device transmits a connection request to the second device, the connection request being for requesting establishment of a short-range communication connection. Optionally, the connection establishment request may include communication resources (e.g., transmission resources, where the transmission resources may include time-domain resources, frequency-domain resources, or time-frequency resources) configured by the first apparatus for the second apparatus. The second apparatus may communicate information with the first apparatus using the communication resources. Optionally, after the second device receives the request for establishing the connection from the first device, the second device feeds back a connection response (or called a connection response) to the first device, where the connection response is used to indicate whether the short-range communication connection is established with the first device or not. Or when the second device agrees to establish the connection with the first device, sending a connection establishment response for indicating agreement to establish the connection with the first device. The connection establishment response may not be issued when the second device does not agree to establish a connection with the first device. It should be noted that, in step 1, the first device initiates the request for establishing connection is taken as an example, it may be understood that the second device may also initiate the request for establishing connection to the first device, and the embodiment of the present application is not limited. The connection request may be sent in a broadcast manner, and the connection response fed back for the connection request may be sent in a unicast manner.
S402: the first device transmits first information to the second device. Accordingly, the first device receives the first information sent by the first device.
In this application, optionally, after receiving the first protocol service indication information, the first apparatus may know a first protocol stack used by the second apparatus. According to the first protocol stack, the first device may perform communication configuration for the second device, and the first information may include related information indicating a corresponding parameter or resource configured by the first device for the second device, so that the second device performs data transmission with the first device based on the configured corresponding parameter or resource. The configured corresponding parameter of the first apparatus may be used to establish a data channel between the second apparatus and the first apparatus, and the configured corresponding resource may be used to transmit the first data from the first protocol stack between the second apparatus and the first apparatus.
It should be understood that, in the present application, the first data from the first protocol stack, which may also be understood as the first data processed by using the first protocol, may refer to data transparently transmitted by the first protocol stack, or may refer to a data frame structure processed by encapsulating frame headers by the first protocol stack, which will be described in detail below with reference to the drawings and the embodiments, and will not be repeated herein.
For example, the respective parameters or resources configured by the first apparatus for the second apparatus may include, but are not limited to: a first transmission mode adapted to the first protocol, a first channel number, a first data length, a first radio transmission resource (e.g., time-frequency resource), etc. In practical applications, the first apparatus may carry information indicating at least one of the above-mentioned corresponding parameters or resources in the first information.
In this application, as an example, the first information may specifically include the following situations:
case 1: the first information may be used to indicate a first transmission mode corresponding to the first protocol service indication information.
The first transmission mode has a corresponding first data frame structure, a first channel number, a first wireless transmission resource, and the like. The first data frame structure may be used to define a data frame structure adopted when the second apparatus transmits the first data from the first protocol stack to the first apparatus in the first transmission mode, for example, at least one field included in the data frame structure, a length of the at least one field, specific content carried by the at least one field, and the like. The logical channel corresponding to the first channel number may be used to transmit the first data from the first protocol stack. The first wireless transmission resource is used for transmitting over-the-air data packets obtained based on the first data frame structure. The second device may transmit the first data from the first protocol stack to the first device by using the first transmission mode, and the first data frame structure, the first channel number, the first wireless transmission resource, and the like corresponding to the first transmission mode according to the indication of the first information.
It should be noted that: the correspondence between the first transmission mode and the first protocol service indication information may be explicit or implicit. For example, the corresponding relationship between the first protocol service indication information and the first channel number may be configured through the first signaling, and the corresponding relationship between the first channel number and the first transmission mode may be configured through the second signaling, or the corresponding relationship between the first protocol service indication information and the first transmission mode may be indirectly obtained. At this time, the correspondence between the first transmission mode and the first protocol service indication information may be understood as implicit.
Optionally, in a single data transmission, the first protocol service indication information corresponds to only one transmission mode, i.e. the first transmission mode.
Case 2: the first information may be used to indicate a first transmission mode corresponding to the first protocol service indication information, and may also be used to indicate at least one of a first channel number, a first data length, a first wireless transmission resource, and the like.
The first transmission mode corresponds to first protocol service indication information and has a corresponding first data frame structure. The first channel number corresponds to the first protocol service indication information, and a logical channel corresponding to the first channel number may be used to transmit first data from a first protocol stack. The first data length corresponds to the first protocol service indication information for indicating a length of a payload in a first data frame structure. The first radio transmission resource is used for transmitting over-the-air data packets obtained based on a first data frame structure. The second apparatus may transmit the first data from the first protocol stack to the first apparatus using the first transmission mode, the first channel number, the first data length, the first wireless transmission resource, and the like, according to the indication of the first information.
It should be understood that, in implementing S402, in particular, the first information may include a first transmission mode identification or index to indicate the first transmission mode; alternatively, the first information may include a first channel number to indicate the first channel number; alternatively, the first information may include a first value to indicate the first data length; alternatively, the first information may include information such as a resource index to indicate the first wireless transmission resource, and the indication manner of the corresponding parameter or resource is not limited in the present application.
Optionally, the first information may further include another information length, where the another information length may be a length of another information (for example, an access address, a channel number, and the like) in the first data frame structure corresponding to the first transmission mode.
It is to be understood that, in the present application, the transmission mode suitable for the first protocol may not be limited to one, and in another possible manner, the second device may negotiate, with the first device, information such as a transmission mode and a data length used by both parties for data transmission.
Specifically, referring to fig. 5, before receiving the first information sent by the first device, the second device may perform the following negotiation steps:
s501: the second device sends second information to the first device.
The second information may be included in a configuration negotiation request (configuration request) transmitted from the second device to the first device.
The second information may be used to indicate at least one of a second transmission mode, a second channel number, a second data length, and the like. The second transmission mode is used to characterize a transmission mode expected by the second apparatus, the second channel number is used to characterize a channel number expected by the second apparatus, the second data length is the length of a payload in a second data frame structure corresponding to the second transmission mode, and the second transmission mode may be the same as or different from the first transmission mode. Optionally, the second information may further include another information length, where the another information length is a length of another information (for example, an access address, a channel number, and the like) in the second data frame structure corresponding to the second transmission mode.
S502: the first device feeds back response information to the second device in response to the received second information.
The response information may be included in a configuration negotiation response (connection reply) transmitted by the first apparatus to the second apparatus.
The acknowledgement information may be used to indicate that the first apparatus agrees or disagrees with the second apparatus to transmit the first data to the first apparatus based on the second transmission mode, the second channel number, the second data length, and so on.
It should be understood that, in the present application, the second information may include a transmission mode identifier or index to indicate the second transmission mode; or, the second information may include a CID to indicate the second logical channel; alternatively, the second information may include a second value to indicate the second data length. In a negotiation scenario, the reply information may include the same information and indication information as the second information to characterize whether the first apparatus agrees or disagrees with the second apparatus to transmit the first data to the first apparatus based on the second transmission mode, the second data length, and the like. For example, an indication of 1 indicates agreement and 0 indicates disagreement. Alternatively, the response information may include the same information as the second information without the indication information if the first device agrees; if the first device disagrees, the response message may include the same information as the second message and indication information indicating that the first device disagrees with the negotiation. Or, with the opposite rule, if the first device agrees, the response message may include the same information as the second message and indication information, and the indication information is used to indicate that the first device agrees to the negotiation; if the first device does not agree, the response message may include the same information as the second message described above, but does not include the indication information.
Optionally, in a case that the first device does not agree with the negotiation, the second device may continue to initiate a negotiation request to negotiate with the first device for determining parameters such as a transmission mode, a channel number, a data length, and the like until the first device agrees. Or, after receiving the second information, the first apparatus may carry an identifier or an index of a third transmission mode, a third channel number, a third value, and the like in response information fed back to the second apparatus, so as to indicate a transmission mode, a logical channel, a data length, and the like configured for the second apparatus by the first apparatus. The second device may also send feedback to the first device to indicate that the second device agrees or disagrees with the configuration of the first device, and if the second device disagrees with the configuration of the first device, the second device may continue to perform negotiation until the two devices complete a negotiation process of information such as a transmission mode and a data length used for data transmission. It is to be understood that the response message may be the first message.
In implementation, the negotiation of the corresponding parameter or resource may be completed through one interaction between the second device and the first device, or the negotiation of different parameters or resources may be completed through two or more interactions, which is not limited in this application.
It should be noted that step S502 is an optional step.
S403: the second device transmits the first data from the first protocol stack to the first device according to a first data frame structure corresponding to the first transmission mode.
Accordingly, the first device receives the first data from the second device.
It can be understood that, in the present application, an over-the-air data packet transmitted between the second device and the first device is obtained by performing an encapsulation frame header process on the first data from the first protocol stack by using the first data frame structure, and after the first device receives the first data packet, the peer layer of the first device may parse the frame header to obtain the first data.
In the present application, in order to reduce overhead and improve transmission efficiency of service data, a frame structure of a related protocol layer for transmitting first data from a first protocol stack may be designed, so that after data from the first protocol stack is encapsulated based on the related protocol layer, a ratio of service data in an air data packet obtained finally is large, thereby obtaining high transmission efficiency of service data. It is understood that the relevant protocol layer herein may include a protocol layer corresponding to the first protocol stack, and may also include a lower layer of the protocol layer corresponding to the first protocol stack. For example, if the first protocol stack corresponds to one of an application layer, a transport layer, and a network layer, the relevant protocol layer may be an access layer, such as an L2CAP layer or an LL layer or a MAC layer. Alternatively, if the first protocol layer corresponds to the L2CAP layer, the related protocol layer may be the L2CAP layer or the LL layer. Alternatively, the related protocol layer may be a MAC layer, and the first protocol stack may be any upper layer of the MAC layer.
For the sake of understanding, the following detailed description is made in conjunction with the accompanying drawings and examples.
Example 1
Referring to fig. 6, the first data frame structure may be a first protocol layer frame structure, and the first protocol layer frame structure may include a channel number and/or transmission mode indication information, and a first protocol layer payload, where the channel number and/or transmission mode indication information corresponds to a length of the first protocol layer payload, and the first protocol layer payload may be used to carry first data. Optionally, the first protocol layer frame structure may be a first protocol layer Protocol Data Unit (PDU).
Since the channel number and/or the transmission mode indication information correspond to the length of the first protocol layer payload, the length of the first protocol layer payload may be implicitly indicated. For example, when the channel number is 00, the corresponding payload length is 24 bits; when the channel number is 01, the corresponding payload length is 48 bits. Or when the channel number is 00 or 01, the corresponding effective load length is 48 bits; when the channel number is 10 or 11, the corresponding payload length is 24 bits. Therefore, the first data frame structure does not need to include a field for carrying the first protocol layer payload length indication information, and therefore the first data frame does not need to reserve the field, so that the overhead of non-service data can be reduced while the two-party communication is realized, and the transmission efficiency of the service data is further improved.
In another possible embodiment, the channel number can only be used in combination with the transmission mode to indicate the length of the payload of the first protocol layer, for example, when the channel number is 00 and the transmission mode is the first transmission mode, the corresponding payload length is 24 bits; when the channel number is 00 but the transmission mode is the second transmission mode, there may be no correspondence between the number and the payload length.
In another possible embodiment, the transmission mode may also be used to indicate the length of the first protocol layer payload. For example, the first protocol layer payload length in the first transmission mode may be protocol agreed.
Illustratively, the first protocol layer frame structure may be an L2CAP layer frame structure.
Taking bluetooth protocol as an example, referring to fig. 6, since the channel number and/or the transmission mode indication information correspond to the length of the payload of the first protocol layer in the L2CAP layer frame structure, compared with fig. 2, the channel number and/or the transmission mode indication information may be included in the L2CAP layer frame structure without including the L2CAP layer length indication information. Therefore, based on the first protocol layer data frame structure shown in fig. 6, in a scenario that is applied to a BLE protocol stack and used for transmitting a short-distance packet service with high frequency and low delay, due to the reduction of data volume for carrying information other than service data, overhead can be reduced, and transmission efficiency of the service data can be improved.
Example two
In the protocol stack architecture, the first protocol layer may be higher than the second protocol layer, and the frame structure of the first protocol layer transferred by the first protocol layer may be marked with a corresponding frame header and CRC by the second protocol layer, so that the peer layer of the peer device may perform parsing and data checking on the frame structure. It is understood that the first data frame structure in this application may also be a second protocol layer frame structure.
Referring to fig. 6, a first protocol layer frame structure may be included in a second protocol layer frame structure, and the first protocol layer frame structure may include a channel number and/or transmission mode indication information corresponding to a length of a first protocol layer payload, and the first protocol layer payload may be used to carry first data. The second protocol layer frame structure may comprise a second protocol layer frame header, a second protocol layer payload for carrying the first protocol layer frame structure, and a CRC. Illustratively, the second protocol layer frame header may contain a pilot and an access address; alternatively, the header of the second protocol layer frame may contain pilot, access address and transmission mode indication information. Optionally, the second protocol layer frame structure may be a second protocol layer Protocol Data Unit (PDU).
Illustratively, the first protocol layer frame structure may be an L2CAP layer frame structure and the second protocol layer frame structure may be a LL layer frame structure.
Taking bluetooth protocol as an example, referring to fig. 6, the L2CAP layer frame structure includes channel numbers and/or transmission mode indication information, and L2CAP layer payload, and the LL layer frame structure includes pilot frequency, access address, transmission mode indication information (optional), LL layer payload, and CRC. In the present application, the transceiving two ends (i.e. the first device and the second device) can completely define the number of retransmissions, i.e. fixed number of transmissions is used, so that the receiving end does not need to feed back the service data sequence number and the expected next data sequence number in real time. That is, the frame header of the second protocol layer frame does not need to include a field for carrying a sequence number of data, for example, the current sequence number for indicating the current data and the next sequence number for indicating the next data shown in fig. 2 and fig. 7, the first data frame structure may not need to reserve the field, and may also reduce overhead, thereby further improving the transmission efficiency of the service data. When the first protocol layer data frame structure and the second protocol layer data frame structure shown in fig. 6 are applied to a short-distance small packet service scenario with high frequency and low delay requirements, in order to improve the reliability of data transmission, a general sending end may perform multiple retransmissions.
It is to be understood that, optionally, if the receiving end desires to perform real-time control on the data retransmission or the traffic, the frame header of the second protocol layer may further include fields for carrying a sequence number of the data, such as the current sequence number for indicating the current data and the next sequence number for indicating the next data shown in fig. 7, so as to instruct the first device to perform data retransmission or traffic control according to the current sequence number and the next sequence number, which is not limited in this application.
It should be understood that, in the present application, only the dashed box in fig. 6 schematically indicates that the field for carrying the transmission mode indication information may not be included in the header of the second protocol layer frame, and when the transmission mode indication information is already included in the frame structure of the first protocol layer, the transmission mode indication information may not be included in the header of the second protocol layer frame. Alternatively, when the first protocol layer frame structure does not contain the transmission mode indication information, the second protocol layer frame header may contain the transmission mode indication information. The fields that may or may not be included in the header of the second protocol layer frame for carrying the current sequence number and the next sequence number are only schematically indicated in fig. 7 by dashed boxes.
It can be understood that, if the data frame structure shown in fig. 6 is applied to the BLE protocol stack shown in fig. 1, the first transmission mode may be a new transmission mode designed for a short-distance packet service scenario (e.g., game and sports service) with high frequency and low latency, the first data frame structure may be a new data frame structure designed for the BLE protocol stack in the scenario, and the first data frame structure may refer to an L2CAP layer frame structure, may also refer to an LL layer frame structure, and may also refer to an L2CAP layer frame structure and an LL layer frame structure. Compared with the data frame structure shown in fig. 2, the data frame structure shown in fig. 6 does not need to include a field for carrying an L2CAP length indication in the L2CAP layer frame structure; the LL layer header may be omitted or may contain only transmission mode indication information, next sequence number, current sequence number. Based on the data frame structure shown in fig. 6, in a scenario where a BLE protocol stack is applied and used for transmitting a short-distance small packet service with high frequency and low time delay, due to the reduction of data volume of information other than service data, overhead can be reduced and transmission efficiency of service data can be improved.
Example three
In the second device, the first protocol stack may transparently transmit the service data to be transmitted, and before transmitting the service data, the bottom layer processes the data frame structure transmitted by the upper layer to generate the PDU.
Referring to fig. 8, the first data frame structure may be a third protocol layer frame structure (e.g., a MAC layer frame structure), and the third protocol layer frame structure may include a third protocol layer frame header, a third protocol layer payload and a Cyclic Redundancy Check (CRC), wherein the third protocol layer payload is used for carrying the first data, i.e., the traffic data. Illustratively, the third protocol layer frame header contains a pilot, an access address, and a channel number; or the frame header of the third protocol layer frame comprises pilot frequency, access address, channel number and transmission mode indication information. In this example, since the overhead of the operation on the service data by each upper protocol layer is reduced, and at the same time, the proportion of the non-service data in the data frame structure for transmitting the service data is reduced, the overhead can be reduced, and the transmission efficiency of the service data can be improved.
Alternatively, the third protocol layer frame structure may be a third protocol layer Protocol Data Unit (PDU).
Optionally, if the data size of the service data to be transmitted is large, the second device may further segment the service data to be transmitted, and accordingly, the first device may reassemble the received segmented data, and the frame header of the third protocol layer frame may further include a field for carrying information such as a sequence number and an offset of the segmented data, so that the receiving end may reassemble the data based on the sequence number and the offset indication information.
Optionally, if the receiving end desires to perform real-time control on traffic or data retransmission, the frame header of the third protocol layer frame may further include a field for carrying a sequence number of data and a next sequence number for indicating next data.
Example four
In order to reduce overhead and improve transmission efficiency of the traffic data, in the data frame structures shown in fig. 6 to 8, the length of the field for carrying the content of the non-traffic data may also be reduced.
For example, referring to fig. 9, in the data frame structures shown in fig. 6 to fig. 8, a short access address (short AA) and a short channel number (short channel ID, short CID) may be included to replace the access address and the channel number in the first data frame structure, respectively. For example, the field length corresponding to the short AA may be 4 bits, and the field length corresponding to the short CID may be 2 bits.
Still taking BLE protocol stack as an example, since the field length corresponding to the short AA is smaller than the field length (32 bit) corresponding to the AA, and the field length corresponding to the short CID is smaller than the field length (16 bit) corresponding to the CID, a lightweight frame header can be obtained, and frame header overhead can be effectively reduced, so that the data frame structure can effectively support lightweight packet data transmission, and improve response speed and quality of high-frequency and low-delay services (such as mouse services).
It is understood that, in the present application, the length of the field for carrying the content of the non-service data in fig. 9 may be corresponding to the first transmission mode. When the second device and the first device have agreed to transmit the first data based on the first transmission mode, the second device may transmit the first data to the first device based on the first data frame structure and the agreed field lengths in the first transmission mode. Or, the first information sent by the first device to the second device may further include information used to indicate lengths of fields other than the payload in the first data frame structure, so as to notify the second device of the lengths of the fields in the first data frame structure, so that the second device performs a frame header adding action according to the lengths of the fields, thereby obtaining the data frame structure to be sent. Or, the second apparatus and the first apparatus may also determine, through negotiation, a length of a field used for carrying content of non-service data in the first data frame structure, specifically, the second apparatus carries length information indicating the field carrying the content of the non-service data in second information sent to the first apparatus, and the first apparatus includes the same information in response information sent to the second apparatus, so as to indicate that the first apparatus agrees to the second apparatus to obtain the data frame structure to be sent using the corresponding field length. See the description above in connection with fig. 5 for details, which are not repeated here.
The communication system and the communication method implemented thereby have been described in detail in conjunction with fig. 3-9. In the communication scheme, the second device may instruct the first device to configure the first transmission mode for the first protocol stack by sending the first protocol service indication information to the first device, so that the second device may transmit the first data by using the first data frame structure corresponding to the first transmission mode, and as the designed first data frame structure may selectively ignore the content of the non-service data or change the length of the field carrying the non-service data, unnecessary overhead may be reduced, so that the proportion of the service data is greater than that of the non-service data, thereby improving the transmission efficiency of the service data. When the scheme is applied to a short-distance packet service scene (such as game competitive service) with high frequency and low time delay, the data volume of other information except service data is reduced, so that the transmission of the lightweight packet data can be effectively supported, and the response speed and quality of the service are improved.
The following describes the device provided by the embodiment of the present application in detail with reference to fig. 10 and 11. It is to be understood that the description of the apparatus embodiments corresponds to the description of the method embodiments. Therefore, contents not described in detail can be referred to each other.
Fig. 10 is a schematic block diagram of an apparatus 1000 provided in an embodiment of the present application, for implementing the functions of the first apparatus or the second apparatus in the above method embodiments. The device may be a software module or a system-on-a-chip, for example. The chip may be formed of a chip, or may include a chip and other discrete devices. The device 1000 comprises a processing unit 1001 and a communication unit 1002. The communication unit 1002 is used for communicating with other devices, and may also be referred to as a communication interface, a transceiver unit, an input/output interface, or the like.
In some embodiments, the apparatus 1000 may be configured to implement the functions of the second apparatus in the above method, and the apparatus 1000 may be the second apparatus, or a chip or a circuit configured in the second apparatus. The processing unit 1001 may be configured to perform processing related operations of the second apparatus in the above method embodiments, and the communication unit 1002 is configured to instruct transceiving related operations of the second apparatus in the above method embodiments.
A communication unit 1002, configured to send first protocol service indication information to a first apparatus, where the first protocol service indication information is used to indicate a first protocol stack; receiving first information sent by the first device, wherein the first information is used for indicating a first transmission mode corresponding to the first protocol service indication information; a processing unit 1001, configured to send first data from a first protocol stack to a first device through the communication unit 1002 according to a first data frame structure corresponding to the first transmission mode.
Optionally, the first information further includes at least one of a first channel number and a first data length; wherein the first channel number corresponds to the first protocol service indication information; the first data length is a length of a payload in the first data frame structure.
Optionally, before receiving the first information sent by the first apparatus, the communication unit 1002 is further configured to: sending second information to the first apparatus, where the second information is used to indicate at least one of a second transmission mode and a second data length, the second transmission mode characterizes a transmission mode expected by a second apparatus, and the second data length is a length of a payload in a second data frame structure corresponding to the second transmission mode; wherein the second transmission mode is the same as or different from the first transmission mode.
Optionally, the first data frame structure is a first protocol layer frame structure, and the first protocol layer frame structure includes a channel number and/or transmission mode indication information; the first protocol layer frame structure further comprises a first protocol layer payload; wherein the channel number and/or the transmission mode indication information correspond to a length of the first protocol layer payload, and the first protocol layer payload is used for carrying the first data.
Optionally, the first protocol layer frame structure may be a first protocol layer Protocol Data Unit (PDU).
Optionally, the first protocol layer frame structure is included in a second protocol layer frame structure, and the second protocol layer frame structure includes a second protocol layer frame header, a second protocol layer payload, and a Cyclic Redundancy Check (CRC), where the second protocol layer payload is used to carry the first protocol layer frame structure.
Optionally, the second protocol layer frame structure may be a second protocol layer Protocol Data Unit (PDU).
Optionally, the frame header of the second protocol layer frame includes a pilot and an access address; or, the frame header of the second protocol layer frame contains pilot frequency, access address and transmission mode indication information.
Optionally, in the protocol stack architecture, the first protocol layer is higher than the second protocol layer.
Optionally, the first data frame structure is a third protocol layer frame structure, where the third protocol layer frame structure includes a third protocol layer frame header, a third protocol layer payload, and a Cyclic Redundancy Check (CRC), and the third protocol layer payload is used to carry the first data.
Optionally, the third protocol layer frame structure may be a third protocol layer Protocol Data Unit (PDU).
Optionally, the frame header of the third protocol layer frame includes a pilot, an access address, and a channel number; or the frame header of the third protocol layer frame comprises pilot frequency, access address, channel number and transmission mode indication information.
In other embodiments, the apparatus 1000 may be used to implement the functions of the first apparatus in the above method embodiments, and the apparatus 1000 may be the first apparatus, or a chip or a circuit configured in the first apparatus. The processing unit 1001 may be configured to perform processing-related operations of the first device in the above method embodiments, and the communication unit 1002 may be configured to perform transceiving-related operations of the first device in the above method embodiments.
For example, the communication unit 1002 is configured to receive first protocol service indication information sent by the second apparatus, where the first protocol service indication information is used to indicate a first protocol stack; transmitting first information to the second apparatus, the first information indicating a first transmission mode corresponding to the first protocol service indication information; receiving first data from the second apparatus, wherein the first data employs a first data frame structure corresponding to the first transmission mode.
Optionally, the first information further includes at least one of a first channel number and a first data length; wherein the first channel number corresponds to the first protocol service indication information; the first data length is a length of a payload in the first data frame structure.
Optionally, before the communication unit 1002 sends the first information to the second apparatus, the communication unit is further configured to: receiving second information sent by the second apparatus, where the second information is used to indicate at least one of a second transmission mode and a second data length, where the second transmission mode represents a transmission mode expected by the second apparatus, and the second data length is a length of a payload in a second data frame structure corresponding to the second transmission mode; wherein the second transmission mode is the same as or different from the first transmission mode.
Optionally, the first data frame structure is a first protocol layer frame structure, and the first protocol layer frame structure includes a channel number and/or transmission mode indication information; the first protocol layer frame structure further comprises a first protocol layer payload; wherein the channel number and/or the transmission mode indication information correspond to a length of the first protocol layer payload, and the first protocol layer payload is used for carrying the first data.
Optionally, the first protocol layer frame structure is included in a second protocol layer frame structure, where the second protocol layer frame structure includes a second protocol layer frame header, a second protocol layer payload, and a cyclic redundancy check CRC, and the second protocol layer payload is used to carry the first protocol layer frame structure.
Optionally, the frame header of the second protocol layer frame includes a pilot and an access address; or, the frame header of the second protocol layer frame contains pilot frequency, access address and transmission mode indication information.
Optionally, in the protocol stack architecture, the first protocol layer is higher than the second protocol layer.
Optionally, the first data frame structure is a third protocol layer frame structure, where the third protocol layer frame structure includes a third protocol layer frame header, a third protocol layer payload, and a Cyclic Redundancy Check (CRC), and the third protocol layer payload is used to carry the first data.
Optionally, the frame header of the third protocol layer frame includes a pilot, an access address, and a channel number; or, the frame header of the third protocol layer frame contains pilot frequency, access address, channel number and transmission mode indication information.
The division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation. In addition, in the embodiments of the present application, each functional unit may be integrated into one processor, or may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
Referring to fig. 11, fig. 11 is a schematic diagram of an apparatus 1100 according to an embodiment of the present disclosure, where the apparatus 1100 may be a node or a component in a node, such as a chip or an integrated circuit. The apparatus 1100 may include at least one processor 1102 and a communication interface 1104. Further, optionally, the apparatus may further comprise at least one memory 1101. Further, optionally, a bus 1103 may also be included. Wherein the memory 1101, processor 1102 and communication interface 1104 are coupled by a bus 1103.
The memory 1101 is used to provide a storage space, and data such as an operating system and a computer program may be stored in the storage space. The memory 1101 may be one or a combination of Random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or portable read-only memory (CD-ROM), among others.
The processor 1102 is a module for performing arithmetic operation and/or logical operation, and may specifically be one or a combination of multiple processing modules, such as a Central Processing Unit (CPU), a picture processing unit (GPU), a Microprocessor (MPU), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), a Complex Programmable Logic Device (CPLD), a coprocessor (which assists the central processing unit to complete corresponding processing and application), and a Micro Control Unit (MCU).
Communication interface 1104 may be used to provide information input or output to the at least one processor. And/or the communication interface may be used for receiving and/or transmitting data from/to the outside, and may be a wired link interface including, for example, an ethernet cable, and may also be a wireless link (Wi-Fi, bluetooth, general wireless transmission, vehicle-mounted short-range communication technology, etc.) interface. Optionally, communication interface 1104 may also include a transmitter (e.g., a radio frequency transmitter, antenna, etc.) or a receiver, etc. coupled to the interface.
In some embodiments, the apparatus 1100 may be the second apparatus or a component in the second apparatus, such as a chip or an integrated circuit, in the above method embodiments. The processor 1102 in the apparatus 1100 is configured to read the computer program stored in the memory 1101, and control the second apparatus to perform the following operations: sending first protocol service indication information to a first device, wherein the first protocol service indication information is used for indicating a first protocol stack; receiving first information sent by the first device, wherein the first information is used for indicating a first transmission mode corresponding to the first protocol service indication information; and transmitting the first data from the first protocol stack to the first device according to a first data frame structure corresponding to the first transmission mode. For specific details, reference may be made to the descriptions in the above method embodiments, which are not repeated herein.
In other embodiments, the apparatus 1100 may be the first apparatus or a component in the first apparatus in the above method embodiments, such as a chip or an integrated circuit. The processor 1102 in the apparatus 1100 is configured to read the computer program stored in the memory 1101, and control the first apparatus to perform the following operations: receiving first protocol service indication information sent by a second device, wherein the first protocol service indication information is used for indicating a first protocol; transmitting first information to the second apparatus, the first information indicating a first transmission mode corresponding to the first protocol service indication information; receiving first data from the second apparatus, wherein the first data employs a first data frame structure corresponding to the first transmission mode. For specific details, reference may be made to the descriptions in the above method embodiments, which are not repeated herein.
The embodiment of the application further provides a terminal, and the terminal can be an intelligent terminal such as a smart phone, a notebook computer and a tablet computer with a short-distance communication function, a mouse, a keyboard, an earphone, a sound box or a vehicle-mounted playing device. The terminal comprises a first device and/or a second device, which may be the first device and the second device, respectively, in the embodiment shown in fig. 3 described above. Wherein the first device and the second device may be of the same or different types.
Further, an apparatus is also provided in this embodiment of the present application, which includes means for implementing the embodiment shown in fig. 10 above. Alternatively, a processor and interface circuitry are included, the processor being configured to communicate with other devices via the interface circuitry and to perform the methods of the above method embodiments. Alternatively, the apparatus comprises a processor for invoking a program stored in a memory to perform the methods described in the above embodiments.
Embodiments of the present application further provide a computer-readable storage medium, which includes instructions that, when executed on a computer, cause the computer to perform the method described in the above embodiments.
An embodiment of the present application further provides a chip system, which includes at least one processor and an interface circuit. Further optionally, the chip system may further include a memory or an external memory. The processor is used for executing the interaction of instructions and/or data through the interface circuit to realize the method in the above method embodiment. The chip system may be formed by a chip, and may also include a chip and other discrete devices.
Embodiments of the present application also provide a computer program product, which includes instructions that, when executed on a computer, cause the computer to perform the method described in the above embodiments.
In the embodiments of the present application, the processor may be a general purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, a coprocessor, etc., and may implement or execute the methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor.
In the embodiment of the present application, the memory may be a nonvolatile memory, such as a Hard Disk Drive (HDD) or a solid-state drive (SSD), and may also be a volatile memory, for example, a random-access memory (RAM). The memory is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory in the embodiments of the present application may also be circuitry or any other device capable of performing a storage function for storing program instructions and/or data.
The methods provided in the embodiments of the present application may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, a network appliance, a user device, or other programmable apparatus. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a Digital Video Disk (DVD)), or a semiconductor medium (e.g., an SSD), among others.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (29)

1. A method of communication, the method comprising:
sending first protocol service indication information to a first device, wherein the first protocol service indication information is used for indicating a first protocol stack;
receiving first information sent by the first device, wherein the first information is used for indicating a first transmission mode corresponding to the first protocol service indication information;
and sending first data from the first protocol stack to a first device according to a first data frame structure corresponding to the first transmission mode, wherein the first data frame structure contains a channel number and/or transmission mode indication information and does not contain length indication information, the first data frame structure further comprises a payload, the channel number and/or the transmission mode indication information correspond to the length of the payload, and the payload is used for carrying the first data.
2. The method of claim 1, wherein the first information further comprises at least one of a first channel number, a first data length; wherein the first channel number corresponds to the first protocol service indication information; the first data length is a length of a payload in the first data frame structure.
3. The method of claim 1, wherein before receiving the first information sent by the first device, the method further comprises:
sending second information to the first apparatus, where the second information is used to indicate at least one of a second transmission mode and a second data length, and the second data length is a length of a payload in a second data frame structure corresponding to the second transmission mode; wherein the second transmission mode is the same as or different from the first transmission mode.
4. The method of any of claims 1-3, wherein the first data frame structure is a first protocol layer frame structure and the payload is a first protocol layer payload.
5. The method of claim 4, wherein the first protocol layer frame structure is included in a second protocol layer frame structure, the second protocol layer frame structure including a second protocol layer frame header, a second protocol layer payload, and a Cyclic Redundancy Check (CRC), wherein the second protocol layer payload is used to carry the first protocol layer frame structure.
6. The method of claim 5,
the frame head of the second protocol layer frame comprises a pilot frequency and an access address; alternatively, the first and second electrodes may be,
the frame head of the second protocol layer frame comprises pilot frequency, access address and transmission mode indication information.
7. The method of claim 4, wherein the first protocol layer is higher than the second protocol layer in the protocol stack architecture.
8. The method of claim 5, wherein the first protocol layer is higher than the second protocol layer in the protocol stack architecture.
9. The method of claim 6, wherein the first protocol layer is higher than the second protocol layer in the protocol stack architecture.
10. The method according to any of claims 1-3, wherein the first data frame structure is a third protocol layer frame structure, the payload is a third protocol layer payload, the third protocol layer frame structure further comprises a third protocol layer frame header and a Cyclic Redundancy Check (CRC), and the channel number and/or the transmission mode indication information is carried in the third protocol layer frame header.
11. The method of claim 10, wherein the third protocol layer frame header further comprises a pilot and an access address.
12. A method of communication, the method comprising:
receiving first protocol service indication information sent by a second device, wherein the first protocol service indication information is used for indicating a first protocol stack;
transmitting first information to the second apparatus, the first information being used for indicating a first transmission mode corresponding to the first protocol service indication information;
receiving first data from the second apparatus, wherein the first data employs a first data frame structure corresponding to the first transmission mode, the first data frame structure includes a channel number and/or transmission mode indication information and does not include length indication information, the first data frame structure further includes a payload, the channel number and/or the transmission mode indication information correspond to a length of the payload, and the payload is used for carrying the first data.
13. The method of claim 12, wherein the first information further comprises at least one of a first channel number, a first data length; wherein the first channel number corresponds to the first protocol service indication information; the first data length is a length of a payload in the first data frame structure.
14. The method of claim 12, wherein prior to sending the first information to the second apparatus, the method further comprises:
receiving second information sent by the second apparatus, where the second information is used to indicate at least one of a second transmission mode and a second data length, and the second data length is a length of a payload in a second data frame structure corresponding to the second transmission mode; wherein the second transmission mode is the same as or different from the first transmission mode.
15. The method of any of claims 12-14, wherein the first data frame structure is a first protocol layer frame structure and the payload is a first protocol layer payload.
16. The method of claim 15, wherein the first protocol layer frame structure is included in a second protocol layer frame structure, wherein the second protocol layer frame structure includes a second protocol layer frame header, a second protocol layer payload, and a Cyclic Redundancy Check (CRC), wherein the second protocol layer payload is used to carry the first protocol layer frame structure.
17. The method of claim 16,
the frame head of the second protocol layer frame comprises a pilot frequency and an access address; alternatively, the first and second electrodes may be,
the frame head of the second protocol layer frame comprises pilot frequency, access address and transmission mode indication information.
18. The method of claim 15, wherein the first protocol layer is higher than the second protocol layer in the protocol stack architecture.
19. The method of claim 16, wherein the first protocol layer is higher than the second protocol layer in the protocol stack architecture.
20. The method of claim 17, wherein the first protocol layer is higher than the second protocol layer in the protocol stack architecture.
21. The method according to any of claims 12-14, wherein the first data frame structure is a third protocol layer frame structure, the payload is a third protocol layer payload, and the third protocol layer frame structure further comprises a third protocol layer frame header and a Cyclic Redundancy Check (CRC), and the channel number and/or the transmission mode indication information is carried in the third protocol layer frame header.
22. The method of claim 21, wherein the third protocol layer frame header further comprises a pilot and an access address.
23. A communication apparatus, characterized in that it comprises means for implementing the method of any of claims 1-11.
24. A communication apparatus, characterized in that it comprises means for implementing the method of any of claims 12-22.
25. A system-on-chip comprising at least one processor and interface circuitry, the processor being configured to perform the interaction of instructions and/or data via the interface circuitry such that the system-on-chip performs the method of any of claims 1 to 11.
26. A chip system, comprising at least one processor and interface circuitry, the processor being configured to perform the interaction of instructions and/or data via the interface circuitry, such that the chip system performs the method of any of claims 12 to 22.
27. A terminal comprising the apparatus of claim 23 or the system-on-chip of claim 25, and/or the apparatus of claim 24 or the system-on-chip of claim 26.
28. A computer-readable storage medium having stored therein instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1 to 11.
29. A computer-readable storage medium having stored therein instructions which, when run on a computer, cause the computer to perform the method of any one of claims 12 to 22.
CN202180001452.XA 2021-03-31 2021-03-31 Communication method and device Active CN113228717B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/084761 WO2022205234A1 (en) 2021-03-31 2021-03-31 Communication method and apparatus

Publications (2)

Publication Number Publication Date
CN113228717A CN113228717A (en) 2021-08-06
CN113228717B true CN113228717B (en) 2022-10-04

Family

ID=77081265

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202180001452.XA Active CN113228717B (en) 2021-03-31 2021-03-31 Communication method and device

Country Status (2)

Country Link
CN (1) CN113228717B (en)
WO (1) WO2022205234A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554259A (en) * 2022-01-14 2022-05-27 海信视像科技股份有限公司 Control device, display device, and device information acquisition method
CN115100840B (en) * 2022-05-16 2024-01-12 深圳绿米联创科技有限公司 Equipment control method, device, electronic equipment and storage medium
CN116193411A (en) * 2023-02-02 2023-05-30 广东为辰信息科技有限公司 Modification and playback method of Bluetooth car control instruction

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1753404A (en) * 2004-09-23 2006-03-29 华为技术有限公司 Method of using communication apparatus to select communication protocol
CN101529827A (en) * 2006-10-27 2009-09-09 艾利森电话股份有限公司 Length indicator optimization
CN105991625A (en) * 2015-03-06 2016-10-05 电信科学技术研究院 Method and equipment for carrying out data transmission
CN106664312A (en) * 2016-11-04 2017-05-10 北京小米移动软件有限公司 Protocol data unit (PDU) pack generation method and apparatus
CN109495870A (en) * 2018-07-24 2019-03-19 华为机器有限公司 The method and apparatus of bluetooth test
CN109644373A (en) * 2017-08-11 2019-04-16 Oppo广东移动通信有限公司 Data transmission method and Related product
CN109804587A (en) * 2016-10-12 2019-05-24 高通股份有限公司 The user face header of streaming for High Data Rate
CN111869183A (en) * 2019-02-14 2020-10-30 联发科技股份有限公司 Simple Ethernet header compression

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242405A (en) * 2007-02-09 2008-08-13 中兴通讯股份有限公司 A generation method and structure for protocol data unit frame of media access control layer
US8849202B2 (en) * 2011-08-19 2014-09-30 Apple Inc. Audio transfer using the Bluetooth Low Energy standard
CN105282114B (en) * 2014-07-18 2020-07-24 北京新岸线移动多媒体技术有限公司 Data frame transmission method, sending device and receiving device
US10433328B2 (en) * 2015-07-20 2019-10-01 Lg Electronics Inc. Method for receiving a signal in wireless communication system and a device therefor
US10630432B2 (en) * 2015-10-13 2020-04-21 Lg Electronics Inc. Method and apparatus for transmitting or receiving sub-frame length information in wireless access system supporting non-licensed band
JP6707846B2 (en) * 2015-11-27 2020-06-10 カシオ計算機株式会社 Frame generation device, frame processing device, electronic timepiece, system, frame generation method, frame processing method, communication method, and program
CN109644428B (en) * 2016-08-31 2021-07-16 华为技术有限公司 Small data transmission method, related equipment and system
US11272391B2 (en) * 2017-02-03 2022-03-08 Apple Inc. Concatenation of service data units above a packet data convergence protocol layer
CN108184268B (en) * 2017-12-11 2020-09-01 北京邮电大学 Universal frame structure configuration method for service adaptation

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1753404A (en) * 2004-09-23 2006-03-29 华为技术有限公司 Method of using communication apparatus to select communication protocol
CN101529827A (en) * 2006-10-27 2009-09-09 艾利森电话股份有限公司 Length indicator optimization
CN105991625A (en) * 2015-03-06 2016-10-05 电信科学技术研究院 Method and equipment for carrying out data transmission
CN109804587A (en) * 2016-10-12 2019-05-24 高通股份有限公司 The user face header of streaming for High Data Rate
CN106664312A (en) * 2016-11-04 2017-05-10 北京小米移动软件有限公司 Protocol data unit (PDU) pack generation method and apparatus
CN109644373A (en) * 2017-08-11 2019-04-16 Oppo广东移动通信有限公司 Data transmission method and Related product
CN109495870A (en) * 2018-07-24 2019-03-19 华为机器有限公司 The method and apparatus of bluetooth test
CN111869183A (en) * 2019-02-14 2020-10-30 联发科技股份有限公司 Simple Ethernet header compression

Also Published As

Publication number Publication date
CN113228717A (en) 2021-08-06
WO2022205234A1 (en) 2022-10-06

Similar Documents

Publication Publication Date Title
CN113228717B (en) Communication method and device
CN113038528B (en) Base station for routing data packets to user equipment in a wireless communication system
WO2020192783A1 (en) Radio bearer configuration method, apparatus and system
JP2017518687A (en) Method and apparatus for incorporating a Bluetooth device into a neighbor aware network
CN108366355B (en) Data transmission method, data transmission terminal and base station
WO2021004191A1 (en) Method and apparatus for supporting time sensitive network
EP4391682A1 (en) Communication method, apparatus and system
WO2021203998A1 (en) Communication method and device
US20230247418A1 (en) Network edge computing method and communication apparatus
CN113630738A (en) Sidelink communication method and device
WO2023088009A1 (en) Data transmission method and communication apparatus
US20230072333A1 (en) Communications Method, Apparatus, and System
WO2023024119A1 (en) Data transmission method applied to short-range wireless communication, and communication device
WO2021238318A1 (en) Communication method and apparatus
CN112135329B (en) Parameter transmission method, device and system
WO2017177438A1 (en) Transmission method and apparatus for control information
CN112399400B (en) Method and equipment for reporting UDC information by UE
CN113841441B (en) Communication method and device
US20240214874A1 (en) Communication method, apparatus, and system
WO2024027615A1 (en) Communication method, communication apparatus, and communication system
WO2023056852A1 (en) Communication method, apparatus and system
JP7177287B2 (en) DATA TRANSMISSION METHOD AND APPARATUS, AND COMPUTER-READABLE STORAGE MEDIUM
WO2023246746A1 (en) Communication method and related device
WO2024093729A1 (en) Communication method and apparatus
WO2022257733A1 (en) Communication processing method and apparatus in network sharing scenario

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