A communication method, apparatus, and related device
By introducing an additional identifier in LTE-V2X direct link communication to detect and resolve MAC address conflicts, the normal operation of unicast services is ensured, the communication disorder caused by source MAC address conflicts is resolved, and a more stable communication process is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- YINWANG INTELLIGENT TECHNOLOGIES CO LTD
- Filing Date
- 2021-04-12
- Publication Date
- 2026-05-29
AI Technical Summary
In LTE-V2X direct link communication, source MAC address conflicts at the sending end prevent unicast services from functioning properly, and existing technologies cannot effectively solve this problem.
By introducing additional identifiers (such as a first identifier and a second identifier) during the communication process to distinguish different devices, detect MAC address conflicts, and reselect MAC addresses when necessary, the normal operation of communication is ensured.
This effectively reduces source MAC address conflicts between senders, ensuring normal communication for unicast services and reducing the risk of service transmission interruption.
Smart Images

Figure CN122120730A_ABST
Abstract
Description
[0001] This application is a divisional application. The original application has the application number 202110389463.1 and the original application date is April 12, 2021. The entire contents of the original application are incorporated herein by reference. Technical Field
[0002] This application relates to the field of vehicle networking technology, and in particular to a communication method, device and related equipment. Background Technology
[0003] With the continuous development of society, the popularity of automobiles is increasing. Vehicles can communicate with anything in the outside world (vehicle to everything, V2X) to obtain road condition information or receive service information in a timely manner. The network used for V2X communication is called the vehicle-to-everything (V2X) network. V2X can include vehicle-to-vehicle (V2V) communication, vehicle-to-infrastructure (V2I) communication, vehicle-to-pedestrian (V2P) communication, or vehicle-to-network (V2N) communication, etc.
[0004] With the continuous development of V2X services, V2X is no longer limited to supporting only broadcast services; it can also support unicast services. For example, unicast services may include near-field toll collection and vehicle identity information management.
[0005] Cellular network-based vehicle-to-everything (V2X) communication is currently an important communication method, such as V2X direct communication based on Long Term Evolution (LTE) technology or 5th Generation Mobile Networks (5th Generation Wireless Systems) or 5G technology. For terminal devices based on LTE-V2X communication, the network layer of the transmitting end needs to select the source address (also known as the source layer 2 identifier) of the Media Access Control (MAC) layer. When transmitting data, the selected source address is set in the corresponding address bit of the MACPDU to indicate the identity of the transmitting end.
[0006] Currently, MAC addresses are 24 bits long. Because they use a self-selection addressing mechanism, all sending terminals randomly choose a source address within the same address domain, which can lead to source address conflicts. For unicast services, since both communicating parties need to use MAC addresses to address each other and exchange data, if another terminal chooses the same source MAC address, it will disrupt the entire interaction process, causing the service to fail. Therefore, effectively reducing source MAC address conflicts between sending terminals is a pressing issue for LTE-V2X-based unicast service transmission. Summary of the Invention
[0007] This application provides a communication method, apparatus, and related equipment that can effectively reduce source MAC address conflicts between senders by enabling unicast service transmission based on LTE-V2X.
[0008] In a first aspect, embodiments of this application provide a communication method, which includes: a first device sending first V2X unicast information to a second device, the first V2X unicast information including a first media access control (MAC) address and a first identifier; the first device receiving second V2X unicast information from the second device, the second V2X unicast information including a second MAC address and a second identifier; when the second V2X unicast information carries indication information, and the first MAC address is the same as the second MAC address, and the first identifier and the second identifier are the same, reselecting the first MAC address, the indication information being used to indicate that the second MAC address is a conflicting address.
[0009] In this embodiment of the application, in direct link communication, the sending end needs to independently select the source MAC address to transmit unicast services to the receiving end. Since the source address of the communication is of fixed length (24 bits), when multiple sending ends select the source MAC address within this fixed range, multiple sending ends may select the same source MAC address, which will lead to the inability to perform normal service communication. In this embodiment of the application, the first V2X unicast information sent by the first device (sender) to the second device (receiver) includes not only the first MAC address but also a first identifier. The first identifier can be understood as an additional identifier for the first device. When only the first device randomly selects the first MAC address, the first MAC address can represent the first device. When other devices besides the first device also randomly select the first MAC address, the first identifier can be used to identify the first device. The first identifier can also be understood as an identifier used to distinguish different devices when different devices select the same MAC address. Optionally, the first identifier can also identify the first service of the first device. When the second device determines that other devices besides the first device have also selected the first MAC address for unicast communication, it can broadcast a second V2X unicast message to all senders. This second V2X unicast message carries the second MAC address and a second identifier. The second identifier can be used to indicate which terminal needs to resolve MAC address conflicts. After receiving the second V2X unicast message from the second device, if the second V2X unicast message carries indication information, the first device can confirm that the second MAC address in the second V2X unicast message is a conflicting MAC address. It then compares its own first MAC address and first identifier with the second MAC address and second identifier, respectively. If the first MAC address and second MAC address are the same, and the first identifier and second identifier are also the same, then it can determine that it needs to reselect its first MAC address. Reselecting the first MAC address by the first device can reduce source MAC address conflicts between the first device and other senders.
[0010] In one possible implementation, the first identifier is generated by the first device and remains unchanged during the unicast service transmission corresponding to the first V2X unicast information.
[0011] In this embodiment, the first identifier remains unchanged during the unicast service transmission corresponding to the first V2X unicast information, thereby additionally identifying that the sender of the unicast service transmission corresponding to the first V2X unicast information is always the first device. Thus, after receiving the second V2X unicast information, the first device compares the first identifier with the second identifier in the second V2X unicast information. If the first identifier and the second identifier are the same, it can determine whether it needs to reselect its MAC address.
[0012] In one possible implementation, the first V2X unicast information further includes a third identifier, which changes during the unicast service transmission corresponding to the first V2X unicast information. The second V2X unicast information further includes a fourth identifier. The step of reselecting the first MAC address when the second V2X unicast information carries indication information, the first MAC address is the same as the second MAC address, and the first identifier and the second identifier are the same includes: reselecting the first MAC address when the second V2X unicast information carries indication information, the first MAC address is the same as the second MAC address, the first identifier and the second identifier are the same, and the third identifier and the fourth identifier are the same.
[0013] In this embodiment, the first V2X unicast information sent by the first device to the second device may include a first MAC address and a first identifier, and may also include a third identifier, which changes during the unicast service transmission corresponding to the first V2X unicast information. The second V2X unicast information sent by the second device includes a second MAC address and a second identifier, and may also include a fourth identifier. The additional identifier (third identifier) in the first V2X unicast information and the additional identifier (fourth identifier) in the second V2X unicast information enable the second device to more accurately determine the sender that needs to reselect its MAC address, thereby reducing the impact of service transmission interruption caused by the sender reselecting its MAC address. In one possible implementation, the third identifier is determined according to any of the following: the number of transmissions of the unicast service corresponding to the first V2X unicast information; the current stage of the unicast service corresponding to the first V2X unicast information; or a random value.
[0014] In this embodiment, determining the third identifier based on the number of unicast service transmissions corresponding to the first V2X unicast information allows the second device to prioritize reselecting the MAC address of the sender with fewer unicast service transmissions when determining the second identifier in the second V2X unicast information. For example, the first device randomly selects a first MAC address to transmit unicast services with the second device and sends first V2X unicast information including the first MAC address, the first identifier, and the third identifier to the second device; the third device randomly selects a third MAC address to transmit unicast services with the second device and sends third V2X unicast information including the third MAC address, the seventh identifier, and the eighth identifier to the second device, where the first MAC address and the third MAC address are the same. The third identifier is 3, indicating that the first device has initiated transmissions to the second device 3 times, and the eighth identifier is 8, indicating that the third device has initiated transmissions to the second device 8 times. The second device can then include the first MAC address and the number 3 in the second V2X unicast information (i.e., the second MAC address and the fourth identifier). After receiving the second V2X unicast information, the first device compares and determines that its sent first MAC address is the same as the second MAC address, the first identifier is the same as the second identifier, and the third identifier is the same as the fourth identifier. Therefore, the first device determines that it needs to reselect a MAC address, while the third device does not need to reselect a MAC address and can continue to use its current third MAC address to transmit unicast services with the second device, thus reducing the impact of service transmission interruption caused by the third device reselecting a MAC address. Similarly, determining the third identifier based on the current stage of the unicast service corresponding to the unicast information can also reduce the impact of service transmission interruption caused by the sender reselecting a MAC address. Determining the third identifier based on a random value ensures the randomness of the third identifier and reduces the possibility of the sender reselecting a MAC address, thereby reducing the impact of service transmission interruption caused by the sender reselecting a MAC address.
[0015] In one possible implementation, the first V2X unicast information further includes a fifth identifier, and the second V2X unicast information further includes a sixth identifier. The fifth identifier is used to indicate the method of determining the third identifier, and the sixth identifier is used to indicate the method of determining the fourth identifier.
[0016] In this embodiment, since there are many ways to determine the third identifier, the first device can also additionally indicate the method of determining the third identifier through a fifth identifier in the first V2X unicast information, so that the second device knows which method the third identifier is determined by. The second device carries a sixth identifier in the second V2X unicast information, which can indicate the method of determining the fourth identifier, so that the first device knows which method the fourth identifier is determined by.
[0017] In one possible implementation, the first and second identifiers are Dedicated Short Range Communication Service Advertisement (DSRC) identifiers, and the third and fourth identifiers are content counts.
[0018] In one possible implementation, the second V2X unicast information is carried via DSA data frames or dedicated short message protocol (DSMP) data frames.
[0019] In one possible implementation, the method further includes: after the first device reselects the first MAC address, it regenerates the first identifier.
[0020] Secondly, embodiments of this application provide a communication method, which includes: a second device receiving first V2X unicast information from a first device, the first V2X unicast information including a first media access control (MAC) address and a first identifier; when the first MAC address conflicts with the MAC address of a third device, the second device sending second V2X unicast information to the first device, the second V2X unicast information including indication information, a second MAC address and a second identifier, the indication information being used to indicate that the second MAC address is a conflicting address, wherein the second MAC address is the same as the first MAC address, and the second identifier is the same as the first identifier.
[0021] In this embodiment, in direct-link communication, the sending end needs to independently select a source MAC address to transmit unicast services with the receiving end. Since the source address is of fixed length (24 bits), when multiple sending ends select the same source MAC address within this fixed range, it may lead to multiple sending ends selecting the same source MAC address, resulting in the inability to perform normal service communication. In this embodiment, the first V2X unicast information sent by the first device (sender) to the second device (receiver) includes not only the first MAC address but also a first identifier. When the second device determines that other devices besides the first device have also selected the first MAC address for unicast service communication, it can broadcast second V2X unicast information to all sending ends. The second V2X unicast information carries the second MAC address, the second identifier, and indication information. After receiving the second V2X unicast information from the second device, if the second V2X unicast information carries indication information, it can confirm that the second MAC address in the second V2X unicast information is a conflicting MAC address based on the indication information. The first device then compares its own sent first MAC address and first identifier with the second MAC address and second identifier, respectively. If the first MAC address and second MAC address are the same, and the first identifier and second identifier are also the same, then it can be determined that it needs to reselect its first MAC address. Reselecting the first MAC address by the first device can reduce the problem of source MAC address conflicts between the first device and other senders.
[0022] It should be understood that the subject of execution of the second aspect is the second device, the specific content of the second aspect corresponds to the content of the first aspect, and the corresponding features of the second aspect and the beneficial effects achieved can be referred to the description of the first aspect. To avoid repetition, detailed descriptions are appropriately omitted here.
[0023] In one possible implementation, the first identifier is generated by the first device and remains unchanged during the unicast service transmission corresponding to the first V2X unicast information.
[0024] In one possible implementation, the method further includes: a second device receiving third V2X unicast information from the third device, the third V2X unicast information including a third MAC address and a seventh identifier; The conflict between the first MAC address and the MAC address of the third device includes: the first MAC address is the same as the third MAC address, and the first identifier is different from the seventh identifier.
[0025] In this application embodiment, a MAC address conflict can refer to multiple sending ends randomly selecting the same MAC address to simultaneously perform unicast service transmission with a second device. This can easily cause information transmission errors from multiple sending ends. Therefore, sending ends cannot use the same MAC address to simultaneously perform unicast service transmission with a second device. It can be understood that a MAC address conflict can also refer to other situations where multiple sending ends cannot use the same MAC address simultaneously, and this application does not limit this to such cases.
[0026] In one possible implementation, the first V2X unicast information further includes a third identifier, which changes during the transmission of the unicast service corresponding to the first V2X unicast information. The second V2X unicast information further includes a fourth identifier, which is the same as the third identifier.
[0027] In one possible implementation, the method further includes: a second device receiving third V2X unicast information from the third device, the third V2X unicast information including a third MAC address, a seventh identifier, and an eighth identifier; the second device determining that the first MAC address is the same as the third MAC address, and that the first identifier is different from the seventh identifier; The second device sends second V2X unicast information to the first device, including: when the third identifier and the eighth identifier are determined according to the number of transmissions of the unicast service corresponding to the unicast information, the second device sends second V2X unicast information to the first device based on the value corresponding to the third identifier being less than the value corresponding to the eighth identifier; or when the third identifier and the eighth identifier are determined according to the current stage of the unicast service corresponding to the unicast information, the second device sends second V2X unicast information to the first device based on the value corresponding to the third identifier being less than the value corresponding to the eighth identifier; or when the third identifier and the eighth identifier are random values, the second device randomly sends second V2X unicast information to the first device.
[0028] In this embodiment, determining the third identifier based on the number of unicast service transmissions corresponding to the first V2X unicast information allows the second device to prioritize reselecting the MAC address of the sender with fewer unicast service transmissions when determining the second identifier in the second V2X unicast information. For example, the first device randomly selects a first MAC address to transmit unicast services with the second device and sends first V2X unicast information including the first MAC address, the first identifier, and the third identifier to the second device; the third device randomly selects a third MAC address to transmit unicast services with the second device and sends third V2X unicast information including the third MAC address, the seventh identifier, and the eighth identifier to the second device, where the first MAC address and the third MAC address are the same. The third identifier is 3, indicating that the first device has initiated transmissions to the second device 3 times, and the eighth identifier is 8, indicating that the third device has initiated transmissions to the second device 8 times. Therefore, the second device can include the first MAC address and the third identifier in the second V2X unicast information (i.e., the second MAC address and the fourth identifier). After receiving the second V2X unicast information, the first device compares and determines that its sent first MAC address is the same as the second MAC address, the first identifier is the same as the second identifier, and the third identifier is the same as the fourth identifier. Therefore, the first device determines that it needs to reselect a MAC address, while the third device does not need to reselect a MAC address and can continue to use its current third MAC address to transmit unicast services with the second device, thus reducing the impact of service transmission interruption caused by the third device reselecting a MAC address. Similarly, determining the third identifier based on the current stage of the unicast service corresponding to the unicast information can also reduce the impact of service transmission interruption caused by the sender reselecting a MAC address. Determining the third identifier based on a random value ensures the randomness of the third identifier and reduces the possibility of the sender reselecting a MAC address, thereby reducing the impact of service transmission interruption caused by the sender reselecting a MAC address.
[0029] In one possible implementation, the first V2X unicast information further includes a fifth identifier, and the second V2X unicast information further includes a sixth identifier. The fifth identifier is used to indicate the method of determining the third identifier, and the sixth identifier is used to indicate the method of determining the fourth identifier.
[0030] In one possible implementation, the first and second identifiers are DSA identifiers, and the third and fourth identifiers are content counts.
[0031] In one possible implementation, the second V2X unicast information is carried via a DSA data frame or a DSMP data frame.
[0032] Thirdly, embodiments of this application provide a communication device applied in a first device. This communication device can be a terminal or a module (e.g., a chip) within a terminal. The communication device includes: The first sending unit is used to send first V2X unicast information to the second device. The first V2X unicast information includes a first media access control MAC address and a first identifier. The first receiving unit is configured to receive second V2X unicast information from the second device, wherein the second V2X unicast information includes a second MAC address and a second identifier. The reselection unit is used to reselect the first MAC address when the second V2X unicast information carries indication information, the first MAC address is the same as the second MAC address, and the first identifier and the second identifier are the same. The indication information is used to indicate that the second MAC address is a conflicting address.
[0033] In one possible implementation, the first identifier is generated by the first device and remains unchanged during the unicast service transmission corresponding to the first V2X unicast information.
[0034] In one possible implementation, the first V2X unicast information further includes a third identifier, which changes during the transmission of the unicast service corresponding to the first V2X unicast information, and the second V2X unicast information further includes a fourth identifier. When the second V2X unicast information carries indication information, and the first MAC address is the same as the second MAC address, and the first identifier and the second identifier are the same, the reselection unit reselects the first MAC address, specifically for: When the second V2X unicast information carries indication information, and the first MAC address is the same as the second MAC address, the first identifier is the same as the second identifier, and the third identifier is the same as the fourth identifier, the first MAC address is reselected.
[0035] In one possible implementation, the third identifier is determined according to any of the following methods: The number of transmissions of the unicast service corresponding to the first V2X unicast information; The current stage of the unicast service corresponding to the first V2X unicast information; or Random value.
[0036] In one possible implementation, the first V2X unicast information further includes a fifth identifier, and the second V2X unicast information further includes a sixth identifier. The fifth identifier is used to indicate the method of determining the third identifier, and the sixth identifier is used to indicate the method of determining the fourth identifier.
[0037] In one possible implementation, the first and second identifiers are DSA identifiers, and the third and fourth identifiers are content counts.
[0038] In one possible implementation, the second V2X unicast information is carried via a DSA data frame or a DSMP data frame.
[0039] In one possible implementation, the communication device further includes: The generation unit is used to regenerate the first identifier after reselecting the first MAC address.
[0040] Fourthly, embodiments of this application provide a communication device applied in a second device. This communication device can be a network device or a module (e.g., a chip) within a network device. The communication device includes: The second receiving unit is configured to receive first V2X unicast information from the first device, wherein the first V2X unicast information includes a first media access control MAC address and a first identifier. The second sending unit is configured to send second V2X unicast information to the first device when the first MAC address conflicts with the MAC address of the third device. The second V2X unicast information includes indication information, a second MAC address, and a second identifier. The indication information is used to indicate that the second MAC address is a conflicting address, wherein the second MAC address is the same as the first MAC address, and the second identifier is the same as the first identifier.
[0041] In one possible implementation, the first identifier is generated by the first device and remains unchanged during the unicast service transmission corresponding to the first V2X unicast information.
[0042] In one possible implementation, the second receiving unit is further configured to receive third V2X unicast information from the third device, the third V2X unicast information including a third MAC address and a seventh identifier; The conflict between the first MAC address and the third device's MAC address includes: The first MAC address is the same as the third MAC address, and the first identifier is different from the seventh identifier.
[0043] In one possible implementation, the first V2X unicast information further includes a third identifier, which changes during the transmission of the unicast service corresponding to the first V2X unicast information. The second V2X unicast information further includes a fourth identifier, which is the same as the third identifier.
[0044] In one possible implementation, the second receiving unit is further configured to receive third V2X unicast information from the third device, the third V2X unicast information including a third MAC address, a seventh identifier, and an eighth identifier; The device further includes: A determining unit is configured to determine that the first MAC address is the same as the third MAC address, and that the first identifier is different from the seventh identifier; The second sending unit sends second V2X unicast information to the first device, specifically for: When the third identifier and the eighth identifier are determined based on the number of transmissions of the unicast service corresponding to the unicast information, the second device sends the second V2X unicast information to the first device based on the fact that the value corresponding to the third identifier is less than the value corresponding to the eighth identifier; or When the third identifier and the eighth identifier are determined based on the current stage of the unicast service corresponding to the unicast information, the second device sends the second V2X unicast information to the first device based on the fact that the value corresponding to the third identifier is less than the value corresponding to the eighth identifier; or When the third identifier and the eighth identifier are random values, the second device randomly sends the second V2X unicast information to the first device.
[0045] In one possible implementation, the first V2X unicast information further includes a fifth identifier, and the second V2X unicast information further includes a sixth identifier. The fifth identifier is used to indicate the method of determining the third identifier, and the sixth identifier is used to indicate the method of determining the fourth identifier.
[0046] In one possible implementation, the first and second identifiers are DSA identifiers, and the third and fourth identifiers are content counts.
[0047] In one possible implementation, the second V2X unicast information is carried via a DSA data frame or a DSMP data frame.
[0048] Fifthly, embodiments of this application provide a communication device that may include a processor coupled to a memory. The memory stores computer instructions, which, when executed by the processor, cause the methods described in the first or second aspect, or any possible implementation thereof, to be implemented. Optionally, the communication device may further include a communication interface for communicating with other devices or communication networks.
[0049] Sixthly, embodiments of this application provide a chip system including at least one processor and a communication interface, wherein the communication interface and the at least one processor are interconnected via a circuit, and the at least one processor is configured to run computer programs or instructions to perform methods as described in the first aspect or the second aspect, or any possible implementation thereof. This chip system may be composed of chips or may include chips and other discrete devices.
[0050] In a seventh aspect, embodiments of this application provide a computer-readable storage medium for storing a computer program used for a communication device provided in the third or fourth aspect above, wherein when the computer program is executed by a computer, the method in the first or second aspect or any possible implementation thereof is implemented.
[0051] Eighthly, embodiments of this application provide a computer program product that may include computer instructions that, when executed by a processor, cause the methods in the first aspect, the second aspect, or any possible implementation thereof to be implemented.
[0052] Ninthly, embodiments of this application provide a first device that carries the communication apparatus and corresponding communication system described in the third aspect above, and can be used to execute the methods in the first aspect above or any possible implementation thereof, so that the relevant functions can be realized.
[0053] In a tenth aspect, embodiments of this application provide a second device that carries the communication apparatus and corresponding communication system described in the fourth aspect above, and can be used to execute the methods in the second aspect above or any possible implementation thereof, so that the relevant functions can be realized. Attached Figure Description
[0054] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below.
[0055] Figure 1 This is a schematic diagram of a V2X communication scenario provided in an embodiment of this application; Figure 2 This is a schematic diagram of an LTE-V2X deployment scenario provided in an embodiment of this application; Figure 3 This is a schematic diagram of an LTE-V2X end-to-end protocol stack architecture provided in an embodiment of this application; Figure 4 This is a flowchart illustrating a communication method provided in an embodiment of this application; Figure 5 This is a flowchart illustrating another communication method provided in an embodiment of this application; Figure 6 This is a schematic diagram of a data frame structure provided in an embodiment of this application; Figure 7 This is a schematic diagram of another data frame structure provided in an embodiment of this application; Figure 8 This is a schematic diagram of the structure of a communication device provided in an embodiment of this application; Figure 9 This is a schematic diagram of another communication device provided in an embodiment of this application; Figure 10 This is a schematic diagram of the structure of another communication device provided in the embodiments of this application; Figure 11 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. Detailed Implementation
[0056] The embodiments of this application will now be described with reference to the accompanying drawings.
[0057] The terms "first," "second," "third," and "fourth," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.
[0058] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0059] As used in this specification, the terms "component," "module," "system," etc., are used to refer to computer-related entities, hardware, firmware, combinations of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program, and / or a computer. As illustrated, applications running on computing devices and computing devices can both be components. One or more components may reside in a process and / or an execution thread, and components may be located on a single computer and / or distributed among two or more computers. Furthermore, these components can be executed from various computer-readable media on which various data structures are stored. Components can communicate, for example, via local and / or remote processes based on signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system, and / or a network, such as the Internet interacting with other systems via signals).
[0060] First, some of the terms used in this application will be explained to facilitate understanding by those skilled in the art.
[0061] (1) The on-board unit (OBU) is generally installed on the vehicle, while roadside units (RSUs) are installed on the roadside. The OBU can communicate with the RSU, for example, via microwave. When a vehicle passes the RSU, the OBU and the RSU can communicate via microwave. In the electronic toll collection (ETC) system, the OBU uses dedicated short-range communications (DSRC) technology to establish a microwave communication link with the RSU. During the vehicle's journey, without stopping, it can perform processes such as vehicle identification or electronic toll deduction.
[0062] (2) A roadside unit (RSU) is a device installed on the roadside that uses short-range communication technology (e.g., Cellular-V2X technology) to communicate with an on-board unit (OBU).
[0063] (3) Vehicle-to-everything (V2X) communication is a key technology of intelligent transportation systems, enabling communication between vehicles (V2V), between vehicles and roadside units (V2I), between vehicles and networks (V2N), and between vehicles and pedestrians (V2P). This allows the acquisition of real-time traffic information such as road conditions, pedestrian information, etc. Through the V2X system, autonomous driving systems can acquire richer real-time data, which can be used for real-time traffic information analysis and optimal route selection. Taking the most common V2V and V2I as examples: through V2V communication, vehicles can broadcast their speed, direction of travel, specific location, and whether they have applied emergency brakes to surrounding vehicles. By acquiring this information, surrounding vehicles can enable drivers to better perceive traffic conditions beyond their line of sight, thereby making advance predictions of dangerous situations and taking timely evasive action. In addition to the exchange of security information, V2I communication can also provide vehicles with various service information and data network access, and functions such as non-stop toll collection and in-vehicle entertainment have greatly improved traffic intelligence.
[0064] (4) The PC5 interface is a direct communication interface between terminal devices introduced in the D2D project of 3GPP Release 12 (Rel-12). Neighboring terminals can transmit data through a direct link within the effective communication range of PC5, without the need for forwarding through a central node (such as a base station) or through traditional cellular links, making communication faster and more convenient. Direct link communication between V2X devices is also conducted through the PC5 interface.
[0065] With the continuous development of society, the prevalence of automobiles has increased significantly. While driving brings convenience to people's travel, it has also brought certain negative impacts to human society. The rapid increase in the number of vehicles has led to a series of problems such as urban traffic congestion, frequent traffic accidents, and deteriorating environmental quality. A major cause of traffic accidents is the lack of timely and reliable information exchange between vehicles. Please refer to [link / reference]. Figure 1 , Figure 1 This is a schematic diagram of a V2X communication scenario provided in an embodiment of this application. Figure 1As shown, vehicle networks can improve road safety, increase traffic efficiency, and provide users with rich streaming media services through communication between vehicles (V2V, V2I, V2P, or V2N). Intelligent transportation systems (ITS) have stringent requirements for low latency and high reliability in communication. The 3GPP-standardized LTE-V2X technology offers advantages such as low latency, high speed, wide coverage, and high reliability, making it an excellent vehicle network technology.
[0066] Currently, LTE-V2X communication supports two communication modes: V2X communication based on a direct link and V2X communication based on a cellular network (eNB) relay. V2X communication based on a direct link refers to direct communication between the data sending terminal and the data receiving terminal via a direct link. This direct communication link is called a sidelink (SL). Furthermore, V2X communication based on a direct link is divided into two modes: base station scheduling mode (mode 3) and autonomous resource selection mode (mode 4). In the autonomous resource selection scheduling mode, the base station configures a resource pool for the terminal through radio resource control (RRC) signaling (including dedicated RRC signaling or system information block (SIB) messages). The terminal autonomously obtains resources from the resource pool for direct link communication. The terminal can autonomously obtain resources from the resource pool through random resource selection.
[0067] With the continuous development of V2X services, V2X is no longer limited to supporting only broadcast-type service information, but is also seeking to support unicast-type service information. Typical service information includes point-to-point interaction of sensor data between vehicles and between vehicles and roads, and near-field toll collection or identity information query and management between vehicles and roads.
[0068] For terminal devices based on LTE-V2X direct link communication, the network layer of the transmitting end needs to select a source address (also known as a source layer 2 identifier) at the MAC layer. When sending data, the selected source address is set in the corresponding address bit of the MAC PDU to identify the transmitting end. Currently, the MAC address length is 24 bits. Because it uses an autonomous address selection mechanism, all transmitting ends actually randomly select a source address within the same address domain, which may lead to conflicts between the source addresses selected by different transmitting ends. For unicast services, since both communicating parties need to use MAC addresses to address each other and exchange data, if other terminals select the same source MAC address, it will cause the entire interaction process to be disrupted, resulting in the service failing to function properly.
[0069] Therefore, the technical problem to be solved by the embodiments of this application may include the following: for unicast service transmission of terminal devices based on LTE-V2X direct link communication, effective source MAC address conflict detection and reselection can be achieved. This can reduce the problem of interaction process disorder caused by different terminals selecting the same source MAC address, thereby preventing the service from running normally.
[0070] Based on the above, in order to better understand the communication method and communication device provided in the embodiments of this application, the system architecture applied in the embodiments of this application will be introduced below.
[0071] Please see Figure 2 , Figure 2 This is a schematic diagram of a V2X communication system based on a direct link provided in an embodiment of this application. Figure 2 The terminal shown here is a vehicle, but in practical applications, it can be other types of terminals. For example... Figure 2 As shown, V2X communication based on a direct link refers to direct communication (V2V) between the data sending terminal (vehicle 1) and the data receiving terminal (vehicle 2) via a direct link. Communication can be based on any wired and wireless network, including but not limited to the Internet, wide area network, metropolitan area network, local area network, virtual private network (VPN), and wireless communication networks, etc.
[0072] The method provided in this application embodiment can be used in communication systems that support V2X service transmission. The communication system can be a 3rd generation partnership project (3GPP) communication system, such as a long term evolution (LTE) system, or a 5th generation (5G) mobile communication system, or a new radio (NR) system, or other next-generation communication systems, or a non-3GPP communication system, without limitation.
[0073] Terminal equipment includes devices that provide voice and / or data connectivity to users, such as handheld devices with wireless connectivity or processing devices connected to a wireless modem. The terminal equipment can communicate with the core network via a radio access network (RAN) and exchange voice and / or data with the RAN. The terminal equipment may include user equipment (UE), wireless terminal equipment, mobile terminal equipment, device-to-device (D2D) terminal equipment, V2X terminal equipment, machine-to-machine / machine-type communications (M2M / MTC) terminal equipment, internet of things (IoT) terminal equipment, subscriber unit, subscriber station, mobile station, remote station, access point (AP), remote terminal, access terminal, user terminal, user agent, or user device, etc. For example, this can include mobile phones (or "cellular" phones), computers with mobile terminal devices, portable, pocket-sized, handheld, and computer-embedded mobile devices. Examples include Personal Communication Service (PCS) phones, cordless phones, Session Initiation Protocol (SIP) phones, Wireless Local Loop (WLL) stations, and Personal Digital Assistants (PDAs). It also includes limited devices, such as those with low power consumption, limited storage capacity, or limited computing power. Examples include information sensing devices such as barcode scanners, radio frequency identification (RFID), sensors, Global Positioning System (GPS), and laser scanners.
[0074] By way of example and not limitation, in this embodiment, the terminal device can also be a wearable device. Wearable devices, also known as wearable smart devices or smart wearable devices, are a general term for devices that utilize wearable technology to intelligently design and develop everyday wearables, such as glasses, gloves, watches, clothing, and shoes. Wearable devices are portable devices that are worn directly on the body or integrated into the user's clothing or accessories. Wearable devices are not merely hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are feature-rich, large in size, and can achieve complete or partial functions without relying on a smartphone, such as smartwatches or smart glasses, as well as those that focus on a specific type of application function and require the use of other devices such as smartphones, such as various smart bracelets, smart helmets, and smart jewelry for vital sign monitoring.
[0075] exist Figure 2 In the communication system shown, a terminal can communicate one-to-one with other terminals in the communication system, i.e., unicast communication, or it can communicate multicastly with multiple other terminals in the communication system. For example, terminal 1 can communicate unicastly with terminal 2, or it can communicate multicastly with terminal 2 and other terminals, without limitation. This application embodiment only uses unicast communication as an example to describe the communication method provided by this application embodiment. Alternatively, the various terminal devices described above, if located in a vehicle (e.g., placed inside or installed inside a vehicle), can be considered as vehicle-mounted terminal devices, and vehicle-mounted terminal devices can also be considered as OBUs (on-board units). The terminal equipment described above, if located on the roadside, such as roadside infrastructure, can be implemented as a roadside unit (RSU) or a communication device for the RSU. The RSU is usually the roadside unit of the V2X system, which can be used to receive real-time traffic information sent by traffic signal controllers, application servers, or network devices, and dynamically notify relevant vehicles to avoid or reduce traffic accidents and improve traffic efficiency. The OBU is the on-board unit of the V2X system, which can communicate using PC5 port or RSU / OBU to realize vehicle-to-vehicle (V2V), vehicle-to-pedestrian (V2P), vehicle-to-infrastructure (V2I), and vehicle-to-network (V2N) functions in the V2X system, and can further support fully automated driving services.
[0076] In this application embodiment, the device for implementing the functions of the terminal device can be the terminal device itself, or it can be a device capable of supporting the terminal device in implementing the functions, such as a chip system, which can be installed in the terminal device. In this application embodiment, the chip system can be composed of chips, or it can include chips and other discrete devices. In the technical solutions provided in this application embodiment, the terminal device is used as an example to describe the technical solutions provided in this application embodiment.
[0077] Understandable. Figure 2 The communication system architecture shown is only an exemplary implementation in the embodiments of this application. The communication system architecture in the embodiments of this application includes, but is not limited to, the above communication system architecture.
[0078] Please see Figure 3 , Figure 3 This is a schematic diagram of an LTE-V2X end-to-end protocol stack architecture provided in an embodiment of this application. Specifically, to support direct communication between terminals, the two terminals in direct communication can establish an agreement as follows: Figure 3 The protocol layer shown is through which V2X services are transmitted. For example... Figure 3 As shown, the two terminals in direct communication (such as terminal 1 and terminal 2) include at least the access stratum (AS) layer, network layer, application layer, management, and security.
[0079] The access layer provides functions such as communication network node addressing, communication media access control, and the establishment, maintenance, and upkeep of physical communication connections for data transmission. The access layer provides communication interfaces between devices and may include various access technologies, such as the LTE-V2X PC5 interface and the wireless fidelity (Wi-Fi) interface. Different access technologies may correspond to different communication interfaces.
[0080] When the access layer technology is LTE-V2X, the access layer protocol stack, from top to bottom, includes the Packet Data Convergence Protocol (PDCP) layer, the Radio Link Control (RLC) layer, the Medium Access Control (MAC) layer, and the Physical Layer (PHY). The PDCP layer can process data from upper layers (above the PDCP layer). For example, in the user plane, after receiving data from upper layers, the PDCP layer can perform header compression and encryption before submitting it to the RLC layer. Additionally, the PDCP layer can provide in-order submission and duplicate packet detection functions to upper layers. For instance, in the control plane, the PDCP layer can provide RRC signaling transmission services to upper layers and implement encryption and consistency protection for RRC signaling. The MAC layer provides data transmission services on logical channels. Logical channels are generally divided into two categories: control channels and traffic channels. Control channels are used to transmit control plane information, while traffic channels are used to transmit user plane information. Furthermore, the MAC layer is also responsible for mapping logical channels to transport channels. Below the MAC layer is the PHY layer, which is mainly responsible for mapping the transmission channel to the physical channel.
[0081] The network layer, located above the access layer, is used to implement network topology control, data routing, and data transmission for devices and communication services for applications. The network layer may include an adaptation layer, a dedicated management entity, and a dedicated short message protocol. For example, the network layer may include network protocols and / or transport protocols based on the Open Systems Interconnection Model (OSI), responsible for data interaction with different applications, providing connection-oriented services and / or data forwarding. For instance, the network layer may include at least one of the following non-IP network protocols: DSMP, a Dedicated Short Range Communication Management Entity (DSRC, DME), an adaptation layer, GeoNetworking, WAVE (Wireless Access in Vehicle Environments), and Fast Network & Transport Layer Protocol (FNTP), and / or IP network protocols. The DME provides management interfaces for all data sublayer entities, including the DSMP protocol. In addition, the network layer may include transport protocols such as User Datagram Protocol (UDP) and Transmission Control Protocol (TCP). The network layer transmits data packets of interest to the application layer to the application layer and receives data packets from the application layer.
[0082] Since the network layer may contain different networks and / or transport protocols, and the access layer may contain multiple different access technologies, the adaptation layer is used to provide transmission adaptation functions between different access technologies and different networks and / or transport protocols. For example, the adaptation layer receives data packets from the upper layer (above the adaptation layer), distinguishes the lower layer (below the adaptation layer) access technology used by the data packet (such as LTE-V2X PC5 or Wi-Fi), and delivers the data packet to the lower layer (below the adaptation layer) that conforms to the corresponding access technology for transmission; or, it receives data packets from the lower layer (below the adaptation layer), distinguishes the upper layer (above the adaptation layer) protocol type to which the data packet belongs, and delivers the data packet to the corresponding upper layer protocol for processing. As another example, different networks and / or transport protocols and different access layer technologies may use different address information. The adaptation layer generates an access layer address based on the destination address information corresponding to the data packet and delivers the access layer address to the access layer.
[0083] It is understood that the adaptation layer is a logical layer, and its functionality can exist as an independent layer, or it can be included in the "generalized network layer" or the "generalized access layer" (e.g., as a sub-layer). When the adaptation layer's functionality is included in the "generalized network layer," the "generalized network layer" at least includes the functionality of the network layer and the adaptation layer in this application. Similarly, when the adaptation layer's functionality is included in the "generalized access layer," the "generalized access layer" at least includes the functionality of the access layer and the adaptation layer in this application. Figure 2 As shown, the adaptation layer is a sub-layer of the "generalized network layer".
[0084] The application layer, located above the network layer, is used to provide users with various applications and services.
[0085] The system consists of a management layer and a security layer. The security layer provides or defines security mechanisms, such as security mechanisms for message layer data, including at least one of the following security processes: signature, signature verification, encryption, decryption, and integrity protection. The management layer primarily handles system configuration and maintenance.
[0086] Based on the system architecture described above, a communication method provided in an embodiment of this application will be described below. Please refer to... Figure 4 , Figure 4 This is a flowchart illustrating a communication method provided in an embodiment of this application, which may include steps S401-S404; optional steps may include step S404. The first device and the second device are the terminals described above.
[0087] Step S401: The first device sends the first V2X unicast information, including the first MAC address and the first identifier, to the second device.
[0088] Correspondingly, the second device receives first V2X unicast information from the first device, including the first MAC address and the first identifier.
[0089] Before engaging in unicast service transmission with the second device, the first device can first determine a first MAC address and a first identifier, and then send first V2X unicast information to the second device. This first V2X unicast information includes the first MAC address and the first identifier. The first MAC address is a MAC address randomly selected by the first device.
[0090] Specifically, in combination Figure 3 The protocol stack architecture shown allows the network layer functional entity of the first device to randomly select the first MAC address. For example, the adaptation layer in the network layer or the dedicated management entity (DME) in the network layer can perform the random selection of the first MAC address.
[0091] Furthermore, the first MAC address can be directly encapsulated in a DSA or DSMP data frame. Alternatively, it can be encapsulated in the destination address within a MAC PDU sent by the second device.
[0092] The MAC address in this application embodiment may refer to the source MAC address, which will be explained uniformly here and will not be repeated later.
[0093] The first identifier can be understood as an additional identifier for the first device. When only the first device randomly selects the first MAC address, this first MAC address can represent the first device. When other devices besides the first device also randomly select the first MAC address, the first identifier can be used to identify the first device. The first identifier can also be understood as an identifier used to distinguish different devices when different devices use the same MAC address. Optionally, the first identifier can also identify the first device's primary service.
[0094] Optionally, the first identifier remains unchanged during the unicast service transmission corresponding to the first V2X unicast information. The first identifier may be generated when the first device first conducts unicast service transmission with the second device, or it may be generated when the first device reselects the first MAC address. In one embodiment, the first identifier may be a DSA identifier, located in the DSA data frame generated by the dedicated management entity.
[0095] Step S402: When the first MAC address conflicts with the MAC address of the third device, the second device sends the second V2X unicast information, including the second MAC address and the second identifier, to the first device.
[0096] Accordingly, the first device receives second V2X unicast information from the second device, including the second MAC address and the second identifier.
[0097] After receiving the first V2X unicast information, including the first MAC address and the first identifier, from the first device, the second device can perform conflict detection on the first MAC address. That is, based on all the received MAC addresses stored, it can determine whether the first MAC address conflicts with the MAC address of the third device.
[0098] The third device is the device that establishes unicast communication with the second device. When establishing unicast communication, the third device sends third V2X unicast information to the second device. This third V2X unicast information includes a third MAC address and a seventh identifier. The third MAC address is a MAC address randomly selected by the third device. The seventh identifier can be understood as an additional identifier for the third device. When only the third device randomly selects the third MAC address, this third MAC address can represent the third device. When other devices besides the third device also randomly select the third MAC address, the seventh identifier can be used to identify the third device. The seventh identifier can also be understood as an identifier used to distinguish different devices when different devices use the same MAC address. Optionally, the seventh identifier can also identify a specific service of the third device.
[0099] Optionally, the seventh identifier remains unchanged during the unicast service transmission corresponding to the third V2X unicast information. The seventh identifier may be generated when the third device first conducts unicast service transmission with the second device, or it may be generated when the third device reselects a third MAC address. In one embodiment, the seventh identifier may be a DSA identifier, located in the DSA data frame generated by the dedicated management entity.
[0100] A conflict between the first MAC address and the third device's MAC address can be understood as the first MAC address being the same as the third MAC address, and the first identifier being different from the seventh identifier. For example, if the first device randomly selects a first MAC address of 1, and the third device randomly selects a third MAC address of 1, then after the second device receives unicast information from both the first and third devices, it can determine that the first MAC address and the third MAC address conflict based on the MAC address information in the unicast information from each of the first and third devices.
[0101] When the second device determines that the first MAC address conflicts with the third MAC address, the second device can broadcast second V2X unicast information to all devices with which it has established unicast communication, including the first and third devices. This second V2X unicast information includes the second MAC address and a second identifier, and may also include indication information. The indication information indicates that the second MAC address is a conflicting address. The second identifier can be used to indicate which terminal needs to resolve the MAC address conflict. Specifically, the network layer of the second device can determine whether the first MAC address conflicts with the third MAC address. The second V2X unicast information can be carried through DSA or DSMP data frames. The indication information can be an AID identifier in the data frame, which indicates that the second MAC address and the second identifier are conflicting identifiers in the data written in the DSA or DSMP data frame sent by the second device. The second MAC address can be either the first or the third MAC address, and the second identifier can be either a first identifier or a seventh identifier.
[0102] It is understood that the MAC address conflict described in the embodiments of this application can refer to the situation where the MAC addresses are the same, such as when the third MAC address is the same as the first MAC address, then the third MAC address is determined to be in conflict with the first MAC address. MAC address conflict can also refer to other situations where the first MAC address cannot be used (the first device needs to reselect the first MAC address), which is not limited in this application.
[0103] Step S403: When the second V2X unicast information carries indication information for indicating that the second MAC address is a conflicting address, and the first MAC address is the same as the second MAC address, and the first identifier and the second identifier are the same, the first device reselects the first MAC address.
[0104] After sending the first V2X unicast information carrying the first MAC address and the first identifier to the second device, the first device stores the first MAC address and the first identifier.
[0105] After receiving second V2X unicast information from the second device, including the second MAC address and the second identifier, the first device, if carrying indication information, can determine that the received second MAC address is a conflicting address based on the indication information, and determine the terminal that needs to resolve the MAC address conflict based on the second identifier. The first device compares its stored first MAC address and first identifier, which were previously sent to the second device, with the second MAC address and second identifier. If the first MAC address and second MAC address are the same, and the first identifier and second identifier are the same, then it can be determined that the terminal that needs to resolve the MAC address conflict is itself, and the first MAC address is reselected.
[0106] Step S404: The first device regenerates the first identifier.
[0107] After the first device reselects the first MAC address, it can also regenerate the first identifier.
[0108] Based on the system architecture described above, another communication method provided in this application embodiment is described below. Please refer to... Figure 5 , Figure 5 This is a flowchart illustrating another communication method provided in an embodiment of this application, which may include steps S501-S505; optional steps may include step S505. The first device and the second device are the terminals described above.
[0109] Step S501: The first device sends the first V2X unicast information, including the first MAC address, the first identifier, and the third identifier, to the second device.
[0110] Accordingly, the second device receives first V2X unicast information from the first device, including a first MAC address, a first identifier, and a third identifier.
[0111] Before engaging in unicast service transmission with the second device, the first device can first determine a first MAC address, a first identifier, and a third identifier, and then send first V2X unicast information to the second device. This first V2X unicast information includes the first MAC address, the first identifier, and the third identifier. The first MAC address is a MAC address randomly selected by the first device.
[0112] Specifically, in combination Figure 3 The protocol stack architecture shown allows the network layer functional entity of the first device to randomly select the first MAC address. For example, the adaptation layer in the network layer or the dedicated management entity (DME) in the network layer can perform the random selection of the first MAC address.
[0113] Furthermore, the first MAC address can be directly encapsulated in a DSA or DSMP data frame. Alternatively, it can be encapsulated in the destination address within a MAC PDU sent by the second device.
[0114] The first identifier can be understood as an additional identifier for the first device. When only the first device randomly selects the first MAC address, this first MAC address can represent the first device. When other devices besides the first device also randomly select the first MAC address, the first identifier can be used to identify the first device. The first identifier can also be understood as an identifier used to distinguish different devices when different devices use the same MAC address. Optionally, the first identifier can also identify the first device's primary service.
[0115] Optionally, the first identifier remains unchanged during the unicast service transmission corresponding to the first V2X unicast information. The first identifier may be generated when the first device first conducts unicast service transmission with the second device, or it may be generated when the first device reselects the first MAC address. In one embodiment, the first identifier may be a DSA identifier, located in the DSA data frame generated by the dedicated management entity.
[0116] The third identifier changes during the unicast service transmission corresponding to the first V2X unicast information. This can be understood as the third identifier using different values at different interaction steps throughout the entire process of the unicast service interaction corresponding to the first V2X unicast information. In one embodiment, the third identifier may be the contentcount field in the DSA data frame.
[0117] In one embodiment, the first V2X unicast information includes a first identifier and a third identifier. If the first identifier is a DSA identifier and the third identifier is a content count, the frame structure of the first V2X unicast information can be found [reference needed]. Figure 6 , Figure 6 This is a schematic diagram of a data frame structure provided in an embodiment of this application. For example... Figure 6 As shown, the first V2X unicast information may include a MAC data frame, which may include a version field, a source field, a destination field, a MAC sub-headers field, and a payload field. The payload field may include a DSMP data frame, which may include a DSMP header field and a payload field. The payload field may also include a DSA data frame, which may include a DSA version field, a DSA Header Extension Indicator field, a Reserved field, a DSA identifier field, a content count field, a Header Extension field, an AID field, a Length field, and a Data field.
[0118] The third identifier can be determined according to any of the following methods: Method 1: The number of unicast service transmissions corresponding to the first V2X unicast information. For example, the third identifier can be set to the number of times the first device initiates a transmission to the second device in this unicast service interaction. Optionally, once the maximum value is reached, the transmission count restarts.
[0119] Method 2: The current stage of the unicast service corresponding to the first V2X unicast information. For example, the third identifier is set to the current stage of this unicast service interaction. For example, 0 represents the link communication establishment stage of the unicast service, 1 represents the secure information channel establishment stage, etc. If the first device conflicts with the source MAC address of other senders during the secure information channel establishment stage, and if the first device needs to reselect the MAC address, then after reselecting the MAC address, the first device can continue to transmit services to the second device from the secure information channel establishment stage without having to restart the service transmission. This can reduce the waste of transmission resources and save transmission time.
[0120] Method 3: Random value. For example, set the third identifier to a random value.
[0121] It is understood that the methods listed above are only some examples, and other methods may be used to determine the third identifier, which are not limited in this application.
[0122] Optionally, the first V2X unicast information may also include a fifth identifier, which is used to identify the method by which the third identifier was determined. The first device can set the fifth identifier according to the selected method for determining the third identifier. For example, the fifth identifier can be 3 bits long: 000 represents that the third identifier is determined based on the number of times the first device initiates transmissions to the second device in this unicast service interaction; 001 represents that the third identifier is determined based on the current stage of this unicast service interaction; 010 represents that the third identifier is determined based on a random value, etc.
[0123] In one embodiment, the fifth identifier may be located in the DSA data frame. When the first V2X unicast information includes a first identifier, a third identifier, and a fifth identifier, and if the first identifier is a DSA identifier, the third identifier is a content count, and the fifth identifier is located in the DSA data frame, the frame structure of the first V2X unicast information can be found in [reference needed]. Figure 7 , Figure 7 This is a schematic diagram of another data frame structure provided in an embodiment of this application. For example... Figure 7As shown, the first V2X unicast information may include a MAC data frame, which may include a version field, a source field, a destination field, a MAC sub-headers field, and a payload field. The payload field may include a DSMP data frame, which may include a DSMP header field and a payload field. The payload field may also include a DSA data frame, which may include a DSA version field, a DSA Header Extension Indicator field, a fifth identifier field, a DSA identifier field, a content count field, a HeaderExtension field, an AID field, a Length field, and a Data field.
[0124] Step S502: The second device determines whether the first MAC address conflicts with the MAC address of the third device. If so, proceed to step S503.
[0125] After receiving the first V2X unicast information from the first device, including the first MAC address, the first identifier, and the third identifier, the second device can perform conflict detection on the first MAC address. That is, based on all the received MAC addresses stored, it can determine whether the first MAC address conflicts with the MAC address of the third device. If a conflict occurs, step S503 is executed.
[0126] The third device is the device that establishes unicast communication with the second device. When establishing unicast communication, the third device sends third V2X unicast information to the second device. This third V2X unicast information includes a third MAC address, a seventh identifier, and an eighth identifier. The third MAC address is a MAC address randomly selected by the third device. The seventh identifier can be understood as an additional identifier for the third device. When only the third device randomly selects the third MAC address, this third MAC address can represent the third device. When other devices besides the third device also randomly select the third MAC address, the seventh identifier can be used to identify the third device. The seventh identifier can also be understood as an identifier used to distinguish different devices when different devices use the same MAC address. Optionally, the seventh identifier can also identify a specific service of the third device.
[0127] Optionally, the seventh identifier remains unchanged during the unicast service transmission corresponding to the third V2X unicast information. The seventh identifier may be generated when the third device first conducts unicast service transmission with the second device, or it may be generated when the third device reselects a third MAC address. In one embodiment, the seventh identifier may be a DSA identifier, located in the DSA data frame generated by the dedicated management entity.
[0128] The eighth identifier changes during the unicast service transmission corresponding to the third V2X unicast information. This can be understood as the eighth identifier using different values at different interaction steps throughout the entire process of the unicast service interaction corresponding to this third V2X unicast information. In one embodiment, the eighth identifier can be the contentcount field in the DSA data frame.
[0129] The eighth identifier can be determined according to any of the following methods: Method 1: The number of unicast service transmissions corresponding to the third V2X unicast information. For example, the eighth identifier can be set to the number of times the third device initiates a transmission to the second device in this unicast service interaction. Optionally, once the maximum value is reached, the transmission count restarts.
[0130] Method 2: The current stage of the unicast service corresponding to the third V2X unicast information. For example, the eighth identifier can be set to the current stage of the unicast service interaction. For example, 0 represents the link communication establishment stage of the unicast service, and 1 represents the secure information channel establishment stage, etc. If the third device conflicts with the source MAC address of other senders during the secure information channel establishment stage, and if the third device needs to reselect the MAC address, it can continue to transmit services to the second device from the secure information channel establishment stage after reselecting the MAC address, without having to restart the service transmission. This reduces the waste of transmission resources and saves transmission time.
[0131] Method 3: Random value. For example, set the eighth identifier to a random value.
[0132] It is understood that the methods listed above are only some examples, and other methods may be used to determine the eighth identifier, which are not limited in this application.
[0133] Optionally, the third V2X unicast information may also include a ninth identifier. The ninth identifier is used to identify how the eighth identifier was determined. The third device can determine the ninth identifier based on the selected method for determining the eighth identifier. For example, the ninth identifier can be 3 bits long: 000 represents that the eighth identifier is determined based on the number of times the third device initiates transmissions to the second device in this unicast service interaction; 001 represents that the eighth identifier is determined based on the current stage of this unicast service interaction; 010 represents that the eighth identifier is determined based on a random value, etc.
[0134] A conflict between the first MAC address and the third device's MAC address can be understood as the first MAC address being the same as the third MAC address, and the first identifier being different from the seventh identifier. For example, if the first device randomly selects a first MAC address of 1, and the third device randomly selects a third MAC address of 1, then after receiving unicast information from both the first and third devices, the second device can determine that the first MAC address and the third MAC address conflict based on the MAC address information in the unicast information from each of the first and third devices.
[0135] Specifically, the network layer of the second device can determine whether the first MAC address conflicts with the third MAC address.
[0136] It is understood that the MAC address conflict described in the embodiments of this application can refer to the situation where the MAC addresses are the same, such as when the third MAC address is the same as the first MAC address, then the third MAC address is determined to be in conflict with the first MAC address. MAC address conflict can also refer to other situations where the first MAC address cannot be used (the first device needs to reselect the first MAC address), which is not limited in this application.
[0137] Step S503: The second device sends a second V2X unicast message to the first device, including indication information, a second MAC address, a second identifier, and a fourth identifier.
[0138] If the second device determines that the first MAC address conflicts with the third MAC address, the second device broadcasts second V2X unicast information to all devices with which it has established unicast communication, including the first and third devices. This second V2X unicast information includes indication information, the second MAC address, a second identifier, and a fourth identifier. The indication information indicates that the second MAC address is a conflicting address. The second and fourth identifiers can be used together to indicate which terminals need to resolve the MAC address conflict.
[0139] The second device can determine the second V2X unicast information in the following ways: In one embodiment, if the third identifier and the eighth identifier are determined based on the number of transmissions of the unicast service corresponding to the unicast information, and the second device determines that the first MAC address, the second identifier, and the fourth identifier in the second V2X unicast information are respectively the first MAC address, the first identifier, and the third identifier, based on the fact that the value corresponding to the third identifier is less than (or greater than or equal to) the value corresponding to the eighth identifier; if the third identifier and the eighth identifier are determined based on the current stage of the unicast service corresponding to the unicast information, and the second device determines that the first MAC address, the second identifier, and the fourth identifier in the second V2X unicast information are respectively the first MAC address, the first identifier, and the third identifier; if the third identifier and the eighth identifier are determined based on a random value, and the second device determines that the first MAC address, the second identifier, and the fourth identifier in the second V2X unicast information are respectively the first MAC address, the first identifier, and the third identifier, based on the fact that the value corresponding to the third identifier is less than (or greater than or equal to) the value corresponding to the eighth identifier. For example, if the third and eighth identifiers are determined based on the number of transmissions of the unicast service corresponding to the unicast information, and the third identifier is 2, indicating that the first device has initiated 2 transmissions to the second device, and the eighth identifier is 9, indicating that the third device has initiated 9 transmissions to the second device, then the second device can determine that the second MAC address is the first MAC address, the second identifier is the first identifier, and the fourth identifier is 2. This allows devices that have already undergone more transmissions in the unicast service process to continue normal transmission, while prioritizing the rejection of devices with fewer transmissions (i.e., the first device reselects its MAC address, while the third device does not need to reselect its MAC address). As another example, if the third and eighth identifiers are determined based on the current stage of the unicast service corresponding to the unicast information, and the third identifier is 3, indicating that the service between the first and second devices has reached stage 3, and the eighth identifier is 6, indicating that the service between the third and second devices has reached stage 6, then the second device can determine that the second MAC address is the first MAC address, the second identifier is the first identifier, and the fourth identifier is 3. This allows devices that have already completed multiple unicast phases to continue transmitting normally, while prioritizing the rejection of devices with fewer phases (i.e., the first device reselects its MAC address, while the third device does not need to reselect its MAC address).
[0140] In another embodiment, the first identifier can identify a specific service of the first device (such as the first service). The second device can then jointly determine the second V2X unicast information based on the sum of the values corresponding to the first and third identifiers. Specifically, the first service can have corresponding values based on its priority level. If the sum of the values corresponding to the first and third identifiers is less than (or greater than or equal to) the sum of the values corresponding to the seventh and eighth identifiers, the second device can determine that the first MAC address, second identifier, and fourth identifier in the second V2X unicast information are respectively the first MAC address, the first identifier, and the third identifier. For example, if the service currently being transmitted by the first device is an emergency service with a priority value of 10, then the first identifier is 10. If the service currently being transmitted by the third device is a general service with a priority value of 4, then the seventh identifier is 5, and both the third and eighth identifiers are 6. The sum of the values corresponding to the first and third identifiers is 16, and the sum of the values corresponding to the seventh and eighth identifiers is 11. Therefore, the second device can determine that the second MAC address is the first MAC address, the second identifier is 10, and the fourth identifier is 6. This approach minimizes the transmission of emergency services by the terminal, reducing the impact of service interruptions.
[0141] Optionally, when the first V2X unicast information also includes a fifth identifier, the third V2X unicast information may also include a ninth identifier, and the second V2X unicast information may also include a sixth identifier. The fifth identifier is used to identify the method for determining the third identifier, the sixth identifier is used to identify the method for determining the fourth identifier, and the ninth identifier is used to identify the method for determining the eighth identifier.
[0142] After determining the second V2X unicast information, the second device can broadcast the second V2X unicast information to all devices with which it has established unicast communication, including the first and third devices. The second V2X unicast information can be carried through DSA data frames or DSMP data frames. The indication information can be the AID identifier in the data frame, which is used to indicate that the second MAC address is a conflicting address in the data written in the DSA or DSMP data frame sent by the second device.
[0143] Step S504: When the first MAC address is the same as the second MAC address, the first identifier is the same as the second identifier, and the third identifier is the same as the fourth identifier, the first device reselects the first MAC address.
[0144] After sending first V2X unicast information, including a first MAC address, a first identifier, and a third identifier, to the second device, the first device stores the first MAC address, the first identifier, and the third identifier.
[0145] After receiving second V2X unicast information from the second device, including indication information, a second MAC address, a second identifier, and a fourth identifier, the first device can determine that the received second MAC address is a conflicting address based on the indication information. The first device compares its stored first MAC address, first identifier, and third identifier, which have been sent to the second device, with the second MAC address, second identifier, and fourth identifier one by one. If the first MAC address and second MAC address are the same, the first identifier and second identifier are the same, and the third identifier and fourth identifier are the same, the first device needs to reselect the first MAC address.
[0146] Optionally, when the first V2X unicast information includes a fifth identifier and the second V2X unicast information includes a sixth identifier, the first device compares its stored first MAC address, first identifier, third identifier, and fifth identifier (which have been sent to the second device) with the second MAC address, second identifier, fourth identifier, and sixth identifier one by one. If the first MAC address and the second MAC address are the same, the first identifier and the second identifier are the same, the third identifier and the fourth identifier are the same, and the fifth identifier and the sixth identifier are the same, the first device needs to reselect the first MAC address.
[0147] Step S505: The first device regenerates the first identifier.
[0148] After the first device reselects the first MAC address, it can also regenerate the first identifier.
[0149] The above describes the method embodiments provided by the embodiments of this application. The following describes the virtual device embodiments involved in the embodiments of this application.
[0150] Please see Figure 8 , Figure 8 This is a schematic diagram of a communication device provided in an embodiment of this application, applied to a first device. The communication device can be a terminal or a module (e.g., a chip) within a terminal. Figure 8 As shown, the communication device 800 includes at least: a first transmitting unit 801, a first receiving unit 802, a reselection unit 803, and a generating unit 804, wherein the generating unit 804 is optional; wherein: The first sending unit 801 is used to send first V2X unicast information to the second device. The first V2X unicast information includes a first media access control MAC address and a first identifier. The first receiving unit 802 is configured to receive second V2X unicast information from the second device, the second V2X unicast information including a second MAC address and a second identifier; The reselection unit 803 is used to reselect the first MAC address when the second V2X unicast information carries indication information, the first MAC address is the same as the second MAC address, and the first identifier and the second identifier are the same. The indication information is used to indicate that the second MAC address is a conflicting address.
[0151] In one embodiment, the first identifier is generated by the first device and remains unchanged during the unicast service transmission corresponding to the first V2X unicast information.
[0152] In one embodiment, the first V2X unicast information further includes a third identifier, which changes during the transmission of the unicast service corresponding to the first V2X unicast information; the second V2X unicast information further includes a fourth identifier. When the second V2X unicast information carries indication information, and the first MAC address is the same as the second MAC address, and the first identifier and the second identifier are the same, the reselection unit reselects the first MAC address, specifically for: When the second V2X unicast information carries indication information, and the first MAC address is the same as the second MAC address, the first identifier is the same as the second identifier, and the third identifier is the same as the fourth identifier, the first MAC address is reselected.
[0153] In one embodiment, the third identifier is determined according to any of the following methods: The number of transmissions of the unicast service corresponding to the first V2X unicast information; The current stage of the unicast service corresponding to the first V2X unicast information; or Random value.
[0154] In one embodiment, the first V2X unicast information further includes a fifth identifier, and the second V2X unicast information further includes a sixth identifier. The fifth identifier is used to indicate the method of determining the third identifier, and the sixth identifier is used to indicate the method of determining the fourth identifier.
[0155] In one embodiment, the first identifier and the second identifier are DSA identifiers, and the third identifier and the fourth identifier are content counts.
[0156] In one embodiment, the second V2X unicast information is carried via a DSA data frame or a DSMP data frame.
[0157] In one embodiment, the communication device 800 may further include: The generation unit 804 is used to regenerate the first identifier after reselecting the first MAC address.
[0158] For a more detailed description of the first transmitting unit 801, the first receiving unit 802, the reselection unit 803, and the generation unit 804, please refer directly to the above description. Figure 4 and Figure 5 The descriptions of the network devices in the method embodiments shown are not repeated here.
[0159] Please see Figure 9 , Figure 9 This is a schematic diagram of another communication device provided in an embodiment of this application, applied to a second device. This communication device can be a network device or a module (e.g., a chip) within a network device. Figure 9 As shown, the communication device 900 includes at least: a second receiving unit 901 and a second transmitting unit 902; wherein: The second receiving unit 901 is used to receive first V2X unicast information from the first device, the first V2X unicast information including a first media access control MAC address and a first identifier; The second sending unit 902 is used to send second V2X unicast information to the first device when the first MAC address conflicts with the MAC address of the third device. The second V2X unicast information includes indication information, a second MAC address, and a second identifier. The indication information is used to indicate that the second MAC address is a conflicting address, wherein the second MAC address is the same as the first MAC address, and the second identifier is the same as the first identifier.
[0160] In one embodiment, the first identifier is generated by the first device and remains unchanged during the unicast service transmission corresponding to the first V2X unicast information.
[0161] In one embodiment, the second receiving unit 901 is further configured to receive third V2X unicast information from the third device, the third V2X unicast information including a third MAC address and a seventh identifier; The conflict between the first MAC address and the third device's MAC address includes: The first MAC address is the same as the third MAC address, and the first identifier is different from the seventh identifier.
[0162] In one embodiment, the first V2X unicast information further includes a third identifier, which changes during the unicast service transmission corresponding to the first V2X unicast information. The second V2X unicast information further includes a fourth identifier, which is the same as the third identifier.
[0163] In one embodiment, the second receiving unit 901 is further configured to receive third V2X unicast information from the third device, the third V2X unicast information including a third MAC address, a seventh identifier, and an eighth identifier; The communication device 900 may also include: The determining unit 903 is used to determine that the first MAC address is the same as the third MAC address, and that the first identifier is different from the seventh identifier; The second sending unit 902 sends second V2X unicast information to the first device, specifically for: When the third identifier and the eighth identifier are determined based on the number of transmissions of the unicast service corresponding to the unicast information, the second device sends the second V2X unicast information to the first device based on the fact that the value corresponding to the third identifier is less than the value corresponding to the eighth identifier; or When the third identifier and the eighth identifier are determined based on the current stage of the unicast service corresponding to the unicast information, the second device sends the second V2X unicast information to the first device based on the fact that the value corresponding to the third identifier is less than the value corresponding to the eighth identifier; or When the third identifier and the eighth identifier are random values, the second device randomly sends the second V2X unicast information to the first device.
[0164] In one embodiment, the first V2X unicast information further includes a fifth identifier, and the second V2X unicast information further includes a sixth identifier. The fifth identifier is used to indicate the method of determining the third identifier, and the sixth identifier is used to indicate the method of determining the fourth identifier.
[0165] In one embodiment, the first identifier and the second identifier are DSA identifiers, and the third identifier and the fourth identifier are content counts.
[0166] In one embodiment, the second V2X unicast information is carried via a DSA data frame or a DSMP data frame.
[0167] For a more detailed description of the second receiving unit 901, the second transmitting unit 902, and the determining unit 903, please refer directly to the above description. Figure 4 and Figure 5 The descriptions of the network devices in the method embodiments shown are not repeated here.
[0168] Please see Figure 10 , Figure 10 This is a schematic diagram of the structure of another communication device provided in an embodiment of this application. For example... Figure 10As shown, the communication device 1000 includes at least one processor 1001, at least one memory 1002, and at least one communication interface 1003. Furthermore, the communication device 1000 may also include general-purpose components such as antennas, which will not be detailed here.
[0169] Processor 1001 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of programs in the above scheme.
[0170] Communication interface 1003 is used for communication with other devices or communication networks.
[0171] Memory 1002 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed discs, laser discs, optical discs, digital universal discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. Memory may exist independently and be connected to the processor via a bus. Memory may also be integrated with the processor.
[0172] The memory 1002 stores the application code for executing the above scheme, and its execution is controlled by the processor 1001. The processor 1001 executes the application code stored in the memory 1002.
[0173] Figure 10 The communication device shown has code stored in memory 1002 that can execute the above. Figure 4 or Figure 5 The communication methods provided.
[0174] It should be noted that the functions of the communication device 1000 described in this application embodiment are the same as those described above. Figure 4 and Figure 5 The relevant descriptions of the methods described in the embodiments are not repeated here.
[0175] Please see Figure 11 , Figure 11 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. For ease of explanation, Figure 11 Only the main components of the terminal device are shown. For example... Figure 11 As shown, the terminal device 1100 includes a processor, memory, control circuitry, antenna, and input / output devices. The processor is primarily used for processing communication protocols and data, controlling the entire terminal, executing software programs, and processing software program data. The memory is primarily used for storing software programs and data. The radio frequency (RF) circuitry is primarily used for converting baseband signals to RF signals and processing RF signals. The antenna is primarily used for transmitting and receiving RF signals in the form of electromagnetic waves. Input / output devices, such as touchscreens, displays, and keyboards, are primarily used for receiving user input data and outputting data to the user.
[0176] When the terminal device is powered on, the processor can read the software program from the storage unit, parse and execute the instructions of the software program, and process the data of the software program. When data needs to be transmitted wirelessly, the processor performs baseband processing on the data to be transmitted and outputs the baseband signal to the radio frequency (RF) circuit. The RF circuit processes the baseband signal to obtain the RF signal and transmits the RF signal outward in the form of electromagnetic waves through the antenna. When data is sent to the terminal device, the RF circuit receives the RF signal through the antenna. This RF signal is further converted into a baseband signal and output to the processor. The processor converts the baseband signal back into data and processes the data.
[0177] For ease of explanation, Figure 11 Only one memory and processor are shown. In actual terminal devices, multiple processors and memories may exist. Memory can also be called storage medium or storage device, etc., and this embodiment of the invention does not limit this.
[0178] As an optional implementation, the processor may include a baseband processor and a central processing unit (CPU). The baseband processor is mainly used to process communication protocols and communication data, while the CPU is mainly used to control the entire terminal device, execute software programs, and process the data of the software programs. Figure 11The processor in the device integrates the functions of a baseband processor and a central processing unit (CPU). Those skilled in the art will understand that the baseband processor and CPU can also be independent processors interconnected via technologies such as buses. It will also be understood that a terminal device can include multiple baseband processors to adapt to different network standards, and multiple CPUs to enhance its processing capabilities. The various components of the terminal device can be connected via various buses. The baseband processor can also be described as a baseband processing circuit or a baseband processing chip. Similarly, the CPU can be described as a central processing circuit or a central processing chip. The function of processing communication protocols and communication data can be built into the processor or stored as a software program in a storage unit, with the processor executing the software program to implement the baseband processing function.
[0179] In one example, the antenna and control circuit with transceiver functions can be considered as the transceiver unit 1101 of the terminal device 1100, and the processor with processing functions can be considered as the processing unit 1102 of the terminal device 1100. For example... Figure 11 As shown, the terminal device 1100 includes a transceiver unit 1101 and a processing unit 1102. The transceiver unit can also be referred to as a transceiver, transceiver machine, transceiver device, etc. Optionally, the device in the transceiver unit 1101 used to implement the receiving function can be considered as a receiving unit, and the device in the transceiver unit 1101 used to implement the transmitting function can be considered as a transmitting unit; that is, the transceiver unit 1101 includes a receiving unit and a transmitting unit. For example, the receiving unit can also be referred to as a receiver, receiver circuit, etc., and the transmitting unit can be referred to as a transmitter, transmitter, or transmitting circuit, etc. Optionally, the above-mentioned receiving unit and transmitting unit can be integrated into a single unit, or they can be multiple independent units. The above-mentioned receiving unit and transmitting unit can be located in one geographical location or distributed across multiple geographical locations.
[0180] In one embodiment, the terminal 1100 may be a first device. The processing unit 1102 is used to execute the operations performed by the reselection unit 803 and the generation unit 804 in the above embodiments, and the transceiver unit 1101 is used to execute the operations performed by the first sending unit 801 and the first receiving unit 802 in the above embodiments. The terminal 1100 may also be used to execute the above... Figure 4 and Figure 5 The various methods executed by the terminal in the method embodiment will not be described in detail.
[0181] This application also provides a chip system including at least one processor and a communication interface. The communication interface and the at least one processor are interconnected via a circuit. The at least one processor is used to run computer programs or instructions to perform the above-described... Figure 4 and Figure 5The corresponding method embodiments may describe some or all of the steps. This chip system may be composed of chips or may include chips and other discrete devices.
[0182] This application also provides a computer-readable storage medium, wherein the computer-readable storage medium may store a program that can execute the above-described... Figure 4 and Figure 5 Any part or all of the steps described in the corresponding method embodiments.
[0183] This application also provides a computer program that includes instructions, which, when executed by a computer, enable the computer to perform the above-mentioned... Figure 4 and Figure 5 Any part or all of the steps described in the corresponding method embodiments.
[0184] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0185] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0186] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical or other forms.
[0187] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0188] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0189] If the integrated units described above are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which can be a personal computer, server, or network device, specifically a processor in the computer device) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium may include various media capable of storing program code, such as a USB flash drive, portable hard drive, magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM).
[0190] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A communication method applied to vehicle networking, characterized in that, include: The first device sends a first V2X unicast message to the second device. The first V2X unicast message includes a first media access control MAC address and a first identifier. The first V2X unicast message is used by the first device to request the second device to establish unicast communication. The first device receives second V2X unicast information from the second device, the second V2X unicast information including a second MAC address and a second identifier; When the second V2X unicast information carries indication information, and the first MAC address is the same as the second MAC address, and the first identifier and the second identifier are the same, the first MAC address is reselected. The indication information is used to indicate that the second MAC address is a conflicting address.
2. The method according to claim 1, characterized in that, The first identifier is generated by the first device and remains unchanged during the unicast service transmission corresponding to the first V2X unicast information.
3. The method according to claim 1 or 2, characterized in that, The first V2X unicast information also includes a third identifier, which changes during the unicast service transmission corresponding to the first V2X unicast information; the second V2X unicast information also includes a fourth identifier. When the second V2X unicast information carries indication information, the first MAC address is the same as the second MAC address, and the first identifier and the second identifier are the same, reselecting the first MAC address includes: When the second V2X unicast information carries indication information, and the first MAC address is the same as the second MAC address, the first identifier is the same as the second identifier, and the third identifier is the same as the fourth identifier, the first MAC address is reselected.
4. The method according to claim 3, characterized in that, The third identifier is determined according to any of the following methods: The number of transmissions of the unicast service corresponding to the first V2X unicast information; The current stage of the unicast service corresponding to the first V2X unicast information; or Random value.
5. The method according to claim 3 or 4, characterized in that, The first V2X unicast information also includes a fifth identifier, and the second V2X unicast information also includes a sixth identifier. The fifth identifier is used to indicate the determination method of the third identifier, and the sixth identifier is used to indicate the determination method of the fourth identifier.
6. The method according to any one of claims 3-5, characterized in that, The first and second identifiers are Dedicated Short Range Service Announcement (DSA) identifiers, and the third and fourth identifiers are content counts.
7. The method according to any one of claims 1-6, characterized in that, The second V2X unicast information is carried through DSA data frames or Dedicated Short Message Protocol (DSMP) data frames.
8. The method according to any one of claims 1-7, characterized in that, The method further includes: After the first device reselects the first MAC address, it regenerates the first identifier.
9. A communication method applied to vehicle networking, characterized in that, include: The second device receives first V2X unicast information from the first device. The first V2X unicast information includes a first media access control MAC address and a first identifier. The first V2X unicast information is used by the first device to request the second device to establish unicast communication. When the first MAC address conflicts with the MAC address of the third device, the second device sends a second V2X unicast message to the first device. The second V2X unicast message includes indication information, a second MAC address, and a second identifier. The indication information is used to indicate that the second MAC address is a conflicting address, wherein the second MAC address is the same as the first MAC address, and the second identifier is the same as the first identifier.
10. The method according to claim 9, characterized in that, The first identifier is generated by the first device and remains unchanged during the unicast service transmission corresponding to the first V2X unicast information.
11. The method according to claim 9 or 10, characterized in that, The method further includes: The second device receives third V2X unicast information from the third device, the third V2X unicast information including a third MAC address and a seventh identifier; The conflict between the first MAC address and the third device's MAC address includes: The first MAC address is the same as the third MAC address, and the first identifier is different from the seventh identifier.
12. The method according to any one of claims 9-11, characterized in that, The first V2X unicast information also includes a third identifier, which changes during the unicast service transmission corresponding to the first V2X unicast information. The second V2X unicast information also includes a fourth identifier, which is the same as the third identifier.
13. The method according to claim 12, characterized in that, The method further includes: The second device receives third V2X unicast information from the third device, the third V2X unicast information including a third MAC address, a seventh identifier, and an eighth identifier; The second device determines that the first MAC address is the same as the third MAC address, and that the first identifier is different from the seventh identifier; The second device sends a second V2X unicast message to the first device, including: When the third identifier and the eighth identifier are determined based on the number of transmissions of the unicast service corresponding to the unicast information, the second device sends second V2X unicast information to the first device based on the fact that the value corresponding to the third identifier is less than the value corresponding to the eighth identifier; or When the third identifier and the eighth identifier are determined based on the current stage of the unicast service corresponding to the unicast information, the second device sends the second V2X unicast information to the first device based on the fact that the value corresponding to the third identifier is less than the value corresponding to the eighth identifier; or When the third identifier and the eighth identifier are random values, the second device randomly sends the second V2X unicast information to the first device.
14. The method according to claim 12 or 13, characterized in that, The first V2X unicast information also includes a fifth identifier, and the second V2X unicast information also includes a sixth identifier. The fifth identifier is used to indicate the determination method of the third identifier, and the sixth identifier is used to indicate the determination method of the fourth identifier.
15. The method according to any one of claims 12-14, characterized in that, The first and second identifiers are Dedicated Short Range Service Announcement (DSA) identifiers, and the third and fourth identifiers are content counts.
16. The method according to any one of claims 9-15, characterized in that, The second V2X unicast information is carried through DSA data frames or Dedicated Short Message Protocol (DSMP) data frames.
17. A communication device, applied in a first device located in a vehicle network, characterized in that, include: The first sending unit is used to send first V2X unicast information to the second device. The first V2X unicast information includes a first media access control MAC address and a first identifier. The first V2X unicast information is used by the first device to request the second device to establish unicast communication. The first receiving unit is configured to receive second V2X unicast information from the second device, wherein the second V2X unicast information includes a second MAC address and a second identifier. The reselection unit is used to reselect the first MAC address when the second V2X unicast information carries indication information, the first MAC address is the same as the second MAC address, and the first identifier and the second identifier are the same. The indication information is used to indicate that the second MAC address is a conflicting address.
18. The apparatus according to claim 17, characterized in that, The first identifier is generated by the first device and remains unchanged during the unicast service transmission corresponding to the first V2X unicast information.
19. The apparatus according to claim 17 or 18, characterized in that, The first V2X unicast information also includes a third identifier, which changes during the unicast service transmission corresponding to the first V2X unicast information; the second V2X unicast information also includes a fourth identifier. When the second V2X unicast information carries indication information, and the first MAC address is the same as the second MAC address, and the first identifier and the second identifier are the same, the reselection unit reselects the first MAC address, specifically for: When the second V2X unicast information carries indication information, and the first MAC address is the same as the second MAC address, the first identifier is the same as the second identifier, and the third identifier is the same as the fourth identifier, the first MAC address is reselected.
20. The apparatus according to claim 19, characterized in that, The third identifier is determined according to any of the following methods: The number of transmissions of the unicast service corresponding to the first V2X unicast information; The current stage of the unicast service corresponding to the first V2X unicast information; or Random value.
21. The apparatus according to claim 19 or 20, characterized in that, The first V2X unicast information also includes a fifth identifier, and the second V2X unicast information also includes a sixth identifier. The fifth identifier is used to indicate the determination method of the third identifier, and the sixth identifier is used to indicate the determination method of the fourth identifier.
22. The apparatus according to any one of claims 19-21, characterized in that, The first and second identifiers are Dedicated Short Range Service Announcement (DSA) identifiers, and the third and fourth identifiers are content counts.
23. The apparatus according to any one of claims 17-22, characterized in that, The second V2X unicast information is carried through DSA data frames or Dedicated Short Message Protocol (DSMP) data frames.
24. The apparatus according to any one of claims 17-23, characterized in that, The device further includes: The generation unit is used to regenerate the first identifier after reselecting the first MAC address.
25. A communication device, used in a second device located in a vehicle network, characterized in that, include: The second receiving unit is configured to receive first V2X unicast information from the first device. The first V2X unicast information includes a first media access control MAC address and a first identifier. The first V2X unicast information is used by the first device to request the second device to establish unicast communication. The second sending unit is configured to send second V2X unicast information to the first device when the first MAC address conflicts with the MAC address of the third device. The second V2X unicast information includes indication information, a second MAC address, and a second identifier. The indication information is used to indicate that the second MAC address is a conflicting address, wherein the second MAC address is the same as the first MAC address, and the second identifier is the same as the first identifier.
26. The apparatus according to claim 25, characterized in that, The first identifier is generated by the first device and remains unchanged during the unicast service transmission corresponding to the first V2X unicast information.
27. The apparatus according to claim 25 or 26, characterized in that, The second receiving unit is further configured to receive third V2X unicast information from the third device, the third V2X unicast information including a third MAC address and a seventh identifier; The conflict between the first MAC address and the third device's MAC address includes: The first MAC address is the same as the third MAC address, and the first identifier is different from the seventh identifier.
28. The apparatus according to any one of claims 25-27, characterized in that, The first V2X unicast information also includes a third identifier, which changes during the unicast service transmission corresponding to the first V2X unicast information. The second V2X unicast information also includes a fourth identifier, which is the same as the third identifier.
29. The apparatus according to claim 28, characterized in that, The second receiving unit is further configured to receive third V2X unicast information from the third device, the third V2X unicast information including a third MAC address, a seventh identifier, and an eighth identifier; The device further includes: A determining unit is configured to determine that the first MAC address is the same as the third MAC address, and that the first identifier is different from the seventh identifier; The second sending unit sends second V2X unicast information to the first device, specifically for: When the third identifier and the eighth identifier are determined based on the number of transmissions of the unicast service corresponding to the unicast information, the second device sends second V2X unicast information to the first device based on the fact that the value corresponding to the third identifier is less than the value corresponding to the eighth identifier; or When the third identifier and the eighth identifier are determined based on the current stage of the unicast service corresponding to the unicast information, the second device sends the second V2X unicast information to the first device based on the fact that the value corresponding to the third identifier is less than the value corresponding to the eighth identifier; or When the third identifier and the eighth identifier are random values, the second device randomly sends the second V2X unicast information to the first device.
30. The apparatus according to claim 28 or 29, characterized in that, The first V2X unicast information also includes a fifth identifier, and the second V2X unicast information also includes a sixth identifier. The fifth identifier is used to indicate the determination method of the third identifier, and the sixth identifier is used to indicate the determination method of the fourth identifier.
31. The apparatus according to any one of claims 28-30, characterized in that, The first and second identifiers are Dedicated Short Range Service Announcement (DSA) identifiers, and the third and fourth identifiers are content counts.
32. The apparatus according to any one of claims 25-31, characterized in that, The second V2X unicast information is carried through DSA data frames or Dedicated Short Message Protocol (DSMP) data frames.
33. A communication device, characterized in that, include: A processor coupled to a memory for storing computer instructions that, when executed by the processor, cause the method as described in any one of claims 1-16 to be implemented.
34. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, causes the method described in any one of claims 1-16 to be implemented.
35. A computer program product, characterized in that, The computer program product includes computer instructions that, when executed by a processor, cause the method described in any one of claims 1-16 to be implemented.