WO2017049432A1 - 一种数据传输方法及装置 - Google Patents

一种数据传输方法及装置 Download PDF

Info

Publication number
WO2017049432A1
WO2017049432A1 PCT/CN2015/090126 CN2015090126W WO2017049432A1 WO 2017049432 A1 WO2017049432 A1 WO 2017049432A1 CN 2015090126 W CN2015090126 W CN 2015090126W WO 2017049432 A1 WO2017049432 A1 WO 2017049432A1
Authority
WO
WIPO (PCT)
Prior art keywords
discovery message
discovery
transport channel
message
terminal device
Prior art date
Application number
PCT/CN2015/090126
Other languages
English (en)
French (fr)
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/CN2015/090126 priority Critical patent/WO2017049432A1/zh
Priority to CN201580074040.3A priority patent/CN107211404B/zh
Publication of WO2017049432A1 publication Critical patent/WO2017049432A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/02Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
    • H04W8/08Mobility data transfer
    • H04W8/14Mobility data transfer between corresponding nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation

Definitions

  • the present application relates to the field of communication networks, and in particular, to a data transmission method and apparatus.
  • D2D communication technology is a kind of user terminal device allowed under the control of cellular system (User Equipment, UE) A technology for direct communication using a wireless link.
  • UE User Equipment
  • LTE Long-term evolution
  • D2D discovery channel transmission mode
  • D2D data channel transmission mode commonly referred to as D2D direct communication mode
  • the LTE system allocates D2D through broadcast messages or dedicated signaling.
  • the transmission resources that Discovery and D2D communicate directly to the user perform D2D communication in the corresponding mode.
  • D2D Discovery messages in D2D communication based on LTE are currently only allowed to pass D2D.
  • Discovery transport channel transmission while D2D The Discovery transmission channel can only transmit a fixed number of Discovery messages. When the number of bits in the Discovery message is greater than the fixed number of bits, the transmission cannot be performed normally, which may cause data loss and reduce communication reliability.
  • the technical problem to be solved by the present application is to provide a data transmission method and device, which can flexibly transmit Discovery messages of different bit numbers and improve the reliability of data transmission.
  • the first aspect of the present application provides a data transmission method, including: establishing a device to a device proximity service D2D by a terminal device The mapping between the ProSe protocol layer and the D2D shared transport channel; the terminal device determines whether the number of bits of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold; when the number of bits of the first Discovery message is greater than a preset Mapping, the first Discovery message is mapped to the D2D shared transport channel, and the first Discovery message is transmitted through the D2D shared transport channel; or when the number of bits of the first discovery message is less than or equal to the preset threshold Mapping the first Discovery message to D2D Discovery transport channel.
  • the step of the terminal device establishing a mapping relationship between a ProSe protocol layer and a D2D shared transport channel includes: the terminal device is in a packet data convergence protocol layer Adding a Discovery dedicated radio bearer, and establishing a mapping relationship between the ProSe protocol layer and the Discovery dedicated radio bearer, where the Discovery dedicated radio bearer is used to carry a Discovery message, and the Discovery message carried by the Discovery dedicated radio bearer is mapped to the Discovery a dedicated logical channel, which is identified by a Discovery dedicated logical channel identifier, and a Discovery message of the Discovery dedicated logical channel identifier is transmitted through the D2D shared transport channel, where the Discovery dedicated radio bearer corresponds to the Discovery dedicated logical channel.
  • the Discovery dedicated logical channel corresponds to the Discovery dedicated logical channel identifier.
  • the step of the terminal device establishing a mapping relationship between a ProSe protocol layer and a D2D service logical channel includes: the terminal device in a media access control protocol The layer establishes a mapping relationship between the ProSe protocol layer and the D2D shared transport channel.
  • the step of transmitting the first Discovery message by using the D2D shared transport channel includes: when the number of bits of the first Discovery message is greater than a preset threshold, Transmitting, by the terminal device, the first Discovery message to the packet data convergence protocol layer, mapping the first Discovery message to the Discovery dedicated radio bearer, or transmitting the first Discovery message to a media access control protocol
  • the terminal device maps the first Discovery message to the D2D shared transport channel, and adds a Discovery-dedicated logical channel identifier to the first Discovery message, where the Discovery-dedicated logical channel identifier is used to identify
  • the method further includes: the terminal device transmitting the first Discovery message to the physical layer by using the D2D shared transport channel, and setting a flag bit in the D2D link control information corresponding to the first Discovery message, Transmitting, by the transmission resource of the D2D communication data, the first Discovery message, where the flag bit is used to indicate whether a transmission resource of the D2D communication data carries a Discovery message, where the Discovery message is the first Discovery dedicated radio bearer bearer a Discovery message or a Discovery message delivered from the ProSe protocol layer to the Medium Access Control Protocol layer.
  • the flag bit is set in the D2D link control information corresponding to the first Discovery message, and the D2D communication is performed.
  • the transmission of the data of the first Discovery message includes: the terminal device determines D2D link control information corresponding to the first data packet according to the scheduling information or the available transmission resource, where the first Discovery message corresponds to The D2D link control information is used to indicate the transmission resource information that carries the first Discovery message; the terminal device sets a flag bit in the D2D link control information corresponding to the first Discovery message, and is controlled by the D2D link.
  • the transmission resource indicated by the information transmits the first Discovery message.
  • the D2D link control information indicates the transmission resource information that carries the first Discovery message and the D2D communication
  • the transmission resource information of the data common D2D communication data, the transmission resource of the D2D communication data simultaneously carries the first Discovery message and the D2D communication data, and the first Discovery message and the D2D communication data are distinguished by a logical channel identifier.
  • the D2D link control information indicates a transmission resource of D2D communication data that carries the first Discovery message
  • the transmission resource of the D2D communication data only carries the first Discovery message, wherein the first Discovery message and the D2D communication data are distinguished by different transmission resources.
  • the method further includes: receiving, by the terminal device, a second Discovery sent by another terminal device a message, the terminal device determines whether the second Discovery message includes the value of the Discovery dedicated logical channel identifier and/or the flag bit is a preset value, to determine whether the second Discovery message is from a D2D shared transmission. a channel; when the second Discovery message is from a D2D shared transport channel, the terminal device processes the second Discovery message according to a mechanism for transmitting the first Discovery.
  • the second aspect of the present application provides a data transmission apparatus, including an establishment module, a determination module, and a mapping module.
  • the establishment module is used to establish a device-to-device proximity service D2D. a mapping relationship between the ProSe protocol layer and the D2D shared transport channel;
  • the determining module is configured to determine whether the number of bits of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold; and the mapping module is configured to be used by the determining module And determining, when the number of bits of the first Discovery message is greater than a preset threshold, mapping the first Discovery message to the D2D shared transport channel, and transmitting the first Discovery message by using the D2D shared transport channel; or When the determining module determines that the number of bits of the first discovery message is less than or equal to the preset threshold, mapping the first Discovery message to the D2D Discovery transport channel.
  • the establishing module is specifically configured to add a Discovery dedicated radio bearer at a packet data convergence protocol layer, and establish a ProSe protocol layer to the Discovery dedicated radio bearer.
  • a mapping relationship wherein the Discovery dedicated radio bearer is used to carry a Discovery message, and the Discovery message carried by the Discovery dedicated radio bearer is mapped to a Discovery dedicated logical channel, and is identified by a Discovery dedicated logical channel identifier, the Discovery The Discovery message of the dedicated logical channel identifier is transmitted through the D2D shared transport channel, where the Discovery dedicated radio bearer corresponds to the Discovery dedicated logical channel, and the Discovery dedicated logical channel corresponds to the Discovery dedicated logical channel identifier.
  • the establishing module is specifically configured to establish a mapping relationship between a ProSe protocol layer and a D2D shared transport channel at a medium access control protocol layer.
  • the mapping module is specifically configured to: when the determining module determines the first Discovery When the number of bits of the message is greater than a preset threshold, the first Discovery message is delivered to the packet data convergence protocol layer, the first Discovery message is mapped to the Discovery dedicated radio bearer, and the first Discovery is Transmitting a message to the D2D shared transport channel, and adding a Discovery dedicated logical channel identifier to the first Discovery message, wherein the Discovery dedicated logical channel identifier is used to identify a Discovery message transmitted over the D2D shared transport channel; or The mapping module is specifically configured to: when the determining module determines that the number of bits of the first Discovery message is greater than a preset threshold, the first Discovery message is delivered to the media access control protocol layer, where the first Discovery is Transmitting a message to the D2D shared transport channel, and adding a Discovery dedicated logical channel identifier to the first Discovery message Wherein said Discovery dedicated logical channel identifier
  • the apparatus further includes a control module, where the control module is configured to A discovery message is transmitted to the physical layer through the D2D shared transport channel, and a flag bit is set in the D2D link control information corresponding to the first Discovery message, and the first Discovery message is transmitted through a transmission resource of the D2D communication data.
  • the flag is used to indicate whether a transmission resource of the D2D communication data carries a Discovery message, and the first Discovery message is a Discovery message carried by the Discovery dedicated radio bearer or transmitted from the ProSe protocol layer to the media.
  • the Discovery message of the access control protocol layer is configured to A discovery message is transmitted to the physical layer through the D2D shared transport channel, and a flag bit is set in the D2D link control information corresponding to the first Discovery message, and the first Discovery message is transmitted through a transmission resource of the D2D communication data.
  • the flag is used to indicate whether a transmission resource of the D2D communication data carries a Discovery message, and the first Discovery message is a Discovery message carried by the Discovery dedicated radio bear
  • the control module is specifically configured to: send, by using the D2D shared transmission channel, the first discovery message Determining, by the physical layer, the D2D link control information corresponding to the first Discovery message according to the scheduling information or the available transmission resource, and setting a flag bit in the D2D link control information corresponding to the first Discovery message, by using the D2D
  • the transmission resource indicated by the link control information transmits the first Discovery message, where the D2D link control information corresponding to the first Discovery message is used to indicate the transmission resource information that carries the first Discovery message.
  • the D2D link control information that is determined by the control module is to indicate that the first Discovery message is carried And transmitting the resource information and the transmission resource information of the D2D communication data common to the D2D communication data, where the transmission resource of the D2D communication data simultaneously carries the first Discovery message and the D2D communication data, where the first Discovery message and the D2D communication data pass logic
  • the channel identifier is distinguished.
  • the D2D link control information that is determined by the control module is to be used to carry the first Discovery message.
  • the transmission resource information of the D2D communication data the transmission resource of the D2D communication data only carries the first Discovery message, wherein the first Discovery message and the D2D communication data are distinguished by different transmission resources.
  • the method further includes: the device further includes a receiving module; Receiving a second Discovery message sent by the other terminal device; the determining module is further configured to determine whether the second Discovery message received by the receiving module includes the value of the Discovery dedicated logical channel identifier and/or the flag bit Whether it is a preset value to determine whether the second Discovery message is from a D2D shared transport channel; the mapping module is further configured to: when the determining module determines that the second Discovery message is from a D2D shared transport channel, according to a transmission station The mechanism of the first Discovery processes the second Discovery message.
  • a third aspect of the present application provides a terminal device, including a memory and a processor; the memory is used to store data; and the processor is used to establish a device-to-device proximity service D2D. a mapping relationship between the ProSe protocol layer and the D2D shared transport channel; the processor is configured to determine whether a number of bits of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold; and a bit used for the first Discovery message When the number is greater than a preset threshold, the first Discovery message is mapped to the D2D shared transport channel, and the first Discovery message is transmitted through the D2D shared transport channel; or, when the number of bits of the first Discovery message is Mapping the first Discovery message to the D2D when the preset threshold is less than or equal to Discovery transport channel.
  • the processor is specifically configured to add a Discovery dedicated radio bearer in a packet data convergence protocol layer, and establish a ProSe protocol layer to the Discovery dedicated radio bearer.
  • a mapping relationship wherein the Discovery dedicated radio bearer is used to carry a Discovery message, and the Discovery message carried by the Discovery dedicated radio bearer is mapped to a Discovery dedicated logical channel, and is identified by a Discovery dedicated logical channel identifier, the Discovery The Discovery message of the dedicated logical channel identifier is transmitted through the D2D shared transport channel, where the Discovery dedicated radio bearer corresponds to the Discovery dedicated logical channel, and the Discovery dedicated logical channel corresponds to the Discovery dedicated logical channel identifier.
  • the processor is specifically configured to establish a mapping relationship between a ProSe protocol layer and a D2D shared transport channel at a medium access control protocol layer.
  • the processor is configured to: when the number of bits of the first Discovery message is greater than a preset And thresholding, transmitting the first Discovery message to the packet data convergence protocol layer, mapping the first Discovery message to the Discovery dedicated radio bearer, and mapping the first Discovery message to the D2D Sharing a transport channel, and adding a Discovery-dedicated logical channel identifier to the first Discovery message, where the Discovery-dedicated logical channel identifier is used to identify a Discovery message transmitted through the D2D shared transport channel; or the processor is specifically used When the number of bits of the first Discovery message is greater than a preset threshold, the first Discovery message is delivered to the medium access control protocol layer, and the first Discovery message is mapped to the D2D shared transport channel, and Adding a Discovery dedicated logical channel identifier to the first Discovery message, where the Discovery dedicated logical channel identifier is used for By identifying the D2D shared transport channel transmission Discovery message.
  • the processor is further configured to: pass the first discovery message to the D2D Transmitting a shared transport channel to the physical layer, and setting a flag bit in the D2D link control information corresponding to the first Discovery message, and transmitting the first Discovery message by using a transmission resource of the D2D communication data, where the flag bit is used by Whether the transmission resource indicating the D2D communication data carries a Discovery message, the first Discovery message is a Discovery message carried by the Discovery dedicated radio bearer or a Discovery transmitted from the ProSe protocol layer to the Medium Access Control Protocol layer Message.
  • the processor is further configured to use the first discovery message to pass the D2D shared transport channel Passing to the physical layer, determining the D2D link control information corresponding to the first Discovery message according to the scheduling information or the available transmission resource, and setting a flag bit in the D2D link control information corresponding to the first Discovery message, by using the The transmission resource indicated by the D2D link control information transmits the first Discovery message, where the D2D link control information corresponding to the first Discovery message is used to indicate the transmission resource information that carries the first Discovery message.
  • the D2D link control information that is determined by the processor is to indicate that the first Discovery message is carried And transmitting the resource information and the transmission resource information of the D2D communication data common to the D2D communication data, where the transmission resource of the D2D communication data simultaneously carries the first Discovery message and the D2D communication data, where the first Discovery message and the D2D communication data pass logic
  • the channel identifier is distinguished.
  • the D2D link control information that is determined by the processor is to indicate that the first Discovery message is carried
  • the transmission resource information of the D2D communication data the transmission resource of the D2D communication data only carries the first Discovery message, wherein the first Discovery message and the D2D communication data are distinguished by different transmission resources.
  • the terminal device further includes a receiver, where the receiver is configured to receive another terminal device to send a second Discovery message; the processor is configured to determine whether the second Discovery message includes the Discovery dedicated logical channel identifier and/or whether the value of the flag bit is a preset value to determine the second Discovery message Whether it is from a D2D shared transport channel; the processor is configured to: when the second Discovery message is from a D2D shared transport channel, the terminal device processes the second Discovery message according to a mechanism for transmitting the first Discovery.
  • the terminal device maps the first Discovery message to the D2D by establishing a mapping relationship between the ProSe protocol layer and the D2D shared transport channel.
  • the terminal device determines that the number of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold, the terminal device maps the first Discovery message to the D2D.
  • the shared transmission channel is mapped. Otherwise, the first Discovery message is mapped to the D2DDiscovery transmission channel; the Discovery message of different number of bits can be flexibly transmitted, the validity of the data transmission is improved, and the packet loss is caused by the number of bits of the Discovery message being greater than the fixed number of bits. happening.
  • FIG. 1 is a flow chart of an embodiment of a data transmission method of the present application.
  • FIG. 2 is a flow chart of another embodiment of a data transmission method of the present application.
  • FIG. 3 is a schematic diagram of an embodiment of establishing a mapping relationship between a ProSe protocol layer and a D2D shared transport channel in the present application;
  • FIG. 5 is a schematic diagram of another embodiment of establishing a mapping relationship between a ProSe protocol layer and a D2D shared transport channel in the present application;
  • FIG. 6 is a schematic diagram of channel mapping of an embodiment of the present application for mapping a Discovery message to a D2D shared transport channel
  • FIG. 7 is a schematic diagram of an embodiment of a D2D shared transport channel MAC data packet format of the present application.
  • FIG. 8 is a flowchart of still another embodiment of a data transmission method of the present application.
  • FIG. 9 is a schematic diagram of channel mapping of another embodiment of mapping a Discovery message to a D2D shared transport channel according to the present application.
  • FIG. 10 is a schematic diagram of an embodiment of distinguishing a Discovery message and D2D communication data in FIG. 8 by using different physical resources;
  • FIG. 11 is a schematic structural diagram of an embodiment of a data transmission device of the present application.
  • FIG. 12 is a schematic structural diagram of another embodiment of a data transmission device of the present application.
  • FIG. 13 is a schematic structural diagram of an embodiment of a terminal device according to the present application.
  • Such as current 2G, 3G communication systems and next generation communication systems such as Global System for Mobile Communications (the techniques described in this paper can be used in various communication systems, eg GSM, Global System For Mobile communications), Code Division Multiple Access (CDMA, Code Division Multiple) Access) system, Time Division Multiple Access (TDMA) system, Wideband Code Division Multiple Access (WCDMA, Wideband Code) Division Multiple Access Wireless), Frequency Division Multiple Access (FDMA, Frequency Division Multiple) Addressing) system, orthogonal frequency division multiple access (OFDMA, Orthogonal Frequency-Division Multiple Access) system, single carrier FDMA (SC-FDMA) system, general packet radio service (GPRS, General Packet Radio Service) systems, Long Term Evolution (LTE) systems, and other such communication systems.
  • GSM Global System for Mobile communications
  • CDMA Code Division Multiple Access
  • TDMA Time Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • FDMA Frequency Division Multiple Access
  • OFDMA Ortho
  • the wireless terminal can be a device that provides voice and/or data connectivity to the user, a handheld device with wireless connectivity, or other processing device that is connected to the wireless modem.
  • the wireless terminal can be accessed via a wireless access network (eg, RAN, Radio) Access Network) communicating with one or more core networks, which may be mobile terminals, such as mobile phones (or "cellular" phones) and computers with mobile terminals, for example, portable, pocket, handheld, Computer built-in or in-vehicle mobile devices that exchange language and/or data with a wireless access network.
  • a wireless access network eg, RAN, Radio) Access Network
  • core networks which may be mobile terminals, such as mobile phones (or "cellular" phones) and computers with mobile terminals, for example, portable, pocket, handheld, Computer built-in or in-vehicle mobile devices that exchange language and/or data with a wireless access network.
  • a wireless terminal can also be called a system, a subscriber unit (Subscriber Unit), Subscriber Station, Mobile Station, Mobile, Remote Station (Remote) Station), access point (Access Point), remote terminal (Remote Terminal), access terminal (Access) Terminal), User Terminal, User Agent, User Device, or User Equipment (User) Equipment).
  • Subscriber Unit Subscriber Station
  • Mobile Station Mobile, Remote Station (Remote) Station
  • Access Point Access Point
  • Remote Terminal Remote Terminal
  • Access Terminal Access Terminal
  • User Terminal User Agent
  • User Device User Equipment
  • User Equipment User Equipment
  • a base station can refer to a device in an access network that communicates with a wireless terminal over one or more sectors over an air interface.
  • the base station can be used to convert the received air frame to the IP packet as a router between the wireless terminal and the rest of the access network, wherein the remainder of the access network can include an Internet Protocol (IP) network.
  • IP Internet Protocol
  • the base station can also coordinate attribute management of the air interface.
  • the base station can be a base station in GSM or CDMA (BTS, Base) Transceiver Station), which may also be a base station (NodeB) in WCDMA, or an evolved base station in LTE (eNB or e-NodeB, evolutional Node) B), this application is not limited.
  • the core network node device can be applied to different communication network systems, including but not limited to SAE (System Architecture Evolved, System Architecture Evolution Network)/LTE (Long Term Evolved) Network, UMTS (Universal) Mobile Telecommunications System, CDMA (Code Division Mutiple) Access, code division multiple access) and so on.
  • the core network node device includes, but is not limited to, a mobility management entity MME, a serving GPRS support node SGSN (Serving GPRS Support) Node) or mobile switching center MSC (Mobile Switching) Center), there is no limit here.
  • the core network node device may be an MME, and the wireless access node device may be an eNB; for a UMTS network, the core network node device may be an SGSN or an MSC, and the wireless access node device It can be RNC or nodeB.
  • the core network node device may be an MME, and the wireless access node device may be an eNB; for a UMTS network, the core network node device may be an SGSN or an MSC, and the wireless access node device It can be RNC or nodeB.
  • RNC nodeB
  • system and “network” are used interchangeably herein.
  • the term “and/or” in this context is merely an association describing the associated object, indicating that there may be three relationships, for example, A and / or B, which may indicate that A exists separately, and both A and B exist, respectively. B these three situations.
  • the character "/" in this article generally indicates that the contextual object is an "or" relationship.
  • FIG. 1 is a flowchart of an embodiment of a data transmission method of the present application.
  • the execution subject of this embodiment is a terminal device (User Equipment, UE), the UE may be a mobile terminal device such as a mobile phone. Two UEs can communicate directly to transmit data.
  • the data transmission method of this embodiment includes the following steps:
  • the terminal device establishes a mapping relationship between the device-to-device proximity service D2D ProSe protocol layer and the D2D shared transport channel.
  • the terminal device establishes the device-to-device proximity service D2D ProSe protocol layer to the D2D shared transport channel (Sidelink Shared) Channel, SL-SCH) mapping relationship to enable the terminal device to map the Discovery message generated by the ProSe protocol layer to the D2D shared transport channel.
  • D2D shared transport channel is in media access control protocol (Medium) Access Control, MAC) layer.
  • the mapping relationship between the ProSe protocol layer and the D2D shared transport channel of the terminal device may be a direct mapping relationship between the ProSe protocol layer and the D2D shared transport channel of the MAC layer, or may be a packet data convergence protocol (Packet). Data Convergence Protocol (PDCP) layer or Radio Link Control Protocol (Radio Link)
  • PDCP Data Convergence Protocol
  • Radio Link Radio Link Control Protocol
  • the mapping between the ProSe protocol layer and the D2D shared transport channel of the MAC layer is established through the PDCP layer or the RLC layer, and is not limited herein.
  • the processing is performed according to the processing flow in the prior art.
  • steps S102 to S104 are performed.
  • S102 Determine whether the number of bits of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold.
  • the terminal device When the terminal device communicates with the other terminal device and sends the first Discovery message to the other terminal device, the terminal device determines whether the number of bits of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold.
  • the first Discovery message is a Discovery message to be transmitted.
  • the preset threshold is a preset number of bits, and the preset threshold is a D2D Discovery transmission channel (Sidelink) Discovery Channel, SL-DCH) The fixed number of bits of the Discovery message carried.
  • the preset threshold may be 232 bits, but is not limited thereto, and may be set to other values, which is not limited herein.
  • the Discovery transport channel can only carry Discovery messages that are less than or equal to the preset threshold. When the number of bits in the Discovery message is greater than the preset threshold, D2D The Discovery transport channel cannot be carried.
  • step S103 is performed.
  • step S104 is performed.
  • the terminal device maps the first Discovery message from the ProSe protocol layer according to the mapping relationship between the ProSe protocol layer and the D2D shared transport channel of the MAC layer.
  • the D2D shared transport channel of the MAC layer is the mapping relationship between the ProSe protocol layer and the D2D shared transport channel of the MAC layer.
  • the first Discovery message is transmitted to the physical (PHY) layer through the D2D shared transport channel, and the first Discovery message is transmitted to other terminal devices through the transmission resources available to the physical layer.
  • S104 Map the first Discovery message to the D2DDiscovery transmission channel when the number of bits of the first discovery message is less than or equal to the preset threshold.
  • the terminal device maps the first Discovery message from the ProSe protocol layer to the D2DDiscovery transmission channel of the MAC layer.
  • the terminal device transmits the first Discovery message to the physical (PHY) layer through the D2DDiscovery transmission channel, and transmits the first Discovery message to other terminal devices through the transmission resources available in the physical layer.
  • the terminal device establishes a mapping relationship between the ProSe protocol layer and the D2D shared transport channel, and when the terminal device determines that the number of bits of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold, mapping the first Discovery message to the D2D share.
  • Transport channel otherwise, map the first Discovery message to the D2DDiscovery transmission channel; can flexibly transmit Discovery messages of different bit numbers, improve the validity of data transmission, and prevent the packet loss caused by the number of bits of the Discovery message being greater than the fixed number of bits. .
  • FIG. 2 is a flowchart of another embodiment of the data transmission method of the present application.
  • the execution body of this embodiment is a terminal device, (User Equipment, UE), the UE may be a mobile terminal device such as a mobile phone. Two UEs can communicate directly to transmit data.
  • the data transmission method of this embodiment includes the following steps:
  • the terminal device adds a Discovery dedicated radio bearer at the packet data convergence protocol layer, and establishes a mapping relationship between the ProSe protocol layer and the Discovery dedicated radio bearer.
  • the terminal device adds a Discovery dedicated radio bearer in the PDCP layer of the packet data convergence protocol layer, and establishes a mapping relationship between the ProSe protocol layer and the Discovery dedicated radio bearer, thereby establishing a mapping relationship between the ProSe protocol layer and the D2D shared transport channel.
  • the terminal device also configures a Discovery dedicated logical channel for the Discovery dedicated radio bearer.
  • the Discovery dedicated radio bearer is used to carry the Discovery message.
  • the Discovery message carried by the Discovery dedicated radio bearer is mapped to the Discovery dedicated logical channel and identified by the Discovery dedicated logical channel identifier.
  • the Discovery message of the Discovery dedicated logical channel identifier is transmitted through the D2D shared transport channel.
  • the Discovery dedicated radio bearer corresponds to the Discovery dedicated logical channel
  • the Discovery dedicated logical channel corresponds to the Discovery dedicated logical channel identifier.
  • FIG. 3 is a schematic diagram of an embodiment of establishing a mapping relationship between a ProSe protocol layer and a D2D shared transport channel.
  • the terminal device adds a Discovery dedicated radio bearer in the PDCP layer of the protocol stack of the D2D direct communication mode, and establishes a mapping relationship between the ProSe protocol layer and the Discovery dedicated radio bearer, so that the terminal device can map the Discovery message from the ProSe protocol layer to the PDCP layer.
  • the dedicated radio bearer establishes a mapping relationship between the ProSe protocol layer and the D2D shared transport channel in the MAC layer through the PDCP layer and the RLC layer.
  • the Discovery dedicated radio bearer is used to carry the Discovery message.
  • the Discovery message carried by the Discovery dedicated radio bearer can be mapped to the Discovery dedicated logical channel and identified by the Discovery dedicated logical channel identifier.
  • the Discovery dedicated logical channel identifier Discovery message can be shared by D2D.
  • the transmission channel is transmitted.
  • the D2D communication data generated at the application layer is processed through the TCP/UDP layer, the IP layer, the packet data convergence protocol PDCP layer, the radio link control protocol RLC layer, the MAC layer, and the PHY layer.
  • steps S202 to S206 are performed.
  • steps S207 to S209 are performed.
  • S202 Determine whether the number of bits of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold.
  • the terminal device When the terminal device communicates with the other terminal device and sends the first Discovery message to the other terminal device, the terminal device determines whether the number of bits of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold.
  • the first Discovery message is a Discovery message to be transmitted.
  • the preset threshold is a preset number of bits, and the preset threshold is a D2D Discovery transmission channel (Sidelink) Discovery Channel, SL-DCH) The fixed number of bits of the Discovery message.
  • Sidelink Sidelink
  • SL-DCH D2D Discovery transmission channel
  • the preset threshold may be less than or equal to the maximum number of bits that the SL-DCH can carry.
  • the preset threshold may be 232 bits, but is not limited thereto, and may be set to other values, which is not limited herein.
  • the maximum number of bits that the SL-DCH can carry is determined by the D2D direct communication resources available to the transmitting UE.
  • the Discovery transport channel can carry a Discovery message with a number of bits less than or equal to a preset threshold. When the number of bits of the Discovery message is greater than a preset threshold, D2D The Discovery transport channel cannot be carried.
  • step S203 is performed.
  • step S206 is performed.
  • the terminal device delivers the first Discovery message to the packet data convergence protocol layer, and maps the first Discovery message to the Discovery dedicated radio bearer.
  • the terminal device determines that the number of bits of the first discovery message is greater than a preset threshold, the first Discovery message is transmitted from the ProSe protocol layer to the PDCP layer, and the Discovery message is removed from the ProSe protocol according to the mapping relationship between the ProSe protocol layer and the Discovery dedicated radio bearer.
  • the layer maps to the Discovery dedicated radio bearer of the PDCP layer.
  • the PDCP layer processes the first Discovery message according to the processing mode of the D2D communication data, and submits it to the RLC layer for further processing, and then delivers the first discovery message to the MAC layer and maps it to a DyD-dedicated D2D service logical channel.
  • the dedicated logical channel corresponds to the above-mentioned Discovery dedicated radio bearer, and the DyD-dedicated D2D service logical channel has a one-to-one correspondence with the Discovery dedicated logical channel identifier.
  • the processing flow in the PDCP layer and the RLC layer is the same as the processing flow of the D2D communication data in the PDCP layer and the RLC layer in the prior art, and details are not described herein.
  • the terminal device maps the first Discovery message to the D2D shared transport channel, and adds a Discovery-dedicated logical channel identifier to the first Discovery message, where the Discovery-dedicated logical channel identifier is used to identify The D2D shares a Discovery message transmitted by the transport channel.
  • the terminal device After the terminal device delivers the first Discovery message from the RLC layer to the MAC layer, the first Discovery message is mapped to the D2D shared transport channel according to the mapping relationship between the D2D service logical channel STCH and the D2D shared transport channel SL-SCH in the MAC layer.
  • the terminal device After mapping the first Discovery message to the D2D shared transport channel, the terminal device adds a data packet header to the first Discovery message in the D2D shared transport channel, and adds a Discovery dedicated logical channel identifier (Logical) to the first Discovery message in the data packet header.
  • a Discovery dedicated logical channel identifier (Logical) to the first Discovery message in the data packet header.
  • Channel Identity, LCID Channel Identity
  • the Discovery dedicated logical channel identifier corresponds to a Discovery dedicated radio bearer, and the Discovery dedicated logical channel identifier is used to identify a Discovery message from the Discovery dedicated radio bearer transmitted through the D2D shared transport channel.
  • the Discovery dedicated logical channel identifier corresponding to the Discovery dedicated radio bearer is used to enable other terminal devices to identify, by the Discovery dedicated logical channel identifier, the first Discovery message, including the Discovery message from the Discovery dedicated radio bearer, after receiving the first Discovery message. For further processing.
  • the value of the logical channel identifier of the D2D communication data is usually 1 to 10. Therefore, the value of the Discovery dedicated logical channel identifier corresponding to the Discovery dedicated radio bearer may be any logical channel except the logical value of 1 to 10. value.
  • the value of the logical channel identifier used to identify the Discovery message is 11, but is not limited thereto.
  • the terminal device delivers the first Discovery message to the physical layer by using the D2D shared transport channel, and sets a flag bit in the D2D link control information corresponding to the first Discovery message, and the D2D communication data is used.
  • the transmission resource transmits the first Discovery message.
  • the terminal device After the terminal device adds the Discovery-dedicated logical channel identifier to the first Discovery message, the first Discovery message that adds the Discovery-dedicated logical channel identifier is transmitted from the MAC layer to the physical layer through the D2D shared transport channel.
  • the terminal device controls the D2D link corresponding to the first Discovery message (Sidelink Control).
  • the flag is set in the Information, SCI), and the first Discovery message is transmitted through the transmission resource of the D2D communication data.
  • the flag is used to indicate whether the transmission resource of the D2D communication data carries a Discovery message, and the first Discovery message is a Discovery message carried by the Discovery dedicated radio bearer.
  • the step of setting a flag bit in the D2D link control information corresponding to the first Discovery message, and transmitting the first Discovery message by using a transmission resource of the D2D communication data includes: determining, by the terminal device, the scheduling information or the available transmission resource.
  • the D2D link control information is used to indicate information of a transmission resource carrying data to be transmitted, and the information of the transmission resource includes information such as frequency and time of the transmission resource. At this time, the D2D link control information is used to indicate the transmission resource information that carries the first Discovery message.
  • the flag bit in the D2D link control information may occupy 1 bit in the SC, and the flag bit is used to indicate whether the first Discovery message includes a Discovery message carried by the Discovery dedicated radio bearer.
  • the first Discovery message carried by the transmission resource indicated by the SCI includes the Discovery message carried by the Discovery-dedicated radio bearer; otherwise, the SCI indicates The data packet carried by the transmission resource only contains other D2D communication data, and does not include the Discovery message carried by the Discovery dedicated radio bearer.
  • Terminal equipment is controlled by D2D link (Sidelink The control, SC) resource transmits the SCI of the first Discovery message, and transmits the first Discovery message according to the SCI through the available D2D communication data resource, to send the first Discovery message to other terminal devices.
  • D2D link Seglink The control, SC
  • the first Discovery message may be separately transmitted into multiple fragments; therefore, the first Discovery message may be a single MAC packet, or may be divided into multiple MAC packets. .
  • the data may be transmitted multiple times; the physical resources occupied by the data packets transmitted multiple times may be the same or different, and are not limited herein.
  • S206 Map the first Discovery message to the D2D when the number of bits of the first discovery message is less than or equal to the preset threshold. Discovery transport channel.
  • the terminal device When the terminal device determines that the number of bits of the first Discovery message generated by the ProSe protocol layer is less than or equal to a preset threshold, the terminal device transmits the first Discovery message from the ProSe protocol layer to the MAC layer, and according to the ProSe protocol layer and the D2D in the MAC layer.
  • the mapping relationship of the Discovery transport channel maps the first Discovery message to the D2D Discovery transport channel of the MAC layer.
  • S207 The terminal device receives a second Discovery message sent by another terminal device.
  • the terminal device When the other terminal device sends the second Discovery message to the terminal device, the terminal device receives the second Discovery message sent by the other terminal device.
  • the terminal device determines whether the second Discovery message includes the value of the Discovery-dedicated logical channel identifier and/or the flag bit is a preset value, to determine whether the second Discovery message is from a D2D shared transmission. channel.
  • the preset value of the flag bit of the D2D link control information corresponds to the value set in advance in step S205.
  • the terminal device determines that the second Discovery message includes a Discovery dedicated logical channel identifier corresponding to the Discovery dedicated radio bearer, or the value of the flag of the D2D link control information is a preset value, determining that the received second Discovery message is from the D2D sharing The transport channel, the second Discovery message includes a Discovery message carried by the Discovery dedicated radio bearer.
  • step S209 is performed; otherwise, the processing is performed according to the method in the prior art.
  • the terminal device Since the terminal device sends the Discovery message and receives the Discovery message, the reverse process is performed. Therefore, when the terminal device receives the second Discovery message, the terminal device processes the process according to the first Discovery message.
  • the terminal device confirms that the received second Discovery message is from the D2D shared transport channel
  • the second Discovery message received by the D2D shared transport channel is delivered from the MAC layer to the RLC layer, and then further delivered to the PDCP layer, and further The mapping relationship between the Discovery dedicated radio bearer of the PDCP layer and the ProSe protocol layer, and the received information is delivered from the PDCP layer to the ProSe protocol layer for processing.
  • the terminal device confirms that the received second Discovery message is from the D2D shared transport channel
  • the second Discovery message received by the D2D shared transport channel is delivered from the MAC layer to the RLC layer, and then further delivered to the PDCP layer, and further The mapping relationship between the Discovery dedicated radio bearer of the PDCP layer and the ProSe protocol layer, and the received information is delivered from the PDCP layer to the ProSe protocol layer for processing.
  • the terminal device adds a Discovery dedicated radio bearer in the packet data convergence protocol layer, and establishes a mapping relationship between the ProSe protocol layer and the D2D shared transport channel, and the terminal device determines that the number of bits of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold.
  • the first Discovery message is mapped to the D2D shared transport channel, otherwise, the first Discovery message is mapped to the D2DDiscovery transport channel; the Discovery message of different bit numbers can be flexibly transmitted, the validity of the data transmission is improved, and the bit of the Discovery message is prevented.
  • the number is greater than the fixed number of bits resulting in packet loss.
  • FIG. 4 is a flowchart of still another embodiment of the data transmission method of the present application.
  • the execution subject of this embodiment is a terminal device (User Equipment, UE), the UE may be a mobile terminal device such as a mobile phone. Two UEs can communicate directly to transmit data.
  • UE User Equipment
  • This embodiment differs from the previous embodiment in steps S301, S303 to S305, and S307 to S309.
  • the data transmission method of this embodiment includes the following steps:
  • the terminal device establishes a mapping relationship between a ProSe protocol layer and a D2D shared transport channel at a medium access control protocol layer.
  • FIG. 5 is a schematic diagram of another embodiment of establishing a mapping relationship between a ProSe protocol layer and a D2D shared transport channel.
  • 5-1 is a schematic diagram of a protocol stack for establishing a mapping relationship between a ProSe protocol layer and a D2D shared transport channel in the present application
  • FIG. 5-2 is a channel map for establishing a mapping relationship between a ProSe protocol layer and a D2D shared transport channel in the present application.
  • mapping path 2 represents the mapping relationship between the ProSe protocol layer and the D2D shared transport channel.
  • the terminal device establishes a mapping relationship between the ProSe protocol layer and the D2D shared transport channel at the MAC layer of the medium access control protocol layer, so that the terminal device can map the Discovery message generated by the ProSe protocol layer to the D2D shared transport channel in the MAC layer.
  • the processing is performed according to the processing flow in the prior art.
  • steps S302 to S306 are performed.
  • steps S307 to S309 are performed.
  • S302 Determine whether the number of bits of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold.
  • step S302 is the same as the step S202 in the previous embodiment. For details, refer to the detailed description of step S202 in the previous embodiment, and details are not described herein.
  • step S303 is performed.
  • step S306 is performed.
  • the terminal device determines that the number of bits of the first Discovery message is greater than a preset threshold, the first Discovery message is transmitted from the ProSe protocol layer to the MAC layer.
  • the terminal device maps the first Discovery message to the D2D shared transport channel, and adds a Discovery-dedicated logical channel identifier to the first Discovery message, where the Discovery-dedicated logical channel identifier is used to identify The D2D shares a Discovery message transmitted by the transport channel.
  • the terminal device maps the first Discovery message to the D2D shared transport channel in the MAC layer according to the mapping relationship between the ProSe protocol layer and the D2D shared transport channel in the MAC layer.
  • the terminal device After mapping the first Discovery message to the D2D shared transport channel, the terminal device adds a data packet header to the first Discovery message in the D2D shared transport channel, and adds a Discovery dedicated logical channel identifier (Logical) to the first Discovery message in the data packet header.
  • Logical Discovery dedicated logical channel identifier
  • the Discovery dedicated logical channel identifier is used to identify that the first Discovery message is a Discovery message transmitted through a D2D shared transport channel.
  • the Discovery message of the Discovery dedicated logical channel identifier is delivered by the ProSe protocol layer to the medium access control protocol layer, and can be transmitted through the D2D shared transport channel.
  • the Discovery dedicated logical channel identifier is used to enable other terminal devices to identify, by using the Discovery dedicated logical channel identifier, that the first Discovery message is delivered by the ProSe protocol layer to the medium access control protocol layer after receiving the first Discovery message, and Transmission over the D2D shared transport channel for further processing.
  • FIG. 6 is a channel mapping diagram of an embodiment of the present application for mapping a Discovery message to a D2D shared transport channel.
  • the value of the Discovery dedicated logical channel identifier corresponding to the Discovery dedicated radio bearer may be removed from the logical channel by an identifier value of 1 to 10.
  • the value of the logical channel identifier used to identify the Discovery message is 11, but is not limited thereto.
  • FIG. 7 is a schematic diagram of an embodiment of a D2D shared transport channel MAC data packet format of the present application.
  • the terminal device When the terminal device confirms that the available D2D communication data transmission resource carries the D2D communication data after the first data packet is carried, and the redundant transmission resource transmits the D2D communication data, the terminal device sets the Discovery dedicated logical channel identifier in the same MAC data packet header and The logical channel identifier corresponding to the D2D communication data to be transmitted, so that the terminal device can simultaneously transmit the first Discovery message and the D2D communication data to be transmitted through the same D2D communication data transmission resource.
  • the terminal device When the terminal device confirms that the available D2D communication data transmission resource carries the first Discovery message, and does not have redundant transmission resources to transmit the D2D communication data, the terminal device sets the Discovery dedicated logical channel identifier in the different MAC data packet header, to be transmitted.
  • the logical channel identifier corresponding to the D2D communication data so that the terminal device can simultaneously transmit the first Discovery message and the D2D communication data to be transmitted through different D2D communication data transmission resources.
  • the first Discovery message and the D2D communication data are distinguished by different transmission resources.
  • the terminal device delivers the first Discovery message to the physical layer by using the D2D shared transport channel, and sets a flag bit in the D2D link control information corresponding to the first Discovery message, and the D2D communication data is used.
  • the transmission resource transmits the first Discovery message, where the flag bit is used to indicate whether a transmission resource of the D2D communication data carries a Discovery message, and the Discovery message is transmitted from the ProSe protocol layer to the media access control Discovery message at the protocol layer.
  • the terminal device After the terminal device adds the Discovery-dedicated logical channel identifier to the first Discovery message, the first Discovery message that adds the Discovery-dedicated logical channel identifier is delivered to the physical layer through the D2D shared transport channel.
  • the terminal device controls the D2D link corresponding to the first Discovery message (Sidelink Control).
  • the flag is set in the Information, SCI), and the first Discovery message is transmitted through the transmission resource of the D2D communication data.
  • the flag bit is used to indicate whether the transmission resource of the D2D communication data carries a Discovery message, and the first Discovery message is a Discovery message transmitted from the ProSe protocol layer to the medium access control protocol layer.
  • the step of setting a flag bit in the D2D link control information corresponding to the first Discovery message, and transmitting the first Discovery message by using a transmission resource of the D2D communication data includes: determining, by the terminal device, the scheduling information or the available transmission resource.
  • a flag bit is set in the link control information to transmit the first Discovery message through the transmission resource indicated by the D2D link control information.
  • the terminal device determines D2D link control information corresponding to the first Discovery message according to the scheduling information or the available transmission resource, where the first Discovery message is received.
  • the value of the flag bit is set in the corresponding D2D link control information to transmit the first Discovery message through the transmission resource indicated by the D2D link control information.
  • the D2D link control information corresponding to the first Discovery message is used to indicate the transmission resource information that carries the first Discovery message.
  • the terminal device obtains the D2D link control information corresponding to the first Discovery message from the scheduling information sent by the base station, or determines the D2D link control information corresponding to the first Discovery message according to the transmission resource allocated by the first Discovery message.
  • the D2D link control information in the first Discovery message (Sidelink Control Set the value of the flag in Information, SCI).
  • the D2D link control information corresponding to the first Discovery message indicates the transmission resource information that carries the first Discovery message and the transmission resource information that is common to the D2D communication data.
  • the D2D link control information is used to indicate information about a transmission resource that carries data to be transmitted, and the information of the transmission resource includes information such as a frequency and time of the transmission resource.
  • the D2D link control information is used to indicate the transmission resource information that carries the first Discovery message, or the transmission resource information that is common to the first Discovery message and the D2D communication data.
  • the first Discovery message and the D2D communication data are distinguished by a logical channel identifier.
  • the first Discovery message and the D2D communication data are distinguished by flag bits in the D2D link control information and different transmission resources. It can be understood that the first Discovery message can be a data packet and can be transmitted at one time.
  • the flag bit in the D2D link control information may occupy 1 bit in the SC, and the flag bit is used to indicate whether the first Discovery message includes a Discovery message transmitted from the ProSe protocol layer to the MAC layer.
  • the first Discovery message carried by the transmission resource indicated by the SCI includes a Discovery message transmitted from the ProSe protocol layer to the MAC layer; otherwise, the SCI office
  • the data packet carried by the indicated transmission resource contains only other D2D communication data, and does not include the Discovery message transmitted from the ProSe protocol layer to the MAC layer.
  • S306 Map the first Discovery message to the D2DDiscovery transmission channel when the number of bits of the first discovery message is less than or equal to the preset threshold.
  • step S306 is the same as the step S206 in the previous embodiment. For details, refer to the detailed description of step S206 in the previous embodiment, and details are not described herein.
  • S307 The terminal device receives a second Discovery message sent by another terminal device.
  • step S307 is the same as the step S207 in the previous embodiment.
  • steps S207 in the previous embodiment For details, refer to the detailed description of step S207 in the previous embodiment, and details are not described herein.
  • the terminal device determines whether the second Discovery message includes the value of the Discovery-dedicated logical channel identifier and/or the flag bit is a preset value, to determine whether the second Discovery message is from a D2D shared transmission. channel.
  • the preset value of the flag bit of the D2D link control information corresponds to the value set in advance in step S305.
  • the terminal device determines that the second Discovery message includes the Discovery dedicated logical channel identifier, or the value of the flag of the D2D link control information is a preset value, it is determined that the received second Discovery message is from the D2D shared transport channel.
  • step S309 is performed; otherwise, the processing is performed according to the method in the prior art.
  • S309 Pass the D2D when the second Discovery message is from a D2D shared transport channel.
  • the Discovery transport channel passes the second Discovery message from the medium access control protocol layer to the ProSe protocol layer for processing.
  • the terminal device Since the terminal device sends the Discovery message and receives the Discovery message, the reverse process is performed. Therefore, when the terminal device receives the second Discovery message, the terminal device processes the process according to the first Discovery message.
  • the second Discovery message is transmitted from the MAC layer to the ProSe protocol layer through the D2D shared transport channel for processing.
  • the terminal device confirms that the received second Discovery message is from the D2D shared transport channel
  • the second Discovery message is transmitted from the MAC layer to the ProSe protocol layer through the D2D shared transport channel for processing.
  • the terminal device establishes a direct mapping relationship between the ProSe protocol layer and the D2D shared transport channel at the MAC layer, and maps the first Discovery message when the terminal device determines that the number of bits of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold.
  • the first Discovery message is mapped to the D2DDiscovery transport channel; the Discovery message of different bit numbers can be flexibly transmitted, the validity of the data transmission is improved, and the number of bits of the Discovery message is prevented from being larger than the fixed number of bits. The situation of packet loss.
  • FIG. 8 is a flowchart of still another embodiment of the data transmission method of the present application.
  • the execution subject of this embodiment is a terminal device (User Equipment, UE), wherein the UE may be a mobile terminal device such as a mobile phone. Two UEs can communicate directly to transmit data.
  • UE User Equipment
  • Steps S401 to S403 in this embodiment are the same as S301 to S303 in the previous embodiment.
  • Steps S406 and S407 in this embodiment are the same as steps S306 and S307 in the previous embodiment.
  • the data transmission method of this embodiment includes the following steps:
  • the terminal device establishes a mapping relationship between a ProSe protocol layer and a D2D shared transport channel at a medium access control protocol layer.
  • the step S401 is the same as the step S301 in the previous embodiment.
  • S402 Determine whether the number of bits of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold.
  • step S402 is the same as the step S302 in the previous embodiment.
  • steps S302 in the previous embodiment For details, refer to the detailed description of step S302 in the previous embodiment, and details are not described herein.
  • step S403 is the same as the step S303 in the previous embodiment. For details, refer to the detailed description of step S303 in the previous embodiment, and details are not described herein.
  • S404 The terminal device maps the first Discovery message to the D2D shared transport channel.
  • the terminal device maps the first Discovery message to the D2D shared transport channel in the MAC layer according to a direct mapping relationship between the ProSe protocol layer and the D2D shared transport channel in the MAC layer.
  • FIG. 9 is a schematic diagram of channel mapping of another embodiment of the present application for mapping a Discovery message to a D2D shared transport channel.
  • the first Discovery message mapped to the D2D shared transport channel and the D2D communication data use the same logical channel identifier.
  • the values of the logical channel identifiers of the first Discovery message and the D2D communication data are usually 1 to 10.
  • the terminal device delivers the first Discovery message to the physical layer by using the D2D shared transport channel, and sets a flag bit in the D2D link control information corresponding to the first Discovery message, and the D2D communication data is used.
  • the transmission resource transmits the first Discovery message, where the flag bit is used to indicate whether a transmission resource of the D2D communication data carries a Discovery message, and the Discovery message is transmitted from the ProSe protocol layer to the media access control protocol. Layer of Discovery messages.
  • the terminal device After mapping the first Discovery message to the D2D shared transport channel, the terminal device transmits the first Discovery message from the MAC layer to the physical layer through the D2D shared transport channel, and determines the D2D corresponding to the first Discovery message according to the scheduling information or the available transmission resource.
  • the link control information sets a value of the flag bit in the D2D link control information corresponding to the first Discovery message to transmit the first Discovery message through the transmission resource indicated in the D2D link control information.
  • the D2D link control information corresponding to the first Discovery message is used to indicate the transmission resource information that carries the first Discovery message.
  • the D2D link control information corresponding to the first Discovery message (Sidelink Control) Set the flag in Information, SCI).
  • the D2D link control information is used to indicate information about a transmission resource that carries data to be transmitted, and the information of the transmission resource includes information such as a frequency and time of the transmission resource.
  • the D2D link control information corresponding to the first Discovery message is only used to indicate the transmission resource information that carries the first Discovery message.
  • the transmission resource information carrying the D2D communication data is indicated by the D2D link control information corresponding to the D2D communication data.
  • the first Discovery message and the D2D communication data are distinguished by different transmission resources and transmitted separately.
  • the flag bit in the D2D link control information may occupy 1 bit in the SC, and the flag bit is used to indicate whether the first Discovery message includes the second Discovery message carried by the D2D shared transport channel.
  • FIG. 10 is a schematic diagram of an embodiment of the present application for distinguishing a Discovery message and D2D communication data by using different physical resources.
  • the terminal device uses different transmission resources to distinguish the first Discovery message from other D2D communication data, and transmits the corresponding SCI by using different SCI resource transmissions.
  • the above SCI 1 The bit identifier bit is used to indicate whether the resource indicated by the corresponding SCI carries the first Discovery message.
  • the resource indicated by the SCI is the transmission resource corresponding to the first Discovery message; otherwise, the resource indicated by the SCI is other D2D communication data.
  • the corresponding transmission resource For example, if the value of the 1-bit flag bit of the SCI is set to "1", the resource indicated by the SCI is the transmission resource corresponding to the first Discovery message; otherwise, the resource indicated by the SCI is other D2D communication data. The corresponding transmission resource.
  • Terminal equipment is also controlled via D2D link (Sidelink The control, SC) resource transmits the SCI of the D2D communication data, and instructs the terminal device to transmit the D2D communication data through the available D2D communication data resources according to the SCI of the D2D communication data to transmit the D2D communication data to other terminal devices.
  • D2D link Sidelink The control, SC
  • the terminal device may separately acquire the transmission resource of the first Discovery message and the D2D communication data and the corresponding SC by using the scheduling information sent by the base station.
  • the terminal device may also obtain the transmission resource for the first Discovery message, the D2D communication data, and the corresponding SC resource, respectively, in the D2D direct communication contention resource pool corresponding to the terminal device.
  • the resource pool is a set of time-frequency resources.
  • the D2D direct communication contention resource pool is configured through LTE system broadcast or dedicated signaling, and is not described here.
  • a 1-bit identifier bit may be added to distinguish the SC resource and whether the transmission resource allocated by the SCI corresponds to transmitting the first Discovery message or corresponding to transmitting the D2D communication data.
  • the first Discovery message can be a data packet and can be transmitted at one time.
  • the terminal device sets the flag bit in the D2D link control information corresponding to the first Discovery message to distinguish the first Discovery message and the D2D communication data, and transmits the first Discovery message and the D2D through different transmission resources. Communication data.
  • S406 Map the first Discovery message to the D2D when the number of bits of the first discovery message is not greater than the preset threshold. Discovery transport channel.
  • step S406 is the same as the step S306 in the previous embodiment.
  • steps S306 in the previous embodiment For details, refer to the detailed description of step S306 in the previous embodiment, and details are not described herein.
  • S407 The terminal device receives a second Discovery message sent by another terminal device.
  • step S407 is the same as the step S307 in the previous embodiment.
  • steps S307 in the previous embodiment For details, refer to the detailed description of step S307 in the previous embodiment, and details are not described herein.
  • the terminal device determines whether the value of the flag bit is a preset value to determine whether the second Discovery message is from a D2D shared transport channel.
  • the terminal device determines whether the value of the flag bit of the D2D link control information included in the received second Discovery message is a preset value, thereby determining whether the received second Discovery message is from the D2D shared transport channel.
  • the preset value of the flag bit of the D2D link control information corresponds to the value set in advance in step S406.
  • the terminal device determines that the value of the flag bit of the D2D link control information included in the second Discovery message is a preset value, it is determined that the received second Discovery message is from the D2D shared transport channel.
  • step S409 is performed; otherwise, the processing is performed according to the method in the prior art.
  • the terminal device Since the terminal device sends the Discovery message and receives the Discovery message, the reverse process is performed. Therefore, when the terminal device receives the second Discovery message, the terminal device processes the process according to the first Discovery message.
  • the second Discovery message is delivered from the MAC layer to the ProSe protocol layer through the D2D shared transport channel for processing.
  • the terminal device confirms that the received second Discovery message is from the D2D shared transport channel
  • the second Discovery message is delivered from the MAC layer to the ProSe protocol layer through the D2D shared transport channel for processing.
  • the Discovery message and the D2D communication data are distinguished by different transmission resources, so that the terminal device that receives the information can identify the current transmission resource by using the flag of the SCI. Whether it is a Discovery message or a D2D communication data.
  • the terminal device establishes a direct mapping relationship between the ProSe protocol layer and the D2D shared transport channel at the MAC layer, and maps the first Discovery message when the terminal device determines that the number of bits of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold.
  • the first Discovery message is mapped to the D2DDiscovery transport channel; the Discovery message of different number of bits can be flexibly transmitted, the reliability of the data transmission is improved, and the number of bits of the Discovery message is prevented from being larger than the fixed number of bits. The situation of packet loss.
  • FIG. 11 is a schematic structural diagram of an embodiment of a data transmission apparatus according to the present application.
  • the modules included in the data transmission apparatus of this embodiment are used to perform the steps in the embodiment corresponding to FIG. 1.
  • the data transmission device of this embodiment includes an establishing module 1110, a determining module 1120, and a mapping module 1130.
  • the establishing module 1110 is configured to establish a device-to-device proximity service D2D The mapping relationship between the ProSe protocol layer and the D2D shared transport channel. For example, the setup module 1110 establishes a device-to-device proximity service D2D. The mapping relationship between the ProSe protocol layer and the D2D shared transport channel. After the establishing module 1110 establishes a mapping relationship between the ProSe protocol layer and the D2D shared transport channel, the establishing module 1110 sends the notification information to the determining module 1120.
  • the determining module 1120 is configured to receive the notification information sent by the determining module 1120, and determine whether the number of bits of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold. For example, the determining module 1120 determines whether the number of bits of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold. The determination module 1120 sends the determination result to the mapping module 1130.
  • the mapping module 1130 is configured to receive the determination result sent by the determining module 1120, and when the determining module 1120 determines that the number of bits of the first Discovery message is greater than a preset threshold, mapping the first Discovery message to the D2D shared transport channel, Transmitting the first Discovery message by using the D2D shared transport channel; or, when the determining module 1120 determines that the number of bits of the first discovery message is less than or equal to the preset threshold, mapping the first Discovery message to the D2D Discovery transport channel.
  • the mapping module 1130 receives the determination result sent by the determining module 1120, and when the determining module 1120 determines that the number of bits of the first Discovery message is greater than a preset threshold, mapping the first Discovery message to the D2D shared transport channel, Transmitting the first Discovery message by using the D2D shared transport channel; or, when the determining module 1120 determines that the number of bits of the first discovery message is less than or equal to the preset threshold, mapping the first Discovery message to the D2D Discovery transport channel.
  • the data transmission device establishes a mapping relationship between the ProSe protocol layer and the D2D shared transport channel, and when the terminal device determines that the number of bits of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold, mapping the first Discovery message to the D2D.
  • the shared transmission channel is mapped. Otherwise, the first Discovery message is mapped to the D2DDiscovery transmission channel; the Discovery message of different number of bits can be flexibly transmitted, the validity of the data transmission is improved, and the packet loss is caused by the number of bits of the Discovery message being greater than the fixed number of bits. happening.
  • FIG. 12 is a schematic structural diagram of another embodiment of a data transmission apparatus according to the present application.
  • the modules included in the data transmission device of this embodiment are used to perform the steps in the embodiments corresponding to FIG. 2, FIG. 4, and FIG. 8. For details, refer to FIG. 2, FIG. 4, FIG. 8 and the corresponding embodiments. Related descriptions are not described here.
  • the data transmission apparatus of this embodiment includes an establishing module 1210, a determining module 1220, a mapping module 1230, a control module 1240, and a receiving module 1250.
  • the establishing module 1210 is specifically configured to add a Discovery dedicated radio bearer in the packet data convergence protocol layer, and establish a mapping relationship between the ProSe protocol layer and the Discovery dedicated radio bearer, where the Discovery dedicated radio bearer is used to carry a Discovery message, where the Discovery The Discovery message carried by the dedicated radio bearer is mapped to the Discovery dedicated logical channel, and is identified by the Discovery dedicated logical channel identifier, and the Discovery message of the Discovery dedicated logical channel identifier is transmitted through the D2D shared transport channel, and the Discovery is dedicated.
  • the radio bearer corresponds to the Discovery dedicated logical channel
  • the Discovery dedicated logical channel corresponds to the Discovery dedicated logical channel identifier.
  • the establishing module 1210 adds a Discovery dedicated radio bearer in the packet data convergence protocol layer, and establishes a mapping relationship between the ProSe protocol layer and the Discovery dedicated radio bearer, where the Discovery dedicated radio bearer is used to carry a Discovery message, and the Discovery is dedicated.
  • the Discovery message of the radio bearer is mapped to the Discovery dedicated logical channel, and is identified by the Discovery dedicated logical channel identifier, and the Discovery message of the Discovery dedicated logical channel identifier is transmitted through the D2D shared transport channel, and the Discovery dedicated wireless
  • the bearer corresponds to the Discovery dedicated logical channel
  • the Discovery dedicated logical channel corresponds to the Discovery dedicated logical channel identifier.
  • the establishing module 1210 is specifically configured to establish a mapping relationship between the ProSe protocol layer and the D2D shared transport channel at the medium access control protocol layer. For example, the establishing module 1210 establishes a mapping relationship between the ProSe protocol layer and the D2D shared transport channel at the medium access control protocol layer.
  • the establishing module 1210 sends the notification information to the determining module 1220 after establishing the mapping relationship between the ProSe protocol layer and the D2D shared transport channel.
  • the determining module 1220 is configured to receive the notification information sent by the determining module 1220, and determine whether the number of bits of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold. For example, the determining module 1220 determines whether the number of bits of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold. The determination module 1220 sends the determination result to the mapping module 1230.
  • the mapping module 1230 is specifically configured to receive the determination result sent by the determining module 1220, and when the determining module 1220 determines that the number of bits of the first Discovery message is greater than a preset threshold, the first Discovery message is delivered to the packet data convergence protocol. a layer, mapping the first Discovery message to the Discovery dedicated radio bearer, and mapping the first Discovery message to the D2D shared transport channel, and adding a Discovery dedicated logical channel identifier to the first Discovery message, The Discovery dedicated logical channel identifier is used to identify a Discovery message transmitted through the D2D shared transport channel;
  • mapping module 1230 is specifically configured to: when the determining module 1220 determines that the number of bits of the first Discovery message is greater than a preset threshold, delivering the first Discovery message to a medium access control protocol layer, where the first Discovery message is sent Mapping to the D2D shared transport channel, and adding a Discovery dedicated logical channel identifier to the first Discovery message, wherein the Discovery dedicated logical channel identifier is used to identify a Discovery message transmitted over the D2D shared transport channel.
  • the mapping module 1230 receives the determination result sent by the determining module 1220, and when the determining module 1220 determines that the number of bits of the first Discovery message is greater than a preset threshold, the first Discovery message is delivered to the packet data convergence protocol layer. Mapping the first Discovery message to the Discovery dedicated radio bearer, and mapping the first Discovery message to the D2D shared transport channel, and adding a Discovery dedicated logical channel identifier to the first Discovery message, where The Discovery dedicated logical channel identifier is used to identify a Discovery message transmitted through the D2D shared transport channel;
  • the mapping module 1230 passes the first Discovery message to the medium access control protocol layer, and maps the first Discovery message to The D2D shares a transport channel, and adds a Discovery-dedicated logical channel identifier to the first Discovery message, where the Discovery-dedicated logical channel identifier is used to identify a Discovery message transmitted through the D2D shared transport channel.
  • the mapping module 1230 is further configured to: when the determining module 1220 determines that the number of bits of the first discovery message is less than or equal to the preset threshold, mapping the first Discovery message to the D2D Discovery transport channel.
  • the mapping module 1230 maps the first Discovery message to the D2D. Discovery transport channel. After the mapping module 1230 completes the mapping, it sends the notification information to the control module 1240.
  • the control module 1240 is configured to receive the notification information sent by the mapping module 1230, transmit the first Discovery message to the physical layer by using the D2D shared transport channel, and set the D2D link control information corresponding to the first Discovery message.
  • the flag bit transmits the first Discovery message by using a transmission resource of the D2D communication data, where the flag bit is used to indicate whether a transmission resource of the D2D communication data carries a Discovery message, and the Discovery message is the Discovery dedicated radio bearer.
  • the control module 1240 receives the notification information sent by the mapping module 1230, and delivers the first Discovery message to the physical layer through the D2D shared transport channel, and sets the D2D link control information corresponding to the first Discovery message.
  • the flag bit transmits the first Discovery message by using a transmission resource of the D2D communication data, where the flag bit is used to indicate whether a transmission resource of the D2D communication data carries a Discovery message, and the first Discovery message is dedicated to the Discovery
  • the wireless bearer carries the Discovery message or the Discovery message transmitted from the ProSe protocol layer to the medium access control protocol layer.
  • the control module 1240 is specifically configured to: deliver the first Discovery message to the physical layer by using the D2D shared transport channel, and determine D2D link control information corresponding to the first Discovery message according to the scheduling information or the available transmission resource, where Setting a flag bit in the D2D link control information corresponding to the first Discovery message, and transmitting the first Discovery message by using the transmission resource indicated by the D2D link control information; wherein the D2D link corresponding to the first Discovery message
  • the control information is used to indicate transmission resource information that carries the first Discovery message.
  • the D2D link control information determined by the control module 1240 indicates transmission resource information carrying the first Discovery message and transmission resource information of D2D communication data common to the D2D communication data, and the transmission resource of the D2D communication data simultaneously carries the
  • the first Discovery message communicates with the D2D communication data, and the first Discovery message and the D2D communication data are distinguished by a logical channel identifier.
  • the D2D link control information determined by the control module 1240 indicates the transmission resource information of the D2D communication data that carries the first Discovery message, and the transmission resource of the D2D communication data only carries the first Discovery message, where the The first Discovery message and the D2D communication data are distinguished by different transmission resources.
  • the control module 1240 transmits the first Discovery message to the physical layer through the D2D shared transport channel, and determines D2D link control information corresponding to the first Discovery message according to the scheduling information or available transmission resources, where Setting a flag bit in the D2D link control information corresponding to the first Discovery message, and transmitting, by using the transmission resource indicated by the D2D link control information, the first Discovery message; wherein, the D2D link control corresponding to the first Discovery message
  • the information is used to indicate transmission resource information that carries the first Discovery message.
  • the D2D link control information determined by the control module 1240 indicates transmission resource information carrying the first Discovery message and transmission resource information of D2D communication data common to the D2D communication data, and the transmission resource of the D2D communication data simultaneously carries the
  • the first Discovery message communicates with the D2D communication data, and the first Discovery message and the D2D communication data are distinguished by a logical channel identifier.
  • the D2D link control information determined by the control module 1240 indicates the transmission resource information of the D2D communication data that carries the first Discovery message, and the transmission resource of the D2D communication data only carries the first Discovery message, where the The first Discovery message and the D2D communication data are distinguished by different transmission resources.
  • the receiving module 1250 is configured to receive a second Discovery message sent by another terminal device. For example, the receiving module 1250 receives a second Discovery message sent by another terminal device. The receiving module 1250 sends the received second Discovery message to the determining module 1220.
  • the determining module 1220 is further configured to receive the second Discovery message sent by the receiving module 1250, and determine whether the second Discovery message received by the receiving module 1250 includes the Discovery-dedicated logical channel identifier and/or whether the value of the flag bit is pre- A value is set to determine if the second Discovery message is from a D2D shared transport channel.
  • the determination module 1220 transmits the determination result to the mapping module 1230.
  • the mapping module 1230 is configured to: when the determining module 1220 determines that the second Discovery message is from the D2D shared transport channel, process the second Discovery message according to the mechanism for transmitting the first Discovery.
  • the data transmission device establishes a mapping relationship between the ProSe protocol layer and the D2D shared transport channel, and when the terminal device determines that the number of bits of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold, mapping the first Discovery message to the D2D.
  • the shared transmission channel is mapped. Otherwise, the first Discovery message is mapped to the D2DDiscovery transmission channel; the Discovery message of different number of bits can be flexibly transmitted, the validity of the data transmission is improved, and the packet loss is caused by the number of bits of the Discovery message being greater than the fixed number of bits. happening.
  • FIG. 13 is a schematic structural diagram of an embodiment of a terminal device according to the present application.
  • the terminal device may be a mobile terminal device such as a mobile phone.
  • the terminal device of this embodiment includes a receiver 1310, a processor 1320, a transmitter 1330, a read only memory 1340, a random access memory 1350, and a bus 1360.
  • Receiver 1310 is for receiving information.
  • the processor 1320 controls the operation of the terminal device, and the processor 1320 may also be referred to as a CPU (Central Processing) Unit, central processing unit).
  • Processor 1320 may be an integrated circuit chip with signal processing capabilities.
  • the processor 1320 can also be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • Transmitter 1330 is used to transmit information.
  • the memory can include read only memory 1340 and random access memory 1350 and provides instructions and data to processor 1320.
  • a portion of the memory may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • bus 1360 which may include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like. However, for clarity of description, various buses are labeled as bus 1360 in the figure.
  • the memory stores the following elements, executable modules or data structures, or a subset of them, or their extended set:
  • Operation instructions include various operation instructions for implementing various operations.
  • Operating system Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
  • the processor 1320 performs the following operations by calling an operation instruction stored in the memory, which can be stored in the operating system:
  • the processor 1320 is configured to establish a mapping relationship between the device-to-device proximity service D2D ProSe protocol layer and the D2D shared transport channel.
  • the processor 1320 is configured to determine whether a number of bits of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold, and configured to: when the number of bits of the first Discovery message is greater than a preset threshold, The discovery message is mapped to the D2D shared transport channel, and the first Discovery message is transmitted through the D2D shared transport channel; or, when the number of bits of the first discovery message is less than or equal to the preset threshold, The first Discovery message is mapped to D2D Discovery transport channel.
  • the processor 1320 is specifically configured to add a Discovery dedicated radio bearer in the packet data convergence protocol layer, and establish a mapping relationship between the ProSe protocol layer and the Discovery dedicated radio bearer, where the Discovery dedicated radio bearer is used to carry the Discovery message.
  • the Discovery message of the Discovery dedicated radio bearer is mapped to the Discovery dedicated logical channel, and is identified by the Discovery dedicated logical channel identifier, and the Discovery message of the Discovery dedicated logical channel identifier is transmitted through the D2D shared transport channel.
  • the Discovery dedicated radio bearer corresponds to the Discovery dedicated logical channel
  • the Discovery dedicated logical channel corresponds to a Discovery dedicated logical channel identifier.
  • the processor 1320 is specifically configured to establish a mapping relationship between the ProSe protocol layer and the D2D shared transport channel at the medium access control protocol layer.
  • the processor 1320 is specifically configured to: when the number of bits of the first Discovery message is greater than a preset threshold, deliver the first Discovery message to the packet data convergence protocol layer, where the first Discovery message is sent Mapping to the Discovery private radio bearer; or transmitting the first Discovery message to a media access control protocol layer;
  • the processor 1320 is further configured to: map the first Discovery message to the D2D shared transport channel, and add a Discovery-dedicated logical channel identifier to the first Discovery message, where the Discovery-dedicated logical channel identifier is used to identify A Discovery message transmitted over the D2D shared transport channel.
  • the processor 1320 is further configured to: deliver the first Discovery message to the physical layer by using the D2D shared transport channel, and set a flag bit in the D2D link control information corresponding to the first Discovery message, And transmitting, by the transmission resource of the D2D communication data, the first Discovery message, where the flag bit is used to indicate whether a transmission resource of the D2D communication data carries a Discovery message, where the first Discovery message is carried by the Discovery dedicated radio bearer.
  • a Discovery message or a Discovery message delivered from the ProSe protocol layer to the Medium Access Control Protocol layer.
  • the processor 1320 is further configured to: deliver the first Discovery message to the physical layer by using the D2D shared transport channel, and determine a D2D link corresponding to the first Discovery message according to scheduling information or available transmission resources. Controlling information, setting a flag bit in the D2D link control information corresponding to the first Discovery message, and transmitting the first Discovery message by using a transmission resource indicated by the D2D link control information; wherein the first Discovery message Corresponding D2D link control information is used to indicate transmission resource information that carries the first Discovery message.
  • the D2D link control information determined by the processor 1320 indicates transmission resource information carrying the first Discovery message and transmission resource information of the D2D communication data common to the D2D communication data, where the transmission resource of the D2D communication data is simultaneously carried.
  • the first Discovery message and the D2D communication data are distinguished by the logical channel identifier by the first Discovery message and the D2D communication data.
  • the D2D link control information determined by the processor 1320 indicates the transmission resource information of the D2D communication data that carries the first Discovery message, where the transmission resource of the D2D communication data only carries the first Discovery message, where The first Discovery message and the D2D communication data are distinguished by different transmission resources.
  • the processor 1320 is further configured to control the receiver 1310 to receive a second Discovery message sent by another terminal device.
  • the processor 1320 is further configured to determine whether the second Discovery message includes the Discovery-dedicated logical channel identifier and/or whether the value of the flag bit is a preset value, to determine whether the second Discovery message is from a D2D shared transmission. channel;
  • the processor 1320 is further configured to: when the second Discovery message is from the D2D shared transport channel, the terminal device processes the second Discovery message according to a mechanism for transmitting the first Discovery.
  • the terminal device establishes a mapping relationship between the ProSe protocol layer and the D2D shared transport channel, and when the terminal device determines that the number of bits of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold, mapping the first Discovery message to the D2D share.
  • Transport channel otherwise, map the first Discovery message to the D2DDiscovery transmission channel; can flexibly transmit Discovery messages of different bit numbers, improve the validity of data transmission, and prevent the packet loss caused by the number of bits of the Discovery message being greater than the fixed number of bits. .

Landscapes

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

Abstract

本申请公开了一种数据传输方法及装置。其中,数据传输方法包括:终端设备建立设备到设备临近服务D2D ProSe协议层到D2D共享传输信道的映射关系;所述终端设备确定所述ProSe协议层生成的第一Discovery消息的比特数是否大于预设阈值;当所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息映射到所述D2D共享传输信道,通过所述D2D共享传输信道传输所述第一Discovery消息;或者当第一discovery消息的比特数小于等于所述预设阈值时,将所述第一Discovery消息映射到D2D Discovery传输信道。上述方案,能够灵活传输不同比特数的Discovery消息,提高数据传输的有效性,防止因Discovery消息的比特数大于固定比特数而导致丢包的情况。

Description

一种数据传输方法及装置
【技术领域】
本申请涉及通信网络领域,特别是涉及一种数据传输方法及装置。
【背景技术】
设备到设备(Device toDevice,D2D)通信技术是一种在蜂窝系统控制下,允许用户终端设备(User Equipment,UE)间利用无线链路进行直接通信的技术。
目前,基于长期演进(Long Term Evolution,LTE)的用户终端设备通过D2D直接通信的模式包括:通过discovery信道传输模式(通常称为,D2D discovery模式)、通过D2D数据信道传输模式(通常称为,D2D 直接通信模式)。LTE系统会通过广播消息或者专用信令来分配D2D Discovery和D2D直接通信的传输资源给用户,进行相应模式的D2D通信。
然而,目前基于LTE的D2D通信中D2D Discovery消息只允许通过D2D Discovery传输信道传输,而D2D Discovery传输信道只能传输固定比特数的Discovery消息;当Discovery消息的比特数大于该固定的比特数时,则无法正常传输,可能引起数据丢包,降低通信可靠性。
【发明内容】
本申请主要解决的技术问题是提供一种数据传输方法及装置,能够灵活传输不同比特数的Discovery消息,提高数据传输的可靠性。
为了解决上述问题,本申请第一方面提供了一种数据传输方法,包括:终端设备建立设备到设备临近服务D2D ProSe协议层到D2D共享传输信道的映射关系;所述终端设备确定所述ProSe协议层生成的第一Discovery消息的比特数是否大于预设阈值;当所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息映射到所述D2D共享传输信道,通过所述D2D共享传输信道传输所述第一Discovery消息;或者当第一discovery消息的比特数小于等于所述预设阈值时,将所述第一Discovery消息映射到D2D Discovery传输信道。
结合第一方面,本申请第一方面的第一种可能的实施方式中,所述终端设备建立ProSe协议层到D2D共享传输信道的映射关系的步骤包括:所述终端设备在分组数据汇聚协议层增加Discovery专用无线承载,建立ProSe协议层到所述Discovery专用无线承载的映射关系,其中,所述Discovery专用无线承载用于承载Discovery消息,所述Discovery专用无线承载承载的所述Discovery消息映射到Discovery专用逻辑信道,并通过Discovery专用逻辑信道标识进行标识,所述Discovery专用逻辑信道标识的Discovery消息通过所述D2D共享传输信道进行传输,所述Discovery专用无线承载与所述Discovery专用逻辑信道对应,所述Discovery专用逻辑信道与Discovery专用逻辑信道标识对应。
结合第一方面,本申请第一方面的第二种可能的实施方式中,所述终端设备建立ProSe协议层到D2D业务逻辑信道的映射关系的步骤包括:所述终端设备在媒体接入控制协议层建立ProSe协议层到D2D共享传输信道的映射关系。
结合第一方面的第一种或第二种可能的实施方式,本申请第一方面的第三种可能的实施方式中,当所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息映射到所述D2D共享传输信道,通过所述D2D共享传输信道传输所述第一Discovery消息的步骤包括:当所述第一Discovery消息的比特数大于预设阈值时,所述终端设备将所述第一Discovery消息传递到所述分组数据汇聚协议层,将所述第一Discovery消息映射到所述Discovery专用无线承载;或将所述第一Discovery消息传递到媒体接入控制协议层;所述终端设备将所述第一Discovery消息映射到所述D2D共享传输信道,并对所述第一Discovery消息添加Discovery专用逻辑信道标识,其中,所述Discovery专用逻辑信道标识用于标识通过所述D2D共享传输信道传输的Discovery消息。
结合第一方面或第一方面的第三种可能的实施方式,本申请第一方面的第四种可能的实施方式中,将所述第一Discovery消息映射到所述D2D共享传输信道的步骤之后,所述方法还包括:所述终端设备将所述第一Discovery消息通过所述D2D共享传输信道传递到物理层,并在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过D2D通信数据的传输资源传输所述第一Discovery消息,其中,所述标志位用于指示D2D通信数据的传输资源是否承载有Discovery消息,所述Discovery消息为所述第一Discovery专用无线承载承载的Discovery消息或从所述ProSe协议层传递到所述媒体接入控制协议层的Discovery消息。
结合第一方面的第四种可能的实施方式,本申请第一方面的第五种可能的实施方式中,在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过D2D通信数据的传输资源传输所述第一Discovery消息包括:所述终端设备根据调度信息或可用的传输资源确定所述第一数据包对应的D2D链路控制信息,其中,所述第一Discovery消息对应的D2D链路控制信息用于指示承载所述第一Discovery消息的传输资源信息;所述终端设备在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过所述D2D链路控制信息指示的传输资源传输所述第一Discovery消息。
结合第一方面的第四种可能的实施方式,本申请第一方面的第六种可能的实施方式中,所述D2D链路控制信息指示承载所述第一Discovery消息的传输资源信息以及D2D通信数据共同的D2D通信数据的传输资源信息,所述D2D通信数据的传输资源同时承载所述第一Discovery消息与D2D通信数据,所述第一Discovery消息与D2D通信数据通过逻辑信道标识进行区分。
结合第一方面的第四种可能的实施方式,本申请第一方面的第七种可能的实施方式中,所述D2D链路控制信息指示承载所述第一Discovery消息的D2D通信数据的传输资源信息,所述D2D通信数据的传输资源只承载第一Discovery消息,其中,所述第一Discovery消息和D2D通信数据通过不同的传输资源进行区分。
结合第一方面的第三或第四种可能的实施方式,本申请第一方面的第八种可能的实施方式中,所述方法还包括:所述终端设备接收其他终端设备发送的第二Discovery消息;所述终端设备确定所述第二Discovery消息是否包含所述Discovery专用逻辑信道标识和/或所述标志位的值是否为预设值,以确定所述第二Discovery消息是否来自D2D共享传输信道;当所述第二Discovery消息来自D2D共享传输信道时,所述终端设备根据传输所述第一Discovery的机制对所述第二Discovery消息进行处理。
为了解决上述问题,本申请第二方面提供了一种数据传输装置,包括建立模块、确定模块以及映射模块;所述建立模块用于建立设备到设备临近服务D2D ProSe协议层到D2D共享传输信道的映射关系;所述确定模块用于确定所述ProSe协议层生成的第一Discovery消息的比特数是否大于预设阈值;所述映射模块用于当所述确定模块确定所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息映射到所述D2D共享传输信道,通过所述D2D共享传输信道传输所述第一Discovery消息;或者,当所述确定模块确定所述第一discovery消息的比特数小于等于所述预设阈值时,将所述第一Discovery消息映射到D2D Discovery传输信道。
结合第二方面,本申请第二方面的第一种可能的实施方式中,所述建立模块具体用于在分组数据汇聚协议层增加Discovery专用无线承载,建立ProSe协议层到所述Discovery专用无线承载的映射关系,其中,所述Discovery专用无线承载用于承载Discovery消息,所述Discovery专用无线承载承载的所述Discovery消息映射到Discovery专用逻辑信道,并通过Discovery专用逻辑信道标识进行标识,所述Discovery专用逻辑信道标识的Discovery消息通过所述D2D共享传输信道进行传输,所述Discovery专用无线承载与所述Discovery专用逻辑信道对应,所述Discovery专用逻辑信道与Discovery专用逻辑信道标识对应。
结合第二方面,本申请第二方面的第二种可能的实施方式中,所述建立模块具体用于在媒体接入控制协议层建立ProSe协议层到D2D共享传输信道的映射关系。
结合第二方面的第一种或第二种可能的实施方式,本申请第二方面的第三种可能的实施方式中,所述映射模块具体用于当所述确定模块确定所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息传递到所述分组数据汇聚协议层,将所述第一Discovery消息映射到所述Discovery专用无线承载,以及将所述第一Discovery消息映射到所述D2D共享传输信道,并对所述第一Discovery消息添加Discovery专用逻辑信道标识,其中,所述Discovery专用逻辑信道标识用于标识通过所述D2D共享传输信道传输的Discovery消息;或所述映射模块具体用于当所述确定模块确定所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息传递到媒体接入控制协议层,将所述第一Discovery消息映射到所述D2D共享传输信道,并对所述第一Discovery消息添加Discovery专用逻辑信道标识,其中,所述Discovery专用逻辑信道标识用于标识通过所述D2D共享传输信道传输的Discovery消息。
结合第二方面或第二方面的第三种可能的实施方式,本申请第二方面的第四种可能的实施方式中,所述装置还包括控制模块,所述控制模块用于将所述第一Discovery消息通过所述D2D共享传输信道传递到物理层,并在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过D2D通信数据的传输资源传输所述第一Discovery消息,其中,所述标志位用于指示D2D通信数据的传输资源是否承载有Discovery消息,所述第一Discovery消息为所述Discovery专用无线承载承载的Discovery消息或从所述ProSe协议层传递到所述媒体接入控制协议层的Discovery消息。
结合第二方面的第四种可能的实施方式,本申请第二方面的第五种可能的实施方式中,所述控制模块具体用于将所述第一Discovery消息通过所述D2D共享传输信道传递到物理层,根据调度信息或可用的传输资源确定所述第一Discovery消息对应的D2D链路控制信息,在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过所述D2D链路控制信息指示的传输资源传输所述第一Discovery消息;其中,所述第一Discovery消息对应的D2D链路控制信息用于指示承载所述第一Discovery消息的传输资源信息。
结合第二方面的第四种可能的实施方式,本申请第二方面的第六种可能的实施方式中,所述控制模块确定的所述D2D链路控制信息指示承载所述第一Discovery消息的传输资源信息以及D2D通信数据共同的D2D通信数据的传输资源信息,所述D2D通信数据的传输资源同时承载所述第一Discovery消息与D2D通信数据,所述第一Discovery消息与D2D通信数据通过逻辑信道标识进行区分。
结合第二方面的第四种可能的实施方式,本申请第二方面的第七种可能的实施方式中,所述控制模块确定的所述D2D链路控制信息指示承载所述第一Discovery消息的D2D通信数据的传输资源信息,所述D2D通信数据的传输资源只承载第一Discovery消息,其中,所述第一Discovery消息和D2D通信数据通过不同的传输资源进行区分。
结合第二方面的第三或第四种可能的实施方式,本申请第二方面的第八种可能的实施方式中,所述方法还包括:所述装置还包括接收模块;所述接收模块用于接收其他终端设备发送的第二Discovery消息;所述确定模块还用于确定所述接收模块接收的所述第二Discovery消息是否包含所述Discovery专用逻辑信道标识和/或所述标志位的值是否为预设值,以确定所述第二Discovery消息是否来自D2D共享传输信道;所述映射模块还用于当所述确定模块确定所述第二Discovery消息来自D2D共享传输信道时,根据传输所述第一Discovery的机制对所述第二Discovery消息进行处理。
为了解决上述问题,本申请第三方面提供了一种终端设备,包括存储器以及处理器;所述存储器用于存储数据;所述处理器用于建立设备到设备临近服务D2D ProSe协议层到D2D共享传输信道的映射关系;所述处理器用于确定所述ProSe协议层生成的第一Discovery消息的比特数是否大于预设阈值;以及用于当所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息映射到所述D2D共享传输信道,通过所述D2D共享传输信道传输所述第一Discovery消息;或者,当所述第一discovery消息的比特数小于等于所述预设阈值时,将所述第一Discovery消息映射到D2D Discovery传输信道。
结合第三方面,本申请第三方面的第一种可能的实施方式中,所述处理器具体用于在分组数据汇聚协议层增加Discovery专用无线承载,建立ProSe协议层到所述Discovery专用无线承载的映射关系,其中,所述Discovery专用无线承载用于承载Discovery消息,所述Discovery专用无线承载承载的所述Discovery消息映射到Discovery专用逻辑信道,并通过Discovery专用逻辑信道标识进行标识,所述Discovery专用逻辑信道标识的Discovery消息通过所述D2D共享传输信道进行传输,所述Discovery专用无线承载与所述Discovery专用逻辑信道对应,所述Discovery专用逻辑信道与Discovery专用逻辑信道标识对应。
结合第三方面,本申请第三方面的第二种可能的实施方式中,所述处理器具体用于在媒体接入控制协议层建立ProSe协议层到D2D共享传输信道的映射关系。
结合第三方面的第一种或第二种可能的实施方式,本申请第三方面的第三种可能的实施方式中,所述处理器用于当所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息传递到所述分组数据汇聚协议层,将所述第一Discovery消息映射到所述Discovery专用无线承载,,以及将所述第一Discovery消息映射到所述D2D共享传输信道,并对所述第一Discovery消息添加Discovery专用逻辑信道标识,其中,所述Discovery专用逻辑信道标识用于标识通过所述D2D共享传输信道传输的Discovery消息;或所述处理器具体用于当所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息传递到媒体接入控制协议层,将所述第一Discovery消息映射到所述D2D共享传输信道,并对所述第一Discovery消息添加Discovery专用逻辑信道标识,其中,所述Discovery专用逻辑信道标识用于标识通过所述D2D共享传输信道传输的Discovery消息。
结合第三方面或第三方面的第三种可能的实施方式,本申请第三方面的第四种可能的实施方式中,所述处理器还用于将所述第一Discovery消息通过所述D2D共享传输信道传递到物理层,并在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过D2D通信数据的传输资源传输所述第一Discovery消息,其中,所述标志位用于指示D2D通信数据的传输资源是否承载有Discovery消息,所述第一Discovery消息为所述Discovery专用无线承载承载的Discovery消息或从所述ProSe协议层传递到所述媒体接入控制协议层的Discovery消息。
结合第三方面的第四种可能的实施方式,本申请第三方面的第五种可能的实施方式中,所述处理器还具体用于将所述第一Discovery消息通过所述D2D共享传输信道传递到物理层,根据调度信息或可用的传输资源确定所述第一Discovery消息对应的D2D链路控制信息,在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过所述D2D链路控制信息指示的传输资源传输所述第一Discovery消息;其中,所述第一Discovery消息对应的D2D链路控制信息用于指示承载所述第一Discovery消息的传输资源信息。
结合第三方面的第四种可能的实施方式,本申请第三方面的第六种可能的实施方式中,所述处理器确定的所述D2D链路控制信息指示承载所述第一Discovery消息的传输资源信息以及D2D通信数据共同的D2D通信数据的传输资源信息,所述D2D通信数据的传输资源同时承载所述第一Discovery消息与D2D通信数据,所述第一Discovery消息与D2D通信数据通过逻辑信道标识进行区分。
结合第三方面的第四种可能的实施方式,本申请第三方面的第七种可能的实施方式中,所述处理器确定的所述D2D链路控制信息指示承载所述第一Discovery消息的D2D通信数据的传输资源信息,所述D2D通信数据的传输资源只承载第一Discovery消息,其中,所述第一Discovery消息和D2D通信数据通过不同的传输资源进行区分。
结合第三方面的第三或第四种可能的实施方式,本申请第三方面的第八种可能的实施方式中,所述终端设备还包括接收器;所述接收器用于接收其他终端设备发送的第二Discovery消息;所述处理器用于确定所述第二Discovery消息是否包含所述Discovery专用逻辑信道标识和/或所述标志位的值是否为预设值,以确定所述第二Discovery消息是否来自D2D共享传输信道;所述处理器用于当所述第二Discovery消息来自D2D共享传输信道时,所述终端设备根据传输所述第一Discovery的机制对所述第二Discovery消息进行处理。
上述方案中,终端设备通过建立ProSe协议层到D2D共享传输信道的映射关系,当终端设备确定ProSe协议层生成的第一Discovery消息的比特数大于预设阈值时,将第一Discovery消息映射到D2D共享传输信道,否则,将第一Discovery消息映射到D2DDiscovery传输信道;能够灵活传输不同比特数的Discovery消息,提高数据传输的有效性,防止因Discovery消息的比特数大于固定比特数而导致丢包的情况。
【附图说明】
图1是本申请数据传输方法一实施例的流程图;
图2是本申请数据传输方法另一实施例的流程图;
图3是本申请建立ProSe协议层到D2D共享传输信道的映射关系一实施例的示意图;
图4是本申请数据传输方法再一实施例的流程图;
图5是本申请建立ProSe协议层到D2D共享传输信道的映射关系另一实施例的示意图;
图6是本申请将Discovery消息映射到D2D共享传输信道一实施例的信道映射示意图;
图7是本申请D2D共享传输信道MAC数据包格式一实施例的示意图;
图8是本申请数据传输方法又一实施例的流程图;
图9是本申请将Discovery消息映射到D2D共享传输信道另一实施例的信道映射示意图;
图10是本申请利用不同物理资源区分图8中Discovery消息和D2D通信数据一实施例的示意图;
图11是本申请数据传输装置一实施方式的结构示意图;
图12是本申请数据传输装置另一实施方式的结构示意图;
图13是本申请终端设备一实施方式的结构示意图。
【具体实施方式】
如当前2G,3G通信系统和下一代通信系统,例如全球移动通信系统(本文中描述的技术可用于各种通信系统,例GSM,Global System for Mobile communications),码分多址(CDMA,Code Division Multiple Access)系统,时分多址(TDMA,Time Division Multiple Access)系统,宽带码分多址(WCDMA,Wideband Code Division Multiple Access Wireless),频分多址(FDMA,Frequency Division Multiple Addressing)系统,正交频分多址(OFDMA,Orthogonal Frequency-Division Multiple Access)系统,单载波FDMA(SC-FDMA)系统,通用分组无线业务(GPRS,General Packet Radio Service)系统,长期演进(LTE,Long Term Evolution)系统,以及其他此类通信系统。
本文中结合无线终端设备和/或基站来描述各种方面。
无线终端可以是指向用户提供语音和/或数据连通性的设备,具有无线连接功能的手持式设备、或连接到无线调制解调器的其他处理设备。无线终端可以经无线接入网(例如,RAN,Radio Access Network)与一个或多个核心网进行通信,无线终端可以是移动终端,如移动电话(或称为“蜂窝”电话)和具有移动终端的计算机,例如,可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,它们与无线接入网交换语言和/或数据。例如,个人通信业务(PCS,Personal Communication Service)电话、无绳电话、会话发起协议(SIP)话机、无线本地环路(WLL,Wireless Local Loop)站、个人数字助理(PDA,Personal Digital Assistant)等设备。无线终端也可以称为系统、订户单元(Subscriber Unit)、订户站(Subscriber Station),移动站(Mobile Station)、移动台(Mobile)、远程站(Remote Station)、接入点(Access Point)、远程终端(Remote Terminal)、接入终端(Access Terminal)、用户终端(User Terminal)、用户代理(User Agent)、用户设备(User Device)、或用户装备(User Equipment)。
基站(例如,接入点)可以是指接入网中在空中接口上通过一个或多个扇区与无线终端通信的设备。基站可用于将收到的空中帧与IP分组进行相互转换,作为无线终端与接入网的其余部分之间的路由器,其中接入网的其余部分可包括网际协议(IP)网络。基站还可协调对空中接口的属性管理。例如,基站可以是GSM或CDMA中的基站(BTS,Base Transceiver Station),也可以是WCDMA中的基站(NodeB),还可以是LTE中的演进型基站(eNB或e-NodeB,evolutional Node B),本申请并不限定。
需要说明的是,本发明提供的核心网节点设备可以应用于不同的通信网络系统,包括但不限于SAE(System Architecture Evolved,系统架构演进网络)/LTE(Long Term Evolved,长期演进网络)网络、UMTS(Universal Mobile Telecommunications System,通用移动通信系统)网络、CDMA(Code Division Mutiple Access,码分多址)等。所述核心网节点设备包括但不限于移动性管理实体MME、服务GPRS支持节点SGSN(Serving GPRS Support Node)或者是移动交换中心MSC(Mobile Switching Center),在此不进行限定。例如,对于SAE/LTE网络而言,其核心网节点设备可以是MME,无线接入节点设备可以是eNB;对于UMTS网络而言,其核心网节点设备可以是SGSN或MSC,无线接入节点设备可以是RNC或者nodeB。下面以蜂窝网络为SAE/LTE网络为例进行说明,其他蜂窝网络可以参照下述实施例实施。
另外,本文中术语“系统”和“网络”在本文中常被可互换使用。本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合说明书附图,对本发明实施例的方案进行详细说明。
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、接口、技术之类的具体细节,以便透彻理解本申请。
参阅图1,图1是本申请数据传输方法一实施例的流程图。本实施例的执行主体为终端设备(User Equipment,UE),UE可以为手机等移动终端设备。两个UE可以直接通信传输数据。本实施例的数据传输方法包括如下步骤:
S101:终端设备建立设备到设备临近服务D2D ProSe协议层到D2D共享传输信道的映射关系。
终端设备建立设备到设备临近服务D2D ProSe协议层到D2D共享传输信道(Sidelink Shared Channel,SL-SCH)的映射关系,以使终端设备能够将ProSe协议层生成的Discovery消息映射到D2D共享传输信道。D2D共享传输信道处于媒体接入控制协议(Medium Access Control,MAC)层。
其中,终端设备建立ProSe协议层到D2D共享传输信道的映射关系可以是建立ProSe协议层到MAC层的D2D共享传输信道的直接映射关系,也可以是在分组数据汇聚协议(Packet Data Convergence Protocol,PDCP)层或无线链路控制协议(Radio Link Control,RLC)层与ProSe协议层之间建立硬件接口或软件接口,通过PDCP层或RLC层建立ProSe协议层到MAC层的D2D共享传输信道的映射关系,此处不作限制。
当终端设备发送D2D通信数据时,按现有技术中的处理流程进行处理。
当终端设备发送ProSe协议层生成的Discovery消息时,执行步骤S102~S104。
S102:确定所述ProSe协议层生成的第一Discovery消息的比特数是否大于预设阈值。
当终端设备与其他终端设备进行通信,并向其他终端设备发送第一Discovery消息时,终端设备确定ProSe协议层生成的第一Discovery消息的比特数是否大于预设阈值。第一Discovery消息为待传输的Discovery消息。
其中,预设阈值是预先设置的比特数,预设阈值为D2D Discovery传输信道(Sidelink Discovery Channel,SL-DCH)承载的Discovery消息的固定比特数。预设阈值可以为232比特,但并不限于此,还可以设置为其他值,此处不作限制。
D2D Discovery传输信道只能承载小于或等于预设阈值的比特数的Discovery消息,当Discovery消息的比特数大于预设阈值时,D2D Discovery传输信道无法承载。
当终端设备ProSe协议层生成的第一Discovery消息的比特数大于预设阈值时,执行步骤S103。
当终端设备ProSe协议层生成的第一Discovery消息的比特数小于或等于预设阈值时,执行步骤S104。
S103:当所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息映射到所述D2D共享传输信道,通过所述D2D共享传输信道传输所述第一Discovery消息。
当终端设备ProSe协议层生成的第一Discovery消息的比特数大于预设阈值时,终端设备根据ProSe协议层到MAC层的D2D共享传输信道的映射关系,将第一Discovery消息从ProSe协议层映射到MAC层的D2D共享传输信道。
通过D2D共享传输信道将第一Discovery消息传输到物理(Physical,PHY)层,并通过物理层可用的传输资源将第一Discovery消息传输给其他终端设备。
S104:当第一discovery消息的比特数小于或等于所述预设阈值时,将所述第一Discovery消息映射到D2DDiscovery传输信道。
当终端设备ProSe协议层生成的第一Discovery消息的比特数小于或等于预设阈值时,终端设备将第一Discovery消息从ProSe协议层映射到MAC层的D2DDiscovery传输信道。
终端设备通过D2DDiscovery传输信道将第一Discovery消息传输到物理(Physical,PHY)层,并通过物理层可用的传输资源将第一Discovery消息传输给其他终端设备。
上述方案,终端设备通过建立ProSe协议层到D2D共享传输信道的映射关系,当终端设备确定ProSe协议层生成的第一Discovery消息的比特数大于预设阈值时,将第一Discovery消息映射到D2D共享传输信道,否则,将第一Discovery消息映射到D2DDiscovery传输信道;能够灵活传输不同比特数的Discovery消息,提高数据传输的有效性,防止因Discovery消息的比特数大于固定比特数而导致丢包的情况。
请参阅图2,图2是本申请数据传输方法另一实施例的流程图。本实施例的执行主体为终端设备,(User Equipment,UE),UE可以为手机等移动终端设备。两个UE可以直接通信传输数据。本实施例的数据传输方法包括如下步骤:
S201:终端设备在分组数据汇聚协议层增加Discovery专用无线承载,建立ProSe协议层到所述Discovery专用无线承载的映射关系。
终端设备在分组数据汇聚协议层PDCP层增加Discovery专用无线承载,建立ProSe协议层到Discovery专用无线承载的映射关系,从而建立ProSe协议层到D2D共享传输信道的映射关系。终端设备还为Discovery专用无线承载配置Discovery专用逻辑信道。
其中,Discovery专用无线承载用于承载Discovery消息。Discovery专用无线承载承载的Discovery消息映射到Discovery专用逻辑信道,并通过Discovery专用逻辑信道标识进行标识,Discovery专用逻辑信道标识的Discovery消息通过D2D共享传输信道进行传输。Discovery专用无线承载与Discovery专用逻辑信道对应,Discovery专用逻辑信道与Discovery专用逻辑信道标识对应。
例如,请一并参阅图3,图3是本申请建立ProSe协议层到D2D共享传输信道的映射关系一实施例的示意图。
终端设备在D2D直接通信模式的协议栈的PDCP层增加Discovery专用无线承载,建立ProSe协议层到Discovery专用无线承载的映射关系,以使终端设备能够将Discovery消息从ProSe协议层映射到PDCP层的Discovery专用无线承载,从而通过PDCP层以及RLC层建立ProSe协议层到MAC层中D2D共享传输信道的映射关系。
其中,Discovery专用无线承载用于承载Discovery消息,Discovery专用无线承载承载的Discovery消息能够映射到Discovery专用逻辑信道,并通过Discovery专用逻辑信道标识进行标识,Discovery专用逻辑信道标识的Discovery消息能够通过D2D共享传输信道进行传输。
当终端设备发送D2D通信数据时,按现有技术中的处理流程进行处理。其中,在应用层产生的D2D通信数据依次经过TCP/UDP层、IP层、分组数据汇聚协议PDCP层、无线链路控制协议RLC层、MAC层、PHY层进行处理。
当终端设备发送ProSe协议层生成的Discovery消息时,执行步骤S202~S206。
当终端设备接收到其他终端设备发送的数据时,执行步骤S207~S209。
S202:确定所述ProSe协议层生成的第一Discovery消息的比特数是否大于预设阈值。
当终端设备与其他终端设备进行通信,并向其他终端设备发送第一Discovery消息时,终端设备确定ProSe协议层生成的第一Discovery消息的比特数是否大于预设阈值。第一Discovery消息为待传输的Discovery消息。
其中,预设阈值是预先设置的比特数,预设阈值为D2D Discovery传输信道(Sidelink Discovery Channel,SL-DCH)承载的Discovery消息的固定比特数。
预设阈值可以小于或等于SL-DCH能够承载的最大比特数,预设阈值可以为232比特,但并不限于此,还可以设置为其他值,此处不作限制。SL-DCH能够承载的最大比特数,是由发送UE可得的D2D直接通信资源来决定。
D2D Discovery传输信道能够承载小于或等于预设阈值的比特数的Discovery消息,当Discovery消息的比特数大于预设阈值时,D2D Discovery传输信道无法承载。
当终端设备ProSe协议层生成的第一Discovery消息的比特数大于预设阈值时,执行步骤S203。
当终端设备ProSe协议层生成的第一Discovery消息的比特数小于或等于预设阈值时,执行步骤S206。
S203:当所述第一Discovery消息的比特数大于预设阈值时,所述终端设备将所述第一Discovery消息传递到所述分组数据汇聚协议层,将所述第一Discovery消息映射到所述Discovery专用无线承载。
当终端设备确定第一discovery消息的比特数大于预设阈值时,将第一Discovery消息从ProSe协议层传递到PDCP层,根据ProSe协议层到Discovery专用无线承载的映射关系,将Discovery消息从ProSe协议层映射到PDCP层的Discovery专用无线承载。
PDCP层将第一Discovery消息按照D2D通信数据的处理方式进行处理,并递交到RLC层做进一步处理后,将第一discovery消息递交到MAC层,并将其映射到一个Discovery专用的D2D业务逻辑信道中,该专用的逻辑信道对应于上述Discovery专用无线承载,Discovery专用的D2D业务逻辑信道与Discovery专用逻辑信道标识一一对应。
其中,第一Discovery消息映射到Discovery专用无线承载之后,在PDCP层以及RLC层的处理流程与现有技术中D2D通信数据在PDCP层以及RLC层的处理流程相同,此处不赘述。
S204:所述终端设备将所述第一Discovery消息映射到所述D2D共享传输信道,并对所述第一Discovery消息添加Discovery专用逻辑信道标识,其中,所述Discovery专用逻辑信道标识用于标识通过所述D2D共享传输信道传输的Discovery消息。
终端设备将第一Discovery消息从RLC层递交到MAC层后,根据MAC层中D2D业务逻辑信道STCH与D2D共享传输信道SL-SCH的映射关系,将第一Discovery消息映射到D2D共享传输信道。
终端设备在将第一Discovery消息映射到D2D共享传输信道之后,在D2D共享传输信道中为第一Discovery消息添加数据包头,并在数据包头中添加对第一Discovery消息添加Discovery专用逻辑信道标识(Logical Channel Identity,LCID)。该Discovery专用逻辑信道标识与Discovery专用无线承载对应,该Discovery专用逻辑信道标识用于标识通过D2D共享传输信道传输的来自Discovery专用无线承载的Discovery消息。
与Discovery专用无线承载对应的Discovery专用逻辑信道标识用于使其他终端设备在接收到第一Discovery消息后,能够通过该Discovery专用逻辑信道标识识别出第一Discovery消息包含来自Discovery专用无线承载的Discovery消息,以便做进一步处理。
由于D2D通信数据的逻辑信道标识的值通常为1~10,因此,与Discovery专用无线承载对应的Discovery专用逻辑信道标识的值可以取逻辑信道中除去标识值为1~10以外的任意逻辑信道的值。比如,用于标识Discovery消息的逻辑信道标识的值为11,但并不限于此。
S205:所述终端设备将所述第一Discovery消息通过所述D2D共享传输信道传递到物理层,并在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过D2D通信数据的传输资源传输所述第一Discovery消息。
终端设备对第一Discovery消息添加Discovery专用逻辑信道标识之后,将添加Discovery专用逻辑信道标识的第一Discovery消息通过D2D共享传输信道从MAC层传递到物理层。
之后,终端设备在第一Discovery消息对应的D2D链路控制信息(Sidelink Control Information,SCI)中设置标志位,通过D2D通信数据的传输资源传输第一Discovery消息。
其中,该标志位用于指示D2D通信数据的传输资源是否承载有Discovery消息,第一Discovery消息为Discovery专用无线承载承载的Discovery消息。
其中,在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过D2D通信数据的传输资源传输所述第一Discovery消息的步骤包括:终端设备根据调度信息或可用的传输资源确定所述第一Discovery消息对应的D2D链路控制信息,其中,所述第一Discovery消息对应的D2D链路控制信息用于指示承载所述第一Discovery消息的传输资源信息;终端设备在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,以通过所述D2D链路控制信息指示的传输资源传输所述第一Discovery消息。
D2D链路控制信息用于指示承载待传输数据的传输资源的信息,传输资源的信息包括传输资源的频率、时间等信息。此时,D2D链路控制信息用于指示承载第一Discovery消息的传输资源信息。D2D链路控制信息中的标志位可以占SC中1比特(bit),该标志位用于指示第一Discovery消息是否包含Discovery专用无线承载所承载的Discovery消息。
例如,将SCI的1比特标志位的值设置成“1”,则该SCI所指示的传输资源所承载的第一Discovery消息包含Discovery专用无线承载所承载的Discovery消息;否则,该SCI所指示的传输资源所承载的数据包仅包含其他D2D通信数据,而不包含Discovery专用无线承载所承载的Discovery消息。
终端设备通过D2D链路控制(Sidelink Control,SC)资源传输第一Discovery消息的SCI,并根据该SCI通过可用的D2D通信数据资源传输第一Discovery消息,以将第一Discovery消息发送给其他终端设备。
可以理解的是,由于RLC的切包功能,第一Discovery消息可能被分成多个分片分别传输;因此第一Discovery消息可以为一个单独的MAC数据包,也可以被分为多个MAC数据包。第一Discovery消息被分为多个数据包时,可以分别多次传输;多次传输的数据包所占用的物理资源可以相同,也可以不同,此处不作限制。S206:当第一discovery消息的比特数小于等于所述预设阈值时,将所述第一Discovery消息映射到D2D Discovery传输信道。
当终端设备确定ProSe协议层生成的第一Discovery消息的比特数小于或等于预设阈值时,终端设备将第一Discovery消息从ProSe协议层传递到MAC层,并根据ProSe协议层与MAC层中D2D Discovery传输信道的映射关系,将第一Discovery消息映射到MAC层的D2D Discovery传输信道。
S207:所述终端设备接收其他终端设备发送的第二Discovery消息。
当其他终端设备向该终端设备发送第二Discovery消息时,终端设备接收其他终端设备发送的第二Discovery消息。
S208:所述终端设备确定所述第二Discovery消息是否包含所述Discovery专用逻辑信道标识和/或所述标志位的值是否为预设值,以确定所述第二Discovery消息是否来自D2D共享传输信道。
终端设备确定接收到的第二Discovery消息是否包含与Discovery专用无线承载对应的Discovery专用逻辑信道标识和/或D2D链路控制信息的标志位的值是否为预设值,从而确定接收到的第二Discovery消息是否来自D2D共享传输信道。
其中,D2D链路控制信息的标志位的预设值对应于步骤S205中预先设置的值。当终端设备确定第二Discovery消息包含与Discovery专用无线承载对应的Discovery专用逻辑信道标识,或D2D链路控制信息的标志位的值为预设值时,确定接收到的第二Discovery消息来自D2D共享传输信道,第二Discovery消息包含Discovery专用无线承载所承载的Discovery消息。
当接收到的第二Discovery消息来自D2D共享传输信道时,执行步骤S209;否则,按现有技术中的方法进行处理。
S209:当所述第二Discovery消息来自D2D共享传输信道时,通过所述D2D共享传输信道将所述第二Discovery消息从所述媒体接入控制协议层递交到所述分组数据汇聚协议层,并从所述分组数据汇聚协议层递交到所述ProSe协议层进行处理。
由于终端设备发送Discovery消息与接收Discovery消息是两个逆过程,因此,当终端设备接收到第二Discovery消息时,参照第一Discovery消息的流程进行处理。
具体地:终端设备确认接收到的第二Discovery消息来自D2D共享传输信道时,通过D2D共享传输信道将接收到的第二Discovery消息从MAC层递交到RLC层,再进一步递交到PDCP层,并根据PDCP层的Discovery专用无线承载与ProSe协议层的映射关系,将接收到的信息从PDCP层递交到ProSe协议层进行处理。具体请参阅步骤S201~S205的描述,此处不赘述。
上述方案,终端设备在分组数据汇聚协议层增加Discovery专用无线承载,建立ProSe协议层到D2D共享传输信道的映射关系,当终端设备确定ProSe协议层生成的第一Discovery消息的比特数大于预设阈值时,将第一Discovery消息映射到D2D共享传输信道,否则,将第一Discovery消息映射到D2DDiscovery传输信道;能够灵活传输不同比特数的Discovery消息,提高数据传输的有效性,防止因Discovery消息的比特数大于固定比特数而导致丢包的情况。
请参阅图4,图4是本申请数据传输方法再一实施例的流程图。本实施例的执行主体为终端设备(User Equipment,UE),UE可以为手机等移动终端设备。两个UE可以直接通信传输数据。
本实施例与上一实施例的不同之处在于步骤S301、S303~S305,S307~S309。本实施例的数据传输方法包括如下步骤:
S301:所述终端设备在媒体接入控制协议层建立ProSe协议层到D2D共享传输信道的映射关系。
请一并参阅图5,图5是本申请建立ProSe协议层到D2D共享传输信道的映射关系另一实施例的示意图。其中,图5-1是本申请建立ProSe协议层到D2D共享传输信道的映射关系的协议栈的示意图,图5-2是本申请建立ProSe协议层到D2D共享传输信道的映射关系的信道映射的示意图,映射路径2表示ProSe协议层到D2D共享传输信道的映射关系。
终端设备在媒体接入控制协议层MAC层建立ProSe协议层到D2D共享传输信道的映射关系,以使终端设备能够将ProSe协议层生成的Discovery消息映射到MAC层中的D2D共享传输信道。
当终端设备发送D2D通信数据时,按现有技术中的处理流程进行处理。
当终端设备发送ProSe协议层生成的Discovery消息时,执行步骤S302~S306。
当终端设备接收到其他终端设备发送的数据时,执行步骤S307~S309。
S302:确定所述ProSe协议层生成的第一Discovery消息的比特数是否大于预设阈值。
步骤S302与上一实施例中的步骤S202相同,具体请参阅上一实施例中步骤S202的具体描述,此处不赘述。
当终端设备ProSe协议层生成的第一Discovery消息的比特数大于预设阈值时,执行步骤S303。
当终端设备ProSe协议层生成的第一Discovery消息的比特数小于或等于预设阈值时,执行步骤S306。
S303:当所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息传递到媒体接入控制协议层。
当终端设备确定第一Discovery消息的比特数大于预设阈值时,将第一Discovery消息从ProSe协议层传递到MAC层。
S304:所述终端设备将所述第一Discovery消息映射到所述D2D共享传输信道,并对所述第一Discovery消息添加Discovery专用逻辑信道标识,其中,所述Discovery专用逻辑信道标识用于标识通过所述D2D共享传输信道传输的Discovery消息。
终端设备在将第一Discovery消息递交到MAC层之后,根据MAC层中ProSe协议层与D2D共享传输信道的映射关系,将第一Discovery消息映射到MAC层中的D2D共享传输信道。
终端设备在将第一Discovery消息映射到D2D共享传输信道之后,在D2D共享传输信道中为第一Discovery消息添加数据包头,并在数据包头中添加对第一Discovery消息添加Discovery专用逻辑信道标识(Logical Channel Identity,LCID)。
该Discovery专用逻辑信道标识用于标识该第一Discovery消息是通过D2D共享传输信道传输的Discovery消息。该Discovery专用逻辑信道标识的Discovery消息由ProSe协议层递交到媒体接入控制协议层,能够通过D2D共享传输信道进行传输。
该Discovery专用逻辑信道标识用于使其他终端设备在接收到第一Discovery消息后,能够通过该Discovery专用逻辑信道标识识别出第一Discovery消息是由ProSe协议层递交到媒体接入控制协议层,并通过D2D共享传输信道传输,以便做进一步处理。请一并参阅图6,图6是本申请将Discovery消息映射到D2D共享传输信道一实施例的信道映射示。
如图6所示,由于D2D通信数据的逻辑信道标识的值通常为1~10,因此,与Discovery专用无线承载对应的Discovery专用逻辑信道标识的值可以取逻辑信道中除去标识值为1~10以外的任意逻辑信道的值。比如,用于标识Discovery消息的逻辑信道标识的值为11,但并不限于此。
其中,如图7所示,图7是本申请D2D共享传输信道MAC数据包格式一实施例的示意图。
当终端设备确认可用的D2D通信数据传输资源在承载将第一数据包之后,还有多余的传输资源传输D2D通信数据时,终端设备在同一个MAC数据包头中,同时设置Discovery专用逻辑信道标识以及待传输的D2D通信数据对应的逻辑信道标识,以使终端设备能够通过相同的D2D通信数据传输资源同时传输第一Discovery消息以及待传输的D2D通信数据。
当终端设备确认可用的D2D通信数据传输资源在承载第一Discovery消息之后,没有多余的传输资源传输D2D通信数据时,终端设备分别在不同的MAC数据包头中,设置Discovery专用逻辑信道标识、待传输的D2D通信数据对应的逻辑信道标识,以使终端设备能够通过不同的D2D通信数据传输资源同时传输第一Discovery消息以及待传输的D2D通信数据。其中,第一Discovery消息和D2D通信数据通过不同的传输资源进行区分。
S305:所述终端设备将所述第一Discovery消息通过所述D2D共享传输信道传递到物理层,并在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过D2D通信数据的传输资源传输所述第一Discovery消息,其中,所述标志位用于指示D2D通信数据的传输资源是否承载有Discovery消息,所述Discovery消息为从所述ProSe协议层传递到所述媒体接入控制协议层的Discovery消息。
终端设备对第一Discovery消息添加Discovery专用逻辑信道标识之后,将添加Discovery专用逻辑信道标识的第一Discovery消息通过D2D共享传输信道传递到物理层。
之后,终端设备在第一Discovery消息对应的D2D链路控制信息(Sidelink Control Information,SCI)中设置标志位,通过D2D通信数据的传输资源传输第一Discovery消息。
该标志位用于指示D2D通信数据的传输资源是否承载有Discovery消息,第一Discovery消息为从ProSe协议层传递到媒体接入控制协议层的Discovery消息。
其中,在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过D2D通信数据的传输资源传输所述第一Discovery消息的步骤包括:终端设备根据调度信息或可用的传输资源确定所述第一Discovery消息对应的D2D链路控制信息,其中,第一Discovery消息对应的D2D链路控制信息用于指示承载第一Discovery消息的传输资源信息;终端设备在第一Discovery消息对应的D2D链路控制信息中设置标志位,以通过D2D链路控制信息指示的传输资源传输第一Discovery消息。例如,终端设备在将第一数据包通过D2D共享传输信道从MAC层递交到物理层后,根据调度信息或可用的传输资源确定第一Discovery消息对应的D2D链路控制信息,在第一Discovery消息对应的D2D链路控制信息中设置标志位的值,以通过D2D链路控制信息指示的传输资源传输第一Discovery消息。其中,第一Discovery消息对应的D2D链路控制信息用于指示承载第一Discovery消息的传输资源信息。
具体为:终端设备从基站发送的调度信息中获取第一Discovery消息对应的D2D链路控制信息,或根据第一Discovery消息分配到的传输资源确定第一Discovery消息对应的D2D链路控制信息。
之后,在第一Discovery消息的D2D链路控制信息(Sidelink Control Information,SCI)中设置标志位的值。其中,第一Discovery消息对应的D2D链路控制信息指示承载第一Discovery消息的传输资源信息以及D2D通信数据共同的传输资源信息。其中,D2D链路控制信息用于指示承载待传输数据的传输资源的信息,传输资源的信息包括传输资源的频率、时间等信息。
此时,D2D链路控制信息用于指示承载第一Discovery消息的传输资源信息,或第一Discovery消息以及D2D通信数据共同的传输资源信息。其中,第一Discovery消息与D2D通信数据通过逻辑信道标识进行区分。
第一Discovery消息和D2D通信数据通过D2D链路控制信息中的标志位以及不同的传输资源进行区分。可以理解的是,第一Discovery消息可以为一个数据包,一次传输即可。
D2D链路控制信息中的标志位可以占SC中1比特(bit),该标志位用于指示第一Discovery消息是否包含从ProSe协议层传递到MAC层的Discovery消息。
例如,将SCI的1比特标志位的值设置成“1”,则该SCI所指示的传输资源所承载的第一Discovery消息包含从ProSe协议层传递到MAC层的Discovery消息;否则,该SCI所指示的传输资源所承载的数据包仅包含其他D2D通信数据,而不包含从ProSe协议层传递到MAC层的Discovery消息。
S306:当第一discovery消息的比特数小于等于所述预设阈值时,将所述第一Discovery消息映射到D2DDiscovery传输信道。
步骤S306与上一实施例中的步骤S206相同,具体请参阅上一实施例中步骤S206的具体描述,此处不赘述。
S307:所述终端设备接收其他终端设备发送的第二Discovery消息。
步骤S307与上一实施例中的步骤S207相同,具体请参阅上一实施例中步骤S207的具体描述,此处不赘述。
S308:所述终端设备确定所述第二Discovery消息是否包含所述Discovery专用逻辑信道标识和/或所述标志位的值是否为预设值,以确定所述第二Discovery消息是否来自D2D共享传输信道。
终端设备确定接收到的第二Discovery消息是否包含Discovery专用逻辑信道标识和/或D2D链路控制信息的标志位的值是否为预设值,从而确定接收到的第二Discovery消息是否来自D2D共享传输信道。其中,D2D链路控制信息的标志位的预设值对应于步骤S305中预先设置的值。
当终端设备确定第二Discovery消息包含Discovery专用逻辑信道标识,或D2D链路控制信息的标志位的值为预设值时,确定接收到的第二Discovery消息来自D2D共享传输信道。
当接收到的第二Discovery消息来自D2D共享传输信道时,执行步骤S309;否则,按现有技术中的方法进行处理。
S309:当所述第二Discovery消息来自D2D共享传输信道时,通过所述D2D Discovery传输信道将所述第二Discovery消息从所述媒体接入控制协议层传递到所述ProSe协议层进行处理。
由于终端设备发送Discovery消息与接收Discovery消息是两个逆过程,因此,当终端设备接收到第二Discovery消息时,参照第一Discovery消息的流程进行处理。
具体地:终端设备在确认接收到的第二Discovery消息来自D2D共享传输信道时,通过D2D共享传输信道将第二Discovery消息从MAC层传递到ProSe协议层进行处理。具体请参阅步骤S301~S305的描述,此处不赘述。
上述方案,终端设备在MAC层建立ProSe协议层到D2D共享传输信道的直接映射关系,当终端设备确定ProSe协议层生成的第一Discovery消息的比特数大于预设阈值时,将第一Discovery消息映射到D2D共享传输信道,否则,将第一Discovery消息映射到D2DDiscovery传输信道;能够灵活传输不同比特数的Discovery消息,提高数据传输的有效性,能够防止因Discovery消息的比特数大于固定比特数而导致丢包的情况。
请参阅图8,图8是本申请数据传输方法又一实施例的流程图。本实施例的执行主体为终端设备(User Equipment,UE),其中,UE可以为手机等移动终端设备。两个UE可以直接通信传输数据。
本实施例中步骤S401~S403分别与上一实施例的S301~S303相同,本实施例中步骤S406、S407分别与上一实施例中的步骤S306、S307相同。本实施例的数据传输方法包括如下步骤:
S401:所述终端设备在媒体接入控制协议层建立ProSe协议层到D2D共享传输信道的映射关系。
步骤S401与上一实施例中的步骤S301相同,具体请参阅上一实施例中步骤S301的具体描述,此处不赘述。
S402:确定所述ProSe协议层生成的第一Discovery消息的比特数是否大于预设阈值。
步骤S402与上一实施例中的步骤S302相同,具体请参阅上一实施例中步骤S302的具体描述,此处不赘述。
S403:当所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息递交到媒体接入控制协议层。
步骤S403与上一实施例中的步骤S303相同,具体请参阅上一实施例中步骤S303的具体描述,此处不赘述。
S404:所述终端设备将所述第一Discovery消息映射到所述D2D共享传输信道。
终端设备在将第一Discovery消息递交到MAC层之后,根据MAC层中ProSe协议层与D2D共享传输信道的直接映射关系,将第一Discovery消息映射到MAC层中的D2D共享传输信道。
其中,将第一数据包映射到D2D共享传输信道的示意图如图9所示。图9是本申请将Discovery消息映射到D2D共享传输信道另一实施例的信道映射示意图。
在本实施例中,映射到D2D共享传输信道的第一Discovery消息与D2D通信数据采用相同的逻辑信道标识。如图9所示,第一Discovery消息以及D2D通信数据的逻辑信道标识的值通常均为1~10。
S405:所述终端设备将所述第一Discovery消息通过所述D2D共享传输信道传递到物理层,并在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过D2D通信数据的传输资源传输所述第一Discovery消息,其中,所述标志位用于指示D2D通信数据的传输资源是否承载有Discovery消息,所述Discovery消息从所述ProSe协议层传递到所述媒体接入控制协议层的Discovery消息。
终端设备在将第一Discovery消息映射到D2D共享传输信道后,将第一Discovery消息通过D2D共享传输信道从MAC层传递到物理层,根据调度信息或可用的传输资源确定第一Discovery消息对应的D2D链路控制信息,在第一Discovery消息对应的D2D链路控制信息中设置标志位的值,以通过D2D链路控制信息中指示的传输资源传输第一Discovery消息。其中,第一Discovery消息对应的D2D链路控制信息用于指示承载第一Discovery消息的传输资源信息。
之后,在第一Discovery消息对应的D2D链路控制信息(Sidelink Control Information,SCI)中设置标志位。
其中,D2D链路控制信息用于指示承载待传输数据的传输资源的信息,传输资源的信息包括传输资源的频率、时间等信息。
此时,第一Discovery消息对应的D2D链路控制信息只用于指示承载第一Discovery消息的传输资源信息。承载D2D通信数据的传输资源信息通过D2D通信数据对应的D2D链路控制信息进行指示。第一Discovery消息和D2D通信数据通过不同的传输资源进行区分,并分别进行传输。D2D链路控制信息中的标志位可以占SC中1比特(bit),该标志位用于指示第一Discovery消息是否包含通过D2D共享传输信道所承载的第二Discovery消息。
请一并参阅图10,图10是本申请利用不同物理资源区分Discovery消息和D2D通信数据一实施例的示意图。
如图10所示,终端设备采用不同的传输资源对第一Discovery消息和其他D2D通信数据进行区分,并利用不同的SCI资源传输分别传输相应的SCI。其中,上述SCI的1 比特标识位,用于表示相应SCI所指示的资源是否承载有第一Discovery消息。
例如,若上述SCI的1比特标志位的值设置成“1”,则该SCI所指示的资源为承载第一Discovery消息所对应的传输资源;否则,该SCI所指示的资源为其他D2D通信数据所对应的传输资源。
终端设备还通过D2D链路控制(Sidelink Control,SC)资源传输D2D通信数据的SCI,并根据D2D通信数据的SCI指示终端设备通过可用的D2D通信数据资源传输D2D通信数据,以将D2D通信数据发送给其他终端设备。
此外,终端设备在将第一Discovery消息通过D2D共享传输信道从MAC层递交到物理层后,终端设备可通过基站发送的调度信息分别获取第一Discovery消息和D2D通信数据的传输资源及相应的SC资源;终端设备也可以在终端设备对应的D2D直接通信竞争资源池中,自行为第一Discovery消息、D2D通信数据及各自对应的SC资源分别获取传输资源。其中,资源池为一组时频资源的集合。D2D直接通信竞争资源池通过LTE系统广播或专用信令进行配置,此处不赘述。
上述基站调度信息中,可加入1比特标识位,以区分SC资源以及SCI所分配的传输资源是对应于传输第一Discovery消息,还是对应于传输D2D通信数据。
可以理解的是,第一Discovery消息可以为一个数据包,一次传输即可。
在本实施例中,终端设备通过在第一Discovery消息对应的D2D链路控制信息中设置标志位,以区分第一Discovery消息以及D2D通信数据,并通过不同的传输资源传输第一Discovery消息以及D2D通信数据。
S406:当第一discovery消息的比特数不大于所述预设阈值时,将所述第一Discovery消息映射到D2D Discovery传输信道。
步骤S406与上一实施例中的步骤S306相同,具体请参阅上一实施例中步骤S306的具体描述,此处不赘述。
S407:所述终端设备接收其他终端设备发送的第二Discovery消息。
步骤S407与上一实施例中的步骤S307相同,具体请参阅上一实施例中步骤S307的具体描述,此处不赘述。
S408:所述终端设备确定所述标志位的值是否为预设值,以确定所述第二Discovery消息是否来自D2D共享传输信道。
终端设备确定接收到的第二Discovery消息包含的D2D链路控制信息的标志位的值是否为预设值,从而确定接收到的第二Discovery消息是否来自D2D共享传输信道。其中,D2D链路控制信息的标志位的预设值对应于步骤S406中预先设置的值。
当终端设备确定第二Discovery消息包含的D2D链路控制信息的标志位的值为预设值时,确定接收到的第二Discovery消息来自D2D共享传输信道。
当接收到的第二Discovery消息来自D2D共享传输信道时,执行步骤S409;否则,按现有技术中的方法进行处理。
S409:当所述信息包含所述第二Discovery消息时,通过所述D2D Discovery传输信道将所述第二Discovery消息从所述媒体接入控制协议层递交到所述ProSe协议层进行处理。
由于终端设备发送Discovery消息与接收Discovery消息是两个逆过程,因此,当终端设备接收到第二Discovery消息时,参照第一Discovery消息的流程进行处理。
具体地:终端设备确认接收到的第二Discovery消息来自D2D共享传输信道时,通过D2D共享传输信道将第二Discovery消息从MAC层递交到ProSe协议层进行处理。具体请参阅步骤S401~S405的描述,此处不赘述。
在本实施例中通过设置SCI的标志位,以通过不同的传输资源区分Discovery消息以及D2D通信数据,从而使得接收到该信息的终端设备能够通过SCI的标志位即可识别出当前传输资源对应的是Discovery消息还是D2D通信数据。
上述方案,终端设备在MAC层建立ProSe协议层到D2D共享传输信道的直接映射关系,当终端设备确定ProSe协议层生成的第一Discovery消息的比特数大于预设阈值时,将第一Discovery消息映射到D2D共享传输信道,否则,将第一Discovery消息映射到D2DDiscovery传输信道;能够灵活传输不同比特数的Discovery消息,提高数据传输的可靠性,能够防止因Discovery消息的比特数大于固定比特数而导致丢包的情况。
请参阅图11,图11是本申请数据传输装置一实施方式的结构示意图。本实施例的数据传输装置所包括的各模块用于执行图1对应的实施例中的各步骤,具体请参阅图1以及图1对应的实施例的相关描述,此处不赘述。本实施例的数据传输装置包括建立模块1110、确定模块1120以及映射模块1130。
建立模块1110用于建立设备到设备临近服务D2D ProSe协议层到D2D共享传输信道的映射关系。比如,建立模块1110建立设备到设备临近服务D2D ProSe协议层到D2D共享传输信道的映射关系。建立模块1110建立ProSe协议层到D2D共享传输信道的映射关系之后,向确定模块1120发送通知信息。
确定模块1120用于接收确定模块1120发送的通知信息,确定所述ProSe协议层生成的第一Discovery消息的比特数是否大于预设阈值。比如,确定模块1120确定所述ProSe协议层生成的第一Discovery消息的比特数是否大于预设阈值。确定模块1120将确定结果发送给映射模块1130。
映射模块1130用于接收确定模块1120发送的确定结果,当确定模块1120确定所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息映射到所述D2D共享传输信道,通过所述D2D共享传输信道传输所述第一Discovery消息;或者,当确定模块1120确定所述第一discovery消息的比特数小于等于所述预设阈值时,将所述第一Discovery消息映射到D2D Discovery传输信道。
比如,映射模块1130接收确定模块1120发送的确定结果,当确定模块1120确定所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息映射到所述D2D共享传输信道,通过所述D2D共享传输信道传输所述第一Discovery消息;或者,当确定模块1120确定所述第一discovery消息的比特数小于等于所述预设阈值时,将所述第一Discovery消息映射到D2D Discovery传输信道。
上述方案,数据传输装置通过建立ProSe协议层到D2D共享传输信道的映射关系,当终端设备确定ProSe协议层生成的第一Discovery消息的比特数大于预设阈值时,将第一Discovery消息映射到D2D共享传输信道,否则,将第一Discovery消息映射到D2DDiscovery传输信道;能够灵活传输不同比特数的Discovery消息,提高数据传输的有效性,防止因Discovery消息的比特数大于固定比特数而导致丢包的情况。
请参阅图12,图12是本申请数据传输装置另一实施方式的结构示意图。本实施例的数据传输装置所包括的各模块用于执行图2、图4、图8对应的实施例中的各步骤,具体请参阅图2、图4、图8以及各自对应的实施例的相关描述,此处不赘述。本实施例的数据传输装置包括建立模块1210、确定模块1220、映射模块1230、控制模块1240以及接收模块1250。
建立模块1210具体用于在分组数据汇聚协议层增加Discovery专用无线承载,建立ProSe协议层到所述Discovery专用无线承载的映射关系,其中,所述Discovery专用无线承载用于承载Discovery消息,所述Discovery专用无线承载承载的所述Discovery消息映射到Discovery专用逻辑信道,并通过Discovery专用逻辑信道标识进行标识,所述Discovery专用逻辑信道标识的Discovery消息通过所述D2D共享传输信道进行传输,所述Discovery专用无线承载与所述Discovery专用逻辑信道对应,所述Discovery专用逻辑信道与Discovery专用逻辑信道标识对应。
比如,建立模块1210在分组数据汇聚协议层增加Discovery专用无线承载,建立ProSe协议层到所述Discovery专用无线承载的映射关系,其中,所述Discovery专用无线承载用于承载Discovery消息,所述Discovery专用无线承载承载的所述Discovery消息映射到Discovery专用逻辑信道,并通过Discovery专用逻辑信道标识进行标识,所述Discovery专用逻辑信道标识的Discovery消息通过所述D2D共享传输信道进行传输,所述Discovery专用无线承载与所述Discovery专用逻辑信道对应,所述Discovery专用逻辑信道与Discovery专用逻辑信道标识对应。
建立模块1210具体用于在媒体接入控制协议层建立ProSe协议层到D2D共享传输信道的映射关系。比如,建立模块1210在媒体接入控制协议层建立ProSe协议层到D2D共享传输信道的映射关系。
建立模块1210在建立ProSe协议层到D2D共享传输信道的映射关系之后,向确定模块1220发送通知信息。
确定模块1220用于接收确定模块1220发送的通知信息,确定所述ProSe协议层生成的第一Discovery消息的比特数是否大于预设阈值。比如,确定模块1220确定所述ProSe协议层生成的第一Discovery消息的比特数是否大于预设阈值。确定模块1220将确定结果发送给映射模块1230。
映射模块1230具体用于接收确定模块1220发送的确定结果,当确定模块1220确定所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息传递到所述分组数据汇聚协议层,将所述第一Discovery消息映射到所述Discovery专用无线承载,以及将所述第一Discovery消息映射到所述D2D共享传输信道,并对所述第一Discovery消息添加Discovery专用逻辑信道标识,其中,所述Discovery专用逻辑信道标识用于标识通过所述D2D共享传输信道传输的Discovery消息;
或映射模块1230具体用于当确定模块1220确定所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息传递到媒体接入控制协议层,将所述第一Discovery消息映射到所述D2D共享传输信道,并对所述第一Discovery消息添加Discovery专用逻辑信道标识,其中,所述Discovery专用逻辑信道标识用于标识通过所述D2D共享传输信道传输的Discovery消息。
比如,映射模块1230接收确定模块1220发送的确定结果,当确定模块1220确定所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息传递到所述分组数据汇聚协议层,将所述第一Discovery消息映射到所述Discovery专用无线承载,以及将所述第一Discovery消息映射到所述D2D共享传输信道,并对所述第一Discovery消息添加Discovery专用逻辑信道标识,其中,所述Discovery专用逻辑信道标识用于标识通过所述D2D共享传输信道传输的Discovery消息;
或当确定模块1220确定所述第一Discovery消息的比特数大于预设阈值时,映射模块1230将所述第一Discovery消息传递到媒体接入控制协议层,并将所述第一Discovery消息映射到所述D2D共享传输信道,并对所述第一Discovery消息添加Discovery专用逻辑信道标识,其中,所述Discovery专用逻辑信道标识用于标识通过所述D2D共享传输信道传输的Discovery消息。
映射模块1230还用于当确定模块1220确定所述第一discovery消息的比特数小于等于所述预设阈值时,将所述第一Discovery消息映射到D2D Discovery传输信道。
比如,当确定模块1220确定所述第一discovery消息的比特数小于等于所述预设阈值时,映射模块1230将所述第一Discovery消息映射到D2D Discovery传输信道。映射模块1230完成映射后向控制模块1240发送通知信息。
控制模块1240用于接收映射模块1230发送的通知信息,将所述第一Discovery消息通过所述D2D共享传输信道传递到物理层,并在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过D2D通信数据的传输资源传输所述第一Discovery消息,其中,所述标志位用于指示D2D通信数据的传输资源是否承载有Discovery消息,所述Discovery消息为所述Discovery专用无线承载承载的Discovery消息或从所述ProSe协议层传递到所述媒体接入控制协议层的Discovery消息。
比如,控制模块1240接收映射模块1230发送的通知信息,将所述第一Discovery消息通过所述D2D共享传输信道传递到物理层,并在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过D2D通信数据的传输资源传输所述第一Discovery消息,其中,所述标志位用于指示D2D通信数据的传输资源是否承载有Discovery消息,所述第一Discovery消息为所述Discovery专用无线承载承载的Discovery消息或从所述ProSe协议层传递到所述媒体接入控制协议层的Discovery消息。
控制模块1240具体用于将所述第一Discovery消息通过所述D2D共享传输信道传递到物理层,根据调度信息或可用的传输资源确定所述第一Discovery消息对应的D2D链路控制信息,在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过所述D2D链路控制信息指示的传输资源传输所述第一Discovery消息;其中,所述第一Discovery消息对应的D2D链路控制信息用于指示承载所述第一Discovery消息的传输资源信息。
其中,控制模块1240确定的D2D链路控制信息指示承载所述第一Discovery消息的传输资源信息以及D2D通信数据共同的D2D通信数据的传输资源信息,所述D2D通信数据的传输资源同时承载所述第一Discovery消息与D2D通信数据,所述第一Discovery消息与D2D通信数据通过逻辑信道标识进行区分。
其中,控制模块1240确定的所述D2D链路控制信息指示承载所述第一Discovery消息的D2D通信数据的传输资源信息,所述D2D通信数据的传输资源只承载第一Discovery消息,其中,所述第一Discovery消息和D2D通信数据通过不同的传输资源进行区分。
比如,控制模块1240将所述第一Discovery消息通过所述D2D共享传输信道传递到物理层,根据调度信息或可用的传输资源确定所述第一Discovery消息对应的D2D链路控制信息,在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过所述D2D链路控制信息指示的传输资源传输所述第一Discovery消息;其中,所述第一Discovery消息对应的D2D链路控制信息用于指示承载所述第一Discovery消息的传输资源信息。
其中,控制模块1240确定的D2D链路控制信息指示承载所述第一Discovery消息的传输资源信息以及D2D通信数据共同的D2D通信数据的传输资源信息,所述D2D通信数据的传输资源同时承载所述第一Discovery消息与D2D通信数据,所述第一Discovery消息与D2D通信数据通过逻辑信道标识进行区分。
其中,控制模块1240确定的所述D2D链路控制信息指示承载所述第一Discovery消息的D2D通信数据的传输资源信息,所述D2D通信数据的传输资源只承载第一Discovery消息,其中,所述第一Discovery消息和D2D通信数据通过不同的传输资源进行区分。
接收模块1250用于接收其他终端设备发送的第二Discovery消息。比如,接收模块1250接收其他终端设备发送的第二Discovery消息。接收模块1250将接收到的第二Discovery消息向确定模块1220发送。
确定模块1220还用于接收接收模块1250发送的第二Discovery消息,确定接收模块1250接收的所述第二Discovery消息是否包含所述Discovery专用逻辑信道标识和/或所述标志位的值是否为预设值,以确定所述第二Discovery消息是否来自D2D共享传输信道。确定模块1220将确定结果向映射模块1230发送。
映射模块1230用于当确定模块1220确定所述第二Discovery消息来自D2D共享传输信道时,根据传输所述第一Discovery的机制对所述第二Discovery消息进行处理。
上述方案,数据传输装置通过建立ProSe协议层到D2D共享传输信道的映射关系,当终端设备确定ProSe协议层生成的第一Discovery消息的比特数大于预设阈值时,将第一Discovery消息映射到D2D共享传输信道,否则,将第一Discovery消息映射到D2DDiscovery传输信道;能够灵活传输不同比特数的Discovery消息,提高数据传输的有效性,防止因Discovery消息的比特数大于固定比特数而导致丢包的情况。
参阅图13,图13是本申请终端设备一实施方式的结构示意图。终端设备可以是手机等移动终端设备。本实施例的终端设备包括:接收器1310、处理器1320、发送器1330、只读存储器1340、随机存取存储器1350以及总线1360。
接收器1310用于接收信息。
处理器1320控制终端设备的操作,处理器1320还可以称为CPU(Central Processing Unit,中央处理单元)。处理器1320可能是一种集成电路芯片,具有信号的处理能力。处理器1320还可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
发送器1330用于发送信息。
存储器可以包括只读存储器1340和随机存取存储器1350,并向处理器1320提供指令和数据。存储器的一部分还可以包括非易失性随机存取存储器(NVRAM)。
终端设备的各个组件通过总线1360耦合在一起,其中总线1360除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线1360。
存储器存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集:
操作指令:包括各种操作指令,用于实现各种操作。
操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。
在本发明实施例中,处理器1320通过调用存储器存储的操作指令(该操作指令可存储在操作系统中),执行如下操作:
处理器1320用于建立设备到设备临近服务D2D ProSe协议层到D2D共享传输信道的映射关系;
处理器1320用于确定所述ProSe协议层生成的第一Discovery消息的比特数是否大于预设阈值;以及用于当所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息映射到所述D2D共享传输信道,通过所述D2D共享传输信道传输所述第一Discovery消息;或者,当所述第一discovery消息的比特数小于等于所述预设阈值时,将所述第一Discovery消息映射到D2D Discovery传输信道。
可选地,处理器1320具体用于在分组数据汇聚协议层增加Discovery专用无线承载,建立ProSe协议层到所述Discovery专用无线承载的映射关系,其中,所述Discovery专用无线承载用于承载Discovery消息,所述Discovery专用无线承载承载的所述Discovery消息映射到Discovery专用逻辑信道,并通过Discovery专用逻辑信道标识进行标识,所述Discovery专用逻辑信道标识的Discovery消息通过所述D2D共享传输信道进行传输,所述Discovery专用无线承载与所述Discovery专用逻辑信道对应,所述Discovery专用逻辑信道与Discovery专用逻辑信道标识对应。
可选地,处理器1320具体用于在媒体接入控制协议层建立ProSe协议层到D2D共享传输信道的映射关系。
可选地,处理器1320具体用于当所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息传递到所述分组数据汇聚协议层,将所述第一Discovery消息映射到所述Discovery专用无线承载;或将所述第一Discovery消息传递到媒体接入控制协议层;
处理器1320还具体用于将所述第一Discovery消息映射到所述D2D共享传输信道,并对所述第一Discovery消息添加Discovery专用逻辑信道标识,其中,所述Discovery专用逻辑信道标识用于标识通过所述D2D共享传输信道传输的Discovery消息。
可选地,处理器1320还用于将所述第一Discovery消息通过所述D2D共享传输信道传递到物理层,并在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过D2D通信数据的传输资源传输所述第一Discovery消息,其中,所述标志位用于指示D2D通信数据的传输资源是否承载有Discovery消息,所述第一Discovery消息为所述Discovery专用无线承载承载的Discovery消息或从所述ProSe协议层传递到所述媒体接入控制协议层的Discovery消息。
可选地,处理器1320还具体用于将所述第一Discovery消息通过所述D2D共享传输信道传递到物理层,根据调度信息或可用的传输资源确定所述第一Discovery消息对应的D2D链路控制信息,在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过所述D2D链路控制信息指示的传输资源传输所述第一Discovery消息;其中,所述第一Discovery消息对应的D2D链路控制信息用于指示承载所述第一Discovery消息的传输资源信息。
可选地,处理器1320确定的D2D链路控制信息指示承载所述第一Discovery消息的传输资源信息以及D2D通信数据共同的D2D通信数据的传输资源信息,所述D2D通信数据的传输资源同时承载所述第一Discovery消息与D2D通信数据,所述第一Discovery消息与D2D通信数据通过逻辑信道标识进行区分。
可选地,处理器1320确定的所述D2D链路控制信息指示承载所述第一Discovery消息的D2D通信数据的传输资源信息,所述D2D通信数据的传输资源只承载第一Discovery消息,其中,所述第一Discovery消息和D2D通信数据通过不同的传输资源进行区分。
可选地,处理器1320还用于控制接收器1310接收其他终端设备发送的第二Discovery消息;
处理器1320还用于确定所述第二Discovery消息是否包含所述Discovery专用逻辑信道标识和/或所述标志位的值是否为预设值,以确定所述第二Discovery消息是否来自D2D共享传输信道;
处理器1320还用于当所述第二Discovery消息来自D2D共享传输信道时,所述终端设备根据传输所述第一Discovery的机制对所述第二Discovery消息进行处理。
上述方案,终端设备通过建立ProSe协议层到D2D共享传输信道的映射关系,当终端设备确定ProSe协议层生成的第一Discovery消息的比特数大于预设阈值时,将第一Discovery消息映射到D2D共享传输信道,否则,将第一Discovery消息映射到D2DDiscovery传输信道;能够灵活传输不同比特数的Discovery消息,提高数据传输的有效性,防止因Discovery消息的比特数大于固定比特数而导致丢包的情况。
以上描述中,为了说明而不是为了限定,提出了诸如特定系统结构、接口、技术之类的具体细节,以便透彻理解本申请。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施方式中也可以实现本申请。在其它情况中,省略对众所周知的装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。

Claims (27)

  1. 一种数据传输方法,其特征在于,所述方法包括:
    终端设备建立设备到设备临近服务D2D ProSe协议层到D2D共享传输信道的映射关系;
    所述终端设备确定所述ProSe协议层生成的第一Discovery消息的比特数是否大于预设阈值;
    当所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息映射到所述D2D共享传输信道,通过所述D2D共享传输信道传输所述第一Discovery消息;或者
    当第一discovery消息的比特数小于等于所述预设阈值时,将所述第一Discovery消息映射到D2D Discovery传输信道。
  2. 根据权利要求1所述的方法,其特征在于,所述终端设备建立ProSe协议层到D2D共享传输信道的映射关系的步骤包括:
    所述终端设备在分组数据汇聚协议层增加Discovery专用无线承载,建立ProSe协议层到所述Discovery专用无线承载的映射关系,其中,所述Discovery专用无线承载用于承载Discovery消息,所述Discovery专用无线承载承载的所述Discovery消息映射到Discovery专用逻辑信道,并通过Discovery专用逻辑信道标识进行标识,所述Discovery专用逻辑信道标识的Discovery消息通过所述D2D共享传输信道进行传输,所述Discovery专用无线承载与所述Discovery专用逻辑信道对应,所述Discovery专用逻辑信道与Discovery专用逻辑信道标识对应。
  3. 根据权利要求1所述的方法,其特征在于,所述终端设备建立ProSe协议层到D2D业务逻辑信道的映射关系的步骤包括:
    所述终端设备在媒体接入控制协议层建立ProSe协议层到D2D共享传输信道的映射关系。
  4. 根据权利要求2或3所述的方法,其特征在于,当所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息映射到所述D2D共享传输信道,通过所述D2D共享传输信道传输所述第一Discovery消息的步骤包括:
    当所述第一Discovery消息的比特数大于预设阈值时,所述终端设备将所述第一Discovery消息传递到所述分组数据汇聚协议层,将所述第一Discovery消息映射到所述Discovery专用无线承载;或将所述第一Discovery消息传递到媒体接入控制协议层;
    所述终端设备将所述第一Discovery消息映射到所述D2D共享传输信道,并对所述第一Discovery消息添加Discovery专用逻辑信道标识,其中,所述Discovery专用逻辑信道标识用于标识通过所述D2D共享传输信道传输的Discovery消息。
  5. 根据权利要求1或4所述的方法,其特征在于,将所述第一Discovery消息映射到所述D2D共享传输信道的步骤之后,所述方法还包括:
    所述终端设备将所述第一Discovery消息通过所述D2D共享传输信道传递到物理层,并在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过D2D通信数据的传输资源传输所述第一Discovery消息,其中,所述标志位用于指示D2D通信数据的传输资源是否承载有Discovery消息,所述Discovery消息为所述第一Discovery专用无线承载承载的Discovery消息或从所述ProSe协议层传递到所述媒体接入控制协议层的Discovery消息。
  6. 根据权利要求5所述的方法,其特征在于,在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过D2D通信数据的传输资源传输所述第一Discovery消息包括:
    所述终端设备根据调度信息或可用的传输资源确定所述第一数据包对应的D2D链路控制信息,其中,所述第一Discovery消息对应的D2D链路控制信息用于指示承载所述第一Discovery消息的传输资源信息;
    所述终端设备在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过所述D2D链路控制信息指示的传输资源传输所述第一Discovery消息。
  7. 根据权利要求5所述的方法,其特征在于,所述D2D链路控制信息指示承载所述第一Discovery消息的传输资源信息以及D2D通信数据共同的D2D通信数据的传输资源信息,所述D2D通信数据的传输资源同时承载所述第一Discovery消息与D2D通信数据,所述第一Discovery消息与D2D通信数据通过逻辑信道标识进行区分。
  8. 根据权利要求5所述的方法,其特征在于,所述D2D链路控制信息指示承载所述第一Discovery消息的D2D通信数据的传输资源信息,所述D2D通信数据的传输资源只承载第一Discovery消息,其中,所述第一Discovery消息和D2D通信数据通过不同的传输资源进行区分。
  9. 根据权利要求4或5所述的方法,其特征在于,所述方法还包括:
    所述终端设备接收其他终端设备发送的第二Discovery消息;
    所述终端设备确定所述第二Discovery消息是否包含所述Discovery专用逻辑信道标识和/或所述标志位的值是否为预设值,以确定所述第二Discovery消息是否来自D2D共享传输信道;
    当所述第二Discovery消息来自D2D共享传输信道时,所述终端设备根据传输所述第一Discovery的机制对所述第二Discovery消息进行处理。
  10. 一种数据传输装置,其特征在于,所述装置包括:建立模块、确定模块以及映射模块;
    所述建立模块用于建立设备到设备临近服务D2D ProSe协议层到D2D共享传输信道的映射关系;
    所述确定模块用于在所述建立模块建立D2D ProSe协议层到D2D共享传输信道的映射关系后,确定所述ProSe协议层生成的第一Discovery消息的比特数是否大于预设阈值;
    所述映射模块用于当所述确定模块确定所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息映射到所述D2D共享传输信道,通过所述D2D共享传输信道传输所述第一Discovery消息;或者,当所述确定模块确定所述第一discovery消息的比特数小于等于所述预设阈值时,将所述第一Discovery消息映射到D2D Discovery传输信道。
  11. 根据权利要求10所述的装置,其特征在于,所述建立模块具体用于在分组数据汇聚协议层增加Discovery专用无线承载,建立ProSe协议层到所述Discovery专用无线承载的映射关系,其中,所述Discovery专用无线承载用于承载Discovery消息,所述Discovery专用无线承载承载的所述Discovery消息映射到Discovery专用逻辑信道,并通过Discovery专用逻辑信道标识进行标识,所述Discovery专用逻辑信道标识的Discovery消息通过所述D2D共享传输信道进行传输,所述Discovery专用无线承载与所述Discovery专用逻辑信道对应,所述Discovery专用逻辑信道与Discovery专用逻辑信道标识对应。
  12. 根据权利要求10所述的装置,其特征在于,所述建立模块具体用于在媒体接入控制协议层建立ProSe协议层到D2D共享传输信道的映射关系。
  13. 根据权利要求11或12所述的装置,其特征在于所述映射模块具体用于当所述确定模块确定所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息传递到所述分组数据汇聚协议层,将所述第一Discovery消息映射到所述Discovery专用无线承载,以及将所述第一Discovery消息映射到所述D2D共享传输信道,并对所述第一Discovery消息添加Discovery专用逻辑信道标识,其中,所述Discovery专用逻辑信道标识用于标识通过所述D2D共享传输信道传输的Discovery消息;或
    所述映射模块具体用于当所述确定模块确定所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息传递到媒体接入控制协议层,将所述第一Discovery消息映射到所述D2D共享传输信道,并对所述第一Discovery消息添加Discovery专用逻辑信道标识,其中,所述Discovery专用逻辑信道标识用于标识通过所述D2D共享传输信道传输的Discovery消息。
  14. 根据权利要求10或13所述的装置,其特征在于,所述装置还包括控制模块,所述控制模块用于将所述第一Discovery消息通过所述D2D共享传输信道传递到物理层,并在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过D2D通信数据的传输资源传输所述第一Discovery消息,其中,所述标志位用于指示D2D通信数据的传输资源是否承载有Discovery消息,所述第一Discovery消息为所述Discovery专用无线承载承载的Discovery消息或从所述ProSe协议层传递到所述媒体接入控制协议层的Discovery消息。
  15. 根据权利要求14所述的装置,其特征在于,所述控制模块具体用于将所述第一Discovery消息通过所述D2D共享传输信道传递到物理层,根据调度信息或可用的传输资源确定所述第一Discovery消息对应的D2D链路控制信息,在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过所述D2D链路控制信息指示的传输资源传输所述第一Discovery消息;其中,所述第一Discovery消息对应的D2D链路控制信息用于指示承载所述第一Discovery消息的传输资源信息。
  16. 根据权利要求14所述的装置,其特征在于,所述控制模块确定的D2D链路控制信息指示承载所述第一Discovery消息的传输资源信息以及D2D通信数据共同的D2D通信数据的传输资源信息,所述D2D通信数据的传输资源同时承载所述第一Discovery消息与D2D通信数据,所述第一Discovery消息与D2D通信数据通过逻辑信道标识进行区分。
  17. 根据权利要求14所述的装置,其特征在于,所述控制模块确定的所述D2D链路控制信息指示承载所述第一Discovery消息的D2D通信数据的传输资源信息,所述D2D通信数据的传输资源只承载第一Discovery消息,其中,所述第一Discovery消息和D2D通信数据通过不同的传输资源进行区分。
  18. 根据权利要求13或14所述的方法,其特征在于,所述装置还包括接收模块;所述接收模块用于接收其他终端设备发送的第二Discovery消息;
    所述确定模块还用于确定所述接收模块接收的所述第二Discovery消息是否包含所述Discovery专用逻辑信道标识和/或所述标志位的值是否为预设值,以确定所述第二Discovery消息是否来自D2D共享传输信道;
    所述映射模块还用于当所述确定模块确定所述第二Discovery消息来自D2D共享传输信道时,根据传输所述第一Discovery的机制对所述第二Discovery消息进行处理。
  19. 一种终端设备,其特征在于,所述终端设备包括存储器以及处理器;所述存储器用于存储数据;
    所述处理器用于建立设备到设备临近服务D2D ProSe协议层到D2D共享传输信道的映射关系;
    所述处理器用于确定所述ProSe协议层生成的第一Discovery消息的比特数是否大于预设阈值;以及用于当所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息映射到所述D2D共享传输信道,通过所述D2D共享传输信道传输所述第一Discovery消息;或者,当所述第一discovery消息的比特数小于等于所述预设阈值时,将所述第一Discovery消息映射到D2D Discovery传输信道。
  20. 根据权利要求19所述的终端设备,其特征在于,所述处理器具体用于在分组数据汇聚协议层增加Discovery专用无线承载,建立ProSe协议层到所述Discovery专用无线承载的映射关系,其中,所述Discovery专用无线承载用于承载Discovery消息,所述Discovery专用无线承载承载的所述Discovery消息映射到Discovery专用逻辑信道,并通过Discovery专用逻辑信道标识进行标识,所述Discovery专用逻辑信道标识的Discovery消息通过所述D2D共享传输信道进行传输,所述Discovery专用无线承载与所述Discovery专用逻辑信道对应,所述Discovery专用逻辑信道与Discovery专用逻辑信道标识对应。
  21. 根据权利要求19所述的终端设备,其特征在于,所述处理器具体用于在媒体接入控制协议层建立ProSe协议层到D2D共享传输信道的映射关系。
  22. 根据权利要求20或21所述的终端设备,其特征在于,所述处理器用于当所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息传递到所述分组数据汇聚协议层,将所述第一Discovery消息映射到所述Discovery专用无线承载,以及将所述第一Discovery消息映射到所述D2D共享传输信道,并对所述第一Discovery消息添加Discovery专用逻辑信道标识,其中,所述Discovery专用逻辑信道标识用于标识通过所述D2D共享传输信道传输的Discovery消息;
    或所述处理器具体用于当所述第一Discovery消息的比特数大于预设阈值时,将所述第一Discovery消息传递到媒体接入控制协议层,将所述第一Discovery消息映射到所述D2D共享传输信道,并对所述第一Discovery消息添加Discovery专用逻辑信道标识,其中,所述Discovery专用逻辑信道标识用于标识通过所述D2D共享传输信道传输的Discovery消息。
  23. 根据权利要求19或22所述的终端设备,其特征在于,所述处理器还用于将所述第一Discovery消息通过所述D2D共享传输信道传递到物理层,并在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过D2D通信数据的传输资源传输所述第一Discovery消息,其中,所述标志位用于指示D2D通信数据的传输资源是否承载有Discovery消息,所述第一Discovery消息为所述Discovery专用无线承载承载的Discovery消息或从所述ProSe协议层传递到所述媒体接入控制协议层的Discovery消息。
  24. 根据权利要求23所述的终端设备,其特征在于,所述处理器还具体用于将所述第一Discovery消息通过所述D2D共享传输信道传递到物理层,根据调度信息或可用的传输资源确定所述第一Discovery消息对应的D2D链路控制信息,在所述第一Discovery消息对应的D2D链路控制信息中设置标志位,通过所述D2D链路控制信息指示的传输资源传输所述第一Discovery消息;其中,所述第一Discovery消息对应的D2D链路控制信息用于指示承载所述第一Discovery消息的传输资源信息。
  25. 根据权利要求23所述的终端设备,其特征在于,所述处理器确定的D2D链路控制信息指示承载所述第一Discovery消息的传输资源信息以及D2D通信数据共同的D2D通信数据的传输资源信息,所述D2D通信数据的传输资源同时承载所述第一Discovery消息与D2D通信数据,所述第一Discovery消息与D2D通信数据通过逻辑信道标识进行区分。
  26. 根据权利要求23所述的终端设备,其特征在于,所述处理器确定的所述D2D链路控制信息指示承载所述第一Discovery消息的D2D通信数据的传输资源信息,所述D2D通信数据的传输资源只承载第一Discovery消息,其中,所述第一Discovery消息和D2D通信数据通过不同的传输资源进行区分。
  27. 根据权利要求22或23所述的终端设备,其特征在于,所述终端设备还包括接收器;所述接收器用于接收其他终端设备发送的第二Discovery消息;
    所述处理器用于确定所述第二Discovery消息是否包含所述Discovery专用逻辑信道标识和/或所述标志位的值是否为预设值,以确定所述第二Discovery消息是否来自D2D共享传输信道;
    所述处理器用于当所述第二Discovery消息来自D2D共享传输信道时,所述终端设备根据传输所述第一Discovery的机制对所述第二Discovery消息进行处理。
PCT/CN2015/090126 2015-09-21 2015-09-21 一种数据传输方法及装置 WO2017049432A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2015/090126 WO2017049432A1 (zh) 2015-09-21 2015-09-21 一种数据传输方法及装置
CN201580074040.3A CN107211404B (zh) 2015-09-21 2015-09-21 一种数据传输方法及装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/090126 WO2017049432A1 (zh) 2015-09-21 2015-09-21 一种数据传输方法及装置

Publications (1)

Publication Number Publication Date
WO2017049432A1 true WO2017049432A1 (zh) 2017-03-30

Family

ID=58385502

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/090126 WO2017049432A1 (zh) 2015-09-21 2015-09-21 一种数据传输方法及装置

Country Status (2)

Country Link
CN (1) CN107211404B (zh)
WO (1) WO2017049432A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112469023A (zh) * 2019-09-06 2021-03-09 维沃移动通信有限公司 一种消息传输方法和终端

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111432348B (zh) * 2019-01-09 2022-02-25 中国信息通信研究院 一种终端直通单播通信数据信道加扰方法、装置和系统
US11503610B2 (en) * 2019-04-02 2022-11-15 Google Llc User equipment coordination for interference cancelation
EP4152889A4 (en) * 2020-07-29 2023-07-12 Guangdong Oppo Mobile Telecommunications Corp., Ltd. RELAY AND TERMINAL DISCOVERY PROCESS

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140301285A1 (en) * 2012-11-16 2014-10-09 Electronics And Telecommunications Research Institute Method of transmission and reception for device to device discovery and apparatus thereof
CN104202740A (zh) * 2014-05-08 2014-12-10 中兴通讯股份有限公司 通信数据发送方法、装置及用户设备
CN104469961A (zh) * 2013-09-25 2015-03-25 中兴通讯股份有限公司 一种设备到设备的通信方法、设备和系统
CN104768122A (zh) * 2015-03-16 2015-07-08 深圳酷派技术有限公司 基于终端直连通信的数据共享方法、装置和终端

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2498575A (en) * 2012-01-20 2013-07-24 Renesas Mobile Corp Device-to-device discovery resource allocation for multiple cells in a device-to-device discovery area
GB2501088B (en) * 2012-04-11 2014-11-12 Broadcom Corp Methods and apparatus for transmitting and/or controlling device-to-device discovery signals
KR20140042752A (ko) * 2012-09-28 2014-04-07 한국전자통신연구원 단말 간 디스커버리 방법 및 장치

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140301285A1 (en) * 2012-11-16 2014-10-09 Electronics And Telecommunications Research Institute Method of transmission and reception for device to device discovery and apparatus thereof
CN104469961A (zh) * 2013-09-25 2015-03-25 中兴通讯股份有限公司 一种设备到设备的通信方法、设备和系统
CN104202740A (zh) * 2014-05-08 2014-12-10 中兴通讯股份有限公司 通信数据发送方法、装置及用户设备
CN104768122A (zh) * 2015-03-16 2015-07-08 深圳酷派技术有限公司 基于终端直连通信的数据共享方法、装置和终端

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112469023A (zh) * 2019-09-06 2021-03-09 维沃移动通信有限公司 一种消息传输方法和终端
CN112469023B (zh) * 2019-09-06 2023-06-06 维沃移动通信有限公司 一种消息传输方法和终端

Also Published As

Publication number Publication date
CN107211404B (zh) 2020-04-28
CN107211404A (zh) 2017-09-26

Similar Documents

Publication Publication Date Title
WO2016006969A1 (en) Inter-menb handover method and device in a small cell system
WO2019194592A1 (en) Method for supporting handover and corresponding base station and network node
WO2015002447A1 (en) Apparatus and method for switching between default path and direct path in wireless communication system
WO2015194890A1 (en) Method and apparatus for establishing user plane bearer
WO2017119723A1 (en) A method for ue context and ue connection resume
WO2017222344A1 (en) Data transmission supporting method and apparatus
WO2011147358A1 (zh) 机器类型通讯设备的业务控制方法和相关装置及系统
WO2013019035A2 (en) Apparatus and method for supporting handover
WO2020091533A1 (en) Method for transmitting control signaling in relay network, configuration method and device
WO2021194163A1 (ko) Upf 서비스 기반 packet delay status event exposure service 방법 및 장치
WO2019050349A1 (ko) 무선 통신 시스템에서 데이터를 송수신하는 전자 장치 및 이를 위한 방법
WO2014148836A2 (en) Apparatus and method for acquiring synchronization in cooperative communication system
WO2015037909A1 (ko) 통신 시스템에서 푸쉬 서비스 제공을 위한 방법 및 장치
WO2015137637A1 (en) Method for supporting proximity-based service configuring for ue
WO2014047816A1 (zh) 下行数据传输方法、基站及用户设备
WO2019127115A1 (zh) 传输数据的方法、终端设备和网络设备
WO2016137306A1 (ko) 이동 통신 시스템에서 scell의 동적 제어 방법 및 장치
WO2017049432A1 (zh) 一种数据传输方法及装置
WO2021060904A1 (ko) 무선 통신 시스템에서 통신을 수행하는 방법 및 장치
WO2014185725A1 (en) Apparatus and method for allocating resources in cooperative communication system
WO2011136619A2 (en) Apparatus and method of user equipment relocation
WO2021150053A1 (en) Method and device for transmitting data in wireless communication system
WO2015100537A1 (zh) 传输装置、用户面节点和控制面节点及数据传输方法
WO2023055150A1 (en) Communication method and apparatus for open radio access network
WO2012005490A2 (en) System and method for switching mobile station identification in wireless communication system

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: 15904320

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: 15904320

Country of ref document: EP

Kind code of ref document: A1