Address allocation method and device, storage medium and program product

By acquiring and utilizing a high-precision positioning module to determine the actual installation location of the roadside unit and automatically configuring its IP address, the problem of low efficiency and long processing time caused by manual processing in existing technologies is solved, and fast and reliable address allocation is achieved.

CN121603477APending Publication Date: 2026-03-03ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411156127.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

In existing technologies, the allocation of IP addresses for roadside units relies on manual processing, which results in low efficiency, long processing time, and unreasonable allocation.

Method used

By acquiring the current location information of the address allocation device and multiple installation location information, the actual installation location of the target roadside unit is determined using a high-precision positioning module. Based on this location information, address allocation information is sent to automatically configure the IP address of the roadside unit.

Benefits of technology

It enables fast and reliable IP address allocation, improving the efficiency and rationality of address allocation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121603477A_ABST
    Figure CN121603477A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an address allocation method and device, a storage medium and a program product, relates to the technical field of communication, and can solve the technical problems of low address allocation efficiency and long consumed time in related technologies. The method is applied to an address allocation device and comprises the steps that current position information and multiple pieces of installation position information of the address allocation device are acquired, and the installation position information is used for indicating the position where a road side unit needs to be installed; based on the current position information and the relative position information, determining actual installation position information of the target road side unit from the multiple pieces of installation position information; the relative position information is used for indicating the relative position between the target road side unit and the address allocation device; address allocation information is sent, the address allocation information is determined based on the actual installation position information, and the address allocation information is used for the target road side unit to determine the IP address of the target road side unit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of communication technology, and in particular to an address allocation method, device, storage medium, and program product. Background Technology

[0002] In the Internet of Vehicles (IoV), information about vehicles and pedestrians can be received through roadside units (RSUs) and transmitted to other vehicles or traffic management centers, enabling various applications of IoV in the transportation system.

[0003] Currently, after the roadside unit is installed at the designated location, its IP address can be manually configured on-site through manual processing.

[0004] However, the manual processing method mentioned above suffers from problems such as low address allocation efficiency, long processing time, and unreasonable address allocation. Summary of the Invention

[0005] This disclosure provides an address allocation method, device, storage medium, and program product, which can solve the technical problems of low address allocation efficiency, long time consumption, and unreasonable address allocation in related technologies.

[0006] On the one hand, an address allocation method is provided, applied to an address allocation device, the method comprising:

[0007] The current location information and multiple installation location information of the address allocation device are obtained, and the installation location information is used to indicate the location information where the roadside unit needs to be installed.

[0008] Based on the current location information and the relative location information, the actual installation location information of the target roadside unit is determined from the plurality of installation location information; the relative location information is used to indicate the relative position between the target roadside unit and the address allocation device.

[0009] Send address allocation information, which is determined based on the actual installation location information, and is used by the target roadside unit to determine its own IP address.

[0010] On the other hand, an address allocation device is provided, including an acquisition module, a determination module, and a transmission module;

[0011] The acquisition module is used to acquire the current location information and multiple installation location information of the address allocation device, wherein the installation location information is used to indicate the location where the roadside unit needs to be installed;

[0012] The determining module is used to determine the actual installation location information of the target roadside unit from the plurality of installation location information based on the current location information and the relative location information; the relative location information is used to indicate the relative position between the target roadside unit and the address allocation device.

[0013] The sending module sends address allocation information, which is determined based on the actual installation location information. The address allocation information is used by the target roadside unit to determine its own IP address.

[0014] On the other hand, another address allocation method is provided for application to target roadside units, including:

[0015] The address allocation information and address allocation indication information sent by the address allocation device are received, wherein the address allocation indication information is used to indicate that the address allocation information is used for address allocation.

[0016] The IP address of the target roadside unit is determined based on the address allocation information.

[0017] On the other hand, a target roadside unit is provided, including: a receiving module and a determining module;

[0018] The receiving module is used to receive address allocation information and address allocation indication information sent by the address allocation device, wherein the address allocation indication information is used to indicate that the address allocation information is used for address allocation.

[0019] The determining module is used to determine the IP address of the target roadside unit based on the address allocation information.

[0020] In another aspect, an electronic device is provided, comprising: a memory and a processor; the memory and the processor are coupled; the memory is used to store a computer program; and the processor, when executing the computer program, implements the method described in any of the above embodiments.

[0021] In another aspect, a computer-readable storage medium is provided, on which computer program instructions are stored, which, when executed by a processor, implement the method described in any of the above embodiments.

[0022] In another aspect, a computer program product is provided, the computer program product including computer program instructions that, when executed by a processor, implement the method described in any of the above embodiments.

[0023] This disclosure provides an address allocation method applied to an address allocation device. The method includes: acquiring current location information of the address allocation device and multiple installation location information, wherein the installation location information indicates the location where a roadside unit needs to be installed; determining the actual installation location information of a target roadside unit from the multiple installation location information based on the current location information and relative location information; the relative location information indicates the relative position between the target roadside unit and the address allocation device; and sending address allocation information, wherein the address allocation information is determined based on the actual installation location information and is used by the target roadside unit to determine its own IP address. Thus, by using the current location information of the address allocation device and the relative location information between the target roadside unit and the address allocation device, the actual installation location information of the target roadside unit can be accurately determined from multiple target installation location information; thereby, address allocation information for the target roadside unit to determine its own IP address can be determined based on the actual installation location information of the target roadside unit; and sending the address allocation information can quickly and reliably achieve address allocation for the roadside unit. Attached Figure Description

[0024] To more clearly illustrate the technical solutions in this disclosure, the accompanying drawings used in some embodiments of this disclosure will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings.

[0025] Figure 1 This is a schematic diagram of the architecture of an address allocation system provided in some embodiments of this disclosure;

[0026] Figure 2 This is a schematic diagram of the structure of an address allocation device provided in some embodiments of this disclosure;

[0027] Figure 3 This is a schematic diagram of the structure of a roadside unit provided in some embodiments of the present disclosure;

[0028] Figure 4 A flowchart illustrating an address allocation method provided for some embodiments of this disclosure;

[0029] Figure 5 A flowchart illustrating another address allocation method provided in some embodiments of this disclosure;

[0030] Figure 6 A flowchart illustrating another address allocation method provided in some embodiments of this disclosure;

[0031] Figure 7 A flowchart illustrating another address allocation method provided in some embodiments of this disclosure;

[0032] Figure 8 A flowchart illustrating another address allocation method provided in some embodiments of this disclosure;

[0033] Figure 9 A flowchart illustrating another address allocation method provided in some embodiments of this disclosure;

[0034] Figure 10 This is a schematic diagram of the structure of an address allocation device provided in some embodiments of this disclosure;

[0035] Figure 11 This is a schematic diagram of another address allocation device provided in some embodiments of the present disclosure;

[0036] Figure 12 This is a schematic diagram of another address allocation device provided in some embodiments of this disclosure. Detailed Implementation

[0037] The technical solutions of this disclosure will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.

[0038] It should be noted that, in this disclosure, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in this disclosure should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0039] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.

[0040] In the description of this disclosure, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. "And / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. Furthermore, "at least one" means one or more, and "more than one" means two or more.

[0041] As a key component of vehicle-to-everything (V2X) technology, the V2X RSU plays an indispensable role. As a roadside device, the RSU can receive information from vehicles and pedestrians and transmit this information to other vehicles or traffic management centers, enabling various applications of vehicle-to-everything (V2X) in the transportation system.

[0042] Currently, after the roadside unit is installed at the predetermined location, its IP address can be manually configured on-site through manual processing.

[0043] However, the manual processing method mentioned above suffers from problems such as low address allocation efficiency, long processing time, and unreasonable address allocation.

[0044] To address the aforementioned technical problems, this disclosure provides an address allocation method applied to an address allocation device. By using the current location information of the address allocation device and the relative location information between the target roadside unit and the address allocation device, the actual installation location information of the target roadside unit can be accurately determined from multiple target installation location information. Thus, address allocation information for the target roadside unit to determine its own IP address can be determined based on the actual installation location information of the target roadside unit. Sending the address allocation information can quickly and reliably achieve address allocation for the roadside unit.

[0045] The address allocation method provided in this disclosure can be applied to, for example, Figure 1 In the address allocation system described above, such as Figure 1 As shown, the address allocation system includes: an address allocation device 101, a first roadside unit 102, a second roadside unit 103, and a server 104.

[0046] The address allocation device 101 is used to determine the actual installation location information of the first roadside unit 102 and the second roadside unit 103 respectively; or, it is used to determine the address allocation information of the first roadside unit 102 and the second roadside unit 103 respectively based on the actual installation location information of the first roadside unit 102 and the second roadside unit 103 respectively; or, it is used to send the address allocation information.

[0047] In some embodiments, the address allocation device 101 may be a vehicle or mobile terminal with a real-time kinematic (RTK) positioning module.

[0048] For example, a high-precision positioning module can be an on-board unit (OBU) in a vehicle.

[0049] For example, the high-precision positioning module can also be a V2X-enabled tracker. The tracker uses its own supported high-precision positioning function based on the positioning algorithm to determine the location information of the address allocation device or the location information of the roadside unit.

[0050] For example, a mobile terminal can be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) / virtual reality (VR) device. This application does not impose special limitations on the specific form of the electronic device. It can interact with the user through one or more methods such as a keyboard, touchpad, touchscreen, remote control, voice interaction, or handwriting device.

[0051] The first roadside unit 102 or the second roadside unit 103 is used to receive address allocation information and determine its own IP address based on the address allocation information; or it is used to send its own identity identifier to the address allocation device.

[0052] Server 104 is used to manage the first roadside unit 102 and the second roadside unit 103.

[0053] In some embodiments, the server 104 can monitor the device status of the first roadside unit 102 or the second roadside unit 103 in real time. The device status can be online or offline.

[0054] It should be understood that after the first roadside unit 102 or the second roadside unit 103 obtains its own IP address, the first roadside unit 102 or the second roadside unit 103 can log in to the server 104, so that the server 104 can determine that the device status of the first roadside unit 102 or the second roadside unit 103 is online.

[0055] In some embodiments, server 104 may be referred to as roadside unit backend management platform.

[0056] For example, server 104 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery network (CDN) acceleration services, as well as big data and artificial intelligence platforms.

[0057] It should be noted that the first path-side unit 102 or the second path-side unit 103 can be connected to the address allocation device 101 via wired or wireless means; wherein, the wireless connection method can be Wi-Fi or the PC5 interface in a 5G communication system. The first path-side unit 102 or the second path-side unit 103 can be connected to the server 104 via wired or wireless means.

[0058] It should be noted that, Figure 1 This is just an example framework diagram. Figure 1 The number of devices included and the names of each device are unlimited.

[0059] like Figure 2 The diagram shown is a structural schematic of an address allocation device provided in an embodiment of this application, including: a high-precision positioning calculation module 201 and a message sending module 202.

[0060] The high-precision positioning calculation module 201 is used to determine the location information of the address allocation device; or to determine the actual installation location information of the roadside unit based on the location information of the address allocation device and multiple target installation location information; or to determine the address allocation information of the roadside unit.

[0061] The message sending module 202 is used to send address allocation information.

[0062] In one possible implementation, the message sending module 202 can broadcast address allocation information via a V2X vehicle status message (BSM). The address allocation information is carried in the BSM.

[0063] like Figure 3 The diagram shown is a structural schematic of a roadside unit provided in an embodiment of this application, including a message receiving module 301, an address configuration module 302, and an information reporting module 303.

[0064] The message receiving module 301 is used to receive address allocation information.

[0065] Address configuration module 302 is used to configure the address of roadside unit based on address allocation information.

[0066] In one possible implementation, the address configuration module 302 can determine the IP address of the roadside unit based on the correspondence between multiple installation location information and IP addresses, as well as the actual installation location information of the roadside unit in the address allocation information.

[0067] In some embodiments, the IP address of the roadside unit includes a static IP address, a gateway, and a subnet mask.

[0068] The information reporting module 303 is used to report information about the roadside unit to the roadside unit's backend management platform.

[0069] For example, the information of the roadside unit may include the actual installation location of the roadside unit, the International Mobile Equipment Identity (IMEI) or other information related to the roadside unit.

[0070] The application scenarios of the embodiments disclosed herein are not limited. The system architecture and business scenarios described in the embodiments of this disclosure are for the purpose of more clearly illustrating the technical solutions of the embodiments of this disclosure, and do not constitute a limitation on the technical solutions provided by the embodiments of this disclosure. As those skilled in the art will know, with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided by the embodiments of this disclosure are also applicable to similar technical problems.

[0071] The address allocation method provided in the embodiments of this disclosure will now be described in detail with reference to the accompanying drawings.

[0072] The address allocation method provided in this disclosure can be applied to... Figure 1 The address allocation device 101 shown. Figure 4 A flowchart illustrating an address allocation method is shown, such as... Figure 4 As shown, this address allocation method includes the following S401-S403:

[0073] S401. Obtain the current location information and multiple installation location information of the address allocation device.

[0074] The installation location information is used to indicate the location where the roadside unit needs to be installed.

[0075] It should be understood that the target roadside unit is a roadside unit with an IP address to be assigned, installed at a location corresponding to a certain installation location information.

[0076] In one possible implementation, the current location information of the address allocation device can be obtained by locating the address allocation device.

[0077] In one possible implementation, the current location information of the address allocation device is obtained by: acquiring multiple location information of the address allocation device; determining a truncated average of the multiple location information; and using the truncated average as the current location information of the address allocation device.

[0078] In some embodiments, location information can be represented in the form of latitude and longitude.

[0079] For example, suppose the address allocation device is located, resulting in 100 location data points. The five locations with the highest latitude and longitude and the five with the lowest latitude and longitude can be removed, leaving 90 location data points. The average value of these 90 location data points is then determined as the current location information of the address allocation device.

[0080] It should be understood that determining the truncated average of multiple location information and using the truncated average as the current location information of the address allocation device can reduce the possible errors in the location information and improve the accuracy of the current location information of the address allocation device.

[0081] In some embodiments, the accuracy of the above positioning information is at the sub-meter level.

[0082] In one possible implementation, multiple installation location information is stored in an address allocation device.

[0083] In some embodiments, the current location information or installation location information can be represented by latitude and longitude.

[0084] S402. Based on the current location information and relative location information, determine the actual installation location information of the target roadside unit from multiple installation location information.

[0085] The relative position information is used to indicate the relative position between the target roadside unit and the address allocation device.

[0086] It should be understood that since the actual installation location information of the target roadside unit is one of multiple installation location information, and the relative location information can indicate the relative position between the target roadside unit and the address allocation device, the actual installation location information of the target roadside unit can be determined from multiple installation location information.

[0087] In one possible implementation, the installation location information of the distance address allocation device can be determined from multiple installation location information. This relative installation location information is then used as the actual installation location information of the target roadside unit.

[0088] In some embodiments, the address allocation device has a high-precision positioning module.

[0089] It should be understood that in scenarios where roadside units are installed at multiple installation locations and addresses are assigned to these units, high-precision installation location information is required if the distribution of these locations is relatively dense. In this case, determining the actual installation location of the target roadside unit based on the current location information, multiple installation location information, and relative location information also requires the current location information of the address allocation device to accurately determine the actual installation location of the target roadside unit.

[0090] For example, suppose there is only one target roadside unit, and the installation location information is distributed at 10-meter intervals, with an accuracy of 1 meter (i.e., there is a 1-meter error in the installation location information). The accuracy of the current location information of the address allocation device is 10 meters. In this case, if multiple current location information are obtained, the installation location information determined based on the current location information and relative location information of each address allocation device may differ, making it impossible to determine which installation location information is the actual installation location of the target roadside unit. Therefore, the address allocation device has a high-precision positioning module, which can more accurately and reliably determine the actual installation location information of the target roadside unit.

[0091] For example, the actual installation location information can be (LongN_pos, latN_pos).

[0092] In some embodiments, the installation location information may be referred to as standard latitude and longitude.

[0093] For example, standard latitude and longitude can be (LongN, latN).

[0094] S403, Send address allocation information.

[0095] The address allocation information is determined based on the actual installation location information and is used by the target roadside unit to determine its own IP address.

[0096] The address allocation information is used by the target roadside unit to determine its own IP address.

[0097] In one possible implementation, there is a correspondence between address allocation information and installation location information. The address allocation device can determine the address allocation information of the actual installation location information based on the correspondence between the address allocation information and the installation location information.

[0098] In some embodiments, the address allocation information may include at least one of the following: actual installation location information, IP address, address allocation information indication information, identity identifier, current location information, and multiple installation location information; address allocation information indication information, used to indicate that the address allocation information is used for address allocation.

[0099] In one possible implementation, the address allocation device stores multiple mappings between installation location information and IP addresses. Based on these mappings, the address allocation device can determine the IP address corresponding to the actual installation location information and then either define the IP address corresponding to the actual installation location information as address allocation information or add it to the address allocation information.

[0100] In one possible implementation, the address allocation information may include the actual installation location information, and the target roadside unit can obtain the IP address of the target roadside unit from the roadside unit management platform based on the actual installation location information.

[0101] In one possible implementation, the address allocation information may include actual installation location information; the target roadside unit stores multiple mappings between installation location information and IP addresses; the target roadside unit can determine the IP address corresponding to the actual installation location information based on the mappings between multiple installation location information and IP addresses.

[0102] In some embodiments, the IP address of the roadside unit includes a static IP address, a gateway, and a subnet mask.

[0103] For example, a static IP address could be 192.168.NX. A gateway could be 192.168.N.1.

[0104] For example, the correspondence between multiple installation location information and IP addresses provided in the embodiments of this application can be shown in Table 1:

[0105] Table 1

[0106] latitude and longitude Static IP gateway Long1, lat1 192.168.0.100 192.168.0.1 Long2,lat2 192.168.0.101 192.168.2.1 LongN, latN 192.168.NX 192.168.N.1

[0107] In some embodiments, the address allocation device can be a vehicle. The vehicle can send address allocation information via BSM.

[0108] In some embodiments, the fields in BSM include: message count, vehicle temporary number (id), time (d second), time integrity, vehicle position information (position3d), vehicle positioning accuracy, position confidence set, vehicle displacement status (transmission speed), vehicle speed, direction, yaw rate, motion confidence set, steering wheel angle, vehicle four-axis acceleration set, brake system status, vehicle size, vehicle classification, vehicle safety extensions, pathhistory, path prediction, exterior lights, emergency vehicle current status (response type), alarm working status (siren in use), and warning light working status (light barin use).

[0109] In some embodiments, the address allocation information includes the actual installation location information of the target roadside unit. In this case, the actual installation location information can be backfilled into the vehicle location information field and the vehicle four-axis acceleration field.

[0110] In some embodiments, the vehicle temporary number field may be populated with address allocation indication information. This address allocation indication information is used to indicate that the BSM is used for address allocation. Thus, upon receiving the BSM, the target roadside unit can determine that the BSM is used for address allocation and thereby determine its own IP address based on the actual installation location information in the BSM.

[0111] In some embodiments, the address allocation information includes actual installation location information. The BSM satisfies at least one of the following: the vehicle temporary number field is used to backfill the address allocation indication information; the address allocation indication information is used to indicate that the BSM is used for address allocation; or the vehicle location information field or the vehicle four-axis acceleration field is used to backfill the actual installation location information.

[0112] It should be understood that the vehicle temporary number field and the address allocation indication information use the same data format. Therefore, the vehicle temporary number field can be used to backfill the address allocation indication information. When the actual installation location information is represented by latitude and longitude, the vehicle location information field or the vehicle four-axle acceleration field uses the same data format as the actual installation location information. Therefore, the vehicle location information field or the vehicle four-axle acceleration field can be used to backfill the actual installation location information. In this way, without creating new messages or fields, the sending of address allocation information and address allocation indication information can be conveniently and quickly achieved directly through existing fields in the BSM.

[0113] In some embodiments, the address allocation device can be a mobile terminal. The mobile terminal can send address allocation information via Wi-Fi messages or wired connections.

[0114] In one possible implementation, the address allocation device can broadcast address allocation information.

[0115] In some embodiments, the address allocation device may broadcast address allocation information based on the PC5 interface in the 5G communication system.

[0116] In this embodiment, by using the current location information of the address allocation device and the distance between the address allocation device and the target roadside unit, the actual installation location information of the target roadside unit can be accurately determined from multiple installation location information; thus, address allocation information for the target roadside unit to determine its own IP address can be determined based on the actual installation location information of the target roadside unit; sending the address allocation information can quickly and reliably achieve address allocation for the roadside unit.

[0117] In some embodiments, there is one target roadside unit. Relative position information is used to indicate that the target roadside unit is the one closest to the address allocation device among multiple roadside units installed at installation locations. In this case, as... Figure 5 As shown, in S402 above, based on the current location information and relative location information, the actual installation location information of the target roadside unit is determined from multiple installation location information, including S501-S502:

[0118] S501. Based on the current location information and installation location information, determine multiple distances.

[0119] One of the distances is the distance between the address allocation device and the installation location information.

[0120] It should be understood that in a scenario where there is only one target roadside unit, the address allocation device can be placed at the location closest to the target roadside unit before address allocation begins.

[0121] In one possible implementation, the current location information can be subtracted from multiple installation location information to obtain multiple distances.

[0122] S502. Determine the installation location information corresponding to the smallest distance among multiple distances as the actual installation location information.

[0123] It should be understood that since the target roadside unit is the roadside unit closest to the address allocation device among multiple roadside units installed at various locations, the installation location information corresponding to the smallest distance among multiple distances can be determined as the actual installation location information of the target roadside unit. Thus, when there is only one target roadside unit and it is located within the roadside unit closest to the address allocation device, the actual installation location information of the target roadside unit can be accurately determined.

[0124] In some embodiments, there are multiple target roadside units. Relative position information is used to indicate the distance between each target roadside unit and the address allocation device. In this case, such as... Figure 6 As shown, the method further includes S601-S603:

[0125] S601, Receive the identity identifiers sent by multiple target roadside units.

[0126] In one possible implementation, the target roadside unit can broadcast its own identification identifier. The address allocation device receives the identification identifiers broadcast by multiple target roadside units.

[0127] S602. Obtain multiple transmission durations corresponding to multiple identity identifiers.

[0128] Each identity identifier corresponds to a transmission duration.

[0129] In one possible implementation, the target roadside unit sends its identification identifier to the address allocation device along with the transmission time of the identifier. The address allocation device determines the transmission duration of the identification identifier based on the transmission time and the reception time of the received identifier.

[0130] In some embodiments, the time of sending the identity identifier is located in the timestamp corresponding to the identity identifier.

[0131] S603. Determine multiple relative position information based on multiple transmission durations.

[0132] It should be understood that the transmission speed of the identification identifier is known, and the distance between each target roadside unit and the address allocation device can be determined based on the transmission speed and transmission duration of the identification identifier.

[0133] In one possible implementation, when the identification is transmitted via cable, the distance between the target roadside unit corresponding to the identification and the address allocation device can be determined based on the signal transmission speed in the cable and the transmission duration of the identification.

[0134] For example, the cable may include at least one of the following: optical fiber, electrical cable, or twisted pair. Different cable materials result in different signal transmission speeds.

[0135] In one possible implementation, when the identification is transmitted via wireless signal, the distance between the target roadside unit corresponding to the identification and the address allocation device can be determined based on the transmission speed of the wireless signal and the transmission duration of the identification.

[0136] S402 above, based on the current location information and relative location information, determines the actual installation location information of the target roadside unit from multiple installation location information, including S604:

[0137] S604. Based on the current location information and multiple relative location information, determine multiple actual installation location information corresponding to multiple target roadside units from multiple installation location information.

[0138] It should be understood that the relative location information includes the distance between each target roadside unit and the address allocation device.

[0139] In one possible implementation, installation location information at a first distance from the current location information can be determined. This first distance is the distance between a first target roadside unit and the address allocation device, where the first target roadside unit is one of multiple target roadside units. This installation location information at the first distance from the current location information is then determined as the actual installation location information of the address allocation device.

[0140] In some embodiments, the relative location information may show that two or more target roadside units and the address allocation device are equidistant. In this case, the address allocation device can be moved to update its current location information. Based on the updated current location information, the actual installation location information of the two or more target roadside units can be re-determined.

[0141] In one possible implementation, the address allocation information of the aforementioned target roadside units can be determined as follows: based on multiple actual installation location information, the address allocation information corresponding to multiple target roadside units is determined. The address allocation information includes actual installation location information and identification identifiers.

[0142] In some embodiments, an address allocation information corresponds to an identity identifier.

[0143] For example, the address allocation information of the first target roadside unit can be determined based on the actual installation location information corresponding to the first identity identifier, thereby obtaining the address allocation information of multiple target roadside units. The first identity identifier is the identity identifier of the first target roadside unit. The first target roadside unit is one of multiple target roadside units.

[0144] In this embodiment of the application, the transmission duration of each identity identifier can be obtained by receiving the identity identifier; the distance between each target roadside unit and the address allocation device can be determined based on the transmission duration; thus, the actual installation location information of each target roadside unit can be accurately determined from multiple installation location information based on the current location information of the address allocation device and the distance between each target roadside unit and the address allocation device.

[0145] Furthermore, since the identity identifier within each target roadside unit is obtained, a correspondence between the identity identifier and the actual installation location information can be established. Therefore, when sending address allocation information determined based on the actual installation location information to the target roadside unit, each address allocation information can correspond to an identity identifier. When the target roadside unit receives the address allocation information, it can obtain the address allocation information it needs based on the identity identifier, ensuring the accuracy and reliability of address allocation even when there are multiple target roadside units.

[0146] The address allocation method provided in this disclosure can be applied to... Figure 1 The first roadside unit 102 or the second roadside unit 103 shown (which may be referred to as the target roadside unit) is shown. Figure 7 A flowchart illustrating another address allocation method is shown, such as... Figure 7 As shown, the address allocation method includes the following S701-S702:

[0147] S701. Receive address allocation information and address allocation instruction information sent by the address allocation device.

[0148] The address allocation indication information is used to indicate that the address allocation information is used for address allocation.

[0149] S702. Determine the IP address of the target roadside unit based on the address allocation information.

[0150] In some embodiments, the IP address configuration of the target roadside unit can be accomplished using the following code:

[0151] cfg set persist.eth.gw=192.168.169.1;

[0152] cfg set persist.eth.netmask=255.255.255.0;

[0153] cfg set persist.eth.ipaddr=192.168.169.91;

[0154] cfg save.

[0155] In one possible implementation, the target roadside unit stores a mapping between multiple installation location information and multiple IP addresses, with a one-to-one correspondence between the installation location information and the IP address. The address allocation information includes the actual installation location information of the target roadside unit. The installation location information is used to indicate the location where the roadside unit needs to be installed. In step S702 above, the IP address of the target roadside unit is determined based on the address allocation message in the following way: based on the actual installation location information of the target roadside unit and the mapping between multiple installation location information and multiple IP addresses, the IP address of the target roadside unit is determined to be the IP address corresponding to the actual installation location information of the target roadside unit.

[0156] In one possible implementation, the address allocation information includes the IP address of the target roadside unit. S702, the IP address of the target roadside unit is determined based on the address allocation information by: determining the IP address in the address allocation information as the IP address of the target roadside unit.

[0157] In one possible implementation, the target roadside unit stores a one-to-one mapping between multiple installation location information and multiple IP addresses. The installation location information indicates the location where the roadside unit needs to be installed. The target roadside unit is the one closest to the address allocation device among the multiple roadside units. The address allocation information includes the current location information of the address allocation device. Figure 7 The illustrated embodiments, such as Figure 8 As shown, S702 above determines the IP address of the target roadside unit based on address allocation information, including S801-S803:

[0158] S801, Obtain multiple installation location information.

[0159] The installation location information refers to the location where the roadside unit needs to be installed.

[0160] S802. Based on the current location information and multiple installation location information, determine the actual installation location information of the target roadside unit.

[0161] The actual installation location information is the installation location information that is closest to the location information corresponding to the current location information among multiple installation location information.

[0162] S803. Based on the actual installation location information of the target roadside unit and the correspondence between multiple installation location information and multiple IP addresses, determine the IP address of the target roadside unit as the IP address corresponding to the actual installation location information of the target roadside unit.

[0163] In one possible implementation, multiple address allocation information entries exist, each including the identification identifier of the corresponding roadside unit. The target roadside unit stores a mapping between multiple installation location information entries and multiple IP addresses, with a one-to-one correspondence between the installation location information and the IP address. The address allocation information includes the installation location information of the target roadside unit. The installation location information is used to indicate the location where the roadside unit needs to be installed. Combined with... Figure 7 The illustrated embodiments, such as Figure 9 As shown, the method also includes S901:

[0164] S901. Send the identification identifier of the target roadside unit to the address allocation device.

[0165] The above-mentioned S702 determines the IP address of the target roadside unit based on address allocation information, including S902-S903:

[0166] S902. Based on the identity identifier of the target roadside unit, obtain the address allocation information corresponding to the identity identifier of the target roadside unit.

[0167] S903. Determine the IP address of the target roadside unit based on the address allocation information corresponding to the identity identifier of the target roadside unit.

[0168] In some embodiments, the address allocation device receives address allocation information and address allocation indication information sent by the address allocation device via a vehicle status message (BSM) or a WIFI message or via a wired connection. The address allocation information is carried in the vehicle status message (BSM) or the WIFI message.

[0169] It should be noted that the embodiments provided in this application are applicable to... Figure 1 The explanation of the embodiments of the address allocation method for the first path-side unit 102 or the second path-side unit 103 shown can be found in the above description of the application to... Figure 1 The explanation of the embodiment of the address allocation method of the address allocation device 101 shown will not be repeated here.

[0170] The disclosed embodiments can divide the address allocation device into functional modules according to the above method embodiments. For example, each function can be divided into a separate functional module, or two or more functions can be integrated into one functional module. The integrated module can be implemented in hardware or software. It should be noted that the module division in this disclosed embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods. The following description uses the example of dividing each functional module according to each function.

[0171] Figure 10 This is a schematic diagram of an address allocation device provided in an embodiment of this disclosure. The address allocation device can execute the address allocation method provided in the above-described method embodiment. Figure 10 As shown, the address allocation device includes: an acquisition module 1001, a determination module 1002, and a sending module 1003.

[0172] The acquisition module 1001 is used to acquire the current location information of the address allocation device and multiple installation location information. The installation location information is used to indicate the location where the roadside unit needs to be installed.

[0173] The determining module 1002 is used to determine the actual installation location information of the target roadside unit from multiple installation location information based on the current location information and relative location information. The relative location information is used to indicate the relative position between the target roadside unit and the address allocation device.

[0174] The sending module 1003 is used to send address allocation information, which is determined based on the actual installation location information. The address allocation information is used by the target roadside unit to determine its own IP address.

[0175] In one possible implementation, there is one target roadside unit. Relative position information is used to indicate that the location of the target roadside unit is the closest to the address allocation device among multiple installation position information locations.

[0176] The determination module 1002 is specifically used to determine multiple distances based on the current location information and multiple installation location information. The distance is the distance between the address allocation device and the location corresponding to the installation location information.

[0177] The determination module 1002 is also specifically used to determine the installation location information corresponding to the minimum distance among multiple distances as the actual installation location information.

[0178] In one possible implementation, there are multiple target roadside units. Relative position information is used to indicate the distance between each target roadside unit and the address allocation device. The address allocation device also includes a receiving module 1004.

[0179] The receiving module 1004 is used to receive multiple identification identifiers sent by each of the multiple target roadside units.

[0180] The acquisition module 1001 is also used to acquire multiple transmission durations corresponding to multiple identity identifiers.

[0181] The determining module 1002 is also used to determine multiple relative position information based on multiple transmission durations.

[0182] The determination module 1002 is specifically used to determine multiple actual installation location information corresponding to multiple target roadside units from multiple installation location information based on the current location information and multiple relative location information.

[0183] In one possible implementation, the determining module 1002 is further configured to determine multiple address allocation information corresponding to multiple target roadside units based on multiple actual installation location information, wherein the address allocation information includes actual installation location information and identity identifier.

[0184] In one possible implementation, the address allocation information includes at least one of the following: actual installation location information, IP address, address allocation information indication information, identity identifier, current location information, and multiple installation location information. The address allocation information indication information is used to indicate that the address allocation information is used for address allocation.

[0185] In one possible implementation, the address allocation device is a vehicle or mobile terminal with a high-precision positioning module (RTK).

[0186] The sending module 1003 is specifically used to send address allocation information via vehicle status message (BSM), WIFI message, or wired method. The address allocation information is carried in the BSM or WIFI message.

[0187] In one possible implementation, the address allocation information includes actual installation location information. The BSM includes at least one of the following: a vehicle temporary number field, a vehicle location information field, and a vehicle four-axis acceleration field.

[0188] The BSM meets at least one of the following conditions: the vehicle temporary number field is used to backfill address allocation indication information, and the address allocation indication information is used to indicate that the BSM is used for address allocation; the vehicle location information field or the vehicle four-axis acceleration field is used to backfill actual installation location information.

[0189] In one possible implementation, the acquisition module 1001 is specifically used to acquire multiple positioning information of the address allocation device.

[0190] The determining module 1002 is also used to determine the truncated average value of multiple positioning information and to determine the truncated average value as the current location information of the address allocation device.

[0191] Figure 11 This is a schematic diagram of another address allocation device provided in an embodiment of this disclosure. The address allocation device can execute the address allocation method provided in the above method embodiments. Figure 11 As shown, the address allocation device includes a receiving module 1101 and a determining module 1102.

[0192] The receiving module 1101 is used to receive address allocation information and address allocation indication information sent by the address allocation device. The address allocation indication information is used to indicate that the address allocation information is used for address allocation.

[0193] The determination module 1102 is used to determine the IP address of the address allocation device based on the address allocation information.

[0194] In one possible implementation, the address allocation device stores a one-to-one correspondence between multiple installation location information and multiple IP addresses. The installation location information indicates the location where the roadside unit needs to be installed. The address allocation information includes the actual installation location information of the address allocation device. The determining module 1102 is specifically used to determine the IP address of the address allocation device as the IP address corresponding to the actual installation location information of the address allocation device, based on the actual installation location information of the address allocation device and the correspondence between the multiple installation location information and the multiple IP addresses.

[0195] In one possible implementation, the address allocation device stores a one-to-one correspondence between multiple installation location information and multiple IP addresses. The installation location information is used to indicate the location where the roadside unit needs to be installed. The address allocation device is the roadside unit closest to the address allocation device among the multiple roadside units. The address allocation information includes the current location information of the address allocation device. The address allocation device also includes an acquisition module 1103.

[0196] The acquisition module 1103 is used to acquire multiple target installation location information. This target installation location information refers to the location where the roadside unit needs to be installed.

[0197] The determining module 1102 is specifically used to determine the actual installation location information of the address allocation device based on the current location information and the multiple target installation location information. The actual installation location information is the target installation location information that is closest to the location information corresponding to the current location information among the multiple target installation location information.

[0198] The determining module 1102 is further specifically used to determine the IP address of the address allocation device as the IP address corresponding to the actual installation location information of the address allocation device based on the actual installation location information of the address allocation device and the correspondence between the multiple installation location information and multiple IP addresses.

[0199] The determining module 1102 is specifically used to determine the IP address in the address allocation information as the IP address of the address allocation device.

[0200] In one possible implementation, multiple address allocation information entries exist, each including the identification identifier of the corresponding roadside unit. The address allocation device stores a one-to-one correspondence between multiple installation location information entries and multiple IP addresses, with each IP address corresponding to a specific installation location. The address allocation information includes the installation location information of the address allocation device itself. The installation location information indicates the location where the roadside unit needs to be installed. The address allocation device also includes a sending module 1104.

[0201] The sending module 1104 is used to send the identity identifier of the address allocation device to the address allocation device.

[0202] The acquisition module 1103 is also used to acquire the address allocation information corresponding to the identity identifier of the address allocation device based on the identity identifier of the address allocation device.

[0203] The determination module 1102 is specifically used to determine the IP address of the address allocation device based on the address allocation information corresponding to the identity identifier of the address allocation device.

[0204] In one possible implementation, the address allocation information is carried in a Vehicle Status Message (BSM) or a Wi-Fi message. Specifically, the BSM includes at least one of the following: a vehicle temporary number field, a vehicle location information field, and a vehicle four-axle acceleration field. The BSM satisfies at least one of the following: the vehicle temporary number field is used to fill in the address allocation indication information; the vehicle location information field is used to fill in the actual installation location information of the address allocation device; and the vehicle four-axle acceleration field is used to fill in the current location information of the address allocation device.

[0205] In implementing the functionality of the integrated modules described above in hardware, this disclosure provides another possible structure for the address allocation device involved in the above embodiments. For example... Figure 12 As shown, the address allocation device includes: a processor 1202 and a bus 1204. Optionally, the address allocation device may also include a memory 1201; optionally, the address allocation device may also include a communication interface 1203.

[0206] Processor 1202 may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with embodiments of this disclosure. Processor 1202 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with embodiments of this disclosure. Processor 1202 may also be a combination of functions implementing computational capabilities, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0207] The communication interface 1203 is used to connect with other devices via a communication network. This communication network can be Ethernet, wireless access network, wireless local area network (WLAN), etc.

[0208] The memory 1201 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), disk storage medium or other magnetic storage device, 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 is not limited thereto.

[0209] As one possible implementation, the memory 1201 can exist independently of the processor 1202. The memory 1201 can be connected to the processor 1202 via a bus 1204 and is used to store instructions or program code. When the processor 1202 calls and executes the instructions or program code stored in the memory 1201, it can implement the method provided in the embodiments of this disclosure.

[0210] In another possible implementation, the memory 1201 can also be integrated with the processor 1202.

[0211] Bus 1204 can be an extended industry standard architecture (EISA) bus, etc. Bus 1204 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 12The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0212] Some embodiments of this disclosure provide a computer-readable storage medium (e.g., a non-transitory computer-readable storage medium) storing computer program instructions that, when executed on a computer, cause the computer to perform the methods described in any of the above embodiments.

[0213] For example, the computer-readable storage media described above may include, but are not limited to: magnetic storage devices (e.g., hard disks, floppy disks, or magnetic tapes), optical disks (e.g., compact disks (CDs), digital versatile disks (DVDs), etc.), smart cards, and flash memory devices (e.g., erasable programmable read-only memory (EPROMs), cards, sticks, or key drives, etc.). The various computer-readable storage media described in this disclosure may represent one or more devices for storing information and / or other machine-readable storage media. The term "machine-readable storage media" may include, but is not limited to, wireless channels and various other media capable of storing, containing, and / or carrying instructions and / or data.

[0214] This disclosure provides a computer program product containing instructions that, when run on a computer, cause the computer to perform the methods described in any of the above embodiments.

[0215] The above description is merely a specific embodiment of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any changes or substitutions within the technical scope disclosed in this disclosure should be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.

Claims

1. An address allocation method, characterized in that, Applied to an address allocation device, the method includes: The current location information and multiple installation location information of the address allocation device are obtained, and the installation location information is used to indicate the location where the roadside unit needs to be installed. Based on the current location information and the relative location information, the actual installation location information of the target roadside unit is determined from the plurality of installation location information; the relative location information is used to indicate the relative position between the target roadside unit and the address allocation device. Send address allocation information, which is determined based on the actual installation location information, and is used by the target roadside unit to determine its own IP address.

2. The method according to claim 1, characterized in that, The target roadside unit is one; the relative position information is used to indicate that the position of the target roadside unit is the position closest to the address allocation device among the positions corresponding to the plurality of installation position information; The step of determining the actual installation location information of the target roadside unit from the plurality of installation location information based on the current location information and relative location information includes: Based on the current location information and the multiple installation location information, multiple distances are determined; wherein, the distance is the distance between the address allocation device and the location corresponding to the installation location information; The installation location information corresponding to the smallest distance among the multiple distances is determined as the actual installation location information.

3. The method according to claim 1, characterized in that, The target roadside units are multiple; the relative position information is used to indicate the distance between each target roadside unit and the address allocation device; the method further includes: Receive multiple identity identifiers sent by each of the target roadside units; Obtain multiple transmission durations corresponding to the multiple identity identifiers; Multiple relative position information are determined based on the multiple transmission durations; The step of determining the actual installation location information of the target roadside unit from the plurality of installation location information based on the current location information and relative location information includes: Based on the current location information and the multiple relative location information, multiple actual installation location information corresponding to the multiple target roadside units are determined from the multiple installation location information.

4. The method according to claim 3, characterized in that, The method further includes: Based on the multiple actual installation location information, multiple address allocation information corresponding to the multiple target roadside units is determined, and the address allocation information includes actual installation location information and identity identifier.

5. The method according to any one of claims 1-4, characterized in that, The address allocation information includes at least one of the following: actual installation location information, IP address, address allocation information indication information, identity identifier, current location information, and multiple installation location information; the address allocation information indication information is used to indicate that the address allocation information is used for address allocation.

6. The method according to any one of claims 1-4, characterized in that, The address allocation device is a vehicle or mobile terminal equipped with a high-precision positioning module (RTK); sending the address allocation information includes: The address allocation information is sent via a vehicle status message (BSM), a Wi-Fi message, or via a wired connection, and the address allocation information is carried in the BSM or Wi-Fi message.

7. The method according to claim 6, characterized in that, The address allocation information includes actual installation location information; the BSM includes at least one of the following: vehicle temporary number field, vehicle location information field, and vehicle four-axis acceleration field; The BSM satisfies at least one of the following: The temporary vehicle number field is used to fill in address allocation indication information, which in turn indicates that the BSM is used for address allocation. The vehicle location information field or the vehicle four-axis acceleration field is used to backfill the actual installation location information.

8. The method according to claim 1, characterized in that, Obtaining the current location information of the address allocation device includes: Obtain multiple location information of the address allocation device; The truncated average value of the multiple location information is determined, and the truncated average value is determined as the current location information of the address allocation device.

9. An address allocation method, characterized in that, Applied to the target roadside unit, including: The address allocation information and address allocation indication information sent by the address allocation device are received, wherein the address allocation indication information is used to indicate that the address allocation information is used for address allocation. The IP address of the target roadside unit is determined based on the address allocation information.

10. The method according to claim 9, characterized in that, The target roadside unit stores a mapping between multiple installation location information and multiple IP addresses. The installation location information is used to indicate the location where the roadside unit needs to be installed. The address allocation information includes the actual installation location information of the target roadside unit. Determining the IP address of the target roadside unit based on the address allocation message includes: Based on the actual installation location information of the target roadside unit and the correspondence between the multiple installation location information and multiple IP addresses, the IP address of the target roadside unit is determined to be the IP address corresponding to the actual installation location information of the target roadside unit.

11. The method according to claim 9, characterized in that, The target roadside unit stores multiple installation location information and multiple IP address correspondences. The installation location information is used to indicate the location where the roadside unit needs to be installed. The target roadside unit is the roadside unit that is closest to the address allocation device among the multiple roadside units. The address allocation information includes the current location information of the address allocation device; Determining the IP address of the target roadside unit based on the address allocation information includes: Based on the current location information and the multiple installation location information, the actual installation location information of the target roadside unit is determined; the location corresponding to the actual installation location information is the installation location information that is closest to the location corresponding to the current location information among the multiple installation location information locations. Based on the actual installation location information of the target roadside unit and the correspondence between the multiple installation location information and multiple IP addresses, the IP address of the target roadside unit is determined to be the IP address corresponding to the actual installation location information of the target roadside unit.

12. The method according to claim 9, characterized in that, The address allocation information includes the IP address of the target roadside unit; determining the IP address of the target roadside unit based on the address allocation information includes: The IP address in the address allocation information is determined as the IP address of the target roadside unit.

13. The method according to claim 9, characterized in that, The address allocation information exists in multiple forms, and each address allocation information includes the identity identifier of the corresponding roadside unit; the target roadside unit stores multiple installation location information and multiple IP address correspondences, the installation location information is used to indicate the location where the roadside unit needs to be installed, and the address allocation information includes the installation location information of the target roadside unit; the method further includes: Send the identification identifier of the target roadside unit to the address allocation device; Determining the IP address of the target roadside unit based on the address allocation information includes: Based on the identity identifier of the target roadside unit, obtain the address allocation information corresponding to the identity identifier of the target roadside unit; Based on the address allocation information corresponding to the identity identifier of the target roadside unit, and the correspondence between the multiple installation location information and multiple IP addresses, the IP address of the target roadside unit is determined.

14. The method according to any one of claims 9-13, characterized in that, The address allocation device receives the address allocation information and the address allocation indication information sent by the address allocation device via a vehicle status message (BSM), a WIFI message, or a wired connection. The address allocation information is carried in the vehicle status message (BSM) or the WIFI message.

15. The method according to claim 14, characterized in that, The BSM includes at least one of the following: a vehicle temporary number field, a vehicle location information field, and a vehicle four-axis acceleration field; The BSM satisfies at least one of the following: The temporary vehicle number field is used to fill in address allocation indication information, which in turn indicates that the BSM is used for address allocation. The vehicle location information field or the vehicle four-axis acceleration field is used to backfill the actual installation location information.

16. An electronic device, characterized in that, include: Memory and processor; Memory and processor are coupled; The memory is used to store instructions that can be executed by the processor; When the processor executes the instructions, it performs the method as described in any one of claims 1-8, or the method as described in any one of claims 9-15.

17. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1-8, or the method as described in any one of claims 9-15.

18. A computer program product, characterized in that, The computer program product includes computing technology program instructions, which, when executed by a processor, implement the method as described in any one of claims 1-8, or the method as described in any one of claims 9-15.