Wireless communication method and terminal device
By verifying and managing the L2 ID of the terminal device to ensure its validity, the problem of direct connection failure caused by L2 ID changes in 5G V2X communication is solved, and the connection success rate and security are improved.
Patent Information
- Application Number
- CN201980098974.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-31
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2039-10-31
AI Technical Summary
In 5G V2X communication, the L2 ID of the terminal device may change, causing the direct connection to fail to be established. Existing technology cannot effectively solve this problem.
By determining whether the L2 ID of the second terminal device is valid, and using it to send messages when valid, the security and success rate of the connection are ensured. If it is invalid, the default L2 ID is used or the L2 ID is updated to maintain the connection.
It improves the success rate and security of direct connection establishment and ensures that the terminal device can adjust in time when the L2 ID changes to maintain communication stability.
Smart Images

Figure CN114208227B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of communications, and more specifically, to a method and terminal device for wireless communications. Background Art
[0002] In 5G V2X, a direct link can be established between two terminal devices through PC5 signaling. For example, after the first terminal device sends a direct link establishment request (DIRECT LINK ESTABLISHMENT REQUEST) message to the second terminal device, it receives a direct link establishment acceptance (DIRECT LINK ESTABLISHMENT ACCEPT) message sent by the second terminal device to establish a direct link with the second terminal device.
[0003] Specifically, the first terminal device needs to use the layer 2 identification (L2 ID) of the second terminal device to send the direct connection establishment request message to the second terminal device. The L2 ID of the second terminal device can be a pre-stored L2 ID to ensure that the first terminal device uses the correct address to send the direct connection establishment request message and ensure that the second terminal device correctly receives the direct connection establishment request message.
[0004] However, since the L2 ID of the second terminal device may change, if the first terminal device continues to use the pre-saved L2 ID, the establishment of the direct connection between the first terminal device and the second terminal device will fail. Summary of the invention
[0005] Provided are a wireless communication method and terminal device, which can effectively use L2ID and improve the success rate of establishing a direct connection while ensuring security.
[0006] In a first aspect, a wireless communication method is provided, comprising:
[0007] The first terminal device determines whether the first layer 2 identification L2 ID for the second terminal device is valid;
[0008] If the first L2 ID is valid, the first terminal device sends a message to the second terminal device using the first L2 ID.
[0009] In a second aspect, a wireless communication method is provided, including:
[0010] The second terminal device determines whether the first layer 2 identification L2 ID for the second terminal device is valid;
[0011] If the first L2 ID is valid, the second terminal device uses the first L2 ID to monitor the message sent by the first terminal device.
[0012] In a third aspect, a terminal device is provided, which is used to execute the method in any one of the first to second aspects or their respective implementations. Specifically, the terminal device includes a functional module for executing the method in any one of the first to second aspects or their respective implementations.
[0013] In a fourth aspect, a terminal device is provided, comprising a processor and a memory. The memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the method in any one of the first to second aspects or their respective implementations.
[0014] In a fifth aspect, a chip is provided for implementing the method in any one of the first to second aspects or their respective implementations. Specifically, the chip includes: a processor for calling and running a computer program from a memory, so that a device equipped with the chip executes the method in any one of the first to second aspects or their respective implementations.
[0015] In a sixth aspect, a computer-readable storage medium is provided for storing a computer program, wherein the computer program enables a computer to execute the method of any one of the first to second aspects or any of their implementations.
[0016] In a seventh aspect, a computer program product is provided, comprising computer program instructions, wherein the computer program instructions enable a computer to execute the method of any one of the first to second aspects or any of their implementations.
[0017] In an eighth aspect, a computer program is provided, which, when executed on a computer, enables the computer to execute the method in any one of the first to second aspects or in each of their implementations.
[0018] Based on the above technical solution, the security of connection establishment can be guaranteed by using L2 ID. In addition, before the first terminal device establishes a direct connection with the second terminal device, the validity of the L2ID of the second terminal device is determined to improve the success rate of establishing the direct connection. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 and Figure 2 This is an example of the application scenario of this application.
[0020] Figure 3It is a schematic flowchart of the wireless communication method of an embodiment of the present application.
[0021] Figure 4 It is a schematic flowchart of a first terminal device releasing a direct connection with a second terminal device according to an embodiment of the present application.
[0022] Figure 5 It is another schematic flowchart of the wireless communication method of an embodiment of the present application.
[0023] Figures 6 to 8 It is a schematic block diagram of a terminal device according to an embodiment of the present application.
[0024] Fig. 9 It is a schematic block diagram of the chip of an embodiment of the present application. DETAILED DESCRIPTION
[0025] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0026] The embodiments of the present application may be applicable to any terminal device to terminal device communication framework.
[0027] For example, vehicle to vehicle (V2V), vehicle to everything (V2X), device to device (D2D), etc.
[0028] Among them, the terminal in the embodiment of the present application can be any device or apparatus configured with a physical layer and a media access control layer, and the terminal device can also be called an access terminal. For example, user equipment (UE), user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device. The access terminal can be a cellular phone, a cordless phone, a Session Initiation Protocol (Session Initiation Protocol, SIP) phone, a Wireless Local Loop (Wireless Local Loop, WLL) station, a Personal Digital Assistant (Personal Digital Assistant, PDA), a handheld device with wireless communication function, a computing device or other linear processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, etc. The embodiment of the present application is described by taking a vehicle-mounted terminal as an example, but is not limited to this.
[0029] In some embodiments of the present application, the embodiments of the present application may be applicable to transmission mode 3 and transmission mode 4 defined in 3rd Generation Partnership Project (3GPP) Rel-14.
[0030] Figure 1 It is a schematic diagram of mode 3 of an embodiment of the present application. Figure 2 It is a schematic diagram of mode 4 of an embodiment of the present application.
[0031] exist Figure 1 In the transmission mode 3 shown, the transmission resources of the vehicle terminals (vehicle terminals 121 and vehicle terminals 122) are allocated by the base station 110, and the vehicle terminals transmit data on the sidelink according to the resources allocated by the base station 110. Specifically, the base station 110 can allocate resources for single transmission to the terminal, or can allocate resources for semi-static transmission to the terminal.
[0032] exist Figure 2 In the transmission mode 4 shown, the vehicle terminals (vehicle terminals 131 and vehicle terminals 132) adopt a transmission mode of sensing and reservation, and the vehicle terminals autonomously select transmission resources on the side link resources for data transmission.
[0033] The following is a specific description using the vehicle-mounted terminal 131 as an example.
[0034] The vehicle-mounted terminal 131 obtains a set of available transmission resources in the resource pool by listening, and the vehicle-mounted terminal 131 randomly selects a transmission resource from the set to transmit data.
[0035] Since the services in the Internet of Vehicles system have periodic characteristics, in the embodiment of the present application, the vehicle terminal 131 can also adopt a semi-static transmission mode. That is, after the vehicle terminal 131 obtains a transmission resource, it continues to use the transmission resource in multiple transmission cycles to reduce the probability of resource reselection and resource conflict.
[0036] The vehicle terminal 131 can carry information about the resources reserved for the next transmission in the control information of this transmission, so that other terminals (for example, the vehicle terminal 132) can determine whether this resource is reserved and used by the user by detecting the control information of the user, thereby reducing resource conflicts.
[0037] It should be noted that the vehicle-mounted terminal involved in the embodiments of the present application can be applicable to scenarios with high data interaction efficiency, such as autonomous driving. It should be understood that the terms "system" and "network" are often used interchangeably in this article. The term "and / or" in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the related objects before and after are in an "or" relationship.
[0038] Figure 3 A schematic flow chart of a wireless communication method 200 according to an embodiment of the present application is shown. The method 200 can be executed by a terminal device. Figure 3 The terminal device shown in FIG. 1 may be a terminal device such as Figure 1 The carrier terminal 131 or the vehicle terminal 132 is shown to execute.
[0039] like Figure 3 As shown, the method 200 includes some or all of the following contents:
[0040] S210: The first terminal device determines whether a first L2 ID for the second terminal device is valid.
[0041] S220: If the first L2 ID is valid, the first terminal device sends a message to the second terminal device using the first L2 ID.
[0042] In other words, after acquiring the first L2 ID, the first terminal device determines whether the first L2 ID is valid. If the first L2 ID is valid, the first terminal device uses the first L2 ID to send a message to the second terminal device.
[0043] For example, when the first terminal device needs to establish a direct connection with the second terminal device, when it is determined that the first L2 ID is valid, the first L2 ID is used to send a direct connection establishment request message to the second terminal device.
[0044] It should be noted that the first L2 ID may be the L2 ID saved after the first terminal device and the second terminal device establish a direct connection, or may be the L2 ID provided by the application layer of the first terminal device, or may be the L2 ID saved by the first terminal device after the first terminal device and the second terminal device exchange their L2 IDs based on security considerations. This application does not make specific limitations on this.
[0045] It should also be understood that the channel mode of transmitting or receiving information in the communication protocol. Among them, the application layer of the first terminal device can be a functional layer located above PC5-S, which is used to transmit data. The PC5-S can be a functional layer located above the PDCP layer or RRC. For example, the application layer can be a functional layer in the transport layer 3, and the PC5-S can be a functional layer between layers 1 and 3.
[0046] Among them, layer 2 uses the link of layer 1 to complete the transmission of application data of layer 3.
[0047] For example, layer 3 is used to transmit control messages. For example, the Internet Protocol (IP) layer and the Radio Resource Control (RRC) layer, as well as the Non-Access Stratum (NAS). Layer 2 is used to provide correct transmission and reception of signaling messages, including partial duplication detection. For example, the Packet Data Convergence Protocol (PDCP) layer, the Radio Link Control (RLC) layer, and the Media Access Control (MAC) layer. Layer 1 is used to provide transmission and reception wireless links between base stations and terminal devices. For example, the Physical Layer.
[0048] The packet data convergence protocol layer can be used to process radio resource control messages on the control plane and Internet Protocol (IP) packets on the user plane. On the user plane, after the PDCP layer receives the IP data packet from the upper layer, it can perform header compression and encryption on the IP data packet and then submit it to the radio link layer control protocol layer.
[0049] The radio link layer control protocol layer can be used to provide segmentation and retransmission services for user and control data, and then handed over to the media access control layer; the functions of the RLC layer can be implemented by the RLC entity, and an RLC entity can be configured in any of the following three modes: Transparent Mode (TM), Unacknowledged Mode (UM) and Acknowledged Mode (AM). Among them, the AM mode provides all RLC functions and can effectively improve the reliability of data transmission through error detection and retransmission.
[0050] The media access control layer is mainly responsible for the mapping between logical channels and transport channels; when sending data, the MAC layer can determine in advance whether the data can be sent. If it can be sent, some control information will be added to the data, and finally the data and control information will be sent to the physical layer in the specified format.
[0051] The physical layer is used to transmit all information from the MAC transport channel through the air interface. It is mainly responsible for: link adaptation (AMC) that requires care, power control, cell search (for the purpose of initial synchronization and handover), and other measurements of the radio resource control layer (in LTE systems, between systems).
[0052] like Figure 3 As shown, the method 200 further includes:
[0053] S230: If the first L2 ID is invalid, the first terminal device sends a message to the second terminal device using a default L2 ID.
[0054] For example, the default L2 ID is the L2 ID corresponding to the vehicle-to-other-device V2X service, or the default L2 ID is the L2 ID corresponding to the direct connection request message.
[0055] Of course, the default L2 ID may also be an L2 ID corresponding to other messages or bearers. For example, the default L2 ID may also be an L2 ID corresponding to an application.
[0056] In some embodiments of the present application, the first terminal device determines a valid duration of the first L2 ID; within the valid duration after a first moment, the first terminal device determines that the first L2 ID is valid, the first moment being the moment when the first terminal device releases a direct connection with the second terminal device; and / or after the valid duration after the first moment, the first terminal device determines that the first L2 ID is invalid.
[0057] In other words, within the validity period of the first L2 ID, the first terminal device determines that the first L2 ID is valid, and outside the validity period of the first L2 ID, the first terminal device determines that the first L2 ID is invalid.
[0058] As an example, the valid duration is the duration of a timer corresponding to the first L2 ID.
[0059] In other words, the first terminal device can determine whether the first L2 ID is valid through the timer corresponding to the first L2 ID. Alternatively, the first terminal device can determine whether the first L2 ID is within the validity period through the timer corresponding to the first L2 ID, thereby determining whether the first L2 ID is valid.
[0060] For example, if the timer corresponding to the first L2 ID has not timed out, the first terminal device determines that the first L2 ID is valid; and / or if the timer corresponding to the first L2 ID has timed out, the first terminal device determines that the first L2 ID is invalid.
[0061] In some embodiments of the present application, the method 200 further includes:
[0062] When the first terminal device releases the direct connection established between the first terminal device and the second terminal device, the timer is started.
[0063] In some embodiments of the present application, the method 200 further includes:
[0064] The first terminal device sends first information to the second terminal device, where the first information is used to indicate the valid duration.
[0065] By indicating the effective time to the second terminal device through the first terminal device, it can be ensured that the first terminal device and the second terminal device have the same understanding of the effective time, so as to ensure the success rate of the direct connection.
[0066] Figure 4 It is a schematic flow chart of releasing a direct connection between a first terminal device and a second terminal device.
[0067] like Figure 4 As shown, the method 300 includes:
[0068] S310: The first terminal device sends a direct link release request message (DIRECTLINK RELEASE REQUEST) to the second terminal device. The direct link release request message may include the first information. At this time, the second terminal device may not reply to the direct link release request message sent by the first terminal device.
[0069] In some embodiments of the present application, the first terminal device obtains second information; the first terminal device determines the duration indicated by the second information as the effective duration.
[0070] For example, the first terminal device receives the second information sent by the second terminal device.
[0071] like Figure 4 As shown, the method 300 may further include:
[0072] S320: The second terminal device sends a direct link release accept (DIRECT LINK RELEASE ACCEPT) message to the first terminal device. The direct link release accept message may include the second information.
[0073] In other words, by indicating the effective duration to the first terminal device through the second terminal device, it can be ensured that the first terminal device and the second terminal device have the same understanding of the effective duration, so as to ensure the success rate of the direct connection.
[0074] For another example, the first information or the second information is carried in at least one of the following information:
[0075] The configuration information of the effective duration sent by the network device; the configuration information of the application layer of the first terminal device; the pre-configuration information of the user identity card SIM card; and the pre-configuration information of the first terminal device.
[0076] In other words, the valid time period may be a time period configured by the network device, or the valid time period may be a time period predefined in the protocol.
[0077] In some embodiments of the present application, the first terminal device determines the duration corresponding to the second terminal device as the effective duration based on a first mapping relationship, and the first mapping information includes a correspondence between at least one duration and at least one terminal device.
[0078] For example, the first mapping relationship may include a correspondence between at least one first identifier and at least one duration, and the at least one first identifier may be used to identify the at least one terminal device. In other words, after acquiring the first mapping relationship, the first terminal device may determine the duration corresponding to the identifier of the second terminal device as the effective duration based on the first mapping relationship. For another example, a duration in the first mapping relationship may correspond to one or more terminal devices.
[0079] The first mapping relationship may be configuration information or pre-configuration information sent by a network device or other terminal device, or may be pre-defined information in a protocol or pre-stored.
[0080] The pre-configuration information may be pre-configured information or rules. For example, the pre-configuration information may be information or rules pre-configured by a network device or other terminal device for the first terminal device.
[0081] For example, in another example, the first mapping relationship is carried in at least one of the following information:
[0082] Configuration information of the application layer of the first terminal device; pre-configuration information of the user identity card SIM card; and pre-configuration information of the first terminal device.
[0083] In some embodiments of the present application, the first terminal device determines the duration corresponding to the first V2X service as the effective duration based on second mapping information, the second mapping information includes a mapping relationship between at least one duration and at least one V2X service, and the first V2X service is the V2X service to be transmitted between the first terminal device and the second terminal device.
[0084] For example, the second mapping relationship may include a correspondence between at least one second identifier and at least one duration, and the at least one second identifier may be used to identify at least one V2X service type. In other words, after acquiring the second mapping relationship, the first terminal device may determine the duration corresponding to the identifier of the V2X service type to which the first V2X service belongs as the effective duration based on the second mapping relationship. For another example, a duration in the second mapping relationship may correspond to one or more V2X services.
[0085] Similar to the first mapping relationship, the second mapping relationship may be configuration information or pre-configuration information sent by a network device or other terminal device, or may be pre-defined information in a protocol or pre-stored.
[0086] In some embodiments of the present application, the first terminal device determines the duration corresponding to the first application as the effective duration based on third mapping information, the third mapping information includes a mapping relationship between at least one duration and at least one application, and the first application is an application corresponding to the data to be transmitted between the first terminal device and the second terminal device.
[0087] For example, the third mapping relationship may include a correspondence between at least one third identifier and at least one duration, and the at least one third identifier may be used to identify at least one application. In other words, after acquiring the third mapping relationship, the first terminal device may determine the duration corresponding to the identifier of the first application as the effective duration based on the third mapping relationship. For another example, a duration in the third mapping relationship may correspond to one or more applications.
[0088] Similar to the first mapping relationship, the third mapping relationship may be configuration information or pre-configuration information sent by a network device or other terminal device, or may be pre-defined information in a protocol or pre-stored.
[0089] In some embodiments of the present application, the method 200 further includes:
[0090] When the first terminal device releases the direct connection established between the first terminal device and the second terminal device, the first L2 ID is saved.
[0091] When releasing the direct connection, the first terminal device saves the first L2 ID, so that when the first terminal device needs to re-establish a direct connection with the second terminal device, it can determine whether the saved first L2 ID is valid.
[0092] In some embodiments of the present application, the method 200 further includes:
[0093] When the first terminal device determines that the first L2 ID is invalid, it deletes the first L2 ID.
[0094] The preferred embodiments of the present application are described in detail above in conjunction with the accompanying drawings; however, the present application is not limited to the specific details in the above embodiments. Within the technical concept of the present application, a variety of simple modifications can be made to the technical solution of the present application, and these simple modifications all fall within the protection scope of the present application.
[0095] For example, the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, this application will not further explain various possible combinations.
[0096] For another example, the various implementation modes of the present application may be arbitrarily combined, and as long as they do not violate the concept of the present application, they should also be regarded as the contents disclosed in the present application.
[0097] It should be understood that in the various method embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0098] Combined with the above Figure 3 to Figure 4 The wireless communication method according to the embodiment of the present application is described in detail from the perspective of the initiator. Figure 5 , describes the method of wireless communication according to an embodiment of the present application from the perspective of the other party.
[0099] Figure 5 A schematic flow chart of a wireless communication method 400 according to an embodiment of the present application is shown.
[0100] like Figure 5 As shown, the method 400 may include:
[0101] S410: The second terminal device determines whether a first layer 2 identification L2 ID for the second terminal device is valid.
[0102] S420: If the first L2 ID is valid, the second terminal device uses the first L2 ID to monitor a message sent by the first terminal device.
[0103] In some embodiments of the present application, the method 400 may further include:
[0104] S430: If the first L2 ID is invalid, the second terminal device stops using the first L2 ID to monitor messages sent by the first terminal device.
[0105] In some embodiments of the present application, the method 400 may further include:
[0106] If the first L2 ID is invalid, the second terminal device uses a default L2 ID to monitor the message sent by the first terminal device.
[0107] In some embodiments of the present application, the default L2 ID is the L2 ID corresponding to the vehicle-to-other-device V2X service, or the default L2 ID is the L2 ID corresponding to the direct connection request message.
[0108] In some embodiments of the present application, the second terminal device determines the validity period of the first L2 ID; within the validity period after a first moment, the second terminal device determines that the first L2 ID is valid, and the first moment is the moment when the second terminal device releases the direct connection between the second terminal device and the first terminal device; and / or after the validity period after the first moment, the second terminal device determines that the first L2 ID is invalid.
[0109] In some embodiments of the present application, the valid duration is the duration of a timer corresponding to the first L2 ID.
[0110] In some embodiments of the present application, if the timer corresponding to the first L2 ID has not expired, the second terminal device determines that the first L2 ID is valid; and / or if the timer corresponding to the first L2 ID has expired, the second terminal device determines that the first L2 ID is invalid.
[0111] In some embodiments of the present application, the method 400 may further include:
[0112] When the second terminal device releases the direct connection established between the second terminal device and the first terminal device, the timer is started.
[0113] In some embodiments of the present application, the second terminal device obtains the first information; the second terminal device determines the duration indicated by the first information as the effective duration.
[0114] In some embodiments of the present application, the second terminal device receives the first information sent by the first terminal device.
[0115] In some embodiments of the present application, the method 400 may further include:
[0116] The second terminal device sends second information to the first terminal device, where the second information is used to indicate the valid duration.
[0117] In some embodiments of the present application, the first information or the second information is carried in at least one of the following information:
[0118] Configuration information of the effective duration sent by the network device;
[0119] Configuration information of the application layer of the second terminal device;
[0120] Pre-configuration information of the Subscriber Identity Module (SIM) card; and
[0121] The pre-configuration information of the second terminal device.
[0122] In some embodiments of the present application, the second terminal device determines the duration corresponding to the second terminal device as the effective duration based on a first mapping relationship, and the first mapping information includes a correspondence between at least one duration and at least one terminal device.
[0123] In some embodiments of the present application, the second terminal device determines the duration corresponding to the first V2X service as the effective duration based on second mapping information, the second mapping information includes a mapping relationship between at least one duration and at least one V2X service, and the first V2X service is the V2X service to be transmitted between the second terminal device and the first terminal device.
[0124] In some embodiments of the present application, the second terminal device determines the duration corresponding to the first application as the effective duration based on third mapping information, the third mapping information includes a mapping relationship between at least one duration and at least one application, and the first application is the application corresponding to the data to be transmitted between the second terminal device and the first terminal device.
[0125] In some embodiments of the present application, the method 400 may further include:
[0126] If the first L2 ID is invalid, the second terminal device updates the first L2 ID; and the second terminal device sends the updated first L2 ID to the first terminal device.
[0127] In some embodiments of the present application, the second terminal device uses the first L2 ID to monitor the direct connection establishment request message sent by the first terminal device.
[0128] It should be understood that the steps in method 400400 can refer to the corresponding steps in method 400200, and for the sake of brevity, they will not be repeated here.
[0129] Combination of the above Figures 1 to 5 , describes in detail the method embodiment of the present application, and the following is combined with Figures 6 to 9 , describe in detail the device embodiments of the present application.
[0130] Figure 6 It is a schematic block diagram of a terminal device 500 according to an embodiment of the present application.
[0131] like Figure 6 As shown, the terminal device 500 may include:
[0132] The processing unit 510 is configured to determine whether the first layer 2 identifier L2 ID for the second terminal device is valid;
[0133] The communication unit 520 is configured to send a message to the second terminal device using the first L2 ID if the first L2 ID is valid.
[0134] In some embodiments of the present application, the communication unit 520 is further configured to:
[0135] If the first L2 ID fails, a default L2 ID is used to send a message to the second terminal device.
[0136] In some embodiments of the present application, the default L2 ID is the L2 ID corresponding to the vehicle-to-other-device V2X service, or the default L2 ID is the L2 ID corresponding to the direct connection request message.
[0137] In some embodiments of the present application, the processing unit 510 is specifically used to:
[0138] Determining a validity period of the first L2 ID;
[0139] Determining that the first L2 ID is valid within the validity period after a first moment, the first moment being a moment when the terminal device releases a direct connection with the second terminal device;
[0140] and / or
[0141] After the validity period after the first moment, it is determined that the first L2 ID is invalid.
[0142] In some embodiments of the present application, the valid duration is the duration of a timer corresponding to the first L2 ID.
[0143] In some embodiments of the present application, the processing unit 510 is more specifically configured to:
[0144] If the timer corresponding to the first L2 ID has not timed out, determining that the first L2 ID is valid; and / or
[0145] If the timer corresponding to the first L2 ID times out, it is determined that the first L2 ID is invalid.
[0146] In some embodiments of the present application, the processing unit 510 is further configured to:
[0147] When the terminal device releases the direct connection established between the terminal device and the second terminal device, the timer is started.
[0148] In some embodiments of the present application, the communication unit 520 is further configured to:
[0149] Sending first information to the second terminal device, where the first information is used to indicate the effective duration.
[0150] In some embodiments of the present application, the communication unit 520 is further configured to:
[0151] Acquire second information; the processing unit 510 is more specifically used for:
[0152] The duration indicated by the second information is determined as the effective duration.
[0153] In some embodiments of the present application, the communication unit 520 is specifically used for:
[0154] Receive the second information sent by the second terminal device.
[0155] In some embodiments of the present application, the first information or the second information is carried in at least one of the following information:
[0156] Configuration information of the effective duration sent by the network device;
[0157] Configuration information of the application layer of the terminal device;
[0158] Pre-configuration information of the Subscriber Identity Module (SIM) card; and
[0159] The pre-configuration information of the terminal device.
[0160] In some embodiments of the present application, the processing unit 510 is specifically used to:
[0161] According to the first mapping relationship, the duration corresponding to the second terminal device is determined as the effective duration, and the first mapping information includes a correspondence between at least one duration and at least one terminal device.
[0162] In some embodiments of the present application, the processing unit 510 is specifically used to:
[0163] According to the second mapping information, the duration corresponding to the first V2X service is determined as the effective duration, the second mapping information includes a mapping relationship between at least one duration and at least one V2X service, and the first V2X service is the V2X service to be transmitted between the terminal device and the second terminal device.
[0164] In some embodiments of the present application, the processing unit 510 is specifically used to:
[0165] According to the third mapping information, the duration corresponding to the first application is determined as the effective duration, and the third mapping information includes a mapping relationship between at least one duration and at least one application, and the first application is the application corresponding to the data to be transmitted between the terminal device and the second terminal device.
[0166] In some embodiments of the present application, the processing unit 510 is further configured to:
[0167] When releasing the direct connection established with the second terminal device, saving the first L2ID.
[0168] In some embodiments of the present application, the processing unit 510 is further configured to:
[0169] When it is determined that the first L2 ID is invalid, the first L2 ID is deleted.
[0170] In some embodiments of the present application, the communication unit 520 is specifically used for:
[0171] Use the first L2 ID to send a direct connection establishment request message to the second terminal device.
[0172] It should be understood that the device embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. Specifically, Figure 6 The terminal device 500 shown may correspond to the corresponding subject in the method 200 of the embodiment of the present application, and the aforementioned and other operations and / or functions of each unit in the terminal device 500 are respectively to implement Figure 3For the sake of brevity, the corresponding processes in each method are not repeated here.
[0173] Figure 7 It is a schematic block diagram of a terminal device 600 according to an embodiment of the present application.
[0174] like Figure 7 As shown, the terminal device 600 may include:
[0175] The processing unit 610 is configured to determine whether the first layer 2 identification L2 ID for the terminal device is valid;
[0176] The communication unit 620 is configured to, if the first L2 ID is valid, use the first L2 ID to monitor a message sent by the first terminal device.
[0177] In some embodiments of the present application, the communication unit 620 is further configured to:
[0178] If the first L2 ID is invalid, stop using the first L2 ID to monitor the message sent by the first terminal device.
[0179] In some embodiments of the present application, the communication unit 620 is further configured to:
[0180] If the first L2 ID fails, a default L2 ID is used to monitor messages sent by the first terminal device.
[0181] In some embodiments of the present application, the default L2 ID is the L2 ID corresponding to the vehicle-to-other-device V2X service, or the default L2 ID is the L2 ID corresponding to the direct connection request message.
[0182] In some embodiments of the present application, the processing unit 610 is specifically used to:
[0183] Determining a validity period of the first L2 ID;
[0184] Determining that the first L2 ID is valid within the validity period after a first moment, the first moment being a moment when the terminal device releases a direct connection with the first terminal device;
[0185] and / or
[0186] After the validity period after the first moment, it is determined that the first L2 ID is invalid.
[0187] In some embodiments of the present application, the valid duration is the duration of a timer corresponding to the first L2 ID.
[0188] In some embodiments of the present application, the processing unit 610 is more specifically used for:
[0189] If the timer corresponding to the first L2 ID has not timed out, determining that the first L2 ID is valid; and / or
[0190] If the timer corresponding to the first L2 ID times out, it is determined that the first L2 ID is invalid.
[0191] In some embodiments of the present application, the processing unit 610 is further configured to:
[0192] When the direct connection established with the first terminal device is released, the timer is started.
[0193] In some embodiments of the present application, the communication unit 620 is further configured to:
[0194] Obtaining first information; the processing unit 610 is specifically used for:
[0195] The duration indicated by the first information is determined as the effective duration.
[0196] In some embodiments of the present application, the communication unit 620 is specifically used for:
[0197] Receive the first information sent by the first terminal device.
[0198] In some embodiments of the present application, the communication unit 620 is further configured to:
[0199] Sending second information to the first terminal device, where the second information is used to indicate the effective duration.
[0200] In some embodiments of the present application, the first information or the second information is carried in at least one of the following information:
[0201] Configuration information of the effective duration sent by the network device;
[0202] Configuration information of the application layer of the terminal device;
[0203] Pre-configuration information of the Subscriber Identity Module (SIM) card; and
[0204] The pre-configuration information of the terminal device.
[0205] In some embodiments of the present application, the processing unit 610 is specifically used to:
[0206] According to a first mapping relationship, the duration corresponding to the terminal device is determined as the effective duration, and the first mapping information includes a correspondence between at least one duration and at least one terminal device.
[0207] In some embodiments of the present application, the processing unit 610 is specifically used to:
[0208] According to the second mapping information, the duration corresponding to the first V2X service is determined as the effective duration, the second mapping information includes a mapping relationship between at least one duration and at least one V2X service, and the first V2X service is the V2X service to be transmitted between the terminal device and the first terminal device.
[0209] In some embodiments of the present application, the processing unit 610 is specifically used to:
[0210] According to the third mapping information, the duration corresponding to the first application is determined as the effective duration, and the third mapping information includes a mapping relationship between at least one duration and at least one application, and the first application is the application corresponding to the data to be transmitted between the terminal device and the first terminal device.
[0211] In some embodiments of the present application, the processing unit 610 is further configured to:
[0212] If the first L2 ID is invalid, updating the first L2 ID;
[0213] The communication unit 620 is also used to
[0214] Send the updated first L2 ID to the first terminal device.
[0215] In some embodiments of the present application, the communication unit 620 is specifically used for:
[0216] The first L2 ID is used to monitor the direct connection establishment request message sent by the first terminal device.
[0217] It should be understood that the device embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. Specifically, Figure 7 The terminal device 600 shown may correspond to the corresponding subject in the method 400 of the embodiment of the present application, and the aforementioned and other operations and / or functions of each unit in the terminal device 600 are respectively to implement Figure 5 For the sake of brevity, the corresponding processes in each method are not repeated here.
[0218] The communication device of the embodiment of the present application is described above from the perspective of functional modules in conjunction with the accompanying drawings. It should be understood that the functional modules can be implemented in hardware form, can also be implemented by software instructions, and can also be implemented by a combination of hardware and software modules.
[0219] Specifically, each step of the method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit and / or software instructions in the processor. The steps of the method disclosed in the embodiment of the present application can be directly reflected as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor.
[0220] In one implementation, the software module may be located in a mature storage medium in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps in the above method embodiment in combination with its hardware.
[0221] For example, the processing unit and the communication unit mentioned above may be implemented by a processor and a transceiver, respectively.
[0222] Figure 8 It is a schematic structural diagram of a communication device 700 according to an embodiment of the present application.
[0223] See also Figure 8 , the communication device 700 may include a processor 710.
[0224] The processor 710 may call and run a computer program from the memory to implement the method in the embodiment of the present application.
[0225] Please continue to see Figure 8 , the communication device 700 may further include a memory 720 .
[0226] The memory 720 may be used to store indication information, and may also be used to store codes, instructions, etc. executed by the processor 710. The processor 710 may call and run a computer program from the memory 720 to implement the method in the embodiment of the present application. The memory 720 may be a separate device independent of the processor 710, or may be integrated in the processor 710.
[0227] Please continue to see Figure 8 , the communication device 700 may further include a transceiver 730 .
[0228] The processor 710 may control the transceiver 730 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices. The transceiver 730 may include a transmitter and a receiver. The transceiver 730 may further include an antenna, and the number of antennas may be one or more.
[0229] It should be understood that the various components in the communication device 700 are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.
[0230] It should also be understood that the communication device 700 may be a terminal device of an embodiment of the present application, and the communication device 700 may implement the corresponding processes implemented by the terminal device in the various methods of the embodiments of the present application. That is to say, the communication device 700 of the embodiment of the present application may correspond to the communication device 500 or the terminal device 600 in the embodiment of the present application, and may correspond to executing the corresponding subject in the method 200 or 400 according to the embodiment of the present application. For the sake of brevity, it will not be repeated here.
[0231] In addition, a chip is also provided in an embodiment of the present application.
[0232] For example, the chip may be an integrated circuit chip with signal processing capabilities, and can implement or execute the methods, steps, and logic diagrams disclosed in the embodiments of the present application. The chip may also be called a system-level chip, a system chip, a chip system, or a system-on-chip chip, etc. In one embodiment, the chip can be applied to various communication devices, so that the communication device equipped with the chip can execute the methods, steps, and logic diagrams disclosed in the embodiments of the present application.
[0233] Fig. 9 is a schematic structural diagram of a chip 800 according to an embodiment of the present application.
[0234] See also Fig. 9 , the chip 800 includes a processor 810 .
[0235] The processor 810 may call and run a computer program from the memory to implement the method in the embodiment of the present application.
[0236] Please continue to see Fig. 9 , the chip 800 may further include a memory 820 .
[0237] The processor 810 may call and run a computer program from the memory 820 to implement the method in the embodiment of the present application. The memory 820 may be used to store indication information, and may also be used to store codes, instructions, etc. executed by the processor 810. The memory 820 may be a separate device independent of the processor 810, or may be integrated in the processor 810.
[0238] Please continue to see Fig. 9 , the chip 800 may further include an input interface 830 .
[0239] The processor 810 may control the input interface 830 to communicate with other devices or chips, and specifically, may obtain information or data sent by other devices or chips.
[0240] Please continue to see Fig. 9 , the chip 800 may further include an output interface 840 .
[0241] The processor 810 may control the output interface 840 to communicate with other devices or chips, and specifically, may output information or data to other devices or chips.
[0242] It should be understood that the chip 800 can be applied to the network device in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the network device in the various methods of the embodiments of the present application, and can also implement the corresponding processes implemented by the terminal device in the various methods of the embodiments of the present application. For the sake of brevity, it will not be repeated here.
[0243] It should also be understood that the various components in the chip 800 are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.
[0244] The processor may include but is not limited to:
[0245] General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
[0246] The processor can be used to implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor, or a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0247] The memory includes but is not limited to:
[0248] Volatile memory and / or non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DR RAM).
[0249] It should be noted that the memory described herein is intended to include these and any other suitable types of memory.
[0250] In an embodiment of the present application, a computer-readable storage medium is further provided for storing computer programs. The computer-readable storage medium stores one or more programs, and the one or more programs include instructions, which, when executed by a portable electronic device including multiple application programs, enable the portable electronic device to execute the methods of the embodiments shown in methods 200 to 400.
[0251] In one embodiment, the computer-readable storage medium can be applied to the network device in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the network device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0252] In one embodiment, the computer-readable storage medium can be applied to the mobile terminal / terminal device in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the mobile terminal / terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0253] A computer program product is also provided in an embodiment of the present application, including a computer program.
[0254] In one embodiment, the computer program product can be applied to the network device in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the network device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0255] In one embodiment, the computer program product can be applied to the mobile terminal / terminal device in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the mobile terminal / terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0256] The present application also provides a computer program in an embodiment. When the computer program is executed by a computer, the computer can execute the methods in the embodiments shown in method 200 to method 400.
[0257] In one embodiment, the computer program can be applied to the network device in the embodiment of the present application. When the computer program runs on a computer, the computer executes the corresponding processes implemented by the network device in the various methods in the embodiment of the present application. For the sake of brevity, they are not repeated here.
[0258] In addition, the embodiment of the present application also provides a communication system, which may include the terminal device and the network device involved above to form a communication system as follows: Figure 1 The communication system 100 shown is not described in detail for the sake of brevity. It should be noted that the term "system" and the like in this document may also be referred to as "network management architecture" or "network system" and the like.
[0259] It should also be understood that the terms used in the embodiments of the present application and the appended claims are for the purpose of describing specific embodiments only and are not intended to limit the embodiments of the present application.
[0260] For example, as used in the embodiments of the present application and the appended claims, the singular forms "a," "said," "above," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
[0261] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.
[0262] If implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in the embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk.
[0263] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0264] In several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways.
[0265] For example, the division of units or modules or components in the device embodiment described above is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or modules or components can be combined or integrated into another system, or some units or modules or components can be ignored or not executed.
[0266] For another example, the units / modules / components described above as separation / display components may or may not be physically separated, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units / modules / components may be selected according to actual needs to achieve the purpose of the embodiments of the present application.
[0267] Finally, it should be noted that the mutual coupling or direct coupling or communication connection shown or discussed above may be an indirect coupling or communication connection through some interfaces, devices or units, which may be electrical, mechanical or other forms.
[0268] The above contents are only specific implementation methods of the embodiments of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the embodiments of the present application, which should be included in the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be based on the protection scope of the claims.
Claims
1. A wireless communication method, characterized in that: include: The first terminal device determines whether the first layer 2 identification L2 ID for the second terminal device is valid; If the first L2 ID is valid, the first terminal device sends a message to the second terminal device using the first L2 ID; The first terminal device determines whether the first L2 ID for the second terminal device is valid, including: the first terminal device determines the validity period of the first L2 ID; within the validity period after a first moment, the first terminal device determines that the first L2 ID is valid, wherein the first moment is the moment when the first terminal device releases the direct connection with the second terminal device, and the validity period is the duration of the timer corresponding to the first L2 ID; and after the validity period after the first moment, the first terminal device determines that the first L2 ID is invalid; The method further comprises: When the first terminal device releases the direct connection established between the first terminal device and the second terminal device, saving the first L2ID; When the first terminal device determines that the first L2 ID is invalid, it deletes the first L2 ID.
2. The method according to claim 1, characterized in that The method further comprises: If the first L2 ID fails, the first terminal device sends a message to the second terminal device using a default L2 ID.
3. The method according to claim 2, characterized in that The default L2 ID is the L2 ID corresponding to the vehicle-to-other-device V2X service, or the default L2 ID is the L2 ID corresponding to the direct connection request message.
4. The method according to claim 1, characterized in that: The first terminal device determines whether a first layer 2 identifier L2 ID for the second terminal device is valid, including: If the timer corresponding to the first L2 ID has not timed out, the first terminal device determines that the first L2 ID is valid; and / or If the timer corresponding to the first L2 ID times out, the first terminal device determines that the first L2 ID is invalid.
5. The method according to claim 4, characterized in that The method further comprises: When the first terminal device releases the direct connection established between the first terminal device and the second terminal device, the timer is started.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: The first terminal device sends first information to the second terminal device, where the first information is used to indicate the valid duration.
7. The method according to any one of claims 1 to 5, characterized in that The first terminal device determines the validity period of the first L2 ID, including: The first terminal device acquires second information; The first terminal device determines the duration indicated by the second information as the effective duration.
8. The method according to claim 7, characterized in that The first terminal device acquires the second information, including: The first terminal device receives the second information sent by the second terminal device.
9. The method according to claim 6, characterized in that The first information is carried in at least one of the following information: Configuration information of the effective duration sent by the network device; Configuration information of the application layer of the first terminal device; Pre-configuration information of the Subscriber Identity Module (SIM) card; and The pre-configuration information of the first terminal device.
10. The method according to claim 7, characterized in that The second information is carried in at least one of the following information: Configuration information of the effective duration sent by the network device; Configuration information of the application layer of the first terminal device; Pre-configuration information of the Subscriber Identity Module (SIM) card; and The pre-configuration information of the first terminal device.
11. The method according to any one of claims 1 to 5, characterized in that The first terminal device determines the validity period of the first L2 ID, including: The first terminal device determines the duration corresponding to the second terminal device as the effective duration based on a first mapping relationship, where the first mapping relationship includes a correspondence between at least one duration and at least one terminal device.
12. The method according to any one of claims 1 to 5, characterized in that The first terminal device determines the validity period of the first L2 ID, including: The first terminal device determines the duration corresponding to the first V2X service as the effective duration according to a second mapping relationship, wherein the second mapping relationship includes a mapping relationship between at least one duration and at least one V2X service, and the first V2X service is a V2X service to be transmitted between the first terminal device and the second terminal device.
13. The method according to any one of claims 1 to 5, characterized in that The first terminal device determines the validity period of the first L2 ID, including: The first terminal device determines the duration corresponding to the first application as the effective duration based on a third mapping relationship, wherein the third mapping relationship includes a mapping relationship between at least one duration and at least one application, and the first application is an application corresponding to the data to be transmitted between the first terminal device and the second terminal device.
14. The method according to any one of claims 1 to 5, characterized in that The first terminal device uses the first L2 ID to send a message to the second terminal device, including: The first terminal device sends a direct connection establishment request message to the second terminal device using the first L2 ID.
15. A wireless communication method, characterized in that: include: The second terminal device determines whether the first layer 2 identification L2 ID for the second terminal device is valid; If the first L2 ID is valid, the second terminal device uses the first L2 ID to monitor the message sent by the first terminal device; The second terminal device determines whether the first L2 ID for the second terminal device is valid, including: the second terminal device determines the validity period of the first L2 ID; within the validity period after a first moment, the second terminal device determines that the first L2 ID is valid, wherein the first moment is the moment when the second terminal device releases the direct connection with the first terminal device, and the validity period is the duration of the timer corresponding to the first L2 ID; and after the validity period after the first moment, the second terminal device determines that the first L2 ID is invalid; The method further comprises: If the first L2 ID is invalid, the second terminal device updates the first L2 ID; The second terminal device sends the updated first L2 ID to the first terminal device.
16. The method according to claim 15, characterized in that The method further comprises: If the first L2 ID fails, the second terminal device stops using the first L2 ID to monitor the message sent by the first terminal device.
17. The method according to claim 15, characterized in that The method further comprises: If the first L2 ID is invalid, the second terminal device uses a default L2 ID to monitor the message sent by the first terminal device.
18. The method according to claim 17, characterized in that The default L2 ID is the L2 ID corresponding to the vehicle-to-other-device V2X service, or the default L2 ID is the L2 ID corresponding to the direct connection request message.
19. The method according to claim 15, characterized in that The second terminal device determines whether a first layer 2 identifier L2 ID for the second terminal device is valid, including: If the timer corresponding to the first L2 ID has not timed out, the second terminal device determines that the first L2 ID is valid; and / or If the timer corresponding to the first L2 ID times out, the second terminal device determines that the first L2 ID is invalid.
20. The method according to claim 19, characterized in that The method further comprises: When the second terminal device releases the direct connection established between the second terminal device and the first terminal device, the timer is started.
21. The method according to any one of claims 15 to 20, characterized in that The second terminal device determines the validity period of the first L2 ID, including: The second terminal device acquires the first information; The second terminal device determines the duration indicated by the first information as the effective duration.
22. The method according to claim 21, characterized in that The second terminal device obtains the first information, including: The second terminal device receives the first information sent by the first terminal device.
23. The method according to any one of claims 15 to 20, characterized in that The method further comprises: The second terminal device sends second information to the first terminal device, where the second information is used to indicate the valid duration.
24. The method according to claim 21, characterized in that The first information is carried in at least one of the following information: Configuration information of the effective duration sent by the network device; Configuration information of the application layer of the second terminal device; Pre-configuration information of the Subscriber Identity Module (SIM) card; and The pre-configuration information of the second terminal device.
25. The method according to claim 23, characterized in that The second information is carried in at least one of the following information: Configuration information of the effective duration sent by the network device; Configuration information of the application layer of the second terminal device; Pre-configuration information of the Subscriber Identity Module (SIM) card; and The pre-configuration information of the second terminal device.
26. The method according to any one of claims 15 to 20, characterized in that The second terminal device determines the validity period of the first L2 ID, including: The second terminal device determines the duration corresponding to the second terminal device as the effective duration according to the first mapping relationship, and the first mapping relationship includes a correspondence between at least one duration and at least one terminal device.
27. The method according to any one of claims 15 to 20, characterized in that The second terminal device determines the validity period of the first L2 ID, including: The second terminal device determines the duration corresponding to the first V2X service as the effective duration based on a second mapping relationship, where the second mapping relationship includes a mapping relationship between at least one duration and at least one V2X service, and the first V2X service is a V2X service to be transmitted between the second terminal device and the first terminal device.
28. The method according to any one of claims 15 to 20, characterized in that The second terminal device determines the validity period of the first L2 ID, including: The second terminal device determines the duration corresponding to the first application as the effective duration based on the third mapping relationship, and the third mapping relationship includes a mapping relationship between at least one duration and at least one application, and the first application is the application corresponding to the data to be transmitted between the second terminal device and the first terminal device.
29. The method according to any one of claims 15 to 20, characterized in that The second terminal device uses the first L2 ID to monitor a message sent by the first terminal device, including: The second terminal device uses the first L2 ID to monitor the direct connection establishment request message sent by the first terminal device.
30. A terminal device, characterized in that: include: A processing unit, configured to determine whether a first layer 2 identifier L2 ID for a second terminal device is valid; a communication unit, configured to send a message to a second terminal device using the first L2 ID if the first L2 ID is valid; The processing unit is specifically configured to: determine the validity period of the first L2 ID; determine that the first L2 ID is valid within the validity period after a first moment, wherein the first moment is the moment when the terminal device releases the direct connection with the second terminal device, and the validity period is the duration of the timer corresponding to the first L2 ID; and, determine that the first L2 ID is invalid after the validity period after the first moment; The processing unit is also used for: When releasing the direct connection established with the second terminal device, saving the first L2 ID; When it is determined that the first L2 ID is invalid, the first L2 ID is deleted.
31. The terminal device according to claim 30, characterized in that: The communication unit is also used for: If the first L2 ID fails, a default L2 ID is used to send a message to the second terminal device.
32. The terminal device according to claim 31, characterized in that: The default L2 ID is the L2 ID corresponding to the vehicle-to-other-device V2X service, or the default L2 ID is the L2 ID corresponding to the direct connection request message.
33. The terminal device according to claim 30, characterized in that: The processing unit is more specifically configured to: If the timer corresponding to the first L2 ID has not timed out, determining that the first L2 ID is valid; and / or If the timer corresponding to the first L2 ID times out, it is determined that the first L2 ID is invalid.
34. The terminal device according to claim 33, characterized in that: The processing unit is also used for: When the terminal device releases the direct connection established between the terminal device and the second terminal device, the timer is started.
35. The terminal device according to any one of claims 30 to 34, characterized in that: The communication unit is also used for: Sending first information to the second terminal device, where the first information is used to indicate the effective duration.
36. The terminal device according to any one of claims 30 to 34, characterized in that: The communication unit is also used for: Acquire second information; the processing unit is more specifically used for: The duration indicated by the second information is determined as the effective duration.
37. The terminal device according to claim 36, characterized in that: The communication unit is specifically used for: Receive the second information sent by the second terminal device.
38. The terminal device according to claim 35, characterized in that: The first information is carried in at least one of the following information: Configuration information of the effective duration sent by the network device; Configuration information of the application layer of the terminal device; Pre-configuration information of the Subscriber Identity Module (SIM) card; and The pre-configuration information of the terminal device.
39. The terminal device according to claim 36, characterized in that: The second information is carried in at least one of the following information: Configuration information of the effective duration sent by the network device; Configuration information of the application layer of the terminal device; Pre-configuration information of the Subscriber Identity Module (SIM) card; and The pre-configuration information of the terminal device.
40. The terminal device according to any one of claims 30 to 34, characterized in that: The processing unit is specifically used for: According to a first mapping relationship, the duration corresponding to the second terminal device is determined as the effective duration, and the first mapping relationship includes a corresponding relationship between at least one duration and at least one terminal device.
41. The terminal device according to any one of claims 30 to 34, characterized in that: The processing unit is specifically used for: According to a second mapping relationship, the duration corresponding to the first V2X service is determined as the effective duration, the second mapping relationship includes a mapping relationship between at least one duration and at least one V2X service, and the first V2X service is the V2X service to be transmitted between the terminal device and the second terminal device.
42. The terminal device according to any one of claims 30 to 34, characterized in that: The processing unit is specifically used for: According to the third mapping relationship, the duration corresponding to the first application is determined as the effective duration, and the third mapping relationship includes a mapping relationship between at least one duration and at least one application, and the first application is the application corresponding to the data to be transmitted between the terminal device and the second terminal device.
43. The terminal device according to any one of claims 30 to 34, characterized in that: The communication unit is specifically used for: Use the first L2 ID to send a direct connection establishment request message to the second terminal device.
44. A wireless communication terminal device, characterized in that: include: a processing unit, configured to determine whether a first layer 2 identification L2 ID for the terminal device is valid; a communication unit, configured to monitor a message sent by a first terminal device using the first L2 ID if the first L2 ID is valid; The processing unit is specifically configured to: determine a valid duration of the first L2 ID; determine that the first L2 ID is valid within the valid duration after a first moment, wherein the first moment is a moment when the terminal device releases a direct connection with the first terminal device, and the valid duration is a duration of a timer corresponding to the first L2 ID; and, after the valid duration after the first moment, determine that the first L2 ID is invalid; The processing unit is also used for: If the first L2 ID is invalid, updating the first L2 ID; The communication unit is also used to Send the updated first L2 ID to the first terminal device.
45. The terminal device according to claim 44, characterized in that: The communication unit is also used for: If the first L2 ID is invalid, stop using the first L2 ID to monitor the message sent by the first terminal device.
46. The terminal device according to claim 44, characterized in that: The communication unit is also used for: If the first L2 ID fails, a default L2 ID is used to monitor messages sent by the first terminal device.
47. The terminal device according to claim 46, characterized in that: The default L2 ID is the L2 ID corresponding to the vehicle-to-other-device V2X service, or the default L2 ID is the L2 ID corresponding to the direct connection request message.
48. The terminal device according to claim 44, characterized in that: The processing unit is more specifically configured to: If the timer corresponding to the first L2 ID has not timed out, determining that the first L2 ID is valid; and / or If the timer corresponding to the first L2 ID times out, it is determined that the first L2 ID is invalid.
49. The terminal device according to claim 48, characterized in that: The processing unit is also used for: When the direct connection established with the first terminal device is released, the timer is started.
50. The terminal device according to any one of claims 44 to 49, characterized in that: The communication unit is also used for: Acquire first information; the processing unit is specifically used for: The duration indicated by the first information is determined as the effective duration.
51. The terminal device according to claim 50, characterized in that: The communication unit is specifically used for: Receive the first information sent by the first terminal device.
52. The terminal device according to any one of claims 44 to 49, characterized in that: The communication unit is also used for: Sending second information to the first terminal device, where the second information is used to indicate the effective duration.
53. The terminal device according to claim 50, characterized in that: The first information is carried in at least one of the following information: Configuration information of the effective duration sent by the network device; Configuration information of the application layer of the terminal device; Pre-configuration information of the Subscriber Identity Module (SIM) card; and The pre-configuration information of the terminal device.
54. The terminal device according to claim 52, characterized in that: The second information is carried in at least one of the following information: Configuration information of the effective duration sent by the network device; Configuration information of the application layer of the terminal device; Pre-configuration information of the Subscriber Identity Module (SIM) card; and The pre-configuration information of the terminal device.
55. The terminal device according to any one of claims 44 to 49, characterized in that: The processing unit is specifically used for: According to a first mapping relationship, the duration corresponding to the terminal device is determined as the effective duration, and the first mapping relationship includes a correspondence between at least one duration and at least one terminal device.
56. The terminal device according to any one of claims 44 to 49, characterized in that: The processing unit is specifically used for: According to a second mapping relationship, the duration corresponding to the first V2X service is determined as the effective duration, the second mapping relationship includes a mapping relationship between at least one duration and at least one V2X service, and the first V2X service is a V2X service to be transmitted between the terminal device and the first terminal device.
57. The terminal device according to any one of claims 44 to 49, characterized in that: The processing unit is specifically used for: According to the third mapping relationship, the duration corresponding to the first application is determined as the effective duration, and the third mapping relationship includes a mapping relationship between at least one duration and at least one application, and the first application is the application corresponding to the data to be transmitted between the terminal device and the first terminal device.
58. The terminal device according to any one of claims 44 to 49, characterized in that: The communication unit is specifically used for: The first L2 ID is used to monitor the direct connection establishment request message sent by the first terminal device.
59. A terminal device, characterized in that: include: A processor, a memory and a transceiver, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the method according to any one of claims 1 to 29.
60. A chip, characterized in that: include: A processor, configured to call and run a computer program from a memory, so that a device equipped with the chip executes a method as claimed in any one of claims 1 to 29.
61. A computer-readable storage medium, characterized in that Used to store a computer program, the computer program causing a computer to execute the method according to any one of claims 1 to 29.
62. A computer program product, characterized in that The method comprises computer program instructions which cause a computer to execute the method as claimed in any one of claims 1 to 29.
