Remote terminal address configuration method, device and equipment of optical fiber repeater control system
By using broadcast packets to register and address configuration in the near-end machine of the fiber repeater station, the problems of low address configuration efficiency and address conflict in the existing technology are solved, and automated address configuration and efficient communication are realized.
Patent Information
- Application Number
- CN202510010624.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-03
- Publication Date
- 2025-05-13
AI Technical Summary
In the existing fiber repeater technology, the remote machine address configuration needs to be manually set, resulting in large workloads and easy address conflicts, affecting communication efficiency.
By implementing a remote machine address configuration method in a near-end machine, the remote machine is registered using a broadcast packet. The registered remote machine obtains and configures its remote machine address after receiving the broadcast packet. The unregistered remote machine sends reply information within the deadline to obtain the address.
It realizes automatic generation and automatic configuration of remote machine addresses, improves address configuration efficiency, avoids address conflicts, and simplifies operational processes.
Smart Images

Figure CN119996380A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of repeater stations, and in particular to a method, device and equipment for configuring a remote machine address of a fiber optic repeater control system. Background Art
[0002] Fiber optic repeater is a repeater that uses optical fiber to transmit signals. It includes a near-end machine and a far-end machine. The fiber optic transmission loss between the near-end machine and the far-end machine is small, the wiring is convenient, and it is suitable for long-distance transmission. It can solve the problem that villages, towns, tourist areas, highways, etc. cannot receive base station signals, and achieve signal coverage in large and super-large buildings. Specifically, each far-end machine (substation) needs to be addressed locally so that the near-end machine (master station) can correctly identify and communicate. In the current technical solution, the method of manually setting the far-end machine address is generally adopted, which not only has a large workload, but also is prone to address conflicts, resulting in communication confusion and even system failure. In this way, how to improve the address configuration efficiency on the basis of ensuring the effectiveness of the far-end machine address configuration has become a technical problem that needs to be solved urgently. Summary of the invention
[0003] The embodiments of the present application provide a remote machine address configuration method, device and equipment for a fiber optic repeater control system, thereby improving the address configuration efficiency while ensuring the effectiveness of the remote machine address configuration, at least to a certain extent.
[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0005] According to one aspect of the embodiment of the present application, a method for configuring the remote machine address of a fiber optic repeater control system is provided, wherein the fiber optic repeater control system includes a near-end machine and at least one remote machine in communication connection; the method is applied to the near-end machine;
[0006] The method comprises:
[0007] Broadcasting a first broadcast packet for remote machine registration a predetermined number of times, and in each broadcast, the first broadcast packet includes a remote machine serial number and a remote machine address of a registered remote machine, so that after receiving the first broadcast packet, the successfully registered remote machine obtains the allocated remote machine address according to its own remote machine serial number and performs corresponding configuration;
[0008] Within the time limit corresponding to each broadcast, receiving a reply message sent by a remote machine that has not yet successfully registered, the reply message including its own remote machine serial number;
[0009] According to a predetermined rule, a remote machine address is allocated to a remote machine that has not yet successfully registered and has received a remote machine serial number sent by it, and the remote machine serial number is associated with the remote machine address and stored.
[0010] According to one aspect of the embodiment of the present application, a remote machine address configuration device of a fiber optic repeater control system is provided, wherein the fiber optic repeater control system includes a near-end machine and at least one far-end machine in communication connection; the device is applied to the near-end machine;
[0011] The device comprises:
[0012] A broadcast module, used for broadcasting a first broadcast packet for remote machine registration for a predetermined number of times, and in each broadcast, the first broadcast packet includes a remote machine serial number and a remote machine address of a registered remote machine, so that after receiving the first broadcast packet, the successfully registered remote machine obtains the allocated remote machine address according to its own remote machine serial number and performs corresponding configuration;
[0013] A receiving module, used for receiving a reply message sent by a remote machine that has not yet successfully registered within a time limit corresponding to each broadcast, wherein the reply message includes its own remote machine serial number;
[0014] The processing module is used to allocate a remote machine address to a remote machine that has not registered successfully and received the remote machine serial number sent by it according to a predetermined rule, and store the remote machine serial number in association with the remote machine address.
[0015] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the remote machine address configuration method of the optical fiber repeater station control system as described in the above embodiment is implemented.
[0016] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the remote machine address configuration method of the fiber optic repeater station control system as described in the above embodiments.
[0017] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the remote machine address configuration method of the optical fiber repeater control system provided in the above embodiment.
[0018] In the technical solutions provided by some embodiments of the present application, the near-end machine broadcasts the first broadcast packet used for remote machine registration for a predetermined number of times, and in each broadcast, the first broadcast packet includes the remote machine serial number and remote machine address of the registered remote machine, so that the successfully registered remote machine obtains the assigned remote machine address according to its own remote machine serial number after receiving the first broadcast packet and performs corresponding configuration; within the time limit corresponding to each broadcast, the near-end machine receives the reply information sent by the remote machine that has not yet successfully registered, and the reply information includes its own remote machine serial number; according to the predetermined rules, a remote machine address is assigned to the remote machine that has not yet successfully registered and has received the remote machine serial number sent by it, and the remote machine serial number is associated with the remote machine address and stored. In this way, the remote machine address of each remote machine can be automatically generated and automatically configured, and the address configuration efficiency is improved on the basis of ensuring the effectiveness of the remote machine address configuration.
[0019] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0021] Figure 1 A schematic flow chart of a remote machine address configuration method of a fiber optic repeater control system according to an embodiment of the present application is shown;
[0022] Figure 2 A schematic diagram showing an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied;
[0023] Figure 3 A block diagram showing a remote machine address configuration device of a fiber repeater control system according to an embodiment of the present application is shown;
[0024] Figure 4 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0025] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0026] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0027] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0028] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0029] Figure 1 A schematic flow chart of a remote machine address configuration method of a fiber repeater control system according to an embodiment of the present application is shown.
[0030] Among them, the optical fiber repeater station control system includes a near-end machine and at least one far-end machine connected in communication. The method is applied to the near-end machine, and the single bus between the near-end machine (master station) and the far-end machine (substation) adopts point-to-point communication to avoid bus address conflicts.
[0031] like Figure 1 As shown, the remote machine address configuration method of the optical fiber repeater control system at least includes steps S110 to S130, which are described in detail as follows:
[0032] In step S110, the first broadcast packet for remote machine registration is broadcast a predetermined number of times, and in each broadcast, the first broadcast packet includes the remote machine serial number and remote machine address of the registered remote machine, so that the successfully registered remote machine can obtain the assigned remote machine address according to its own remote machine serial number after receiving the first broadcast packet and perform corresponding configuration.
[0033] In this embodiment, the near-end machine can generate a first broadcast packet for remote machine registration in response to the address configuration request of the administrator, and broadcast it a predetermined number of times, and in each broadcast, the first broadcast packet contains the remote machine serial number and remote machine address of the registered remote machine. In other words, before each broadcast, the near-end machine will update the remote machine serial number and remote machine address of the successfully registered remote machine, and generate the first broadcast packet for the next broadcast.
[0034] Thus, after the remote machine receives the first broadcast packet, it can confirm whether it contains its own remote machine serial number. If so, it means that the registration is successful. The remote machine can obtain the corresponding remote machine address according to its own remote machine serial number and perform configuration.
[0035] In step S120, within the time limit corresponding to each broadcast, a reply message sent by a remote machine that has not yet successfully registered is received, and the reply message includes its own remote machine serial number.
[0036] In this embodiment, if the first broadcast packet received by the remote machine does not include its own remote machine serial number, it means that the remote machine has not been successfully registered. At this time, the remote machine can send a reply message to the near-end machine within the time limit corresponding to the current broadcast number. The reply message includes the remote machine serial number of the remote machine. The near-end machine can obtain the remote machine serial number of each unregistered remote machine according to the reply signal received within the time limit, so as to allocate the corresponding remote machine address to it later.
[0037] In step S130, according to a predetermined rule, a remote machine address is allocated to the remote machine that has not yet successfully registered and has received the remote machine serial number sent by it, and the remote machine serial number is associated with the remote machine address and stored.
[0038] In this embodiment, after obtaining the remote machine serial number of the remote machine that has not yet registered, the near-end machine can assign a remote machine address that increases step by step from 1 to each remote machine according to the order in which the remote machine serial number is received, such as 1, 2, 3, 4, etc. In this way, remote machine address conflicts can be effectively avoided, and remote machine registration and online access are convenient. After assigning the remote machine address to the remote machine, the near-end machine can associate it with the corresponding remote machine serial number and store it for subsequent communication.
[0039] In some embodiments of the present application, in each broadcast, the first broadcast packet also includes a delay unit time and a modulo divisor corresponding to the current number of broadcasts, and the modulo divisor gradually decreases as the number of broadcasts increases. The deadline time corresponding to each broadcast is a positive integer multiple of the delay unit time, and the deadline time corresponding to each broadcast gradually decreases as the number of broadcasts increases.
[0040] In this embodiment, in each broadcast, the first broadcast packet also includes the delay unit time T (for example, 10ms, 20ms, etc.) and the modulo divisor corresponding to the current number of broadcasts. That is to say, the modulo divisor contained in the first broadcast packet of each broadcast is different, and the modulo divisor decreases step by step with the increase of the number of broadcasts. For example, assuming there are 5 broadcasts in total, the modulo divisors from the first to the fifth broadcasts are 13, 11, 7, 5, and 0, respectively.
[0041] Furthermore, the time limit corresponding to each broadcast of the first broadcast packet is a positive integer multiple of the delay unit time, and the time limit corresponding to each broadcast decreases step by step as the number of broadcasts increases. For example, if the first broadcast packet is broadcast 5 times in total, the time limits corresponding to the first broadcast to the fifth broadcast are 14 delay unit times, 12 delay unit times, 8 delay unit times, 6 delay unit times, and no timeout (i.e., after the fifth broadcast, no reply information from the remote machine is received).
[0042] In some embodiments of the present application, the reply information is sent by a remote machine that has not yet successfully registered after the delay period is reached, and the delay period is obtained by performing a modulo operation on the remote machine serial number of the remote machine and the modulo operation divisor corresponding to the current broadcast number to obtain a multiple, and then multiplying the multiple by the delay unit time.
[0043] In this embodiment, after determining that the first broadcast packet does not contain its own remote machine sequence number, as long as the modular operation divisor is not 0, the remote machine can perform a modular operation on its own remote machine sequence number and the modular operation divisor contained in the currently received first broadcast packet, that is, divide the remote machine sequence number by the modular operation divisor and take the remainder, thereby obtaining a multiple Y, and then multiply the multiple Y by the delay unit time T to obtain the delay time (i.e. Y*T). The remote machine can start timing from the reception time of the currently received first broadcast packet, and when the delay time is reached, the remote machine will send the reply information to the near-end machine. In this way, each remote machine will generate a random delay time, thereby achieving random reply and avoiding conflicts.
[0044] In some embodiments of the present application, before broadcasting the first broadcast packet for remote machine registration a predetermined number of times, the method further includes:
[0045] Clear the history record of the near-end machine itself, the history record includes the previous registration information of each remote machine, the previous registration information includes the remote machine serial number and its corresponding remote machine address;
[0046] The second broadcast packet used for initialization is broadcasted, so that each remote machine initializes its own remote machine address after receiving the second broadcast packet.
[0047] In this embodiment, in order to prevent the previously configured remote machine address from affecting the automatic configuration result, before broadcasting the first broadcast packet, the near-end machine first clears its own historical records, which include the previous registration information of each remote machine, and the previous registration information may include the remote machine serial number and its corresponding remote machine address (which may be obtained by historical manual configuration or historical automatic configuration).
[0048] Next, the near-end machine generates and broadcasts a second broadcast packet for initialization. After receiving the second broadcast packet, the remote machine initializes the historically configured remote machine address. For example, the remote machine can clear the historically set remote machine address and set it to 0.
[0049] In some embodiments of the present application, broadcasting a first broadcast packet for remote machine registration a predetermined number of times includes:
[0050] In response to an automatic configuration request for a remote machine address, a first broadcast packet for remote machine registration is broadcast a predetermined number of times, wherein the automatic configuration request is triggered by a target user clicking a predetermined button.
[0051] In this embodiment, in order to avoid cyclic triggering and occupying communication resources, the near-end machine can respond to the automatic configuration request for the address of the remote machine, and then cyclically broadcast the first broadcast packet for remote machine registration for a predetermined number of times, and the automatic configuration request can be generated by the target user (such as the administrator) clicking a predetermined button to trigger it. In other words, the embodiment of the present application can provide a near-end machine user management web interface, and the administrator can manually click and trigger the "automatic allocation" button in the interface to generate an automatic configuration request.
[0052] In some embodiments of the present application, the method further includes:
[0053] In response to a manual configuration request for a remote machine address, displaying a remote machine address configuration interface;
[0054] Generate a corresponding third broadcast packet according to the editing information received by the remote machine address configuration interface, wherein the editing information includes the manually configured remote machine address and its corresponding remote machine serial number;
[0055] The third broadcast packet is broadcasted to each of the remote machines, so that each of the remote machines configures or updates its own remote machine address according to the third broadcast packet.
[0056] In this embodiment, although the probability of conflict in automatically assigning remote machine addresses is very low, there is still a very small probability of conflict. Therefore, the embodiment of the present application can provide a remote machine address configuration interface. The administrator can manually click to trigger the "manual configuration" button through the aforementioned near-end machine user management web interface to generate a corresponding manual configuration request. After receiving the manual configuration request, the remote machine address configuration interface is displayed in the interface. The administrator can manually edit the remote machine address of each remote machine and its corresponding remote machine serial number in the remote machine address configuration interface. The remote machine can receive the editing information and generate a corresponding third broadcast packet based on the editing information, and then broadcast the third broadcast packet to each remote machine. After receiving the third broadcast packet, the remote machine can find the corresponding remote machine address according to its own remote machine serial number to configure or update its own remote machine address.
[0057] Based on the technical solution of the above embodiment, a specific application scenario of the embodiment of the present application is introduced below:
[0058] The embodiment of the present application provides a remote machine address configuration method for a fiber optic repeater control system.
[0059] Specifically, it is assumed that the optical fiber repeater control system consists of 1 near-end machine and 1-15 far-end machines, and the near-end machine and the far-end machine are connected via RS485 analog optical fiber communication (such as Figure 2 As shown). Among them, MU represents the near-end machine, RU represents the remote machine, and SN represents the serial number; RUSN represents the remote machine serial number, and RUID represents the remote machine address. The remote machine address starts from 1 and increases step by step, with a maximum of 15; the remote machine address is used as the index to store the remote machine serial number in the near-end machine monitoring program; when the near-end machine polls to access the remote machine, it needs to carry this address in the instruction; all remote machines will respond only when they receive instructions belonging to their own addresses, and will directly discard instructions that do not belong to their own addresses without responding. The initial remote machine address of the remote machine defaults to 0, which cannot be responded to by the near-end machine in polling and access, and cannot be registered online.
[0060] To avoid cyclic triggering and occupying MU and RU communication resources, the automatic allocation of RUID is triggered by manually clicking the "Auto Assign" button on the MU user management web page.
[0061] Specifically, the process of MU automatically allocating RUID to RU is as follows:
[0062] a. Before MU automatically assigns RUID, it clears all historical records in MU and RU through a broadcast packet (i.e., the aforementioned second broadcast packet) (configuration mode = 2) (in MU, clear the SN corresponding to each index; in RU, set RUID to 0) to avoid conflicts between the automatically assigned RUID and the manually configured RUID of the later access.
[0063] b.MU uses RUID=FF to broadcast, and sends the broadcast packet (i.e. the first broadcast packet mentioned above) to each RU. The broadcast packet contains the registered RUSN, RUID (RUID starts from 1 and goes up to 15), modulo operation divisor, delay unit time T (in ms), and 4 bytes of reserved bytes. RU implements random reply based on SN and modulo operation to avoid conflicts. The RUSN and RUID broadcast by MU each time are obtained from the local storage (RUID and RUSN have been assigned before);
[0064] c. The MU configuration mode is set to 0 (indicating automatic configuration), and a total of 5 cyclic broadcast operations are performed:
[0065] The modulo operation divisor of the first broadcast cycle is 13, and the timeout period is 14 delay units.
[0066] The modulo operation divisor of the second broadcast cycle is 11, and the timeout period is 12 delay units.
[0067] The modulo operation divisor of the third broadcast cycle is 7, and the timeout period is 8 delay units.
[0068] During the fourth broadcast cycle, the modulo operation divisor is 5, and the timeout period is 6 delay unit times.
[0069] During the fifth broadcast cycle, the modulo operation divisor is 0, and there is no timeout period or receiving process.
[0070] The RUSNs received by the MU during the 1st to 4th cycles are stored in the positions of the SNs with index=1-15 in order, where the corresponding index=RUID. Multiple RUs may be continuously received to report RUSNs in each cycle.
[0071] The process of RU processing automatic allocation of RUID is as follows:
[0072] a. If the broadcast packet (ie, the aforementioned second broadcast packet) is a clear command (configuration mode = 2), the RUID of the RU is configured to 0;
[0073] b. If the broadcast packet (ie, the aforementioned first broadcast packet) contains the RUSN of the device, the corresponding RUID is set to the local device;
[0074] c. If the broadcast packet (i.e. the first broadcast packet mentioned above) does not contain the RUSN of this device, then read the local RUSN and the modulo divisor in the broadcast packet. As long as the modulo divisor is not 0, use RUSN to perform modulo operation on the modulo divisor to obtain the result Y. Then RU delays Y*T and then replies with a broadcast response. The reply information contains the local RUSN and four reserved bytes.
[0075] The following describes an embodiment of the device of the present application, which can be used to execute the remote machine address configuration method of the optical fiber repeater control system in the above embodiment of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the remote machine address configuration method of the optical fiber repeater control system in the above embodiment of the present application.
[0076] Figure 3 A block diagram of a remote machine address configuration device of a fiber repeater control system according to an embodiment of the present application is shown.
[0077] Reference Figure 3 As shown, according to an embodiment of the present application, a remote machine address configuration device of a fiber optic repeater control system includes a near-end machine and at least one remote machine in communication connection, and the device is applied to the near-end machine;
[0078] The device comprises:
[0079] A broadcast module, used for broadcasting a first broadcast packet for remote machine registration for a predetermined number of times, and in each broadcast, the first broadcast packet includes a remote machine serial number and a remote machine address of a registered remote machine, so that after receiving the first broadcast packet, the successfully registered remote machine obtains the allocated remote machine address according to its own remote machine serial number and performs corresponding configuration;
[0080] A receiving module, used for receiving a reply message sent by a remote machine that has not yet successfully registered within a time limit corresponding to each broadcast, wherein the reply message includes its own remote machine serial number;
[0081] The processing module is used to allocate a remote machine address to a remote machine that has not registered successfully and received the remote machine serial number sent by it according to a predetermined rule, and store the remote machine serial number in association with the remote machine address.
[0082] In some embodiments of the present application, in each broadcast, the first broadcast packet also includes a delay unit time and a modulo divisor corresponding to the current number of broadcasts, and the modulo divisor gradually decreases as the number of broadcasts increases. The deadline time corresponding to each broadcast is a positive integer multiple of the delay unit time, and the deadline time corresponding to each broadcast gradually decreases as the number of broadcasts increases.
[0083] In some embodiments of the present application, the reply information is sent by a remote machine that has not yet successfully registered after the delay period is reached, and the delay period is obtained by performing a modulo operation on the remote machine serial number of the remote machine and the modulo operation divisor corresponding to the current broadcast number to obtain a multiple, and then multiplying the multiple by the delay unit time.
[0084] In some embodiments of the present application, before broadcasting the first broadcast packet for remote machine registration a predetermined number of times, the broadcast module is further used to:
[0085] Clear the history record of the near-end machine itself, the history record includes the previous registration information of each remote machine, the previous registration information includes the remote machine serial number and its corresponding remote machine address;
[0086] The second broadcast packet used for initialization is broadcasted, so that each remote machine initializes its own remote machine address after receiving the second broadcast packet.
[0087] In some embodiments of the present application, broadcasting a first broadcast packet for remote machine registration a predetermined number of times includes:
[0088] In response to an automatic configuration request for a remote machine address, a first broadcast packet for remote machine registration is broadcast a predetermined number of times, wherein the automatic configuration request is triggered by a target user clicking a predetermined button.
[0089] In some embodiments of the present application, the processing module is further used to:
[0090] In response to a manual configuration request for a remote machine address, displaying a remote machine address configuration interface;
[0091] Generate a corresponding third broadcast packet according to the editing information received by the remote machine address configuration interface, wherein the editing information includes the manually configured remote machine address and its corresponding remote machine serial number;
[0092] The third broadcast packet is broadcasted to each of the remote machines, so that each of the remote machines configures or updates its own remote machine address according to the third broadcast packet.
[0093] Figure 4 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.
[0094] It should be noted that Figure 4 The computer system of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0095] like Figure 4As shown, the computer system includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 402 or the program loaded from the storage part 408 to the random access memory (RAM) 403, such as executing the method described in the above embodiment. In RAM 403, various programs and data required for system operation are also stored. CPU 401, ROM 402 and RAM 403 are connected to each other through bus 404. Input / output (I / O) interface 405 is also connected to bus 404.
[0096] The following components are connected to the I / O interface 405: an input section 406 including a keyboard, a mouse, etc.; an output section 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 408 including a hard disk, etc.; and a communication section 409 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the I / O interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed so that a computer program read therefrom is installed into the storage section 408 as needed.
[0097] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 409, and / or installed from a removable medium 411. When the computer program is executed by a central processing unit (CPU) 401, various functions defined in the system of the present application are executed.
[0098] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0099] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0100] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0101] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.
[0102] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0103] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.
[0104] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0105] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for configuring the remote machine address of a fiber optic repeater control system, wherein the fiber optic repeater control system comprises a near-end machine and at least one remote machine in communication connection; characterized in that: The method is applied to a near-end machine; The method comprises: Broadcasting a first broadcast packet for remote machine registration a predetermined number of times, and in each broadcast, the first broadcast packet includes a remote machine serial number and a remote machine address of a registered remote machine, so that after receiving the first broadcast packet, the successfully registered remote machine obtains the allocated remote machine address according to its own remote machine serial number and performs corresponding configuration; Within the time limit corresponding to each broadcast, receiving a reply message sent by a remote machine that has not yet successfully registered, the reply message including its own remote machine serial number; According to a predetermined rule, a remote machine address is allocated to a remote machine that has not yet successfully registered and has received a remote machine serial number sent by it, and the remote machine serial number is associated with the remote machine address and stored.
2. The method according to claim 1, characterized in that In each broadcast, the first broadcast packet also includes the delay unit time and the modulo divisor corresponding to the current number of broadcasts, and the modulo divisor decreases step by step as the number of broadcasts increases. The deadline time corresponding to each broadcast is a positive integer multiple of the delay unit time, and the deadline time corresponding to each broadcast decreases step by step as the number of broadcasts increases.
3. The method according to claim 2, characterized in that The reply information is sent by the remote machine that has not yet successfully registered after the delay time is reached. The delay time is obtained by multiplying the multiple obtained by performing a modulo operation on the remote machine serial number of the remote machine and the modulo operation divisor corresponding to the current broadcast number by the delay unit time.
4. The method according to claim 1, characterized in that: Before broadcasting the first broadcast packet for remote machine registration a predetermined number of times, the method further includes: Clear the history record of the near-end machine itself, the history record includes the previous registration information of each remote machine, the previous registration information includes the remote machine serial number and its corresponding remote machine address; The second broadcast packet used for initialization is broadcasted, so that each remote machine initializes its own remote machine address after receiving the second broadcast packet.
5. The method according to claim 1, characterized in that The first broadcast packet for remote machine registration is broadcasted a predetermined number of times, including: In response to an automatic configuration request for a remote machine address, a first broadcast packet for remote machine registration is broadcast a predetermined number of times, wherein the automatic configuration request is triggered by a target user clicking a predetermined button.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: In response to a manual configuration request for a remote machine address, displaying a remote machine address configuration interface; Generate a corresponding third broadcast packet according to the editing information received by the remote machine address configuration interface, wherein the editing information includes the manually configured remote machine address and its corresponding remote machine serial number; The third broadcast packet is broadcasted to each of the remote machines, so that each of the remote machines configures or updates its own remote machine address according to the third broadcast packet.
7. A remote machine address configuration device for a fiber optic repeater control system, the fiber optic repeater control system comprising a near-end machine and at least one remote machine in communication connection; characterized in that: The device is applied to a near-end machine; The device comprises: A broadcast module, used for broadcasting a first broadcast packet for remote machine registration for a predetermined number of times, and in each broadcast, the first broadcast packet includes a remote machine serial number and a remote machine address of a registered remote machine, so that after receiving the first broadcast packet, the successfully registered remote machine obtains the allocated remote machine address according to its own remote machine serial number and performs corresponding configuration; A receiving module, used for receiving a reply message sent by a remote machine that has not yet successfully registered within a time limit corresponding to each broadcast, wherein the reply message includes its own remote machine serial number; The processing module is used to allocate a remote machine address to a remote machine that has not registered successfully and received the remote machine serial number sent by it according to a predetermined rule, and store the remote machine serial number in association with the remote machine address.
8. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
9. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the method according to any one of claims 1 to 6.