WO2023093285A1 - 一种通信方法及终端 - Google Patents

一种通信方法及终端 Download PDF

Info

Publication number
WO2023093285A1
WO2023093285A1 PCT/CN2022/122181 CN2022122181W WO2023093285A1 WO 2023093285 A1 WO2023093285 A1 WO 2023093285A1 CN 2022122181 W CN2022122181 W CN 2022122181W WO 2023093285 A1 WO2023093285 A1 WO 2023093285A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
terminal
layer
rlc
transmission message
Prior art date
Application number
PCT/CN2022/122181
Other languages
English (en)
French (fr)
Inventor
翟海涛
赵亚利
徐昊
张惠英
Original Assignee
大唐移动通信设备有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 大唐移动通信设备有限公司 filed Critical 大唐移动通信设备有限公司
Publication of WO2023093285A1 publication Critical patent/WO2023093285A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Definitions

  • the present application relates to the technical field of wireless communication, and in particular to a communication method and a terminal.
  • V2X Vehicle to Everything
  • UE User Equipment
  • PDCP Packet Data Convergence Protocol
  • RLC Radio Link Control
  • the receiving end only when the PC5-S message is a broadcast message or a multicast message, the receiving end can establish the corresponding PDCP receiving entity, RLC receiving and logical channel when receiving the new layer 2 connection address for the first time.
  • the embodiment of the present application provides a communication method and a terminal.
  • the sending end sends a unicast PC5-S message for the first time
  • the receiving end can also complete receiving the PC5-S message.
  • the embodiment of the present application provides a communication method, which is applied to a first terminal, and the method includes:
  • the propagation type of the PC5-S message is a unicast message, the propagation type of the PC5-S message is set to broadcast type or multicast type;
  • the propagation type of the PC5-S message can be set to broadcast type or multicast type, and then send the PC5-S message, so that after receiving the PC5-S message, the second terminal can establish a corresponding PDCP receiving entity, RLC receiving entity and logical channel for the PC5-S message. Therefore, the communication method provided by the embodiment of the present application helps to solve the problem that the second terminal cannot establish a corresponding PDCP receiving entity, RLC receiving entity and logical channel for the unicast message, and is beneficial for the terminal to receive the PC5-S message.
  • setting the propagation type of the PC5-S message to broadcast type or multicast type includes:
  • the high layer is an application layer or a V2X layer
  • setting the broadcast type or multicast type of the message to be sent includes:
  • the radio resource control RRC layer When the radio resource control RRC layer receives a message sending request from the high layer, the propagation type of the PC5-S message is set to broadcast type or multicast type through the RRC layer; the message sending request indicates to the second The terminal sends the PC5-S message; the upper layer is the application layer or the V2X layer.
  • the method also includes:
  • the RRC layer After the RRC layer receives the message sending request from the upper layer, the RRC layer establishes a PDCP sending entity and a PDCP receiving entity, an RLC sending entity and an RLC receiving entity, and a sending logical channel and a receiving logical channel.
  • the first unicast PC5-S message includes the first PC5-S message sent by the first terminal to the second terminal using the new layer 2 unicast connection address.
  • the PC5-S message is direct link establishment request information, direct link authentication request information or direct link security mode control command information.
  • an embodiment of the present application provides a communication method, which is applied to a second terminal, and the method includes:
  • the transmission message is a PC5-S message of the unicast type sent by the new terminal
  • the transmission message is processed according to a broadcast type or a multicast type message, and a corresponding PDCP receiving entity, RLC receiving entity and logic are established channel
  • the new terminal is a direct communication terminal that sends a transmission message to the second terminal for the first time, or a direct communication terminal that has not established a PC-S unicast connection with the second terminal, or uses a new layer 2 unicast
  • the connection address is the direct communication terminal that first sends the transfer message to the second terminal.
  • the communication method and terminal provided by the embodiment of the present application, after the second terminal determines that the transmission message is a unicast type PC5-S message sent by the new terminal, the transmission message is processed according to a broadcast type or a multicast type message, Establish corresponding PDCP receiving entities, RLC receiving entities and logical channels. Therefore, the communication method provided by the embodiment of the present application helps to solve the problem that the second terminal cannot establish the corresponding PDCP receiving entity, RLC receiving entity and logical channel for the unicast message, and is beneficial to the second terminal to receive the unicast message .
  • the setting conditions include one or a combination of the following conditions:
  • the transmission message is a unicast message
  • the logical channel identifier LCID of the transmission message is 0 or 1 or 2;
  • the transmission message is a message sent to the second terminal for the first time using a new layer 2 unicast connection address
  • the destination address identifier of the transmission message is the same as the address identifier of the second terminal;
  • the current moment is within the valid time corresponding to the transmission message.
  • the transmission message is the first message sent by the first terminal to the second terminal in the following manner:
  • the second terminal determines that the transmission message is A message sent by the first terminal to the second terminal for the first time.
  • the transmission message is processed as a broadcast type or a multicast type message, Establish corresponding PDCP receiving entities, RLC receiving entities and logical channels; including:
  • the logical channel is established through the MAC layer, and the transmission message is sent to the RLC layer;
  • the PDCP receiving entity is established through the PDCP layer.
  • the establishing the RLC receiving entity through the RLC layer includes:
  • the RLC receiving entity is established by the RLC layer
  • the RLC setting conditions include one or a combination of the following conditions:
  • the transmission message is a unicast message
  • the LCID of the transmission message is 0 or 1 or 2;
  • the transmission message is the first transmission message between the layer 2 unicast connection address adopted by the first terminal and the layer 2 unicast connection address of the second terminal;
  • the transmitted message has no corresponding RLC receiving entity.
  • the establishment of the RLC receiving entity through the RLC layer includes one or a combination of the following actions:
  • the reception of the transmission message is accomplished through the RLC layer.
  • the establishing the PDCP receiving entity through the PDCP layer includes:
  • the higher layer is an application layer or a V2X layer
  • the PDCP setting conditions include one or a combination of the following conditions:
  • the transmission message is a unicast message
  • the logical channel identifier LCID of the transmission message is 0 or 1 or 2;
  • the transmission message is the first transmission message between the layer 2 unicast connection address adopted by the first terminal and the layer 2 unicast connection address of the second terminal;
  • the transport message has no corresponding PDCP receiving entity.
  • the establishment of the PDCP receiving entity through the PDCP layer includes one or a combination of the following actions:
  • the receiving of the transmission message is completed through the PDCP layer.
  • the transmission message is processed as a broadcast type or a multicast type message, Establish corresponding PDCP receiving entities, RLC receiving entities and logical channels; including:
  • the transmission message is processed according to a broadcast type or a multicast type message, and the logic is established by the MAC layer channel, and send indication information to the radio resource control RRC layer;
  • the method also includes:
  • the RRC layer After the RRC layer receives the message sending request from the high layer, if the message sending request indicates to send a PC5-S message of unicast type to the first terminal, the PC5-S message is propagated through the RRC layer
  • the type is set as a broadcast type or a multicast type; the upper layer is an application layer or a V2X layer.
  • the method also includes:
  • the RRC layer After the RRC layer receives the message sending request from the high layer, if the message sending request indicates to send a unicast type PC5-S message to the first terminal, establish a PDCP sending entity and a PDCP receiving entity through the RRC layer, An RLC sending entity and an RLC receiving entity, and a sending logical channel and a receiving logical channel.
  • an embodiment of the present application provides a communication method, which is applied to a second terminal, and the method includes:
  • the MAC PDU after the transmission message is decoded is sent to the deassembly and demultiplexing entity through the MAC layer, and sent to the RLC layer;
  • the conditions include:
  • the transmission message is a unicast message
  • the transmission message is a PC5-S message
  • the transmission message is a message sent by the first terminal to the second terminal for the first time.
  • the communication method and terminal provided by the embodiment of the present application, after the second terminal determines that the transmission message is the PC5-S message of the unicast type sent by the first terminal for the first time, the MAC PDU after decoding the transmission message is sent through the MAC layer to Entities are deassembled and demultiplexed and sent to the RLC layer. Therefore, the communication method provided by the embodiment of the present application is beneficial for the second terminal to receive the unicast PC5-S message sent by the first terminal for the first time.
  • the transmission message is determined to be a PC5-S message in the following manner:
  • the transmission message is a PC5-S message.
  • the transmission message is the first message sent by the first terminal to the second terminal in the following manner:
  • the second terminal determines that the transmission message is A message sent by the first terminal to the second terminal for the first time.
  • the conditions also include:
  • the destination address identifier of the transmission message is the same as the address identifier of the second terminal.
  • the method also includes:
  • the establishment of the RLC receiving entity includes one or a combination of the following actions:
  • the reception of the transmission message is accomplished through the RLC layer.
  • the method also includes:
  • a PDCP receiving entity is established.
  • the establishment of a PDCP receiving entity includes one or a combination of the following actions:
  • the receiving of the transmission message is completed through the PDCP layer.
  • the method also includes:
  • the transmission message is sent to a higher layer through the PDCP layer; the higher layer is an application layer or a V2X layer.
  • the embodiment of the present application provides a terminal, including:
  • the first setting unit determines the PC5-S message of the first unicast type sent to the second terminal; if the propagation type of the PC5-S message is a unicast message, the propagation type of the PC5-S message is set Is broadcast type or multicast type;
  • a sending unit for sending the PC5-S message.
  • an embodiment of the present application provides a terminal, including: a memory, a transceiver, and a processor;
  • said memory for storing computer instructions
  • the transceiver is used to send and receive data under the control of the processor
  • the processor is configured to read the computer program in the memory and execute the method described in the first aspect above.
  • the embodiment of the present application provides a terminal, including:
  • a receiving unit configured to receive a transmission message sent by the first terminal
  • the establishment unit if it is determined that the transmission message is a unicast type PC5-S message sent by the new terminal, then process the transmission message according to a broadcast type or a multicast type message, and establish a corresponding PDCP receiving entity and an RLC receiving entity and a logical channel;
  • the new terminal is a direct communication terminal that sends a transmission message to the second terminal for the first time, or a direct communication terminal that has not established a PC-S unicast connection with the second terminal, or adopts a new layer 2
  • the unicast connection address is the direct communication terminal that first sends the transmission message to the second terminal.
  • the embodiment of the present application provides a terminal, including:
  • a receiving unit configured to receive a transmission message sent by the first terminal
  • the establishment unit determines that when the transmission message meets the following conditions, the MAC PDU after the transmission message is decoded is sent to the deassembly and demultiplexing entity through the MAC layer, and sent to the RLC layer;
  • the conditions include:
  • the transmission message is a unicast message
  • the transmission message is a PC5-S message
  • the transmission message is a message sent by the first terminal to the second terminal for the first time.
  • the embodiment of the present application provides a terminal, including: a memory, a transceiver, and a processor;
  • said memory for storing computer instructions
  • the transceiver is used to send and receive data under the control of the processor
  • the processor is configured to read the computer program in the memory and execute the method described in the second aspect or the third aspect above.
  • an embodiment of the present application provides a computer-readable storage medium, the storage medium stores computer instructions, and when the computer instructions are executed by a processor, any of the following aspects of the first aspect, the second aspect, and the third aspect are implemented. one of the methods described.
  • FIG. 1 is a schematic structural diagram of a communication system applicable to an embodiment of the present application
  • FIG. 2 is a schematic diagram of an interaction flow of a communication method provided in an embodiment of the present application
  • FIG. 3 is an application scenario diagram in which the first terminal sends unicast direct link establishment request information to the second terminal in the prior art
  • FIG. 4 is an application scenario diagram in which the first terminal sends unicast direct link authentication request information to the second terminal in the prior art
  • FIG. 5 is an application scenario diagram in which the first terminal sends unicast direct link security mode control command information to the second terminal in the prior art
  • FIG. 6 is a schematic diagram of an interaction process of another communication method provided by an embodiment of the present application.
  • FIG. 7 is a schematic flowchart of a communication method provided by an embodiment of the present application.
  • FIG. 8 is a schematic flowchart of a communication method provided by an embodiment of the present application.
  • FIG. 9 is a schematic flowchart of a communication method provided by an embodiment of the present application.
  • FIG. 10 is a structural block diagram of a first terminal provided in an embodiment of the present application.
  • FIG. 11 is a structural block diagram of a second terminal provided in an embodiment of the present application.
  • FIG. 12 is a structural block diagram of another second terminal provided by an embodiment of the present application.
  • FIG. 13 is a structural block diagram of another second terminal provided by an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
  • FIG. 15 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
  • first and “second” in the embodiments of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence.
  • “And/or” in the embodiment of this application describes the association relationship of associated objects, indicating that there may be three relationships, for example, A and/or B, which may mean: A exists alone, A and B exist simultaneously, and B exists alone These three situations.
  • the character “/” generally indicates that the contextual objects are an "or” relationship.
  • the network architecture and business scenarios described in the embodiments of the present application are for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute limitations on the technical solutions provided by the embodiments of the present application.
  • the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.
  • FIG. 1 is a schematic structural diagram of a communication network applicable to an embodiment of the present application.
  • the communication network may be a V2X network, or a part of the V2X network.
  • V2X networks include communication methods such as Vehicle to Vehicle (V2V), Vehicle to Pedestrian (V2P), Vehicle to Infrastructure (V2I) and Vehicle to Network (V2N).
  • V2P communication can be a user terminal equipment (Person-User Equipment, P-UE), and the other end can be a vehicle terminal equipment (Vehicle-User Equipment, V-UE), such as the P-UE200 shown in Figure 1 and V-UE300.
  • the communication network may also include a network side device 100 . Both the P-UE200 and the V-UE300 can be connected to the network side device 100 through a wireless network.
  • the network side device 100 is a device that provides wireless communication functions for terminals, including but not limited to: gNB in 5G, radio network controller (radio network controller, RNC), node B (node B, NB), Base station controller (base station controller, BSC), base transceiver station (base transceiver station, BTS), home base station (for example, home evolved nodeB, or home node B, HNB), baseband unit (BaseBand Unit, BBU), transmission point (transmitting and receiving point, TRP), transmitting point (transmitting point, TP), mobile switching center, etc.
  • the network side device 100 may also be a device that provides wireless communication functions for terminals in other communication systems that may appear in the future.
  • P-UE200 can be a device with wireless communication function, which can be a mobile phone, tablet computer (pad), computer with wireless transceiver function, virtual reality (virtual reality, VR) terminal, augmented reality (augmented reality, AR) terminals, wireless terminals in industrial control (industrial control), etc.
  • V-UE300 can be a vehicle-mounted terminal in self driving. Both P-UE200 and V-UE300 can provide users with voice and/or data connectivity, have a wireless connection function, and can be connected to a wireless modem, etc.
  • P-UE200 and V-UE300 can communicate with one or more core networks via network side device 100 .
  • the sending end when the UE initiates a service, the sending end can establish the corresponding PDCP sending entity, RLC and logical channel through the trigger of the high layer, and complete the sending of the PC5-S message; at the receiving end, only when the PC5-S
  • the message is a broadcast message or a multicast message
  • the corresponding PDCP receiving entity, RLC receiving and logical channel can be established when the new layer 2 connection address is received for the first time.
  • the embodiment of the present application provides a communication method and a terminal.
  • the first terminal Before sending the first PC5-S message of unicast type to the second terminal, the first terminal can first set the propagation type of the PC5-S message to broadcast type or multicast type, and then send the PC5-S message to the second terminal; after receiving the PC5-S message, the second terminal can establish a corresponding PDCP receiving entity, RLC receiving entity and logical channel for the PC5-S message . It can help the second terminal to establish corresponding PDCP receiving entity, RLC receiving entity and logical channel for the unicast message, and then finish receiving the PC5-S unicast message.
  • Fig. 2 shows an interaction flowchart of a communication method provided by an embodiment of the present application. The method is executed by the first terminal and the second terminal, as shown in Figure 2, the method includes the following steps:
  • Step S201 if the first terminal determines that the first PC5-S message of unicast type sent to the second terminal is a unicast message, set the propagation type of the PC5-S message to broadcast type or multicast type.
  • the PC5-S message refers to a signaling message sent between two terminals during the process of establishing a direct link connection. After the direct link is established, the message for sending data between two terminals may be called a PC5-RRC message.
  • the first PC5-S message of unicast type includes a PC5-S message sent by the first terminal to the second terminal for the first time using a new layer 2 unicast connection address; wherein, PC5- The S message may be request information for establishment of the direct link, request information for authentication of the direct link, or control command information for the security mode of the direct link.
  • the first terminal may indicate the propagation type of the PC5-S message as a broadcast type or a multicast type through a high layer; wherein, the high layer of the first terminal may be the application layer of the first terminal or V2X layer; based on the instruction of the high layer, the first terminal can set the information type in the sidelink control information (Sidelink Control Information, SCI) field corresponding to the PC5-S message through the medium access control (Medium Access Control, MAC) layer It is broadcast type or multicast type.
  • SCI Sidelink Control Information
  • Step S202 the first terminal sends a PC5-S message to the second terminal.
  • step S203 the second terminal establishes a corresponding PDCP receiving entity, RLC receiving entity and logical channel for the PC5-S message.
  • FIG. 3 is an application scenario diagram in which the first terminal sends unicast direct link establishment request information to the second terminal in the prior art.
  • UE_1 is the first terminal
  • UE_2 is the second terminal
  • UE_1 and UE_2 may include the physical layer, the MAC layer, the RLC layer, the PDCP layer, the radio resource control (Radio Resource Control, RRC) layer and the upper layer, where the upper layer may be a non-access (Non-access stratum, NAS) layer, such as an application layer or V2X layer.
  • NAS non-access stratum
  • the MAC layer of UE_2 cannot submit the data packet to the upper layer, and the PDCP layer and the RLC layer cannot correspondingly establish the PDCP receiving entity and the RLC receiving entity And the corresponding receiving logical channel, resulting in the second terminal being unable to complete the reception of the unicast direct link establishment request information.
  • UE_1 when UE_1 sends the first unicast PC5-S message to UE_2, that is, the first unicast direct link establishment request message, UE_1 can send the unicast
  • the type of PC5-S message indication is broadcast type or multicast type; then send a message request to the RRC layer through the upper layer; wherein, the message send request indicates to send the PC5-S message to UE_2; after the RRC layer receives the message send request, UE_1 can instruct the RLC layer to establish an RLC sending entity through the RRC layer, instruct the PDCP layer to establish a PDCP sending entity, and the RRC layer sends a message sending request to the MAC layer, so that the MAC layer can establish a sending logical channel, and based on the instruction of the high layer, it will communicate with the PC5
  • the information type in the SCI field corresponding to the -S message is set to broadcast type or multicast type, and then the message sending request is sent to the physical layer through the MAC layer
  • UE_2 After UE_2 receives the PC5-S message set as broadcast type or multicast type through the physical layer, it can establish a receiving logical channel through the MAC layer, and send the PC5-S message to the RLC layer to establish an RLC receiving entity, and send it to the PDCP The layer establishes a PDCP receiving entity, so that the PC5-S message can be sent to the upper layer of UE_2 through the RRC layer.
  • FIG. 4 is a unicast direct link authentication request sent by the first terminal to the second terminal in the prior art
  • UE_1 is the second terminal
  • UE_2a is the first terminal.
  • the MAC layer of UE_1 cannot submit the data packet to the upper layer, cannot establish a receiving logical channel, and the PDCP layer and RLC layer cannot correspondingly establish The PDCP receiving entity and the RLC receiving entity cause UE_1 to fail to receive the unicast direct link establishment request information.
  • UE_2a, UE_2b, and UE_2c when UE_2a, UE_2b, and UE_2c receive the data packet of the broadcast type direct link establishment request information sent by UE_1, they compare the target address contained in the data packet with their own address, assuming that UE_1 The destination address contained in the sent data packet is the same as the address of UE_2a. After receiving the direct link establishment request information, UE_2a sends the first unicast type PC5-S message to UE_1, that is, the first unicast type PC5-S message.
  • UE_2a can indicate the PC5-S message of this unicast type as a broadcast type or a multicast type through a high layer; then send a message sending request to the RRC layer through a high layer; wherein, the message sending request indicates to UE_1 sends a PC5-S message; after the RRC layer receives the message sending request, UE_2a can instruct the RLC layer to establish an RLC sending entity through the RRC layer, the PDCP layer establishes a PDCP sending entity, and the RRC layer sends the message sending request to the MAC layer, so that The MAC layer establishes a logical channel for sending, and based on the instruction of the high layer, sets the information type in the SCI domain corresponding to the PC5-S message as broadcast type or multicast type, and then sends the message sending request to the physical layer through the MAC layer, through The physical layer sends the PC5-S message to UE_1.
  • UE_1 After UE_1 receives the PC5-S message set as broadcast type or multicast type through the physical layer, it can establish a receiving logical channel through the MAC layer, and send the PC5-S message to the RLC layer to establish an RLC receiving entity, and send it to the PDCP The layer establishes a PDCP receiving entity, so that the PC5-S message can be sent to the upper layer of UE_1 through the RRC layer.
  • the PC5-S message is used as an example to describe the control command information of the direct link security mode.
  • FIG. 5 shows the direct link security mode in which the first terminal sends unicast to the second terminal in the prior art
  • An application scenario diagram of the control command information is shown in FIG. 5 , where UE_1 is the second terminal, and UE_2a is the first terminal.
  • UE_2a when UE_2a sends unicast direct link security mode control command information to UE_1, the MAC layer of UE_1 cannot submit data packets to the upper layer, and the PDCP layer and RLC layer cannot correspondingly establish the PDCP receiving entity and RLC The receiving entity and the corresponding receiving logical channel cause UE_1 to fail to receive the unicast direct link establishment request information.
  • UE_2a, UE_2b, and UE_2c when UE_2a, UE_2b, and UE_2c receive the data packet of the broadcast type direct link establishment request information sent by UE_1, they compare the target address contained in the data packet with their own address, assuming that UE_1 The destination address contained in the sent data packet is the same as the address of UE_2a. After receiving the direct link establishment request information, UE_2a sends the first unicast type PC5-S message to UE_1, that is, the first unicast type PC5-S message.
  • UE_2a When direct link security mode control command information, UE_2a can indicate the PC5-S message of the unicast type as a broadcast type or a multicast type through a high layer; then send a message sending request to the RRC layer through a high layer; wherein, the message sending request indicates Send a PC5-S message to UE_1; after the RRC layer receives the message sending request, UE_2a can instruct the RLC layer to establish an RLC sending entity through the RRC layer, and the PDCP layer establishes a PDCP sending entity, and the RRC layer sends the message sending request to the MAC layer to Make the MAC layer set up the sending logic channel, and based on the instructions of the high layer, set the information type in the SCI field corresponding to the PC5-S message to the broadcast type or the multicast type, and then send the message sending request to the physical layer through the MAC layer, Send the PC5-S message to UE_1 through the physical layer.
  • UE_1 After UE_1 receives the PC5-S message set as broadcast type or multicast type through the physical layer, it can establish a receiving logical channel through the MAC layer, and send the PC5-S message to the RLC layer to establish an RLC receiving entity, and send it to the PDCP The layer establishes a PDCP receiving entity, so that the PC5-S message can be sent to the upper layer of UE_1 through the RRC layer.
  • the first terminal may set the propagation type of the PC5-S message to a broadcast type or a multicast type through the RRC layer; wherein, the message The sending request indicates sending the PC5-S message to the second terminal.
  • the PC5-S message is used as an example to describe the direct link establishment request information.
  • UE_1 is sending the first PC5-S message of unicast type to UE_2, that is, the first unicast Type of direct link establishment request information, UE_1 can send the message sending request to the RRC layer through the upper layer; after the RRC layer receives the message sending request, UE_1 can set the propagation type of the PC5-S message to broadcast through the RRC layer Type or multicast type, and instruct the RLC layer to establish the RLC sending entity, the PDCP layer to establish the PDCP sending entity, and establish the corresponding sending logical channel through the MAC layer; then send the message sending request to the physical layer through the MAC layer, and send the message to the physical layer through the physical layer
  • the PC5-S message is sent to UE_2.
  • UE_2 After UE_2 receives the PC5-S message set as broadcast type or multicast type through the physical layer, it can establish a receiving logical channel through the MAC layer, and send the PC5-S message to the RLC layer to establish an RLC receiving entity, and send it to the PDCP The layer establishes a PDCP receiving entity, so that the PC5-S message can be sent to the upper layer of UE_2 through the RRC layer.
  • the execution steps of the first terminal and the second terminal are similar to the above execution steps, here No longer.
  • the RRC layer of the first terminal may establish an RLC sending entity and an RLC receiving entity, a PDCP sending entity and a PDCP receiving entity, and send logical channel and receive logical channel.
  • FIG. 6 shows an interaction flowchart of another communication method provided by the embodiment of the present application.
  • the method is executed by the first terminal and the second terminal, as shown in Figure 6, the method includes the following steps:
  • Step S601 the first terminal sends a transmission message to the second terminal
  • Step S602 the second terminal receives the transmission message sent by the first terminal
  • Step S603 if the second terminal determines that the transmission message is a unicast PC5-S message sent by the new terminal, process the transmission message as a broadcast type or multicast type message, and establish a corresponding PDCP receiving entity, RLC Receive physical and logical channels.
  • the new terminal can be a direct communication terminal that sends a transmission message to the second terminal for the first time, can be a direct communication terminal that has not established a PC5-S unicast connection with the second terminal, or can use a new layer 2 unicast connection address
  • the direct communication terminal that sends a transmission message to the second terminal for the first time may be called a source layer 2 identification (source Layer-2 ID)
  • the transmission message may be a direct link establishment request information, which may be a direct link
  • the link authentication request information may also be the direct link security mode control command information.
  • the second terminal may determine whether the transmission message is a unicast PC5-S message sent by the new terminal in the following manner: if the transmission message meets the set conditions, determine that the transmission message is a new A PC5-S message of unicast type sent by the terminal; wherein, the setting conditions may include one or a combination of the following conditions:
  • the transmission message is a unicast message
  • the logical channel identity (LCID) of the transmitted message is 0 or 1 or 2;
  • the transmission message is a message sent to the second terminal for the first time using the new layer 2 unicast connection address;
  • the destination address identifier of the transmitted message is the same as the address identifier of the second terminal; wherein, the destination address identifier may be called a destination Layer-2 ID (destination Layer-2 ID).
  • the current time is within the valid time corresponding to the transmission message.
  • the transmission message is described as an example of a direct link establishment request information
  • UE_1 is the first terminal
  • UE_2 is the second terminal.
  • UE_1 sends the transmission message to UE_2
  • UE_2 receives the transmission message through the physical layer.
  • the transmission message can be sent to the MAC layer through the physical layer.
  • UE_2 After receiving the PDU at the RLC layer, UE_2 can judge whether the PDU meets the RLC setting conditions through the RLC layer. If the PDU meets the RLC setting conditions, the RLC receiving entity can be established through the RLC layer, and the state variables of the RLC receiving entity can be initialized. And the reception of the transmission message is completed through the RLC layer.
  • the RLC setting condition may include one or a combination of the following conditions:
  • the transmission message is a unicast message
  • the LCID of the transmitted message is 0 or 1 or 2;
  • the transmission message is the first transmission message between the new layer 2 unicast connection address adopted by the first terminal and the layer 2 unicast connection address of the second terminal;
  • L2 IDs a source Layer-2 ID and a destination Layer-2 ID
  • UE_2 After receiving the PDU through the RLC layer, UE_2 can send the PDU to the PDCP layer through the RLC layer. After receiving the PDU at the PDCP layer, UE_2 can judge whether the PDU meets the PDCP setting conditions through the PDCP layer. If the PDU meets the PDCP If the conditions are set, the PDCP receiving entity can be established through the PDCP layer, the state variables of the PDCP receiving entity can be initialized, and the receiving of the transmission message can be completed through the PDCP layer.
  • the PDCP setting conditions may include one or a combination of the following conditions:
  • the transmission message is a unicast message
  • the LCID of the transmitted message is 0 or 1 or 2;
  • the transmission message is the first transmission message between the new layer 2 unicast connection address adopted by the first terminal and the layer 2 unicast connection address of the second terminal;
  • the transmission message is the first message sent by the first terminal to the second terminal in the following manner:
  • the identity of the first terminal is not saved in the second terminal, and/or, the second terminal does not receive the message sent by the first terminal within the set time, then it is determined that the transmission message is sent by the first terminal to the second terminal for the first time information.
  • UE_2 can establish a PDCP receiving entity through the PDCP layer, initialize the state variable of the PDCP receiving entity, and complete the transmission of the message through the PDCP layer reception.
  • UE_2 After UE_2 finishes receiving the PDU through the PDCP layer, it can submit the PDU to a higher layer through the PDCP layer.
  • UE_1 is the second terminal
  • UE_2a is the first terminal
  • UE_2a is the first terminal
  • UE_2a receives the data packet of broadcast type direct link establishment request information sent by UE_1
  • the target address of the UE_2a is the same as that of UE_2a.
  • UE_2a After receiving the direct link establishment request information, UE_2a generates the direct link authentication request information and sends the direct link authentication request information to UE_1 as a transmission message.
  • UE_2a may send a message transmission request to the RRC layer through a higher layer; the message transmission request indicates sending a transmission message to UE_1; and instructs the RLC layer to establish an RLC through the RRC layer.
  • the sending entity instructs the PDCP layer to establish a PDCP sending entity, then sends a message sending request to the MAC layer, establishes a sending logical channel through the MAC layer, sends the message sending request to the physical layer, and finally sends the transmission message to UE_1 through the physical layer.
  • the DST field is equal to the upper 8 bits of any new layer 2 unicast connection address in the first terminal, and the layer 2 unicast
  • the lower 16 bits of the connection address are equal to the destination layer 2 connection address known in the corresponding SCI domain, that is, the destination address identifier of the transmission message is the same as the address identifier of the second terminal; and the current moment is still in the valid
  • UE_1 After receiving the PDU through the RLC layer, UE_1 can send the PDU to the PDCP layer through the RLC layer. After receiving the PDU at the PDCP layer, UE_1 can judge whether the PDU meets the PDCP setting conditions through the PDCP layer.
  • UE_1 After UE_1 finishes receiving the PDU through the PDCP layer, it can submit the PDU to higher layers through the PDCP layer.
  • the transmission message is described as an example of direct link security mode control command information
  • UE_1 is the second terminal
  • UE_2a is the first terminal.
  • UE_2a, UE_2b, and UE_2c receive the broadcast-type direct link establishment request packet sent by UE_1, they compare the target address contained in the packet with their own address, assuming that the target address contained in the packet sent by UE_1 The address is the same as that of UE_2a.
  • UE_2a After receiving the direct link establishment request information, UE_2a generates direct link security mode control command information and sends the direct link security mode control command information to UE_1 as a transmission message.
  • the DST field is equal to the upper 8 bits of any new layer 2 unicast connection address in the first terminal, and the layer 2 unicast
  • the lower 16 bits of the connection address are equal to the destination layer 2 connection address known in the corresponding SCI domain, that is, the destination address identifier of the transmission message is the same as the address identifier of the second terminal; and the current moment is still in the valid
  • UE_1 After receiving the PDU through the RLC layer, UE_1 can send the PDU to the PDCP layer through the RLC layer. After receiving the PDU at the PDCP layer, UE_1 can judge whether the PDU meets the PDCP setting conditions through the PDCP layer.
  • UE_1 After UE_1 finishes receiving the PDU through the PDCP layer, it can submit the PDU to higher layers through the PDCP layer.
  • the transmission message when the second terminal determines through the MAC layer that the transmission message is a unicast PC5-S message sent by the new terminal, the transmission message can be regarded as a broadcast type or a multicast type message, through
  • the MAC layer establishes a receiving logical channel, and sends indication information to the RRC layer; based on the indication information, the second terminal can establish a PDCP receiving entity and an RLC receiving entity through the RRC layer.
  • the transmission message is taken as an example of a direct link establishment request information for illustration.
  • UE_1 sends a transmission message to UE_2
  • UE_2 receives the transmission message sent by UE_1 through the physical layer, it can Sending the transmission message to the MAC layer.
  • the DST domain is equal to the upper 8 bits of any new layer 2 unicast connection address in the first terminal, and the lower 16 bits of the layer 2 unicast connection address are the same as the destination layer 2 in the corresponding SCI domain.
  • connection addresses are equal, that is, the destination address identifier of the transmission message is the same as the address identifier of the second terminal; and when the current moment is still within the valid time corresponding to the transmission message, UE_2 can establish a receiving logical channel through the MAC layer, and send a message to the RRC layer Sending indication information, based on the indication information, UE_2 can instruct the RLC layer to establish an RLC receiving entity through the RRC layer, and instruct the PDCP layer to establish a PDCP receiving entity.
  • UE_2 After completing the establishment of the receiving logical channel, PDCP receiving entity and RLC receiving entity, UE_2 can complete receiving the PDU through the RLC layer and PDCP layer, and submit the PDU to the upper layer through the PDCP layer.
  • the PC5-S message is used as an example to describe the direct link authentication request information
  • UE_1 is the second terminal
  • UE_2a is the first terminal.
  • UE_2a, UE_2b, and UE_2c receive the data packet of broadcast type direct link establishment request information sent by UE_1, they compare the target address contained in the data packet with their own address, assuming that the data packet sent by UE_1 contains The target address of the UE_2a is the same as that of UE_2a.
  • UE_2a After receiving the direct link establishment request information, UE_2a generates the direct link authentication request information and sends the direct link authentication request information to UE_1 as a transmission message.
  • the DST field is equal to the upper 8 bits of any new layer 2 unicast connection address in the first terminal, and the layer 2 unicast
  • the lower 16 bits of the connection address are equal to the destination layer 2 connection address known in the corresponding SCI domain, that is, the destination address identifier of the transmission message is the same as the address identifier of the second terminal; and the current moment is still in the valid
  • UE_1 After completing the establishment of the PDCP receiving entity, the RLC receiving entity and the receiving logical channel, UE_1 can receive the PDU through the RLC layer and the PDCP layer, and submit the PDU to the upper layer through the PDCP layer.
  • the PC5-S message is used as an example to describe the direct link security mode control command information
  • UE_1 is the second terminal
  • UE_2a is the first terminal.
  • UE_2a, UE_2b, and UE_2c receive the data packet of broadcast type direct link establishment request information sent by UE_1, they compare the target address contained in the data packet with their own address, assuming that the data packet sent by UE_1 contains The target address of the UE_2a is the same as that of UE_2a.
  • UE_2a After receiving the direct link establishment request information, UE_2a generates the direct link security mode control command information and sends the direct link security mode control command information to UE_1 as a transmission message.
  • the DST field is equal to the upper 8 bits of any new layer 2 unicast connection address in the first terminal, and the layer 2 unicast
  • the lower 16 bits of the connection address are equal to the destination layer 2 connection address known in the corresponding SCI domain, that is, the destination address identifier of the transmission message is the same as the address identifier of the second terminal; and the current moment is still in the valid
  • UE_1 After completing the establishment of the PDCP receiving entity, the RLC receiving entity and the receiving logical channel, UE_1 can receive the PDU through the RLC layer and the PDCP layer, and submit the PDU to the upper layer through the PDCP layer.
  • the RRC layer sends The propagation type of the PC5-S message is set to broadcast type or multicast type; wherein, the upper layer is the application layer or the V2X layer.
  • the PC5-S message as the direct link security mode control command information
  • UE_2a, UE_2b and UE_2c receive the data packet of the broadcast type direct link establishment request information sent by UE_1, the data The destination address contained in the packet is compared with its own address. Assuming that the destination address contained in the data packet sent by UE_1 is the same as the address of UE_2a, UE_2a generates a unicast type direct link after receiving the direct link establishment request information
  • the security mode controls the command information, and sends the PC5-S message of the unicast type to UE_1.
  • UE_2a Before sending the PC5-S message to UE_1, UE_2a can send a message sending request to the RRC layer of UE_2a through the upper layer of UE_2a, and the message sending request indicates sending a unicast PC5-S message to UE_1; After the message sending request, UE_2a can set the propagation type of the PC5-S message to broadcast type or multicast type through the RRC layer, and instruct the RLC layer to establish the RLC sending entity, instruct the PDCP layer to establish the PDCP sending entity, and then establish Send the logical channel, send the message sending request to the physical layer, and send the PC5-S message to UE_1 through the physical layer.
  • UE_1 After UE_1 receives the PC5-S message set as broadcast type or multicast type through the physical layer, it can establish a receiving logical channel through the MAC layer, and send the PC5-S message to the RLC layer to establish an RLC receiving entity, and send it to the PDCP The layer establishes a PDCP receiving entity, so that the PC5-S message can be sent to the upper layer of UE_1 through the RRC layer.
  • the RRC layer instructs the second terminal
  • the RLC layer of the second terminal establishes an RLC sending entity and an RLC receiving entity, instructs the PDCP layer of the second terminal to establish a PDCP sending entity and a PDCP receiving entity, and instructs the MAC layer of the second terminal to establish a sending logical channel and a receiving logical channel.
  • the embodiments provided in this application provide a flowchart of a communication method.
  • the method is executed by the first terminal, as shown in Figure 7, the method includes the following steps:
  • Step S701 determining the first PC5-S message of unicast type to be sent to the second terminal.
  • Step S702 if the propagation type of the PC5-S message is a unicast message, set the propagation type of the PC5-S message to a broadcast type or a multicast type.
  • Step S703 sending a PC5-S message.
  • the embodiments provided in this application provide a flowchart of a communication method.
  • the method is executed by the second terminal, as shown in Figure 8, the method includes the following steps:
  • Step S801 receiving a transmission message sent by a first terminal.
  • Step S802 if it is determined that the transmission message is a unicast type PC5-S message sent by the new terminal, then process the transmission message according to a broadcast type or a multicast type message, and establish a corresponding PDCP receiving entity, RLC receiving entity and logical channel.
  • the new terminal is a direct communication terminal that sends a transmission message to the second terminal for the first time, or a direct communication terminal that has not established a PC-S unicast connection with the second terminal, or uses a new layer 2 unicast connection address to send to the second terminal for the first time A direct communication terminal for transmitting messages.
  • the embodiments provided in this application provide a flowchart of a communication method.
  • the method is executed by the second terminal, as shown in Figure 9, the method includes the following steps:
  • Step S901 receiving a transmission message sent by a first terminal
  • Step S902 when it is determined that the transmission message satisfies the following conditions, the MAC PDU after the transmission message decoding is sent to the disassembly and demultiplexing entity through the MAC layer, and sent to the RLC layer; wherein, the conditions include: the transmission message is a unicast message; the transmission The message is a PC5-S message; the transmission message is a message sent by the first terminal to the second terminal for the first time.
  • a terminal is provided, as shown in FIG. 10 , the terminal includes a first setting unit 1001 and a sending unit 1002; wherein:
  • the first setting unit 1001 determines the PC5-S message of the first unicast type sent to the second terminal; if the propagation type of the PC5-S message is a unicast message, set the propagation type of the PC5-S message Set to broadcast type or multicast type;
  • the sending unit 1002 is configured to send the PC5-S message.
  • the first setting unit 1001 may specifically be used for:
  • the high layer is an application layer or a V2X layer
  • the first setting unit 1001 may specifically be used for:
  • the propagation type of the PC5-S message is set to a broadcast type or a multicast type through the RRC layer; the message sending request indicates sending the message to the second terminal The PC5-S message; the high layer is the application layer or the V2X layer.
  • the first setting unit 1001 may specifically be used for:
  • the RRC layer After the RRC layer receives the message sending request from the upper layer, the RRC layer establishes a PDCP sending entity and a PDCP receiving entity, an RLC sending entity and an RLC receiving entity, and a sending logical channel and a receiving logical channel.
  • the first unicast PC5-S message includes the first PC5-S message sent by the first terminal to the second terminal using the new layer 2 unicast connection address.
  • the PC5-S message is direct link establishment request information, direct link authentication request information or direct link security mode control command information.
  • a terminal is provided, as shown in FIG. 11 , the terminal includes a receiving unit 1101 and an establishing unit 1102; wherein:
  • the receiving unit 1101 is configured to receive a transmission message sent by the first terminal
  • the establishment unit 1102 if it is determined that the transmission message is a unicast type PC5-S message sent by the new terminal, then process the transmission message according to a broadcast type or a multicast type message, and establish a corresponding PDCP receiving entity, RLC Receiving entities and logical channels; the new terminal is a direct communication terminal that sends a transmission message to the second terminal for the first time, or a direct communication terminal that has not established a PC-S unicast connection with the second terminal, or adopts a new
  • the layer 2 unicast connection addresses the direct communication terminal that first sends the transmission message to the second terminal.
  • the establishment unit 1102 may be specifically configured to:
  • the setting conditions include one or a combination of the following conditions:
  • the transmission message is a unicast message
  • the LCID of the transmission message is 0 or 1 or 2;
  • the transmission message is a message sent to the second terminal for the first time using a new layer 2 unicast connection address
  • the destination address identifier of the transmission message is the same as the address identifier of the second terminal;
  • the current moment is within the valid time corresponding to the transmission message.
  • the establishment unit 1102 may be specifically configured to:
  • the second terminal determines that the transmission message is A message sent by the first terminal to the second terminal for the first time.
  • the establishment unit 1102 may be specifically configured to:
  • the transmission message is processed according to a broadcast type or a multicast type message, and the logic is established by the MAC layer channel, and send the transport message to the RLC layer;
  • the PDCP receiving entity is established through the PDCP layer.
  • the establishment unit 1102 may be specifically configured to:
  • the RLC receiving entity is established by the RLC layer
  • the RLC setting conditions include one or a combination of the following conditions:
  • the transmission message is a unicast message
  • the LCID of the transmission message is 0 or 1 or 2;
  • the transmission message is the first transmission message between the layer 2 unicast connection address adopted by the first terminal and the layer 2 unicast connection address of the second terminal;
  • the transmitted message has no corresponding RLC receiving entity.
  • the establishment of the RLC receiving entity through the RLC layer includes one or a combination of the following actions:
  • the reception of the transmission message is accomplished through the RLC layer.
  • the establishment unit 1102 may be specifically configured to:
  • the higher layer is an application layer or a V2X layer
  • the PDCP setting conditions include one or a combination of the following conditions:
  • the transmission message is a unicast message
  • the LCID of the transmission message is 0 or 1 or 2;
  • the transmission message is the first transmission message between the layer 2 unicast connection address adopted by the first terminal and the layer 2 unicast connection address of the second terminal;
  • the transport message has no corresponding PDCP receiving entity.
  • the establishment of the PDCP receiving entity through the PDCP layer includes one or a combination of the following actions:
  • the receiving of the transmission message is completed through the PDCP layer.
  • the establishment unit 1102 may be specifically configured to:
  • the transmission message is processed according to a broadcast type or a multicast type message, and the logic is established by the MAC layer channel, and send indication information to the RRC layer;
  • the establishment unit 1102 may be specifically configured to:
  • the RRC layer After the RRC layer receives the message sending request from the high layer, if the message sending request indicates to send a unicast PC5-S message to the first terminal, then indicate the PDCP layer of the first terminal through the RRC layer Establishing a PDCP sending entity and a PDCP receiving entity, and instructing the RLC layer of the first terminal to establish an RLC sending entity and an RLC receiving entity, and establishing a sending logical channel and a receiving logical channel.
  • a second setting unit 1201 may also be included, as shown in FIG. 12 , the second setting unit 1201 may specifically be used for:
  • the RRC layer After the RRC layer receives the message sending request from the high layer, if the message sending request indicates to send a PC5-S message of unicast type to the first terminal, the PC5-S message is propagated through the RRC layer
  • the type is set as a broadcast type or a multicast type; the upper layer is an application layer or a V2X layer.
  • the embodiment of the present application also provides a terminal.
  • the terminal can execute any one of the communication methods implemented in the foregoing embodiments.
  • a terminal is provided, as shown in FIG. 13 , the terminal includes a receiving unit 1301 and an establishing unit 1302; wherein:
  • the receiving unit 1301 is configured to receive a transmission message sent by the first terminal
  • the establishment unit 1302 when determining that the transmission message satisfies the following conditions, sends the MAC PDU decoded by the transmission message to the disassembly and demultiplexing entity through the MAC layer, and sends it to the RLC layer;
  • the conditions include:
  • the transmission message is a unicast message
  • the transmission message is a PC5-S message
  • the transmission message is a message sent by the first terminal to the second terminal for the first time.
  • the establishment unit 1302 may be specifically configured to:
  • the transmission message is a PC5-S message.
  • the transmission message is the first message sent by the first terminal to the second terminal in the following manner:
  • the second terminal determines that the transmission message is A message sent by the first terminal to the second terminal for the first time.
  • the conditions also include:
  • the destination address identifier of the transmission message is the same as the address identifier of the second terminal.
  • the method also includes:
  • the establishment of the RLC receiving entity includes one or a combination of the following actions:
  • the reception of the transmission message is accomplished through the RLC layer.
  • the method also includes:
  • a PDCP receiving entity is established.
  • the establishment of a PDCP receiving entity includes one or a combination of the following actions:
  • the receiving of the transmission message is completed through the PDCP layer.
  • the method also includes:
  • the transmission message is sent to a higher layer through the PDCP layer; the higher layer is an application layer or a V2X layer.
  • FIG. 14 shows a schematic structural diagram of the terminal provided by the embodiment of the present application, that is, shows another schematic structural diagram of the terminal.
  • the terminal includes a processor 1401 , a memory 1402 and a transceiver 1403 .
  • the processor 1401 is responsible for managing the bus architecture and general processing, and the memory 1402 can store data used by the processor 1401 when performing operations.
  • the transceiver 1403 is used to receive and transmit data under the control of the processor 1401.
  • the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by the processor 1401 and various circuits of the memory represented by the memory 1402 are linked together.
  • the bus architecture can also link together various other circuits such as peripherals, voltage regulators, and power management circuits, etc., which are well known in the art and therefore will not be further described herein.
  • the bus interface provides the interface.
  • the processor 1401 is responsible for managing the bus architecture and general processing, and the memory 1402 can store data used by the processor 1401 when performing operations.
  • the process disclosed in the embodiment of the present application may be applied to the processor 1401 or implemented by the processor 1401 .
  • each step of the signal processing flow may be completed by an integrated logic circuit of hardware in the processor 1401 or instructions in the form of software.
  • the processor 1401 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may realize or execute the The disclosed methods, steps and logical block diagrams.
  • a general purpose processor may be a microprocessor or any conventional processor or the like.
  • the steps of the methods disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
  • the software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register.
  • the storage medium is located in the memory 1402, and the processor 1401 reads the information in the memory 1402, and completes the steps of the signal processing process in combination with its hardware.
  • the processor 1401 is configured to read the computer program in the memory 1402, and when the processor 1401 executes the computer program, realize:
  • the propagation type of the PC5-S message is a unicast message
  • the propagation type of the PC5-S message is set to a broadcast type or a multicast type
  • the processor 1401 is specifically configured to:
  • the propagation type of the PC5-S message is indicated as a broadcast type or a multicast type by a high layer; the high layer is an application layer or a V2X layer;
  • the processor 1401 is specifically configured to:
  • the propagation type of the PC5-S message is set to a broadcast type or a multicast type through the RRC layer; the message sending request indicates sending the message to the second terminal The PC5-S message; the high layer is the application layer or the V2X layer.
  • processor 1401 is further configured to:
  • the RRC layer After the RRC layer receives the message sending request from the upper layer, the RRC layer establishes a PDCP sending entity and a PDCP receiving entity, an RLC sending entity and an RLC receiving entity, and a sending logical channel and a receiving logical channel.
  • the first unicast PC5-S message includes the first PC5-S message sent by the first terminal to the second terminal using the new layer 2 unicast connection address.
  • the PC5-S message is direct link establishment request information, direct link authentication request information or direct link security mode control command information.
  • the embodiment of the present application also provides a terminal.
  • the terminal can execute any one of the communication methods implemented in the foregoing embodiments.
  • FIG. 15 shows a schematic structural diagram of the terminal provided by the embodiment of the present application, that is, shows another schematic structural diagram of the terminal.
  • the terminal includes a processor 1501 , a memory 1502 and a transceiver 1503 .
  • the processor 1501 is responsible for managing the bus architecture and general processing, and the memory 1502 can store data used by the processor 1501 when performing operations.
  • the transceiver 1503 is used to receive and transmit data under the control of the processor 1501 .
  • the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by the processor 1501 and various circuits of the memory represented by the memory 1502 are linked together.
  • the bus architecture can also link together various other circuits such as peripherals, voltage regulators, and power management circuits, all of which are well known in the art and therefore will not be further described herein.
  • the bus interface provides the interface.
  • the processor 1501 is responsible for managing the bus architecture and general processing, and the memory 1502 can store data used by the processor 1501 when performing operations.
  • the processes disclosed in the embodiments of the present application may be applied to the processor 1501 or implemented by the processor 1501 .
  • each step of the signal processing flow may be completed by an integrated logic circuit of hardware in the processor 1501 or instructions in the form of software.
  • the processor 1501 may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the The disclosed methods, steps and logical block diagrams.
  • a general purpose processor may be a microprocessor or any conventional processor or the like.
  • the steps of the methods disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
  • the software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register.
  • the storage medium is located in the memory 1502, and the processor 1501 reads the information in the memory 1502, and completes the steps of the signal processing process in combination with its hardware.
  • the processor 1501 is configured to read the computer program in the memory 1502, and when the processor 1501 executes the computer program, realize:
  • the transmission message is a PC5-S message of the unicast type sent by the new terminal
  • the transmission message is processed according to a broadcast type or a multicast type message, and a corresponding PDCP receiving entity, RLC receiving entity and logic are established channel
  • the new terminal is a direct communication terminal that sends a transmission message to the second terminal for the first time, or a direct communication terminal that has not established a PC-S unicast connection with the second terminal, or uses a new layer 2 unicast
  • the connection address is the direct communication terminal that first sends the transfer message to the second terminal.
  • the processor 1501 determines whether the transmission message is a unicast PC5-S message sent by the new terminal in the following manner:
  • the setting conditions include one or a combination of the following conditions:
  • the transmission message is a unicast message
  • the LCID of the transmission message is 0 or 1 or 2;
  • the transmission message is a message sent to the second terminal for the first time using a new layer 2 unicast connection address
  • the destination address identifier of the transmission message is the same as the address identifier of the second terminal;
  • the current moment is within the valid time corresponding to the transmission message.
  • the processor 1501 is specifically configured to:
  • the transmission message is processed according to a broadcast type or a multicast type message, and the logic is established by the MAC layer channel, and send the transport message to the RLC layer;
  • the PDCP receiving entity is established through the PDCP layer.
  • the processor 1501 is specifically configured to:
  • the RLC receiving entity is established by the RLC layer
  • the RLC setting conditions include one or a combination of the following conditions:
  • the transmission message is a unicast message
  • the LCID of the transmission message is 0 or 1 or 2;
  • the transmission message is the first transmission message between the layer 2 unicast connection address adopted by the first terminal and the layer 2 unicast connection address of the second terminal;
  • the transmitted message has no corresponding RLC receiving entity.
  • the establishment of the RLC receiving entity through the RLC layer includes one or a combination of the following actions:
  • the reception of the transmission message is accomplished through the RLC layer.
  • the processor 1501 is specifically configured to:
  • the higher layer is an application layer or a V2X layer
  • the PDCP setting conditions include one or a combination of the following conditions:
  • the transmission message is a unicast message
  • the LCID of the transmission message is 0 or 1 or 2;
  • the transmission message is the first transmission message between the layer 2 unicast connection address adopted by the first terminal and the layer 2 unicast connection address of the second terminal;
  • the transport message has no corresponding PDCP receiving entity.
  • the establishment of the PDCP receiving entity through the PDCP layer includes one or a combination of the following actions:
  • the receiving of the transmission message is completed through the PDCP layer.
  • the processor 1501 is specifically configured to:
  • the transmission message is processed according to a broadcast type or a multicast type message, and the logic is established by the MAC layer channel, and send indication information to the RRC layer;
  • processor 1501 is further configured to:
  • the RRC layer After the RRC layer receives the message sending request from the high layer, if the message sending request indicates to send a PC5-S message of unicast type to the first terminal, the PC5-S message is propagated through the RRC layer
  • the type is set as a broadcast type or a multicast type; the upper layer is an application layer or a V2X layer.
  • processor 1501 is further configured to:
  • the RRC layer After the RRC layer receives the message sending request from the high layer, if the message sending request indicates to send a unicast type PC5-S message to the first terminal, establish a PDCP sending entity and a PDCP receiving entity through the RRC layer, An RLC sending entity and an RLC receiving entity, and a sending logical channel and a receiving logical channel.
  • an embodiment of the present application provides a computer-readable storage medium, which enables the processor to execute any one of the resource reservation methods implemented in the foregoing embodiments when the instructions in the storage medium are executed by the processor.
  • the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions
  • the device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请提供了一种通信方法及终端,涉及无线通信技术领域。本申请通过第一终端将向第二终端发送的第一条单播类型的PC5-S消息设置为广播类型或组播类型,使第二终端可以为PC5-S消息建立相应的PDCP接收实体、RLC接收实体和逻辑信道的方式,或者,通过第二终端在确定传输消息为新终端发送的单播类型的PC5-S消息后,将所述传输消息按照广播类型或组播类型的消息来处理,建立相应的分组数据汇聚协议PDCP接收实体、无线链路层控制协议RLC接收实体和逻辑信道的方式,有助于解决第二终端无法针对单播消息建立相应的PDCP接收实体、RLC接收实体和逻辑信道的问题,有利于终端对PC5-S消息的接收。

Description

一种通信方法及终端
相关申请的交叉引用
本申请要求在2021年11月29日提交中国专利局、申请号为202111437489.5、申请名称为“一种通信方法及终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及无线通信技术领域,特别涉及一种通信方法及终端。
背景技术
车辆到一切的互联(Vehicle to Everything,V2X)主要研究车联网消息传输方案。在V2X技术中,当终端设备(User Equipment,UE)发起业务时,发送端可以通过高层的触发,建立相应的分组数据汇聚协议(Packet Data Convergence Protocol,PDCP)发送实体、无线链路层控制(Radio Link Control,RLC)和逻辑信道,完成对PC5-S消息的发送;
而对于接收端,只有当PC5-S消息为广播消息或组播消息时,接收端才可以在首次收到来自于新的层2连接地址时建立相应的PDCP接收实体、RLC接收和逻辑信道。
发明内容
本申请实施例提供一种通信方法及终端,在发送端首次发送单播类型的PC5-S消息时,接收端也可以完成对该PC5-S消息的接收。
第一方面,本申请实施例提供一种通信方法,应用于第一终端,所述方法包括:
确定向第二终端发送的第一条单播类型的PC5-S消息;
如果所述PC5-S消息的传播类型为单播消息,将所述PC5-S消息的传播 类型设置为广播类型或组播类型;
发送所述PC5-S消息。
本申请实施例提供的通信方法及终端,第一终端在向第二终端发送第一条单播类型的PC5-S消息前,可以先将PC5-S消息的传播类型设置为广播类型或组播类型,再发送该PC5-S消息,以使第二终端在接收到PC5-S消息后,可以为PC5-S消息建立相应的PDCP接收实体、RLC接收实体和逻辑信道。因此,本申请实施例提供的通信方法,有助于解决第二终端无法针对单播消息建立相应的PDCP接收实体、RLC接收实体和逻辑信道的问题,有利于终端对PC5-S消息的接收。
在一种可选的实施例中,所述将所述PC5-S消息的传播类型设置为广播类型或组播类型,包括:
通过高层将所述PC5-S消息的传播类型指示为广播类型或组播类型;所述高层为应用层或V2X层;
基于所述高层的指示,通过媒体接入控制MAC层,将所述PC5-S消息对应的直通链路控制信息SCI域中的信息类型设置为广播类型或组播类型。
在一种可选的实施例中,所述将所述待发送消息的传播类型设置为广播类型或组播类型,包括:
在无线资源控制RRC层接收到高层的消息发送请求时,通过所述RRC层将所述PC5-S消息的传播类型设置为广播类型或组播类型;所述消息发送请求指示向所述第二终端发送所述PC5-S消息;所述高层为应用层或V2X层。
在一种可选的实施例中,所述方法还包括:
在RRC层接收到高层的所述消息发送请求之后,通过所述RRC层建立PDCP发送实体和PDCP接收实体,RLC发送实体和RLC接收实体,以及发送逻辑信道和接收逻辑信道。
在一种可选的实施例中,所述第一条单播类型的PC5-S消息包括所述第一终端采用新的层2单播连接地址首次向所述第二终端发送的PC5-S消息;所述PC5-S消息为直通链路建立请求信息、直通链路鉴权请求信息或直通链 路安全模式控制命令信息。
第二方面,本申请实施例提供一种通信方法,应用于第二终端,所述方法包括:
接收第一终端发送的传输消息;
若确定所述传输消息为新终端发送的单播类型的PC5-S消息,则将所述传输消息按照广播类型或组播类型的消息来处理,建立相应的PDCP接收实体、RLC接收实体和逻辑信道;所述新终端为首次向所述第二终端发送传输消息的直接通信终端,或与所述第二终端未建立PC-S单播连接的直接通信终端,或采用新的层2单播连接地址首次向所述第二终端发送传输消息的直接通信终端。
本申请实施例提供的通信方法及终端,第二终端在确定传输消息为新终端发送的单播类型的PC5-S消息后,将所述传输消息按照广播类型或组播类型的消息来处理,建立相应的PDCP接收实体、RLC接收实体和逻辑信道。因此,本申请实施例提供的通信方法,有助于解决第二终端无法针对单播消息建立相应的PDCP接收实体、RLC接收实体和逻辑信道的问题,有利于第二终端对单播消息的接收。
在一种可选的实施例中,通过如下方式确定所述传输消息是否为新终端发送的单播类型的PC5-S消息:
若所述传输消息满足设定条件,则确定所述传输消息为新终端发送的单播类型的PC5-S消息;所述设定条件包含如下条件之一或组合:
所述传输消息为单播消息;
所述传输消息的逻辑信道标识LCID为0或1或2;
所述传输消息是采用新的层2单播连接地址首次向所述第二终端发送的消息;
所述传输消息的目的地址标识与所述第二终端的地址标识相同;
当前时刻处于所述传输消息对应的有效时间内。
在一种可选的实施例中,通过如下方式确定所述传输消息是所述第一终 端首次向所述第二终端发送的消息:
若所述第二终端中没有保存所述第一终端的标识,和/或,所述第二终端在设定时间内未接收到所述第一终端发送的消息,则确定所述传输消息是所述第一终端首次向所述第二终端发送的消息。
在一种可选的实施例中,所述若确定所述传输消息为新终端发送的单播类型的PC5-S消息,则将所述传输消息按照广播类型或组播类型的消息来处理,建立相应的PDCP接收实体、RLC接收实体和逻辑信道;包括:
若通过MAC层确定所述传输消息为新终端发送的单播类型的PC5-S消息,则通过所述MAC层建立所述逻辑信道,并将所述传输消息发送至RLC层;
通过所述RLC层建立所述RLC接收实体,并通过所述RLC层将所述传输消息发送至PDCP层;
通过所述PDCP层建立所述PDCP接收实体。
在一种可选的实施例中,所述通过所述RLC层建立所述RLC接收实体,包括:
若通过所述RLC层确定所述传输消息满足RLC设定条件,则通过所述RLC层建立所述RLC接收实体;
所述RLC设定条件包含如下条件之一或组合:
所述传输消息为单播消息;
所述传输消息的LCID为0或1或2;
所述传输消息为所述第一终端采用新的层2单播连接地址与所述第二终端的层2单播连接地址之间的第一条传输消息;
所述传输消息没有相应的RLC接收实体。
在一种可选的实施例中,所述通过所述RLC层建立所述RLC接收实体,包括如下行为之一或组合:
通过所述RLC层建立所述RLC接收实体;
通过所述RLC层初始化所述RLC接收实体的状态变量;
通过所述RLC层完成对所述传输消息的接收。
在一种可选的实施例中,所述通过所述PDCP层建立所述PDCP接收实体,包括:
若通过所述PDCP层确定所述传输消息满足PDCP设定条件,则通过所述PDCP层建立所述PDCP接收实体;
通过所述PDCP层将所述传输消息发送至高层;所述高层为应用层或V2X层;
所述PDCP设定条件包含如下条件之一或组合:
所述传输消息为单播消息;
所述传输消息的逻辑信道标识LCID为0或1或2;
所述传输消息为所述第一终端采用新的层2单播连接地址与所述第二终端的层2单播连接地址之间的第一条传输消息;
所述传输消息没有相应的PDCP接收实体。
在一种可选的实施例中,所述通过所述PDCP层建立所述PDCP接收实体,包括如下行为之一或组合:
通过所述PDCP层建立所述PDCP接收实体;
通过所述PDCP层初始化所述PDCP接收实体的状态变量;
通过所述PDCP层完成对所述传输消息的接收。
在一种可选的实施例中,所述若确定所述传输消息为新终端发送的单播类型的PC5-S消息,则将所述传输消息按照广播类型或组播类型的消息来处理,建立相应的PDCP接收实体、RLC接收实体和逻辑信道;包括:
若通过MAC层确定所述传输消息为新终端发送的单播类型的PC5-S消息,则将所述传输消息按照广播类型或组播类型的消息来处理,通过所述MAC层建立所述逻辑信道,并向无线资源控制RRC层发送指示信息;
基于所述指示信息,通过所述RRC层建立所述PDCP接收实体和所述RLC接收实体。
在一种可选的实施例中,所述方法还包括:
在RRC层接收到高层的消息发送请求之后,若所述消息发送请求指示向 所述第一终端发送单播类型的PC5-S消息,则通过所述RRC层将所述PC5-S消息的传播类型设置为广播类型或组播类型;所述高层为应用层或V2X层。
在一种可选的实施例中,所述方法还包括:
在RRC层接收到高层的消息发送请求之后,若所述消息发送请求指示向所述第一终端发送单播类型的PC5-S消息,则通过所述RRC层建立PDCP发送实体和PDCP接收实体,RLC发送实体和RLC接收实体,以及发送逻辑信道和接收逻辑信道。
第三方面,本申请实施例提供一种通信方法,应用于第二终端,所述方法包括:
接收第一终端发送的传输消息;
确定所述传输消息满足以下条件时,将所述传输消息解码后的MAC PDU通过MAC层发送至解组装和解复用实体,并发送至RLC层;
其中,所述条件包括:
所述传输消息为单播消息;
所述传输消息为PC5-S消息;
所述传输消息是第一终端首次向所述第二终端发送的消息。
本申请实施例提供的通信方法及终端,第二终端在确定传输消息为第一终端首次发送的单播类型的PC5-S消息后,将所述传输消息解码后的MAC PDU通过MAC层发送至解组装和解复用实体,并发送至RLC层。因此,本申请实施例提供的通信方法,有利于第二终端对第一终端首次发送的单播类型的PC5-S消息的接收。
在一种可选的实施例中,通过如下方式确定所述传输消息为PC5-S消息:
若所述传输消息的逻辑信道标识为0或1或2,则确定所述传输消息为PC5-S消息。
在一种可选的实施例中,通过如下方式确定所述传输消息是所述第一终端首次向所述第二终端发送的消息:
若所述第二终端中没有保存所述第一终端的标识,和/或,所述第二终端 在设定时间内未接收到所述第一终端发送的消息,则确定所述传输消息是所述第一终端首次向所述第二终端发送的消息。
在一种可选的实施例中,所述条件还包括:
所述传输消息的目的地址标识与所述第二终端的地址标识相同。
在一种可选的实施例中,所述方法还包括:
如果所述传输消息没有相应的RLC接收实体,则建立RLC接收实体,并通过所述RLC层将所述传输消息发送至PDCP层。
在一种可选的实施例中,所述建立RLC接收实体,包括如下行为之一或组合:
通过所述RLC层建立所述RLC接收实体;
通过所述RLC层初始化所述RLC接收实体的状态变量;
通过所述RLC层完成对所述传输消息的接收。
在一种可选的实施例中,所述方法还包括:
如果所述传输消息没有相应的PDCP接收实体,则建立PDCP接收实体。
在一种可选的实施例中,所述建立PDCP接收实体,包括如下行为之一或组合:
通过所述PDCP层建立所述PDCP接收实体;
通过所述PDCP层初始化所述PDCP接收实体的状态变量;
通过所述PDCP层完成对所述传输消息的接收。
在一种可选的实施例中,所述方法还包括:
通过所述PDCP层将所述传输消息发送至高层;所述高层为应用层或V2X层。
第四方面,本申请实施例提供一种终端,包括:
第一设置单元,确定向第二终端发送的第一条单播类型的PC5-S消息;如果所述PC5-S消息的传播类型为单播消息,将所述PC5-S消息的传播类型设置为广播类型或组播类型;
发送单元,发送所述PC5-S消息。
第五方面,本申请实施例提供一种终端,包括:存储器、收发机以及处理器;
所述存储器,用于存储计算机指令;
所述收发机,用于在所述处理器的控制下收发数据;
所述处理器,用于读取所述存储器中的计算机程序并执行上述第一方面所述的方法。
第六方面,本申请实施例提供一种终端,包括:
接收单元,接收第一终端发送的传输消息;
建立单元,若确定所述传输消息为新终端发送的单播类型的PC5-S消息,则将所述传输消息按照广播类型或组播类型的消息处理,建立相应的PDCP接收实体、RLC接收实体和逻辑信道;所述新终端为首次向所述第二终端发送传输消息的直接通信终端,或与所述第二终端未建立PC-S单播连接的直接通信终端,或采用新的层2单播连接地址首次向所述第二终端发送传输消息的直接通信终端。
第七方面,本申请实施例提供一种终端,包括:
接收单元,接收第一终端发送的传输消息;
建立单元,确定所述传输消息满足以下条件时,将所述传输消息解码后的MAC PDU通过MAC层发送至解组装和解复用实体,并发送至RLC层;
其中,所述条件包括:
所述传输消息为单播消息;
所述传输消息为PC5-S消息;
所述传输消息是第一终端首次向所述第二终端发送的消息。
第八方面,本申请实施例提供一种终端,包括:存储器、收发机以及处理器;
所述存储器,用于存储计算机指令;
所述收发机,用于在所述处理器的控制下收发数据;
所述处理器,用于读取所述存储器中的计算机程序并执行上述第二方面 或第三方面所述的方法。
第九方面,本申请实施例提供一种计算机可读存储介质,所述存储介质存储有计算机指令,所述计算机指令被处理器执行时实现如第一方面、第二方面和第三方面中任一项所述的方法。
第四方面至第九方面中任意一种实现方式所带来的技术效果可参见第一方面、第二方面和第三方面中对应的实现方式所带来的技术效果,此处不再赘述。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例适用的通信系统的结构示意图;
图2为本申请实施例提供的一种通信方法的交互流程示意图;
图3为现有技术中第一终端向第二终端发送单播的直通链路建立请求信息的应用场景图;
图4为现有技术中第一终端向第二终端发送单播的直通链路鉴权请求信息的应用场景图;
图5为现有技术中第一终端向第二终端发送单播的直通链路安全模式控制命令信息的应用场景图;
图6为本申请实施例提供的另一种通信方法的交互流程示意图;
图7为本申请实施例提供的一种通信方法的流程示意图;
图8为本申请实施例提供的一种通信方法的流程示意图;
图9为本申请实施例提供的一种通信方法的流程示意图;
图10为本申请实施例提供的一种第一终端的结构框图;
图11为本申请实施例提供的一种第二终端的结构框图;
图12为本申请实施例提供的另一种第二终端的结构框图;
图13为本申请实施例提供的另一种第二终端的结构框图;
图14为本申请实施例提供的一种终端设备的结构示意图;
图15为本申请实施例提供的一种终端设备的结构示意图。
具体实施方式
下面结合附图对本申请的具体实施方式进行详细的说明。应当理解的是,此处所描述的具体实施方式仅用于说明和解释本申请,并不用于限制本申请。
需要说明的是,本申请实施例中的“第一”、“第二”用于区别类似的对象,而不是用于描述特定的顺序或先后次序。本申请实施例中的“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。
本申请实施例描述的网络架构以及业务场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。
图1为本申请实施例适用的一种通信网络的结构示意图。该通信网络可以是V2X网络,或者说是V2X网络中的一部分。V2X网络包括车车通信(Vehicle to Vehicle,V2V)、车人通信(Vehicle to Pedestrian,V2P)、车路通信(Vehicle to Infrastructure,V2I)及车网通信(Vehicle to Network,V2N)等通信方式。其中,V2P通信的一端可以是用户终端设备(Person-User Equipment,P-UE),另一端可以是车载终端设备(Vehicle-User Equipment,V-UE),例如图1中所示的P-UE200和V-UE300。通信网络中还可以包括网络侧设备100。P-UE200和V-UE300均可通过无线网络与网络侧设备100连接。
其中,网络侧设备100,是一种为终端提供无线通信功能的设备,包括但 不限于:5G中的gNB、无线网络控制器(radio network controller,RNC)、节点B(node B,NB)、基站控制器(base station controller,BSC)、基站收发台(base transceiver station,BTS)、家庭基站(例如,home evolved nodeB,或home node B,HNB)、基带单元(BaseBand Unit,BBU)、传输点(transmitting and receiving point,TRP)、发射点(transmitting point,TP)、移动交换中心等。网络侧设备100还可以是未来可能出现的其他通信系统中为终端提供无线通信功能的设备。
P-UE200,可以是一种具有无线通信功能的设备,可以是手机(mobile phone)、平板电脑(pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端、增强现实(augmented reality,AR)终端、工业控制(industrial control)中的无线终端等。V-UE300,可以是无人驾驶(self driving)中的车载终端等。P-UE200和V-UE300均可以向用户提供语音和/或数据连通,具有无线连接功能,可以连接到无线调制解调器等。P-UE200和V-UE300可以经网络侧设备100与一个或多个核心网进行通信。
在V2X技术中,当UE发起业务时,发送端可以通过高层的触发,建立相应的PDCP发送实体、RLC和逻辑信道,完成对PC5-S消息的发送;而在接收端,只有当PC5-S消息为广播消息或组播消息时,才可以在首次收到来自于新的层2连接地址时建立相应的PDCP接收实体、RLC接收和逻辑信道。
基于此,本申请实施例提供了一种通信方法及终端,第一终端在向第二终端发送第一条单播类型的PC5-S消息前,可以先将PC5-S消息的传播类型设置为广播类型或组播类型,然后向第二终端发送该PC5-S消息;第二终端在接收到PC5-S消息后,可以为PC5-S消息建立相应的PDCP接收实体、RLC接收实体和逻辑信道。可以帮助第二终端针对单播消息建立相应的PDCP接收实体、RLC接收实体和逻辑信道,进而完成对PC5-S单播消息的接收。
图2示出了本申请实施例提供的一种通信方法的交互流程图。该方法由第一终端和第二终端执行,如图2所示,该方法包括以下步骤:
步骤S201,如果第一终端确定向第二终端发送的第一条单播类型的 PC5-S消息为单播消息,将PC5-S消息的传播类型设置为广播类型或组播类型。
PC5-S消息指在建立直通链路连接的过程中,两个终端之间发送的信令消息。在建立直通链路之后,两个终端之间发送数据的消息可以称为PC5-RRC消息。
在一种可选的实施方式中,第一条单播类型的PC5-S消息包括第一终端采用新的层2单播连接地址首次向第二终端发送的PC5-S消息;其中,PC5-S消息可以为直通链路建立请求信息,可以为直通链路鉴权请求信息,也可以为直通链路安全模式控制命令信息。
在一种可选的实施方式中,第一终端可以通过高层将PC5-S消息的传播类型指示为广播类型或组播类型;其中,第一终端的高层可以为第一终端的应用层或V2X层;基于高层的指示,第一终端可以通过媒体接入控制(Medium Access Control,MAC)层,将PC5-S消息对应的直通链路控制信息(Sidelink Control Information,SCI)域中的信息类型设置为广播类型或组播类型。
步骤S202,第一终端向第二终端发送PC5-S消息。
步骤S203,第二终端为PC5-S消息建立相应的PDCP接收实体、RLC接收实体和逻辑信道。
具体地,在一种实施例中,以PC5-S消息为直通链路建立请求信息为例进行说明。图3为现有技术中第一终端向第二终端发送单播的直通链路建立请求信息的应用场景图,如图3所示,UE_1为第一终端,UE_2为第二终端,UE_1和UE_2中均可以包含物理层、MAC层、RLC层、PDCP层、无线资源控制(Radio Resource Control,RRC)层和高层,其中,高层可以为非接入(Non-access stratum,NAS)层,如应用层或V2X层。
在现有技术中,当UE_1向UE_2发送单播的直通链路建立请求信息时,UE_2的MAC层无法向高层提交数据包,PDCP层和RLC层也无法相应的建立PDCP接收实体和RLC接收实体以及相应的接收逻辑信道,导致第二终端无法完成对单播的直通链路建立请求信息的接收。
在本申请提供的实施例中,UE_1在向UE_2发送第一条单播类型的PC5-S消息,即第一条单播类型的直通链路建立请求信息时,UE_1可以通过高层将该单播类型的PC5-S消息指示为广播类型或组播类型;然后通过高层向RRC层发送消息发送请求;其中,消息发送请求指示向UE_2发送PC5-S消息;在RRC层接收到消息发送请求后,UE_1可以通过RRC层指示RLC层建立RLC发送实体,指示PDCP层建立PDCP发送实体,RRC层将消息发送请求发送至MAC层,以使MAC层建立发送逻辑信道,并基于高层的指示,将与PC5-S消息对应的SCI域中的信息类型设置为广播类型或组播类型,然后通过MAC层将消息发送请求发送至物理层,通过物理层将PC5-S消息发送至UE_2。
UE_2通过物理层接收到被设置为广播类型或组播类型的PC5-S消息后,可以通过MAC层建立接收逻辑信道,并将该PC5-S消息发送至RLC层建立RLC接收实体,发送至PDCP层建立PDCP接收实体,以使该PC5-S消息可以通过RRC层发送至UE_2的高层。
在另一种实施例中,以PC5-S消息为直通链路鉴权请求信息为例进行说明,图4为现有技术中第一终端向第二终端发送单播的直通链路鉴权请求信息的应用场景图,如图4所示,UE_1为第二终端,UE_2a为第一终端。在现有技术中,当UE_2a向UE_1发送单播的直通链路鉴权请求信息时,UE_1的MAC层无法向高层提交数据包,无法建立接收逻辑信道,PDCP层和RLC层也无法相应的建立PDCP接收实体和RLC接收实体,导致UE_1无法完成对单播的直通链路建立请求信息的接收。
在本申请提供的实施例中,UE_2a、UE_2b和UE_2c在接收到UE_1发送的广播类型的直通链路建立请求信息的数据包时,将数据包中包含的目标地址与自身地址进行比较,假设UE_1发送的数据包中包含的目标地址与UE_2a的地址相同,UE_2a在接收到该直通链路建立请求信息,向UE_1发送第一条单播类型的PC5-S消息,即第一条单播类型的直通链路鉴权请求信息时,UE_2a可以通过高层将该单播类型的PC5-S消息指示为广播类型或组播 类型;然后通过高层向RRC层发送消息发送请求;其中,消息发送请求指示向UE_1发送PC5-S消息;在RRC层接收到消息发送请求后,UE_2a可以通过RRC层指示RLC层建立RLC发送实体,PDCP层建立PDCP发送实体,RRC层将消息发送请求发送至MAC层,以使MAC层建立发送逻辑信道,并基于高层的指示,将与PC5-S消息对应的SCI域中的信息类型设置为广播类型或组播类型,然后通过MAC层将消息发送请求发送至物理层,通过物理层将PC5-S消息发送至UE_1。
UE_1通过物理层接收到被设置为广播类型或组播类型的PC5-S消息后,可以通过MAC层建立接收逻辑信道,并将该PC5-S消息发送至RLC层建立RLC接收实体,发送至PDCP层建立PDCP接收实体,以使该PC5-S消息可以通过RRC层发送至UE_1的高层。
在另一种实施例中,以PC5-S消息为直通链路安全模式控制命令信息为例进行说明,图5为现有技术中第一终端向第二终端发送单播的直通链路安全模式控制命令信息的应用场景图,如图5所示,UE_1为第二终端,UE_2a为第一终端。在现有技术中,当UE_2a向UE_1发送单播的直通链路安全模式控制命令信息时,UE_1的MAC层无法向高层提交数据包,PDCP层和RLC层也无法相应的建立PDCP接收实体和RLC接收实体以及相应的接收逻辑信道,导致UE_1无法完成对单播的直通链路建立请求信息的接收。
在本申请提供的实施例中,UE_2a、UE_2b和UE_2c在接收到UE_1发送的广播类型的直通链路建立请求信息的数据包时,将数据包中包含的目标地址与自身地址进行比较,假设UE_1发送的数据包中包含的目标地址与UE_2a的地址相同,UE_2a在接收到该直通链路建立请求信息,向UE_1发送第一条单播类型的PC5-S消息,即第一条单播类型的直通链路安全模式控制命令信息时,UE_2a可以通过高层将该单播类型的PC5-S消息指示为广播类型或组播类型;然后通过高层向RRC层发送消息发送请求;其中,消息发送请求指示向UE_1发送PC5-S消息;在RRC层接收到消息发送请求后,UE_2a可以通过RRC层指示RLC层建立RLC发送实体,PDCP层建立PDCP发送 实体,RRC层将消息发送请求发送至MAC层,以使MAC层建立发送逻辑信道,并基于高层的指示,将与PC5-S消息对应的SCI域中的信息类型设置为广播类型或组播类型,然后通过MAC层将消息发送请求发送至物理层,通过物理层将PC5-S消息发送至UE_1。
UE_1通过物理层接收到被设置为广播类型或组播类型的PC5-S消息后,可以通过MAC层建立接收逻辑信道,并将该PC5-S消息发送至RLC层建立RLC接收实体,发送至PDCP层建立PDCP接收实体,以使该PC5-S消息可以通过RRC层发送至UE_1的高层。
在另一种可选的实施方式中,在RRC层接收到高层的消息发送请求时,第一终端可以通过RRC层将PC5-S消息的传播类型设置为广播类型或组播类型;其中,消息发送请求指示向第二终端发送PC5-S消息。
具体地,在一种实施例中,以PC5-S消息为直通链路建立请求信息为例进行说明,UE_1在向UE_2发送第一条单播类型的PC5-S消息,即第一条单播类型的直通链路建立请求信息时,UE_1可以通过高层将消息发送请求发送至RRC层;RRC层在接收到消息发送请求后,UE_1可以通过RRC层在将PC5-S消息的传播类型设置为广播类型或组播类型,并指示RLC层建立RLC发送实体,PDCP层建立PDCP发送实体,并通过MAC层建立相应的发送逻辑信道;然后通过MAC层将消息发送请求发送至物理层,通过物理层将PC5-S消息发送至UE_2。
UE_2通过物理层接收到被设置为广播类型或组播类型的PC5-S消息后,可以通过MAC层建立接收逻辑信道,并将该PC5-S消息发送至RLC层建立RLC接收实体,发送至PDCP层建立PDCP接收实体,以使该PC5-S消息可以通过RRC层发送至UE_2的高层。
当PC5-S消息为直通链路鉴权请求信息,或当PC5-S消息为直通链路安全模式控制命令信息时,第一终端和第二终端的执行步骤与上述执行步骤相似,此处将不再赘述。
在另一种可选的实施方式中,第一终端的RRC层在接收到高层的消息发 送请求之后,可以通过RRC层建立RLC发送实体和RLC接收实体,PDCP发送实体和PDCP接收实体,以及发送逻辑信道和接收逻辑信道。
图6示出了本申请实施例提供的另一种通信方法的交互流程图。该方法由第一终端和第二终端执行,如图6所示,该方法包括以下步骤:
步骤S601,第一终端向第二终端发送传输消息;
步骤S602,第二终端接收第一终端发送的传输消息;
步骤S603,第二终端若确定传输消息为新终端发送的单播类型的PC5-S消息,则将所述传输消息按照广播类型或组播类型的消息来处理,建立相应的PDCP接收实体、RLC接收实体和逻辑信道。
其中,新终端可以是首次向第二终端发送传输消息的直接通信终端,可以是与第二终端未建立PC5-S单播连接的直接通信终端,也可以是采用新的层2单播连接地址首次向第二终端发送传输消息的直接通信终端;其中,层2单播连接地址可以称为源层2标识(source Layer-2 ID),传输消息可以为直通链路建立请求信息,可以为直通链路鉴权请求信息,也可以为直通链路安全模式控制命令信息。
在一种可选的实施方式中,第二终端可以通过下述方式确定传输消息是否为新终端发送的单播类型的PC5-S消息:若传输消息满足设定条件,则确定传输消息为新终端发送的单播类型的PC5-S消息;其中,设定条件可以包含如下条件之一或组合:
1、传输消息为单播消息;
2、传输消息的逻辑信道标识(logical channel identity,LCID)为0或1或2;
3、传输消息是采用新的层2单播连接地址首次向第二终端发送的消息;
4、传输消息的目的地址标识与第二终端的地址标识相同;其中,目的地址标识可以称为目的层2标识(destination Layer-2 ID)。
5、当前时刻处于传输消息对应的有效时间内。
具体地,在一种实施例中,以传输消息为直通链路建立请求信息为例进 行说明,UE_1为第一终端,UE_2为第二终端,UE_1向UE_2发送传输消息后,UE_2通过物理层接收到UE_1发送的传输消息后,可以通过物理层将传输消息发送至MAC层,MAC层在接收到传输消息后,可以对传输消息进行解码得到协议数据单元(protocol data unit,PDU),然后判断该传输消息是否满足设定条件;示例性地,当该传输消息为单播消息;且该传输消息的LCID=0或LCID=1或LCID=2;且该传输消息是来自一个新的层2单播连接地址首次向UE_2发送的消息,且在该传输消息解码得到的MAC PDU的字头中,DST(destination)域与第一终端中某一个source Layer-2 ID的高8位相等,且该source Layer-2 ID的低16位与对应的SCI域中指示的destination Layer-2 ID相等,即该传输消息的目的地址标识与第二终端的地址标识相同;且当前时刻仍处于该传输消息对应的有效时间内时,UE_2可以通过MAC层将解码后的MAC PDU发送至解组装实体和解复用实体,并发送至RLC层。
在RLC层接收到PDU后,UE_2可以通过RLC层判断该PDU是否满足RLC设定条件,若该PDU满足RLC设定条件,则可以通过RLC层建立RLC接收实体,初始化RLC接收实体的状态变量,并通过RLC层完成对传输消息的接收。其中,RLC设定条件可以包含如下条件之一或组合:
1、传输消息为单播消息;
2、传输消息的LCID为0或1或2;
3、传输消息为第一终端采用新的层2单播连接地址与第二终端的层2单播连接地址之间的第一条传输消息;
4、传输消息没有相应的RLC接收实体。
示例性地,当UE_2可以通过RLC层判断该PDU为单播消息;且该PDU的LCID=0或LCID=1或LCID=2;且该PDU是来自一对L2 ID(一个source Layer-2 ID和一个destination Layer-2 ID)的第一个PDU,即该PDU是来自一个新的层2单播连接地址首次向UE_2的层2单播连接地址发送的消息,且该PDU没有相应的RLC接收实体时,UE_2就可以通过RLC层建立RLC接收实体,初始化RLC接收实体的状态变量,并通过RLC层完成对PDU的接收。
UE_2通过RLC层完成对PDU的接收后,可以通过RLC层将PDU发送至PDCP层,在PDCP层接收到PDU后,UE_2可以通过PDCP层判断该PDU是否满足PDCP设定条件,若该PDU满足PDCP设定条件,则可以通过PDCP层建立PDCP接收实体,初始化PDCP接收实体的状态变量,并通过PDCP层完成对传输消息的接收。其中,PDCP设定条件可以包含如下条件之一或组合:
1、传输消息为单播消息;
2、传输消息的LCID为0或1或2;
3、传输消息为第一终端采用新的层2单播连接地址与第二终端的层2单播连接地址之间的第一条传输消息;
4、传输消息没有相应的PDCP接收实体。
在一种可选的实施方式中,通过如下方式确定传输消息是第一终端首次向第二终端发送的消息:
若第二终端中没有保存第一终端的标识,和/或,第二终端在设定时间内未接收到第一终端发送的消息,则确定传输消息是第一终端首次向第二终端发送的消息。
示例性地,当UE_2可以通过PDCP层判断该PDU为单播消息;且该PDU的LCID=0或LCID=1或LCID=2;且该PDU是来自一个新的层2单播连接地址首次向UE_2的层2单播连接地址发送的消息,且该PDU没有相应的PDCP接收实体时,UE_2就可以通过PDCP层建立PDCP接收实体,初始化PDCP接收实体的状态变量,并通过PDCP层完成对传输消息的接收。
UE_2通过PDCP层完成对PDU的接收后,可以通过PDCP层将PDU提交至高层。
在另一种实施例中,以传输消息为直通链路鉴权请求信息为例进行说明,UE_1为第二终端,UE_2a为第一终端。具体地,UE_2a、UE_2b和UE_2c在接收到UE_1发送的广播类型的直通链路建立请求信息的数据包时,将数据包中包含的目标地址与自身地址进行比较,假设UE_1发送的数据包中包含的目 标地址与UE_2a的地址相同,UE_2a在接收到该直通链路建立请求信息后,生成直通链路鉴权请求信息,并将该直通链路鉴权请求信息作为传输消息发送至UE_1。
在一种可选的实施方式中,UE_2a在向UE_1发送传输消息前,可以通过高层向RRC层发送消息发送请求;该消息发送请求指示向UE_1发送传输消息;并通过RRC层指示RLC层建立RLC发送实体,指示PDCP层建立PDCP发送实体,然后将消息发送请求发送至MAC层,通过MAC层建立发送逻辑信道,并将消息发送请求发送至物理层,最后通过物理层将传输消息发送至UE_1。
UE_1通过物理层接收到UE_2a发送的传输消息后,可以通过物理层将传输消息发送至MAC层,MAC层在接收到传输消息后,可以对传输消息进行解码得到PDU,然后判断该传输消息是否满足设定条件;示例性地,当该传输消息为单播消息;且该传输消息的LCID=0或LCID=1或LCID=2;且该传输消息是来自一个新的层2单播连接地址首次向UE_2发送的消息,且在该传输消息解码得到的MAC PDU的字头中,DST域与第一终端中任一新的层2单播连接地址的高8位相等,且该层2单播连接地址的低16位与对应的SCI域中知识的目的层2连接地址相等,即该传输消息的目的地址标识与第二终端的地址标识相同;且当前时刻仍处于该传输消息对应的有效时间内时,UE_1可以通过MAC层将解码后的MAC PDU发送至解组装实体和解复用实体,并发送至RLC层。
在RLC层接收到PDU后,UE_1可以通过RLC层判断该PDU是否满足RLC设定条件,若UE_1通过RLC层判断该PDU为单播消息;且该PDU的LCID=0或LCID=1或LCID=2;且该PDU是来自一对L2 ID(一个source Layer-2 ID和一个destination Layer-2 ID)的第一个PDU,且该PDU没有相应的RLC接收实体时,UE_1就可以通过RLC层建立RLC接收实体,初始化RLC接收实体的状态变量,并通过RLC层完成对PDU的接收。
UE_1通过RLC层完成对PDU的接收后,可以通过RLC层将PDU发送 至PDCP层,在PDCP层接收到PDU后,UE_1可以通过PDCP层判断该PDU是否满足PDCP设定条件,若UE_1通过PDCP层判断该PDU为单播消息;且该PDU的LCID=0或LCID=1或LCID=2;且该PDU是来自一个新的层2单播连接地址首次向UE_1的层2单播连接地址发送的消息,且该PDU没有相应的PDCP接收实体时,UE_1就可以通过PDCP层建立PDCP接收实体,初始化PDCP接收实体的状态变量,并通过PDCP层完成对传输消息的接收。
UE_1通过PDCP层完成对PDU的接收后,可以通过PDCP层将PDU提交至高层。
在另一种实施例中,以传输消息为直通链路安全模式控制命令信息为例进行说明,UE_1为第二终端,UE_2a为第一终端。UE_2a、UE_2b和UE_2c在接收到UE_1发送的广播类型的直通链路建立请求信息的数据包时,将数据包中包含的目标地址与自身地址进行比较,假设UE_1发送的数据包中包含的目标地址与UE_2a的地址相同,UE_2a在接收到该直通链路建立请求信息后,生成直通链路安全模式控制命令信息,并将该直通链路安全模式控制命令信息作为传输消息发送至UE_1。
UE_1通过物理层接收到UE_2a发送的传输消息后,可以通过物理层将传输消息发送至MAC层,MAC层在接收到传输消息后,可以对传输消息进行解码得到PDU,然后判断该传输消息是否满足设定条件;示例性地,当该传输消息为单播消息;且该传输消息的LCID=0或LCID=1或LCID=2;且该传输消息是来自一个新的层2单播连接地址首次向UE_2发送的消息,且在该传输消息解码得到的MAC PDU的字头中,DST域与第一终端中任一新的层2单播连接地址的高8位相等,且该层2单播连接地址的低16位与对应的SCI域中知识的目的层2连接地址相等,即该传输消息的目的地址标识与第二终端的地址标识相同;且当前时刻仍处于该传输消息对应的有效时间内时,UE_1可以通过MAC层将解码后的MAC PDU发送至解组装实体和解复用实体,并发送至RLC层。
在RLC层接收到PDU后,UE_1可以通过RLC层判断该PDU是否满足 RLC设定条件,若UE_1通过RLC层判断该PDU为单播消息;且该PDU的LCID=0或LCID=1或LCID=2;且该PDU是来自一个新的层2单播连接地址首次向UE_1的层2单播连接地址发送的消息,且该PDU没有相应的RLC接收实体时,UE_1就可以通过RLC层建立RLC接收实体,初始化RLC接收实体的状态变量,并通过RLC层完成对PDU的接收。
UE_1通过RLC层完成对PDU的接收后,可以通过RLC层将PDU发送至PDCP层,在PDCP层接收到PDU后,UE_1可以通过PDCP层判断该PDU是否满足PDCP设定条件,若UE_1通过PDCP层判断该PDU为单播消息;且该PDU的LCID=0或LCID=1或LCID=2;且该PDU是来自一个新的层2单播连接地址首次向UE_1的层2单播连接地址发送的消息,且该PDU没有相应的PDCP接收实体时,UE_1就可以通过PDCP层建立PDCP接收实体,初始化PDCP接收实体的状态变量,并通过PDCP层完成对传输消息的接收。
UE_1通过PDCP层完成对PDU的接收后,可以通过PDCP层将PDU提交至高层。
在另一种可选的实施方式中,第二终端在通过MAC层确定传输消息为新终端发送的单播类型的PC5-S消息,可以将传输消息作为广播类型或组播类型的消息,通过MAC层建立接收逻辑信道,并向RRC层发送指示信息;基于指示信息,第二终端可以通过RRC层建立PDCP接收实体、RLC接收实体。
具体地,在一种实施例中,以传输消息为直通链路建立请求信息为例进行说明,UE_1向UE_2发送传输消息后,UE_2通过物理层接收到UE_1发送的传输消息后,可以通过物理层将传输消息发送至MAC层,MAC层在接收到传输消息后,可以对传输消息进行解码得到PDU,然后判断该传输消息是否满足设定条件;示例性地,当该传输消息为单播消息;且该传输消息的LCID=0或LCID=1或LCID=2;且该传输消息是来自一个新的层2单播连接地址首次向UE_2发送的消息,且在该传输消息解码得到的MAC PDU的字头中,DST域与第一终端中任一新的层2单播连接地址的高8位相等,且该层2单播连接地址的低16位与对应的SCI域中知识的目的层2连接地址相等,即 该传输消息的目的地址标识与第二终端的地址标识相同;且当前时刻仍处于该传输消息对应的有效时间内时,UE_2可以通过MAC层建立接收逻辑信道,并向RRC层发送指示信息,基于该指示信息,UE_2可以通过RRC层指示RLC层建立RLC接收实体、指示PDCP层建立PDCP接收实体。
在完成对接收逻辑信道、PDCP接收实体和RLC接收实体的建立后,UE_2可以通过RLC层和PDCP层完成对PDU的接收,并通过PDCP层将PDU提交至高层。
在另一种实施例中,以PC5-S消息为直通链路鉴权请求信息为例进行说明,UE_1为第二终端,UE_2a为第一终端。具体地,UE_2a、UE_2b和UE_2c在接收到UE_1发送的广播类型的直通链路建立请求信息的数据包时,将数据包中包含的目标地址与自身地址进行比较,假设UE_1发送的数据包中包含的目标地址与UE_2a的地址相同,UE_2a在接收到该直通链路建立请求信息后,生成直通链路鉴权请求信息,并将该直通链路鉴权请求信息作为传输消息发送至UE_1。
UE_1通过物理层接收到UE_2a发送的传输消息后,可以通过物理层将传输消息发送至MAC层,MAC层在接收到传输消息后,可以对传输消息进行解码得到PDU,然后判断该传输消息是否满足设定条件;示例性地,当该传输消息为单播消息;且该传输消息的LCID=0或LCID=1或LCID=2;且该传输消息是来自一个新的层2单播连接地址首次向UE_2发送的消息,且在该传输消息解码得到的MAC PDU的字头中,DST域与第一终端中任一新的层2单播连接地址的高8位相等,且该层2单播连接地址的低16位与对应的SCI域中知识的目的层2连接地址相等,即该传输消息的目的地址标识与第二终端的地址标识相同;且当前时刻仍处于该传输消息对应的有效时间内时,UE_1可以通过MAC层建立接收逻辑信道,并向RRC层发送指示信息,基于该指示信息,UE_1可以通过RRC层指示RLC层建立RLC接收实体、指示PDCP层建立PDCP接收实体。
在完成对PDCP接收实体、RLC接收实体和接收逻辑信道的建立后,UE_1 可以通过RLC层和PDCP层完成对PDU的接收,并通过PDCP层将PDU提交至高层。
在另一种实施例中,以PC5-S消息为直通链路安全模式控制命令信息为例进行说明,UE_1为第二终端,UE_2a为第一终端。具体地,UE_2a、UE_2b和UE_2c在接收到UE_1发送的广播类型的直通链路建立请求信息的数据包时,将数据包中包含的目标地址与自身地址进行比较,假设UE_1发送的数据包中包含的目标地址与UE_2a的地址相同,UE_2a在接收到该直通链路建立请求信息后,生成直通链路安全模式控制命令信息,并将该直通链路安全模式控制命令信息作为传输消息发送至UE_1。
UE_1通过物理层接收到UE_2a发送的传输消息后,可以通过物理层将传输消息发送至MAC层,MAC层在接收到传输消息后,可以对传输消息进行解码得到PDU,然后判断该传输消息是否满足设定条件;示例性地,当该传输消息为单播消息;且该传输消息的LCID=0或LCID=1或LCID=2;且该传输消息是来自一个新的层2单播连接地址首次向UE_2发送的消息,且在该传输消息解码得到的MAC PDU的字头中,DST域与第一终端中任一新的层2单播连接地址的高8位相等,且该层2单播连接地址的低16位与对应的SCI域中知识的目的层2连接地址相等,即该传输消息的目的地址标识与第二终端的地址标识相同;且当前时刻仍处于该传输消息对应的有效时间内时,UE_1可以通过MAC层建立接收逻辑信道,并向RRC层发送指示信息,基于该指示信息,UE_1可以通过RRC层指示RLC层建立RLC接收实体、指示PDCP层建立PDCP接收实体。
在完成对PDCP接收实体、RLC接收实体和接收逻辑信道的建立后,UE_1可以通过RLC层和PDCP层完成对PDU的接收,并通过PDCP层将PDU提交至高层。
在另一种可选的实施方式中,第二终端在RRC层接收到高层的消息发送请求之后,若消息发送请求指示向第一终端发送单播类型的PC5-S消息,则通过RRC层将PC5-S消息的传播类型设置为广播类型或组播类型;其中,高 层为应用层或V2X层。
示例性地,以PC5-S消息为直通链路安全模式控制命令信息为例进行说明,UE_2a、UE_2b和UE_2c在接收到UE_1发送的广播类型的直通链路建立请求信息的数据包时,将数据包中包含的目标地址与自身地址进行比较,假设UE_1发送的数据包中包含的目标地址与UE_2a的地址相同,UE_2a在接收到该直通链路建立请求信息后,生成单播类型的直通链路安全模式控制命令信息,并将该单播类型的PC5-S消息发送至UE_1。
UE_2a在向UE_1发送该PC5-S消息前,可以通过UE_2a的高层向UE_2a的RRC层发送消息发送请求,该消息发送请求指示向UE_1发送单播类型的PC5-S消息;在RRC层接收到高层的消息发送请求之后,UE_2a可以通过RRC层将PC5-S消息的传播类型设置为广播类型或组播类型,并指示RLC层建立RLC发送实体,指示PDCP层建立PDCP发送实体,然后通过MAC层建立发送逻辑信道,并将消息发送请求发送至物理层,通过物理层将PC5-S消息发送至UE_1。
UE_1通过物理层接收到被设置为广播类型或组播类型的PC5-S消息后,可以通过MAC层建立接收逻辑信道,并将该PC5-S消息发送至RLC层建立RLC接收实体,发送至PDCP层建立PDCP接收实体,以使该PC5-S消息可以通过RRC层发送至UE_1的高层。
在另一种可选的实施方式中,在RRC层接收到高层的消息发送请求之后,若消息发送请求指示向第一终端发送单播类型的PC5-S消息,则通过RRC层指示第二终端的RLC层建立RLC发送实体和RLC接收实体,指示第二终端的PDCP层建立PDCP发送实体和PDCP接收实体,并指示第二终端的MAC层建立发送逻辑信道和接收逻辑信道。
基于同一发明构思,本申请提供的实施例中,提供了一种通信方法的流程图。该方法由第一终端执行,如图7所示,该方法包括以下步骤:
步骤S701,确定向第二终端发送的第一条单播类型的PC5-S消息。
步骤S702,如果PC5-S消息的传播类型为单播消息,将PC5-S消息的传 播类型设置为广播类型或组播类型。
步骤S703,发送PC5-S消息。
基于同一发明构思,本申请提供的实施例中,提供了一种通信方法的流程图。该方法由第二终端执行,如图8所示,该方法包括以下步骤:
步骤S801,接收第一终端发送的传输消息。
步骤S802,若确定传输消息为新终端发送的单播类型的PC5-S消息,则将所述传输消息按照广播类型或组播类型的消息来处理,建立相应的PDCP接收实体、RLC接收实体和逻辑信道。
新终端为首次向第二终端发送传输消息的直接通信终端,或与第二终端未建立PC-S单播连接的直接通信终端,或采用新的层2单播连接地址首次向第二终端发送传输消息的直接通信终端。
基于同一发明构思,本申请提供的实施例中,提供了一种通信方法的流程图。该方法由第二终端执行,如图9所示,该方法包括以下步骤:
步骤S901,接收第一终端发送的传输消息;
步骤S902,确定传输消息满足以下条件时,将传输消息解码后的MAC PDU通过MAC层发送至解组装和解复用实体,并发送至RLC层;其中,条件包括:传输消息为单播消息;传输消息为PC5-S消息;传输消息是第一终端首次向第二终端发送的消息。
基于同一发明构思,本申请提供的实施例中,提供了一种终端,如图10所示,该终端包括第一设置单元1001和发送单元1002;其中:
第一设置单元1001,确定向第二终端发送的第一条单播类型的PC5-S消息;如果所述PC5-S消息的传播类型为单播消息,将所述PC5-S消息的传播类型设置为广播类型或组播类型;
发送单元1002,发送所述PC5-S消息。
在一种可选的实施例中,所述第一设置单元1001,具体可以用于:
通过高层将所述PC5-S消息的传播类型指示为广播类型或组播类型;所述高层为应用层或V2X层;
基于所述高层的指示,通过MAC层,将所述PC5-S消息对应的SCI域中的信息类型设置为广播类型或组播类型。
在一种可选的实施例中,所述第一设置单元1001,具体可以用于:
在RRC层接收到高层的消息发送请求时,通过所述RRC层将所述PC5-S消息的传播类型设置为广播类型或组播类型;所述消息发送请求指示向所述第二终端发送所述PC5-S消息;所述高层为应用层或V2X层。
在一种可选的实施例中,所述第一设置单元1001,具体可以用于:
在RRC层接收到高层的所述消息发送请求之后,通过所述RRC层建立PDCP发送实体和PDCP接收实体,RLC发送实体和RLC接收实体,以及发送逻辑信道和接收逻辑信道。
在一种可选的实施例中,所述第一条单播类型的PC5-S消息包括所述第一终端采用新的层2单播连接地址首次向所述第二终端发送的PC5-S消息;所述PC5-S消息为直通链路建立请求信息、直通链路鉴权请求信息或直通链路安全模式控制命令信息。
基于同一发明构思,本申请提供的实施例中,提供了一种终端,如图11所示,该终端包括接收单元1101和建立单元1102;其中:
接收单元1101,接收第一终端发送的传输消息;
建立单元1102,若确定所述传输消息为新终端发送的单播类型的PC5-S消息,则将所述传输消息按照广播类型或组播类型的消息来处理,建立相应的PDCP接收实体、RLC接收实体和逻辑信道;所述新终端为首次向所述第二终端发送传输消息的直接通信终端,或与所述第二终端未建立PC-S单播连接的直接通信终端,或采用新的层2单播连接地址首次向所述第二终端发送传输消息的直接通信终端。
在一种可选的实施例中,所述建立单元1102,具体可以用于:
若所述传输消息满足设定条件,则确定所述传输消息为新终端发送的单播类型的PC5-S消息;所述设定条件包含如下条件之一或组合:
所述传输消息为单播消息;
所述传输消息的LCID为0或1或2;
所述传输消息是采用新的层2单播连接地址首次向所述第二终端发送的消息;
所述传输消息的目的地址标识与所述第二终端的地址标识相同;
当前时刻处于所述传输消息对应的有效时间内。
在一种可选的实施例中,所述建立单元1102,具体可以用于:
若所述第二终端中没有保存所述第一终端的标识,和/或,所述第二终端在设定时间内未接收到所述第一终端发送的消息,则确定所述传输消息是所述第一终端首次向所述第二终端发送的消息。
在一种可选的实施例中,所述建立单元1102,具体可以用于:
若通过MAC层确定所述传输消息为新终端发送的单播类型的PC5-S消息,则将所述传输消息按照广播类型或组播类型的消息来处理,通过所述MAC层建立所述逻辑信道,并将所述传输消息发送至RLC层;
通过所述RLC层建立所述RLC接收实体,并通过所述RLC层将所述传输消息发送至PDCP层;
通过所述PDCP层建立所述PDCP接收实体。
在一种可选的实施例中,所述建立单元1102,具体可以用于:
若通过所述RLC层确定所述传输消息满足RLC设定条件,则通过所述RLC层建立所述RLC接收实体;
所述RLC设定条件包含如下条件之一或组合:
所述传输消息为单播消息;
所述传输消息的LCID为0或1或2;
所述传输消息为所述第一终端采用新的层2单播连接地址与所述第二终端的层2单播连接地址之间的第一条传输消息;
所述传输消息没有相应的RLC接收实体。
在一种可选的实施例中,所述通过所述RLC层建立所述RLC接收实体,包括如下行为之一或组合:
通过所述RLC层建立所述RLC接收实体;
通过所述RLC层初始化所述RLC接收实体的状态变量;
通过所述RLC层完成对所述传输消息的接收。
在一种可选的实施例中,所述建立单元1102,具体可以用于:
若通过所述PDCP层确定所述传输消息满足PDCP设定条件,则通过所述PDCP层建立所述PDCP接收实体;
通过所述PDCP层将所述传输消息发送至高层;所述高层为应用层或V2X层;
所述PDCP设定条件包含如下条件之一或组合:
所述传输消息为单播消息;
所述传输消息的LCID为0或1或2;
所述传输消息为所述第一终端采用新的层2单播连接地址与所述第二终端的层2单播连接地址之间的第一条传输消息;
所述传输消息没有相应的PDCP接收实体。
在一种可选的实施例中,所述通过所述PDCP层建立所述PDCP接收实体,包括如下行为之一或组合:
通过所述PDCP层建立所述PDCP接收实体;
通过所述PDCP层初始化所述PDCP接收实体的状态变量;
通过所述PDCP层完成对所述传输消息的接收。
在一种可选的实施例中,所述建立单元1102,具体可以用于:
若通过MAC层确定所述传输消息为新终端发送的单播类型的PC5-S消息,则将所述传输消息按照广播类型或组播类型的消息来处理,通过所述MAC层建立所述逻辑信道,并向RRC层发送指示信息;
基于所述指示信息,通过所述RRC层建立所述PDCP接收实体和所述RLC接收实体。
在一种可选的实施例中,所述建立单元1102,具体可以用于:
在RRC层接收到高层的消息发送请求之后,若所述消息发送请求指示向 所述第一终端发送单播类型的PC5-S消息,则通过所述RRC层指示所述第一终端的PDCP层建立PDCP发送实体和PDCP接收实体,并指示所述第一终端的RLC层建立RLC发送实体和RLC接收实体,以及建立发送逻辑信道和接收逻辑信道。
在一种可选的实施例中,在接收单元1101之后,还可以包括第二设置单元1201,如图12所示,所述第二设置单元1201,具体可以用于:
在RRC层接收到高层的消息发送请求之后,若所述消息发送请求指示向所述第一终端发送单播类型的PC5-S消息,则通过所述RRC层将所述PC5-S消息的传播类型设置为广播类型或组播类型;所述高层为应用层或V2X层。
基于相同的技术构思,本申请实施例还提供了一种终端。该终端能够执行上述实施例中实现的任一项通信方法。
基于同一发明构思,本申请提供的实施例中,提供了一种终端,如图13所示,该终端包括接收单元1301和建立单元1302;其中:
接收单元1301,接收第一终端发送的传输消息;
建立单元1302,确定所述传输消息满足以下条件时,将所述传输消息解码后的MAC PDU通过MAC层发送至解组装和解复用实体,并发送至RLC层;
其中,所述条件包括:
所述传输消息为单播消息;
所述传输消息为PC5-S消息;
所述传输消息是第一终端首次向所述第二终端发送的消息。
在一种可选的实施例中,所述建立单元1302,具体可以用于:
若所述传输消息的逻辑信道标识为0或1或2,则确定所述传输消息为PC5-S消息。
在一种可选的实施例中,通过如下方式确定所述传输消息是所述第一终端首次向所述第二终端发送的消息:
若所述第二终端中没有保存所述第一终端的标识,和/或,所述第二终端 在设定时间内未接收到所述第一终端发送的消息,则确定所述传输消息是所述第一终端首次向所述第二终端发送的消息。
在一种可选的实施例中,所述条件还包括:
所述传输消息的目的地址标识与所述第二终端的地址标识相同。
在一种可选的实施例中,所述方法还包括:
如果所述传输消息没有相应的RLC接收实体,则建立RLC接收实体,并通过所述RLC层将所述传输消息发送至PDCP层。
在一种可选的实施例中,所述建立RLC接收实体,包括如下行为之一或组合:
通过所述RLC层建立所述RLC接收实体;
通过所述RLC层初始化所述RLC接收实体的状态变量;
通过所述RLC层完成对所述传输消息的接收。
在一种可选的实施例中,所述方法还包括:
如果所述传输消息没有相应的PDCP接收实体,则建立PDCP接收实体。
在一种可选的实施例中,所述建立PDCP接收实体,包括如下行为之一或组合:
通过所述PDCP层建立所述PDCP接收实体;
通过所述PDCP层初始化所述PDCP接收实体的状态变量;
通过所述PDCP层完成对所述传输消息的接收。
在一种可选的实施例中,所述方法还包括:
通过所述PDCP层将所述传输消息发送至高层;所述高层为应用层或V2X层。
图14示出了本申请实施例提供的该终端的结构示意图,即示出了终端的另一结构示意图。如图14所示,该终端包括处理器1401、存储器1402和收发机1403。
处理器1401负责管理总线架构和通常的处理,存储器1402可以存储处理器1401在执行操作时所使用的数据。收发机1403用于在处理器1401的控 制下接收和发送数据。
总线架构可以包括任意数量的互联的总线和桥,具体由处理器1401代表的一个或多个处理器和存储器1402代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口提供接口。处理器1401负责管理总线架构和通常的处理,存储器1402可以存储处理器1401在执行操作时所使用的数据。
本申请实施例揭示的流程,可以应用于处理器1401中,或者由处理器1401实现。在实现过程中,信号处理流程的各步骤可以通过处理器1401中的硬件的集成逻辑电路或者软件形式的指令完成。处理器1401可以是通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器1402,处理器1401读取存储器1402中的信息,结合其硬件完成信号处理流程的步骤。
具体地,处理器1401,用于读取存储器1402中的计算机程序,当处理器1401执行所述计算机程序时实现:
确定向第二终端发送的第一条单播类型的PC5-S消息;
如果所述PC5-S消息的传播类型为单播消息,将所述PC5-S消息的传播类型设置为广播类型或组播类型;
发送所述PC5-S消息。
在一种可选的实施例中,所述处理器1401,具体用于:
通过高层将所述PC5-S消息的传播类型指示为广播类型或组播类型;所 述高层为应用层或V2X层;
基于所述高层的指示,通过MAC层,将所述PC5-S消息对应的SCI域中的信息类型设置为广播类型或组播类型。
在一种可选的实施例中,所述处理器1401,具体用于:
在RRC层接收到高层的消息发送请求时,通过所述RRC层将所述PC5-S消息的传播类型设置为广播类型或组播类型;所述消息发送请求指示向所述第二终端发送所述PC5-S消息;所述高层为应用层或V2X层。
在一种可选的实施例中,所述处理器1401,还用于:
在RRC层接收到高层的所述消息发送请求之后,通过所述RRC层建立PDCP发送实体和PDCP接收实体,RLC发送实体和RLC接收实体,以及发送逻辑信道和接收逻辑信道。
在一种可选的实施例中,所述第一条单播类型的PC5-S消息包括所述第一终端采用新的层2单播连接地址首次向所述第二终端发送的PC5-S消息;所述PC5-S消息为直通链路建立请求信息、直通链路鉴权请求信息或直通链路安全模式控制命令信息。
基于相同的技术构思,本申请实施例还提供了一种终端。该终端能够执行上述实施例中实现的任一项通信方法。
图15示出了本申请实施例提供的该终端的结构示意图,即示出了终端的另一结构示意图。如图15所示,该终端包括处理器1501、存储器1502和收发机1503。
处理器1501负责管理总线架构和通常的处理,存储器1502可以存储处理器1501在执行操作时所使用的数据。收发机1503用于在处理器1501的控制下接收和发送数据。
总线架构可以包括任意数量的互联的总线和桥,具体由处理器1501代表的一个或多个处理器和存储器1502代表的存储器的各种电路链接在一起。总线架构还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路链接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步 描述。总线接口提供接口。处理器1501负责管理总线架构和通常的处理,存储器1502可以存储处理器1501在执行操作时所使用的数据。
本申请实施例揭示的流程,可以应用于处理器1501中,或者由处理器1501实现。在实现过程中,信号处理流程的各步骤可以通过处理器1501中的硬件的集成逻辑电路或者软件形式的指令完成。处理器1501可以是通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器1502,处理器1501读取存储器1502中的信息,结合其硬件完成信号处理流程的步骤。
具体地,处理器1501,用于读取存储器1502中的计算机程序,当处理器1501执行所述计算机程序时实现:
接收第一终端发送的传输消息;
若确定所述传输消息为新终端发送的单播类型的PC5-S消息,则将所述传输消息按照广播类型或组播类型的消息来处理,建立相应的PDCP接收实体、RLC接收实体和逻辑信道;所述新终端为首次向所述第二终端发送传输消息的直接通信终端,或与所述第二终端未建立PC-S单播连接的直接通信终端,或采用新的层2单播连接地址首次向所述第二终端发送传输消息的直接通信终端。
在一种可选的实施例中,所述处理器1501,通过如下方式确定所述传输消息是否为新终端发送的单播类型的PC5-S消息:
若所述传输消息满足设定条件,则确定所述传输消息为新终端发送的单播类型的PC5-S消息;所述设定条件包含如下条件之一或组合:
所述传输消息为单播消息;
所述传输消息的LCID为0或1或2;
所述传输消息是采用新的层2单播连接地址首次向所述第二终端发送的消息;
所述传输消息的目的地址标识与所述第二终端的地址标识相同;
当前时刻处于所述传输消息对应的有效时间内。
在一种可选的实施例中,所述处理器1501,具体用于:
若通过MAC层确定所述传输消息为新终端发送的单播类型的PC5-S消息,则将所述传输消息按照广播类型或组播类型的消息来处理,通过所述MAC层建立所述逻辑信道,并将所述传输消息发送至RLC层;
通过所述RLC层建立所述RLC接收实体,并通过所述RLC层将所述传输消息发送至PDCP层;
通过所述PDCP层建立所述PDCP接收实体。
在一种可选的实施例中,所述处理器1501,具体用于:
若通过所述RLC层确定所述传输消息满足RLC设定条件,则通过所述RLC层建立所述RLC接收实体;
所述RLC设定条件包含如下条件之一或组合:
所述传输消息为单播消息;
所述传输消息的LCID为0或1或2;
所述传输消息为所述第一终端采用新的层2单播连接地址与所述第二终端的层2单播连接地址之间的第一条传输消息;
所述传输消息没有相应的RLC接收实体。
在一种可选的实施例中,所述通过所述RLC层建立所述RLC接收实体,包括如下行为之一或组合:
通过所述RLC层建立所述RLC接收实体;
通过所述RLC层初始化所述RLC接收实体的状态变量;
通过所述RLC层完成对所述传输消息的接收。
在一种可选的实施例中,所述处理器1501,具体用于:
若通过所述PDCP层确定所述传输消息满足PDCP设定条件,则通过所述PDCP层建立所述PDCP接收实体;
通过所述PDCP层将所述传输消息发送至高层;所述高层为应用层或V2X层;
所述PDCP设定条件包含如下条件之一或组合:
所述传输消息为单播消息;
所述传输消息的LCID为0或1或2;
所述传输消息为所述第一终端采用新的层2单播连接地址与所述第二终端的层2单播连接地址之间的第一条传输消息;
所述传输消息没有相应的PDCP接收实体。
在一种可选的实施例中,所述通过所述PDCP层建立所述PDCP接收实体,包括如下行为之一或组合:
通过所述PDCP层建立所述PDCP接收实体;
通过所述PDCP层初始化所述PDCP接收实体的状态变量;
通过所述PDCP层完成对所述传输消息的接收。
在一种可选的实施例中,所述处理器1501,具体用于:
若通过MAC层确定所述传输消息为新终端发送的单播类型的PC5-S消息,则将所述传输消息按照广播类型或组播类型的消息来处理,通过所述MAC层建立所述逻辑信道,并向RRC层发送指示信息;
基于所述指示信息,通过所述RRC层建立所述PDCP接收实体和所述RLC接收实体。
在一种可选的实施例中,所述处理器1501,还用于:
在RRC层接收到高层的消息发送请求之后,若所述消息发送请求指示向所述第一终端发送单播类型的PC5-S消息,则通过所述RRC层将所述PC5-S消息的传播类型设置为广播类型或组播类型;所述高层为应用层或V2X层。
在一种可选的实施例中,所述处理器1501,还用于:
在RRC层接收到高层的消息发送请求之后,若所述消息发送请求指示向所述第一终端发送单播类型的PC5-S消息,则通过所述RRC层建立PDCP发送实体和PDCP接收实体,RLC发送实体和RLC接收实体,以及发送逻辑信道和接收逻辑信道。
基于同一发明构思,本申请实施例提供一种计算机可读存储介质,当存储介质中的指令由处理器执行时,使得处理器能够执行上述实施例中实现的任一项资源预约方法。
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。

Claims (31)

  1. 一种通信方法,其特征在于,应用于第一终端,所述方法包括:
    确定向第二终端发送的第一条单播类型的PC5-S消息;
    如果所述PC5-S消息的传播类型为单播消息,将所述PC5-S消息的传播类型设置为广播类型或组播类型;
    发送所述PC5-S消息。
  2. 根据权利要求1所述的方法,其特征在于,所述将所述PC5-S消息的传播类型设置为广播类型或组播类型,包括:
    通过高层将所述PC5-S消息的传播类型指示为广播类型或组播类型;所述高层为应用层或车辆到一切的互联V2X层;
    基于所述高层的指示,通过媒体接入控制MAC层,将所述PC5-S消息对应的直通链路控制信息SCI域中的信息类型设置为广播类型或组播类型。
  3. 根据权利要求1所述的方法,其特征在于,所述将所述待发送消息的传播类型设置为广播类型或组播类型,包括:
    在无线资源控制RRC层接收到高层的消息发送请求时,通过所述RRC层将所述PC5-S消息的传播类型设置为广播类型或组播类型;所述消息发送请求指示向所述第二终端发送所述PC5-S消息;所述高层为应用层或V2X层。
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:
    在RRC层接收到高层的所述消息发送请求之后,通过所述RRC层建立分组数据汇聚协议PDCP发送实体和PDCP接收实体,无线链路层控制RLC发送实体和RLC接收实体,以及发送逻辑信道和接收逻辑信道。
  5. 根据权利要求1所述的方法,其特征在于,所述第一条单播类型的PC5-S消息包括所述第一终端采用新的层2单播连接地址首次向所述第二终端发送的PC5-S消息;所述PC5-S消息为直通链路建立请求信息、直通链路鉴权请求信息或直通链路安全模式控制命令信息。
  6. 一种通信方法,其特征在于,应用于第二终端,所述方法包括:
    接收第一终端发送的传输消息;
    确定所述传输消息满足以下条件时,将所述传输消息解码后的MAC PDU通过MAC层发送至解组装和解复用实体,并发送至RLC层;
    其中,所述条件包括:
    所述传输消息为单播消息;
    所述传输消息为PC5-S消息;
    所述传输消息是第一终端首次向所述第二终端发送的消息。
  7. 根据权利要求6所述的方法,其特征在于,通过如下方式确定所述传输消息为PC5-S消息:
    若所述传输消息的逻辑信道标识为0或1或2,则确定所述传输消息为PC5-S消息。
  8. 根据权利要求6所述的方法,其特征在于,通过如下方式确定所述传输消息是所述第一终端首次向所述第二终端发送的消息:
    若所述第二终端中没有保存所述第一终端的标识,和/或,所述第二终端在设定时间内未接收到所述第一终端发送的消息,则确定所述传输消息是所述第一终端首次向所述第二终端发送的消息。
  9. 根据权利要求6所述的方法,其特征在于,所述条件还包括:
    所述传输消息的目的地址标识与所述第二终端的地址标识相同。
  10. 根据权利要求6所述的方法,其特征在于,所述方法还包括:
    如果所述传输消息没有相应的RLC接收实体,则建立RLC接收实体,并通过所述RLC层将所述传输消息发送至PDCP层。
  11. 根据权利要求10所述的方法,其特征在于,所述建立RLC接收实体,包括如下行为之一或组合:
    通过所述RLC层建立所述RLC接收实体;
    通过所述RLC层初始化所述RLC接收实体的状态变量;
    通过所述RLC层完成对所述传输消息的接收。
  12. 根据权利要求10或11所述的方法,其特征在于,所述方法还包括:
    如果所述传输消息没有相应的PDCP接收实体,则建立PDCP接收实体。
  13. 根据权利要求12所述的方法,其特征在于,所述建立PDCP接收实体,包括如下行为之一或组合:
    通过所述PDCP层建立所述PDCP接收实体;
    通过所述PDCP层初始化所述PDCP接收实体的状态变量;
    通过所述PDCP层完成对所述传输消息的接收。
  14. 根据权利要求12所述的方法,其特征在于,所述方法还包括:
    通过所述PDCP层将所述传输消息发送至高层;所述高层为应用层或V2X层。
  15. 一种终端,其特征在于,所述终端为第一终端,所述终端包括:
    第一设置单元,确定向第二终端发送的第一条单播类型的PC5-S消息;如果所述PC5-S消息的传播类型为单播消息,将所述PC5-S消息的传播类型设置为广播类型或组播类型;
    发送单元,发送所述PC5-S消息。
  16. 一种终端,其特征在于,所述终端为第一终端,所述终端包括:存储器、收发机以及处理器;
    所述存储器,用于存储计算机指令;
    所述收发机,用于在所述处理器的控制下收发数据;
    所述处理器,用于读取所述存储器中的计算机程序并执行如下步骤:
    确定向第二终端发送的第一条单播类型的PC5-S消息;
    如果所述PC5-S消息的传播类型为单播消息,将所述PC5-S消息的传播类型设置为广播类型或组播类型;
    发送所述PC5-S消息。
  17. 根据权利要求16所述的终端,其特征在于,所述处理器,具体用于:
    通过高层将所述PC5-S消息的传播类型指示为广播类型或组播类型;所述高层为应用层或V2X层;
    基于所述高层的指示,通过MAC层,将所述PC5-S消息对应的直通链路 控制信息SCI域中的信息类型设置为广播类型或组播类型。
  18. 根据权利要求16所述的终端,其特征在于,所述处理器,具体用于:
    在RRC层接收到高层的消息发送请求时,通过所述RRC层将所述PC5-S消息的传播类型设置为广播类型或组播类型;所述消息发送请求指示向所述第二终端发送所述PC5-S消息;所述高层为应用层或V2X层。
  19. 根据权利要求18所述的终端,其特征在于,所述处理器,还用于:
    在RRC层接收到高层的所述消息发送请求之后,通过所述RRC层建立PDCP发送实体和PDCP接收实体,RLC发送实体和RLC接收实体,以及发送逻辑信道和接收逻辑信道。
  20. 根据权利要求16所述的终端,其特征在于,所述第一条单播类型的PC5-S消息包括所述第一终端采用新的层2单播连接地址首次向所述第二终端发送的PC5-S消息;所述PC5-S消息为直通链路建立请求信息、直通链路鉴权请求信息或直通链路安全模式控制命令信息。
  21. 一种终端,其特征在于,所述终端为第二终端,所述终端包括:
    接收单元,接收第一终端发送的传输消息;
    建立单元,确定所述传输消息满足以下条件时,将所述传输消息解码后的MAC PDU通过MAC层发送至解组装和解复用实体,并发送至RLC层;
    其中,所述条件包括:
    所述传输消息为单播消息;
    所述传输消息为PC5-S消息;
    所述传输消息是第一终端首次向所述第二终端发送的消息。
  22. 一种终端,其特征在于,所述终端为第二终端,所述终端包括:存储器、收发机以及处理器;
    所述存储器,用于存储计算机指令;
    所述收发机,用于在所述处理器的控制下收发数据;
    所述处理器,用于读取所述存储器中的计算机程序并执行如下步骤:
    接收第一终端发送的传输消息;
    确定所述传输消息满足以下条件时,将所述传输消息解码后的MAC PDU通过MAC层发送至解组装和解复用实体,并发送至RLC层;
    其中,所述条件包括:
    所述传输消息为单播消息;
    所述传输消息为PC5-S消息;
    所述传输消息是第一终端首次向所述第二终端发送的消息。
  23. 根据权利要求22所述的终端,其特征在于,所述处理器,通过如下方式确定所述传输消息为PC5-S消息:
    若所述传输消息的逻辑信道标识为0或1或2,则确定所述传输消息为PC5-S消息。
  24. 根据权利要求22所述的终端,其特征在于,所述处理器,通过如下方式确定所述传输消息是所述第一终端首次向所述第二终端发送的消息:
    若所述第二终端中没有保存所述第一终端的标识,和/或,所述第二终端在设定时间内未接收到所述第一终端发送的消息,则确定所述传输消息是所述第一终端首次向所述第二终端发送的消息。
  25. 根据权利要求22所述的终端,其特征在于,所述处理器,还用于:
    所述传输消息的目的地址标识与所述第二终端的地址标识相同。
  26. 根据权利要求22所述的终端,其特征在于,所述处理器,还用于:
    如果所述传输消息没有相应的RLC接收实体,则建立RLC接收实体,并通过所述RLC层将所述传输消息发送至PDCP层。
  27. 根据权利要求26所述的终端,其特征在于,所述建立RLC接收实体,包括如下行为之一或组合:
    通过所述RLC层建立所述RLC接收实体;
    通过所述RLC层初始化所述RLC接收实体的状态变量;
    通过所述RLC层完成对所述传输消息的接收。
  28. 根据权利要求26或27所述的终端,其特征在于,所述处理器,还用于:
    如果所述传输消息没有相应的PDCP接收实体,则建立PDCP接收实体。
  29. 根据权利要求28所述的终端,其特征在于,所述建立PDCP接收实体,包括如下行为之一或组合:
    通过所述PDCP层建立所述PDCP接收实体;
    通过所述PDCP层初始化所述PDCP接收实体的状态变量;
    通过所述PDCP层完成对所述传输消息的接收。
  30. 根据权利要求28所述的终端,其特征在于,所述处理器,还用于:
    通过所述PDCP层将所述传输消息发送至高层;所述高层为应用层或V2X层。
  31. 一种计算机可读存储介质,其特征在于,所述存储介质存储有计算机指令,所述计算机指令被处理器执行时实现如权利要求1至14中任一项所述的方法。
PCT/CN2022/122181 2021-11-29 2022-09-28 一种通信方法及终端 WO2023093285A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111437489.5 2021-11-29
CN202111437489.5A CN116193373A (zh) 2021-11-29 2021-11-29 一种通信方法及终端

Publications (1)

Publication Number Publication Date
WO2023093285A1 true WO2023093285A1 (zh) 2023-06-01

Family

ID=86431241

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/122181 WO2023093285A1 (zh) 2021-11-29 2022-09-28 一种通信方法及终端

Country Status (2)

Country Link
CN (1) CN116193373A (zh)
WO (1) WO2023093285A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160080531A1 (en) * 2014-09-12 2016-03-17 Samsung Electronics Co., Ltd Handling different protocol data unit types in a device to device communication system
CN110139340A (zh) * 2018-02-09 2019-08-16 电信科学技术研究院有限公司 一种连接建立方法及终端
WO2021026738A1 (zh) * 2019-08-12 2021-02-18 Oppo广东移动通信有限公司 无线通信的方法、终端设备和网络设备
CN112399374A (zh) * 2019-08-16 2021-02-23 华为技术有限公司 通信方法和通信装置
CN113709678A (zh) * 2020-05-22 2021-11-26 华为技术有限公司 通信方法、装置、通信设备和系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160080531A1 (en) * 2014-09-12 2016-03-17 Samsung Electronics Co., Ltd Handling different protocol data unit types in a device to device communication system
CN110139340A (zh) * 2018-02-09 2019-08-16 电信科学技术研究院有限公司 一种连接建立方法及终端
WO2021026738A1 (zh) * 2019-08-12 2021-02-18 Oppo广东移动通信有限公司 无线通信的方法、终端设备和网络设备
CN112399374A (zh) * 2019-08-16 2021-02-23 华为技术有限公司 通信方法和通信装置
CN113709678A (zh) * 2020-05-22 2021-11-26 华为技术有限公司 通信方法、装置、通信设备和系统

Also Published As

Publication number Publication date
CN116193373A (zh) 2023-05-30

Similar Documents

Publication Publication Date Title
US11533610B2 (en) Key generation method and related apparatus
WO2019184651A1 (zh) 一种通信方法及装置
US8135404B2 (en) Apparatus, system, and methods for handling attach procedure in mobile communication system
KR102341580B1 (ko) 복제 전송을 위한 방법 및 장치
US11405830B2 (en) Information transmission method and apparatus
EP3758312B1 (en) Method and system for the creation of a multicast group
WO2016141793A1 (zh) 一种空口协议栈的配置方法、数据传输方法及设备
WO2020001562A1 (zh) 一种通信方法及装置
WO2021031022A1 (zh) 链路切换的方法和通信设备
US11432140B2 (en) Multicast service processing method and access point
WO2020147543A1 (zh) 一种pdu会话激活方法、寻呼方法及其装置
WO2021088661A1 (zh) 通信方法、装置及设备
WO2020221048A1 (zh) 一种通信方法及装置
WO2021031768A1 (zh) 一种安全加密的方法及装置
WO2021032216A1 (zh) 冗余会话建立方法及装置、无线承载建立方法及装置、节点、终端、介质
KR102104844B1 (ko) 데이터 전송 방법, 제1 장치 및 제2 장치
CN113473525B (zh) 一种数据传输的方法及装置
JP7206390B2 (ja) データの送信方法およびデバイス
WO2023093285A1 (zh) 一种通信方法及终端
WO2022133912A1 (zh) 侧行链路通信方法、装置和系统
WO2021031746A1 (zh) 一种安全算法配置方法、控制平面中心节点及终端
WO2022032692A1 (zh) 通信方法、装置及系统
WO2020220862A1 (zh) 一种通信方法及装置
WO2022078867A1 (en) Methods, apparatuses and computer program for data transmission in inactive state
WO2022206294A1 (zh) 一种传输处理方法、装置及终端

Legal Events

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

Ref document number: 22897371

Country of ref document: EP

Kind code of ref document: A1