WO2022205234A1 - Procédé et appareil de communication - Google Patents

Procédé et appareil de communication Download PDF

Info

Publication number
WO2022205234A1
WO2022205234A1 PCT/CN2021/084761 CN2021084761W WO2022205234A1 WO 2022205234 A1 WO2022205234 A1 WO 2022205234A1 CN 2021084761 W CN2021084761 W CN 2021084761W WO 2022205234 A1 WO2022205234 A1 WO 2022205234A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
protocol layer
protocol
frame structure
transmission mode
Prior art date
Application number
PCT/CN2021/084761
Other languages
English (en)
Chinese (zh)
Inventor
刘航
杨常青
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2021/084761 priority Critical patent/WO2022205234A1/fr
Priority to CN202180001452.XA priority patent/CN113228717B/zh
Publication of WO2022205234A1 publication Critical patent/WO2022205234A1/fr

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

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a communication method and device.
  • Bluetooth is the most common short-range communication method.
  • BLE Bluetooth low energy
  • true wireless stereo true wireless stereo
  • Wireless stereo TWS
  • the mouse business is mainly carried in the logical link control and adaptation protocol layer (logical link control&adaption protocol, L2CAP), and link layer (LL), after obtaining air data packets through layer-by-layer encapsulation, the data transmission effectiveness (that is, the ratio of the amount of data transmitted in a single time to the total amount of a single transmission) is less than 50%, and the overhead is relatively high. The transmission efficiency of large and business data is low.
  • L2CAP logical link control&adaption protocol
  • LL link layer
  • the present application provides a communication method and device, which help to reduce overhead and improve the transmission efficiency of service data in the scenarios of short-distance communication and small-packet services.
  • 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 indication information to the first device, so that the second device can use the first transmission mode corresponding to the first transmission mode.
  • the first data frame structure transmits the first data, because in the designed first data frame structure, the content of the non-service data can be selectively ignored, or the length of the field carrying the non-service data can be changed, which can reduce unnecessary overhead,
  • the proportion of business data is larger than that of non-business data, so as to improve the transmission efficiency of business data.
  • the method before receiving the first information sent by the first device, the method further includes: sending second information to the first device, where the second information is used to indicate the second At least one of a transmission mode and a second data length, the second transmission mode may represent a transmission mode expected by the second device, and the second data length is in the second data frame structure corresponding to the second transmission mode The length of the payload; wherein the second transmission mode is the same as or different from the first transmission mode.
  • the frame structure of the first protocol layer is included in the frame structure of the second protocol layer, and the frame structure of the second protocol layer includes the frame header of the second protocol layer and the payload of the second protocol layer and a cyclic redundancy check code CRC, wherein the second protocol layer payload is used to carry the first protocol layer frame structure.
  • the first protocol layer is higher than the second protocol layer.
  • the first protocol layer frame structure may be an L2CAP layer frame structure
  • the second protocol layer frame structure may be an LL layer frame structure.
  • the frame structure of the second protocol layer may be a protocol data unit (PDU) of the second protocol layer.
  • the frame header of the second protocol layer frame includes a pilot frequency and an access address; or, the frame header of the second protocol layer frame includes a pilot frequency, an access address and transmission mode indication information.
  • the first data frame structure is a third protocol layer frame structure
  • the third protocol layer frame structure includes a third protocol layer frame header, a third protocol layer payload and a cyclic redundancy A residual check code CRC, and the third protocol layer payload is used to carry the first data.
  • the frame header of the third protocol layer frame includes pilot frequency, access address and channel number; or, the frame header of the third protocol layer frame includes pilot frequency, access address, channel number and transmission mode indication information.
  • the frame structure of the third protocol layer may be a protocol data unit (PDU) of the third protocol layer.
  • PDU protocol data unit
  • the frame structure of the first protocol layer can be the frame structure of the third protocol layer, such as the frame structure of the MAC layer. Since the operation overhead of each upper protocol layer on the service data is reduced, at the same time, the data frame structure used for transmitting the service data is in the frame structure. The proportion of non-business data is reduced, which can reduce overhead and improve the transmission efficiency of business data.
  • 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 for the first protocol indicated by the first protocol service indication information, so that the second The apparatus can transmit the first data by using the first data frame structure corresponding to the first transmission mode, thereby reducing overhead and improving transmission efficiency.
  • 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 the length of the payload in the first data frame structure.
  • the first data frame structure is a first protocol layer frame structure, and the first protocol layer frame structure includes channel number and/or transmission mode indication information; the first protocol layer frame The structure further includes a first protocol layer payload; wherein the channel number and/or the transmission mode indication information corresponds to the length of the first protocol layer payload, and the first protocol layer payload is used to carry all Describe the first data.
  • the frame structure of the first protocol layer may be a protocol data unit (PDU) of the first protocol layer.
  • PDU protocol data unit
  • 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 includes a pilot frequency, an access address, and a channel number. and transmission mode indication.
  • an embodiment of the present application provides a communication device, which is used to implement the second aspect or any method in the second aspect, and includes corresponding functional modules or units, respectively used to implement the second aspect. steps in the method.
  • the functions can be implemented by hardware, or by executing corresponding software by hardware, and the hardware or software includes one or more modules or units corresponding to the above functions.
  • a communication apparatus including a processor and a memory.
  • the memory is used to store computing programs or instructions
  • the processor is coupled with the memory; when the processor executes the computer program or instructions, the apparatus is made to perform the first aspect or any one of the methods in the first aspect.
  • the communication device may be a first device or a device capable of supporting the functions required by the first device to implement the method provided in the first aspect, such as a chip system.
  • the communication device may be a terminal device or a part of a component (such as a chip) within the terminal device.
  • the terminal device may be, for example, a smart mobile terminal, a smart home device, a smart car, a smart wearable device, and the like.
  • a communication apparatus including a processor and a memory.
  • the memory is used to store computing programs or instructions
  • the processor is coupled to the memory; when the processor executes the computer program or instructions, the apparatus is made to execute the second aspect or any one of the methods in the second aspect.
  • the communication device may be a first device or a device capable of supporting the functions required by the first device to implement the method provided in the first aspect, such as a chip system.
  • the communication device may be a terminal device or a part of a component (such as a chip) within the terminal device.
  • the terminal device may be, for example, a smart mobile terminal, a smart home device, a smart car, a smart wearable device, and the like.
  • the intelligent mobile terminal is such as a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), and the like.
  • Smart home devices such as smart refrigerators, smart washing machines, smart TVs, speakers, etc.
  • Smart car wearable devices such as smart headphones, smart glasses, smart clothing or shoes, etc.
  • a terminal is provided, and the terminal may include the apparatus of the third aspect or the fifth aspect, and the apparatus of the fourth aspect or the sixth aspect.
  • the device may be smart home equipment, smart manufacturing equipment, smart transportation equipment, etc., such as vehicles, drones, unmanned transportation vehicles, automobiles and vehicles, etc., or robots, and the like.
  • the device may be a mouse, a keyboard, a wearable device, a TWS headset, or the like.
  • a computer-readable storage medium in which a computer program or instruction is stored, and when the computer program or instruction is executed by a device, the device is made to perform the above-mentioned first aspect or any of the first aspect.
  • a tenth aspect provides that the present application provides a computer program product, the computer program product comprising a computer program or instruction, when the computer program or instruction is executed by the apparatus, the apparatus is made to perform the above-mentioned first aspect or any possible possibility of the first aspect. method in the implementation.
  • the present application provides a computer program product, the computer program product includes a computer program or instruction, when the computer program or instruction is executed by the device, the device is made to perform the above-mentioned second aspect or any possibility of the second aspect. method in the implementation.
  • Figure 1 is a schematic diagram of an existing BLE protocol stack architecture
  • Fig. 2 is a schematic diagram of the frame structure of part of the protocol layer based on the BLE protocol stack;
  • FIG. 3 is a schematic diagram of a communication system provided by an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a communication method provided by an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a communication method provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a first data frame structure provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a first data frame structure provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a first data frame structure provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of some fields in a first data frame structure provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a communication device provided by an embodiment of the present application.
  • FIG. 11 is another schematic structural diagram of a communication apparatus provided by an embodiment of the present application.
  • a communication device is a device that provides data connectivity to a user, and may also be referred to as a communication device.
  • the communication device may be a terminal device, including a device that provides voice and/or data connectivity to the user, specifically, includes a device that provides voice and/or data connectivity to the user, or includes a device that provides data connectivity to the user, or includes A device that provides voice and data connectivity to the user. Examples include handheld devices with wireless connectivity, or processing devices connected to a wireless modem.
  • the terminal equipment may communicate with the core network via a radio access network (RAN), for example, and exchange voice and/or data with the RAN.
  • RAN radio access network
  • the terminal equipment may include vehicles, user equipment (UE), wireless terminal equipment, mobile terminal equipment, device-to-device (D2D) terminal equipment, vehicle to everything (V2X) Terminal equipment, machine-to-machine/machine-type communications (M2M/MTC) terminal equipment, Internet of things (IoT) terminal equipment, subscription unit (subscriber unit), subscription station (subscriber station), mobile station (mobile station), mobile station (mobile), remote station (remote station), access point (access point, AP), remote terminal equipment (remote terminal), access terminal equipment (access terminal) ), user terminal, user agent, or user device, etc.
  • IoT Internet of things
  • NB-IoT narrow band internet of things
  • PDA Personal Digital Assistant
  • constrained devices such as devices with lower power consumption, or devices with limited storage capacity, or devices with limited computing power, etc.
  • information sensing devices such as barcodes, radio frequency identification (RFID), sensors, global positioning system (GPS), and laser scanners.
  • RFID radio frequency identification
  • GPS global positioning system
  • the terminal device may also be a wearable device.
  • Wearable devices can also be called wearable smart devices or smart wearable devices, etc. It is a general term for the application of wearable technology to intelligently design daily wear and develop wearable devices, such as glasses, gloves, watches, clothing and shoes. Wait.
  • a wearable device is a portable device that is worn directly on the body or integrated into the user's clothing or accessories. Wearable device is not only a hardware device, but also realizes powerful functions through software support, data interaction, and cloud interaction.
  • wearable smart devices include full-featured, large-scale, complete or partial functions without relying on smart phones, such as smart watches or smart glasses, and only focus on a certain type of application function, which needs to cooperate with other devices such as smart phones. Use, such as all kinds of smart bracelets, smart helmets, smart jewelry, etc. for physical sign monitoring.
  • the various terminal devices described above if they are located on the vehicle (for example, placed in the vehicle or installed in the vehicle), can be considered as on-board terminal equipment.
  • the on-board terminal equipment is also called on-board unit (OBU). ).
  • the terminal device may further include a relay.
  • a relay any device capable of data communication with the base station can be regarded as a terminal device.
  • the communication device may include, but is not limited to, a smart terminal with a short-range communication function, such as a smart phone, a notebook, and a tablet computer, a mouse, a keyboard, an earphone, an audio system, or a vehicle-mounted playback device.
  • a smart terminal with a short-range communication function such as a smart phone, a notebook, and a tablet computer
  • a mouse a keyboard
  • an earphone an audio system
  • vehicle-mounted playback device a vehicle-mounted playback device.
  • the at least two communication devices may also be referred to as a first communication device, a second communication device, etc. second device, etc.
  • a communication connection between the first device and the second device may be implemented through some short-range communication technology.
  • the short-range communication technology may include, but is not limited to, Bluetooth (bluetooth) technology, wireless fidelity (Wi-Fi) technology, near field communication (NFC) technology, Wi-Fi Aware technology, general short-range communication technology, etc.
  • Short-distance communication has a large number of applications in file transmission, remote control, screen projection, and perception of surrounding devices. Examples of several short-range communication techniques are listed below.
  • Bluetooth A radio technology that supports short-range communication between devices, enabling wireless information exchange among many devices, including mobile phones, wireless headsets, notebook computers, and related peripherals. Using "Bluetooth" technology can effectively simplify the communication between mobile communication terminal devices, and can also successfully simplify the communication between the device and the Internet, so that data transmission becomes more rapid and efficient, and the road for wireless communication is widened.
  • Wireless fidelity Also known as wireless local area networks (WLAN) direct connection or Wi-Fi Direct, it is one of the Wi-Fi protocol suites that enables easy communication between devices. Connect to each other without intermediary wireless access points. Uses ranging from web browsing to file transfers and communicating with multiple devices simultaneously take full advantage of the speed benefits of Wi-Fi. Devices conforming to this standard can be easily interconnected even from different manufacturers.
  • WLAN wireless local area networks
  • Wi-Fi Aware technology responsible for the perception and discovery part of Wi-Fi technology, it can help Wi-Fi devices perceive surrounding services, such as surrounding devices, and then realize point-to-point between two devices in close proximity through Wi-Fi Aware (Peer to Peer, P2P) message interaction. Since WIFI-Aware can sense surrounding devices, it can realize various functions, such as sensing nearby people and establishing connections, then adding friends, playing the same game, etc.; or, discovering surrounding devices, realizing photo sharing or location sharing, and more; or securely send files to a printer without access to a network (such as cellular or wireless), and more.
  • a network such as cellular or wireless
  • the at least two communication apparatuses can also be divided into two types of nodes in terms of logical functions, that is, a master node and a slave node.
  • the master node can manage slave nodes, has resource allocation capability or resource scheduling capability, and is responsible for allocating resources to slave nodes or configuring related functions of slave nodes.
  • the slave node listens to the assignment or scheduling of the master node and communicates based on the resources allocated by the master node. It should be noted that the attribute characteristics of master and slave nodes may change.
  • the smart terminal when the smart terminal communicates with the mouse, the smart terminal is the master node and the mouse is the slave node; but when the smart terminal accesses other devices with higher priority and obeys the scheduling of other devices, the role attributes of the smart terminal are changed at this time. for the slave node.
  • the master node is the service initiator device, and the slave node is the service receiver device.
  • the master node can also be a service receiver device, and the slave node can be a service initiator device.
  • the communication device may also be a network device, for example, including an access network (access network, AN) device, such as a base station (for example, an access point), which may refer to an access network through an air interface through an or A device in which multiple cells communicate with wireless terminal devices, or, for example, a network device in a vehicle-to-everything (V2X) technology is a roadside unit (RSU).
  • the base station may be used to interconvert the received air frames and IP packets, acting as a router between the terminal equipment and the rest of the access network, which may include the IP network.
  • the RSU can be a fixed infrastructure entity supporting V2X applications and can exchange messages with other entities supporting V2X applications.
  • the network device can also coordinate the attribute management of the air interface.
  • the network equipment may include an evolved base station (NodeB or eNB or e-NodeB, evolutional Node B) in the LTE system or long term evolution-advanced (LTE-A), or may also include fifth generation mobile
  • the next generation node B (gNB) in the communication technology (the 5th generation, 5G) NR system (also referred to as the NR system) may also include a cloud radio access network (Cloud RAN) system
  • a centralized unit (centralized unit, CU) and a distributed unit (distributed unit, DU) in the embodiments of the present application are not limited.
  • the network equipment may also include core network equipment, for example, the core network equipment includes an access and mobility management function (AMF), a session management function (SMF) or a user plane function (user plane) in the 5G system function, UPF), etc., or include a mobility management entity (mobility management entity, MME) and the like in the 4G system.
  • AMF access and mobility management function
  • SMF session management function
  • UPF user plane function
  • MME mobility management entity
  • this application mainly includes data under short-range communication services, such as video data, audio data, control data, or other types of data transmitted through short-range communication.
  • data under short-range communication services such as video data, audio data, control data, or other types of data transmitted through short-range communication.
  • QoS Quality of Service
  • different logical channels can be established for different services to ensure the differentiated QoS requirements of different services. For example, separate logical channels are established for audio services and video services.
  • logical channel 1 corresponds to the first service
  • logical channel 2 corresponds to the second service.
  • the data of the first service cannot be multiplexed with logical channel 2
  • the data of the second service cannot be multiplexed with logical channel 1.
  • 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.
  • the time domain resources of transmission resource 1 and transmission resource 2 are different (for example, if the short-range communication system is a time-division system, then transmission resource 1 and transmission resource 2 are time-divisional).
  • the same logical channel can also be established for one or more services with similar QoS requirements, thereby reducing the number of logical channels and facilitating management.
  • a more generalized concept of logical channel is: multiple virtual channels divided according to different transmission contents of the physical channel, that is, the physical channel actually completes the transmission work, and the logical channel is used to define the transmission content.
  • logical channels can be divided into two categories: control channels and traffic channels. Control channels are used to transmit control plane information, and traffic channels are used to transmit user plane information (eg, traffic data).
  • a protocol is different from a protocol stack.
  • a protocol is a set of conventions that the executive body needs to follow.
  • a protocol stack is a unit or module that processes data through a protocol. The data generated by the protocol stack is processed by the lower layer (eg, the access layer) and sent.
  • a protocol stack can also be simply understood as a unit or module in a communication device (eg, a first device or a second device) that can process data by using a protocol.
  • the first protocol stack supports the first protocol, that is, the first protocol stack is a unit or module in the first device that uses the first protocol to process data.
  • the second protocol stack supports the second protocol, that is, the second protocol stack may be a unit or module in the first device that uses the second protocol to process data.
  • the first protocol stack and the second protocol stack may be the same unit or different units, which are not limited in this embodiment of the present application.
  • the protocols in this application are not limited only to protocols used for communication.
  • a network architecture of wireless communication technology may include one or more layers of an application layer, a transport layer, a network layer, and an access layer, and each layer may be referred to as a protocol layer.
  • the layers here are only a frame structure division, and are generally divided into three large layers, an upper layer, a middle layer and a bottom layer.
  • Different communication systems may have their own layer division methods, and may also have more specific and lower-level layer divisions, which are not specifically limited here.
  • the function of each layer can be implemented through one or more protocols.
  • the protocol of the network layer may include IPv4, etc.
  • the protocol of the access layer may include a logical link control and adaptation (logical link control & adaptation protocol, L2CAP) layer and/or a link (link, LL) layer, etc.
  • L2CAP logical link control & adaptation protocol
  • L2CAP link control & adaptation protocol
  • One protocol at each layer corresponds to one protocol stack.
  • the application layer is located above the network layer and the transport layer, and is used to provide application support to users.
  • the application layer is also used 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, and are used to establish a connection between the source node and the destination node and provide reliable end-to-end data transmission services.
  • the application layer, the transport layer, and the network layer correspond to at least one of layers 3 to 7 of the Open System Internet Reference Model (open system interconnect, OSI).
  • Layer 3 is the network layer: responsible for routing to determine the path between two nodes.
  • the network layer can also perform flow control;
  • layer 4 is the transport layer: responsible for providing a network line for the session layer, that is, a transmission path;
  • layer 5 is the session layer (session layer): responsible for the session between the two nodes Establishment, maintenance and termination;
  • layer 6 is the presentation layer: responsible for encoding or decoding the data, thereby converting the data into a format compatible or suitable for transmission; optionally, the presentation layer can decrypt and encrypt the data;
  • Layer 7 is the application layer: responsible for providing services to applications (also known as applications or users).
  • the access layer can provide communication interfaces/means for communication between nodes.
  • the access layer may include a variety of different access technologies, and different access technologies may correspond to different communication interfaces, such as cellular interfaces, WIFI interfaces, etc.
  • the access layer corresponds to the data link layer and the physical layer.
  • Data link layer Ensures reliable data transmission over physical links. Data or instructions are encapsulated into specific frames that can be transmitted by the physical layer; optionally, the data link layer also includes functions such as access control, resource management, data segmentation, concatenation, and error correction.
  • the data link layer may include a logical link control and adaptation protocol (logical link control and adaptation protocol, L2CAP) layer and a logical layer (logical layer, LL) layer.
  • L2CAP logical link control and adaptation protocol
  • LL logical layer
  • L2CAP logical link control and adaptation protocol
  • L2CAP logical link control and adaptation protocol
  • L2CAP logical link control and adaptation protocol
  • LL layer is responsible for resource management and allocation.
  • Physical layer Use the transmission medium to provide physical connection for the data link layer to realize the transparent transmission of the bit stream. Generally, the physical layer performs channel coding or decoding to ensure the reliability of data transmission.
  • the L2CAP layer may be used to provide a transmission adaptation function with different networks and/or transmission protocols. For example, receive a data packet from the bottom layer (the protocol layer below the L2CAP layer), distinguish the protocol type of the upper layer (the protocol layer above the L2CAP layer) to which the data packet belongs, and deliver (or pass) the data packet to the corresponding upper-layer protocol processing.
  • the L2CAP layer is a logical function layer, and in implementation, it may also be included in the network layer and the transport layer, which is not limited in this application.
  • 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, a transport layer, or an application layer.
  • the process of transmitting data packets from the upper layer to the lower layer can be called transmission.
  • the process of transmitting data packets from the lower layer to the upper layer can be called delivery.
  • the corresponding data packet header (or frame header) needs to be marked on the data packet transmitted by the upper layer, so as to facilitate the analysis of it by the peer layer of the peer device.
  • the LL layer of the sender device is in the The LL layer header is added to the data packet, and the LL layer header needs to be parsed at the LL layer of the receiving end device.
  • the data packet may be called a service data unit (SDU), and after the header is added, it may be called a protocol data unit (protocol data unit, PDU).
  • SDU service data unit
  • PDU protocol data unit
  • the data packet transmitted by the L2CAP layer received by the LL layer can be called an LL SDU (also called an L2CAP PDU); after the LL adds a header to the data packet, the data packet after adding the header is called an LL PDU.
  • the LL can remove the header of the received LL PDU (also called PHY SDU), obtain the LL SDU, and deliver the LL SDU to the upper layer.
  • the PDU generated by the protocol layer only contains SDUs.
  • transparent transmission means that the protocol layer does not encapsulate the header of the SDU (also called the upper layer PDU) from the upper layer, and directly transmits the SDU of the current layer to the lower layer as the layer PDU.
  • Transparent transmission can also be called transparent transmission or pass-through. It can be understood that transparent transmission means that the content of service data is not changed during communication, such as not segmenting, concatenating, splicing, reordering, adding packet headers, etc. The original content is transferred from the source address to the destination address.
  • transparent transmission means that the protocol layer does not decapsulate the lower-layer SDU (also known as the local-layer PDU) submitted by the lower-layer, and directly submits the local-layer PDU as the local-layer SDU to the upper layer.
  • the protocol layer does not decapsulate the lower-layer SDU (also known as the local-layer PDU) submitted by the lower-layer, and directly submits the local-layer PDU as the local-layer SDU to the upper layer.
  • the protocol layer (such as the LL layer) at the transmitting end may encrypt the transmission data
  • the protocol layer (such as the LL layer) at the receiving end may decrypt the data.
  • the algorithms, parameters, etc. used for encryption and decryption may be pre-agreed or defined in the agreement between the sender and the receiver.
  • the protocol layer of the sender may add a cyclic redundancy check (CRC) check code to the transmission data, so that the protocol layer corresponding to the receiver can check the data.
  • CRC cyclic redundancy check
  • the algorithm and parameters used in the CRC check operation may be pre-agreed by the master node and the slave node or defined in the agreement.
  • the CRC check code can be added at the end of the transmitted data.
  • the first protocol stack may be a protocol stack corresponding to a layer of the upper layer of the access layer (including the application layer, the transport layer, and the network layer, etc.), or may be the access layer (for example, the L2CAP layer or the LL layer) or a protocol stack corresponding to media access control (media access control, MAC layer), which is not limited in this application.
  • At least one refers to one, or more than one (including multiple, refers to two or more), that is, including one, two, three and more.
  • Carrying may refer to a message used to carry information or data, or may refer to what information the message consists of, or what information is contained in the message.
  • Bluetooth is the most common short-range communication method. Due to its low power consumption and low cost, Bluetooth low energy (BLE) is widely used in mice, keyboards, wearable devices, true wireless stereo (true wireless stereo). stereo, TWS) headphones and other connections are widely used.
  • BLE Bluetooth low energy
  • FIG. 1 is a schematic diagram of an existing BLE protocol stack architecture.
  • the BLE protocol stack architecture may specifically include a physical (PHY) layer, a link (link, LL) layer, a direct test mode (direct test mode), a host controller interface (HCI) layer, and a general access profile.
  • PHY physical
  • link link
  • LL link
  • HCI host controller interface
  • GAP general access profile
  • L2CAP logical link control and adaptation protocol
  • security manager security management
  • attribute protocol attribute protocol
  • ATT generic attribute configuration file
  • GATT generic attribute configuration file
  • the controller is used to define the specifications of partial hardware such as radio frequency (RF) and baseband (Baseband), and abstract the logical link for communication on it;
  • the host is used to On the basis of the logical link, a more friendly encapsulation is carried out to shield the details of the Bluetooth technology, making the use of the Bluetooth application more convenient.
  • the application data is encapsulated layer by layer through the BLE protocol stack to obtain air data packets that satisfy the BLE protocol stack.
  • the data frame structure corresponding to the L2CAP layer may include the following fields:
  • L2CAP layer length (length) indication (16 bits (bit): used to indicate the length of the L2CAP layer service data unit (service date unit, SDU), excluding header information;
  • Channel ID 16bit
  • L2CAP layer payload information payload: used to carry business data.
  • Preamble 8bit, i.e. 1 byte: used to perform physical layer functions such as synchronization;
  • Access address (32bit): used to indicate the access code, used to identify the sender/user corresponding to the data packet;
  • the LL layer header includes, for example: Data/control information indication, next sequence number, current sequence number, whether there is more data, LL layer length indication, etc.;
  • Cyclic redundancy check code (cyclic redundancy check, CRC) (24bit): cyclic redundancy check bit, located at the end of the transmitted data, used for data verification.
  • the transmission frequency of a wired mouse is 1KHz, that is, the transmission period is 1ms, and the amount of data transmitted in a single transmission is about tens to hundreds of bits (also called short-distance small packet service).
  • the BLE protocol stack and Bluetooth mouse are used to support traditional competitive mouse services, that is, the BLE solution is applied in the short-distance communication and small packet business scenarios, according to the BLE protocol stack shown in Figure 1 and the data of each protocol layer shown in Figure 2 Frame structure, after the service data to be transmitted is encapsulated layer by layer to obtain air data packets, the transmission effectiveness (ie transmission efficiency) of the corresponding service data transmitted through the air data packets is calculated by the following expression (1):
  • the calculated transmission efficiency is lower than 50%. It can be seen that when the current BLE protocol stack is applied to the scenarios of short-distance communication and small packet services, there are problems of high overhead and low transmission efficiency of service data.
  • the embodiments of the present application provide a communication method and apparatus, which help to reduce overhead and improve transmission efficiency in scenarios of short-distance communication and small-packet services.
  • the method and the device are based on the same technical concept. Since the principles of the method and the device to solve the problem are similar, the implementation of the device and the method can be referred to each other, and the repetition will not be repeated.
  • FIG. 3 shows a schematic diagram of a communication system to which this embodiment of the present application is applicable.
  • the communication system includes a first device 301 and a second device 302, and short-distance communication can be implemented between the first device 301 and the second device 302.
  • the first device 301 may serve as a master node
  • the second device 302 may serve as a slave node.
  • the first device 301 and the second device 302 may be Bluetooth communication devices, and may execute BLE services (eg, BLE-based audio services, video services, etc.) and/or transmit BLE service data based on Bluetooth-related protocols.
  • BLE services eg, BLE-based audio services, video services, etc.
  • 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 services based on the supported corresponding communication protocols data.
  • the services involved in the embodiments of the present application are only games and competitive services.
  • the service scenarios applicable to this application may also include other services, which may be audio services, video services or other types of services.
  • the communication method involved in the present application requires an intelligent terminal as the 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 mouse must be used as the slave node.
  • the node executes the steps executed by the second device in the communication method provided by the present application, that is, when executing the communication method provided by the present application, the steps executed by the smart terminal and the mouse can exchange execution subjects.
  • the communication method may include the following steps:
  • S401 The second device sends the first protocol service indication information to the first device.
  • the first device receives the first protocol service indication information sent by the second device.
  • the first protocol service indication information may be, for example, the identifier of the first protocol or the first service, or may be other information used to indicate the first protocol or the first service.
  • the first protocol or the first service may be implemented by a functional unit or module that supports the first protocol or the first service in the second device/first device, and supports the function of the first protocol or the first service
  • the unit or module may also be referred to as a first protocol stack, and the protocol stack supported by the first device and/or the second device is not limited to one.
  • the first protocol stack may be a protocol stack corresponding to a layer of the upper layer of the access layer (including the application layer, the transport layer, and the network layer, etc.), or may be the access layer (for example, the L2CAP layer or the LL layer) or MAC layer) corresponding protocol stack, which is not limited in this application.
  • step 1 may also be included: establishing a physical short-distance communication connection between the first device and the second device.
  • the specific implementation process of step 1 may include: the first device sends a connection request to the second device, and the connection establishment request is used to request the establishment of a short-distance communication connection.
  • the connection establishment request may include communication resources (eg, transmission resources, which may include time domain resources, frequency domain resources, or time-frequency resources) configured by the first device for the second device.
  • the second device may use the communication resource for information transmission with the first device.
  • the second device feeds back a connection response (or a connection response) to the first device, where the connection response is used to indicate agreement or disagreement with the first device.
  • the device establishes the short-range communication connection.
  • a connection establishment response is sent to indicate that it agrees to establish a connection with the first device.
  • the second device does not agree to establish a connection with the first device, it may also not send a connection establishment response.
  • the first device initiates a connection establishment request as an example.
  • the second device may also initiate a connection establishment request to the first device, which is not limited in this embodiment of the present application.
  • the connection request may be sent in a broadcast manner, and the connection response fed back to the connection request may be sent in a unicast manner.
  • the first device sends the first information to the second device.
  • the first device receives the first information sent by the first device.
  • the first device may know the first protocol stack adopted by the second device.
  • the first device may perform communication configuration for the second device, and the first information may include relevant information for indicating corresponding parameters or resources configured by the first device for the second device, so that the second device The device performs data transmission with the first device based on the configured corresponding parameters or resources.
  • the corresponding parameters configured by the first device can be used for establishing a data channel between the second device and the first device, and the corresponding resources configured can be used for transmitting data from the first protocol stack between the second device and the first device. first data.
  • the first data from the first protocol stack can also be understood as the first data processed using the first protocol, which may refer to the data transparently transmitted through the first protocol stack, or the first data through the first protocol stack.
  • the data frame structure processed by the encapsulation frame header of the protocol stack will be described in detail below with reference to the accompanying drawings and embodiments, and will not be repeated here for the time being.
  • the corresponding parameters or resources configured by the first device for the second device may include, but are not limited to: a first transmission mode suitable for the first protocol, a first channel number, a first data length, a first wireless transmission resource (for example, time-frequency resources), etc.
  • the first apparatus may carry information used to indicate at least one of the foregoing corresponding parameters or resources in the first information.
  • the first information may specifically include the following situations:
  • 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 the data frame structure used by the second device when sending the first data from the first protocol stack to the first device in the first transmission mode, for example, the data frame structure includes At least one field of the at least one field, the length of the at least one field, the specific content carried by the at least one field, and the like.
  • the logical channel corresponding to the first channel number can be used to transmit the first data from the first protocol stack.
  • the first wireless transmission resource is used to transmit the air data packet obtained based on the first data frame structure.
  • the second device can use the first transmission mode, and the first data frame structure, the first channel number, the first wireless transmission resource, etc. corresponding to the first transmission mode, to transmit the data from the first transmission mode to the first device.
  • the first data of a protocol stack is a protocol stack.
  • the correspondence between the first transmission mode and the first protocol service indication information may be explicit or implicit.
  • the first protocol service indication can also be obtained indirectly.
  • the correspondence between the information and the first transmission mode At this time, the correspondence between the first transmission mode and the first protocol service indication information can be understood as implicit.
  • the first protocol service indication information corresponds to only one transmission mode, that is, the first transmission mode.
  • the first information can be used to indicate the first transmission mode corresponding to the first protocol service indication information, and the first information can also be used to indicate the first channel number, the first data length, the first wireless transmission resource, etc. at least one.
  • the first transmission mode corresponds to the 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 the logical channel corresponding to the first channel number can be used to transmit the first data from the first protocol stack.
  • the first data length corresponds to the first protocol service indication information, and is used to indicate the length of the payload in the first data frame structure.
  • the first wireless transmission resource is used to transmit the air data packet 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, the first channel number, the first data length, the first wireless transmission resource, and the like according to the indication of the first information.
  • the first information may include a first transmission mode identifier or index to indicate the first transmission mode; or, the first information may include a first channel number to indicate the first channel 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.
  • the way of indicating resources is not limited.
  • the first information may further include other information lengths, and the other information lengths may be the lengths of other information (eg, access addresses, channel numbers, etc.) in the first data frame structure corresponding to the first transmission mode.
  • other information lengths may be the lengths of other information (eg, access addresses, channel numbers, etc.) in the first data frame structure corresponding to the first transmission mode.
  • 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 the transmission mode, data length, etc.
  • the second device 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) sent by 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 represent the transmission mode expected by the second device
  • the second channel number is used to represent the channel number expected by the second device
  • the second data length is the second data frame structure corresponding to the second transmission mode
  • the length of the payload in the second transmission mode may be the same as or different from the first transmission mode.
  • the second information may further include other information lengths, where the other information lengths are the lengths of other information (eg, access addresses, channel numbers, etc.) in the second data frame structure corresponding to the second transmission mode.
  • the response information may be included in a configuration negotiation response (connection response) sent by the first device to the second device.
  • the response information may be used to indicate that the first device agrees or disagrees with the second device to transmit the first data to the first device based on the second transmission mode, the second channel number, the second data length, and the like.
  • 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; or, the second information may include the first Two values to indicate the second data length.
  • the response information may include the same information and indication information as the second information, to indicate that the first device agrees or disagrees with the second device to transmit to the first device based on the second transmission mode, the second data length, etc. first data. For example, if the indication information is 1, it means agree, and if it is 0, it means disagree.
  • the response information may include the same information as the second information but not the indication information; if the first device disagrees, the response information may include the same information and indication information as the second information, and The indication information is used to indicate that the first device does not agree to the above negotiation.
  • the response information may include the same information and indication information as the above-mentioned second information, and the indication information is used to instruct the first device to agree to the above-mentioned negotiation; if the first device does not agree to the above negotiation; It is agreed that the response information may include the same information as the above-mentioned second information but not the indication information.
  • the second device may continue to initiate a negotiation request to negotiate with the first device to determine parameters such as transmission mode, channel number, data length, etc. until the first device agrees.
  • the first device may carry the identifier or index of the third transmission mode, the third channel number, the third value, etc. in the response information fed back to the second device to indicate that the first device is the first device.
  • the transmission mode, logical channel, data length, etc. configured by the two devices.
  • 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. If not, the negotiation can continue until both parties complete the transmission mode, data length, etc. used for data transmission.
  • Information negotiation process It can be understood that the response information may be the above-mentioned first information.
  • the second device and the first device may complete the negotiation of the above-mentioned corresponding parameters or resources through one interaction, and may also complete the negotiation of different parameters or resources through two or more interactions, which is not limited in this application. .
  • step S502 is an optional step.
  • the second device sends the first data from the first protocol stack to the first device according to the first data frame structure corresponding to the first transmission mode.
  • the first device receives the first data from the second device.
  • the air data packet transmitted between the second device and the first device is obtained by using the first data frame structure to encapsulate the frame header of the first data from the first protocol stack, 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.
  • a frame structure of a relevant protocol layer for transmitting the first data from the first protocol stack can be designed, so that the data from the first protocol stack can be processed based on the relevant protocol layer. After encapsulation, the proportion of service data in the finally obtained air data packet is relatively large, thereby obtaining higher service data transmission efficiency.
  • the relevant protocol layers here 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.
  • the relevant protocol layer here may be an access layer, such as an L2CAP layer, an LL layer, or a MAC layer.
  • the relevant protocol layer may be the L2CAP layer or the LL layer.
  • the relevant protocol layer may be the MAC layer, and the first protocol stack may be any upper layer of the MAC layer.
  • the first data frame structure may be a first protocol layer frame structure, and the first protocol layer frame structure may include channel number and/or transmission mode indication information, and a first protocol layer payload, so The channel number and/or the transmission mode indication information corresponds to the length of the payload of the first protocol layer, and the payload of the first protocol layer can be used to carry the first data.
  • the first protocol layer frame structure may be a first protocol layer protocol data unit (PDU).
  • the length of the payload of the first protocol layer 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 payload length is 48 bits; when the channel number is 10 or 11, the corresponding payload length is 24 bits. Therefore, the structure of the first data frame does not need to include a field for carrying the payload length indication information of the first protocol layer. Therefore, the first data frame does not need to reserve this field, so that the communication between the two parties can be achieved while reducing the size of the field.
  • the overhead of non-business data further improves the transmission efficiency of business data.
  • the channel number can be used to indicate the length of the payload of the first protocol layer only in combination with the transmission mode. For example, when the channel number is 00 and the transmission mode is the first transmission mode, the corresponding The 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.
  • the transmission mode may also be used to indicate the length of the payload of the first protocol layer.
  • the payload length of the first protocol layer in the first transmission mode may be agreed by the protocol.
  • the first protocol layer frame structure may be an L2CAP layer frame structure.
  • the channel number and/or transmission mode indication information corresponds to the length of the payload of the first protocol layer, compared with Figure 2, in the L2CAP layer In the layer frame structure, the channel number and/or the transmission mode indication information may be included but the L2CAP layer length indication information may be included. Therefore, based on the data frame structure of the first protocol layer shown in FIG. 6 , in the scenario where the BLE protocol stack is applied to transmit high-frequency, low-latency short-distance small-packet services, since it carries data other than service data The reduction of the data amount of other information can reduce overhead and improve the transmission efficiency of service data.
  • the first protocol layer can be higher than the second protocol layer, and the frame structure of the first protocol layer transmitted by the first protocol layer can be marked with the corresponding frame header and CRC by the second protocol layer, so that the peer device can match the and other layers to parse and verify the data.
  • the first data frame structure in this application may also be a second protocol layer frame structure.
  • the frame structure of the first protocol layer may be included in the frame structure of the second protocol layer, and the frame structure of the first protocol layer may include the channel number and/or transmission mode indication information, and the payload of the first protocol layer , the channel number and/or the transmission mode indication information corresponds to the length of the payload of the first protocol layer, and the payload of the first protocol layer can be used to carry the first data.
  • the second protocol layer frame structure may include a second protocol layer frame header, a second protocol layer payload and a CRC, where the second protocol layer payload is used to carry the first protocol layer frame structure.
  • the frame header of the second protocol layer frame may include a pilot frequency and an access address; or, the frame header of the second protocol layer frame may include a pilot frequency, an access address, and transmission mode indication information.
  • the second protocol layer frame structure may be a second protocol layer protocol data unit (PDU).
  • the first protocol layer frame structure may be an L2CAP layer frame structure
  • the second protocol layer frame structure may be an LL layer frame structure
  • the L2CAP layer frame structure includes channel number and/or transmission mode indication information
  • the L2CAP layer payload and the LL layer frame structure includes pilot frequency, access address, transmission mode indication information (optional).
  • Option LL layer payload
  • CRC LL layer payload
  • the frame header of the second protocol layer frame does not need to include a field for the 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. 2 and FIG. 7 .
  • the first data frame structure does not need to reserve this field, and can also reduce overhead and further improve the transmission efficiency of service data.
  • the terminal may perform multiple retransmissions. Compared with Figure 2, since the frame structure shown in Figure 6 does not require the receiving terminal to feed back the service data serial number and the expected next data serial number in real time, the transmission overhead can be greatly reduced. It is beneficial to improve the transmission efficiency of business data.
  • the frame header of the second protocol layer frame may also include a field for the serial number of the data, such as shown in FIG. 7 .
  • the current sequence number for indicating the current data and the next sequence number for indicating the next data are shown to instruct the first device to perform data retransmission or flow control according to the current sequence number and the next sequence number, which is not limited in this application. .
  • FIG. 6 only schematically indicates that the frame header of the second protocol layer frame may not include a field for carrying the transmission mode indication information, and the frame structure of the first protocol layer already includes the transmission mode.
  • the transmission mode indication information may not be included in the frame header of the second protocol layer frame.
  • the frame header of the second protocol layer frame may include transmission mode indication information.
  • only a dashed box schematically indicates that the frame header of the second protocol layer frame may or may not include fields for carrying the current sequence number and the next sequence number.
  • the first transmission mode can be a high-frequency, low-latency, short-distance, small-packet service scenario (such as game competition).
  • the first data frame structure may be a new data frame structure designed for the BLE protocol stack in this scenario, and the first data frame structure may refer to the L2CAP layer frame structure, or may be Refers to the LL layer frame structure, and may also refer to the L2CAP layer frame structure and the LL layer frame structure.
  • the data frame structure shown in Figure 6 does not need to include a field for carrying the L2CAP length indication; the LL layer header can be ignored, or the LL layer header can only contain The transmission mode indication information, or the LL layer packet header may only contain the transmission mode indication information, the next sequence number, and the current sequence number.
  • the amount of data carrying other information other than service data is reduced due to the , which can reduce overhead and improve the transmission efficiency of service data.
  • the first protocol stack can transparently transmit the service data to be transmitted, and before transmitting the service data, the bottom layer processes the data frame structure passed from the upper layer to generate PDUs.
  • the first data frame structure may be a third protocol layer frame structure (for example, a MAC layer frame structure), and the third protocol layer frame structure may include a third protocol layer frame header, a third protocol layer valid
  • the payload and the cyclic redundancy check code CRC, the third protocol layer payload is used to carry the first data, that is, the service data.
  • the frame header of the third protocol layer includes a pilot frequency, an access address, and a channel number; or, the frame header of the third protocol layer includes a pilot frequency, an access address, a channel number, and transmission mode indication information.
  • the overhead can be reduced and the transmission efficiency of service data can be improved.
  • the third protocol layer frame structure may be a third protocol layer protocol data unit (PDU).
  • PDU protocol layer protocol data unit
  • the second device may further segment the service data to be transmitted, and accordingly, the first device may reorganize the received segmented data, and the third protocol
  • the layer frame header may also include fields for carrying information such as the sequence number and offset of the segmented data, so that the receiving end can reorganize the data based on the sequence number and offset indication information.
  • the frame header of the third protocol layer frame may further include a field for carrying the sequence number of the data, indicating the next sequence number of the next data.
  • the length of a field used to carry the content of non-service data may also be reduced.
  • a short access address (short access address, abbreviated as short AA) and a short channel ID (short channel ID, abbreviated as short AA) may be included.
  • short CID short channel ID to replace the access address and channel number in the first data frame structure respectively.
  • the length of the field corresponding to the short AA may be 4 bits
  • the length of the field corresponding to the short CID may be 2 bits.
  • the length of the field corresponding to the short AA is less than the length of the field corresponding to the AA (32bit)
  • the length of the field corresponding to the short CID is smaller than the field length corresponding to the CID (16bit)
  • the header can effectively reduce the frame header overhead, so that the above data frame structure can effectively support lightweight small packet data transmission, and improve the response speed and quality of high-frequency, low-latency services (such as mouse services).
  • the length of the field used to carry the content of non-service data in FIG. 9 may be corresponding to the first transmission mode.
  • the second device and the first device may send the first data to the first device based on the first data frame structure and the length of each field agreed in the first transmission mode .
  • the first information sent by the first device to the second device may further include information used to indicate the lengths of fields other than the payload in the first data frame structure, so as to inform the second device of the length of the fields in the first data frame structure
  • the length of each field enables the second device to perform an action of adding a frame header according to the length of each field, thereby obtaining the data frame structure to be sent.
  • the second device and the first device may also negotiate to determine the length of the field in the first data frame structure for carrying the content of the non-service data.
  • the second device may send the first device to the first device.
  • the second information carries the length information of the field indicating the content of the non-service data
  • the first device includes the same information in the response information sent to the second device, which is used to instruct the first device to agree to the second device to use the corresponding field length to obtain
  • the structure of the data frame to be sent please refer to the above related description in conjunction with FIG. 5 , which will not be repeated here.
  • 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 can adopt the same transmission mode as the first transmission mode.
  • the corresponding first data frame structure transmits the first data, because in the designed first data frame structure, the content of the non-service data can be selectively ignored, or the length of the field carrying the non-service data can be changed, which can reduce unnecessary Overhead, the proportion of business data is larger than that of non-business data, so as to improve the transmission efficiency of business data.
  • FIG. 10 is a schematic block diagram of an apparatus 1000 according to an embodiment of the present application, which is used to implement the function of the first apparatus or the second apparatus in the above method embodiment.
  • the apparatus may be a software module or a system-on-a-chip.
  • the chip may consist of chips, and may also include chips and other discrete devices.
  • the apparatus 1000 includes a processing unit 1001 and a communication unit 1002 .
  • the communication unit 1002 is used to communicate with other devices, and may also be referred to as a communication interface, a transceiver unit, an input/output interface, and the like.
  • the above-mentioned apparatus 1000 may be used 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 circuit configured in the second apparatus, or the like.
  • the processing unit 1001 may be configured to perform processing-related operations of the second device in the above method embodiments, and the communication unit 1002 is configured to instruct the transceiving-related operations of the second device in the above method embodiments.
  • a communication unit 1002 configured to send first protocol service indication information to a first device, where the first protocol service indication information is used to indicate a first protocol stack; receive first information sent by the first device, the first The information is used to indicate the first transmission mode corresponding to the first protocol service indication information; the processing unit 1001 is configured to send the communication unit 1002 to the first data frame structure corresponding to the first transmission mode through the communication unit 1002.
  • a device sends first data from a first protocol stack.
  • 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 The length is the length of the payload in the first data frame structure.
  • the communication unit 1002 before receiving the first information sent by the first device, is further configured to: send second information to the first device, where the second information is used to indicate the second transmission mode, the first At least one of two data lengths, the second transmission mode represents a transmission mode expected by the second device, and the second data length is the length of the payload in the 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.
  • the first data frame structure is a first protocol layer frame structure, and the first protocol layer frame structure includes channel number and/or transmission mode indication information; the first protocol layer frame structure further includes a first protocol layer frame structure. Protocol layer payload; wherein, the channel number and/or the transmission mode indication information corresponds to the length of the first protocol layer payload, and the first protocol layer payload is used to carry the first data.
  • the first protocol layer frame structure may be a first protocol layer protocol data unit (PDU).
  • PDU protocol layer protocol data unit
  • the frame structure of the first protocol layer is included in the frame structure of the second protocol layer, and the frame structure of the second protocol layer includes the frame header of the second protocol layer, the payload of the second protocol layer, and the cyclic redundancy check. checking the CRC, wherein the payload of the second protocol layer is used to carry the frame structure of the first protocol layer.
  • the second protocol layer frame structure may be a second protocol layer protocol data unit (PDU).
  • PDU protocol layer protocol data unit
  • the frame header of the second protocol layer frame includes a pilot frequency and an access address; or, the frame header of the second protocol layer frame includes a pilot frequency, an access address and transmission mode indication information.
  • the first protocol layer is higher than the second protocol layer.
  • the first data frame structure is a third protocol layer frame structure
  • 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)
  • CRC cyclic redundancy check code
  • the third protocol layer frame structure may be a third protocol layer protocol data unit (PDU).
  • PDU protocol layer protocol data unit
  • the frame header of the third protocol layer frame includes pilot frequency, access address and channel number; or, the frame header of the third protocol layer frame includes pilot frequency, access address, channel number and transmission mode indication information .
  • the foregoing 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 circuit configured in the first apparatus, or the like.
  • 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.
  • the communication unit 1002 is configured to receive first protocol service indication information sent by a second device, where the first protocol service indication information is used to indicate a first protocol stack; send first information to the second device, the The first information is used to indicate a first transmission mode corresponding to the first protocol service indication information; the first data from the second device is received, wherein the first data adopts the corresponding first transmission mode The first data frame structure.
  • 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 The length is the length of the payload in the first data frame structure.
  • the communication unit 1002 is further configured to: receive second information sent by the second device, where the second information is used to indicate the second transmission mode, the second At least one item of data length, the second transmission mode represents a transmission mode expected by the second device, and the second data length is the length of the payload in the 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.
  • the first data frame structure is a first protocol layer frame structure, and the first protocol layer frame structure includes channel number and/or transmission mode indication information; the first protocol layer frame structure further includes a first protocol layer frame structure.
  • the frame structure of the first protocol layer is included in the frame structure of the second protocol layer, and the frame structure of the second protocol layer includes the frame header of the second protocol layer, the payload of the second protocol layer, and the cyclic redundancy check. checking the CRC, wherein the payload of the second protocol layer is used to carry the frame structure of the first protocol layer.
  • the frame header of the second protocol layer frame includes a pilot frequency and an access address; or, the frame header of the second protocol layer frame includes a pilot frequency, an access address and transmission mode indication information.
  • the first protocol layer is higher than the second protocol layer.
  • the first data frame structure is a third protocol layer frame structure
  • the third protocol layer frame structure includes a second protocol layer frame header, a third protocol layer payload and a cyclic redundancy check code (CRC)
  • CRC cyclic redundancy check code
  • the frame header of the third protocol layer frame includes pilot frequency, access address and channel number; or, the frame header of the third protocol layer frame includes pilot frequency, access address, channel number and transmission mode indication information .
  • each functional unit may be integrated into one processor, or may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • FIG. 11 is a schematic diagram of an apparatus 1100 provided by an embodiment of the present application.
  • 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 include at least one memory 1101 . Further, optionally, a bus 1103 may also be included.
  • the memory 1101 , the processor 1102 and the communication interface 1104 are connected through the bus 1103 .
  • the memory 1101 is used to provide a storage space, and data such as an operating system and computer programs can be stored in the storage space.
  • the memory 1101 may be random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM), or portable read-only memory One or more combinations of memory (compact disc read-only memory, CD-ROM), etc.
  • the processor 1102 is a module that performs arithmetic operations and/or logical operations, and can specifically be a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (microprocessor unit, MPU), Application specific integrated circuit (ASIC), field programmable gate array (FPGA), complex programmable logic device (CPLD), coprocessor (to assist the central processing unit to complete the Corresponding processing and application), a microcontroller unit (MCU) and other processing modules, one or more combinations.
  • CPU central processing unit
  • GPU graphics processing unit
  • MPU microprocessor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • CPLD complex programmable logic device
  • coprocessor to assist the central processing unit to complete the Corresponding processing and application
  • MCU microcontroller unit
  • Communication interface 1104 may be used to provide information input or output to the at least one processor. And/or the communication interface can be used to receive externally sent data and/or send data externally, and can be a wired link interface such as an Ethernet cable, or a wireless link (Wi-Fi, Bluetooth, Universal wireless transmission, vehicle short-range communication technology, etc.) interface. Optionally, the communication interface 1104 may further include a transmitter (eg, a radio frequency transmitter, an antenna, etc.), or a receiver, etc., coupled with the interface.
  • a transmitter eg, a radio frequency transmitter, an antenna, etc.
  • the above-mentioned apparatus 1100 may be the second apparatus in the above method embodiments or a component in the second apparatus, such as a chip or an integrated circuit.
  • the processor 1102 in the device 1100 is configured to read the computer program stored in the memory 1101, and control the second device to perform the following operations: send the first protocol service indication information to the first device, the first protocol service The indication information is used to indicate the first protocol stack; the first information sent by the first device is received, where the first information is used to indicate the first transmission mode corresponding to the first protocol service indication information;
  • the first data frame structure corresponding to the first transmission mode sends the first data from the first protocol stack to the first device.
  • the above-mentioned apparatus 1100 may be the first apparatus in the above method embodiments or a component in the first apparatus, such as a chip or an integrated circuit.
  • the processor 1102 in the device 1100 is configured to read the computer program stored in the memory 1101, and control the first device to perform the following operations: receive the first protocol service indication information sent by the second device, the first protocol The service indication information is used to indicate the first protocol; the first information is sent to the second device, where the first information is used to indicate the first transmission mode corresponding to the service indication information of the first protocol; The first data of the second device, wherein the first data adopts a first data frame structure corresponding to the first transmission mode.
  • the processor 1102 in the device 1100 is configured to read the computer program stored in the memory 1101, and control the first device to perform the following operations: receive the first protocol service indication information sent by the second device, the first protocol The service indication information is used to indicate the first protocol; the first information is sent to the second device, where the first information is used to indicate the first transmission mode corresponding to
  • An embodiment of the present application further provides a terminal, where the terminal may be an intelligent terminal such as a smart phone, a notebook, and a tablet computer, a mouse, a keyboard, an earphone, an audio system, or a vehicle-mounted playback device with a short-range communication function.
  • the terminal includes a first device and/or a second device, and the first device and the second device may be the first device and the second device in the embodiment shown in FIG. 3 above, respectively.
  • the types of the first device and the second device may be the same or different.
  • an embodiment of the present application further provides an apparatus, including a unit for implementing the embodiment shown in FIG. 10 above.
  • a processor and an interface circuit are included, and the processor is configured to communicate with other apparatuses through the interface circuit, and execute the methods in the above method embodiments.
  • the apparatus includes a processor for invoking a program stored in the memory to execute the method described in the above embodiment.
  • Embodiments of the present application further provide a computer-readable storage medium, including instructions, which, when executed on a computer, cause the computer to execute the method described in the above embodiments.
  • Embodiments of the present application further provide a chip system, where the chip system 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 configured to execute the interaction of instructions and/or data through the interface circuit, so as to implement the methods in the above method embodiments.
  • the chip system can be composed of chips, and can also include chips and other discrete devices.
  • Embodiments of the present application also provide a computer program product, including instructions, which, when executed on a computer, cause the computer to execute the method described in the above embodiments.
  • 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, a discrete gate or transistor logic device, a discrete hardware component, or a coprocessor etc., each method, step, and logic block diagram disclosed in the embodiments of this application can be implemented or executed.
  • a general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the methods disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the memory may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or may also be a volatile memory (volatile memory), for example Random-access memory (RAM).
  • Memory is, but is not limited to, 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.
  • the memory in this embodiment of the present application may also be a circuit or any other device capable of implementing 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.
  • software When implemented in software, it can 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 the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, network equipment, user equipment, or other programmable apparatus.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server or data center by wire (eg coaxial cable, optical fiber, digital subscriber line, DSL for short) or wireless (eg infrared, wireless, microwave, etc.).
  • the computer-readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes one or more available media integrated.
  • the usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, digital video discs (DVD)), or semiconductor media (eg, SSDs), and the like.

Abstract

La présente application, qui relève du domaine technique des communications, concerne un procédé et un appareil de communication. Le procédé comprend : l'envoi de premières informations d'indication de service de protocole à un premier appareil, les premières informations d'indication de service de protocole étant utilisées pour indiquer une première pile de protocoles ; la réception de premières informations envoyées par le premier appareil, les premières informations étant utilisées pour indiquer un premier mode de transmission correspondant aux premières informations d'indication de service de protocole ; et selon une première structure de trame de données correspondant au premier mode de transmission, l'envoi de premières données de la première pile de protocoles au premier appareil. Le procédé facilite la réduction de surdébits et l'amélioration de l'efficacité de transmission de données de service dans des scénarios de communication à courte distance et de services de petits paquets.
PCT/CN2021/084761 2021-03-31 2021-03-31 Procédé et appareil de communication WO2022205234A1 (fr)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2021/084761 WO2022205234A1 (fr) 2021-03-31 2021-03-31 Procédé et appareil de communication
CN202180001452.XA CN113228717B (zh) 2021-03-31 2021-03-31 一种通信方法及装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/084761 WO2022205234A1 (fr) 2021-03-31 2021-03-31 Procédé et appareil de communication

Publications (1)

Publication Number Publication Date
WO2022205234A1 true WO2022205234A1 (fr) 2022-10-06

Family

ID=77081265

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/084761 WO2022205234A1 (fr) 2021-03-31 2021-03-31 Procédé et appareil de communication

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116193411A (zh) * 2023-02-02 2023-05-30 广东为辰信息科技有限公司 一种蓝牙控车指令的修改重放方法

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115100840B (zh) * 2022-05-16 2024-01-12 深圳绿米联创科技有限公司 设备控制方法、装置、电子设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1753404A (zh) * 2004-09-23 2006-03-29 华为技术有限公司 通信设备选择通信协议的方法
CN103733594A (zh) * 2011-08-19 2014-04-16 苹果公司 利用蓝牙低功耗标准的音频传输
CN105991625A (zh) * 2015-03-06 2016-10-05 电信科学技术研究院 一种进行数据传输的方法和设备
WO2018144233A1 (fr) * 2017-02-03 2018-08-09 Intel Corporation Concaténation d'unités de données de service au-dessus d'une couche de protocole de convergence de données en mode paquet

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE467294T1 (de) * 2006-10-27 2010-05-15 Ericsson Telefon Ab L M Längenindikatoroptimierung
CN101242405A (zh) * 2007-02-09 2008-08-13 中兴通讯股份有限公司 一种媒体接入控制层协议数据单元帧的生成方法及其结构
CN105282114B (zh) * 2014-07-18 2020-07-24 北京新岸线移动多媒体技术有限公司 一种数据帧传输的方法、发送装置和接收装置
WO2017014427A1 (fr) * 2015-07-20 2017-01-26 Lg Electronics Inc. Procédé de réception d'un signal dans un système de communications sans fil, et dispositif associé
WO2017065524A1 (fr) * 2015-10-13 2017-04-20 엘지전자 주식회사 Procédé et appareil permettant de transmettre ou de recevoir des informations de longueur de sous-trame dans un système d'accès sans fil prenant en charge une bande non autorisée
JP6707846B2 (ja) * 2015-11-27 2020-06-10 カシオ計算機株式会社 フレーム生成装置、フレーム処理装置、電子時計、システム、フレーム生成方法、フレーム処理方法、通信方法、及びプログラム
EP3478007B1 (fr) * 2016-08-31 2020-07-29 Huawei Technologies Co., Ltd. Transmission de petites données dans un message de radiorecherche
US10841833B2 (en) * 2016-10-12 2020-11-17 Qualcomm Incorporated Streamlined user plane headers for high data rates
EP4221312A3 (fr) * 2016-11-04 2023-11-01 Beijing Xiaomi Mobile Software Co., Ltd. Procédé et dispositif de génération de paquet d'unité de données de protocole (pdu)
CN109644373B (zh) * 2017-08-11 2021-04-27 Oppo广东移动通信有限公司 数据传输方法及相关产品
CN108184268B (zh) * 2017-12-11 2020-09-01 北京邮电大学 一种业务适配的普适帧结构配置方法
CN109495870B (zh) * 2018-07-24 2022-02-01 华为机器有限公司 蓝牙测试的方法和装置
TWI788627B (zh) * 2019-02-14 2023-01-01 聯發科技股份有限公司 封包發送方法、封包接收方法以及相關設備

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1753404A (zh) * 2004-09-23 2006-03-29 华为技术有限公司 通信设备选择通信协议的方法
CN103733594A (zh) * 2011-08-19 2014-04-16 苹果公司 利用蓝牙低功耗标准的音频传输
CN105991625A (zh) * 2015-03-06 2016-10-05 电信科学技术研究院 一种进行数据传输的方法和设备
WO2018144233A1 (fr) * 2017-02-03 2018-08-09 Intel Corporation Concaténation d'unités de données de service au-dessus d'une couche de protocole de convergence de données en mode paquet

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116193411A (zh) * 2023-02-02 2023-05-30 广东为辰信息科技有限公司 一种蓝牙控车指令的修改重放方法

Also Published As

Publication number Publication date
CN113228717A (zh) 2021-08-06
CN113228717B (zh) 2022-10-04

Similar Documents

Publication Publication Date Title
US20200221538A1 (en) Data transmission method, terminal device, and network device
WO2020192783A1 (fr) Procédé, appareil et système de configuration de porteuse radio
US20080016248A1 (en) Method and apparatus for time synchronization of parameters
WO2016141793A1 (fr) Procédé de configuration de pile de protocole d'interface hertzienne, ainsi que dispositif et procédé de transmission de données
WO2016173078A1 (fr) Procédé et système de transfert de données et ue doté d'une fonction de relais
WO2022205234A1 (fr) Procédé et appareil de communication
US20230013500A1 (en) Radio bearer configuration method, apparatus, and system
WO2023036205A1 (fr) Procédé, appareil et système de communication
CN111148123B (zh) 一种无线回传处理方法及通信装置
CN113630738A (zh) 一种侧行链路通信方法及装置
WO2021238318A1 (fr) Procédé et appareil de communication
WO2020221071A1 (fr) Procédé de gestion de porteuse radio, dispositif et système
WO2017177438A1 (fr) Procédé et appareil de transmission d'informations de commande
WO2022198463A1 (fr) Procédé et appareil de communication
WO2021062717A1 (fr) Procédé et dispositif de transmission de rapport d'état de mémoire tampon
WO2019128860A1 (fr) Appareil, procédé d'envoi de données et produit-programme d'ordinateur
WO2023246746A1 (fr) Procédé de communication et dispositif associé
WO2024093729A1 (fr) Procédé et appareil de communication
JP7177287B2 (ja) データ送信方法および装置、ならびにコンピュータ可読記憶媒体
WO2024027615A1 (fr) Procédé de communication, appareil de communication et système de communication
WO2021227076A1 (fr) Procédé, dispositif et système de communication
WO2023207555A1 (fr) Procédé et appareil de communication
WO2024045179A1 (fr) Procédé de transmission d'un message de données, appareil et système de communication
WO2023185956A1 (fr) Procédé et appareil de communication sur la base d'une liaison latérale, ainsi que support de stockage et système de puce
WO2024007875A1 (fr) Procédé d'indication de volume de données, procédé de distribution de données et appareil

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21933894

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21933894

Country of ref document: EP

Kind code of ref document: A1