CN107211404B - Data transmission method and device - Google Patents

Data transmission method and device Download PDF

Info

Publication number
CN107211404B
CN107211404B CN201580074040.3A CN201580074040A CN107211404B CN 107211404 B CN107211404 B CN 107211404B CN 201580074040 A CN201580074040 A CN 201580074040A CN 107211404 B CN107211404 B CN 107211404B
Authority
CN
China
Prior art keywords
discovery message
discovery
protocol layer
message
communication data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201580074040.3A
Other languages
Chinese (zh)
Other versions
CN107211404A (en
Inventor
肖潇
张力学
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN107211404A publication Critical patent/CN107211404A/en
Application granted granted Critical
Publication of CN107211404B publication Critical patent/CN107211404B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

Abstract

The application discloses a data transmission method and device. The data transmission method comprises the following steps: the terminal equipment establishes a mapping relation from a device-to-device proximity service (D2D) ProSe protocol layer to a D2D shared transmission channel; the terminal equipment determines whether the bit number of a first Discovery message generated by the ProSe protocol layer is greater than a preset threshold value; when the bit number of the first Discovery message is greater than a preset threshold value, mapping the first Discovery message to the D2D shared transmission channel, and transmitting the first Discovery message through the D2D shared transmission channel; or when the bit number of the first Discovery message is less than or equal to the preset threshold, mapping the first Discovery message to a D2D Discovery transmission channel. According to the scheme, the Discovery messages with different bit numbers can be flexibly transmitted, the effectiveness of data transmission is improved, and the situation that packet loss is caused because the bit number of the Discovery message is larger than the fixed bit number is prevented.

Description

Data transmission method and device
[ technical field ] A method for producing a semiconductor device
The present application relates to the field of communication networks, and in particular, to a data transmission method and apparatus.
[ background of the invention ]
Device to Device (D2D) communication technology is a technology that allows direct communication between User Equipment (UEs) using a radio link under control of a cellular system.
Currently, the mode of Long Term Evolution (LTE) based user equipment communicating directly through D2D includes: a transmission mode through a discovery channel (generally referred to as a D2D discovery mode), and a transmission mode through a D2D data channel (generally referred to as a D2D direct communication mode). The LTE system allocates transmission resources for direct D2D Discovery and D2D communication to users through broadcast messages or dedicated signaling, and performs D2D communication in corresponding modes.
However, currently, the D2D Discovery message in the LTE-based D2D communication only allows transmission through the D2D Discovery transport channel, and the D2D Discovery transport channel can only transmit a Discovery message with a fixed bit number; when the bit number of the Discovery message is greater than the fixed bit number, normal transmission cannot be performed, which may cause data packet loss and reduce communication reliability.
[ summary of the invention ]
The technical problem mainly solved by the application is to provide a data transmission method and device, which can flexibly transmit Discovery messages with different bit numbers and improve the reliability of data transmission.
In order to solve the above problem, a first aspect of the present application provides a data transmission method, including: the terminal equipment establishes a mapping relation from a device-to-device proximity service (D2D) ProSe protocol layer to a D2D shared transmission channel; the terminal equipment determines whether the bit number of a first Discovery message generated by the ProSe protocol layer is greater than a preset threshold value; when the bit number of the first Discovery message is greater than a preset threshold value, mapping the first Discovery message to the D2D shared transmission channel, and transmitting the first Discovery message through the D2D shared transmission channel; or when the bit number of the first Discovery message is less than or equal to the preset threshold, mapping the first Discovery message to a D2D Discovery transmission channel.
With reference to the first aspect, in a first possible implementation manner of the first aspect of the present application, the step of the terminal device establishing a mapping relationship from a ProSe protocol layer to a D2D shared transport channel includes: the terminal equipment adds a Discovery special radio bearer on a packet data convergence protocol layer, establishes a mapping relation from a ProSe protocol layer to the Discovery special radio bearer, wherein the Discovery special radio bearer is used for bearing Discovery messages, the Discovery messages borne by the Discovery special radio bearer are mapped to a Discovery special logic channel and are identified through a Discovery special logic channel identifier, the Discovery messages of the Discovery special logic channel identifier are transmitted through a D2D shared transmission channel, the Discovery special radio bearer corresponds to the Discovery special logic channel, and the Discovery special logic channel corresponds to the Discovery special logic channel identifier.
With reference to the first aspect, in a second possible implementation manner of the first aspect of the present application, the step of the terminal device establishing a mapping relationship from a ProSe protocol layer to a D2D service logical channel includes: the terminal device establishes a mapping relation from a ProSe protocol layer to a D2D shared transmission channel on a media access control protocol layer.
With reference to the first or second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect of the present application, 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 transmission channel, where the step of transmitting the first Discovery message through the D2D shared transmission channel includes: when the bit number of the first Discovery message is greater than a preset threshold, the terminal device transmits the first Discovery message to the packet data convergence protocol layer, and maps the first Discovery message to the Discovery dedicated radio bearer; or passing the first Discovery message to a media access control protocol layer; the terminal device maps the first Discovery message to the D2D shared transmission 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 Discovery message transmitted through the D2D shared transmission channel.
With reference to the first aspect or the third possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect of the present application, after the step of mapping the first Discovery message to the D2D shared transmission channel, the method further includes: the terminal device transmits the first Discovery message to a physical layer through the D2D shared transmission channel, sets a flag bit in D2D link control information corresponding to the first Discovery message, and transmits the first Discovery message through a transmission resource of D2D communication data, where the flag bit is used to indicate whether the transmission resource of the D2D communication data carries a Discovery message, and the Discovery message is a Discovery message carried by the first Discovery dedicated radio bearer or a Discovery message transmitted from the ProSe protocol layer to the mac protocol layer.
With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect of the present application, setting a flag bit in D2D link control information corresponding to the first Discovery message, and transmitting the first Discovery message through a transmission resource of D2D communication data includes: the terminal device determines, according to scheduling information or available transmission resources, D2D link control information corresponding to the first data packet, where the D2D link control information corresponding to the first Discovery message is used to indicate transmission resource information carrying the first Discovery message; and the terminal equipment sets a flag bit in the D2D link control information corresponding to the first Discovery message, and transmits the first Discovery message through the transmission resource indicated by the D2D link control information.
With reference to the fourth possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect of the present application, the D2D link control information indicates to carry transmission resource information of the first Discovery message and transmission resource information of D2D communication data common to D2D communication data, the transmission resource of the D2D communication data carries the first Discovery message and the D2D communication data simultaneously, and the first Discovery message and the D2D communication data are distinguished by logical channel identification.
With reference to the fourth possible implementation manner of the first aspect, in a seventh possible implementation manner of the first aspect of the present application, the D2D link control information indicates transmission resource information of D2D communication data carrying the first Discovery message, and 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.
With reference to the third or fourth possible implementation manner of the first aspect, in an eighth possible implementation manner of the first aspect of the present application, the method further includes: the terminal equipment receives second Discovery messages sent by other terminal equipment; the terminal device determines whether the second Discovery message contains the Discovery dedicated logical channel identifier and/or whether the value of the flag bit is a preset value, so as to determine whether the second Discovery message comes from a D2D shared transmission channel; and when the second Discovery message comes from a D2D shared transmission channel, the terminal device processes the second Discovery message according to a mechanism for transmitting the first Discovery.
In order to solve the above problem, a second aspect of the present application provides a data transmission apparatus, including an establishing module, a determining module, and a mapping module; the establishing module is used for establishing a mapping relation from a device-to-device proximity service (D2D) ProSe protocol layer to a D2D shared transmission channel; the determining module is configured to determine whether a bit number of a first Discovery message generated by the ProSe protocol layer is greater than a preset threshold; the mapping module is configured to map the first Discovery message to the D2D shared transmission channel and transmit the first Discovery message through the D2D shared transmission channel when the determining module determines that the number of bits of the first Discovery message is greater than a preset threshold; or when the determining module determines that the bit number of the first Discovery message is less than or equal to the preset threshold, mapping the first Discovery message to a D2D Discovery transmission channel.
With reference to the second aspect, in a first possible implementation manner of the second aspect of the present application, the establishing module is specifically configured to add a Discovery dedicated radio bearer in a packet data convergence protocol layer, and establish a mapping relationship between a ProSe protocol layer and the Discovery dedicated radio bearer, where the Discovery dedicated radio bearer is used to carry a Discovery message, the Discovery message of the Discovery dedicated radio bearer is mapped to a Discovery dedicated logical channel and identified by a 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, and the Discovery dedicated logical channel corresponds to the Discovery dedicated logical channel identifier.
With reference to the second aspect, in a second possible implementation manner of the second aspect of the present application, the establishing module is specifically configured to establish, at a medium access control protocol layer, a mapping relationship between a ProSe protocol layer and a D2D shared transport channel.
With reference to the first or the second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect of the present application, 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, transfer the first Discovery message to the packet data convergence protocol layer, map the first Discovery message to the Discovery dedicated radio bearer, 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 through 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, deliver the first Discovery message to a media access control protocol layer, 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 the Discovery message transmitted through the D2D shared transport channel.
With reference to the second aspect or the third possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect of the present application, the apparatus further includes a control module, where the control module is configured to transfer the first Discovery message to a physical layer through the D2D shared transmission channel, set a flag in D2D link control information corresponding to the first Discovery message, and transmit the first Discovery message through a transmission resource of D2D communication data, where the flag is used to indicate whether the transmission resource of D2D communication data carries the Discovery message, and the first Discovery message is a Discovery message carried by the Discovery dedicated radio bearer or a Discovery message transferred from the ProSe protocol layer to the media access control protocol layer.
With reference to the fourth possible implementation manner of the second aspect, in a fifth possible implementation manner of the second aspect of the present application, the control module is specifically configured to transmit the first Discovery message to a physical layer through the D2D shared transmission channel, determine, according to scheduling information or available transmission resources, D2D link control information corresponding to the first Discovery message, set a flag bit in the D2D link control information corresponding to the first Discovery message, and transmit the first Discovery message through the transmission resources indicated by the D2D link control information; wherein the link control information of D2D corresponding to the first Discovery message is used to indicate transmission resource information carrying the first Discovery message.
With reference to the fourth possible implementation manner of the second aspect, in a sixth possible implementation manner of the second aspect of the present application, the D2D link control information determined by the control module indicates to carry transmission resource information of the first Discovery message and transmission resource information of D2D communication data common to D2D communication data, the transmission resource of the D2D communication data carries the first Discovery message and the D2D communication data at the same time, and the first Discovery message and the D2D communication data are distinguished by logical channel identifiers.
With reference to the fourth possible implementation manner of the second aspect, in a seventh possible implementation manner of the second aspect of the present application, the D2D link control information determined by the control module indicates transmission resource information of D2D communication data carrying the first Discovery message, and the transmission resource of 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.
With reference to the third or fourth possible implementation manner of the second aspect, in an eighth possible implementation manner of the second aspect of the present application, the method further includes: the device also comprises a receiving module; the receiving module is used for receiving a second Discovery message sent by other terminal equipment; the determining module is further configured to determine whether the second Discovery message received by the receiving module includes the Discovery dedicated logical channel identifier and/or whether the value of the flag is a preset value, so as to determine whether the second Discovery message comes from a D2D shared transmission channel; the mapping module is further configured to, when the determining module determines that the second Discovery message comes from a D2D shared transmission channel, process the second Discovery message according to a mechanism for transmitting the first Discovery.
In order to solve the above problem, a third aspect of the present application provides a terminal device, including a memory and a processor; the memory is used for storing data; the processor is configured to establish a mapping relationship from a device-to-device proximity services D2D ProSe protocol layer to a D2D shared transport channel; the processor is configured to determine whether a bit number of a first Discovery message generated by the ProSe protocol layer is greater than a preset threshold; and when the bit number of the first Discovery message is greater than a preset threshold, mapping the first Discovery message to the D2D shared transmission channel, and transmitting the first Discovery message through the D2D shared transmission channel; or when the bit number of the first Discovery message is less than or equal to the preset threshold, mapping the first Discovery message to a D2D Discovery transmission channel.
With reference to the third aspect, in a first possible implementation manner of the third aspect of the present application, the processor is specifically configured to add a Discovery dedicated radio bearer in a packet data convergence protocol layer, and establish a mapping relationship between a ProSe protocol layer and the Discovery dedicated radio bearer, where the Discovery dedicated radio bearer is used to carry a Discovery message, the Discovery message of the Discovery dedicated radio bearer is mapped to a Discovery dedicated logical channel and identified by a 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, and the Discovery dedicated logical channel corresponds to the Discovery dedicated logical channel identifier.
With reference to the third aspect, in a second possible implementation manner of the third aspect of the present application, the processor is specifically configured to establish, at a medium access control protocol layer, a mapping relationship between a ProSe protocol layer and a D2D shared transport channel.
With reference to the first or second possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect of the present application, the processor is configured to, when the number of bits of the first Discovery message is greater than a preset threshold, pass the first Discovery message to the packet data convergence protocol layer, map the first Discovery message to the Discovery dedicated radio bearer, 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 through the D2D shared transport channel; or the processor 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 a media access control protocol layer, map the first Discovery message to the D2D shared transmission 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 the Discovery message transmitted through the D2D shared transmission channel.
With reference to the third aspect or the third possible implementation manner of the third aspect, in a fourth possible implementation manner of the third aspect of the present application, the processor is further configured to transmit the first Discovery message to a physical layer through the D2D shared transmission channel, set a flag bit in D2D link control information corresponding to the first Discovery message, and transmit the first Discovery message through a transmission resource of D2D communication data, where 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 carried by the Discovery dedicated radio bearer or a Discovery message passed from the ProSe protocol layer to the media access control protocol layer.
With reference to the fourth possible implementation manner of the third aspect, in a fifth possible implementation manner of the third aspect of the present application, the processor is further specifically configured to transmit the first Discovery message to a physical layer through the D2D shared transmission channel, determine, according to scheduling information or available transmission resources, D2D link control information corresponding to the first Discovery message, set a flag bit in the D2D link control information corresponding to the first Discovery message, and transmit the first Discovery message through the transmission resources indicated by the D2D link control information; wherein the link control information of D2D corresponding to the first Discovery message is used to indicate transmission resource information carrying the first Discovery message.
With reference to the fourth possible implementation manner of the third aspect, in a sixth possible implementation manner of the third aspect of the present application, the D2D link control information determined by the processor indicates that transmission resource information carrying the first Discovery message and transmission resource information carrying D2D communication data common to D2D communication data are carried, the transmission resource carrying the D2D communication data carries the first Discovery message and the D2D communication data at the same time, and the first Discovery message is distinguished from the D2D communication data by a logical channel identifier.
With reference to the fourth possible implementation manner of the third aspect, in a seventh possible implementation manner of the third aspect of the present application, the D2D link control information determined by the processor indicates transmission resource information of D2D communication data carrying the first Discovery message, and 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.
With reference to the third or fourth possible implementation manner of the third aspect, in an eighth possible implementation manner of the third aspect of the present application, the terminal device further includes a receiver; the receiver is used for receiving a second Discovery message sent by other terminal equipment; 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 is a preset value, so as to determine whether the second Discovery message comes from a D2D shared transmission channel; the processor is configured to, when the second Discovery message comes from a D2D shared transmission channel, process, by the terminal device, the second Discovery message according to a mechanism for transmitting the first Discovery.
In the above scheme, the terminal device establishes a mapping relationship from the ProSe protocol layer to the D2D shared transmission channel, and when the terminal device determines that the bit number of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold, maps the first Discovery message to the D2D shared transmission channel, otherwise, maps the first Discovery message to the D2DDiscovery transmission channel; the Discovery message with different bit numbers can be flexibly transmitted, the effectiveness of data transmission is improved, and the situation of packet loss caused by the fact that the bit number of the Discovery message is larger than the fixed bit number is prevented.
[ description of the drawings ]
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 diagram illustrating an embodiment of the present application for establishing a mapping relationship between ProSe protocol layers to D2D shared transport channels;
FIG. 4 is a flow chart of yet another embodiment of the data transmission method of the present application;
fig. 5 is a diagram of another embodiment of the present application for establishing a mapping relationship of ProSe protocol layers to D2D shared transport channels;
FIG. 6 is a schematic channel mapping diagram illustrating an embodiment of mapping Discovery messages to a D2D shared transport channel according to the present application;
FIG. 7 is a diagram of one embodiment of a shared transport channel MAC packet format according to application D2D;
FIG. 8 is a flow chart of yet another embodiment of the data transmission method of the present application;
FIG. 9 is a channel mapping diagram of another embodiment of mapping Discovery messages to a D2D shared transport channel according to the present application;
FIG. 10 is a schematic diagram illustrating an embodiment of the present application for distinguishing Discovery messages and D2D communication data of FIG. 8 using different physical resources;
FIG. 11 is a schematic structural diagram of an embodiment of a data transmission apparatus according to the present application;
FIG. 12 is a schematic structural diagram of another embodiment of a data transmission device according to the present application;
fig. 13 is a schematic structural diagram of an embodiment of a terminal device according to the present application.
[ detailed description ] embodiments
Such as current 2G, 3G communication systems and next generation communication systems, for example, Global System for Mobile communications (GSM, Global System for Mobile communications), Code Division Multiple Access (CDMA, Code Division Multiple Access) systems, Time Division Multiple Access (TDMA, Time Division Multiple Access) systems, Wideband Code Division Multiple Access (WCDMA, Wideband Code Division Multiple Access) systems, Frequency Division Multiple Access (FDMA, Frequency Division Multiple Access) systems, Orthogonal Frequency Division Multiple Access (OFDMA, Orthogonal Frequency-Division Multiple Access) systems, SC-FDMA (SC-FDMA) systems, General Packet Radio Service (GPRS, General Packet Radio Service) systems, Long Term Evolution (LTE, Long Term Evolution), and other types of communication systems.
Various aspects are described herein in connection with a wireless terminal device and/or a base station.
A wireless terminal may refer to a device that provides voice and/or data connectivity to a user, a handheld device having wireless connection capability, or other processing device connected to a wireless modem. Wireless terminals, which may be mobile terminals such as mobile telephones (or "cellular" telephones) and computers having mobile terminals, such as portable, pocket, hand-held, computer-included, or vehicle-mounted mobile devices, may communicate with one or more core networks via a Radio Access Network (e.g., RAN). For example, Personal Communication Service (PCS) phones, cordless phones, Session Initiation Protocol (SIP) phones, Wireless Local Loop (WLL) stations, Personal Digital Assistants (PDAs), and the like. A wireless Terminal may also be referred to as a system, a Subscriber Unit (Subscriber Unit), a Subscriber Station (Subscriber Station), a Mobile Station (Mobile), a Remote Station (RemoteStation), an Access Point (Access Point), a Remote Terminal (Remote Terminal), an Access Terminal (Access Terminal), a User Terminal (User Terminal), a User Agent (User Agent), a User Device (User Device), or a User Equipment (User Equipment).
A base station (e.g., access point) can refer to a device in an access network that communicates over the air-interface, through one or more sectors, with wireless terminals. The base station may be configured to interconvert received air frames and IP packets as a router between the wireless terminal and the rest of the access network, which may include an Internet Protocol (IP) network. The base station may also coordinate management of attributes for the air interface. For example, the base Station may be a Base Transceiver Station (BTS) in GSM or CDMA, a base Station (NodeB) in WCDMA, or an evolved Node B (eNB or e-NodeB) in LTE, and the present application is not limited thereto.
It should be noted that the core network node device provided by the present invention may be applied to different communication network systems, including but not limited to SAE (System Architecture evolution)/LTE (Long term evolution), UMTS (Universal Mobile Telecommunications System), CDMA (Code Division multiple Access), and the like. 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 a mobile Switching center msc (mobile Switching center), which is not limited herein. For example, for an SAE/LTE network, its 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 MSC and the radio access node device may be an RNC or nodeB. In the following, the cellular network is taken as an SAE/LTE network as an example, and other cellular networks can be implemented with reference to the following embodiments.
Additionally, the terms "system" and "network" are often used interchangeably herein. The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
The scheme of the embodiment of the invention is explained in detail in the following with the attached drawings of the specification.
In the following description, for purposes of explanation and not limitation, specific details are set forth such as particular system structures, interfaces, techniques, etc. in order to provide a thorough understanding of the present application.
Referring to fig. 1, fig. 1 is a flowchart illustrating a data transmission method according to an embodiment of the present application. The main execution body of this embodiment is a terminal device (UE), and the UE may be a mobile terminal device such as a mobile phone. Two UEs may communicate data directly. The data transmission method of the embodiment comprises the following steps:
s101: the terminal device establishes a mapping relationship from the device-to-device proximity service D2D ProSe protocol layer to the D2D shared transport channel.
The terminal device establishes a device-to-device proximity service D2D ProSe protocol layer to D2D Shared transport Channel (SL-SCH) mapping relationship to enable the terminal device to map Discovery messages generated by the ProSe protocol layer to the D2D Shared transport Channel. The D2D shared transport channel is in a Medium Access Control (MAC) layer.
The mapping relationship between the ProSe Protocol layer and the D2D shared transmission channel established by the terminal device may be a direct mapping relationship between the ProSe Protocol layer and the D2D shared transmission channel of the MAC layer, or a hardware interface or a software interface is established between a Packet Data Convergence Protocol (PDCP) layer or a Radio Link Control (RLC) layer and the ProSe Protocol layer, and the mapping relationship between the ProSe Protocol layer and the D2D shared transmission channel of the MAC layer is established through the PDCP layer or the RLC layer, which is not limited herein.
When the terminal device transmits D2D communication data, the processing is performed according to the processing flow in the related art.
When the terminal device sends the Discovery message generated by the ProSe protocol layer, steps S102 to S104 are executed.
S102: determining whether the bit number of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold value.
When the terminal device communicates with other terminal devices and sends the first Discovery message to other terminal devices, the terminal device determines whether the bit number 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 is a fixed number of bits of a Discovery message carried by a D2D Discovery transport Channel (SL-DCH). The preset threshold may be 232 bits, but is not limited thereto, and may also be set to other values, which are not limited herein.
The D2D Discovery transport channel can only carry the Discovery message with the bit number less than or equal to the preset threshold, and when the bit number of the Discovery message is greater than the preset threshold, the D2D Discovery transport channel cannot carry the Discovery message.
And when the bit number of the first Discovery message generated by the ProSe protocol layer of the terminal device is greater than the preset threshold, executing step S103.
And when the bit number of the first Discovery message generated by the ProSe protocol layer of the terminal device is less than or equal to the preset threshold, executing step S104.
S103: when the bit number of the first Discovery message is greater than a preset threshold value, mapping the first Discovery message to the D2D shared transmission channel, and transmitting the first Discovery message through the D2D shared transmission channel.
When the bit number of the first Discovery message generated by the ProSe protocol layer of the terminal equipment is larger than a preset threshold value, the terminal equipment maps the first Discovery message from the ProSe protocol layer to the D2D shared transmission channel of the MAC layer according to the mapping relation from the ProSe protocol layer to the D2D shared transmission channel of the MAC layer.
The first Discovery message is transmitted to a Physical (PHY) layer through a D2D shared transport channel, and is transmitted to other terminal devices through a transport resource available to the PHY layer.
S104: and when the bit number of the first Discovery message is less than or equal to the preset threshold, mapping the first Discovery message to a D2DDiscovery transmission channel.
And when the bit number of the first Discovery message generated by the ProSe protocol layer of the terminal equipment is less than or equal to a preset threshold value, the terminal equipment maps the first Discovery message from the ProSe protocol layer to a D2DDiscovery transmission channel of the MAC layer.
The terminal device transmits the first Discovery message to a Physical (PHY) layer through a D2DDiscovery transmission channel, and transmits the first Discovery message to other terminal devices through a transmission resource available to the PHY layer.
In the scheme, the terminal device establishes a mapping relationship from the ProSe protocol layer to the D2D shared transmission channel, and when the terminal device determines that the bit number of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold, maps the first Discovery message to the D2D shared transmission channel, otherwise, maps the first Discovery message to the D2DDiscovery transmission channel; the Discovery message with different bit numbers can be flexibly transmitted, the effectiveness of data transmission is improved, and the situation of packet loss caused by the fact that the bit number of the Discovery message is larger than the fixed bit number is prevented.
Referring to fig. 2, fig. 2 is a flowchart illustrating a data transmission method according to another embodiment of the present application. The main execution body of this embodiment is a terminal device (User Equipment, UE), and the UE may be a mobile terminal device such as a mobile phone. Two UEs may communicate data directly. The data transmission method of the embodiment comprises the following steps:
s201: the terminal equipment adds Discovery special wireless load in a grouped data convergence protocol layer and establishes a mapping relation from a ProSe protocol layer to the Discovery special wireless load.
The terminal equipment adds Discovery special radio bearer on a packet data convergence protocol layer PDCP layer, and establishes a mapping relation from a ProSe protocol layer to the Discovery special radio bearer, thereby establishing a mapping relation from the ProSe protocol layer to a D2D shared transmission channel. The terminal equipment also configures a Discovery dedicated logical channel for the Discovery dedicated radio bearer.
Wherein, the Discovery dedicated radio bearer is used for bearing Discovery messages. 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, and the Discovery message identified by the Discovery dedicated logical channel identifier is transmitted through the D2D shared transmission channel. The Discovery dedicated radio bearer corresponds to a Discovery dedicated logical channel, and the Discovery dedicated logical channel corresponds to a Discovery dedicated logical channel identifier.
For example, referring to fig. 3, fig. 3 is a schematic diagram illustrating an embodiment of establishing a mapping relationship from a ProSe protocol layer to a D2D common transport channel.
The terminal device adds a Discovery dedicated radio bearer in a PDCP layer of a protocol stack of a D2D direct communication mode, and establishes a mapping relation from a ProSe protocol layer to the Discovery dedicated radio bearer, so that the terminal device can map a Discovery message from the ProSe protocol layer to the Discovery dedicated radio bearer of the PDCP layer, thereby establishing a mapping relation from the ProSe protocol layer to a D2D shared transmission channel in the MAC layer through the PDCP layer and the RLC layer.
The Discovery message of the Discovery dedicated radio bearer can be mapped to the Discovery dedicated logical channel and identified by the Discovery dedicated logical channel identifier, and the Discovery message of the Discovery dedicated logical channel identifier can be transmitted through the D2D shared transmission channel.
When the terminal device transmits D2D communication data, the processing is performed according to the processing flow in the related art. The D2D communication data generated at the application layer is processed by a TCP/UDP layer, an IP layer, a packet data convergence protocol PDCP layer, a radio link control protocol RLC layer, an MAC layer and a PHY layer in sequence.
When the terminal device sends the Discovery message generated by the ProSe protocol layer, steps S202 to S206 are executed.
When the terminal device receives data transmitted by another terminal device, steps S207 to S209 are executed.
S202: determining whether the bit number of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold value.
When the terminal device communicates with other terminal devices and sends the first Discovery message to other terminal devices, the terminal device determines whether the bit number 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 is a fixed number of bits of a Discovery message carried by a D2D Discovery transport Channel (SL-DCH).
The preset threshold may be less than or equal to the maximum number of bits that the SL-DCH can carry, and the preset threshold may be 232 bits, but is not limited thereto, and may also be set to other values, and is not limited herein. The maximum number of bits that the SL-DCH can carry is determined by the D2D direct communication resource available to the sending UE.
The D2D Discovery transmission channel can carry the Discovery message with the bit number less than or equal to the preset threshold, and when the bit number of the Discovery message is greater than the preset threshold, the D2D Discovery transmission channel cannot carry the Discovery message.
And when the bit number of the first Discovery message generated by the ProSe protocol layer of the terminal device is greater than the preset threshold, executing step S203.
And executing the step S206 when the bit number of the first Discovery message generated by the ProSe protocol layer of the terminal device is less than or equal to the preset threshold.
S203: and when the bit number of the first Discovery message is greater than a preset threshold value, the terminal device transmits the first Discovery message to the packet data convergence protocol layer, and maps the first Discovery message to the Discovery dedicated radio bearer.
And when the terminal equipment determines that the bit number of the first Discovery message is greater than a preset threshold value, transmitting the first Discovery message from the ProSe protocol layer to the PDCP layer, and mapping the Discovery message from the ProSe protocol layer to the Discovery special radio bearer of the PDCP layer according to the mapping relation from the ProSe protocol layer to the Discovery special radio bearer.
The PDCP layer processes the first Discovery message according to the D2D communication data processing method, and delivers the first Discovery message to the RLC layer for further processing, and then delivers the first Discovery message to the MAC layer, and maps the first Discovery message to a Discovery dedicated D2D service logical channel, where the dedicated logical channel corresponds to the Discovery dedicated radio bearer, and the Discovery dedicated D2D service logical channel corresponds to the Discovery dedicated logical channel identifier one to one.
After the first Discovery message is mapped to the Discovery dedicated radio bearer, the processing procedure in the PDCP layer and the RLC layer is the same as the processing procedure of the D2D communication data in the PDCP layer and the RLC layer in the prior art, which is not described herein again.
S204: the terminal device maps the first Discovery message to the D2D shared transmission 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 Discovery message transmitted through the D2D shared transmission channel.
After the terminal equipment delivers the first Discovery message to the MAC layer from the RLC layer, the first Discovery message is mapped to the D2D shared transport channel according to the mapping relation between the D2D service logical channel STCH and the D2D shared transport channel SL-SCH in the MAC layer.
After mapping the first Discovery message to the D2D shared transport Channel, the terminal device adds a data header to the first Discovery message in the D2D shared transport Channel, and adds a Discovery dedicated Logical Channel Identity (LCID) to the first Discovery message in the data header. 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 for enabling the other terminal device to recognize that the first Discovery message includes the Discovery message from the Discovery dedicated radio bearer through the Discovery dedicated logical channel identifier after receiving the first Discovery message, so as to perform further processing.
Since the logical channel identifier of the D2D communication data has a value of 1 to 10, the value of the Discovery dedicated logical channel identifier corresponding to the Discovery dedicated radio bearer may be any logical channel except that the identifier value is 1 to 10. For example, the value of the logical channel identifier for identifying the Discovery message is 11, but is not limited thereto.
S205: and the terminal equipment transmits the first Discovery message to a physical layer through the D2D shared transmission channel, sets a flag bit in D2D link control information corresponding to the first Discovery message, and transmits the first Discovery message through a transmission resource of D2D communication data.
After adding the Discovery dedicated logical channel identifier to the first Discovery message, the terminal device transfers the first Discovery message added with the Discovery dedicated logical channel identifier from the MAC layer to the physical layer through the D2D shared transport channel.
Then, the terminal device sets a flag bit in the link control Information (SCI) of D2D corresponding to the first Discovery message, and transmits the first Discovery message through the transmission resource of D2D communication data.
The flag is used to indicate whether a transmission resource of the D2D communication data carries a Discovery message, where the first Discovery message is a Discovery message of a Discovery dedicated radio bearer.
Wherein, setting a flag bit in the D2D link control information corresponding to the first Discovery message, and the step of transmitting the first Discovery message through the transmission resource of the D2D communication data includes: the terminal device determines, according to scheduling information or available transmission resources, D2D link control information corresponding to the first Discovery message, where the D2D link control information corresponding to the first Discovery message is used to indicate transmission resource information carrying the first Discovery message; and the terminal equipment sets a flag bit in the D2D link control information corresponding to the first Discovery message so as to transmit the first Discovery message through the transmission resource indicated by the D2D link control information.
The D2D link control information is used to indicate information of transmission resources carrying data to be transmitted, and the information of the transmission resources includes information of frequency, time, and the like of the transmission resources. At this time, the D2D link control information is used to indicate transmission resource information carrying the first Discovery message. The flag bit in the link control information of D2D may occupy 1 bit (bit) in the SC, and is used to indicate whether the first Discovery message includes a Discovery message carried by the Discovery dedicated radio bearer.
For example, if the value of the 1-bit flag bit of the SCI is set to "1", the first Discovery message carried by the transmission resource indicated by the SCI includes a Discovery message carried by a Discovery dedicated radio bearer; otherwise, the data packet carried by the transmission resource indicated by the SCI only includes other D2D communication data, and does not include the Discovery message carried by the Discovery dedicated radio bearer.
The terminal device transmits SCI of the first Discovery message through a link Control (SC) resource of D2D, and transmits the first Discovery message through an available D2D communication data resource according to the SCI, so as to send the first Discovery message to other terminal devices.
It is understood that due to the packet switching function of the RLC, the first Discovery message may be divided into a plurality of fragments to be transmitted respectively; therefore, the first Discovery message may be a single MAC packet or may be divided into a plurality of MAC packets. When the first Discovery message is divided into a plurality of data packets, the first Discovery message can be transmitted for a plurality of times respectively; the physical resources occupied by the data packets transmitted for multiple times may be the same or different, and are not limited herein. S206: and when the bit number of the first Discovery message is less than or equal to the preset threshold, mapping the first Discovery message to a D2D Discovery transmission channel.
When the terminal equipment determines that the bit number of the first Discovery message generated by the ProSe protocol layer is smaller than or equal to a preset threshold value, the terminal equipment transmits the first Discovery message from the ProSe protocol layer to the MAC layer, and maps the first Discovery message to the D2D Discovery transmission channel of the MAC layer according to the mapping relation between the ProSe protocol layer and the D2D Discovery transmission channel in the MAC layer.
S207: and the terminal equipment receives second Discovery messages sent by other terminal equipment.
And when other terminal equipment sends the second Discovery message to the terminal equipment, the terminal equipment receives the second Discovery message sent by other terminal equipment.
S208: the terminal device determines 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, so as to determine whether the second Discovery message comes from a D2D shared transmission channel.
The terminal device determines whether the received second Discovery message includes a Discovery dedicated logical channel identifier corresponding to the Discovery dedicated radio bearer and/or whether the value of the flag bit of the D2D link control information is a preset value, thereby determining whether the received second Discovery message comes from the D2D shared transmission channel.
Wherein the preset value of the flag bit of the D2D link control information corresponds to the value preset in step S205. When 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 bit of the D2D link control information is a preset value, it determines that the received second Discovery message comes from the D2D shared transmission channel, and the second Discovery message includes a Discovery message carried by the Discovery dedicated radio bearer.
When the received second Discovery message comes from D2D to share the transmission channel, step S209 is executed; otherwise, the processing is performed according to the method in the prior art.
S209: when the second Discovery message comes from the D2D shared transport channel, the second Discovery message is delivered from the media access control protocol layer to the packet data convergence protocol layer through the D2D shared transport channel, and is delivered from the packet data convergence protocol layer to the ProSe protocol layer for processing.
Since the process of sending the Discovery message and the process of receiving the Discovery message by the terminal device are two reverse processes, when the terminal device receives the second Discovery message, the process is performed by referring to the flow of the first Discovery message.
Specifically, the method comprises the following steps: and when the terminal equipment confirms that the received second Discovery message comes from the D2D shared transmission channel, the terminal equipment submits the received second Discovery message from the MAC layer to the RLC layer through the D2D shared transmission channel, then further submits the second Discovery message to the PDCP layer, and submits the received information from the PDCP layer to the ProSe protocol layer for processing according to the mapping relation between the Discovery special radio bearer of the PDCP layer and the ProSe protocol layer. Please refer to the description of steps S201 to S205, which is not described herein.
In the above scheme, the terminal device adds a Discovery dedicated radio bearer in a packet data convergence protocol layer, establishes a mapping relationship from a ProSe protocol layer to a D2D shared transmission channel, and maps a first Discovery message to a D2D shared transmission channel when the terminal device determines that the bit number of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold, otherwise, maps the first Discovery message to the D2DDiscovery transmission channel; the Discovery message with different bit numbers can be flexibly transmitted, the effectiveness of data transmission is improved, and the situation of packet loss caused by the fact that the bit number of the Discovery message is larger than the fixed bit number is prevented.
Referring to fig. 4, fig. 4 is a flowchart illustrating a data transmission method according to another embodiment of the present application. The main execution body of this embodiment is a terminal device (UE), and the UE may be a mobile terminal device such as a mobile phone. Two UEs may communicate data directly.
The present embodiment is different from the previous embodiment in steps S301, S303 to S305, and S307 to S309. The data transmission method of the embodiment comprises the following steps:
s301: the terminal device establishes a mapping relation from a ProSe protocol layer to a D2D shared transmission channel on a media access control protocol layer.
Referring to fig. 5, fig. 5 is a schematic diagram of another embodiment of establishing a mapping relationship from a ProSe protocol layer to a D2D common transport channel according to the present application. Fig. 5-1 is a schematic diagram of a protocol stack for establishing a mapping relationship from a ProSe protocol layer to a D2D shared transport channel, fig. 5-2 is a schematic diagram of a channel mapping for establishing a mapping relationship from a ProSe protocol layer to a D2D shared transport channel, and a mapping path 2 represents a mapping relationship from a ProSe protocol layer to a D2D shared transport channel.
The terminal device establishes a mapping relation from the ProSe protocol layer to the D2D shared transmission channel at the MAC layer so that the terminal device can map the Discovery message generated by the ProSe protocol layer to the D2D shared transmission channel in the MAC layer.
When the terminal device transmits D2D communication data, the processing is performed according to the processing flow in the related art.
When the terminal device sends the Discovery message generated by the ProSe protocol layer, steps S302 to S306 are executed.
When the terminal device receives data transmitted by another terminal device, steps S307 to S309 are executed.
S302: determining whether the bit number of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold value.
Step S302 is the same as step S202 in the previous embodiment, and please refer to the detailed description of step S202 in the previous embodiment, which is not repeated herein.
And when the bit number of the first Discovery message generated by the ProSe protocol layer of the terminal device is greater than the preset threshold, executing step S303.
And when the bit number of the first Discovery message generated by the ProSe protocol layer of the terminal device is less than or equal to the preset threshold, executing step S306.
S303: and when the bit number of the first Discovery message is larger than a preset threshold value, transmitting the first Discovery message to a media access control protocol layer.
And when the terminal equipment determines that the bit number of the first Discovery message is greater than a preset threshold value, transmitting the first Discovery message from the ProSe protocol layer to the MAC layer.
S304: the terminal device maps the first Discovery message to the D2D shared transmission 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 Discovery message transmitted through the D2D shared transmission channel.
After delivering the first Discovery message to the MAC layer, 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.
After mapping the first Discovery message to the D2D shared transport Channel, the terminal device adds a data header to the first Discovery message in the D2D shared transport Channel, and adds a Discovery dedicated Logical Channel Identity (LCID) to the first Discovery message in the data header.
The Discovery dedicated logical channel identification is used to identify that the first Discovery message is a Discovery message transmitted over the D2D shared transport channel. The Discovery message of the Discovery dedicated logical channel identifier is delivered to a medium access control protocol layer by a ProSe protocol layer and can be transmitted through a D2D shared transmission channel. The Discovery dedicated logical channel identifier is used for enabling other terminal devices to recognize that the first Discovery message is delivered to a media access control protocol layer by a ProSe protocol layer through the Discovery dedicated logical channel identifier after receiving the first Discovery message, and the first Discovery message is transmitted through a D2D shared transmission channel for further processing. Referring also to fig. 6, fig. 6 is a channel mapping example of mapping Discovery messages to D2D common transport channels according to an embodiment of the present invention.
As shown in fig. 6, the logical channel identifier of the D2D communication data has a value of 1 to 10 in general, and therefore, the value of the Discovery dedicated logical channel identifier corresponding to the Discovery dedicated radio bearer may be any logical channel except for the logical channel identifier having a value of 1 to 10. For example, the value of the logical channel identifier for identifying the Discovery message is 11, but is not limited thereto.
Fig. 7 is a schematic diagram of an embodiment of a shared transport channel MAC packet format according to D2D of the present application, as shown in fig. 7.
When the terminal device confirms that the available D2D communication data transmission resource carries the first data packet, and there is excess transmission resource to transmit D2D communication data, the terminal device sets the Discovery dedicated logical channel identifier and the logical channel identifier corresponding to the D2D communication data to be transmitted simultaneously in the same MAC data packet header, so that the terminal device can transmit the first Discovery message and the D2D communication data to be transmitted simultaneously through the same D2D communication data transmission resource.
When the terminal device confirms that no redundant transmission resource transmits the D2D communication data after the available D2D communication data transmission resource bears the first Discovery message, the terminal device sets a Discovery dedicated logical channel identifier and a logical channel identifier corresponding to the D2D communication data to be transmitted in different MAC data headers, so that the terminal device can transmit the first Discovery message and the D2D communication data to be transmitted simultaneously through different D2D communication data transmission resources. Wherein the first Discovery message and the D2D communication data are distinguished by different transmission resources.
S305: the terminal device transmits the first Discovery message to a physical layer through the D2D shared transmission channel, sets a flag bit in D2D link control information corresponding to the first Discovery message, and transmits the first Discovery message through a transmission resource of D2D communication data, where the flag bit is used to indicate whether the transmission resource of the D2D communication data carries a Discovery message, and the Discovery message is a Discovery message transmitted from the ProSe protocol layer to the mac protocol layer.
After adding the Discovery dedicated logical channel identifier to the first Discovery message, the terminal device transmits the first Discovery message added with the Discovery dedicated logical channel identifier to the physical layer through the D2D shared transmission channel.
Then, the terminal device sets a flag bit in the link control Information (SCI) of D2D corresponding to the first Discovery message, and transmits the first Discovery message through the transmission resource of D2D communication data.
The flag is used to indicate whether a transmission resource of D2D communication data carries a Discovery message, where the first Discovery message is a Discovery message that is transmitted from the ProSe protocol layer to the mac protocol layer.
Wherein, setting a flag bit in the D2D link control information corresponding to the first Discovery message, and the step of transmitting the first Discovery message through the transmission resource of the D2D communication data includes: the terminal device determines D2D link control information corresponding to the first Discovery message according to the scheduling information or the available transmission resources, wherein the D2D link control information corresponding to the first Discovery message is used for indicating transmission resource information for bearing the first Discovery message; the terminal device sets a flag bit in the D2D link control information corresponding to the first Discovery message, so as to transmit the first Discovery message through the transmission resource indicated by the D2D link control information. For example, after delivering the first data packet from the MAC layer to the physical layer through the D2D shared transmission channel, the terminal device determines the D2D link control information corresponding to the first Discovery message according to the scheduling information or the available transmission resource, and sets the value of the flag bit in the D2D link control information corresponding to the first Discovery message, so as to transmit the first Discovery message through the transmission resource indicated by the D2D link control information. And the link control information of D2D corresponding to the first Discovery message is used to indicate transmission resource information carrying the first Discovery message.
The method specifically comprises the following steps: and the terminal equipment acquires 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 to the first Discovery message.
After that, the value of the flag bit is set in the D2D link control information (SCI) of the first Discovery message. And the link control information of the D2D corresponding to the first Discovery message indicates transmission resource information carrying the first Discovery message and transmission resource information common to the D2D communication data. The D2D link control information is used to indicate information of transmission resources carrying data to be transmitted, where the information of the transmission resources includes information of frequency, time, and the like of the transmission resources.
At this time, the D2D link control information is used to indicate transmission resource information carrying the first Discovery message, or transmission resource information common to the first Discovery message and the D2D communication data. Wherein the first Discovery message is distinguished from the D2D communication data by a logical channel identifier.
The first Discovery message and the D2D communication data are distinguished by a flag bit in the D2D link control information and different transmission resources. It is understood that the first Discovery message may be a packet, which is transmitted at a time.
A flag bit in the D2D link control information may occupy 1 bit (bit) in the SC, and is used to indicate whether the first Discovery message contains a Discovery message passed from the ProSe protocol layer to the MAC layer.
For example, if the value of the 1-bit flag bit of the SCI is set to "1", the first Discovery message carried by the transmission resource indicated by the SCI includes a Discovery message passed from the ProSe protocol layer to the MAC layer; otherwise, the data packet carried by the transmission resource indicated by the SCI only contains other D2D communication data, and does not contain Discovery message passed from the ProSe protocol layer to the MAC layer.
S306: and when the bit number of the first Discovery message is less than or equal to the preset threshold, mapping the first Discovery message to a D2DDiscovery transmission channel.
Step S306 is the same as step S206 in the previous embodiment, and please refer to the detailed description of step S206 in the previous embodiment, which is not repeated herein.
S307: and the terminal equipment receives second Discovery messages sent by other terminal equipment.
Step S307 is the same as step S207 in the previous embodiment, and please refer to the detailed description of step S207 in the previous embodiment, which is not described herein again.
S308: the terminal device determines 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, so as to determine whether the second Discovery message comes from a D2D shared transmission channel.
The terminal device determines whether the received second Discovery message includes Discovery dedicated logical channel identification and/or whether the value of the flag bit of the D2D link control information is a preset value, thereby determining whether the received second Discovery message comes from the D2D shared transmission channel. Wherein the preset value of the flag bit of the D2D link control information corresponds to the value preset in step S305.
And when the terminal equipment determines that the second Discovery message contains Discovery dedicated logical channel identification or the value of the flag bit of the D2D link control information is a preset value, determining that the received second Discovery message comes from the D2D shared transmission channel.
When the received second Discovery message comes from D2D to share the transmission channel, execute step S309; otherwise, the processing is performed according to the method in the prior art.
S309: when the second Discovery message comes from the D2D shared transport channel, the second Discovery message is transferred from the medium access control protocol layer to the ProSe protocol layer for processing through the D2 ddidiscovery transport channel.
Since the process of sending the Discovery message and the process of receiving the Discovery message by the terminal device are two reverse processes, when the terminal device receives the second Discovery message, the process is performed by referring to the flow of the first Discovery message.
Specifically, the method comprises the following steps: and when the terminal equipment confirms that the received second Discovery message comes from the D2D shared transmission channel, the terminal equipment transmits the second Discovery message from the MAC layer to the ProSe protocol layer through the D2D shared transmission channel for processing. Please refer to the description of steps S301 to S305, which is not described herein.
In the scheme, the terminal device establishes a direct mapping relationship from the ProSe protocol layer to the D2D shared transmission channel on the MAC layer, and when the terminal device determines that the bit number of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold, maps the first Discovery message to the D2D shared transmission channel, otherwise, maps the first Discovery message to the D2DDiscovery transmission channel; the Discovery message with different bit numbers can be flexibly transmitted, the effectiveness of data transmission is improved, and the situation of packet loss caused by the fact that the bit number of the Discovery message is larger than the fixed bit number can be prevented.
Referring to fig. 8, fig. 8 is a flowchart illustrating a data transmission method according to another embodiment of the present application. The main execution body of this embodiment is a terminal device (UE), where the UE may be a mobile terminal device such as a mobile phone. Two UEs may communicate data directly.
Steps S401 to S403 in this embodiment are the same as steps S301 to S303 in the previous embodiment, and steps S406 and S407 in this embodiment are the same as steps S306 and S307 in the previous embodiment, respectively. The data transmission method of the embodiment comprises the following steps:
s401: the terminal device establishes a mapping relation from a ProSe protocol layer to a D2D shared transmission channel on a media access control protocol layer.
Step S401 is the same as step S301 in the previous embodiment, and please refer to the detailed description of step S301 in the previous embodiment, which is not repeated herein.
S402: determining whether the bit number of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold value.
Step S402 is the same as step S302 in the previous embodiment, and please refer to the detailed description of step S302 in the previous embodiment, which is not repeated herein.
S403: and when the bit number of the first Discovery message is larger than a preset threshold value, submitting the first Discovery message to a media access control protocol layer.
Step S403 is the same as step S303 in the previous embodiment, and please refer to the detailed description of step S303 in the previous embodiment, which is not described herein again.
S404: the terminal equipment maps the first Discovery message to the D2D shared transmission channel.
After delivering the first Discovery message to the MAC layer, 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.
A schematic diagram of mapping the first data packet to the D2D shared transport channel is shown in fig. 9. Fig. 9 is a schematic channel mapping diagram of another embodiment of mapping Discovery messages to D2D shared transport channels according to the present application.
In this embodiment, the first Discovery message mapped to the D2D shared transport channel uses the same logical channel identifier as the D2D communication data. As shown in FIG. 9, the values of the logical channel identifiers of the first Discovery message and the D2D communication data are both 1 ~ 10.
S405: the terminal device transmits the first Discovery message to a physical layer through the D2D shared transmission channel, sets a flag bit in D2D link control information corresponding to the first Discovery message, and transmits the first Discovery message through a transmission resource of D2D communication data, wherein the flag bit is used for indicating whether the transmission resource of the D2D communication data carries a Discovery message, and the Discovery message is transmitted from the ProSe protocol layer to the Discovery message of the media access control protocol layer.
The terminal device maps the first Discovery message to a D2D shared transmission channel, then transfers the first Discovery message from the MAC layer to the physical layer through the D2D shared transmission channel, determines D2D link control information corresponding to the first Discovery message according to scheduling information or available transmission resources, and sets a value of a flag bit in the D2D link control information corresponding to the first Discovery message, so as to transmit the first Discovery message through the transmission resources indicated in the D2D link control information. And the link control information of D2D corresponding to the first Discovery message is used to indicate transmission resource information carrying the first Discovery message.
Then, a flag bit is set in the link control information (SCI) of D2D corresponding to the first Discovery message.
The D2D link control information is used to indicate information of transmission resources carrying data to be transmitted, where the information of the transmission resources includes information of frequency, time, and the like of the transmission resources.
At this time, the link control information D2D corresponding to the first Discovery message is only used to indicate transmission resource information carrying 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 are transmitted separately. A flag bit in the link control information of D2D may occupy 1 bit (bit) in the SC, and is used to indicate whether the first Discovery message includes a second Discovery message carried by the D2D shared transport channel.
Referring to fig. 10, fig. 10 is a schematic diagram illustrating an embodiment of the present application for distinguishing Discovery messages and D2D communication data using different physical resources.
As shown in fig. 10, the terminal device uses different transmission resources to distinguish the first Discovery message from other D2D communication data, and uses different SCI resource transmissions to transmit corresponding SCIs respectively. Wherein, the 1-bit flag of the SCI is used to indicate whether the resource indicated by the corresponding SCI carries the first Discovery message.
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 a transmission resource carrying the first Discovery message; otherwise, the resource indicated by the SCI is a transmission resource corresponding to other D2D communication data.
The terminal device also transmits SCI of the D2D communication data through a D2D link Control (SC) resource and instructs the terminal device to transmit D2D communication data through an available D2D communication data resource according to SCI of the D2D communication data to transmit the D2D communication data to other terminal devices.
In addition, after the terminal device delivers the first Discovery message from the MAC layer to the physical layer through the D2D shared transmission channel, the terminal device may obtain the transmission resources of the first Discovery message and the D2D communication data and the corresponding SC resources through the scheduling information sent by the base station, respectively; the terminal device may also obtain transmission resources from the first Discovery message, the D2D communication data, and the SC resource corresponding to the first Discovery message, the D2D direct communication contention resource pool corresponding to the terminal device. The resource pool is a set of time frequency resources. The D2D contention resource pool is configured by LTE system broadcast or dedicated signaling, which is not described herein.
The base station scheduling information may include a 1-bit flag to distinguish the SC resource and whether the transmission resource allocated by the SCI corresponds to transmission of the first Discovery message or D2D communication data.
It is understood that the first Discovery message may be a packet, which is transmitted at a time.
In this embodiment, the terminal device sets a flag bit in the D2D link control information corresponding to the first Discovery message to distinguish the first Discovery message from the D2D communication data, and transmits the first Discovery message and the D2D communication data through different transmission resources.
S406: and when the bit number of the first Discovery message is not greater than the preset threshold, mapping the first Discovery message to a D2D Discovery transmission channel.
Step S406 is the same as step S306 in the previous embodiment, and please refer to the detailed description of step S306 in the previous embodiment, which is not repeated herein.
S407: and the terminal equipment receives second Discovery messages sent by other terminal equipment.
Step S407 is the same as step S307 in the previous embodiment, and please refer to the detailed description of step S307 in the previous embodiment, which is not described herein again.
S408: and the terminal equipment determines whether the value of the flag bit is a preset value or not so as to determine whether the second Discovery message comes from a D2D shared transmission channel or not.
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 comes from the D2D shared transmission channel. Wherein the preset value of the flag bit of the D2D link control information corresponds to the value preset in step S406.
And when the terminal equipment determines that the value of the flag bit of the D2D link control information contained in the second Discovery message is a preset value, determining that the received second Discovery message comes from the D2D shared transmission channel.
When the received second Discovery message comes from D2D to share the transmission channel, execute step S409; otherwise, the processing is performed according to the method in the prior art.
S409: and when the information comprises the second Discovery message, submitting the second Discovery message from the media access control protocol layer to the ProSe protocol layer for processing through the D2D Discovery transmission channel.
Since the process of sending the Discovery message and the process of receiving the Discovery message by the terminal device are two reverse processes, when the terminal device receives the second Discovery message, the process is performed by referring to the flow of the first Discovery message.
Specifically, the method comprises the following steps: and when the terminal equipment confirms that the received second Discovery message comes from the D2D shared transmission channel, the terminal equipment delivers the second Discovery message from the MAC layer to the ProSe protocol layer through the D2D shared transmission channel for processing. Please refer to the description of steps S401 to S405, which is not described herein.
In this embodiment, the flag bit of the SCI is set to distinguish the Discovery message and the D2D communication data through different transmission resources, so that a terminal device receiving the information can identify whether the current transmission resource corresponds to the Discovery message or the D2D communication data through the flag bit of the SCI.
In the scheme, the terminal device establishes a direct mapping relationship from the ProSe protocol layer to the D2D shared transmission channel on the MAC layer, and when the terminal device determines that the bit number of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold, maps the first Discovery message to the D2D shared transmission channel, otherwise, maps the first Discovery message to the D2DDiscovery transmission channel; the Discovery message with different bit numbers can be flexibly transmitted, the reliability of data transmission is improved, and the situation of packet loss caused by the fact that the bit number of the Discovery message is larger than the fixed bit number can be prevented.
Referring to fig. 11, fig. 11 is a schematic structural diagram of an embodiment of a data transmission device according to the present application. For details, please refer to fig. 1 and the related description of the embodiment corresponding to fig. 1, which are not repeated herein. The data transmission apparatus of the present embodiment includes an establishing module 1110, a determining module 1120, and a mapping module 1130.
The establishing module 1110 is configured to establish a mapping relationship from a device-to-device proximity service D2D ProSe protocol layer to a D2D shared transport channel. For example, the establishing module 1110 establishes a mapping relationship from the device-to-device proximity service D2D ProSe protocol layer to the D2D shared transport channel. The establishing module 1110 sends notification information to the determining module 1120 after establishing the mapping relationship of the ProSe protocol layer to the D2D shared transport channel.
The determining module 1120 is configured to receive the notification information sent by the determining module 1120, and determine whether the bit number 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 bit number 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, when the determining module 1120 determines that the bit number of the first Discovery message is greater than a preset threshold, map the first Discovery message to the D2D shared transmission channel, and transmit the first Discovery message through the D2D shared transmission channel; or, when the determining module 1120 determines that the bit number of the first Discovery message is less than or equal to the preset threshold, mapping the first Discovery message to a D2D Discovery transmission channel.
For example, the mapping module 1130 receives the determination result sent by the determining module 1120, when the determining module 1120 determines that the bit number of the first Discovery message is greater than a preset threshold, maps the first Discovery message to the D2D shared transmission channel, and transmits the first Discovery message through the D2D shared transmission channel; or, when the determining module 1120 determines that the bit number of the first Discovery message is less than or equal to the preset threshold, mapping the first Discovery message to a D2D Discovery transmission channel.
In the above scheme, the data transmission device, by establishing a mapping relationship from the ProSe protocol layer to the D2D shared transmission channel, when the terminal device determines that the bit number of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold, maps the first Discovery message to the D2D shared transmission channel, otherwise, maps the first Discovery message to the D2DDiscovery transmission channel; the Discovery message with different bit numbers can be flexibly transmitted, the effectiveness of data transmission is improved, and the situation of packet loss caused by the fact that the bit number of the Discovery message is larger than the fixed bit number is prevented.
Referring to fig. 12, fig. 12 is a schematic structural diagram of another embodiment of a data transmission device according to the present application. The modules included in the data transmission device of this embodiment are used to execute the steps in the embodiments corresponding to fig. 2, fig. 4, and fig. 8, please refer to fig. 2, fig. 4, fig. 8 and the related descriptions of the respective corresponding embodiments, which are not repeated herein. The data transmission apparatus of the present embodiment includes a creating 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 a packet data convergence protocol layer, and establish a mapping relationship from a ProSe protocol layer to the Discovery dedicated radio bearer, where the Discovery dedicated radio bearer is configured to carry a Discovery message, the Discovery message of the Discovery dedicated radio bearer is mapped to a Discovery dedicated logical channel and identified by a 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, and the Discovery dedicated logical channel corresponds to the Discovery dedicated logical channel identifier.
For example, the establishing module 1210 adds a Discovery dedicated radio bearer to a packet data convergence protocol layer, and establishes a mapping relationship from a ProSe protocol layer to the Discovery dedicated radio bearer, where the Discovery dedicated radio bearer is used to carry a Discovery message, the Discovery message of the Discovery dedicated radio bearer is mapped to a Discovery dedicated logical channel and identified by a 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, and 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 from a ProSe protocol layer to a D2D shared transport channel in a mac protocol layer. For example, the establishing module 1210 establishes a mapping relationship of the ProSe protocol layer to the D2D shared transport channel at the mac protocol layer.
The establishing module 1210 sends notification information to the determining module 1220 after establishing the mapping relationship of the ProSe protocol layer to 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 bit number 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 determining module 1220 transmits 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 bit number of the first Discovery message is greater than a preset threshold, pass the first Discovery message to the packet data convergence protocol layer, map the first Discovery message to the Discovery dedicated radio bearer, 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 the Discovery message transmitted through the D2D shared transport channel:
or the mapping module 1230 is specifically configured to, when the determining module 1220 determines that the bit number of the first Discovery message is greater than a preset threshold, deliver the first Discovery message to a media access control protocol layer, 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 the Discovery message transmitted through the D2D shared transport channel.
For example, the mapping module 1230 receives the determination result sent by the determining module 1220, when the determining module 1220 determines that the bit number of the first Discovery message is greater than the preset threshold, passes the first Discovery message to the packet data convergence protocol layer, maps the first Discovery message to the Discovery dedicated radio bearer, 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 Discovery message transmitted through the D2D shared transport channel;
or when the determining module 1220 determines that the bit number of the first Discovery message is greater than the preset threshold, the mapping module 1230 transmits the first Discovery message to a media access control protocol layer, maps the first Discovery message to the D2D shared transmission 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 Discovery message transmitted through the D2D shared transmission channel.
The mapping module 1230 is further configured to map the first Discovery message to a D2D Discovery transmission channel when the determining module 1220 determines that the bit number of the first Discovery message is less than or equal to the preset threshold.
For example, when the determining module 1220 determines that the bit number of the first Discovery message is less than or equal to the preset threshold, the mapping module 1230 maps the first Discovery message to the D2D Discovery transmission channel. The mapping module 1230 sends notification information to the control module 1240 after the mapping is completed.
The control module 1240 is configured to receive notification information sent by the mapping module 1230, transmit the first Discovery message to a physical layer through the D2D shared transmission channel, set a flag in D2D link control information corresponding to the first Discovery message, and transmit the first Discovery message through a transmission resource of D2D communication data, where the flag is used to indicate whether the transmission resource of the D2D communication data carries the Discovery message, and the Discovery message is a Discovery message carried by the Discovery dedicated radio bearer or a Discovery message carried from the ProSe protocol layer to the media access control protocol layer.
For example, the control module 1240 receives the notification information sent by the mapping module 1230, transmits the first Discovery message to the physical layer through the D2D shared transmission channel, sets a flag bit in the D2D link control information corresponding to the first Discovery message, and transmits the first Discovery message through the transmission resource of the D2D communication data, where the flag bit is used to indicate whether the transmission resource of the D2D communication data carries the Discovery message, and the first Discovery message is the Discovery message carried by the Discovery dedicated radio bearer or the Discovery message transmitted from the ProSe protocol layer to the mac protocol layer.
The control module 1240 is specifically configured to transmit the first Discovery message to a physical layer through the D2D shared transmission channel, determine, according to scheduling information or available transmission resources, D2D link control information corresponding to the first Discovery message, set a flag bit in the D2D link control information corresponding to the first Discovery message, and transmit the first Discovery message through the transmission resources indicated by the D2D link control information; wherein the link control information of D2D corresponding to the first Discovery message is used to indicate transmission resource information carrying 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 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 logical channel identifiers.
Wherein the D2D link control information determined by the control module 1240 indicates transmission resource information of D2D communication data carrying the first Discovery message, and the transmission resource of the D2D communication data carries only the first Discovery message, wherein the first Discovery message and the D2D communication data are distinguished by different transmission resources.
For example, the control module 1240 may deliver the first Discovery message to the physical layer through the D2D shared transmission channel, determine the D2D link control information corresponding to the first Discovery message according to the scheduling information or the available transmission resources, set a flag bit in the D2D link control information corresponding to the first Discovery message, and transmit the first Discovery message through the transmission resources indicated by the D2D link control information; wherein the link control information of D2D corresponding to the first Discovery message is used to indicate transmission resource information carrying 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 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 logical channel identifiers.
Wherein the D2D link control information determined by the control module 1240 indicates transmission resource information of D2D communication data carrying the first Discovery message, and the transmission resource of the D2D communication data carries only the first Discovery message, wherein the first Discovery message and the D2D communication data are distinguished by different transmission resources.
The receiving module 1250 is configured to receive the second Discovery message sent by the other terminal device. For example, the receiving module 1250 receives the second Discovery message sent by the other terminal device. The receiving module 1250 transmits 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 a preset value, so as to determine whether the second Discovery message comes from the D2D shared transmission channel. The determining 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 comes from the D2D shared transmission channel, process the second Discovery message according to a mechanism for transmitting the first Discovery message.
In the above scheme, the data transmission device, by establishing a mapping relationship from the ProSe protocol layer to the D2D shared transmission channel, when the terminal device determines that the bit number of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold, maps the first Discovery message to the D2D shared transmission channel, otherwise, maps the first Discovery message to the D2DDiscovery transmission channel; the Discovery message with different bit numbers can be flexibly transmitted, the effectiveness of data transmission is improved, and the situation of packet loss caused by the fact that the bit number of the Discovery message is larger than the fixed bit number is prevented.
Referring to fig. 13, fig. 13 is a schematic structural diagram of an embodiment of a terminal device according to the present application. The terminal equipment can be mobile terminal equipment such as a mobile phone. The terminal device of the embodiment includes: receiver 1310, processor 1320, transmitter 1330, read only memory 1340, random access memory 1350, and 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 Central Processing Unit (CPU). Processor 1320 may be an integrated circuit chip having signal processing capabilities. Processor 1320 may 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, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Transmitter 1330 is used to transmit information.
The memories may include a read-only memory 1340 and a random access memory 1350, and provide instructions and data to the processor 1320. The portion of memory may also include non-volatile random access memory (NVRAM).
The various components of the end device are coupled together by a bus 1360, which bus 1360 may include, in addition to data buses, power buses, control buses, status signal buses, and the like. For clarity of illustration, however, the various buses are labeled as bus 1360.
The memory stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof:
and (3) operating instructions: including various operational instructions for performing various operations.
Operating the system: including various system programs for implementing various basic services and for handling hardware-based tasks.
In an embodiment of the present invention, the processor 1320, by calling a memory-stored operation instruction (which may be stored in an operating system), performs the following operations:
the processor 1320 is configured to establish a mapping relationship from a device-to-device proximity service D2D ProSe protocol layer to a D2D shared transport channel;
processor 1320 is configured to determine whether a bit number of a first Discovery message generated by the ProSe protocol layer is greater than a preset threshold; and when the bit number of the first Discovery message is greater than a preset threshold, mapping the first Discovery message to the D2D shared transmission channel, and transmitting the first Discovery message through the D2D shared transmission channel; or when the bit number of the first Discovery message is less than or equal to the preset threshold, mapping the first Discovery message to a D2D Discovery transmission channel.
Optionally, the processor 1320 is specifically configured to add a Discovery dedicated radio bearer in a packet data convergence protocol layer, and establish a mapping relationship from a ProSe protocol layer to the Discovery dedicated radio bearer, where the Discovery dedicated radio bearer is used to carry a Discovery message, the Discovery message of 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 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, and the Discovery dedicated logical channel corresponds to the Discovery dedicated logical channel identifier.
Optionally, the processor 1320 is specifically configured to establish, at the mac protocol layer, a mapping relationship from the ProSe protocol layer to the D2D shared transport channel.
Optionally, 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, and map the first Discovery message to the Discovery dedicated radio bearer; or passing the first Discovery message to a media access control protocol layer;
processor 1320 is further specifically configured to map the first Discovery message to the D2D shared transmission 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 the Discovery message transmitted through the D2D shared transmission channel.
Optionally, the processor 1320 is further configured to deliver the first Discovery message to a physical layer through the D2D shared transmission channel, set a flag bit in the D2D link control information corresponding to the first Discovery message, and transmit the first Discovery message through a transmission resource of D2D communication data, where 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 carried by the Discovery dedicated radio bearer or a Discovery message delivered from the ProSe protocol layer to the media access control protocol layer.
Optionally, the processor 1320 is further specifically configured to deliver the first Discovery message to a physical layer through the D2D shared transmission channel, determine, according to scheduling information or available transmission resources, D2D link control information corresponding to the first Discovery message, set a flag in D2D link control information corresponding to the first Discovery message, and transmit the first Discovery message through the transmission resources indicated by the D2D link control information; wherein the link control information of D2D corresponding to the first Discovery message is used to indicate transmission resource information carrying the first Discovery message.
Optionally, the D2D link control information determined by the processor 1320 indicates transmission resource information carrying the first Discovery message and transmission resource information of D2D communication data common to D2D communication data, the transmission resource of D2D communication data simultaneously carries the first Discovery message and the D2D communication data, and the first Discovery message is distinguished from the D2D communication data by a logical channel identifier.
Optionally, the D2D link control information determined by the processor 1320 indicates transmission resource information of D2D communication data carrying the first Discovery message, and 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.
Optionally, the processor 1320 is further configured to control the receiver 1310 to receive a second Discovery message sent by another terminal device;
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 is a preset value, so as to determine whether the second Discovery message comes from D2D shared transmission channel;
processor 1320 is further configured to, when the second Discovery message comes from D2D sharing a transmission channel, process, by the terminal device, the second Discovery message according to a mechanism for transmitting the first Discovery message.
In the scheme, the terminal device establishes a mapping relationship from the ProSe protocol layer to the D2D shared transmission channel, and when the terminal device determines that the bit number of the first Discovery message generated by the ProSe protocol layer is greater than a preset threshold, maps the first Discovery message to the D2D shared transmission channel, otherwise, maps the first Discovery message to the D2DDiscovery transmission channel; the Discovery message with different bit numbers can be flexibly transmitted, the effectiveness of data transmission is improved, and the situation of packet loss caused by the fact that the bit number of the Discovery message is larger than the fixed bit number is prevented.
In the description above, for purposes of explanation and not limitation, specific details are set forth such as particular system structures, interfaces, techniques, etc. in order to provide a thorough understanding of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.

Claims (27)

1. A method of data transmission, the method comprising:
the terminal equipment establishes a mapping relation from a device-to-device proximity service (D2D) ProSe protocol layer to a D2D shared transmission channel;
the terminal equipment determines whether the bit number of a first Discovery message generated by the ProSe protocol layer is greater than a preset threshold value;
when the bit number of the first Discovery message is greater than a preset threshold value, mapping the first Discovery message to the D2D shared transmission channel, and transmitting the first Discovery message through the D2D shared transmission channel; or
And when the bit number of the first Discovery message is less than or equal to the preset threshold, mapping the first Discovery message to a D2D Discovery transmission channel.
2. The method according to claim 1, wherein the step of the terminal device establishing the mapping relationship of the ProSe protocol layer to the D2D shared transport channel comprises:
the terminal equipment adds a Discovery special radio bearer on a packet data convergence protocol layer, establishes a mapping relation from a ProSe protocol layer to the Discovery special radio bearer, wherein the Discovery special radio bearer is used for bearing Discovery messages, the Discovery messages borne by the Discovery special radio bearer are mapped to a Discovery special logic channel and are identified through a Discovery special logic channel identifier, the Discovery messages of the Discovery special logic channel identifier are transmitted through a D2D shared transmission channel, the Discovery special radio bearer corresponds to the Discovery special logic channel, and the Discovery special logic channel corresponds to the Discovery special logic channel identifier.
3. The method according to claim 1, wherein the step of the terminal device establishing the mapping relationship of the ProSe protocol layer to the D2D service logical channel comprises:
the terminal device establishes a mapping relation from a ProSe protocol layer to a D2D shared transmission channel on a media access control protocol layer.
4. The method of claim 1, wherein 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 transmission channel, and wherein transmitting the first Discovery message over the D2D shared transmission channel comprises:
when the bit number of the first Discovery message is larger than a preset threshold value, the terminal device transmits the first Discovery message to a packet data convergence protocol layer, and maps the first Discovery message to the Discovery dedicated radio bearer; or passing the first Discovery message to a media access control protocol layer;
the terminal device maps the first Discovery message to the D2D shared transmission 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 Discovery message transmitted through the D2D shared transmission channel.
5. The method of claim 1, wherein after the step of mapping the first Discovery message to the D2D shared transport channel, the method further comprises:
the terminal device transmits the first Discovery message to a physical layer through the D2D shared transmission channel, sets a flag bit in D2D link control information corresponding to the first Discovery message, and transmits the first Discovery message through a transmission resource of D2D communication data, where the flag bit is used to indicate whether the transmission resource of the D2D communication data carries the Discovery message, and the Discovery message is a Discovery message carried by the first Discovery dedicated radio bearer or a Discovery message transmitted from the ProSe protocol layer to a media access control protocol layer.
6. The method of claim 5, wherein a flag bit is set in the D2D link control information corresponding to the first Discovery message, and wherein transmitting the first Discovery message over the transmission resource of D2D communication data comprises:
the terminal device determines, according to scheduling information or available transmission resources, D2D link control information corresponding to the first Discovery message, where the D2D link control information corresponding to the first Discovery message is used to indicate transmission resource information carrying the first Discovery message;
and the terminal equipment sets a flag bit in the D2D link control information corresponding to the first Discovery message, and transmits the first Discovery message through the transmission resource indicated by the D2D link control information.
7. The method of claim 5, wherein the D2D link control information indicates transmission resource information for carrying the first Discovery message and transmission resource information for D2D communication data common to D2D communication data, wherein the transmission resource for the D2D communication data simultaneously carries the first Discovery message and the D2D communication data, and wherein the first Discovery message is distinguished from the D2D communication data by a logical channel identifier.
8. The method of claim 5, wherein the D2D link control information indicates transmission resource information of D2D communication data carrying the first Discovery message, wherein the transmission resource of the D2D communication data carries only the first Discovery message, and wherein the first Discovery message and the D2D communication data are distinguished by different transmission resources.
9. The method according to claim 4 or 5, characterized in that the method further comprises:
the terminal equipment receives second Discovery messages sent by other terminal equipment;
the terminal device determines whether the second Discovery message includes the Discovery dedicated logical channel identifier and/or whether the value of the flag bit in the D2D link control information corresponding to the first Discovery message is a preset value, so as to determine whether the second Discovery message comes from a D2D shared transmission channel;
and when the second Discovery message comes from a D2D shared transmission channel, the terminal device processes the second Discovery message according to a mechanism for transmitting the first Discovery.
10. A data transmission apparatus, characterized in that the apparatus comprises: the device comprises an establishing module, a determining module and a mapping module;
the establishing module is used for establishing a mapping relation from a device-to-device proximity service (D2D) ProSe protocol layer to a D2D shared transmission channel;
the determining module is configured to determine whether a bit number of a first Discovery message generated by the ProSe protocol layer is greater than a preset threshold after the establishing module establishes a mapping relationship from the D2D ProSe protocol layer to the D2D shared transmission channel;
the mapping module is configured to map the first Discovery message to the D2D shared transmission channel and transmit the first Discovery message through the D2D shared transmission channel when the determining module determines that the number of bits of the first Discovery message is greater than a preset threshold; or when the determining module determines that the bit number of the first Discovery message is less than or equal to the preset threshold, mapping the first Discovery message to a D2D Discovery transmission channel.
11. The apparatus of claim 10, wherein the establishing module is specifically configured to add a Discovery dedicated radio bearer in a packet data convergence protocol layer, and establish a mapping relationship between a ProSe protocol layer and the Discovery dedicated radio bearer, where the Discovery dedicated radio bearer is used to carry a Discovery message, the Discovery message of the Discovery dedicated radio bearer is mapped to a Discovery dedicated logical channel and identified by a 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, and the Discovery dedicated logical channel corresponds to the Discovery dedicated logical channel identifier.
12. The apparatus according to claim 10, wherein the establishing module is specifically configured to establish a mapping relationship from a ProSe protocol layer to a D2D shared transport channel at a medium access control protocol layer.
13. The apparatus of claim 10, wherein 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, pass the first Discovery message to a packet data convergence protocol layer, map the first Discovery message to the Discovery dedicated radio bearer, and map the first Discovery message to the D2D shared transport channel, and add a Discovery dedicated logical channel identifier to the first Discovery message, wherein the Discovery dedicated logical channel identifier is used to identify the Discovery message transmitted through 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, transfer the first Discovery message to a media access control protocol layer, map the first Discovery message to the D2D shared transmission 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 the Discovery message transmitted through the D2D shared transmission channel.
14. The apparatus of claim 10, wherein the apparatus further comprises a control module, and the control module is configured to deliver the first Discovery message to a physical layer through the D2D shared transmission channel, set a flag bit in D2D link control information corresponding to the first Discovery message, and transmit the first Discovery message through a transmission resource of D2D communication data, wherein the flag bit is used to indicate whether the transmission resource of the D2D communication data carries the Discovery message, and the first Discovery message is a Discovery message carried by the Discovery dedicated radio bearer or a Discovery message delivered from the ProSe protocol layer to a media access control protocol layer.
15. The apparatus of claim 14, wherein the control module is specifically configured to deliver the first Discovery message to a physical layer through the D2D shared transmission channel, determine D2D link control information corresponding to the first Discovery message according to scheduling information or available transmission resources, set a flag bit in the D2D link control information corresponding to the first Discovery message, and transmit the first Discovery message through the transmission resources indicated by the D2D link control information; wherein the link control information of D2D corresponding to the first Discovery message is used to indicate transmission resource information carrying the first Discovery message.
16. The apparatus of claim 14, wherein the D2D link control information determined by the control module indicates transmission resource information carrying the first Discovery message and transmission resource information of D2D communication data common to D2D communication data, wherein the transmission resource of the D2D communication data simultaneously carries the first Discovery message and D2D communication data, and wherein the first Discovery message is distinguished from the D2D communication data by logical channel identification.
17. The apparatus of claim 14, wherein the D2D link control information determined by the control module indicates transmission resource information for D2D communication data carrying the first Discovery message, wherein the transmission resource for D2D communication data carries only the first Discovery message, and wherein the first Discovery message and D2D communication data are distinguished by different transmission resources.
18. The apparatus of claim 13 or 14, further comprising a receiving module; the receiving module is used for receiving a second Discovery message sent by other terminal equipment;
the determining module is further configured to determine whether the second Discovery message received by the receiving module includes the Discovery dedicated logical channel identifier and/or whether a value of a flag bit in D2D link control information corresponding to the first Discovery message is a preset value, so as to determine whether the second Discovery message comes from a D2D shared transmission channel;
the mapping module is further configured to, when the determining module determines that the second Discovery message comes from a D2D shared transmission channel, process the second Discovery message according to a mechanism for transmitting the first Discovery.
19. A terminal device, characterized in that the terminal device comprises a memory and a processor; the memory is used for storing data;
the processor is configured to establish a mapping relationship from a device-to-device proximity services D2D ProSe protocol layer to a D2D shared transport channel;
the processor is configured to determine whether a bit number of a first Discovery message generated by the ProSe protocol layer is greater than a preset threshold; and when the bit number of the first Discovery message is greater than a preset threshold, mapping the first Discovery message to the D2D shared transmission channel, and transmitting the first Discovery message through the D2D shared transmission channel; or when the bit number of the first Discovery message is less than or equal to the preset threshold, mapping the first Discovery message to a D2D Discovery transmission channel.
20. The terminal device of claim 19, wherein the processor is specifically configured to add a Discovery dedicated radio bearer in a packet data convergence protocol layer, and establish a mapping relationship between a ProSe protocol layer and the Discovery dedicated radio bearer, where the Discovery dedicated radio bearer is used to carry a Discovery message, the Discovery message of the Discovery dedicated radio bearer is mapped to a Discovery dedicated logical channel and identified by a 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, and the Discovery dedicated logical channel corresponds to the Discovery dedicated logical channel identifier.
21. The terminal device according to claim 19, wherein the processor is specifically configured to establish a mapping relationship of a ProSe protocol layer to a D2D shared transport channel at a medium access control protocol layer.
22. The terminal device of claim 19, wherein the processor is configured to pass the first Discovery message to a packet data convergence protocol layer when the number of bits of the first Discovery message is greater than a preset threshold, map the first Discovery message to the Discovery dedicated radio bearer, and map the first Discovery message to the D2D shared transport channel, and add a Discovery dedicated logical channel identifier to the first Discovery message, wherein the Discovery dedicated logical channel identifier is used to identify the Discovery message transmitted over the D2D shared transport channel;
or the processor 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 a media access control protocol layer, map the first Discovery message to the D2D shared transmission 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 the Discovery message transmitted through the D2D shared transmission channel.
23. The terminal device of claim 19, wherein the processor is further configured to deliver the first Discovery message to a physical layer through the D2D shared transmission channel, set a flag bit in D2D link control information corresponding to the first Discovery message, and transmit the first Discovery message through a transmission resource of D2D communication data, wherein the flag bit is used to indicate whether the transmission resource of the D2D communication data carries the Discovery message, and the first Discovery message is a Discovery message of the Discovery dedicated radio bearer or a Discovery message delivered from the ProSe protocol layer to a media access control protocol layer.
24. The terminal device of claim 23, wherein the processor is further specifically configured to deliver the first Discovery message to a physical layer through the D2D shared transmission channel, determine D2D link control information corresponding to the first Discovery message according to scheduling information or available transmission resources, set a flag bit in the D2D link control information corresponding to the first Discovery message, and transmit the first Discovery message through the transmission resources indicated by the D2D link control information; wherein the link control information of D2D corresponding to the first Discovery message is used to indicate transmission resource information carrying the first Discovery message.
25. The terminal device of claim 23, wherein the processor-determined D2D link control information indicates transmission resource information carrying the first Discovery message and transmission resource information of D2D communication data common to D2D communication data, wherein the transmission resource of the D2D communication data simultaneously carries the first Discovery message and D2D communication data, and wherein the first Discovery message is distinguished from D2D communication data by logical channel identification.
26. The terminal device of claim 23, wherein the D2D link control information determined by the processor indicates transmission resource information for D2D communication data carrying the first Discovery message, wherein the transmission resource for D2D communication data carries only the first Discovery message, and wherein the first Discovery message and D2D communication data are distinguished by different transmission resources.
27. A terminal device according to claim 22 or 23, characterized in that the terminal device further comprises a receiver; the receiver is used for receiving a second Discovery message sent by other terminal equipment;
the processor is configured to determine whether the second Discovery message includes the Discovery dedicated logical channel identifier and/or whether a value of a flag bit in D2D link control information corresponding to the first Discovery message is a preset value, so as to determine whether the second Discovery message comes from a D2D shared transmission channel;
the processor is configured to, when the second Discovery message comes from a D2D shared transmission channel, process, by the terminal device, the second Discovery message according to a mechanism for transmitting the first Discovery.
CN201580074040.3A 2015-09-21 2015-09-21 Data transmission method and device Active CN107211404B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/090126 WO2017049432A1 (en) 2015-09-21 2015-09-21 Data transmission method and apparatus

Publications (2)

Publication Number Publication Date
CN107211404A CN107211404A (en) 2017-09-26
CN107211404B true CN107211404B (en) 2020-04-28

Family

ID=58385502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201580074040.3A Active CN107211404B (en) 2015-09-21 2015-09-21 Data transmission method and device

Country Status (2)

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

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111432348B (en) * 2019-01-09 2022-02-25 中国信息通信研究院 Scrambling method, device and system for terminal direct-connection unicast communication data channel
US11503610B2 (en) * 2019-04-02 2022-11-15 Google Llc User equipment coordination for interference cancelation
CN112469023B (en) * 2019-09-06 2023-06-06 维沃移动通信有限公司 Message transmission method and terminal

Citations (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
GB2501088A (en) * 2012-04-11 2013-10-16 Renesas Mobile Corp A wireless device transmitting a D2D discovery signal at a power determined by a base station to minimise interference with uplink retransmissions
KR20140042752A (en) * 2012-09-28 2014-04-07 한국전자통신연구원 Method of device to device discovery and apparatus thereof

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140063476A (en) * 2012-11-16 2014-05-27 한국전자통신연구원 Method of transmission and reception for device to device discovery and apparatus thereof
CN104469961A (en) * 2013-09-25 2015-03-25 中兴通讯股份有限公司 Device-to-device communication method, device and system
CN104202740B (en) * 2014-05-08 2019-07-19 中兴通讯股份有限公司 Communication data sending method, device and user equipment
CN104768122B (en) * 2015-03-16 2018-08-24 深圳酷派技术有限公司 Data sharing method, device based on the direct-connected communication of terminal and terminal

Patent Citations (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
GB2501088A (en) * 2012-04-11 2013-10-16 Renesas Mobile Corp A wireless device transmitting a D2D discovery signal at a power determined by a base station to minimise interference with uplink retransmissions
KR20140042752A (en) * 2012-09-28 2014-04-07 한국전자통신연구원 Method of device to device discovery and apparatus thereof

Also Published As

Publication number Publication date
WO2017049432A1 (en) 2017-03-30
CN107211404A (en) 2017-09-26

Similar Documents

Publication Publication Date Title
US11140676B2 (en) Data transmission method, terminal device, and access network device
US10841789B2 (en) Method and device for relay transmission
US11064557B2 (en) Method and device for establishing radio resource control connection
CN109547168B (en) Data transmission method, terminal equipment and network equipment
US20190230682A1 (en) Data transmission method, apparatus, and system
US10764961B2 (en) Relay transmission method and device
WO2021043113A1 (en) Communication method and apparatus
CN112217615B (en) Method and device for supporting time-sensitive network
WO2018170858A1 (en) Paging method and paging apparatus
US20230171823A1 (en) Information transmission method, network device and terminal
CN110662299A (en) Communication method, communication apparatus, and storage medium
CN113661772A (en) Method and device for identifying user equipment context in edge link transmission
JP2020191672A (en) Relay transmission method and device
CN107211404B (en) Data transmission method and device
US10383097B2 (en) Data transmission method and system, and device
WO2020015733A1 (en) D2d communication method and terminal device
CN108141843B (en) Data transmission method, user equipment and network equipment
EP3742830A1 (en) Method for paging, terminal equipment, and network equipment
WO2018145292A1 (en) Communication method, device, and system
WO2020078248A1 (en) Wireless communication method and device
EP3709713A1 (en) Method for accessing wireless local area network, terminal device, and network device
US20230319909A1 (en) Method and apparatus for multicast and broadcast services
WO2021087729A1 (en) Method and apparatus for indicating decompressed object, and communication device
CN107018531B (en) Method for processing data service in Long Term Evolution (LTE) base station and base station
WO2022041127A1 (en) Method and apparatus for multicast and broadcast services

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant