Address allocation method, apparatus and electronic device for remote unit (RU)

CN122933602APending Publication Date: 2026-10-16CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510425474.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-07
Publication Date
2026-10-16

AI Technical Summary

Technical Problem

[0003]本申请实施例提供一种远端单元RU的地址分配方法、装置及电子设备,以解决采用手动操作的方式进行地址分配的处理效率较低的问题

Benefits of technology

[0033] In the embodiments of this application, when the extension unit and the remote unit are connected by a multi-fiber hybrid connection, the extension unit can allocate an address to the remote unit based on the smallest optical port number of the optical port connected to the remote unit, thereby improving the address allocation efficiency and the efficiency and reliability of communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122933602A_ABST
    Figure CN122933602A_ABST
Patent Text Reader

Abstract

The application provides a remote unit RU address allocation method and device and electronic equipment, and relates to the technical field of mobile communication. The method comprises the following steps: in the case that an extension unit is connected with at least one remote unit RU, determining the remote radio unit identifier RRUID of a first RU based on the register value of the extension unit, wherein the first RU is any one of the at least one RU, the extension unit comprises at least two groups of optical ports, and the first RU is connected with at least one optical port in the first optical port group through at least one optical fiber; determining the optical port number corresponding to the at least one optical port according to the RRUID; and allocating the address of the first RU based on the minimum optical port number in the optical port number. In the case that the extension unit is connected with the remote unit through multi-fiber hybrid connection, the extension unit can allocate the address of the remote unit based on the minimum optical port number of the optical port connected with the remote unit, thereby improving the address allocation efficiency, and improving the efficiency and reliability of communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of mobile communication technology, and in particular to an address allocation method, apparatus and electronic device for a remote unit (RU). Background Technology

[0002] In current distributed master-slave systems, address allocation for remote units with single-fiber or fixed multi-fiber connections typically involves connecting the expansion unit to a fixed optical fiber and sending the ID of the expansion port to each remote unit via a Field-Programmable Gate Array (FPGA). The remote unit then allocates its own address based on the received port ID. However, for distributed master-slave systems with mixed single-fiber and multi-fiber connections using non-fixed optical ports, address allocation is still performed manually, which is inefficient. Summary of the Invention

[0003] This application provides an address allocation method, apparatus, and electronic device for a remote unit (RU) to solve the problem of low processing efficiency when manually allocating addresses.

[0004] To solve the above-mentioned technical problems, this application is implemented as follows:

[0005] In a first aspect, embodiments of this application provide an address allocation method for a remote unit (RU), the method comprising:

[0006] When the expansion unit is connected to at least one remote unit (RU), the remote radio unit identifier (RRUID) of the first RU is determined based on the register value of the expansion unit, wherein the first RU is any one of the at least one RU, the expansion unit includes at least two sets of optical ports, and the first RU is connected to at least one optical port in the first optical port group of the at least two sets of optical ports through at least one optical fiber.

[0007] The optical port number corresponding to the at least one optical port is determined based on the RRUID;

[0008] The address of the first RU is assigned based on the smallest optical port number among the optical port numbers corresponding to the at least one optical port.

[0009] Optionally, determining the remote radio unit identifier (RRUID) of the first RU based on the register value of the extended unit includes:

[0010] Determine the register value corresponding to the optical port connected to the first RU in the expansion unit, and determine the RRUID of the first RU based on the register value;

[0011] Determining the optical port number corresponding to the at least one optical port based on the RRUID includes:

[0012] The expansion unit receives the RRUID sent by the first RU through at least one optical port, and determines the optical port number corresponding to the at least one optical port that receives the RRUID.

[0013] Optionally, allocating the address of the first RU based on the smallest optical port number among the optical port numbers corresponding to the at least one optical port includes:

[0014] If the smallest optical port number among the optical port numbers corresponding to the at least one optical port is odd, the address of the first RU is allocated according to the first address value, wherein the first address value is the quotient of the first sum and 2, and the first sum is the sum of the smallest optical port number and 1.

[0015] If the smallest optical port number among the optical port numbers corresponding to the at least one optical port is an even number, the address of the first RU is allocated according to the second address value, wherein the second address value is the quotient of the smallest optical port number and 2.

[0016] Optionally, after allocating the address of the first RU based on the smallest optical port number among the optical port numbers corresponding to the at least one optical port, the method further includes at least one of the following:

[0017] If there is a conflict between the address value of the first RU and the allocated address value, the address value of the first RU is incremented, and the address of the first RU is allocated based on the incremented address value.

[0018] If the address value of the first RU exceeds the preset maximum address value range, the address value of the first RU will be set to an invalid address.

[0019] Optionally, after allocating the address of the first RU based on the smallest optical port number among the optical port numbers corresponding to the at least one optical port, the method further includes:

[0020] Send the allocated address to the first RU;

[0021] The allocated address is used to configure the Internet Protocol (IP) address and Media Access Control (MAC) address of the first RU.

[0022] Optionally, after allocating the address of the first RU based on the smallest optical port number among the optical port numbers corresponding to the at least one optical port, the method further includes:

[0023] Add the address of the first RU to the address list and update the address list;

[0024] The first RU is polled based on the address list;

[0025] Based on the response of the first RU to the polling, the in-situ status of the first RU is determined.

[0026] Secondly, embodiments of this application provide an address allocation device for a remote unit (RU), the device comprising:

[0027] The first determining module is used to determine the remote radio frequency unit identifier (RRUID) of the first RU based on the register value of the expansion unit when the expansion unit is connected to at least one remote unit (RU). The first RU is any one of the at least one RU. The expansion unit includes at least two sets of optical ports. The first RU is connected to at least one optical port in the first optical port group of the at least two sets of optical ports through at least one optical fiber.

[0028] The second determining module is used to determine the optical port number corresponding to the at least one optical port based on the RRUID;

[0029] The allocation module is used to allocate the address of the first RU based on the smallest optical port number among the optical port numbers corresponding to the at least one optical port.

[0030] Thirdly, embodiments of this application provide an electronic device, including: a processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, it implements the steps of the address allocation method for the remote unit RU described in the first aspect.

[0031] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the address allocation method for the remote unit RU described in the first aspect.

[0032] Fifthly, a computer program product is provided, including computer instructions that, when executed by a processor, implement the steps of the address allocation method for a remote unit RU as described in the first aspect.

[0033] In the embodiments of this application, when the extension unit and the remote unit are connected by a multi-fiber hybrid connection, the extension unit can allocate an address to the remote unit based on the smallest optical port number of the optical port connected to the remote unit, thereby improving the address allocation efficiency and the efficiency and reliability of communication. Attached Figure Description

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

[0035] Figure 1 This is a flowchart of an address allocation method for a remote unit (RU) provided in an embodiment of this application;

[0036] Figure 2 This is a schematic diagram of a three-tier system architecture provided in an embodiment of this application;

[0037] Figure 3 This is a schematic diagram of the connection between the optical port of an expansion unit and the RU provided in an embodiment of this application;

[0038] Figure 4 This is a flowchart illustrating how a RU transmits RRUID back, as provided in an embodiment of this application.

[0039] Figure 5 This is a flowchart illustrating how an extended unit reads an RRUID and allocates a RU address, as provided in an embodiment of this application.

[0040] Figure 6 This is a flowchart illustrating how an RU reads and allocates an address, as provided in an embodiment of this application.

[0041] Figure 7 This is a schematic diagram of the structure of an address allocation device for a remote unit (RU) provided in an embodiment of this application;

[0042] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

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

[0044] In some distributed fiber optic master-slave communication systems, when a device connects, some extension units connect to a remote end via a single fiber optic cable, with each port connected to only one fiber. The FPGA sends the extended port ID to each remote unit, which then assigns an address based on the extended port ID. Other systems have extension units connected to multiple fixed fibers (e.g., two or three fibers) at the remote end. The FPGA sends the extended port ID to each remote unit, which calculates its own address based on the port ID. Similarly, the extension unit detects the available optical ports and retrieves the addresses of the remote ends connected to those ports, thus achieving address matching. These methods primarily target single-fiber or fixed multi-fiber distributed master-slave systems. However, for mixed distributed master-slave systems with non-fixed optical ports and single-fiber or multi-fiber connections, the allocation and matching of remote unit addresses becomes more complex.

[0045] Based on the master-slave communication between the extension unit and the remote unit, this application allows multiple optical fibers (1-4 fibers, not fixed) of the extension unit to be connected to the same remote unit, enabling rapid determination of the remote unit's location and obtaining the optical port number of the extension unit to which each remote unit is connected. Based on the optical port number, the address of the remote unit is calculated, achieving address matching. This allows direct communication with the remote unit using the address, improving the reliability and efficiency of communication.

[0046] This application provides an address allocation method, apparatus, and electronic device for a remote unit (RU) to solve the problem of low efficiency in manual address allocation. See also... Figure 1 , Figure 1 This is a flowchart of an address allocation method for a remote unit (RU) provided in an embodiment of this application, such as... Figure 1 As shown, the method includes the following steps:

[0047] Step 101: When the expansion unit is connected to at least one remote unit (RU), obtain the remote radio unit identifier (RRUID) of the first RU, wherein the first RU is any one of the at least one RU, the expansion unit includes at least two sets of optical ports, and the first RU is connected to at least one optical port in the first optical port group of the at least two sets of optical ports through at least one optical fiber.

[0048] Step 102: Determine the optical port number corresponding to the at least one optical port based on the RRUID;

[0049] Step 103: Assign the address of the first RU based on the smallest optical port number among the optical port numbers corresponding to the at least one optical port.

[0050] This application relates to a distributed three-tier architecture communication system, such as... Figure 2 As shown. The near-end unit is connected to the extension unit via two optical fibers, and the extension unit is connected to the far-end RU via 1 to 4 optical fibers. The extension unit and the far-end unit form a mixed multi-fiber network. The extension unit assigns addresses to the far-end units and identifies multiple optical fibers accessing the same far-end unit.

[0051] After the extension unit identifies the remote unit with multi-fiber access, it can communicate with the slave unit through the address assigned by the two sides based on rules (the extension unit sends polling, configuration, upgrade, log and other commands to all remote units in a broadcast manner). After receiving the command, the remote unit checks whether the address in the data protocol packet of the extension unit matches its own address. If they do not match, the remote unit is discarded. The remote unit whose address matches responds to the extension unit with data.

[0052] like Figure 3 As shown, in each expansion unit, four optical ports form a group, and the same RU cannot be connected to optical ports in different groups. Each group of four optical ports can connect a maximum of two RUs, with a maximum of 12 RUs that can be connected. Each group of four optical ports can connect two single-fiber RUs, one single-fiber + one multi-fiber (2-fiber or 3-fiber) RU, two dual-fiber RUs, or one four-fiber RU.

[0053] Based on the above requirements, the expansion unit is connected to at least one remote unit RU.

[0054] Each RU reads the register value of the processing unit in the expansion unit, which is the RRUID that the expansion unit assigns to the remote unit. Based on the RRUID, the optical port number corresponding to at least one optical port can be determined.

[0055] like Figure 3 As shown, the RRUID of RU device 1 is 1, the RRUID of RU device 2 is 3 / 4, the RRUID of remote RU device 3 is 13 / 14 / 15, and the RRUID of RU device 4 is 21 / 22 / 23 / 24. The RRUID determines the number of each optical port connected to each RU device. Each optical port number corresponds to the RRUID of the RU device.

[0056] The expansion unit can obtain the optical port number by interacting with the RU device, by obtaining the register value, or by other means.

[0057] When the first RU device is connected to one optical port, the expansion unit can determine the address of the first RU based on the number of the optical port.

[0058] When the first RU device is connected to at least two optical ports, the expansion unit can obtain the smallest optical port number from these at least two optical port numbers and determine the address of the first RU based on the smallest optical port number. This method improves communication reliability and efficiency.

[0059] Optionally, in some implementations, determining the remote radio unit identifier (RRUID) of the first RU based on the register value of the extended unit includes:

[0060] Determine the register value corresponding to the optical port connected to the first RU in the expansion unit, and determine the RRUID of the first RU based on the register value;

[0061] Determining the optical port number corresponding to the at least one optical port based on the RRUID includes:

[0062] The expansion unit receives the RRUID of the first RU through at least one optical port and determines the optical port number corresponding to the at least one optical port that receives the RRUID.

[0063] Each RU unit reads the register value of the processing unit of the expansion unit, which is the RRUID given to the remote RU unit by the expansion unit.

[0064] The remote RU transmits the read RRUID back to the expansion unit via the CPRIC control word. The processor in the expansion unit saves the received RRUID value to a register. If the RRUID value is received by optical port 1 corresponding to the expansion unit, it is saved to register A1; if it is received by optical port 24 corresponding to the expansion unit, it is saved to A24. A1 to A24 are 32-bit registers. The expansion unit can periodically read registers A1 to A24 one by one.

[0065] For example, if the value of register A1 is 0x00030201, it means that the address of the RU connected to optical ports 1 / 2 / 3 is 1; if the value of register A24 is 0x0018171615 (hexadecimal value), it means that the address of the RU connected to optical ports 21 / 22 / 23 / 24 is 11.

[0066] When the RU is connected to multiple optical ports, the address of the RU can be determined based on the smallest optical port number.

[0067] The above process can be found in [reference]. Figure 4 and Figure 5As shown, the RU reads the RRUID of the RU device and stores the RRUID of this device in the Field-Programmable Gate Array (FPGA) register. The FPGA sends the set register value to the expansion unit through the control word.

[0068] The expansion unit FPGA reads the control word and saves it to registers A1 to A24. The expansion unit periodically reads the values ​​of registers A1 to A24 and allocates the address of the corresponding RU according to the minimum optical port principle.

[0069] Optionally, in some embodiments, allocating the address of the first RU based on the smallest optical port number among the optical port numbers corresponding to the at least one optical port includes:

[0070] If the smallest optical port number among the optical port numbers corresponding to the at least one optical port is odd, the address of the first RU is allocated according to the first address value, wherein the first address value is the quotient of the first sum and 2, and the first sum is the sum of the smallest optical port number and 1.

[0071] If the smallest optical port number among the optical port numbers corresponding to the at least one optical port is an even number, the address of the first RU is allocated according to the second address value, wherein the second address value is the quotient of the smallest optical port number and 2.

[0072] When the first RU is connected to multiple optical ports, each optical port corresponds to an optical port number, and the smallest optical port number is obtained.

[0073] When the minimum optical port number is odd, the address of the first RU is (minimum optical port number + 1) / 2;

[0074] When the minimum optical port number is even, the address of the first RU is (minimum optical port number) / 2.

[0075] According to the above allocation principle, we can obtain:

[0076] The RU with optical port number 1 is assigned address 1;

[0077] The RU with optical port number 3 / 4 is assigned address 2;

[0078] For RUs with optical port numbers 13 / 14 / 15, addr = the smallest optical port number / 2, and the address allocation is 7;

[0079] For RUs with optical port numbers 21 / 22 / 23 / 24, addr = the smallest optical port number / 2, and the address allocation is 11.

[0080] Optionally, after allocating the address of the first RU based on the smallest optical port number among the optical port numbers corresponding to the at least one optical port, the method further includes at least one of the following:

[0081] If there is a conflict between the address value of the first RU and the allocated address value, the address value of the first RU is incremented, and the address of the first RU is allocated based on the incremented address value.

[0082] If the address value of the first RU exceeds the preset maximum address value range, the address value of the first RU will be set to an invalid address.

[0083] After obtaining the address value of the first RU in the above manner, if the address value already exists, that is, if the address value of the first RU conflicts with the allocated address value, then the address value of the first RU is incremented sequentially, and the calculated address of the first RU is address + 1, until the address of the first RU does not conflict with the allocated address value.

[0084] If the calculated address does not meet the preset restrictions, the address is set as an invalid address.

[0085] Given a fixed number of optical ports in an expansion unit, the maximum address can be determined. For example, if 24 optical ports are designed for a maximum of 12 remote units, the maximum address is 12. If the calculated address is greater than 12, then that address is changed to an invalid address.

[0086] This implementation method enables the acquisition and allocation of valid addresses.

[0087] Optionally, after allocating the address of the first RU based on the smallest optical port number among the optical port numbers corresponding to the at least one optical port, the method further includes:

[0088] Send the allocated address to the first RU;

[0089] The allocated address is used to configure the Internet Protocol Address (IP) address and Media Access Control Address (MAC) address of the first RU.

[0090] The expansion unit sets the calculated address of the first RU to the first RU via the CPRI control word. When multiple RU addresses are calculated, each address is sent to the corresponding RU. For example, the control word for optical ports 1 / 2 / 3 is 1, and the control word for optical ports 21 / 22 / 23 / 24 is 11.

[0091] Each RU reads the address allocation register, sets the address to its own RU device, and configures the IP address and MAC address of its own RU device according to the rules based on the address allocated to the device, thus completing the allocation of RU device addresses.

[0092] See Figure 6 As shown, the RU reads the address allocation register, updates the address of this device to the valid address read from the register, and allocates IP and MAC addresses based on the allocated valid address.

[0093] Optionally, after allocating the address of the first RU based on the smallest optical port number among the optical port numbers corresponding to the at least one optical port, the method further includes:

[0094] Add the address of the first RU to the address list and update the address list;

[0095] The first RU is polled based on the address list;

[0096] Based on the response of the first RU to the polling, the in-situ status of the first RU is determined.

[0097] After assigning an address to an RU, the extension unit can add the assigned address to the remote RU address management list and update the address management list periodically.

[0098] The extension unit polls the RUs in the management list at regular intervals to enable normal communication and data packet transmission and reception with the RUs in the management list. If an RU does not respond after multiple polls, it is considered that the RU is abnormally in place; if an RU responds after polling, it is considered that the RU is normally in place.

[0099] This application's embodiments solve the problem of address allocation for remote units in multi-fiber hybrid access systems, and the identification of the optical port location connected to the remote unit by the extension unit, calculating the address assigned to the remote unit, and using this address for master-slave communication with the remote unit. In complex network configurations involving extension units and remote units (e.g., one extension unit connects to 12 remote units via 24 optical ports, and the entire network can include 16-32 extension units), when the extension and remote units are connected via multi-fiber links, the method of this application can reliably and efficiently perform master-slave unit communication, and can automatically update the address list of the remote RU at regular intervals.

[0100] See Figure 7 , Figure 7 This is a schematic diagram of the structure of an address allocation device for a remote unit (RU) provided in an embodiment of this application, as shown below. Figure 7 As shown, the address allocation device 400 for the remote unit RU includes:

[0101] The first determining module 701 is used to determine the remote radio frequency unit identifier RRUID of the first RU based on the register value of the expansion unit when the expansion unit is connected to at least one remote unit RU, wherein the first RU is any one of the at least one RU, the expansion unit includes at least two sets of optical ports, and the first RU is connected to at least one optical port in the first optical port group of the at least two sets of optical ports through at least one optical fiber.

[0102] The second determining module 702 is used to determine the optical port number corresponding to the at least one optical port according to the RRUID;

[0103] The allocation module 703 is used to allocate the address of the first RU based on the smallest optical port number among the optical port numbers corresponding to the at least one optical port.

[0104] Optionally, the first determining module is specifically used for:

[0105] Determine the register value corresponding to the optical port connected to the first RU in the expansion unit, and determine the RRUID of the first RU based on the register value;

[0106] The second determining module is specifically used for:

[0107] The expansion unit receives the RRUID sent by the first RU through at least one optical port, and determines the optical port number corresponding to the at least one optical port that receives the RRUID.

[0108] Optionally, the allocation module includes:

[0109] The first allocation submodule is used to allocate the address of the first RU according to a first address value when the smallest optical port number among the optical port numbers corresponding to the at least one optical port is odd, wherein the first address value is the quotient of a first sum and 2, and the first sum is the sum of the smallest optical port number and 1.

[0110] The second allocation submodule is used to allocate the address of the first RU according to a second address value when the smallest optical port number among the optical port numbers corresponding to the at least one optical port is an even number, wherein the second address value is the quotient of the smallest optical port number and 2.

[0111] Optionally, the device further includes at least one of the following:

[0112] The third allocation submodule is used to increment the address value of the first RU and allocate the address of the first RU based on the incremented address value when there is a conflict between the address value of the first RU and the allocated address value.

[0113] The setting submodule is used to set the address value of the first RU to an invalid address when the address value of the first RU exceeds the preset maximum address value range.

[0114] Optionally, the device further includes:

[0115] A sending module is used to send the allocated address to the first RU;

[0116] The allocated address is used to configure the Internet Protocol (IP) address and Media Access Control (MAC) address of the first RU.

[0117] Optionally, the device further includes:

[0118] An add module is used to add the address of the first RU to the address list and update the address list;

[0119] The polling module is used to poll the first RU based on the address list;

[0120] The third determining module is used to determine the presence status of the first RU based on the response result of the first RU to the polling.

[0121] The address allocation device of the remote unit RU can achieve Figure 1 The various processes implemented in the method embodiments can achieve the same technical effect, and will not be described again here to avoid repetition.

[0122] It should be noted that the electronic device provided in this application embodiment is a device capable of performing the address allocation of the remote unit RU described above. Therefore, all implementation methods of the address allocation method of the remote unit RU described above are applicable to this electronic device and can achieve the same or similar beneficial effects. To avoid repetition, this embodiment will not elaborate further.

[0123] This application also provides an electronic device. Since the principle by which the electronic device solves the problem is similar to the address allocation method of the remote unit RU in this application embodiment, the implementation of this electronic device can refer to the implementation of the method, and repeated details will not be elaborated further. Figure 8 As shown, the electronic device according to an embodiment of this application includes: a processor 500, configured to read a program from a memory 520 and execute the following processes:

[0124] When the expansion unit is connected to at least one remote unit (RU), the remote radio unit identifier (RRUID) of the first RU is determined based on the register value of the expansion unit, wherein the first RU is any one of the at least one RU, the expansion unit includes at least two sets of optical ports, and the first RU is connected to at least one optical port in the first optical port group of the at least two sets of optical ports through at least one optical fiber.

[0125] The optical port number corresponding to the at least one optical port is determined based on the RRUID;

[0126] The address of the first RU is assigned based on the smallest optical port number among the optical port numbers corresponding to the at least one optical port.

[0127] Transceiver 510 is used to receive and send data under the control of processor 500.

[0128] Among them, Figure 5 In this context, the bus architecture may include any number of interconnected buses and bridges, specifically linking various circuits together, represented by one or more processors (processor 500) and memory (memory 520). The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides an interface. The transceiver 510 may be multiple elements, including transmitters and transceivers, providing a unit for communicating with various other devices over a transmission medium. The processor 500 is responsible for managing the bus architecture and general processing, and the memory 520 may store data used by the processor 500 during operation.

[0129] Optionally, the processor 500 is further configured to read a program from the memory 520 and execute the determination of the remote radio unit identifier (RRUID) of the first RU based on the register value of the extended unit, including:

[0130] Determine the register value corresponding to the optical port connected to the first RU in the expansion unit, and determine the RRUID of the first RU based on the register value;

[0131] Determining the optical port number corresponding to the at least one optical port based on the RRUID includes:

[0132] The expansion unit receives the RRUID sent by the first RU through at least one optical port, and determines the optical port number corresponding to the at least one optical port that receives the RRUID.

[0133] Optionally, the processor 500 is further configured to read a program from the memory 520 and execute the allocation of the address of the first RU based on the smallest optical port number among the optical port numbers corresponding to the at least one optical port, including:

[0134] If the smallest optical port number among the optical port numbers corresponding to the at least one optical port is odd, the address of the first RU is allocated according to the first address value, wherein the first address value is the quotient of the first sum and 2, and the first sum is the sum of the smallest optical port number and 1.

[0135] If the smallest optical port number among the optical port numbers corresponding to the at least one optical port is an even number, the address of the first RU is allocated according to the second address value, wherein the second address value is the quotient of the smallest optical port number and 2.

[0136] Optionally, the processor 500 is further configured to read the program in the memory 520, and after executing the allocation of the address of the first RU based on the smallest optical port number among the optical port numbers corresponding to the at least one optical port, it is further configured to execute at least one of the following:

[0137] If there is a conflict between the address value of the first RU and the allocated address value, the address value of the first RU is incremented, and the address of the first RU is allocated based on the incremented address value.

[0138] If the address value of the first RU exceeds the preset maximum address value range, the address value of the first RU will be set to an invalid address.

[0139] Optionally, the processor 500 is further configured to read the program in the memory 520, and after executing the allocation of the address of the first RU based on the smallest optical port number among the optical port numbers corresponding to the at least one optical port, it is further configured to execute:

[0140] Send the allocated address to the first RU;

[0141] The allocated address is used to configure the Internet Protocol (IP) address and Media Access Control (MAC) address of the first RU.

[0142] Optionally, the processor 500 is further configured to read the program in the memory 520, and after executing the allocation of the address of the first RU based on the smallest optical port number among the optical port numbers corresponding to the at least one optical port, it is further configured to execute:

[0143] Add the address of the first RU to the address list and update the address list;

[0144] The first RU is polled based on the address list;

[0145] Based on the response of the first RU to the polling, the in-situ status of the first RU is determined.

[0146] The electronic device provided in this application embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0147] This application also provides a computer-readable storage medium storing a computer program. When executed by a processor, this computer program implements the various processes of the above-described address allocation method embodiment for the remote unit RU, and achieves the same technical effect. To avoid repetition, it will not be described again here. The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0148] This application also provides a computer program product, including computer instructions, which, when executed by a processor, implement the above-described... Figure 1 The various processes of the method embodiments shown can achieve the same technical effect, and will not be described again here to avoid repetition.

[0149] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0150] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0151] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method for address allocation of a remote unit (RU), characterized in that, include: When the expansion unit is connected to at least one remote unit (RU), the remote radio unit identifier (RRUID) of the first RU is determined based on the register value of the expansion unit, wherein the first RU is any one of the at least one RU, the expansion unit includes at least two sets of optical ports, and the first RU is connected to at least one optical port in the first optical port group of the at least two sets of optical ports through at least one optical fiber. The optical port number corresponding to the at least one optical port is determined based on the RRUID; The address of the first RU is assigned based on the smallest optical port number among the optical port numbers corresponding to the at least one optical port.

2. The method according to claim 1, characterized in that, The step of determining the remote radio unit identifier (RRUID) of the first RU based on the register value of the extended unit includes: Determine the register value corresponding to the optical port connected to the first RU in the expansion unit, and determine the RRUID of the first RU based on the register value; Determining the optical port number corresponding to the at least one optical port based on the RRUID includes: The expansion unit receives the RRUID sent by the first RU through at least one optical port, and determines the optical port number corresponding to the at least one optical port that receives the RRUID.

3. The method according to claim 1 or 2, characterized in that, The process of allocating the address of the first RU based on the smallest optical port number among the optical port numbers corresponding to the at least one optical port includes: If the smallest optical port number among the optical port numbers corresponding to the at least one optical port is odd, the address of the first RU is allocated according to the first address value, wherein the first address value is the quotient of the first sum and 2, and the first sum is the sum of the smallest optical port number and 1. If the smallest optical port number among the optical port numbers corresponding to the at least one optical port is an even number, the address of the first RU is allocated according to the second address value, wherein the second address value is the quotient of the smallest optical port number and 2.

4. The method according to claim 3, characterized in that, After allocating the address of the first RU based on the smallest optical port number among the optical port numbers corresponding to the at least one optical port, the method further includes at least one of the following: If there is a conflict between the address value of the first RU and the allocated address value, the address value of the first RU is incremented, and the address of the first RU is allocated based on the incremented address value. If the address value of the first RU exceeds the preset maximum address value range, the address value of the first RU will be set to an invalid address.

5. The method according to claim 1 or 2, characterized in that, After allocating the address of the first RU based on the smallest optical port number among the optical port numbers corresponding to the at least one optical port, the method further includes: Send the allocated address to the first RU; The allocated address is used to configure the Internet Protocol (IP) address and Media Access Control (MAC) address of the first RU.

6. The method according to claim 1 or 2, characterized in that, After allocating the address of the first RU based on the smallest optical port number among the optical port numbers corresponding to the at least one optical port, the method further includes: Add the address of the first RU to the address list and update the address list; The first RU is polled based on the address list; Based on the response of the first RU to the polling, the in-situ status of the first RU is determined.

7. An address allocation device for a remote unit RU, characterized in that, include: The first determining module is used to determine the remote radio frequency unit identifier (RRUID) of the first RU based on the register value of the expansion unit when the expansion unit is connected to at least one remote unit (RU). The first RU is any one of the at least one RU. The expansion unit includes at least two sets of optical ports. The first RU is connected to at least one optical port in the first optical port group of the at least two sets of optical ports through at least one optical fiber. The second determining module is used to determine the optical port number corresponding to the at least one optical port based on the RRUID; The allocation module is used to allocate the address of the first RU based on the smallest optical port number among the optical port numbers corresponding to the at least one optical port.

8. An electronic device, characterized in that, include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the address allocation method for a remote unit RU as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the address allocation method for the remote unit RU as described in any one of claims 1 to 6.

10. A computer program product, characterized in that, It includes computer instructions that, when executed by a processor, implement the steps of the address allocation method for the remote unit RU as described in any one of claims 1 to 6.